/*! For license information please see 63.487f12b3.chunk.js.LICENSE.txt */
(self.webpackChunkweb_toolbox=self.webpackChunkweb_toolbox||[]).push([[63],{32376:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(9950),r=i(69935),s=i(10226),a=i(67243),o=i.n(a),l=i(77671);const c=e=>{let{data:t,isDisabled:i,hoverMessage:a,feedbackMessage:c,Icon:d=r.A,...u}=e;const{setToasterState:h}=(0,l.dq)();return n.createElement(s.A,Object.assign({disabled:!t||i,title:null!==a&&void 0!==a?a:"Copy to clipboard",variant:"contained","data-testid":"copy-to-clipboard",color:"primary"},u,{onClick:()=>{if(!t)return;const e=null!==c&&void 0!==c?c:"Content copied into clipboard: ".concat(t.substring(0,25)," \u2026");o()(t,{format:"text/plain"}),h({open:!0,message:e,type:"success",autoHideDuration:2e3})}}),n.createElement(d,null))}},50057:(e,t,i)=>{"use strict";i.d(t,{n:()=>l});var n=i(9950),r=i(25131),s=i(72772),a=i(73931);const o=(0,r.A)((e=>({root:{margin:e.spacing(1)}}))),l=e=>{let{title:t,iconType:i,children:r}=e;const l=o();return n.createElement(n.Fragment,null,n.createElement(s.m,{titleTemplate:"Web Toolbox - %s",defaultTitle:"Web Toolbox",title:t}),n.createElement("div",{className:l.root},n.createElement(a.A,{iconType:i,title:t}),r))}},73931:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(9950),r=i(82053);const s=(0,i(25131).A)((e=>({title:{wordBreak:"break-word"},titleWithIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:e.spacing(1)},icon:{height:"40px",width:"40px",marginRight:e.spacing(1)}}))),a=e=>{let{title:t,iconType:i}=e;const a=s();return n.createElement("div",{className:a.titleWithIcon},n.createElement(i,{className:a.icon}),n.createElement(r.A,{variant:"h5",className:a.title},t))}},14063:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>j,mapDispatchToProps:()=>M,mapStateToProps:()=>L});var n=i(9950),r=i(3148),s=i(32828),a=i(35607),o=i(73254),l=i(92098),c=i(83239),d=i(16491),u=i(25979),h=i(8145),f=i(23266),p=i(60899),m=i(36080),g=i(82053),b=i(10226),v=i(24086),y=i(10300),_=i(58042),w=i(33602),k=i(32376),E=i(50057),C=i(73649),x=i(33430),A=i(62160),S=i(1810),R=i(50847),O=i.n(R);const I={delimiter:"",newline:void 0,quoteChar:'"',escapeChar:'"',header:!0,transformHeader:(e,t)=>null===e||void 0===e?void 0:e.trim(),dynamicTyping:!0,preview:0,encoding:void 0,worker:!1,comments:!1,step:void 0,complete:void 0,error:void 0,download:!1,downloadRequestHeaders:void 0,downloadRequestBody:void 0,skipEmptyLines:!0,chunk:void 0,chunkSize:void 0,fastMode:void 0,beforeFirstChunk:void 0,withCredentials:void 0,transform:void 0,delimitersToGuess:[",","\t","|",";",O().RECORD_SEP,O().UNIT_SEP]};const T=(0,i(25131).A)((e=>({fileSelector:{margin:e.spacing(2),textAlign:"center"},formControl:{marginLeft:e.spacing(1),marginRight:e.spacing(1),minWidth:120},inputField:{fontFamily:"monospace",fontSize:"0.8em",whiteSpace:"nowrap",overflowY:"scroll"},toolbar:{marginHorizontal:0,marginTop:e.spacing(2),padding:0},encodedResult:{padding:e.spacing(1),borderColor:e.palette.text.disabled,borderStyle:"solid",borderWidth:1,borderRadius:e.shape.borderRadius,whiteSpace:"normal",wordBreak:"break-word"}})));function L(e){return{inputText:e.textInputs.lastCSVInputContent,inputEncoding:e.textInputs.lastCSVInputContentEncoding,inputOptions:e.textInputs.lastCSVInputOptions}}function M(e){return{storeInputText:(t,i)=>e((0,w.s)(t,i))}}const j=(0,y.Ng)(L,M)((e=>{let{inputText:t,inputEncoding:i,inputOptions:y,storeInputText:w}=e;const R=T(),L=(0,C.c)(),[M,j]=n.useState(""),[D,F]=n.useState(""),[B,P]=n.useState(""),[z,N]=n.useState(!1),U=(0,S.Pb)("md"),H=U?10:4;return n.useEffect((()=>{z&&t&&async function(){try{const e=y?JSON.parse(y):I,i=await async function(e){const t={...arguments.length>1&&void 0!==arguments[1]?arguments[1]:I,transformHeader:(e,t)=>null===e||void 0===e?void 0:e.trim()};return O().parse(e,t)}(null!==t&&void 0!==t?t:"",e);j(JSON.stringify(i.data,null,2)),F(JSON.stringify(i,null,2)),w("lastCSVInputOptions",JSON.stringify(e,null,2))}finally{N(!1)}}()}),[z,t]),n.createElement(E.n,{iconType:o.A,title:"CSV Parser"},n.createElement(c.A,{className:R.toolbar},n.createElement(d.A,{component:"div",flexGrow:1}),n.createElement(u.A,{className:R.formControl,sx:{mr:1}},n.createElement("input",{type:"file",color:"primary",accept:"text/csv",onChange:e=>function(e){var t,n;if(null===e||void 0===e||null===(t=e.target)||void 0===t||!t.files||0===e.target.files.length)return;const r=e.target.files[0],s=new FileReader;s.onload=t=>{t.target&&(w("lastCSVInputContent",t.target.result),P("".concat(r.name," (").concat((0,v.A)(r.size),")")),e.target.value="")};const a=x.X.find((e=>e.label===i));s.readAsText(r,null!==(n=null===a||void 0===a?void 0:a.name)&&void 0!==n?n:"utf-8")}(e),id:"files-selector-action","data-testid":"files-selector-action",style:{display:"none"}}),n.createElement("label",{htmlFor:"files-selector-action"},n.createElement(b.A,{variant:"contained",component:"span",color:"primary",title:"Select the CSV file from your device"},n.createElement(s.A,null)))),n.createElement(u.A,{className:R.formControl},n.createElement(h.A,{select:!0,label:"File encoding",style:U?{width:320}:void 0,id:"encoding",value:i,autoFocus:U,inputProps:{spellCheck:!1},onChange:e=>w("lastCSVInputContentEncoding",e.target.value)},x.X.map(((e,t)=>n.createElement(f.A,{key:"".concat(t,"-").concat(e.label),value:e.label},e.label," (",e.name,")")))))),n.createElement("form",{noValidate:!0,autoComplete:"off"},n.createElement(p.Ay,{container:!0,spacing:1},n.createElement(p.Ay,{item:!0,md:8,sm:12,xs:12},n.createElement(h.A,{name:"inputText",label:"CSV Source data",helperText:B,multiline:!0,minRows:H,maxRows:H,variant:"outlined",margin:"normal",inputProps:{style:{fontFamily:"monospace",fontSize:"0.8em",whiteSpace:"nowrap",overflowY:"scroll"}},fullWidth:!0,value:t,onChange:e=>w("lastCSVInputContent",e.target.value)})),n.createElement(p.Ay,{item:!0,md:4,sm:12,xs:12},n.createElement(h.A,{name:"inputOptions",label:"Parser options",helperText:n.createElement(m.A,{target:"_blank",rel:"noreferrer",href:"https://www.papaparse.com/docs#config"},"Options documentation available here!"),multiline:!0,minRows:H,maxRows:H,variant:"outlined",margin:"normal",inputProps:{style:{fontFamily:"monospace",fontSize:"0.8em",whiteSpace:"nowrap",overflowY:"scroll"}},fullWidth:!0,value:y,onChange:e=>w("lastCSVInputOptions",e.target.value)})))),n.createElement(c.A,{className:R.toolbar},n.createElement(d.A,{component:"div",flexGrow:1}),n.createElement(b.A,{sx:{mr:1},variant:"contained",title:"Parse the CVS file content",color:"primary",endIcon:n.createElement(r.A,null,"Run"),disabled:!t||z,onClick:()=>N(!0)},z?"Wait\u2026":"Run"),n.createElement(b.A,{sx:{mr:1},variant:"contained",title:"Clear the content",color:"primary",disabled:!t,onClick:function(e){e.preventDefault(),j(""),F(""),P(""),w("lastCSVInputContent","")}},n.createElement(a.A,null)),n.createElement(k.A,{data:M,sx:{mr:1}}),n.createElement(b.A,{endIcon:n.createElement(l.A,null,"Save As\u2026"),disabled:!M,variant:"contained",color:"primary",onClick:e=>{e.preventDefault(),A.Q(M)}},"Save\u2026")),M&&n.createElement(n.Fragment,null,n.createElement(g.A,null,"Parsed rows:"),n.createElement(_.A,{"data-testid":"parsed-result",style:L,language:"json",className:R.encodedResult},M),n.createElement(g.A,null,"Parsed result with metadata:"),n.createElement(_.A,{style:L,language:"json",className:R.encodedResult},D)))}))},73649:(e,t,i)=>{"use strict";i.d(t,{c:()=>a});var n=i(32284),r=i(71830),s=i(90038);const a=()=>{const{isDark:e}=(0,s.CX)();return e?n.A:r.A}},33430:(e,t,i)=>{"use strict";i.d(t,{X:()=>n});const n=[{encodings:[{labels:["unicode-1-1-utf-8","unicode11utf8","unicode20utf8","utf-8","utf8","x-unicode20utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr","replacement"],name:"replacement"},{labels:["unicodefffe","utf-16be"],name:"UTF-16BE"},{labels:["csunicode","iso-10646-ucs-2","ucs-2","unicode","unicodefeff","utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}].flatMap((e=>e.encodings.flatMap((e=>e.labels.map((t=>({label:t,name:e.name}))))))).sort(((e,t)=>e.label<t.label?-1:1))},62160:(e,t,i)=>{"use strict";i.d(t,{Q:()=>r});var n=i(34691);function r(e){if(window.require){window.require("electron").ipcRenderer.send("saveJsonAs",e)}else{const t=new Blob([e],{type:"application/json"});(0,n.saveAs)(t,"data.json")}}},3148:(e,t,i)=>{"use strict";var n=i(24994);t.A=void 0;var r=n(i(79526)),s=i(44414);t.A=(0,r.default)((0,s.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree")},32828:(e,t,i)=>{"use strict";var n=i(24994);t.A=void 0;var r=n(i(79526)),s=i(44414);t.A=(0,r.default)((0,s.jsx)("path",{d:"M18.5 16H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h12.5c1.38 0 2.5 1.12 2.5 2.5S20.88 13 19.5 13H9c-.55 0-1-.45-1-1s.45-1 1-1h9.5V9.5H9c-1.38 0-2.5 1.12-2.5 2.5s1.12 2.5 2.5 2.5h10.5c2.21 0 4-1.79 4-4s-1.79-4-4-4H7c-3.04 0-5.5 2.46-5.5 5.5s2.46 5.5 5.5 5.5h11.5z"}),"AttachmentOutlined")},35607:(e,t,i)=>{"use strict";var n=i(24994);t.A=void 0;var r=n(i(79526)),s=i(44414);t.A=(0,r.default)((0,s.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},92098:(e,t,i)=>{"use strict";var n=i(24994);t.A=void 0;var r=n(i(79526)),s=i(44414);t.A=(0,r.default)((0,s.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},23266:(e,t,i)=>{"use strict";i.d(t,{A:()=>A});var n=i(98587),r=i(58168),s=i(9950),a=i(72004),o=i(74061),l=i(99269),c=i(59254),d=i(19608),u=i(48283),h=i(13372),f=i(24184),p=i(79044),m=i(31506),g=i(40777),b=i(92455),v=i(88543),y=i(80863),_=i(68483);function w(e){return(0,_.Ay)("MuiMenuItem",e)}const k=(0,y.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var E=i(44414);const C=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],x=(0,c.Ay)(f.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.dense&&t.dense,i.divider&&t.divider,!i.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:i}=e;return(0,r.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(k.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(k.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(k.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(k.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(k.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(g.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(g.A.inset)]:{marginLeft:52},["& .".concat(v.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(v.A.inset)]:{paddingLeft:36},["& .".concat(b.A.root)]:{minWidth:36}},!i.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},i.dense&&(0,r.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(b.A.root," svg")]:{fontSize:"1.25rem"}}))})),A=s.forwardRef((function(e,t){const i=(0,u.A)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:d=!1,divider:f=!1,disableGutters:g=!1,focusVisibleClassName:b,role:v="menuitem",tabIndex:y,className:_}=i,k=(0,n.A)(i,C),A=s.useContext(h.A),S=s.useMemo((()=>({dense:d||A.dense||!1,disableGutters:g})),[A.dense,d,g]),R=s.useRef(null);(0,p.A)((()=>{l&&R.current&&R.current.focus()}),[l]);const O=(0,r.A)({},i,{dense:S.dense,divider:f,disableGutters:g}),I=(e=>{const{disabled:t,dense:i,divider:n,disableGutters:s,selected:a,classes:l}=e,c={root:["root",i&&"dense",t&&"disabled",!s&&"gutters",n&&"divider",a&&"selected"]},d=(0,o.A)(c,w,l);return(0,r.A)({},l,d)})(i),T=(0,m.A)(R,t);let L;return i.disabled||(L=void 0!==y?y:-1),(0,E.jsx)(h.A.Provider,{value:S,children:(0,E.jsx)(x,(0,r.A)({ref:T,role:v,tabIndex:L,component:c,focusVisibleClassName:(0,a.A)(I.focusVisible,b),className:(0,a.A)(I.root,_)},k,{ownerState:O,classes:I}))})}))},34691:function(e,t,i){var n,r,s;r=[],void 0===(s="function"===typeof(n=function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function s(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof i.g&&i.g.global===i.g?i.g:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,t,i){var o=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?s(l):r(l.href)?n(e,t,i):s(l,l.target="_blank")):(l.href=o.createObjectURL(e),setTimeout((function(){o.revokeObjectURL(l.href)}),4e4),setTimeout((function(){s(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,i,a){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),i);else if(r(e))n(e,i,a);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){s(o)}))}}:function(e,t,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,i);var s="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||o)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},d.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,h=u.createObjectURL(e);r?r.location=h:location.href=h,r=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});a.saveAs=l.saveAs=l,e.exports=l})?n.apply(t,r):n)||(e.exports=s)},50847:function(e,t){var i,n,r;n=[],i=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,r={},s=0,a={parse:function(i,n){var o=(n=n||{}).dynamicTyping||!1;if(w(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!w(n.transform)&&n.transform,n.worker&&a.WORKERS_SUPPORTED){var l=function(){if(!a.WORKERS_SUPPORTED)return!1;var i,n,o=(i=t.URL||t.webkitURL||null,n=e.toString(),a.BLOB_URL||(a.BLOB_URL=i.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))),l=new t.Worker(o);return l.onmessage=g,l.id=s++,r[l.id]=l}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=w(n.step),n.chunk=w(n.chunk),n.complete=w(n.complete),n.error=w(n.error),delete n.worker,void l.postMessage({input:i,config:n,workerId:l.id})}var f=null;return a.NODE_STREAM_INPUT,"string"==typeof i?(i=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(i),f=n.download?new c(n):new u(n)):!0===i.readable&&w(i.read)&&w(i.on)?f=new h(n):(t.File&&i instanceof File||i instanceof Object)&&(f=new d(n)),f.stream(i)},unparse:function(e,t){var i=!1,n=!0,r=",",s="\r\n",o='"',l=o+o,c=!1,d=null,u=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(r=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+o),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(u=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var h=new RegExp(p(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,c);if("object"==typeof e[0])return f(d||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function f(e,t,i){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&0<e.length,l=!Array.isArray(t[0]);if(o&&n){for(var c=0;c<e.length;c++)0<c&&(a+=r),a+=m(e[c],c);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var u=o?e.length:t[d].length,h=!1,f=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(h="greedy"===i?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===i&&o){for(var p=[],g=0;g<u;g++){var b=l?e[g]:g;p.push(t[d][b])}h=""===p.join("").trim()}if(!h){for(var v=0;v<u;v++){0<v&&!f&&(a+=r);var y=o&&l?e[v]:v;a+=m(t[d][y],v)}d<t.length-1&&(!i||0<u&&!f)&&(a+=s)}}return a}function m(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var n=!1;u&&"string"==typeof e&&u.test(e)&&(e="'"+e,n=!0);var s=e.toString().replace(h,l);return(n=n||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1}(s,a.BAD_DELIMITERS)||-1<s.indexOf(r)||" "===s.charAt(0)||" "===s.charAt(s.length-1))?o+s+o:s}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!i&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=m,a.ParserHandle=f,a.NetworkStreamer=c,a.FileStreamer=d,a.StringStreamer=u,a.ReadableStreamStreamer=h,t.jQuery){var o=t.jQuery;o.fn.parse=function(e){var i=e.config||{},n=[];return this.each((function(e){if("INPUT"!==o(this).prop("tagName").toUpperCase()||"file"!==o(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var r=0;r<this.files.length;r++)n.push({file:this.files[r],inputElem:this,instanceConfig:o.extend({},i)})})),r(),this;function r(){if(0!==n.length){var t,i,r,l,c=n[0];if(w(e.before)){var d=e.before(c.file,c.inputElem);if("object"==typeof d){if("abort"===d.action)return t="AbortError",i=c.file,r=c.inputElem,l=d.reason,void(w(e.error)&&e.error({name:t},i,r,l));if("skip"===d.action)return void s();"object"==typeof d.config&&(c.instanceConfig=o.extend(c.instanceConfig,d.config))}else if("skip"===d)return void s()}var u=c.instanceConfig.complete;c.instanceConfig.complete=function(e){w(u)&&u(e,c.file,c.inputElem),s()},a.parse(c.file,c.instanceConfig)}else w(e.complete)&&e.complete()}function s(){n.splice(0,1),r()}}}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new f(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,i){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var o=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=o.meta.cursor;this._finished||(this._partialLine=s.substring(l-this._baseIndex),this._baseIndex=l),o&&o.data&&(this._rowCount+=o.data.length);var c=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(n)t.postMessage({results:o,workerId:a.WORKER_ID,finished:c});else if(w(this._config.chunk)&&!i){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);o=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!c||!w(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var i=t.statusText||e;this._sendError(new Error(i))}}function d(e){var t,i;(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var r=Math.min(this._start+this._config.chunkSize,this._input.size);e=i.call(e,this._start,r)}var s=t.readAsText(e,this._config.encoding);n||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function u(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,i=this._config.chunkSize;return i?(e=t.substring(0,i),t=t.substring(i)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function h(e){l.call(this,e=e||{});var t=[],i=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=_((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=_((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=_((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=_((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,i,n,r=Math.pow(2,53),s=-r,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,d=0,u=0,h=!1,f=!1,g=[],b={data:[],errors:[],meta:{}};if(w(e.step)){var v=e.step;e.step=function(t){if(b=t,E())k();else{if(k(),0===b.data.length)return;d+=t.data.length,e.preview&&d>e.preview?i.abort():(b.data=b.data[0],v(b,c))}}}function _(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function k(){return b&&n&&(x("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(b.data=b.data.filter((function(e){return!_(e)}))),E()&&function(){if(b)if(Array.isArray(b.data[0])){for(var t=0;E()&&t<b.data.length;t++)b.data[t].forEach(i);b.data.splice(0,1)}else b.data.forEach(i);function i(t,i){w(e.transformHeader)&&(t=e.transformHeader(t,i)),g.push(t)}}(),function(){if(!b||!e.header&&!e.dynamicTyping&&!e.transform)return b;function t(t,i){var n,r=e.header?{}:[];for(n=0;n<t.length;n++){var s=n,a=t[n];e.header&&(s=n>=g.length?"__parsed_extra":g[n]),e.transform&&(a=e.transform(a,s)),a=C(s,a),"__parsed_extra"===s?(r[s]=r[s]||[],r[s].push(a)):r[s]=a}return e.header&&(n>g.length?x("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+n,u+i):n<g.length&&x("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+n,u+i)),r}var i=1;return!b.data.length||Array.isArray(b.data[0])?(b.data=b.data.map(t),i=b.data.length):b.data=t(b.data,0),e.header&&b.meta&&(b.meta.fields=g),u+=i,b}()}function E(){return e.header&&0===g.length}function C(t,i){return n=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[n]&&(e.dynamicTyping[n]=e.dynamicTypingFunction(n)),!0===(e.dynamicTyping[n]||e.dynamicTyping)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&(function(e){if(o.test(e)){var t=parseFloat(e);if(s<t&&t<r)return!0}return!1}(i)?parseFloat(i):l.test(i)?new Date(i):""===i?null:i):i;var n}function x(e,t,i,n){var r={type:e,code:t,message:i};void 0!==n&&(r.row=n),b.errors.push(r)}this.parse=function(r,s,o){var l=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(p(t)+"([^]*?)"+p(t),"gm"),n=(e=e.replace(i,"")).split("\r"),r=e.split("\n"),s=1<r.length&&r[0].length<n[0].length;if(1===n.length||s)return"\n";for(var a=0,o=0;o<n.length;o++)"\n"===n[o][0]&&a++;return a>=n.length/2?"\r\n":"\r"}(r,l)),n=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(r),b.meta.delimiter=e.delimiter);else{var c=function(t,i,n,r,s){var o,l,c,d;s=s||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var u=0;u<s.length;u++){var h=s[u],f=0,p=0,g=0;c=void 0;for(var b=new m({comments:r,delimiter:h,newline:i,preview:10}).parse(t),v=0;v<b.data.length;v++)if(n&&_(b.data[v]))g++;else{var y=b.data[v].length;p+=y,void 0!==c?0<y&&(f+=Math.abs(y-c),c=y):c=y}0<b.data.length&&(p/=b.data.length-g),(void 0===l||f<=l)&&(void 0===d||d<p)&&1.99<p&&(l=f,o=h,d=p)}return{successful:!!(e.delimiter=o),bestDelimiter:o}}(r,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);c.successful?e.delimiter=c.bestDelimiter:(n=!0,e.delimiter=a.DefaultDelimiter),b.meta.delimiter=e.delimiter}var d=y(e);return e.preview&&e.header&&d.preview++,t=r,i=new m(d),b=i.parse(t,s,o),k(),h?{meta:{paused:!0}}:b||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,i.abort(),t=w(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){c.streamer._halted?(h=!1,c.streamer.parseChunk(t,!0)):setTimeout(c.resume,3)},this.aborted=function(){return f},this.abort=function(){f=!0,i.abort(),b.meta.aborted=!0,w(e.complete)&&e.complete(b),t=""}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t,i=(e=e||{}).delimiter,n=e.newline,r=e.comments,s=e.step,o=e.preview,l=e.fastMode,c=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(c=e.escapeChar),("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=","),r===i)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<a.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var d=0,u=!1;this.parse=function(a,h,f){if("string"!=typeof a)throw new Error("Input must be a string");var m=a.length,g=i.length,b=n.length,v=r.length,y=w(s),_=[],k=[],E=[],C=d=0;if(!a)return K();if(e.header&&!h){var x=a.split(n)[0].split(i),A=[],S={},R=!1;for(var O in x){var I=x[O];w(e.transformHeader)&&(I=e.transformHeader(I,O));var T=I,L=S[I]||0;for(0<L&&(R=!0,T=I+"_"+L),S[I]=L+1;A.includes(T);)T=T+"_"+L;A.push(T)}if(R){var M=a.split(n);M[0]=A.join(i),a=M.join(n)}}if(l||!1!==l&&-1===a.indexOf(t)){for(var j=a.split(n),D=0;D<j.length;D++){if(E=j[D],d+=E.length,D!==j.length-1)d+=n.length;else if(f)return K();if(!r||E.substring(0,v)!==r){if(y){if(_=[],H(E.split(i)),G(),u)return K()}else H(E.split(i));if(o&&o<=D)return _=_.slice(0,o),K(!0)}}return K()}for(var F=a.indexOf(i,d),B=a.indexOf(n,d),P=new RegExp(p(c)+p(t),"g"),z=a.indexOf(t,d);;)if(a[d]!==t)if(r&&0===E.length&&a.substring(d,d+v)===r){if(-1===B)return K();d=B+b,B=a.indexOf(n,d),F=a.indexOf(i,d)}else if(-1!==F&&(F<B||-1===B))E.push(a.substring(d,F)),d=F+g,F=a.indexOf(i,d);else{if(-1===B)break;if(E.push(a.substring(d,B)),W(B+b),y&&(G(),u))return K();if(o&&_.length>=o)return K(!0)}else for(z=d,d++;;){if(-1===(z=a.indexOf(t,z+1)))return f||k.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:_.length,index:d}),q();if(z===m-1)return q(a.substring(d,z).replace(P,t));if(t!==c||a[z+1]!==c){if(t===c||0===z||a[z-1]!==c){-1!==F&&F<z+1&&(F=a.indexOf(i,z+1)),-1!==B&&B<z+1&&(B=a.indexOf(n,z+1));var N=V(-1===B?F:Math.min(F,B));if(a.substr(z+1+N,g)===i){E.push(a.substring(d,z).replace(P,t)),a[d=z+1+N+g]!==t&&(z=a.indexOf(t,d)),F=a.indexOf(i,d),B=a.indexOf(n,d);break}var U=V(B);if(a.substring(z+1+U,z+1+U+b)===n){if(E.push(a.substring(d,z).replace(P,t)),W(z+1+U+b),F=a.indexOf(i,d),z=a.indexOf(t,d),y&&(G(),u))return K();if(o&&_.length>=o)return K(!0);break}k.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:_.length,index:d}),z++}}else z++}return q();function H(e){_.push(e),C=d}function V(e){var t=0;if(-1!==e){var i=a.substring(z+1,e);i&&""===i.trim()&&(t=i.length)}return t}function q(e){return f||(void 0===e&&(e=a.substring(d)),E.push(e),d=m,H(E),y&&G()),K()}function W(e){d=e,H(E),E=[],B=a.indexOf(n,d)}function K(e){return{data:_,errors:k,meta:{delimiter:i,linebreak:n,aborted:u,truncated:!!e,cursor:C+(h||0)}}}function G(){s(K()),_=[],k=[]}},this.abort=function(){u=!0},this.getCharIndex=function(){return d}}function g(e){var t=e.data,i=r[t.workerId],n=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){n=!0,b(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(w(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!n);a++);delete t.results}else w(i.userChunk)&&(i.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!n&&b(t.workerId,t.results)}function b(e,t){var i=r[e];w(i.userComplete)&&i.userComplete(t),i.terminate(),delete r[e]}function v(){throw new Error("Not implemented.")}function y(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=y(e[i]);return t}function _(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return n&&(t.onmessage=function(e){var i=e.data;if(void 0===a.WORKER_ID&&i&&(a.WORKER_ID=i.workerId),"string"==typeof i.input)t.postMessage({workerId:a.WORKER_ID,results:a.parse(i.input,i.config),finished:!0});else if(t.File&&i.input instanceof File||i.input instanceof Object){var n=a.parse(i.input,i.config);n&&t.postMessage({workerId:a.WORKER_ID,results:n,finished:!0})}}),(c.prototype=Object.create(l.prototype)).constructor=c,(d.prototype=Object.create(l.prototype)).constructor=d,(u.prototype=Object.create(u.prototype)).constructor=u,(h.prototype=Object.create(l.prototype)).constructor=h,a},void 0===(r="function"===typeof i?i.apply(t,n):i)||(e.exports=r)},24086:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});const n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],s=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],a=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],o=(e,t,i)=>{let n=e;return"string"===typeof t||Array.isArray(t)?n=e.toLocaleString(t,i):!0!==t&&void 0===i||(n=e.toLocaleString(void 0,i)),n};function l(e,t){if(!Number.isFinite(e))throw new TypeError("Expected a finite number, got ".concat(typeof e,": ").concat(e));const i=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?a:s:t.binary?r:n,l=t.space?" ":"";if(t.signed&&0===e)return" 0".concat(l).concat(i[0]);const c=e<0,d=c?"-":t.signed?"+":"";let u;if(c&&(e=-e),void 0!==t.minimumFractionDigits&&(u={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(u={maximumFractionDigits:t.maximumFractionDigits,...u}),e<1){return d+o(e,t.locale,u)+l+i[0]}const h=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),i.length-1);e/=(t.binary?1024:1e3)**h,u||(e=e.toPrecision(3));return d+o(Number(e),t.locale,u)+l+i[h]}}}]);