Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),function(e,t){"function"==typeofdefine&&define.amd?define([],t):"object"==typeofmodule&&"undefined"!=typeofexports?module.exports=t():e.Papa=t()}(this,function(){"use strict";vars,e,f="undefined"!=typeofself?self:"undefined"!=typeofwindow?window:void0!==f?f:{},n=!f.document&&!!f.postMessage,o=n&&/(\?|&)papaworker(=|&|$)/.test(f.location.search),a=!1,h={},u=0,v={parse:function(e,t){vari=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&v.WORKERS_SUPPORTED){varr=function(){if(!v.WORKERS_SUPPORTED)return!1;if(!a&&null===v.SCRIPT_PATH)thrownewError("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");vare=v.SCRIPT_PATH||s;e+=(-1!==e.indexOf("?")?"&":"?")+"papaworker";vart=newf.Worker(e);returnt.onmessage=y,t.id=u++,h[t.id]=t}();returnr.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),deletet.worker,voidr.postMessage({input:e,config:t,workerId:r.id})}varn=null;{if(e===v.NODE_STREAM_INPUT)return(n=newg(t)).getStream();"string"==typeofe?n=t.download?newc(t):new_(t):!0===e.readable&&M(e.read)&&M(e.on)?n=newm(t):(f.File&&einstanceofFile||einstanceofObject)&&(n=newp(t))}returnn.stream(e)},unparse:function(e,t){varr=!1,l=!0,c=",",p="\r\n",n='"',i=!1;!function(){if("object"!=typeoft)return;"string"!=typeoft.delimiter||v.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(c=t.delimiter);("boolean"==typeoft.quotes||Array.isArray(t.quotes))&&(r=t.quotes);"boolean"!=typeoft.skipEmptyLines&&"string"!=typeoft.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeoft.newline&&(p=t.newline);"string"==typeoft.quoteChar&&(n=t.quoteChar);"boolean"==typeoft.header&&(l=t.header)}();vars=newRegExp(n,"g");"string"==typeofe&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))returno(null,e,i);if("object"==typeofe[0])returno(a(e[0]),e,i)}elseif("object"==typeofe)return"string"==typeofe.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:a(e.data[0])),Array.isArray(e.data[0])||"object"==typeofe.data[0]||(e.data=[e.data])),o(e.fields||[],e.data||[],i);throw"exception: Unable to serialize unrecognized input";functiona(e){if("object"!=typeofe)return[];vart=[];for(variine)t.push(i);returnt}functiono(e,t,i){varr="";"string"==typeofe&&(e=JSON.parse(e)),"string"==typeoft&&(t=JSON.parse(t));varn=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&l){for(vara=0;a<e.length;a++)0<a&&(r+=c),r+=_(e[a],a);0<t.length&&(r+=p)}for(varo=0;o<t.length;o++){varh=n?e.length:t[o].length,u=n?e:t[o];if("greedy"!==i||""!==u.join("").trim()){for(varf=0;f<h;f++){0<f&&(r+=c);vard=n&&s?e[f]:f;r+=_(t[o][d],f)}o<t.length-1&&(!i||0<h)&&(r+=p)}}returnr}function_(e,t){if(null==e)return"";if(e.constructor===Date)returnJSON.stringify(e).slice(1,25);e=e.toString().replace(s,n+n);vari="boolean"==typeofr&&r||Array.isArray(r)&&r[t]||function(e,t){for(vari=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1}(e,v.BAD_DELIMITERS)||-1<e.indexOf(c)||" "===e.charAt(0)||" "===e.charAt(e.length-1);returni?n+e+n:e}}};if(v.RECORD_SEP=String.fromCharCode(30),v.UNIT_SEP=String.fromCharCode(31),v.BYTE_ORDER_MARK="\ufeff",v.BAD_DELIMITERS=["\r","\n",'"',v.BYTE_ORDER_MARK],v.WORKERS_SUPPORTED=!n&&!!f.Worker,v.SCRIPT_PATH=null,v.NODE_STREAM_INPUT=1,v.LocalChunkSize=10485760,v.RemoteChunkSize=5242880,v.DefaultDelimiter=",",v.Parser=C,v.ParserHandle=i,v.NetworkStreamer=c,v.FileStreamer=p,v.StringStreamer=_,v.ReadableStreamStreamer=m,v.DuplexStreamStreamer=g,f.jQuery){vard=f.jQuery;d.fn.parse=function(o){vari=o.config||{},h=[];returnthis.each(function(e){if(!("INPUT"===d(this).prop("tagName").toU