!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:{},r=!f.document&&!!f.postMessage,o=r&&/(\?|&)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){varn=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=v,t.id=u++,h[t.id]=t}();returnn.userStep=t.step,n.userChunk=t.chunk,n.userComplete=t.complete,n.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,voidn.postMessage({input:e,config:t,workerId:n.id})}varr=null;{if(e===k.NODE_STREAM_INPUT)return(r=newg(t)).getStream();"string"==typeofe?r=t.download?newl(t):new_(t):!0===e.readable&&M(e.read)&&M(e.on)?r=newm(t):(f.File&&einstanceofFile||einstanceofObject)&&(r=newp(t))}returnr.stream(e)},unparse:function(e,t){varn=!1,f=!0,d=",",c="\r\n",r='"';!function(){if("object"!=typeoft)return;"string"!=typeoft.delimiter||k.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(d=t.delimiter);("boolean"==typeoft.quotes||t.quotesinstanceofArray)&&(n=t.quotes);"string"==typeoft.newline&&(c=t.newline);"string"==typeoft.quoteChar&&(r=t.quoteChar);"boolean"==typeoft.header&&(f=t.header)}();vars=newRegExp(r,"g");"string"==typeofe&&(e=JSON.parse(e));if(einstanceofArray){if(!e.length||e[0]instanceofArray)returna(null,e);if("object"==typeofe[0])returna(i(e[0]),e)}elseif("object"==typeofe)return"string"==typeofe.data&&(e.data=JSON.parse(e.data)),e.datainstanceofArray&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=e.data[0]instanceofArray?e.fields:i(e.data[0])),e.data[0]instanceofArray||"object"==typeofe.data[0]||(e.data=[e.data])),a(e.fields||[],e.data||[]);throw"exception: Unable to serialize unrecognized input";functioni(e){if("object"!=typeofe)return[];vart=[];for(variine)t.push(i);returnt}functiona(e,t){vari="";"string"==typeofe&&(e=JSON.parse(e)),"string"==typeoft&&(t=JSON.parse(t));varn=einstanceofArray&&0<e.length,r=!(t[0]instanceofArray);if(n&&f){for(vars=0;s<e.length;s++)0<s&&(i+=d),i+=l(e[s],s);0<t.length&&(i+=c)}for(vara=0;a<t.length;a++){for(varo=n?e.length:t[a].length,h=0;h<o;h++){0<h&&(i+=d);varu=n&&r?e[h]:h;i+=l(t[a][u],h)}a<t.length-1&&(i+=c)}returni}functionl(e,t){if(null==e)return"";if(e.constructor===Date)returnJSON.stringify(e).slice(1,25);e=e.toString().replace(s,r+r);vari="boolean"==typeofn&&n||ninstanceofArray&&n[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(d)||" "===e.charAt(0)||" "===e.charAt(e.length-1);returni?r+e+r: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=!r&&!!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=l,k.FileStreamer=p,k.StringStreamer=_,k.ReadableStreamStreamer=m,k.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").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return!0;for(vart=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)})}),e(),this;functione(){if(0!==h.