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,k={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&&k.WORKERS_SUPPORTED){varr=function(){if(!k.WORKERS_SUPPORTED)return!1;if(!a&&null===k.SCRIPT_PATH)thrownewError("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");vare=k.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===k.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,m=!0,g=",",y="\r\n",n='"',i=!1;!function(){if("object"!=typeoft)return;"string"!=typeoft.delimiter||k.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(g=t.delimiter);("boolean"==typeoft.quotes||Array.isArray(t.quotes))&&(r=t.quotes);"boolean"!=typeoft.skipEmptyLines&&"string"!=typeoft.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeoft.newline&&(y=t.newline);"string"==typeoft.quoteChar&&(n=t.quoteChar);"boolean"==typeoft.header&&(m=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&&m){for(vara=0;a<e.length;a++)0<a&&(r+=g),r+=v(e[a],a);0<t.length&&(r+=y)}for(varo=0;o<t.length;o++){varh=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(vard=[],l=0;l<h;l++){varc=s?e[l]:l;d.push(t[o][c])}u=""===d.join("").trim()}if(!u){for(varp=0;p<h;p++){0<p&&!f&&(r+=g);var_=n&&s?e[p]:p;r+=v(t[o][_],p)}o<t.length-1&&(!i||0<h&&!f)&&(r+=y)}}returnr}functionv(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,k.BAD_DELIMITERS)||-1<e.indexOf(g)||" "===e.charAt(0)||" "===e.charAt(e.length-1);returni?n+e+n:e}}};if(k.RECORD_SEP=String.fromCharCode(30),k.UNIT_SEP=String.fromCharCode(31),k.BYTE_ORDER_MARK="\ufeff",k.BAD_DELIMITERS=["\r","\n",'"',k.BYTE_ORDER_MARK],k.WORKERS_SUPPORTED=!n&&!!f.Worker,k.SCRIPT_PATH=null,k.NODE_STREAM_INPUT=1,k.LocalChunkSize=10485760,k.RemoteChunkSize=5242880,k.DefaultDelimiter=",",k.Parser=C,k.ParserHandle=i,k.NetworkStreamer=c,k.FileStreamer=p,k.StringS