@oardi/ts-utils 0.0.61 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +5 -5
- package/index.mjs +62 -59
- package/index.umd.js +5 -5
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ue={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class Se{static getScreenWidth(){return document.documentElement.clientWidth}static getScreenHeight(){return document.documentElement.clientHeight}}class he{static breakPoints=Ue;static getCurrentBreakpoint(){return he.getBreakpointByScreenWidth(Se.getScreenWidth())}static getBreakpointByScreenWidth(e=Se.getScreenWidth()){let n="xs";for(const s of Object.keys(he.breakPoints))he.breakPoints[s]<=e&&(n=s);return{breakpoint:n,screenWidth:e}}static isScreenGreaterThan(e){return Se.getScreenWidth()>he.breakPoints[e]}static isScreenSmallerThan(e){return Se.getScreenWidth()<he.breakPoints[e]}}var ee=(a=>(a.opera="opera",a.firefox="firefox",a.safari="safari",a.ie="ie",a.edgeLegacy="edgeLegacy",a.edg="edg",a.chrome="chrome",a.iOS="iOS",a.iOsSafari="iOsSafari",a.edgiOs="edgiOs",a.headlessChrome="headlessChrome",a.nodeRuntime="nodeRuntime",a.electron="electron",a))(ee||{});class H{static getUserAgent(){return this.isBrowserEnv()?navigator.userAgent.toLowerCase():""}static resolveUserAgent(e){return(e??this.getUserAgent()).toLowerCase()}static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return n.includes("opr/")||n.includes("opera")}static isFirefox(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(e){if(!this.isBrowserEnv())return!1;const n=navigator.vendor.includes("Apple"),s=this.resolveUserAgent(e),d=s.includes("safari"),_=!(s.includes("crios")||s.includes("chrome")||s.includes("android")||s.includes("opr/")||s.includes("edg"));return n&&d&&_}static isIOS(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e),s=/iphone|ipad|ipod/.test(n),d=n.includes("macintosh")&&navigator.maxTouchPoints>1;return s||d}static isIosSafari(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return this.isIOS(n)&&this.isSafari(n)}static isEdgeLegacy(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return!!window.StyleMedia&&!n.includes("edg/")}static isEdg(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("edg/"):!1}static isEdgeIos(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return this.isIOS(n)&&n.includes("edgios")}static isIE(){return this.isBrowserEnv()?typeof document<"u"&&!!document.documentMode:!1}static isChrome(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e),s=navigator.vendor.includes("Google"),d=n.includes("chrome")||n.includes("crios"),_=!this.isEdg(n)&&!this.isOpera(n);return s&&d&&_}static isElectron(e){const n=!!(typeof process<"u"&&process.versions?.electron),s=this.resolveUserAgent(e);return n||s.includes("electron")}static isHeadlessChrome(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("headlesschrome"):!1}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){const e=H.getUserAgent();if(H.isElectron(e))return ee.electron;if(H.isNodeRuntime())return ee.nodeRuntime;if(H.isOpera(e))return ee.opera;if(H.isFirefox(e))return ee.firefox;if(H.isEdgeIos(e))return ee.edgiOs;if(H.isIosSafari(e))return ee.iOsSafari;if(H.isIOS(e))return ee.iOS;if(H.isHeadlessChrome(e))return ee.headlessChrome;if(H.isIE())return ee.ie;if(H.isEdgeLegacy(e))return ee.edgeLegacy;if(H.isEdg(e))return ee.edg;if(H.isChrome(e))return ee.chrome;if(H.isSafari(e))return ee.safari;throw new Error("Browser could not be detected: "+e)}}class je{static toBlob(e,n,s=!1,d){return new Promise((_,z)=>{e.toBlob(I=>{I?_(I):z(new Error("canvas.toBlob returned null"))},n,s?d:void 0)})}}function Be(a){return navigator.clipboard.writeText(a)}function Me(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ee={exports:{}};var Ye=Ee.exports,Re;function Pe(){return Re||(Re=1,(function(a,e){((n,s)=>{a.exports=s()})(Ye,function n(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},d,_=!s.document&&!!s.postMessage,z=s.IS_PAPA_WORKER||!1,I={},K=0,p={};function U(t){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(r){var i=ce(r);i.chunkSize=parseInt(i.chunkSize),r.step||r.chunk||(i.chunkSize=null),this._handle=new ne(i),(this._handle.streamer=this)._config=i}).call(this,t),this.parseChunk=function(r,i){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let b=this._config.newline;b||(y=this._config.quoteChar||'"',b=this._handle.guessLineEndings(r,y)),r=[...r.split(b).slice(u)].join(b)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(y=this._config.beforeFirstChunk(r))!==void 0&&(r=y),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,y=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=y.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),y&&y.data&&(this._rowCount+=y.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),z)s.postMessage({results:y,workerId:p.WORKER_ID,finished:u});else if(L(this._config.chunk)&&!i){if(this._config.chunk(y,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=y=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(y.data),this._completeResults.errors=this._completeResults.errors.concat(y.errors),this._completeResults.meta=y.meta),this._completed||!u||!L(this._config.complete)||y&&y.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||y&&y.meta.paused||this._nextChunk(),y}this._halted=!0},this._sendError=function(r){L(this._config.error)?this._config.error(r):z&&this._config.error&&s.postMessage({workerId:p.WORKER_ID,error:r,finished:!1})}}function j(t){var r;(t=t||{}).chunkSize||(t.chunkSize=p.RemoteChunkSize),U.call(this,t),this._nextChunk=_?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),_||(r.onload=V(this._chunkLoaded,this),r.onerror=V(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!_),this._config.downloadRequestHeaders){var i,u=this._config.downloadRequestHeaders;for(i in u)r.setRequestHeader(i,u[i])}var y;this._config.chunkSize&&(y=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+y));try{r.send(this._config.downloadRequestBody)}catch(b){this._chunkError(b.message)}_&&r.status===0&&this._chunkError()}},this._chunkLoaded=function(){r.readyState===4&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(i=>(i=i.getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(i){i=r.statusText||i,this._sendError(new Error(i))}}function Q(t){(t=t||{}).chunkSize||(t.chunkSize=p.LocalChunkSize),U.call(this,t);var r,i,u=typeof FileReader<"u";this.stream=function(y){this._input=y,i=y.slice||y.webkitSlice||y.mozSlice,u?((r=new FileReader).onload=V(this._chunkLoaded,this),r.onerror=V(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var y=this._input,b=(this._config.chunkSize&&(b=Math.min(this._start+this._config.chunkSize,this._input.size),y=i.call(y,this._start,b)),r.readAsText(y,this._config.encoding));u||this._chunkLoaded({target:{result:b}})},this._chunkLoaded=function(y){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(y.target.result)},this._chunkError=function(){this._sendError(r.error)}}function q(t){var r;U.call(this,t=t||{}),this.stream=function(i){return r=i,this._nextChunk()},this._nextChunk=function(){var i,u;if(!this._finished)return i=this._config.chunkSize,r=i?(u=r.substring(0,i),r.substring(i)):(u=r,""),this._finished=!r,this.parseChunk(u)}}function X(t){U.call(this,t=t||{});var r=[],i=!0,u=!1;this.pause=function(){U.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){U.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(y){this._input=y,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){u&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):i=!0},this._streamData=V(function(y){try{r.push(typeof y=="string"?y:y.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(b){this._streamError(b)}},this),this._streamError=V(function(y){this._streamCleanUp(),this._sendError(y)},this),this._streamEnd=V(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=V(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ne(t){var r,i,u,y,b=Math.pow(2,53),v=-b,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,f=/^((\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)))$/,o=this,c=0,l=0,w=!1,m=!1,k=[],g={data:[],errors:[],meta:{}};function M(E){return t.skipEmptyLines==="greedy"?E.join("").trim()==="":E.length===1&&E[0].length===0}function C(){if(g&&u&&(N("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),u=!1),t.skipEmptyLines&&(g.data=g.data.filter(function(S){return!M(S)})),B()){let S=function(R,Y){L(t.transformHeader)&&(R=t.transformHeader(R,Y)),k.push(R)};if(g)if(Array.isArray(g.data[0])){for(var E=0;B()&&E<g.data.length;E++)g.data[E].forEach(S);g.data.splice(0,1)}else g.data.forEach(S)}function x(S,R){for(var Y=t.header?{}:[],A=0;A<S.length;A++){var F=A,$=S[A],$=((ie,O)=>(P=>(t.dynamicTypingFunction&&t.dynamicTyping[P]===void 0&&(t.dynamicTyping[P]=t.dynamicTypingFunction(P)),(t.dynamicTyping[P]||t.dynamicTyping)===!0))(ie)?O==="true"||O==="TRUE"||O!=="false"&&O!=="FALSE"&&((P=>{if(h.test(P)&&(P=parseFloat(P),v<P&&P<b))return 1})(O)?parseFloat(O):f.test(O)?new Date(O):O===""?null:O):O)(F=t.header?A>=k.length?"__parsed_extra":k[A]:F,$=t.transform?t.transform($,F):$);F==="__parsed_extra"?(Y[F]=Y[F]||[],Y[F].push($)):Y[F]=$}return t.header&&(A>k.length?N("FieldMismatch","TooManyFields","Too many fields: expected "+k.length+" fields but parsed "+A,l+R):A<k.length&&N("FieldMismatch","TooFewFields","Too few fields: expected "+k.length+" fields but parsed "+A,l+R)),Y}var D;g&&(t.header||t.dynamicTyping||t.transform)&&(D=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(x),D=g.data.length):g.data=x(g.data,0),t.header&&g.meta&&(g.meta.fields=k),l+=D)}function B(){return t.header&&k.length===0}function N(E,x,D,S){E={type:E,code:x,message:D},S!==void 0&&(E.row=S),g.errors.push(E)}L(t.step)&&(y=t.step,t.step=function(E){g=E,B()?C():(C(),g.data.length!==0&&(c+=E.data.length,t.preview&&c>t.preview?i.abort():(g.data=g.data[0],y(g,o))))}),this.parse=function(E,x,D){var S=t.quoteChar||'"',S=(t.newline||(t.newline=this.guessLineEndings(E,S)),u=!1,t.delimiter?L(t.delimiter)&&(t.delimiter=t.delimiter(E),g.meta.delimiter=t.delimiter):((S=((R,Y,A,F,$)=>{var ie,O,P,de;$=$||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var me=0;me<$.length;me++){for(var se,we=$[me],Z=0,ae=0,J=0,re=(P=void 0,new ge({comments:F,delimiter:we,newline:Y,preview:10}).parse(R)),le=0;le<re.data.length;le++)A&&M(re.data[le])?J++:(se=re.data[le].length,ae+=se,P===void 0?P=se:0<se&&(Z+=Math.abs(se-P),P=se));0<re.data.length&&(ae/=re.data.length-J),(O===void 0||Z<=O)&&(de===void 0||de<ae)&&1.99<ae&&(O=Z,ie=we,de=ae)}return{successful:!!(t.delimiter=ie),bestDelimiter:ie}})(E,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=S.bestDelimiter:(u=!0,t.delimiter=p.DefaultDelimiter),g.meta.delimiter=t.delimiter),ce(t));return t.preview&&t.header&&S.preview++,r=E,i=new ge(S),g=i.parse(r,x,D),C(),w?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return w},this.pause=function(){w=!0,i.abort(),r=L(t.chunk)?"":r.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(w=!1,o.streamer.parseChunk(r,!0)):setTimeout(o.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,i.abort(),g.meta.aborted=!0,L(t.complete)&&t.complete(g),r=""},this.guessLineEndings=function(R,S){R=R.substring(0,1048576);var S=new RegExp(ue(S)+"([^]*?)"+ue(S),"gm"),D=(R=R.replace(S,"")).split("\r"),S=R.split(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ue={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class Se{static getScreenWidth(){return document.documentElement.clientWidth}static getScreenHeight(){return document.documentElement.clientHeight}}class he{static breakPoints=Ue;static getCurrentBreakpoint(){return he.getBreakpointByScreenWidth(Se.getScreenWidth())}static getBreakpointByScreenWidth(e=Se.getScreenWidth()){let n="xs";for(const s of Object.keys(he.breakPoints))he.breakPoints[s]<=e&&(n=s);return{breakpoint:n,screenWidth:e}}static isScreenGreaterThan(e){return Se.getScreenWidth()>he.breakPoints[e]}static isScreenSmallerThan(e){return Se.getScreenWidth()<he.breakPoints[e]}}var ee=(a=>(a.opera="opera",a.firefox="firefox",a.safari="safari",a.ie="ie",a.edgeLegacy="edgeLegacy",a.edg="edg",a.chrome="chrome",a.iOS="iOS",a.iOsSafari="iOsSafari",a.edgiOs="edgiOs",a.headlessChrome="headlessChrome",a.nodeRuntime="nodeRuntime",a.electron="electron",a))(ee||{});class H{static getUserAgent(){return this.isBrowserEnv()?navigator.userAgent.toLowerCase():""}static resolveUserAgent(e){return(e??this.getUserAgent()).toLowerCase()}static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return n.includes("opr/")||n.includes("opera")}static isFirefox(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(e){if(!this.isBrowserEnv())return!1;const n=navigator.vendor.includes("Apple"),s=this.resolveUserAgent(e),d=s.includes("safari"),_=!(s.includes("crios")||s.includes("chrome")||s.includes("android")||s.includes("opr/")||s.includes("edg"));return n&&d&&_}static isIOS(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e),s=/iphone|ipad|ipod/.test(n),d=n.includes("macintosh")&&navigator.maxTouchPoints>1;return s||d}static isIosSafari(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return this.isIOS(n)&&this.isSafari(n)}static isEdgeLegacy(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return!!window.StyleMedia&&!n.includes("edg/")}static isEdg(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("edg/"):!1}static isEdgeIos(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return this.isIOS(n)&&n.includes("edgios")}static isIE(){return this.isBrowserEnv()?typeof document<"u"&&!!document.documentMode:!1}static isChrome(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e),s=navigator.vendor.includes("Google"),d=n.includes("chrome")||n.includes("crios"),_=!this.isEdg(n)&&!this.isOpera(n);return s&&d&&_}static isElectron(e){const n=!!(typeof process<"u"&&process.versions?.electron),s=this.resolveUserAgent(e);return n||s.includes("electron")}static isHeadlessChrome(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("headlesschrome"):!1}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){const e=H.getUserAgent();if(H.isElectron(e))return ee.electron;if(H.isNodeRuntime())return ee.nodeRuntime;if(H.isOpera(e))return ee.opera;if(H.isFirefox(e))return ee.firefox;if(H.isEdgeIos(e))return ee.edgiOs;if(H.isIosSafari(e))return ee.iOsSafari;if(H.isIOS(e))return ee.iOS;if(H.isHeadlessChrome(e))return ee.headlessChrome;if(H.isIE())return ee.ie;if(H.isEdgeLegacy(e))return ee.edgeLegacy;if(H.isEdg(e))return ee.edg;if(H.isChrome(e))return ee.chrome;if(H.isSafari(e))return ee.safari;throw new Error("Browser could not be detected: "+e)}}class je{static toBlob(e,n,s=!1,d){return new Promise((_,z)=>{e.toBlob(I=>{I?_(I):z(new Error("canvas.toBlob returned null"))},n,s?d:void 0)})}}function Be(a){return navigator.clipboard.writeText(a)}function Me(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var be={exports:{}};var Ye=be.exports,Re;function Pe(){return Re||(Re=1,(function(a,e){((n,s)=>{a.exports=s()})(Ye,function n(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},d,_=!s.document&&!!s.postMessage,z=s.IS_PAPA_WORKER||!1,I={},K=0,p={};function U(t){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(r){var i=ce(r);i.chunkSize=parseInt(i.chunkSize),r.step||r.chunk||(i.chunkSize=null),this._handle=new ne(i),(this._handle.streamer=this)._config=i}).call(this,t),this.parseChunk=function(r,i){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let E=this._config.newline;E||(y=this._config.quoteChar||'"',E=this._handle.guessLineEndings(r,y)),r=[...r.split(E).slice(u)].join(E)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(y=this._config.beforeFirstChunk(r))!==void 0&&(r=y),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,y=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=y.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),y&&y.data&&(this._rowCount+=y.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),z)s.postMessage({results:y,workerId:p.WORKER_ID,finished:u});else if(L(this._config.chunk)&&!i){if(this._config.chunk(y,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=y=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(y.data),this._completeResults.errors=this._completeResults.errors.concat(y.errors),this._completeResults.meta=y.meta),this._completed||!u||!L(this._config.complete)||y&&y.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||y&&y.meta.paused||this._nextChunk(),y}this._halted=!0},this._sendError=function(r){L(this._config.error)?this._config.error(r):z&&this._config.error&&s.postMessage({workerId:p.WORKER_ID,error:r,finished:!1})}}function j(t){var r;(t=t||{}).chunkSize||(t.chunkSize=p.RemoteChunkSize),U.call(this,t),this._nextChunk=_?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),_||(r.onload=V(this._chunkLoaded,this),r.onerror=V(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!_),this._config.downloadRequestHeaders){var i,u=this._config.downloadRequestHeaders;for(i in u)r.setRequestHeader(i,u[i])}var y;this._config.chunkSize&&(y=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+y));try{r.send(this._config.downloadRequestBody)}catch(E){this._chunkError(E.message)}_&&r.status===0&&this._chunkError()}},this._chunkLoaded=function(){r.readyState===4&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(i=>(i=i.getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(i){i=r.statusText||i,this._sendError(new Error(i))}}function Q(t){(t=t||{}).chunkSize||(t.chunkSize=p.LocalChunkSize),U.call(this,t);var r,i,u=typeof FileReader<"u";this.stream=function(y){this._input=y,i=y.slice||y.webkitSlice||y.mozSlice,u?((r=new FileReader).onload=V(this._chunkLoaded,this),r.onerror=V(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var y=this._input,E=(this._config.chunkSize&&(E=Math.min(this._start+this._config.chunkSize,this._input.size),y=i.call(y,this._start,E)),r.readAsText(y,this._config.encoding));u||this._chunkLoaded({target:{result:E}})},this._chunkLoaded=function(y){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(y.target.result)},this._chunkError=function(){this._sendError(r.error)}}function q(t){var r;U.call(this,t=t||{}),this.stream=function(i){return r=i,this._nextChunk()},this._nextChunk=function(){var i,u;if(!this._finished)return i=this._config.chunkSize,r=i?(u=r.substring(0,i),r.substring(i)):(u=r,""),this._finished=!r,this.parseChunk(u)}}function X(t){U.call(this,t=t||{});var r=[],i=!0,u=!1;this.pause=function(){U.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){U.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(y){this._input=y,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){u&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):i=!0},this._streamData=V(function(y){try{r.push(typeof y=="string"?y:y.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(E){this._streamError(E)}},this),this._streamError=V(function(y){this._streamCleanUp(),this._sendError(y)},this),this._streamEnd=V(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=V(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ne(t){var r,i,u,y,E=Math.pow(2,53),v=-E,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,f=/^((\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)))$/,o=this,c=0,l=0,w=!1,m=!1,k=[],g={data:[],errors:[],meta:{}};function M(b){return t.skipEmptyLines==="greedy"?b.join("").trim()==="":b.length===1&&b[0].length===0}function C(){if(g&&u&&(N("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),u=!1),t.skipEmptyLines&&(g.data=g.data.filter(function(S){return!M(S)})),B()){let S=function(R,Y){L(t.transformHeader)&&(R=t.transformHeader(R,Y)),k.push(R)};if(g)if(Array.isArray(g.data[0])){for(var b=0;B()&&b<g.data.length;b++)g.data[b].forEach(S);g.data.splice(0,1)}else g.data.forEach(S)}function x(S,R){for(var Y=t.header?{}:[],A=0;A<S.length;A++){var F=A,$=S[A],$=((ie,O)=>(P=>(t.dynamicTypingFunction&&t.dynamicTyping[P]===void 0&&(t.dynamicTyping[P]=t.dynamicTypingFunction(P)),(t.dynamicTyping[P]||t.dynamicTyping)===!0))(ie)?O==="true"||O==="TRUE"||O!=="false"&&O!=="FALSE"&&((P=>{if(h.test(P)&&(P=parseFloat(P),v<P&&P<E))return 1})(O)?parseFloat(O):f.test(O)?new Date(O):O===""?null:O):O)(F=t.header?A>=k.length?"__parsed_extra":k[A]:F,$=t.transform?t.transform($,F):$);F==="__parsed_extra"?(Y[F]=Y[F]||[],Y[F].push($)):Y[F]=$}return t.header&&(A>k.length?N("FieldMismatch","TooManyFields","Too many fields: expected "+k.length+" fields but parsed "+A,l+R):A<k.length&&N("FieldMismatch","TooFewFields","Too few fields: expected "+k.length+" fields but parsed "+A,l+R)),Y}var D;g&&(t.header||t.dynamicTyping||t.transform)&&(D=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(x),D=g.data.length):g.data=x(g.data,0),t.header&&g.meta&&(g.meta.fields=k),l+=D)}function B(){return t.header&&k.length===0}function N(b,x,D,S){b={type:b,code:x,message:D},S!==void 0&&(b.row=S),g.errors.push(b)}L(t.step)&&(y=t.step,t.step=function(b){g=b,B()?C():(C(),g.data.length!==0&&(c+=b.data.length,t.preview&&c>t.preview?i.abort():(g.data=g.data[0],y(g,o))))}),this.parse=function(b,x,D){var S=t.quoteChar||'"',S=(t.newline||(t.newline=this.guessLineEndings(b,S)),u=!1,t.delimiter?L(t.delimiter)&&(t.delimiter=t.delimiter(b),g.meta.delimiter=t.delimiter):((S=((R,Y,A,F,$)=>{var ie,O,P,de;$=$||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var me=0;me<$.length;me++){for(var se,we=$[me],Z=0,ae=0,J=0,re=(P=void 0,new ge({comments:F,delimiter:we,newline:Y,preview:10}).parse(R)),le=0;le<re.data.length;le++)A&&M(re.data[le])?J++:(se=re.data[le].length,ae+=se,P===void 0?P=se:0<se&&(Z+=Math.abs(se-P),P=se));0<re.data.length&&(ae/=re.data.length-J),(O===void 0||Z<=O)&&(de===void 0||de<ae)&&1.99<ae&&(O=Z,ie=we,de=ae)}return{successful:!!(t.delimiter=ie),bestDelimiter:ie}})(b,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=S.bestDelimiter:(u=!0,t.delimiter=p.DefaultDelimiter),g.meta.delimiter=t.delimiter),ce(t));return t.preview&&t.header&&S.preview++,r=b,i=new ge(S),g=i.parse(r,x,D),C(),w?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return w},this.pause=function(){w=!0,i.abort(),r=L(t.chunk)?"":r.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(w=!1,o.streamer.parseChunk(r,!0)):setTimeout(o.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,i.abort(),g.meta.aborted=!0,L(t.complete)&&t.complete(g),r=""},this.guessLineEndings=function(R,S){R=R.substring(0,1048576);var S=new RegExp(ue(S)+"([^]*?)"+ue(S),"gm"),D=(R=R.replace(S,"")).split("\r"),S=R.split(`
|
|
2
2
|
`),R=1<S.length&&S[0].length<D[0].length;if(D.length===1||R)return`
|
|
3
3
|
`;for(var Y=0,A=0;A<D.length;A++)D[A][0]===`
|
|
4
4
|
`&&Y++;return Y>=D.length/2?`\r
|
|
5
|
-
`:"\r"}}function ue(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ge(t){var r=(t=t||{}).delimiter,i=t.newline,u=t.comments,y=t.step,
|
|
5
|
+
`:"\r"}}function ue(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ge(t){var r=(t=t||{}).delimiter,i=t.newline,u=t.comments,y=t.step,E=t.preview,v=t.fastMode,h=null,f=!1,o=t.quoteChar==null?'"':t.quoteChar,c=o;if(t.escapeChar!==void 0&&(c=t.escapeChar),(typeof r!="string"||-1<p.BAD_DELIMITERS.indexOf(r))&&(r=","),u===r)throw new Error("Comment character same as delimiter");u===!0?u="#":(typeof u!="string"||-1<p.BAD_DELIMITERS.indexOf(u))&&(u=!1),i!==`
|
|
6
6
|
`&&i!=="\r"&&i!==`\r
|
|
7
7
|
`&&(i=`
|
|
8
|
-
`);var l=0,w=!1;this.parse=function(m,k,g){if(typeof m!="string")throw new Error("Input must be a string");var M=m.length,C=r.length,B=i.length,N=u.length,
|
|
9
|
-
`,v='"',h=v+v,f=!1,o=null,c=!1,l=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||p.BAD_DELIMITERS.filter(function(k){return r.delimiter.indexOf(k)!==-1}).length||(y=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(i=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(f=r.skipEmptyLines),typeof r.newline=="string"&&(
|
|
10
|
-
`,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!_&&!!s.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=ge,p.ParserHandle=ne,p.NetworkStreamer=j,p.FileStreamer=Q,p.StringStreamer=q,p.ReadableStreamStreamer=X,s.jQuery&&((d=s.jQuery).fn.parse=function(t){var r=t.config||{},i=[];return this.each(function(b){if(!(d(this).prop("tagName").toUpperCase()==="INPUT"&&d(this).attr("type").toLowerCase()==="file"&&s.FileReader)||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:d.extend({},r)})}),u(),this;function u(){if(i.length===0)L(t.complete)&&t.complete();else{var b,v,h,f,o=i[0];if(L(t.before)){var c=t.before(o.file,o.inputElem);if(typeof c=="object"){if(c.action==="abort")return b="AbortError",v=o.file,h=o.inputElem,f=c.reason,void(L(t.error)&&t.error({name:b},v,h,f));if(c.action==="skip")return void y();typeof c.config=="object"&&(o.instanceConfig=d.extend(o.instanceConfig,c.config))}else if(c==="skip")return void y()}var l=o.instanceConfig.complete;o.instanceConfig.complete=function(w){L(l)&&l(w,o.file,o.inputElem),y()},p.parse(o.file,o.instanceConfig)}}function y(){i.splice(0,1),u()}}),z&&(s.onmessage=function(t){t=t.data,p.WORKER_ID===void 0&&t&&(p.WORKER_ID=t.workerId),typeof t.input=="string"?s.postMessage({workerId:p.WORKER_ID,results:p.parse(t.input,t.config),finished:!0}):(s.File&&t.input instanceof File||t.input instanceof Object)&&(t=p.parse(t.input,t.config))&&s.postMessage({workerId:p.WORKER_ID,results:t,finished:!0})}),(j.prototype=Object.create(U.prototype)).constructor=j,(Q.prototype=Object.create(U.prototype)).constructor=Q,(q.prototype=Object.create(q.prototype)).constructor=q,(X.prototype=Object.create(U.prototype)).constructor=X,p})})(Ee)),Ee.exports}var We=Pe();const Ne=Me(We),{parse:qe,unparse:Ke}=Ne;class Je{static unparse(e,n){return Ke(e,n)}static parse(e){return new Promise((n,s)=>{qe(e,{header:!0,complete:d=>n(d),error:d=>s(d)})})}}class Fe{static revokeObjectUrlDelay=4e4;static utf8BomMimeType=/^\s*(?:text\/\S*|application\/xml|\S+\/\S+\+xml)\s*;\s*charset\s*=\s*utf-8/i;static saveAs(e,n,s={}){this.assertBrowserEnvironment();const d=this.resolveFileName(e,n),_=s.autoBom?this.addUtf8Bom(e):e;this.downloadBlob(_,d)}static resolveFileName(e,n){return typeof n=="string"&&n.trim().length>0?n:typeof File<"u"&&e instanceof File&&e.name.trim().length>0?e.name:"download"}static addUtf8Bom(e){return this.utf8BomMimeType.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}static assertBrowserEnvironment(){if(typeof window>"u"||typeof document>"u"||typeof URL>"u"||typeof URL.createObjectURL!="function"||typeof URL.revokeObjectURL!="function")throw new Error("DownloadHelper is only available in a browser environment with object URL support.")}static downloadBlob(e,n){const s=URL.createObjectURL(e);try{this.clickDownloadLink(s,n)}finally{window.setTimeout(()=>URL.revokeObjectURL(s),this.revokeObjectUrlDelay)}}static clickDownloadLink(e,n){const s=document.body??document.documentElement;if(!s)throw new Error("DownloadHelper.saveAs requires an initialized document.");const d=document.createElement("a");try{d.download=n,d.href=e,d.target="_blank",d.rel="noopener noreferrer",d.style.display="none",s.appendChild(d),d.click()}finally{d.remove()}}}class Qe{static getEnumValue(e,n){if(n in e)return e[n];throw Error(`${n} not found in ${e}`)}static getKeyValues(e){return Object.keys(e).filter(n=>!isNaN(Number(n))).map(n=>({key:Number(n),value:e[n]}))}}class Ve{static getFileExtension(e){let n="";const s=e.lastIndexOf(".");return s>0&&s<e.length-1&&(n=`.${e.substring(s+1).toLowerCase()}`),n}static readAsText(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=()=>{n.onload=null,n.onerror=null,typeof n.result=="string"?s(n.result):d(new Error("Unexpected result type"))},n.onerror=()=>{const _=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,d(_)},n.readAsText(e)})}static readAsArrayBuffer(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=()=>{n.onload=null,n.onerror=null,n.result instanceof ArrayBuffer?s(n.result):d(new Error("Unexpected result type"))},n.onerror=()=>{const _=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,d(_)},n.readAsArrayBuffer(e)})}static readAsDataUrl(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=_=>{s(_)},n.onerror=_=>d(_),n.readAsDataURL(e)})}static formatFileSize(e,n=2,s){if(e===0)return"0 Bytes";const d=1024,_=["Bytes","KB","MB","GB","TB"];let z=Math.floor(Math.log(e)/Math.log(d));s&&_.includes(s)&&(z=_.indexOf(s));const I=e/Math.pow(d,z);return`${parseFloat(I.toFixed(n))} ${_[z]}`}static isWithinSizeLimit(e,n){if(!Number.isSafeInteger(n)||n<0)throw new RangeError("maxBytes must be a non-negative safe integer.");return e.size<=n}static save(e,n,s){const d=new Blob([e],{type:s});Fe.saveAs(d,n)}}class Ze{static hasAllowedMimeType(e,n){const s=e.type.trim().toLowerCase();return s.length>0&&n.some(d=>d.trim().toLowerCase()===s)}static load(e){const n=URL.createObjectURL(e);return this.loadSource(n).finally(()=>URL.revokeObjectURL(n))}static async compress(e,n=.8,s="image/jpeg"){const d=await this.loadSource(e),{canvas:_}=this.resize(d,d.width,d.height);return _.toDataURL(s,n)}static resize(e,n,s){let{width:d,height:_}=e;const z=n/d,I=s/_,K=Math.min(z,I,1);d=Math.floor(d*K),_=Math.floor(_*K);const p=document.createElement("canvas");p.width=d,p.height=_;const U=p.getContext("2d");return U.clearRect(0,0,d,_),U.drawImage(e,0,0,d,_),{canvas:p,width:d,height:_}}static loadSource(e){return new Promise((n,s)=>{const d=new Image;d.onload=()=>n(d),d.onerror=s,d.src=e})}}class be{static set(e,n){localStorage.setItem(e,JSON.stringify(n))}static get(e){let n=null;const s=localStorage.getItem(e);return s&&(n=JSON.parse(s)),n}static remove(e){const n=localStorage.getItem(e)!==null;return n&&localStorage.removeItem(e),n}static removeAll(){localStorage.clear()}static getKeysBy(e){return Object.keys(localStorage).filter(n=>n.startsWith(e))}}var pe=(a=>(a.log="log",a.info="info",a.warn="warn",a.debug="debug",a.error="error",a))(pe||{});class G{static listeners=new Set;static enabled=!0;static log(...e){G.doLog(pe.log,e)}static info(...e){G.doLog(pe.info,e)}static warn(...e){G.doLog(pe.warn,e)}static debug(...e){G.doLog(pe.debug,e)}static error(...e){G.doLog(pe.error,e)}static clearListeners(){G.listeners.clear()}static setEnabled(e){G.enabled=e}static doLog(e,n){if(!G.enabled)return;const s={type:e,args:n,timestamp:new Date().toISOString()};for(const d of G.listeners)try{if(d(s)===!1)return}catch{}console[e].apply(console,n)}static onLog(e,n=!1){if(n){const s=d=>{try{return e(d)}finally{G.listeners.delete(s)}};return G.listeners.add(s),()=>G.listeners.delete(s)}return G.listeners.add(e),()=>G.listeners.delete(e)}}const He=(a,e,n)=>a.localeCompare(e)*(n?1:-1),Ge=(a,e)=>a<e?-1:a===e?0:1,Xe=(a,e,n)=>Ge(a,e)*(n?1:-1),et=(a,e,n)=>typeof a=="string"&&typeof e=="string"?He(a,e,n):Xe(a,e,n),ze=(a,e,n,s)=>{const d=n(a),_=n(e);return et(d,_,s)};class tt{static get(e){return be.get(e)}static set(e,n){be.set(e,n)}static remove(e){be.remove(e)}}class T{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=null;static onResize(e){return T.initialized||T.init(),T.listeners.add(e),()=>T.off(e)}static handleResize=()=>{T.resizeTimeout!==null&&(window.clearTimeout(T.resizeTimeout),T.resizeTimeout=null),T.resizeTimeout=window.setTimeout(()=>{const e=window.innerWidth;if(T.resizeTimeout=null,e!==T.lastWidth){T.lastWidth=e;for(const n of T.listeners)n(e)}},150)};static init(){if(!T.initialized){if(typeof window>"u")throw new Error("WindowResizeHelper is only available in browser environments");T.lastWidth=window.innerWidth,window.addEventListener("resize",T.handleResize,{passive:!0}),T.initialized=!0}}static off(e){T.initialized&&(T.listeners.delete(e),T.listeners.size===0&&(T.resizeTimeout!==null&&(window.clearTimeout(T.resizeTimeout),T.resizeTimeout=null),window.removeEventListener("resize",T.handleResize),T.initialized=!1,T.lastWidth=null))}}function W(a,e,n){Object.defineProperty(a,e,{configurable:!0,enumerable:!1,value:n,writable:!0})}function rt(){W(Array.prototype,"distinct",function(a){return a?this.filter((n,s,d)=>d.findIndex(_=>a(_,n))===s):this.filter((n,s,d)=>d.indexOf(n)===s)}),W(Array.prototype,"filterBy",function(a){return this.filter(e=>a(e))}),W(Array.prototype,"first",function(){return this.length>0?this[0]:null}),W(Array.prototype,"groupBy",function(a){return this.reduce((e,n)=>{const s=a(n);return e[s]||(e[s]=[]),e[s].push(n),e},{})}),W(Array.prototype,"orderBy",function(a,e=!0){return this?.sort((n,s)=>ze(n,s,a,e)),this}),W(Array.prototype,"removeBy",function(a,e){return this.filter(n=>a(n)!==e)})}var Oe={exports:{}},nt=Oe.exports,Ae;function it(){return Ae||(Ae=1,(function(a,e){(function(n,s){a.exports=s()})(nt,(function(){var n=1e3,s=6e4,d=36e5,_="millisecond",z="second",I="minute",K="hour",p="day",U="week",j="month",Q="quarter",q="year",X="date",ne="Invalid Date",ue=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ge=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ve={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var h=["th","st","nd","rd"],f=v%100;return"["+v+(h[(f-20)%10]||h[f]||h[0])+"]"}},fe=function(v,h,f){var o=String(v);return!o||o.length>=h?v:""+Array(h+1-o.length).join(f)+v},_e={s:fe,z:function(v){var h=-v.utcOffset(),f=Math.abs(h),o=Math.floor(f/60),c=f%60;return(h<=0?"+":"-")+fe(o,2,"0")+":"+fe(c,2,"0")},m:function v(h,f){if(h.date()<f.date())return-v(f,h);var o=12*(f.year()-h.year())+(f.month()-h.month()),c=h.clone().add(o,j),l=f-c<0,w=h.clone().add(o+(l?-1:1),j);return+(-(o+(f-c)/(l?c-w:w-c))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:j,y:q,w:U,d:p,D:X,h:K,m:I,s:z,ms:_,Q}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},ce="en",V={};V[ce]=ve;var L="$isDayjsObject",t=function(v){return v instanceof y||!(!v||!v[L])},r=function v(h,f,o){var c;if(!h)return ce;if(typeof h=="string"){var l=h.toLowerCase();V[l]&&(c=l),f&&(V[l]=f,c=l);var w=h.split("-");if(!c&&w.length>1)return v(w[0])}else{var m=h.name;V[m]=h,c=m}return!o&&c&&(ce=c),c||!o&&ce},i=function(v,h){if(t(v))return v.clone();var f=typeof h=="object"?h:{};return f.date=v,f.args=arguments,new y(f)},u=_e;u.l=r,u.i=t,u.w=function(v,h){return i(v,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var y=(function(){function v(f){this.$L=r(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[L]=!0}var h=v.prototype;return h.parse=function(f){this.$d=(function(o){var c=o.date,l=o.utc;if(c===null)return new Date(NaN);if(u.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var w=c.match(ue);if(w){var m=w[2]-1||0,k=(w[7]||"0").substring(0,3);return l?new Date(Date.UTC(w[1],m,w[3]||1,w[4]||0,w[5]||0,w[6]||0,k)):new Date(w[1],m,w[3]||1,w[4]||0,w[5]||0,w[6]||0,k)}}return new Date(c)})(f),this.init()},h.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},h.$utils=function(){return u},h.isValid=function(){return this.$d.toString()!==ne},h.isSame=function(f,o){var c=i(f);return this.startOf(o)<=c&&c<=this.endOf(o)},h.isAfter=function(f,o){return i(f)<this.startOf(o)},h.isBefore=function(f,o){return this.endOf(o)<i(f)},h.$g=function(f,o,c){return u.u(f)?this[o]:this.set(c,f)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(f,o){var c=this,l=!!u.u(o)||o,w=u.p(f),m=function(x,D){var S=u.w(c.$u?Date.UTC(c.$y,D,x):new Date(c.$y,D,x),c);return l?S:S.endOf(p)},k=function(x,D){return u.w(c.toDate()[x].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(D)),c)},g=this.$W,M=this.$M,C=this.$D,B="set"+(this.$u?"UTC":"");switch(w){case q:return l?m(1,0):m(31,11);case j:return l?m(1,M):m(0,M+1);case U:var N=this.$locale().weekStart||0,E=(g<N?g+7:g)-N;return m(l?C-E:C+(6-E),M);case p:case X:return k(B+"Hours",0);case K:return k(B+"Minutes",1);case I:return k(B+"Seconds",2);case z:return k(B+"Milliseconds",3);default:return this.clone()}},h.endOf=function(f){return this.startOf(f,!1)},h.$set=function(f,o){var c,l=u.p(f),w="set"+(this.$u?"UTC":""),m=(c={},c[p]=w+"Date",c[X]=w+"Date",c[j]=w+"Month",c[q]=w+"FullYear",c[K]=w+"Hours",c[I]=w+"Minutes",c[z]=w+"Seconds",c[_]=w+"Milliseconds",c)[l],k=l===p?this.$D+(o-this.$W):o;if(l===j||l===q){var g=this.clone().set(X,1);g.$d[m](k),g.init(),this.$d=g.set(X,Math.min(this.$D,g.daysInMonth())).$d}else m&&this.$d[m](k);return this.init(),this},h.set=function(f,o){return this.clone().$set(f,o)},h.get=function(f){return this[u.p(f)]()},h.add=function(f,o){var c,l=this;f=Number(f);var w=u.p(o),m=function(M){var C=i(l);return u.w(C.date(C.date()+Math.round(M*f)),l)};if(w===j)return this.set(j,this.$M+f);if(w===q)return this.set(q,this.$y+f);if(w===p)return m(1);if(w===U)return m(7);var k=(c={},c[I]=s,c[K]=d,c[z]=n,c)[w]||1,g=this.$d.getTime()+f*k;return u.w(g,this)},h.subtract=function(f,o){return this.add(-1*f,o)},h.format=function(f){var o=this,c=this.$locale();if(!this.isValid())return c.invalidDate||ne;var l=f||"YYYY-MM-DDTHH:mm:ssZ",w=u.z(this),m=this.$H,k=this.$m,g=this.$M,M=c.weekdays,C=c.months,B=c.meridiem,N=function(D,S,R,Y){return D&&(D[S]||D(o,l))||R[S].slice(0,Y)},E=function(D){return u.s(m%12||12,D,"0")},x=B||function(D,S,R){var Y=D<12?"AM":"PM";return R?Y.toLowerCase():Y};return l.replace(ge,(function(D,S){return S||(function(R){switch(R){case"YY":return String(o.$y).slice(-2);case"YYYY":return u.s(o.$y,4,"0");case"M":return g+1;case"MM":return u.s(g+1,2,"0");case"MMM":return N(c.monthsShort,g,C,3);case"MMMM":return N(C,g);case"D":return o.$D;case"DD":return u.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return N(c.weekdaysMin,o.$W,M,2);case"ddd":return N(c.weekdaysShort,o.$W,M,3);case"dddd":return M[o.$W];case"H":return String(m);case"HH":return u.s(m,2,"0");case"h":return E(1);case"hh":return E(2);case"a":return x(m,k,!0);case"A":return x(m,k,!1);case"m":return String(k);case"mm":return u.s(k,2,"0");case"s":return String(o.$s);case"ss":return u.s(o.$s,2,"0");case"SSS":return u.s(o.$ms,3,"0");case"Z":return w}return null})(D)||w.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(f,o,c){var l,w=this,m=u.p(o),k=i(f),g=(k.utcOffset()-this.utcOffset())*s,M=this-k,C=function(){return u.m(w,k)};switch(m){case q:l=C()/12;break;case j:l=C();break;case Q:l=C()/3;break;case U:l=(M-g)/6048e5;break;case p:l=(M-g)/864e5;break;case K:l=M/d;break;case I:l=M/s;break;case z:l=M/n;break;default:l=M}return c?l:u.a(l)},h.daysInMonth=function(){return this.endOf(j).$D},h.$locale=function(){return V[this.$L]},h.locale=function(f,o){if(!f)return this.$L;var c=this.clone(),l=r(f,o,!0);return l&&(c.$L=l),c},h.clone=function(){return u.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},v})(),b=y.prototype;return i.prototype=b,[["$ms",_],["$s",z],["$m",I],["$H",K],["$W",p],["$M",j],["$y",q],["$D",X]].forEach((function(v){b[v[1]]=function(h){return this.$g(h,v[0],v[1])}})),i.extend=function(v,h){return v.$i||(v(h,y,i),v.$i=!0),i},i.locale=r,i.isDayjs=t,i.unix=function(v){return i(1e3*v)},i.en=V[ce],i.Ls=V,i.p={},i}))})(Oe)),Oe.exports}var st=it();const te=Me(st);var xe={exports:{}},at=xe.exports,Te;function ot(){return Te||(Te=1,(function(a,e){(function(n,s){a.exports=s()})(at,(function(){var n="day";return function(s,d,_){var z=function(p){return p.add(4-p.isoWeekday(),n)},I=d.prototype;I.isoWeekYear=function(){return z(this).year()},I.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var U,j,Q,q,X=z(this),ne=(U=this.isoWeekYear(),j=this.$u,Q=(j?_.utc:_)().year(U).startOf("year"),q=4-Q.isoWeekday(),Q.isoWeekday()>4&&(q+=7),Q.add(q,n));return X.diff(ne,"week")+1},I.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var K=I.startOf;I.startOf=function(p,U){var j=this.$utils(),Q=!!j.u(U)||U;return j.p(p)==="isoweek"?Q?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):K.bind(this)(p,U)}}}))})(xe)),xe.exports}var ut=ot();const ct=Me(ut);var De={exports:{}},lt=De.exports,Ie;function ft(){return Ie||(Ie=1,(function(a,e){(function(n,s){a.exports=s()})(lt,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(s,d,_){var z=d.prototype,I=z.format;_.en.formats=n,z.format=function(K){K===void 0&&(K="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,U=(function(j,Q){return j.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(q,X,ne){var ue=ne&&ne.toUpperCase();return X||Q[ne]||n[ne]||Q[ue].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(ge,ve,fe){return ve||fe.slice(1)}))}))})(K,p===void 0?{}:p);return I.call(this,U)}}}))})(De)),De.exports}var dt=ft();const ht=Me(dt);te.extend(ht);te.extend(ct);function pt(){W(Date.prototype,"add",function(a,e){return te(this).add(a,e).toDate()}),W(Date.prototype,"diff",function(a,e){return te(this).diff(a,e)}),W(Date.prototype,"endOf",function(a){return te(this).endOf(a).toDate()}),W(Date.prototype,"firstDayOfMonth",function(){return te(this).startOf("month").toDate()}),W(Date.prototype,"format",function(a){return te(this).format(a)}),W(Date.prototype,"isAfter",function(a,e){return te(this).isAfter(a,e)}),W(Date.prototype,"isBefore",function(a,e){return te(this).isBefore(a,e)}),W(Date.prototype,"isValid",function(){return te(this).isValid()}),W(Date.prototype,"isoWeek",function(){return te(this).isoWeek()}),W(Date.prototype,"subtract",function(a,e){return te(this).subtract(a,e).toDate()}),W(Date.prototype,"lastDayOfMonth",function(){return te(this).endOf("month").toDate()}),W(Date.prototype,"set",function(a,e){return te(this).set(a,e).toDate()}),W(Date.prototype,"startOf",function(a){return te(this).startOf(a).toDate()})}function gt(){W(String.prototype,"capitalize",function(){return this.charAt(0).toUpperCase()+this.slice(1)}),W(String.prototype,"isNumber",function(){return!isNaN(Number(this))&&this.trim()!==""}),W(String.prototype,"isEmpty",function(){return this===void 0||!this||this.length===0}),W(String.prototype,"stripTags",function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""})}class mt{resizeListener=null;onResizeCallbacks=new Set;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<"u"&&(this.resizeListener=this.onResize,window.addEventListener("resize",this.resizeListener,{passive:!0}))}destroy(){typeof window<"u"&&this.resizeListener!==null&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.emitTimeoutId!==null&&(clearTimeout(this.emitTimeoutId),this.emitTimeoutId=null),this.onResizeCallbacks.clear()}onResizeChange(e){this.onResizeCallbacks.add(e)}offResizeChange(e){this.onResizeCallbacks.delete(e)}onResize=()=>{if(typeof window>"u")return;const e=window.innerWidth;this.emitTimeoutId!==null&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null;const n=he.getBreakpointByScreenWidth(e);for(const s of this.onResizeCallbacks)s(e,n)},this.duplicateThresholdMs)}}exports.BreakPointHelper=he;exports.BreakPoints=Ue;exports.BrowserHelper=H;exports.BrowserService=mt;exports.BrowserType=ee;exports.CanvasHelper=je;exports.CsvHelper=Je;exports.DownloadHelper=Fe;exports.EnumHelper=Qe;exports.FileHelper=Ve;exports.ImageHelper=Ze;exports.LocalStorageHelper=be;exports.LoggerHelper=G;exports.LoggerType=pe;exports.ScreenHelper=Se;exports.TokenHelper=tt;exports.WindowResizeHelper=T;exports.copyToClipboard=Be;exports.initArrayExtensions=rt;exports.initDateExtensions=pt;exports.initStringExtensions=gt;exports.sortHelper=ze;
|
|
8
|
+
`);var l=0,w=!1;this.parse=function(m,k,g){if(typeof m!="string")throw new Error("Input must be a string");var M=m.length,C=r.length,B=i.length,N=u.length,b=L(y),x=[],D=[],S=[],R=l=0;if(!m)return Z();if(v||v!==!1&&m.indexOf(o)===-1){for(var Y=m.split(i),A=0;A<Y.length;A++){if(S=Y[A],l+=S.length,A!==Y.length-1)l+=i.length;else if(g)return Z();if(!u||S.substring(0,N)!==u){if(b){if(x=[],de(S.split(r)),ae(),w)return Z()}else de(S.split(r));if(E&&E<=A)return x=x.slice(0,E),Z(!0)}}return Z()}for(var F=m.indexOf(r,l),$=m.indexOf(i,l),ie=new RegExp(ue(c)+ue(o),"g"),O=m.indexOf(o,l);;)if(m[l]===o)for(O=l,l++;;){if((O=m.indexOf(o,O+1))===-1)return g||D.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:l}),se();if(O===M-1)return se(m.substring(l,O).replace(ie,o));if(o===c&&m[O+1]===c)O++;else if(o===c||O===0||m[O-1]!==c){F!==-1&&F<O+1&&(F=m.indexOf(r,O+1));var P=me(($=$!==-1&&$<O+1?m.indexOf(i,O+1):$)===-1?F:Math.min(F,$));if(m.substr(O+1+P,C)===r){S.push(m.substring(l,O).replace(ie,o)),m[l=O+1+P+C]!==o&&(O=m.indexOf(o,l)),F=m.indexOf(r,l),$=m.indexOf(i,l);break}if(P=me($),m.substring(O+1+P,O+1+P+B)===i){if(S.push(m.substring(l,O).replace(ie,o)),we(O+1+P+B),F=m.indexOf(r,l),O=m.indexOf(o,l),b&&(ae(),w))return Z();if(E&&x.length>=E)return Z(!0);break}D.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:l}),O++}}else if(u&&S.length===0&&m.substring(l,l+N)===u){if($===-1)return Z();l=$+B,$=m.indexOf(i,l),F=m.indexOf(r,l)}else if(F!==-1&&(F<$||$===-1))S.push(m.substring(l,F)),l=F+C,F=m.indexOf(r,l);else{if($===-1)break;if(S.push(m.substring(l,$)),we($+B),b&&(ae(),w))return Z();if(E&&x.length>=E)return Z(!0)}return se();function de(J){x.push(J),R=l}function me(J){var re=0;return re=J!==-1&&(J=m.substring(O+1,J))&&J.trim()===""?J.length:re}function se(J){return g||(J===void 0&&(J=m.substring(l)),S.push(J),l=M,de(S),b&&ae()),Z()}function we(J){l=J,de(S),S=[],$=m.indexOf(i,l)}function Z(J){if(t.header&&!k&&x.length&&!f){var re=x[0],le=Object.create(null),$e=new Set(re);let Ce=!1;for(let ye=0;ye<re.length;ye++){let oe=re[ye];if(le[oe=L(t.transformHeader)?t.transformHeader(oe,ye):oe]){let ke,Le=le[oe];for(;ke=oe+"_"+Le,Le++,$e.has(ke););$e.add(ke),re[ye]=ke,le[oe]++,Ce=!0,(h=h===null?{}:h)[ke]=oe}else le[oe]=1,re[ye]=oe;$e.add(oe)}Ce&&console.warn("Duplicate headers found and renamed."),f=!0}return{data:x,errors:D,meta:{delimiter:r,linebreak:i,aborted:w,truncated:!!J,cursor:R+(k||0),renamedHeaders:h}}}function ae(){y(Z()),x=[],D=[]}},this.abort=function(){w=!0},this.getCharIndex=function(){return l}}function ve(t){var r=t.data,i=I[r.workerId],u=!1;if(r.error)i.userError(r.error,r.file);else if(r.results&&r.results.data){var y={abort:function(){u=!0,fe(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_e,resume:_e};if(L(i.userStep)){for(var E=0;E<r.results.data.length&&(i.userStep({data:r.results.data[E],errors:r.results.errors,meta:r.results.meta},y),!u);E++);delete r.results}else L(i.userChunk)&&(i.userChunk(r.results,y,r.file),delete r.results)}r.finished&&!u&&fe(r.workerId,r.results)}function fe(t,r){var i=I[t];L(i.userComplete)&&i.userComplete(r),i.terminate(),delete I[t]}function _e(){throw new Error("Not implemented.")}function ce(t){if(typeof t!="object"||t===null)return t;var r,i=Array.isArray(t)?[]:{};for(r in t)i[r]=ce(t[r]);return i}function V(t,r){return function(){t.apply(r,arguments)}}function L(t){return typeof t=="function"}return p.parse=function(t,r){var i=(r=r||{}).dynamicTyping||!1;if(L(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!L(r.transform)&&r.transform,!r.worker||!p.WORKERS_SUPPORTED)return i=null,p.NODE_STREAM_INPUT,typeof t=="string"?(t=(u=>u.charCodeAt(0)!==65279?u:u.slice(1))(t),i=new(r.download?j:q)(r)):t.readable===!0&&L(t.read)&&L(t.on)?i=new X(r):(s.File&&t instanceof File||t instanceof Object)&&(i=new Q(r)),i.stream(t);(i=(()=>{var u;return!!p.WORKERS_SUPPORTED&&(u=(()=>{var y=s.URL||s.webkitURL||null,E=n.toString();return p.BLOB_URL||(p.BLOB_URL=y.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; ","(",E,")();"],{type:"text/javascript"})))})(),(u=new s.Worker(u)).onmessage=ve,u.id=K++,I[u.id]=u)})()).userStep=r.step,i.userChunk=r.chunk,i.userComplete=r.complete,i.userError=r.error,r.step=L(r.step),r.chunk=L(r.chunk),r.complete=L(r.complete),r.error=L(r.error),delete r.worker,i.postMessage({input:t,config:r,workerId:i.id})},p.unparse=function(t,r){var i=!1,u=!0,y=",",E=`\r
|
|
9
|
+
`,v='"',h=v+v,f=!1,o=null,c=!1,l=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||p.BAD_DELIMITERS.filter(function(k){return r.delimiter.indexOf(k)!==-1}).length||(y=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(i=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(f=r.skipEmptyLines),typeof r.newline=="string"&&(E=r.newline),typeof r.quoteChar=="string"&&(v=r.quoteChar),typeof r.header=="boolean"&&(u=r.header),Array.isArray(r.columns)){if(r.columns.length===0)throw new Error("Option columns is empty");o=r.columns}r.escapeChar!==void 0&&(h=r.escapeChar+v),r.escapeFormulae instanceof RegExp?c=r.escapeFormulae:typeof r.escapeFormulae=="boolean"&&r.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),new RegExp(ue(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return w(null,t,f);if(typeof t[0]=="object")return w(o||Object.keys(t[0]),t,f)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||o),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),w(t.fields||[],t.data||[],f);throw new Error("Unable to serialize unrecognized input");function w(k,g,M){var C="",B=(typeof k=="string"&&(k=JSON.parse(k)),typeof g=="string"&&(g=JSON.parse(g)),Array.isArray(k)&&0<k.length),N=!Array.isArray(g[0]);if(B&&u){for(var b=0;b<k.length;b++)0<b&&(C+=y),C+=m(k[b],b);0<g.length&&(C+=E)}for(var x=0;x<g.length;x++){var D=(B?k:g[x]).length,S=!1,R=B?Object.keys(g[x]).length===0:g[x].length===0;if(M&&!B&&(S=M==="greedy"?g[x].join("").trim()==="":g[x].length===1&&g[x][0].length===0),M==="greedy"&&B){for(var Y=[],A=0;A<D;A++){var F=N?k[A]:A;Y.push(g[x][F])}S=Y.join("").trim()===""}if(!S){for(var $=0;$<D;$++){0<$&&!R&&(C+=y);var ie=B&&N?k[$]:$;C+=m(g[x][ie],$)}x<g.length-1&&(!M||0<D&&!R)&&(C+=E)}}return C}function m(k,g){var M,C;return k==null?"":k.constructor===Date?JSON.stringify(k).slice(1,25):(C=!1,c&&typeof k=="string"&&c.test(k)&&(k="'"+k,C=!0),M=k.toString().replace(l,h),(C=C||i===!0||typeof i=="function"&&i(k,g)||Array.isArray(i)&&i[g]||((B,N)=>{for(var b=0;b<N.length;b++)if(-1<B.indexOf(N[b]))return!0;return!1})(M,p.BAD_DELIMITERS)||-1<M.indexOf(y)||M.charAt(0)===" "||M.charAt(M.length-1)===" ")?v+M+v:M)}},p.RECORD_SEP="",p.UNIT_SEP="",p.BYTE_ORDER_MARK="\uFEFF",p.BAD_DELIMITERS=["\r",`
|
|
10
|
+
`,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!_&&!!s.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=ge,p.ParserHandle=ne,p.NetworkStreamer=j,p.FileStreamer=Q,p.StringStreamer=q,p.ReadableStreamStreamer=X,s.jQuery&&((d=s.jQuery).fn.parse=function(t){var r=t.config||{},i=[];return this.each(function(E){if(!(d(this).prop("tagName").toUpperCase()==="INPUT"&&d(this).attr("type").toLowerCase()==="file"&&s.FileReader)||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:d.extend({},r)})}),u(),this;function u(){if(i.length===0)L(t.complete)&&t.complete();else{var E,v,h,f,o=i[0];if(L(t.before)){var c=t.before(o.file,o.inputElem);if(typeof c=="object"){if(c.action==="abort")return E="AbortError",v=o.file,h=o.inputElem,f=c.reason,void(L(t.error)&&t.error({name:E},v,h,f));if(c.action==="skip")return void y();typeof c.config=="object"&&(o.instanceConfig=d.extend(o.instanceConfig,c.config))}else if(c==="skip")return void y()}var l=o.instanceConfig.complete;o.instanceConfig.complete=function(w){L(l)&&l(w,o.file,o.inputElem),y()},p.parse(o.file,o.instanceConfig)}}function y(){i.splice(0,1),u()}}),z&&(s.onmessage=function(t){t=t.data,p.WORKER_ID===void 0&&t&&(p.WORKER_ID=t.workerId),typeof t.input=="string"?s.postMessage({workerId:p.WORKER_ID,results:p.parse(t.input,t.config),finished:!0}):(s.File&&t.input instanceof File||t.input instanceof Object)&&(t=p.parse(t.input,t.config))&&s.postMessage({workerId:p.WORKER_ID,results:t,finished:!0})}),(j.prototype=Object.create(U.prototype)).constructor=j,(Q.prototype=Object.create(U.prototype)).constructor=Q,(q.prototype=Object.create(q.prototype)).constructor=q,(X.prototype=Object.create(U.prototype)).constructor=X,p})})(be)),be.exports}var We=Pe();const Ne=Me(We),{parse:qe,unparse:Ke}=Ne;class Je{static unparse(e,n){return Ke(e,n)}static parse(e){return new Promise((n,s)=>{qe(e,{header:!0,complete:d=>n(d),error:d=>s(d)})})}}class Fe{static revokeObjectUrlDelay=4e4;static utf8BomMimeType=/^\s*(?:text\/\S*|application\/xml|\S+\/\S+\+xml)\s*;\s*charset\s*=\s*utf-8/i;static saveAs(e,n,s={}){this.assertBrowserEnvironment();const d=this.resolveFileName(e,n),_=s.autoBom?this.addUtf8Bom(e):e;this.downloadBlob(_,d)}static resolveFileName(e,n){return typeof n=="string"&&n.trim().length>0?n:typeof File<"u"&&e instanceof File&&e.name.trim().length>0?e.name:"download"}static addUtf8Bom(e){return this.utf8BomMimeType.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}static assertBrowserEnvironment(){if(typeof window>"u"||typeof document>"u"||typeof URL>"u"||typeof URL.createObjectURL!="function"||typeof URL.revokeObjectURL!="function")throw new Error("DownloadHelper is only available in a browser environment with object URL support.")}static downloadBlob(e,n){const s=URL.createObjectURL(e);try{this.clickDownloadLink(s,n)}finally{window.setTimeout(()=>URL.revokeObjectURL(s),this.revokeObjectUrlDelay)}}static clickDownloadLink(e,n){const s=document.body??document.documentElement;if(!s)throw new Error("DownloadHelper.saveAs requires an initialized document.");const d=document.createElement("a");try{d.download=n,d.href=e,d.target="_blank",d.rel="noopener noreferrer",d.style.display="none",s.appendChild(d),d.click()}finally{d.remove()}}}class Qe{static getEnumValue(e,n){if(n in e)return e[n];throw Error(`${n} not found in ${e}`)}static getKeyValues(e){return Object.keys(e).filter(n=>!isNaN(Number(n))).map(n=>({key:Number(n),value:e[n]}))}}class Ve{static getFileExtension(e){let n="";const s=e.lastIndexOf(".");return s>0&&s<e.length-1&&(n=`.${e.substring(s+1).toLowerCase()}`),n}static readAsText(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=()=>{n.onload=null,n.onerror=null,typeof n.result=="string"?s(n.result):d(new Error("Unexpected result type"))},n.onerror=()=>{const _=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,d(_)},n.readAsText(e)})}static readAsArrayBuffer(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=()=>{n.onload=null,n.onerror=null,n.result instanceof ArrayBuffer?s(n.result):d(new Error("Unexpected result type"))},n.onerror=()=>{const _=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,d(_)},n.readAsArrayBuffer(e)})}static readAsDataUrl(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=_=>{s(_)},n.onerror=_=>d(_),n.readAsDataURL(e)})}static formatFileSize(e,n=2,s){if(e===0)return"0 Bytes";const d=1024,_=["Bytes","KB","MB","GB","TB"];let z=Math.floor(Math.log(e)/Math.log(d));s&&_.includes(s)&&(z=_.indexOf(s));const I=e/Math.pow(d,z);return`${parseFloat(I.toFixed(n))} ${_[z]}`}static isWithinSizeLimit(e,n){if(!Number.isSafeInteger(n)||n<0)throw new RangeError("maxBytes must be a non-negative safe integer.");return e.size<=n}static save(e,n,s){const d=new Blob([e],{type:s});Fe.saveAs(d,n)}}class Ze{static hasAllowedMimeType(e,n){const s=e.type.trim().toLowerCase();return s.length>0&&n.some(d=>d.trim().toLowerCase()===s)}static load(e){const n=URL.createObjectURL(e);return this.loadSource(n).finally(()=>URL.revokeObjectURL(n))}static async compress(e,n=.8,s="image/jpeg"){const d=await this.loadSource(e),{canvas:_}=this.resize(d,d.width,d.height);return _.toDataURL(s,n)}static resize(e,n,s){let{width:d,height:_}=e;const z=n/d,I=s/_,K=Math.min(z,I,1);d=Math.floor(d*K),_=Math.floor(_*K);const p=document.createElement("canvas");p.width=d,p.height=_;const U=p.getContext("2d");return U.clearRect(0,0,d,_),U.drawImage(e,0,0,d,_),{canvas:p,width:d,height:_}}static loadSource(e){return new Promise((n,s)=>{const d=new Image;d.onload=()=>n(d),d.onerror=s,d.src=e})}}class Ee{static set(e,n){localStorage.setItem(e,JSON.stringify(n))}static get(e){let n=null;const s=localStorage.getItem(e);return s&&(n=JSON.parse(s)),n}static remove(e){const n=localStorage.getItem(e)!==null;return n&&localStorage.removeItem(e),n}static removeAll(){localStorage.clear()}static getKeysBy(e){return Object.keys(localStorage).filter(n=>n.startsWith(e))}}var pe=(a=>(a.log="log",a.info="info",a.warn="warn",a.debug="debug",a.error="error",a))(pe||{});class G{static listeners=new Set;static enabled=!0;static log(...e){G.doLog(pe.log,e)}static info(...e){G.doLog(pe.info,e)}static warn(...e){G.doLog(pe.warn,e)}static debug(...e){G.doLog(pe.debug,e)}static error(...e){G.doLog(pe.error,e)}static clearListeners(){G.listeners.clear()}static setEnabled(e){G.enabled=e}static doLog(e,n){if(!G.enabled)return;const s={type:e,args:n,timestamp:new Date().toISOString()};for(const d of G.listeners)try{if(d(s)===!1)return}catch{}console[e].apply(console,n)}static onLog(e,n=!1){if(n){const s=d=>{try{return e(d)}finally{G.listeners.delete(s)}};return G.listeners.add(s),()=>G.listeners.delete(s)}return G.listeners.add(e),()=>G.listeners.delete(e)}}const He=(a,e,n)=>a.localeCompare(e)*(n?1:-1),Ge=(a,e)=>a<e?-1:a===e?0:1,Xe=(a,e,n)=>Ge(a,e)*(n?1:-1),et=(a,e,n)=>typeof a=="string"&&typeof e=="string"?He(a,e,n):Xe(a,e,n),ze=(a,e,n,s)=>{const d=n(a),_=n(e);return et(d,_,s)};class tt{static get(e){return Ee.get(e)}static set(e,n){Ee.set(e,n)}static remove(e){Ee.remove(e)}}class T{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=null;static onResize(e){return T.initialized||T.init(),T.listeners.add(e),()=>T.off(e)}static handleResize=()=>{T.resizeTimeout!==null&&(window.clearTimeout(T.resizeTimeout),T.resizeTimeout=null),T.resizeTimeout=window.setTimeout(()=>{const e=window.innerWidth;if(T.resizeTimeout=null,e!==T.lastWidth){T.lastWidth=e;for(const n of T.listeners)n(e)}},150)};static init(){if(!T.initialized){if(typeof window>"u")throw new Error("WindowResizeHelper is only available in browser environments");T.lastWidth=window.innerWidth,window.addEventListener("resize",T.handleResize,{passive:!0}),T.initialized=!0}}static off(e){T.initialized&&(T.listeners.delete(e),T.listeners.size===0&&(T.resizeTimeout!==null&&(window.clearTimeout(T.resizeTimeout),T.resizeTimeout=null),window.removeEventListener("resize",T.handleResize),T.initialized=!1,T.lastWidth=null))}}function W(a,e,n){Object.defineProperty(a,e,{configurable:!0,enumerable:!1,value:n,writable:!0})}function rt(){W(Array.prototype,"distinct",function(a){return a?this.filter((n,s,d)=>d.findIndex(_=>a(_,n))===s):this.filter((n,s,d)=>d.indexOf(n)===s)}),W(Array.prototype,"filterBy",function(a){return this.filter(e=>a(e))}),W(Array.prototype,"first",function(){return this.length>0?this[0]:null}),W(Array.prototype,"groupBy",function(a){return this.reduce((e,n)=>{const s=a(n);return Object.hasOwn(e,s)||(e[s]=[]),e[s].push(n),e},Object.create(null))}),W(Array.prototype,"orderBy",function(a,e=!0){return this?.sort((n,s)=>ze(n,s,a,e)),this}),W(Array.prototype,"removeBy",function(a,e){return this.filter(n=>a(n)!==e)})}var Oe={exports:{}},nt=Oe.exports,Ae;function it(){return Ae||(Ae=1,(function(a,e){(function(n,s){a.exports=s()})(nt,(function(){var n=1e3,s=6e4,d=36e5,_="millisecond",z="second",I="minute",K="hour",p="day",U="week",j="month",Q="quarter",q="year",X="date",ne="Invalid Date",ue=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ge=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ve={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var h=["th","st","nd","rd"],f=v%100;return"["+v+(h[(f-20)%10]||h[f]||h[0])+"]"}},fe=function(v,h,f){var o=String(v);return!o||o.length>=h?v:""+Array(h+1-o.length).join(f)+v},_e={s:fe,z:function(v){var h=-v.utcOffset(),f=Math.abs(h),o=Math.floor(f/60),c=f%60;return(h<=0?"+":"-")+fe(o,2,"0")+":"+fe(c,2,"0")},m:function v(h,f){if(h.date()<f.date())return-v(f,h);var o=12*(f.year()-h.year())+(f.month()-h.month()),c=h.clone().add(o,j),l=f-c<0,w=h.clone().add(o+(l?-1:1),j);return+(-(o+(f-c)/(l?c-w:w-c))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:j,y:q,w:U,d:p,D:X,h:K,m:I,s:z,ms:_,Q}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},ce="en",V={};V[ce]=ve;var L="$isDayjsObject",t=function(v){return v instanceof y||!(!v||!v[L])},r=function v(h,f,o){var c;if(!h)return ce;if(typeof h=="string"){var l=h.toLowerCase();V[l]&&(c=l),f&&(V[l]=f,c=l);var w=h.split("-");if(!c&&w.length>1)return v(w[0])}else{var m=h.name;V[m]=h,c=m}return!o&&c&&(ce=c),c||!o&&ce},i=function(v,h){if(t(v))return v.clone();var f=typeof h=="object"?h:{};return f.date=v,f.args=arguments,new y(f)},u=_e;u.l=r,u.i=t,u.w=function(v,h){return i(v,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var y=(function(){function v(f){this.$L=r(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[L]=!0}var h=v.prototype;return h.parse=function(f){this.$d=(function(o){var c=o.date,l=o.utc;if(c===null)return new Date(NaN);if(u.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var w=c.match(ue);if(w){var m=w[2]-1||0,k=(w[7]||"0").substring(0,3);return l?new Date(Date.UTC(w[1],m,w[3]||1,w[4]||0,w[5]||0,w[6]||0,k)):new Date(w[1],m,w[3]||1,w[4]||0,w[5]||0,w[6]||0,k)}}return new Date(c)})(f),this.init()},h.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},h.$utils=function(){return u},h.isValid=function(){return this.$d.toString()!==ne},h.isSame=function(f,o){var c=i(f);return this.startOf(o)<=c&&c<=this.endOf(o)},h.isAfter=function(f,o){return i(f)<this.startOf(o)},h.isBefore=function(f,o){return this.endOf(o)<i(f)},h.$g=function(f,o,c){return u.u(f)?this[o]:this.set(c,f)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(f,o){var c=this,l=!!u.u(o)||o,w=u.p(f),m=function(x,D){var S=u.w(c.$u?Date.UTC(c.$y,D,x):new Date(c.$y,D,x),c);return l?S:S.endOf(p)},k=function(x,D){return u.w(c.toDate()[x].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(D)),c)},g=this.$W,M=this.$M,C=this.$D,B="set"+(this.$u?"UTC":"");switch(w){case q:return l?m(1,0):m(31,11);case j:return l?m(1,M):m(0,M+1);case U:var N=this.$locale().weekStart||0,b=(g<N?g+7:g)-N;return m(l?C-b:C+(6-b),M);case p:case X:return k(B+"Hours",0);case K:return k(B+"Minutes",1);case I:return k(B+"Seconds",2);case z:return k(B+"Milliseconds",3);default:return this.clone()}},h.endOf=function(f){return this.startOf(f,!1)},h.$set=function(f,o){var c,l=u.p(f),w="set"+(this.$u?"UTC":""),m=(c={},c[p]=w+"Date",c[X]=w+"Date",c[j]=w+"Month",c[q]=w+"FullYear",c[K]=w+"Hours",c[I]=w+"Minutes",c[z]=w+"Seconds",c[_]=w+"Milliseconds",c)[l],k=l===p?this.$D+(o-this.$W):o;if(l===j||l===q){var g=this.clone().set(X,1);g.$d[m](k),g.init(),this.$d=g.set(X,Math.min(this.$D,g.daysInMonth())).$d}else m&&this.$d[m](k);return this.init(),this},h.set=function(f,o){return this.clone().$set(f,o)},h.get=function(f){return this[u.p(f)]()},h.add=function(f,o){var c,l=this;f=Number(f);var w=u.p(o),m=function(M){var C=i(l);return u.w(C.date(C.date()+Math.round(M*f)),l)};if(w===j)return this.set(j,this.$M+f);if(w===q)return this.set(q,this.$y+f);if(w===p)return m(1);if(w===U)return m(7);var k=(c={},c[I]=s,c[K]=d,c[z]=n,c)[w]||1,g=this.$d.getTime()+f*k;return u.w(g,this)},h.subtract=function(f,o){return this.add(-1*f,o)},h.format=function(f){var o=this,c=this.$locale();if(!this.isValid())return c.invalidDate||ne;var l=f||"YYYY-MM-DDTHH:mm:ssZ",w=u.z(this),m=this.$H,k=this.$m,g=this.$M,M=c.weekdays,C=c.months,B=c.meridiem,N=function(D,S,R,Y){return D&&(D[S]||D(o,l))||R[S].slice(0,Y)},b=function(D){return u.s(m%12||12,D,"0")},x=B||function(D,S,R){var Y=D<12?"AM":"PM";return R?Y.toLowerCase():Y};return l.replace(ge,(function(D,S){return S||(function(R){switch(R){case"YY":return String(o.$y).slice(-2);case"YYYY":return u.s(o.$y,4,"0");case"M":return g+1;case"MM":return u.s(g+1,2,"0");case"MMM":return N(c.monthsShort,g,C,3);case"MMMM":return N(C,g);case"D":return o.$D;case"DD":return u.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return N(c.weekdaysMin,o.$W,M,2);case"ddd":return N(c.weekdaysShort,o.$W,M,3);case"dddd":return M[o.$W];case"H":return String(m);case"HH":return u.s(m,2,"0");case"h":return b(1);case"hh":return b(2);case"a":return x(m,k,!0);case"A":return x(m,k,!1);case"m":return String(k);case"mm":return u.s(k,2,"0");case"s":return String(o.$s);case"ss":return u.s(o.$s,2,"0");case"SSS":return u.s(o.$ms,3,"0");case"Z":return w}return null})(D)||w.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(f,o,c){var l,w=this,m=u.p(o),k=i(f),g=(k.utcOffset()-this.utcOffset())*s,M=this-k,C=function(){return u.m(w,k)};switch(m){case q:l=C()/12;break;case j:l=C();break;case Q:l=C()/3;break;case U:l=(M-g)/6048e5;break;case p:l=(M-g)/864e5;break;case K:l=M/d;break;case I:l=M/s;break;case z:l=M/n;break;default:l=M}return c?l:u.a(l)},h.daysInMonth=function(){return this.endOf(j).$D},h.$locale=function(){return V[this.$L]},h.locale=function(f,o){if(!f)return this.$L;var c=this.clone(),l=r(f,o,!0);return l&&(c.$L=l),c},h.clone=function(){return u.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},v})(),E=y.prototype;return i.prototype=E,[["$ms",_],["$s",z],["$m",I],["$H",K],["$W",p],["$M",j],["$y",q],["$D",X]].forEach((function(v){E[v[1]]=function(h){return this.$g(h,v[0],v[1])}})),i.extend=function(v,h){return v.$i||(v(h,y,i),v.$i=!0),i},i.locale=r,i.isDayjs=t,i.unix=function(v){return i(1e3*v)},i.en=V[ce],i.Ls=V,i.p={},i}))})(Oe)),Oe.exports}var st=it();const te=Me(st);var xe={exports:{}},at=xe.exports,Te;function ot(){return Te||(Te=1,(function(a,e){(function(n,s){a.exports=s()})(at,(function(){var n="day";return function(s,d,_){var z=function(p){return p.add(4-p.isoWeekday(),n)},I=d.prototype;I.isoWeekYear=function(){return z(this).year()},I.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var U,j,Q,q,X=z(this),ne=(U=this.isoWeekYear(),j=this.$u,Q=(j?_.utc:_)().year(U).startOf("year"),q=4-Q.isoWeekday(),Q.isoWeekday()>4&&(q+=7),Q.add(q,n));return X.diff(ne,"week")+1},I.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var K=I.startOf;I.startOf=function(p,U){var j=this.$utils(),Q=!!j.u(U)||U;return j.p(p)==="isoweek"?Q?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):K.bind(this)(p,U)}}}))})(xe)),xe.exports}var ut=ot();const ct=Me(ut);var De={exports:{}},lt=De.exports,Ie;function ft(){return Ie||(Ie=1,(function(a,e){(function(n,s){a.exports=s()})(lt,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(s,d,_){var z=d.prototype,I=z.format;_.en.formats=n,z.format=function(K){K===void 0&&(K="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,U=(function(j,Q){return j.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(q,X,ne){var ue=ne&&ne.toUpperCase();return X||Q[ne]||n[ne]||Q[ue].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(ge,ve,fe){return ve||fe.slice(1)}))}))})(K,p===void 0?{}:p);return I.call(this,U)}}}))})(De)),De.exports}var dt=ft();const ht=Me(dt);te.extend(ht);te.extend(ct);function pt(){W(Date.prototype,"add",function(a,e){return te(this).add(a,e).toDate()}),W(Date.prototype,"diff",function(a,e){return te(this).diff(a,e)}),W(Date.prototype,"endOf",function(a){return te(this).endOf(a).toDate()}),W(Date.prototype,"firstDayOfMonth",function(){return te(this).startOf("month").toDate()}),W(Date.prototype,"format",function(a){return te(this).format(a)}),W(Date.prototype,"isAfter",function(a,e){return te(this).isAfter(a,e)}),W(Date.prototype,"isBefore",function(a,e){return te(this).isBefore(a,e)}),W(Date.prototype,"isValid",function(){return te(this).isValid()}),W(Date.prototype,"isoWeek",function(){return te(this).isoWeek()}),W(Date.prototype,"subtract",function(a,e){return te(this).subtract(a,e).toDate()}),W(Date.prototype,"lastDayOfMonth",function(){return te(this).endOf("month").toDate()}),W(Date.prototype,"set",function(a,e){return te(this).set(a,e).toDate()}),W(Date.prototype,"startOf",function(a){return te(this).startOf(a).toDate()})}function gt(){W(String.prototype,"capitalize",function(){return this.charAt(0).toUpperCase()+this.slice(1)}),W(String.prototype,"isNumber",function(){return!isNaN(Number(this))&&this.trim()!==""}),W(String.prototype,"isEmpty",function(){return this===void 0||!this||this.length===0}),W(String.prototype,"stripTags",function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""})}class mt{resizeListener=null;onResizeCallbacks=new Set;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<"u"&&(this.resizeListener=this.onResize,window.addEventListener("resize",this.resizeListener,{passive:!0}))}destroy(){typeof window<"u"&&this.resizeListener!==null&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.emitTimeoutId!==null&&(clearTimeout(this.emitTimeoutId),this.emitTimeoutId=null),this.onResizeCallbacks.clear()}onResizeChange(e){this.onResizeCallbacks.add(e)}offResizeChange(e){this.onResizeCallbacks.delete(e)}onResize=()=>{if(typeof window>"u")return;const e=window.innerWidth;this.emitTimeoutId!==null&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null;const n=he.getBreakpointByScreenWidth(e);for(const s of this.onResizeCallbacks)s(e,n)},this.duplicateThresholdMs)}}exports.BreakPointHelper=he;exports.BreakPoints=Ue;exports.BrowserHelper=H;exports.BrowserService=mt;exports.BrowserType=ee;exports.CanvasHelper=je;exports.CsvHelper=Je;exports.DownloadHelper=Fe;exports.EnumHelper=Qe;exports.FileHelper=Ve;exports.ImageHelper=Ze;exports.LocalStorageHelper=Ee;exports.LoggerHelper=G;exports.LoggerType=pe;exports.ScreenHelper=Se;exports.TokenHelper=tt;exports.WindowResizeHelper=T;exports.copyToClipboard=Be;exports.initArrayExtensions=rt;exports.initDateExtensions=pt;exports.initStringExtensions=gt;exports.sortHelper=ze;
|
package/index.mjs
CHANGED
|
@@ -142,8 +142,8 @@ function oe(a) {
|
|
|
142
142
|
function Dt(a) {
|
|
143
143
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
144
144
|
}
|
|
145
|
-
var
|
|
146
|
-
var Ft =
|
|
145
|
+
var bt = { exports: {} };
|
|
146
|
+
var Ft = bt.exports, Lt;
|
|
147
147
|
function zt() {
|
|
148
148
|
return Lt || (Lt = 1, (function(a, t) {
|
|
149
149
|
((n, s) => {
|
|
@@ -157,8 +157,8 @@ function zt() {
|
|
|
157
157
|
}).call(this, e), this.parseChunk = function(r, i) {
|
|
158
158
|
var u = parseInt(this._config.skipFirstNLines) || 0;
|
|
159
159
|
if (this.isFirstChunk && 0 < u) {
|
|
160
|
-
let
|
|
161
|
-
|
|
160
|
+
let E = this._config.newline;
|
|
161
|
+
E || (y = this._config.quoteChar || '"', E = this._handle.guessLineEndings(r, y)), r = [...r.split(E).slice(u)].join(E);
|
|
162
162
|
}
|
|
163
163
|
this.isFirstChunk && R(this._config.beforeFirstChunk) && (y = this._config.beforeFirstChunk(r)) !== void 0 && (r = y), this.isFirstChunk = !1, this._halted = !1;
|
|
164
164
|
var u = this._partialLine + r, y = (this._partialLine = "", this._handle.parse(u, this._baseIndex, !this._finished));
|
|
@@ -194,8 +194,8 @@ function zt() {
|
|
|
194
194
|
this._config.chunkSize && (y = this._start + this._config.chunkSize - 1, r.setRequestHeader("Range", "bytes=" + this._start + "-" + y));
|
|
195
195
|
try {
|
|
196
196
|
r.send(this._config.downloadRequestBody);
|
|
197
|
-
} catch (
|
|
198
|
-
this._chunkError(
|
|
197
|
+
} catch (E) {
|
|
198
|
+
this._chunkError(E.message);
|
|
199
199
|
}
|
|
200
200
|
S && r.status === 0 && this._chunkError();
|
|
201
201
|
}
|
|
@@ -213,8 +213,8 @@ function zt() {
|
|
|
213
213
|
}, this._nextChunk = function() {
|
|
214
214
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
215
215
|
}, this._readChunk = function() {
|
|
216
|
-
var y = this._input,
|
|
217
|
-
u || this._chunkLoaded({ target: { result:
|
|
216
|
+
var y = this._input, E = (this._config.chunkSize && (E = Math.min(this._start + this._config.chunkSize, this._input.size), y = i.call(y, this._start, E)), r.readAsText(y, this._config.encoding));
|
|
217
|
+
u || this._chunkLoaded({ target: { result: E } });
|
|
218
218
|
}, this._chunkLoaded = function(y) {
|
|
219
219
|
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(y.target.result);
|
|
220
220
|
}, this._chunkError = function() {
|
|
@@ -246,8 +246,8 @@ function zt() {
|
|
|
246
246
|
}, this._streamData = V(function(y) {
|
|
247
247
|
try {
|
|
248
248
|
r.push(typeof y == "string" ? y : y.toString(this._config.encoding)), i && (i = !1, this._checkIsFinished(), this.parseChunk(r.shift()));
|
|
249
|
-
} catch (
|
|
250
|
-
this._streamError(
|
|
249
|
+
} catch (E) {
|
|
250
|
+
this._streamError(E);
|
|
251
251
|
}
|
|
252
252
|
}, this), this._streamError = V(function(y) {
|
|
253
253
|
this._streamCleanUp(), this._sendError(y);
|
|
@@ -258,9 +258,9 @@ function zt() {
|
|
|
258
258
|
}, this);
|
|
259
259
|
}
|
|
260
260
|
function nt(e) {
|
|
261
|
-
var r, i, u, y,
|
|
262
|
-
function M(
|
|
263
|
-
return e.skipEmptyLines === "greedy" ?
|
|
261
|
+
var r, i, u, y, E = Math.pow(2, 53), v = -E, h = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, f = /^((\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)))$/, o = this, c = 0, l = 0, w = !1, g = !1, k = [], m = { data: [], errors: [], meta: {} };
|
|
262
|
+
function M(b) {
|
|
263
|
+
return e.skipEmptyLines === "greedy" ? b.join("").trim() === "" : b.length === 1 && b[0].length === 0;
|
|
264
264
|
}
|
|
265
265
|
function C() {
|
|
266
266
|
if (m && u && (W("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + p.DefaultDelimiter + "'"), u = !1), e.skipEmptyLines && (m.data = m.data.filter(function(_) {
|
|
@@ -270,14 +270,14 @@ function zt() {
|
|
|
270
270
|
R(e.transformHeader) && (L = e.transformHeader(L, B)), k.push(L);
|
|
271
271
|
};
|
|
272
272
|
if (m) if (Array.isArray(m.data[0])) {
|
|
273
|
-
for (var
|
|
273
|
+
for (var b = 0; Y() && b < m.data.length; b++) m.data[b].forEach(_);
|
|
274
274
|
m.data.splice(0, 1);
|
|
275
275
|
} else m.data.forEach(_);
|
|
276
276
|
}
|
|
277
277
|
function x(_, L) {
|
|
278
278
|
for (var B = e.header ? {} : [], A = 0; A < _.length; A++) {
|
|
279
279
|
var U = A, $ = _[A], $ = ((it, O) => ((P) => (e.dynamicTypingFunction && e.dynamicTyping[P] === void 0 && (e.dynamicTyping[P] = e.dynamicTypingFunction(P)), (e.dynamicTyping[P] || e.dynamicTyping) === !0))(it) ? O === "true" || O === "TRUE" || O !== "false" && O !== "FALSE" && (((P) => {
|
|
280
|
-
if (h.test(P) && (P = parseFloat(P), v < P && P <
|
|
280
|
+
if (h.test(P) && (P = parseFloat(P), v < P && P < E))
|
|
281
281
|
return 1;
|
|
282
282
|
})(O) ? parseFloat(O) : f.test(O) ? new Date(O) : O === "" ? null : O) : O)(U = e.header ? A >= k.length ? "__parsed_extra" : k[A] : U, $ = e.transform ? e.transform($, U) : $);
|
|
283
283
|
U === "__parsed_extra" ? (B[U] = B[U] || [], B[U].push($)) : B[U] = $;
|
|
@@ -290,13 +290,13 @@ function zt() {
|
|
|
290
290
|
function Y() {
|
|
291
291
|
return e.header && k.length === 0;
|
|
292
292
|
}
|
|
293
|
-
function W(
|
|
294
|
-
|
|
293
|
+
function W(b, x, D, _) {
|
|
294
|
+
b = { type: b, code: x, message: D }, _ !== void 0 && (b.row = _), m.errors.push(b);
|
|
295
295
|
}
|
|
296
|
-
R(e.step) && (y = e.step, e.step = function(
|
|
297
|
-
m =
|
|
298
|
-
}), this.parse = function(
|
|
299
|
-
var _ = e.quoteChar || '"', _ = (e.newline || (e.newline = this.guessLineEndings(
|
|
296
|
+
R(e.step) && (y = e.step, e.step = function(b) {
|
|
297
|
+
m = b, Y() ? C() : (C(), m.data.length !== 0 && (c += b.data.length, e.preview && c > e.preview ? i.abort() : (m.data = m.data[0], y(m, o))));
|
|
298
|
+
}), this.parse = function(b, x, D) {
|
|
299
|
+
var _ = e.quoteChar || '"', _ = (e.newline || (e.newline = this.guessLineEndings(b, _)), u = !1, e.delimiter ? R(e.delimiter) && (e.delimiter = e.delimiter(b), m.meta.delimiter = e.delimiter) : ((_ = ((L, B, A, U, $) => {
|
|
300
300
|
var it, O, P, dt;
|
|
301
301
|
$ = $ || [",", " ", "|", ";", p.RECORD_SEP, p.UNIT_SEP];
|
|
302
302
|
for (var mt = 0; mt < $.length; mt++) {
|
|
@@ -304,8 +304,8 @@ function zt() {
|
|
|
304
304
|
0 < et.data.length && (at /= et.data.length - J), (O === void 0 || Z <= O) && (dt === void 0 || dt < at) && 1.99 < at && (O = Z, it = wt, dt = at);
|
|
305
305
|
}
|
|
306
306
|
return { successful: !!(e.delimiter = it), bestDelimiter: it };
|
|
307
|
-
})(
|
|
308
|
-
return e.preview && e.header && _.preview++, r =
|
|
307
|
+
})(b, e.newline, e.skipEmptyLines, e.comments, e.delimitersToGuess)).successful ? e.delimiter = _.bestDelimiter : (u = !0, e.delimiter = p.DefaultDelimiter), m.meta.delimiter = e.delimiter), ct(e));
|
|
308
|
+
return e.preview && e.header && _.preview++, r = b, i = new pt(_), m = i.parse(r, x, D), C(), w ? { meta: { paused: !0 } } : m || { meta: { paused: !1 } };
|
|
309
309
|
}, this.paused = function() {
|
|
310
310
|
return w;
|
|
311
311
|
}, this.pause = function() {
|
|
@@ -332,7 +332,7 @@ function zt() {
|
|
|
332
332
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
333
333
|
}
|
|
334
334
|
function pt(e) {
|
|
335
|
-
var r = (e = e || {}).delimiter, i = e.newline, u = e.comments, y = e.step,
|
|
335
|
+
var r = (e = e || {}).delimiter, i = e.newline, u = e.comments, y = e.step, E = e.preview, v = e.fastMode, h = null, f = !1, o = e.quoteChar == null ? '"' : e.quoteChar, c = o;
|
|
336
336
|
if (e.escapeChar !== void 0 && (c = e.escapeChar), (typeof r != "string" || -1 < p.BAD_DELIMITERS.indexOf(r)) && (r = ","), u === r) throw new Error("Comment character same as delimiter");
|
|
337
337
|
u === !0 ? u = "#" : (typeof u != "string" || -1 < p.BAD_DELIMITERS.indexOf(u)) && (u = !1), i !== `
|
|
338
338
|
` && i !== "\r" && i !== `\r
|
|
@@ -341,17 +341,17 @@ function zt() {
|
|
|
341
341
|
var l = 0, w = !1;
|
|
342
342
|
this.parse = function(g, k, m) {
|
|
343
343
|
if (typeof g != "string") throw new Error("Input must be a string");
|
|
344
|
-
var M = g.length, C = r.length, Y = i.length, W = u.length,
|
|
344
|
+
var M = g.length, C = r.length, Y = i.length, W = u.length, b = R(y), x = [], D = [], _ = [], L = l = 0;
|
|
345
345
|
if (!g) return Z();
|
|
346
346
|
if (v || v !== !1 && g.indexOf(o) === -1) {
|
|
347
347
|
for (var B = g.split(i), A = 0; A < B.length; A++) {
|
|
348
348
|
if (_ = B[A], l += _.length, A !== B.length - 1) l += i.length;
|
|
349
349
|
else if (m) return Z();
|
|
350
350
|
if (!u || _.substring(0, W) !== u) {
|
|
351
|
-
if (
|
|
351
|
+
if (b) {
|
|
352
352
|
if (x = [], dt(_.split(r)), at(), w) return Z();
|
|
353
353
|
} else dt(_.split(r));
|
|
354
|
-
if (
|
|
354
|
+
if (E && E <= A) return x = x.slice(0, E), Z(!0);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
return Z();
|
|
@@ -368,8 +368,8 @@ function zt() {
|
|
|
368
368
|
break;
|
|
369
369
|
}
|
|
370
370
|
if (P = mt($), g.substring(O + 1 + P, O + 1 + P + Y) === i) {
|
|
371
|
-
if (_.push(g.substring(l, O).replace(it, o)), wt(O + 1 + P + Y), U = g.indexOf(r, l), O = g.indexOf(o, l),
|
|
372
|
-
if (
|
|
371
|
+
if (_.push(g.substring(l, O).replace(it, o)), wt(O + 1 + P + Y), U = g.indexOf(r, l), O = g.indexOf(o, l), b && (at(), w)) return Z();
|
|
372
|
+
if (E && x.length >= E) return Z(!0);
|
|
373
373
|
break;
|
|
374
374
|
}
|
|
375
375
|
D.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: x.length, index: l }), O++;
|
|
@@ -381,8 +381,8 @@ function zt() {
|
|
|
381
381
|
} else if (U !== -1 && (U < $ || $ === -1)) _.push(g.substring(l, U)), l = U + C, U = g.indexOf(r, l);
|
|
382
382
|
else {
|
|
383
383
|
if ($ === -1) break;
|
|
384
|
-
if (_.push(g.substring(l, $)), wt($ + Y),
|
|
385
|
-
if (
|
|
384
|
+
if (_.push(g.substring(l, $)), wt($ + Y), b && (at(), w)) return Z();
|
|
385
|
+
if (E && x.length >= E) return Z(!0);
|
|
386
386
|
}
|
|
387
387
|
return st();
|
|
388
388
|
function dt(J) {
|
|
@@ -393,7 +393,7 @@ function zt() {
|
|
|
393
393
|
return et = J !== -1 && (J = g.substring(O + 1, J)) && J.trim() === "" ? J.length : et;
|
|
394
394
|
}
|
|
395
395
|
function st(J) {
|
|
396
|
-
return m || (J === void 0 && (J = g.substring(l)), _.push(J), l = M, dt(_),
|
|
396
|
+
return m || (J === void 0 && (J = g.substring(l)), _.push(J), l = M, dt(_), b && at()), Z();
|
|
397
397
|
}
|
|
398
398
|
function wt(J) {
|
|
399
399
|
l = J, dt(_), _ = [], $ = g.indexOf(i, l);
|
|
@@ -432,7 +432,7 @@ function zt() {
|
|
|
432
432
|
u = !0, ft(r.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
433
433
|
}, pause: _t, resume: _t };
|
|
434
434
|
if (R(i.userStep)) {
|
|
435
|
-
for (var
|
|
435
|
+
for (var E = 0; E < r.results.data.length && (i.userStep({ data: r.results.data[E], errors: r.results.errors, meta: r.results.meta }, y), !u); E++) ;
|
|
436
436
|
delete r.results;
|
|
437
437
|
} else R(i.userChunk) && (i.userChunk(r.results, y, r.file), delete r.results);
|
|
438
438
|
}
|
|
@@ -465,17 +465,17 @@ function zt() {
|
|
|
465
465
|
(i = (() => {
|
|
466
466
|
var u;
|
|
467
467
|
return !!p.WORKERS_SUPPORTED && (u = (() => {
|
|
468
|
-
var y = s.URL || s.webkitURL || null,
|
|
469
|
-
return p.BLOB_URL || (p.BLOB_URL = y.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; ", "(",
|
|
468
|
+
var y = s.URL || s.webkitURL || null, E = n.toString();
|
|
469
|
+
return p.BLOB_URL || (p.BLOB_URL = y.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; ", "(", E, ")();"], { type: "text/javascript" })));
|
|
470
470
|
})(), (u = new s.Worker(u)).onmessage = vt, u.id = K++, T[u.id] = u);
|
|
471
471
|
})()).userStep = r.step, i.userChunk = r.chunk, i.userComplete = r.complete, i.userError = r.error, r.step = R(r.step), r.chunk = R(r.chunk), r.complete = R(r.complete), r.error = R(r.error), delete r.worker, i.postMessage({ input: e, config: r, workerId: i.id });
|
|
472
472
|
}, p.unparse = function(e, r) {
|
|
473
|
-
var i = !1, u = !0, y = ",",
|
|
473
|
+
var i = !1, u = !0, y = ",", E = `\r
|
|
474
474
|
`, v = '"', h = v + v, f = !1, o = null, c = !1, l = ((() => {
|
|
475
475
|
if (typeof r == "object") {
|
|
476
476
|
if (typeof r.delimiter != "string" || p.BAD_DELIMITERS.filter(function(k) {
|
|
477
477
|
return r.delimiter.indexOf(k) !== -1;
|
|
478
|
-
}).length || (y = r.delimiter), typeof r.quotes != "boolean" && typeof r.quotes != "function" && !Array.isArray(r.quotes) || (i = r.quotes), typeof r.skipEmptyLines != "boolean" && typeof r.skipEmptyLines != "string" || (f = r.skipEmptyLines), typeof r.newline == "string" && (
|
|
478
|
+
}).length || (y = r.delimiter), typeof r.quotes != "boolean" && typeof r.quotes != "function" && !Array.isArray(r.quotes) || (i = r.quotes), typeof r.skipEmptyLines != "boolean" && typeof r.skipEmptyLines != "string" || (f = r.skipEmptyLines), typeof r.newline == "string" && (E = r.newline), typeof r.quoteChar == "string" && (v = r.quoteChar), typeof r.header == "boolean" && (u = r.header), Array.isArray(r.columns)) {
|
|
479
479
|
if (r.columns.length === 0) throw new Error("Option columns is empty");
|
|
480
480
|
o = r.columns;
|
|
481
481
|
}
|
|
@@ -490,8 +490,8 @@ function zt() {
|
|
|
490
490
|
function w(k, m, M) {
|
|
491
491
|
var C = "", Y = (typeof k == "string" && (k = JSON.parse(k)), typeof m == "string" && (m = JSON.parse(m)), Array.isArray(k) && 0 < k.length), W = !Array.isArray(m[0]);
|
|
492
492
|
if (Y && u) {
|
|
493
|
-
for (var
|
|
494
|
-
0 < m.length && (C +=
|
|
493
|
+
for (var b = 0; b < k.length; b++) 0 < b && (C += y), C += g(k[b], b);
|
|
494
|
+
0 < m.length && (C += E);
|
|
495
495
|
}
|
|
496
496
|
for (var x = 0; x < m.length; x++) {
|
|
497
497
|
var D = (Y ? k : m[x]).length, _ = !1, L = Y ? Object.keys(m[x]).length === 0 : m[x].length === 0;
|
|
@@ -508,7 +508,7 @@ function zt() {
|
|
|
508
508
|
var it = Y && W ? k[$] : $;
|
|
509
509
|
C += g(m[x][it], $);
|
|
510
510
|
}
|
|
511
|
-
x < m.length - 1 && (!M || 0 < D && !L) && (C +=
|
|
511
|
+
x < m.length - 1 && (!M || 0 < D && !L) && (C += E);
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
return C;
|
|
@@ -516,25 +516,25 @@ function zt() {
|
|
|
516
516
|
function g(k, m) {
|
|
517
517
|
var M, C;
|
|
518
518
|
return k == null ? "" : k.constructor === Date ? JSON.stringify(k).slice(1, 25) : (C = !1, c && typeof k == "string" && c.test(k) && (k = "'" + k, C = !0), M = k.toString().replace(l, h), (C = C || i === !0 || typeof i == "function" && i(k, m) || Array.isArray(i) && i[m] || ((Y, W) => {
|
|
519
|
-
for (var
|
|
519
|
+
for (var b = 0; b < W.length; b++) if (-1 < Y.indexOf(W[b])) return !0;
|
|
520
520
|
return !1;
|
|
521
521
|
})(M, p.BAD_DELIMITERS) || -1 < M.indexOf(y) || M.charAt(0) === " " || M.charAt(M.length - 1) === " ") ? v + M + v : M);
|
|
522
522
|
}
|
|
523
523
|
}, p.RECORD_SEP = "", p.UNIT_SEP = "", p.BYTE_ORDER_MARK = "\uFEFF", p.BAD_DELIMITERS = ["\r", `
|
|
524
524
|
`, '"', p.BYTE_ORDER_MARK], p.WORKERS_SUPPORTED = !S && !!s.Worker, p.NODE_STREAM_INPUT = 1, p.LocalChunkSize = 10485760, p.RemoteChunkSize = 5242880, p.DefaultDelimiter = ",", p.Parser = pt, p.ParserHandle = nt, p.NetworkStreamer = j, p.FileStreamer = Q, p.StringStreamer = q, p.ReadableStreamStreamer = G, s.jQuery && ((d = s.jQuery).fn.parse = function(e) {
|
|
525
525
|
var r = e.config || {}, i = [];
|
|
526
|
-
return this.each(function(
|
|
526
|
+
return this.each(function(E) {
|
|
527
527
|
if (!(d(this).prop("tagName").toUpperCase() === "INPUT" && d(this).attr("type").toLowerCase() === "file" && s.FileReader) || !this.files || this.files.length === 0) return !0;
|
|
528
528
|
for (var v = 0; v < this.files.length; v++) i.push({ file: this.files[v], inputElem: this, instanceConfig: d.extend({}, r) });
|
|
529
529
|
}), u(), this;
|
|
530
530
|
function u() {
|
|
531
531
|
if (i.length === 0) R(e.complete) && e.complete();
|
|
532
532
|
else {
|
|
533
|
-
var
|
|
533
|
+
var E, v, h, f, o = i[0];
|
|
534
534
|
if (R(e.before)) {
|
|
535
535
|
var c = e.before(o.file, o.inputElem);
|
|
536
536
|
if (typeof c == "object") {
|
|
537
|
-
if (c.action === "abort") return
|
|
537
|
+
if (c.action === "abort") return E = "AbortError", v = o.file, h = o.inputElem, f = c.reason, void (R(e.error) && e.error({ name: E }, v, h, f));
|
|
538
538
|
if (c.action === "skip") return void y();
|
|
539
539
|
typeof c.config == "object" && (o.instanceConfig = d.extend(o.instanceConfig, c.config));
|
|
540
540
|
} else if (c === "skip") return void y();
|
|
@@ -552,7 +552,7 @@ function zt() {
|
|
|
552
552
|
e = e.data, p.WORKER_ID === void 0 && e && (p.WORKER_ID = e.workerId), typeof e.input == "string" ? s.postMessage({ workerId: p.WORKER_ID, results: p.parse(e.input, e.config), finished: !0 }) : (s.File && e.input instanceof File || e.input instanceof Object) && (e = p.parse(e.input, e.config)) && s.postMessage({ workerId: p.WORKER_ID, results: e, finished: !0 });
|
|
553
553
|
}), (j.prototype = Object.create(I.prototype)).constructor = j, (Q.prototype = Object.create(I.prototype)).constructor = Q, (q.prototype = Object.create(q.prototype)).constructor = q, (G.prototype = Object.create(I.prototype)).constructor = G, p;
|
|
554
554
|
});
|
|
555
|
-
})(
|
|
555
|
+
})(bt)), bt.exports;
|
|
556
556
|
}
|
|
557
557
|
var jt = zt();
|
|
558
558
|
const Yt = /* @__PURE__ */ Dt(jt), { parse: Bt, unparse: Pt } = Yt;
|
|
@@ -858,17 +858,20 @@ function he() {
|
|
|
858
858
|
}), N(Array.prototype, "first", function() {
|
|
859
859
|
return this.length > 0 ? this[0] : null;
|
|
860
860
|
}), N(Array.prototype, "groupBy", function(a) {
|
|
861
|
-
return this.reduce(
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
861
|
+
return this.reduce(
|
|
862
|
+
(t, n) => {
|
|
863
|
+
const s = a(n);
|
|
864
|
+
return Object.hasOwn(t, s) || (t[s] = []), t[s].push(n), t;
|
|
865
|
+
},
|
|
866
|
+
/* @__PURE__ */ Object.create(null)
|
|
867
|
+
);
|
|
865
868
|
}), N(Array.prototype, "orderBy", function(a, t = !0) {
|
|
866
869
|
return this?.sort((n, s) => Qt(n, s, a, t)), this;
|
|
867
870
|
}), N(Array.prototype, "removeBy", function(a, t) {
|
|
868
871
|
return this.filter((n) => a(n) !== t);
|
|
869
872
|
});
|
|
870
873
|
}
|
|
871
|
-
var
|
|
874
|
+
var Et = { exports: {} }, Vt = Et.exports, At;
|
|
872
875
|
function Zt() {
|
|
873
876
|
return At || (At = 1, (function(a, t) {
|
|
874
877
|
(function(n, s) {
|
|
@@ -971,8 +974,8 @@ function Zt() {
|
|
|
971
974
|
case j:
|
|
972
975
|
return l ? g(1, M) : g(0, M + 1);
|
|
973
976
|
case I:
|
|
974
|
-
var W = this.$locale().weekStart || 0,
|
|
975
|
-
return g(l ? C -
|
|
977
|
+
var W = this.$locale().weekStart || 0, b = (m < W ? m + 7 : m) - W;
|
|
978
|
+
return g(l ? C - b : C + (6 - b), M);
|
|
976
979
|
case p:
|
|
977
980
|
case G:
|
|
978
981
|
return k(Y + "Hours", 0);
|
|
@@ -1018,7 +1021,7 @@ function Zt() {
|
|
|
1018
1021
|
if (!this.isValid()) return c.invalidDate || nt;
|
|
1019
1022
|
var l = f || "YYYY-MM-DDTHH:mm:ssZ", w = u.z(this), g = this.$H, k = this.$m, m = this.$M, M = c.weekdays, C = c.months, Y = c.meridiem, W = function(D, _, L, B) {
|
|
1020
1023
|
return D && (D[_] || D(o, l)) || L[_].slice(0, B);
|
|
1021
|
-
},
|
|
1024
|
+
}, b = function(D) {
|
|
1022
1025
|
return u.s(g % 12 || 12, D, "0");
|
|
1023
1026
|
}, x = Y || function(D, _, L) {
|
|
1024
1027
|
var B = D < 12 ? "AM" : "PM";
|
|
@@ -1056,9 +1059,9 @@ function Zt() {
|
|
|
1056
1059
|
case "HH":
|
|
1057
1060
|
return u.s(g, 2, "0");
|
|
1058
1061
|
case "h":
|
|
1059
|
-
return
|
|
1062
|
+
return b(1);
|
|
1060
1063
|
case "hh":
|
|
1061
|
-
return
|
|
1064
|
+
return b(2);
|
|
1062
1065
|
case "a":
|
|
1063
1066
|
return x(g, k, !0);
|
|
1064
1067
|
case "A":
|
|
@@ -1133,9 +1136,9 @@ function Zt() {
|
|
|
1133
1136
|
}, h.toString = function() {
|
|
1134
1137
|
return this.$d.toUTCString();
|
|
1135
1138
|
}, v;
|
|
1136
|
-
})(),
|
|
1137
|
-
return i.prototype =
|
|
1138
|
-
|
|
1139
|
+
})(), E = y.prototype;
|
|
1140
|
+
return i.prototype = E, [["$ms", S], ["$s", z], ["$m", T], ["$H", K], ["$W", p], ["$M", j], ["$y", q], ["$D", G]].forEach((function(v) {
|
|
1141
|
+
E[v[1]] = function(h) {
|
|
1139
1142
|
return this.$g(h, v[0], v[1]);
|
|
1140
1143
|
};
|
|
1141
1144
|
})), i.extend = function(v, h) {
|
|
@@ -1144,7 +1147,7 @@ function Zt() {
|
|
|
1144
1147
|
return i(1e3 * v);
|
|
1145
1148
|
}, i.en = V[ct], i.Ls = V, i.p = {}, i;
|
|
1146
1149
|
}));
|
|
1147
|
-
})(
|
|
1150
|
+
})(Et)), Et.exports;
|
|
1148
1151
|
}
|
|
1149
1152
|
var Gt = Zt();
|
|
1150
1153
|
const tt = /* @__PURE__ */ Dt(Gt);
|
package/index.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(A,me){typeof exports=="object"&&typeof module<"u"?me(exports):typeof define=="function"&&define.amd?define(["exports"],me):(A=typeof globalThis<"u"?globalThis:A||self,me(A["ts-utils"]={}))})(this,(function(A){"use strict";const me={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class ke{static getScreenWidth(){return document.documentElement.clientWidth}static getScreenHeight(){return document.documentElement.clientHeight}}class de{static breakPoints=me;static getCurrentBreakpoint(){return de.getBreakpointByScreenWidth(ke.getScreenWidth())}static getBreakpointByScreenWidth(e=ke.getScreenWidth()){let n="xs";for(const s of Object.keys(de.breakPoints))de.breakPoints[s]<=e&&(n=s);return{breakpoint:n,screenWidth:e}}static isScreenGreaterThan(e){return ke.getScreenWidth()>de.breakPoints[e]}static isScreenSmallerThan(e){return ke.getScreenWidth()<de.breakPoints[e]}}var ee=(a=>(a.opera="opera",a.firefox="firefox",a.safari="safari",a.ie="ie",a.edgeLegacy="edgeLegacy",a.edg="edg",a.chrome="chrome",a.iOS="iOS",a.iOsSafari="iOsSafari",a.edgiOs="edgiOs",a.headlessChrome="headlessChrome",a.nodeRuntime="nodeRuntime",a.electron="electron",a))(ee||{});class Z{static getUserAgent(){return this.isBrowserEnv()?navigator.userAgent.toLowerCase():""}static resolveUserAgent(e){return(e??this.getUserAgent()).toLowerCase()}static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return n.includes("opr/")||n.includes("opera")}static isFirefox(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(e){if(!this.isBrowserEnv())return!1;const n=navigator.vendor.includes("Apple"),s=this.resolveUserAgent(e),d=s.includes("safari"),_=!(s.includes("crios")||s.includes("chrome")||s.includes("android")||s.includes("opr/")||s.includes("edg"));return n&&d&&_}static isIOS(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e),s=/iphone|ipad|ipod/.test(n),d=n.includes("macintosh")&&navigator.maxTouchPoints>1;return s||d}static isIosSafari(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return this.isIOS(n)&&this.isSafari(n)}static isEdgeLegacy(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return!!window.StyleMedia&&!n.includes("edg/")}static isEdg(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("edg/"):!1}static isEdgeIos(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return this.isIOS(n)&&n.includes("edgios")}static isIE(){return this.isBrowserEnv()?typeof document<"u"&&!!document.documentMode:!1}static isChrome(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e),s=navigator.vendor.includes("Google"),d=n.includes("chrome")||n.includes("crios"),_=!this.isEdg(n)&&!this.isOpera(n);return s&&d&&_}static isElectron(e){const n=!!(typeof process<"u"&&process.versions?.electron),s=this.resolveUserAgent(e);return n||s.includes("electron")}static isHeadlessChrome(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("headlesschrome"):!1}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){const e=Z.getUserAgent();if(Z.isElectron(e))return ee.electron;if(Z.isNodeRuntime())return ee.nodeRuntime;if(Z.isOpera(e))return ee.opera;if(Z.isFirefox(e))return ee.firefox;if(Z.isEdgeIos(e))return ee.edgiOs;if(Z.isIosSafari(e))return ee.iOsSafari;if(Z.isIOS(e))return ee.iOS;if(Z.isHeadlessChrome(e))return ee.headlessChrome;if(Z.isIE())return ee.ie;if(Z.isEdgeLegacy(e))return ee.edgeLegacy;if(Z.isEdg(e))return ee.edg;if(Z.isChrome(e))return ee.chrome;if(Z.isSafari(e))return ee.safari;throw new Error("Browser could not be detected: "+e)}}class Be{static toBlob(e,n,s=!1,d){return new Promise((_,j)=>{e.toBlob(U=>{U?_(U):j(new Error("canvas.toBlob returned null"))},n,s?d:void 0)})}}function Ye(a){return navigator.clipboard.writeText(a)}function be(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Oe={exports:{}};var Pe=Oe.exports,Re;function We(){return Re||(Re=1,(function(a,e){((n,s)=>{a.exports=s()})(Pe,function n(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},d,_=!s.document&&!!s.postMessage,j=s.IS_PAPA_WORKER||!1,U={},J=0,p={};function F(t){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(r){var i=le(r);i.chunkSize=parseInt(i.chunkSize),r.step||r.chunk||(i.chunkSize=null),this._handle=new ie(i),(this._handle.streamer=this)._config=i}).call(this,t),this.parseChunk=function(r,i){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let b=this._config.newline;b||(y=this._config.quoteChar||'"',b=this._handle.guessLineEndings(r,y)),r=[...r.split(b).slice(u)].join(b)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(y=this._config.beforeFirstChunk(r))!==void 0&&(r=y),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,y=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=y.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),y&&y.data&&(this._rowCount+=y.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),j)s.postMessage({results:y,workerId:p.WORKER_ID,finished:u});else if(L(this._config.chunk)&&!i){if(this._config.chunk(y,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=y=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(y.data),this._completeResults.errors=this._completeResults.errors.concat(y.errors),this._completeResults.meta=y.meta),this._completed||!u||!L(this._config.complete)||y&&y.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||y&&y.meta.paused||this._nextChunk(),y}this._halted=!0},this._sendError=function(r){L(this._config.error)?this._config.error(r):j&&this._config.error&&s.postMessage({workerId:p.WORKER_ID,error:r,finished:!1})}}function B(t){var r;(t=t||{}).chunkSize||(t.chunkSize=p.RemoteChunkSize),F.call(this,t),this._nextChunk=_?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),_||(r.onload=G(this._chunkLoaded,this),r.onerror=G(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!_),this._config.downloadRequestHeaders){var i,u=this._config.downloadRequestHeaders;for(i in u)r.setRequestHeader(i,u[i])}var y;this._config.chunkSize&&(y=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+y));try{r.send(this._config.downloadRequestBody)}catch(b){this._chunkError(b.message)}_&&r.status===0&&this._chunkError()}},this._chunkLoaded=function(){r.readyState===4&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(i=>(i=i.getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(i){i=r.statusText||i,this._sendError(new Error(i))}}function V(t){(t=t||{}).chunkSize||(t.chunkSize=p.LocalChunkSize),F.call(this,t);var r,i,u=typeof FileReader<"u";this.stream=function(y){this._input=y,i=y.slice||y.webkitSlice||y.mozSlice,u?((r=new FileReader).onload=G(this._chunkLoaded,this),r.onerror=G(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var y=this._input,b=(this._config.chunkSize&&(b=Math.min(this._start+this._config.chunkSize,this._input.size),y=i.call(y,this._start,b)),r.readAsText(y,this._config.encoding));u||this._chunkLoaded({target:{result:b}})},this._chunkLoaded=function(y){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(y.target.result)},this._chunkError=function(){this._sendError(r.error)}}function K(t){var r;F.call(this,t=t||{}),this.stream=function(i){return r=i,this._nextChunk()},this._nextChunk=function(){var i,u;if(!this._finished)return i=this._config.chunkSize,r=i?(u=r.substring(0,i),r.substring(i)):(u=r,""),this._finished=!r,this.parseChunk(u)}}function re(t){F.call(this,t=t||{});var r=[],i=!0,u=!1;this.pause=function(){F.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){F.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(y){this._input=y,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){u&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):i=!0},this._streamData=G(function(y){try{r.push(typeof y=="string"?y:y.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(b){this._streamError(b)}},this),this._streamError=G(function(y){this._streamCleanUp(),this._sendError(y)},this),this._streamEnd=G(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=G(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ie(t){var r,i,u,y,b=Math.pow(2,53),v=-b,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,f=/^((\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)))$/,o=this,c=0,l=0,w=!1,m=!1,k=[],g={data:[],errors:[],meta:{}};function M(E){return t.skipEmptyLines==="greedy"?E.join("").trim()==="":E.length===1&&E[0].length===0}function C(){if(g&&u&&(q("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),u=!1),t.skipEmptyLines&&(g.data=g.data.filter(function(S){return!M(S)})),Y()){let S=function(R,P){L(t.transformHeader)&&(R=t.transformHeader(R,P)),k.push(R)};if(g)if(Array.isArray(g.data[0])){for(var E=0;Y()&&E<g.data.length;E++)g.data[E].forEach(S);g.data.splice(0,1)}else g.data.forEach(S)}function D(S,R){for(var P=t.header?{}:[],I=0;I<S.length;I++){var z=I,$=S[I],$=((se,O)=>(N=>(t.dynamicTypingFunction&&t.dynamicTyping[N]===void 0&&(t.dynamicTyping[N]=t.dynamicTypingFunction(N)),(t.dynamicTyping[N]||t.dynamicTyping)===!0))(se)?O==="true"||O==="TRUE"||O!=="false"&&O!=="FALSE"&&((N=>{if(h.test(N)&&(N=parseFloat(N),v<N&&N<b))return 1})(O)?parseFloat(O):f.test(O)?new Date(O):O===""?null:O):O)(z=t.header?I>=k.length?"__parsed_extra":k[I]:z,$=t.transform?t.transform($,z):$);z==="__parsed_extra"?(P[z]=P[z]||[],P[z].push($)):P[z]=$}return t.header&&(I>k.length?q("FieldMismatch","TooManyFields","Too many fields: expected "+k.length+" fields but parsed "+I,l+R):I<k.length&&q("FieldMismatch","TooFewFields","Too few fields: expected "+k.length+" fields but parsed "+I,l+R)),P}var x;g&&(t.header||t.dynamicTyping||t.transform)&&(x=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(D),x=g.data.length):g.data=D(g.data,0),t.header&&g.meta&&(g.meta.fields=k),l+=x)}function Y(){return t.header&&k.length===0}function q(E,D,x,S){E={type:E,code:D,message:x},S!==void 0&&(E.row=S),g.errors.push(E)}L(t.step)&&(y=t.step,t.step=function(E){g=E,Y()?C():(C(),g.data.length!==0&&(c+=E.data.length,t.preview&&c>t.preview?i.abort():(g.data=g.data[0],y(g,o))))}),this.parse=function(E,D,x){var S=t.quoteChar||'"',S=(t.newline||(t.newline=this.guessLineEndings(E,S)),u=!1,t.delimiter?L(t.delimiter)&&(t.delimiter=t.delimiter(E),g.meta.delimiter=t.delimiter):((S=((R,P,I,z,$)=>{var se,O,N,pe;$=$||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var ve=0;ve<$.length;ve++){for(var ae,_e=$[ve],X=0,oe=0,Q=0,ne=(N=void 0,new ye({comments:z,delimiter:_e,newline:P,preview:10}).parse(R)),fe=0;fe<ne.data.length;fe++)I&&M(ne.data[fe])?Q++:(ae=ne.data[fe].length,oe+=ae,N===void 0?N=ae:0<ae&&(X+=Math.abs(ae-N),N=ae));0<ne.data.length&&(oe/=ne.data.length-Q),(O===void 0||X<=O)&&(pe===void 0||pe<oe)&&1.99<oe&&(O=X,se=_e,pe=oe)}return{successful:!!(t.delimiter=se),bestDelimiter:se}})(E,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=S.bestDelimiter:(u=!0,t.delimiter=p.DefaultDelimiter),g.meta.delimiter=t.delimiter),le(t));return t.preview&&t.header&&S.preview++,r=E,i=new ye(S),g=i.parse(r,D,x),C(),w?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return w},this.pause=function(){w=!0,i.abort(),r=L(t.chunk)?"":r.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(w=!1,o.streamer.parseChunk(r,!0)):setTimeout(o.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,i.abort(),g.meta.aborted=!0,L(t.complete)&&t.complete(g),r=""},this.guessLineEndings=function(R,S){R=R.substring(0,1048576);var S=new RegExp(ce(S)+"([^]*?)"+ce(S),"gm"),x=(R=R.replace(S,"")).split("\r"),S=R.split(`
|
|
1
|
+
(function(A,me){typeof exports=="object"&&typeof module<"u"?me(exports):typeof define=="function"&&define.amd?define(["exports"],me):(A=typeof globalThis<"u"?globalThis:A||self,me(A["ts-utils"]={}))})(this,(function(A){"use strict";const me={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class ke{static getScreenWidth(){return document.documentElement.clientWidth}static getScreenHeight(){return document.documentElement.clientHeight}}class de{static breakPoints=me;static getCurrentBreakpoint(){return de.getBreakpointByScreenWidth(ke.getScreenWidth())}static getBreakpointByScreenWidth(e=ke.getScreenWidth()){let n="xs";for(const s of Object.keys(de.breakPoints))de.breakPoints[s]<=e&&(n=s);return{breakpoint:n,screenWidth:e}}static isScreenGreaterThan(e){return ke.getScreenWidth()>de.breakPoints[e]}static isScreenSmallerThan(e){return ke.getScreenWidth()<de.breakPoints[e]}}var ee=(a=>(a.opera="opera",a.firefox="firefox",a.safari="safari",a.ie="ie",a.edgeLegacy="edgeLegacy",a.edg="edg",a.chrome="chrome",a.iOS="iOS",a.iOsSafari="iOsSafari",a.edgiOs="edgiOs",a.headlessChrome="headlessChrome",a.nodeRuntime="nodeRuntime",a.electron="electron",a))(ee||{});class Z{static getUserAgent(){return this.isBrowserEnv()?navigator.userAgent.toLowerCase():""}static resolveUserAgent(e){return(e??this.getUserAgent()).toLowerCase()}static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return n.includes("opr/")||n.includes("opera")}static isFirefox(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(e){if(!this.isBrowserEnv())return!1;const n=navigator.vendor.includes("Apple"),s=this.resolveUserAgent(e),d=s.includes("safari"),_=!(s.includes("crios")||s.includes("chrome")||s.includes("android")||s.includes("opr/")||s.includes("edg"));return n&&d&&_}static isIOS(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e),s=/iphone|ipad|ipod/.test(n),d=n.includes("macintosh")&&navigator.maxTouchPoints>1;return s||d}static isIosSafari(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return this.isIOS(n)&&this.isSafari(n)}static isEdgeLegacy(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return!!window.StyleMedia&&!n.includes("edg/")}static isEdg(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("edg/"):!1}static isEdgeIos(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e);return this.isIOS(n)&&n.includes("edgios")}static isIE(){return this.isBrowserEnv()?typeof document<"u"&&!!document.documentMode:!1}static isChrome(e){if(!this.isBrowserEnv())return!1;const n=this.resolveUserAgent(e),s=navigator.vendor.includes("Google"),d=n.includes("chrome")||n.includes("crios"),_=!this.isEdg(n)&&!this.isOpera(n);return s&&d&&_}static isElectron(e){const n=!!(typeof process<"u"&&process.versions?.electron),s=this.resolveUserAgent(e);return n||s.includes("electron")}static isHeadlessChrome(e){return this.isBrowserEnv()?this.resolveUserAgent(e).includes("headlesschrome"):!1}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){const e=Z.getUserAgent();if(Z.isElectron(e))return ee.electron;if(Z.isNodeRuntime())return ee.nodeRuntime;if(Z.isOpera(e))return ee.opera;if(Z.isFirefox(e))return ee.firefox;if(Z.isEdgeIos(e))return ee.edgiOs;if(Z.isIosSafari(e))return ee.iOsSafari;if(Z.isIOS(e))return ee.iOS;if(Z.isHeadlessChrome(e))return ee.headlessChrome;if(Z.isIE())return ee.ie;if(Z.isEdgeLegacy(e))return ee.edgeLegacy;if(Z.isEdg(e))return ee.edg;if(Z.isChrome(e))return ee.chrome;if(Z.isSafari(e))return ee.safari;throw new Error("Browser could not be detected: "+e)}}class Be{static toBlob(e,n,s=!1,d){return new Promise((_,j)=>{e.toBlob(U=>{U?_(U):j(new Error("canvas.toBlob returned null"))},n,s?d:void 0)})}}function Ye(a){return navigator.clipboard.writeText(a)}function Ee(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Oe={exports:{}};var Pe=Oe.exports,Re;function We(){return Re||(Re=1,(function(a,e){((n,s)=>{a.exports=s()})(Pe,function n(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},d,_=!s.document&&!!s.postMessage,j=s.IS_PAPA_WORKER||!1,U={},J=0,p={};function F(t){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(r){var i=le(r);i.chunkSize=parseInt(i.chunkSize),r.step||r.chunk||(i.chunkSize=null),this._handle=new ie(i),(this._handle.streamer=this)._config=i}).call(this,t),this.parseChunk=function(r,i){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let E=this._config.newline;E||(y=this._config.quoteChar||'"',E=this._handle.guessLineEndings(r,y)),r=[...r.split(E).slice(u)].join(E)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(y=this._config.beforeFirstChunk(r))!==void 0&&(r=y),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,y=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=y.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),y&&y.data&&(this._rowCount+=y.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),j)s.postMessage({results:y,workerId:p.WORKER_ID,finished:u});else if(L(this._config.chunk)&&!i){if(this._config.chunk(y,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=y=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(y.data),this._completeResults.errors=this._completeResults.errors.concat(y.errors),this._completeResults.meta=y.meta),this._completed||!u||!L(this._config.complete)||y&&y.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||y&&y.meta.paused||this._nextChunk(),y}this._halted=!0},this._sendError=function(r){L(this._config.error)?this._config.error(r):j&&this._config.error&&s.postMessage({workerId:p.WORKER_ID,error:r,finished:!1})}}function B(t){var r;(t=t||{}).chunkSize||(t.chunkSize=p.RemoteChunkSize),F.call(this,t),this._nextChunk=_?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),_||(r.onload=G(this._chunkLoaded,this),r.onerror=G(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!_),this._config.downloadRequestHeaders){var i,u=this._config.downloadRequestHeaders;for(i in u)r.setRequestHeader(i,u[i])}var y;this._config.chunkSize&&(y=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+y));try{r.send(this._config.downloadRequestBody)}catch(E){this._chunkError(E.message)}_&&r.status===0&&this._chunkError()}},this._chunkLoaded=function(){r.readyState===4&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(i=>(i=i.getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(i){i=r.statusText||i,this._sendError(new Error(i))}}function V(t){(t=t||{}).chunkSize||(t.chunkSize=p.LocalChunkSize),F.call(this,t);var r,i,u=typeof FileReader<"u";this.stream=function(y){this._input=y,i=y.slice||y.webkitSlice||y.mozSlice,u?((r=new FileReader).onload=G(this._chunkLoaded,this),r.onerror=G(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var y=this._input,E=(this._config.chunkSize&&(E=Math.min(this._start+this._config.chunkSize,this._input.size),y=i.call(y,this._start,E)),r.readAsText(y,this._config.encoding));u||this._chunkLoaded({target:{result:E}})},this._chunkLoaded=function(y){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(y.target.result)},this._chunkError=function(){this._sendError(r.error)}}function K(t){var r;F.call(this,t=t||{}),this.stream=function(i){return r=i,this._nextChunk()},this._nextChunk=function(){var i,u;if(!this._finished)return i=this._config.chunkSize,r=i?(u=r.substring(0,i),r.substring(i)):(u=r,""),this._finished=!r,this.parseChunk(u)}}function re(t){F.call(this,t=t||{});var r=[],i=!0,u=!1;this.pause=function(){F.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){F.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(y){this._input=y,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){u&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):i=!0},this._streamData=G(function(y){try{r.push(typeof y=="string"?y:y.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(E){this._streamError(E)}},this),this._streamError=G(function(y){this._streamCleanUp(),this._sendError(y)},this),this._streamEnd=G(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=G(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ie(t){var r,i,u,y,E=Math.pow(2,53),v=-E,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,f=/^((\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)))$/,o=this,c=0,l=0,w=!1,m=!1,k=[],g={data:[],errors:[],meta:{}};function M(b){return t.skipEmptyLines==="greedy"?b.join("").trim()==="":b.length===1&&b[0].length===0}function C(){if(g&&u&&(q("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),u=!1),t.skipEmptyLines&&(g.data=g.data.filter(function(S){return!M(S)})),Y()){let S=function(R,P){L(t.transformHeader)&&(R=t.transformHeader(R,P)),k.push(R)};if(g)if(Array.isArray(g.data[0])){for(var b=0;Y()&&b<g.data.length;b++)g.data[b].forEach(S);g.data.splice(0,1)}else g.data.forEach(S)}function D(S,R){for(var P=t.header?{}:[],I=0;I<S.length;I++){var z=I,$=S[I],$=((se,O)=>(N=>(t.dynamicTypingFunction&&t.dynamicTyping[N]===void 0&&(t.dynamicTyping[N]=t.dynamicTypingFunction(N)),(t.dynamicTyping[N]||t.dynamicTyping)===!0))(se)?O==="true"||O==="TRUE"||O!=="false"&&O!=="FALSE"&&((N=>{if(h.test(N)&&(N=parseFloat(N),v<N&&N<E))return 1})(O)?parseFloat(O):f.test(O)?new Date(O):O===""?null:O):O)(z=t.header?I>=k.length?"__parsed_extra":k[I]:z,$=t.transform?t.transform($,z):$);z==="__parsed_extra"?(P[z]=P[z]||[],P[z].push($)):P[z]=$}return t.header&&(I>k.length?q("FieldMismatch","TooManyFields","Too many fields: expected "+k.length+" fields but parsed "+I,l+R):I<k.length&&q("FieldMismatch","TooFewFields","Too few fields: expected "+k.length+" fields but parsed "+I,l+R)),P}var x;g&&(t.header||t.dynamicTyping||t.transform)&&(x=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(D),x=g.data.length):g.data=D(g.data,0),t.header&&g.meta&&(g.meta.fields=k),l+=x)}function Y(){return t.header&&k.length===0}function q(b,D,x,S){b={type:b,code:D,message:x},S!==void 0&&(b.row=S),g.errors.push(b)}L(t.step)&&(y=t.step,t.step=function(b){g=b,Y()?C():(C(),g.data.length!==0&&(c+=b.data.length,t.preview&&c>t.preview?i.abort():(g.data=g.data[0],y(g,o))))}),this.parse=function(b,D,x){var S=t.quoteChar||'"',S=(t.newline||(t.newline=this.guessLineEndings(b,S)),u=!1,t.delimiter?L(t.delimiter)&&(t.delimiter=t.delimiter(b),g.meta.delimiter=t.delimiter):((S=((R,P,I,z,$)=>{var se,O,N,pe;$=$||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var ve=0;ve<$.length;ve++){for(var ae,_e=$[ve],X=0,oe=0,Q=0,ne=(N=void 0,new ye({comments:z,delimiter:_e,newline:P,preview:10}).parse(R)),fe=0;fe<ne.data.length;fe++)I&&M(ne.data[fe])?Q++:(ae=ne.data[fe].length,oe+=ae,N===void 0?N=ae:0<ae&&(X+=Math.abs(ae-N),N=ae));0<ne.data.length&&(oe/=ne.data.length-Q),(O===void 0||X<=O)&&(pe===void 0||pe<oe)&&1.99<oe&&(O=X,se=_e,pe=oe)}return{successful:!!(t.delimiter=se),bestDelimiter:se}})(b,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=S.bestDelimiter:(u=!0,t.delimiter=p.DefaultDelimiter),g.meta.delimiter=t.delimiter),le(t));return t.preview&&t.header&&S.preview++,r=b,i=new ye(S),g=i.parse(r,D,x),C(),w?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return w},this.pause=function(){w=!0,i.abort(),r=L(t.chunk)?"":r.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(w=!1,o.streamer.parseChunk(r,!0)):setTimeout(o.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,i.abort(),g.meta.aborted=!0,L(t.complete)&&t.complete(g),r=""},this.guessLineEndings=function(R,S){R=R.substring(0,1048576);var S=new RegExp(ce(S)+"([^]*?)"+ce(S),"gm"),x=(R=R.replace(S,"")).split("\r"),S=R.split(`
|
|
2
2
|
`),R=1<S.length&&S[0].length<x[0].length;if(x.length===1||R)return`
|
|
3
3
|
`;for(var P=0,I=0;I<x.length;I++)x[I][0]===`
|
|
4
4
|
`&&P++;return P>=x.length/2?`\r
|
|
5
|
-
`:"\r"}}function ce(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(t){var r=(t=t||{}).delimiter,i=t.newline,u=t.comments,y=t.step,
|
|
5
|
+
`:"\r"}}function ce(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(t){var r=(t=t||{}).delimiter,i=t.newline,u=t.comments,y=t.step,E=t.preview,v=t.fastMode,h=null,f=!1,o=t.quoteChar==null?'"':t.quoteChar,c=o;if(t.escapeChar!==void 0&&(c=t.escapeChar),(typeof r!="string"||-1<p.BAD_DELIMITERS.indexOf(r))&&(r=","),u===r)throw new Error("Comment character same as delimiter");u===!0?u="#":(typeof u!="string"||-1<p.BAD_DELIMITERS.indexOf(u))&&(u=!1),i!==`
|
|
6
6
|
`&&i!=="\r"&&i!==`\r
|
|
7
7
|
`&&(i=`
|
|
8
|
-
`);var l=0,w=!1;this.parse=function(m,k,g){if(typeof m!="string")throw new Error("Input must be a string");var M=m.length,C=r.length,Y=i.length,q=u.length,
|
|
9
|
-
`,v='"',h=v+v,f=!1,o=null,c=!1,l=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||p.BAD_DELIMITERS.filter(function(k){return r.delimiter.indexOf(k)!==-1}).length||(y=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(i=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(f=r.skipEmptyLines),typeof r.newline=="string"&&(
|
|
10
|
-
`,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!_&&!!s.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=ye,p.ParserHandle=ie,p.NetworkStreamer=B,p.FileStreamer=V,p.StringStreamer=K,p.ReadableStreamStreamer=re,s.jQuery&&((d=s.jQuery).fn.parse=function(t){var r=t.config||{},i=[];return this.each(function(b){if(!(d(this).prop("tagName").toUpperCase()==="INPUT"&&d(this).attr("type").toLowerCase()==="file"&&s.FileReader)||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:d.extend({},r)})}),u(),this;function u(){if(i.length===0)L(t.complete)&&t.complete();else{var b,v,h,f,o=i[0];if(L(t.before)){var c=t.before(o.file,o.inputElem);if(typeof c=="object"){if(c.action==="abort")return b="AbortError",v=o.file,h=o.inputElem,f=c.reason,void(L(t.error)&&t.error({name:b},v,h,f));if(c.action==="skip")return void y();typeof c.config=="object"&&(o.instanceConfig=d.extend(o.instanceConfig,c.config))}else if(c==="skip")return void y()}var l=o.instanceConfig.complete;o.instanceConfig.complete=function(w){L(l)&&l(w,o.file,o.inputElem),y()},p.parse(o.file,o.instanceConfig)}}function y(){i.splice(0,1),u()}}),j&&(s.onmessage=function(t){t=t.data,p.WORKER_ID===void 0&&t&&(p.WORKER_ID=t.workerId),typeof t.input=="string"?s.postMessage({workerId:p.WORKER_ID,results:p.parse(t.input,t.config),finished:!0}):(s.File&&t.input instanceof File||t.input instanceof Object)&&(t=p.parse(t.input,t.config))&&s.postMessage({workerId:p.WORKER_ID,results:t,finished:!0})}),(B.prototype=Object.create(F.prototype)).constructor=B,(V.prototype=Object.create(F.prototype)).constructor=V,(K.prototype=Object.create(K.prototype)).constructor=K,(re.prototype=Object.create(F.prototype)).constructor=re,p})})(Oe)),Oe.exports}var Ne=We();const qe=be(Ne),{parse:Ke,unparse:Je}=qe;class Qe{static unparse(e,n){return Je(e,n)}static parse(e){return new Promise((n,s)=>{Ke(e,{header:!0,complete:d=>n(d),error:d=>s(d)})})}}class Ae{static revokeObjectUrlDelay=4e4;static utf8BomMimeType=/^\s*(?:text\/\S*|application\/xml|\S+\/\S+\+xml)\s*;\s*charset\s*=\s*utf-8/i;static saveAs(e,n,s={}){this.assertBrowserEnvironment();const d=this.resolveFileName(e,n),_=s.autoBom?this.addUtf8Bom(e):e;this.downloadBlob(_,d)}static resolveFileName(e,n){return typeof n=="string"&&n.trim().length>0?n:typeof File<"u"&&e instanceof File&&e.name.trim().length>0?e.name:"download"}static addUtf8Bom(e){return this.utf8BomMimeType.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}static assertBrowserEnvironment(){if(typeof window>"u"||typeof document>"u"||typeof URL>"u"||typeof URL.createObjectURL!="function"||typeof URL.revokeObjectURL!="function")throw new Error("DownloadHelper is only available in a browser environment with object URL support.")}static downloadBlob(e,n){const s=URL.createObjectURL(e);try{this.clickDownloadLink(s,n)}finally{window.setTimeout(()=>URL.revokeObjectURL(s),this.revokeObjectUrlDelay)}}static clickDownloadLink(e,n){const s=document.body??document.documentElement;if(!s)throw new Error("DownloadHelper.saveAs requires an initialized document.");const d=document.createElement("a");try{d.download=n,d.href=e,d.target="_blank",d.rel="noopener noreferrer",d.style.display="none",s.appendChild(d),d.click()}finally{d.remove()}}}class Ve{static getEnumValue(e,n){if(n in e)return e[n];throw Error(`${n} not found in ${e}`)}static getKeyValues(e){return Object.keys(e).filter(n=>!isNaN(Number(n))).map(n=>({key:Number(n),value:e[n]}))}}class Ze{static getFileExtension(e){let n="";const s=e.lastIndexOf(".");return s>0&&s<e.length-1&&(n=`.${e.substring(s+1).toLowerCase()}`),n}static readAsText(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=()=>{n.onload=null,n.onerror=null,typeof n.result=="string"?s(n.result):d(new Error("Unexpected result type"))},n.onerror=()=>{const _=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,d(_)},n.readAsText(e)})}static readAsArrayBuffer(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=()=>{n.onload=null,n.onerror=null,n.result instanceof ArrayBuffer?s(n.result):d(new Error("Unexpected result type"))},n.onerror=()=>{const _=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,d(_)},n.readAsArrayBuffer(e)})}static readAsDataUrl(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=_=>{s(_)},n.onerror=_=>d(_),n.readAsDataURL(e)})}static formatFileSize(e,n=2,s){if(e===0)return"0 Bytes";const d=1024,_=["Bytes","KB","MB","GB","TB"];let j=Math.floor(Math.log(e)/Math.log(d));s&&_.includes(s)&&(j=_.indexOf(s));const U=e/Math.pow(d,j);return`${parseFloat(U.toFixed(n))} ${_[j]}`}static isWithinSizeLimit(e,n){if(!Number.isSafeInteger(n)||n<0)throw new RangeError("maxBytes must be a non-negative safe integer.");return e.size<=n}static save(e,n,s){const d=new Blob([e],{type:s});Ae.saveAs(d,n)}}class He{static hasAllowedMimeType(e,n){const s=e.type.trim().toLowerCase();return s.length>0&&n.some(d=>d.trim().toLowerCase()===s)}static load(e){const n=URL.createObjectURL(e);return this.loadSource(n).finally(()=>URL.revokeObjectURL(n))}static async compress(e,n=.8,s="image/jpeg"){const d=await this.loadSource(e),{canvas:_}=this.resize(d,d.width,d.height);return _.toDataURL(s,n)}static resize(e,n,s){let{width:d,height:_}=e;const j=n/d,U=s/_,J=Math.min(j,U,1);d=Math.floor(d*J),_=Math.floor(_*J);const p=document.createElement("canvas");p.width=d,p.height=_;const F=p.getContext("2d");return F.clearRect(0,0,d,_),F.drawImage(e,0,0,d,_),{canvas:p,width:d,height:_}}static loadSource(e){return new Promise((n,s)=>{const d=new Image;d.onload=()=>n(d),d.onerror=s,d.src=e})}}class De{static set(e,n){localStorage.setItem(e,JSON.stringify(n))}static get(e){let n=null;const s=localStorage.getItem(e);return s&&(n=JSON.parse(s)),n}static remove(e){const n=localStorage.getItem(e)!==null;return n&&localStorage.removeItem(e),n}static removeAll(){localStorage.clear()}static getKeysBy(e){return Object.keys(localStorage).filter(n=>n.startsWith(e))}}var ge=(a=>(a.log="log",a.info="info",a.warn="warn",a.debug="debug",a.error="error",a))(ge||{});class H{static listeners=new Set;static enabled=!0;static log(...e){H.doLog(ge.log,e)}static info(...e){H.doLog(ge.info,e)}static warn(...e){H.doLog(ge.warn,e)}static debug(...e){H.doLog(ge.debug,e)}static error(...e){H.doLog(ge.error,e)}static clearListeners(){H.listeners.clear()}static setEnabled(e){H.enabled=e}static doLog(e,n){if(!H.enabled)return;const s={type:e,args:n,timestamp:new Date().toISOString()};for(const d of H.listeners)try{if(d(s)===!1)return}catch{}console[e].apply(console,n)}static onLog(e,n=!1){if(n){const s=d=>{try{return e(d)}finally{H.listeners.delete(s)}};return H.listeners.add(s),()=>H.listeners.delete(s)}return H.listeners.add(e),()=>H.listeners.delete(e)}}const Ge=(a,e,n)=>a.localeCompare(e)*(n?1:-1),Xe=(a,e)=>a<e?-1:a===e?0:1,et=(a,e,n)=>Xe(a,e)*(n?1:-1),tt=(a,e,n)=>typeof a=="string"&&typeof e=="string"?Ge(a,e,n):et(a,e,n),Te=(a,e,n,s)=>{const d=n(a),_=n(e);return tt(d,_,s)};class rt{static get(e){return De.get(e)}static set(e,n){De.set(e,n)}static remove(e){De.remove(e)}}class T{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=null;static onResize(e){return T.initialized||T.init(),T.listeners.add(e),()=>T.off(e)}static handleResize=()=>{T.resizeTimeout!==null&&(window.clearTimeout(T.resizeTimeout),T.resizeTimeout=null),T.resizeTimeout=window.setTimeout(()=>{const e=window.innerWidth;if(T.resizeTimeout=null,e!==T.lastWidth){T.lastWidth=e;for(const n of T.listeners)n(e)}},150)};static init(){if(!T.initialized){if(typeof window>"u")throw new Error("WindowResizeHelper is only available in browser environments");T.lastWidth=window.innerWidth,window.addEventListener("resize",T.handleResize,{passive:!0}),T.initialized=!0}}static off(e){T.initialized&&(T.listeners.delete(e),T.listeners.size===0&&(T.resizeTimeout!==null&&(window.clearTimeout(T.resizeTimeout),T.resizeTimeout=null),window.removeEventListener("resize",T.handleResize),T.initialized=!1,T.lastWidth=null))}}function W(a,e,n){Object.defineProperty(a,e,{configurable:!0,enumerable:!1,value:n,writable:!0})}function nt(){W(Array.prototype,"distinct",function(a){return a?this.filter((n,s,d)=>d.findIndex(_=>a(_,n))===s):this.filter((n,s,d)=>d.indexOf(n)===s)}),W(Array.prototype,"filterBy",function(a){return this.filter(e=>a(e))}),W(Array.prototype,"first",function(){return this.length>0?this[0]:null}),W(Array.prototype,"groupBy",function(a){return this.reduce((e,n)=>{const s=a(n);return e[s]||(e[s]=[]),e[s].push(n),e},{})}),W(Array.prototype,"orderBy",function(a,e=!0){return this?.sort((n,s)=>Te(n,s,a,e)),this}),W(Array.prototype,"removeBy",function(a,e){return this.filter(n=>a(n)!==e)})}var xe={exports:{}},it=xe.exports,Ie;function st(){return Ie||(Ie=1,(function(a,e){(function(n,s){a.exports=s()})(it,(function(){var n=1e3,s=6e4,d=36e5,_="millisecond",j="second",U="minute",J="hour",p="day",F="week",B="month",V="quarter",K="year",re="date",ie="Invalid Date",ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ye=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Se={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var h=["th","st","nd","rd"],f=v%100;return"["+v+(h[(f-20)%10]||h[f]||h[0])+"]"}},he=function(v,h,f){var o=String(v);return!o||o.length>=h?v:""+Array(h+1-o.length).join(f)+v},Ce={s:he,z:function(v){var h=-v.utcOffset(),f=Math.abs(h),o=Math.floor(f/60),c=f%60;return(h<=0?"+":"-")+he(o,2,"0")+":"+he(c,2,"0")},m:function v(h,f){if(h.date()<f.date())return-v(f,h);var o=12*(f.year()-h.year())+(f.month()-h.month()),c=h.clone().add(o,B),l=f-c<0,w=h.clone().add(o+(l?-1:1),B);return+(-(o+(f-c)/(l?c-w:w-c))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:B,y:K,w:F,d:p,D:re,h:J,m:U,s:j,ms:_,Q:V}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},le="en",G={};G[le]=Se;var L="$isDayjsObject",t=function(v){return v instanceof y||!(!v||!v[L])},r=function v(h,f,o){var c;if(!h)return le;if(typeof h=="string"){var l=h.toLowerCase();G[l]&&(c=l),f&&(G[l]=f,c=l);var w=h.split("-");if(!c&&w.length>1)return v(w[0])}else{var m=h.name;G[m]=h,c=m}return!o&&c&&(le=c),c||!o&&le},i=function(v,h){if(t(v))return v.clone();var f=typeof h=="object"?h:{};return f.date=v,f.args=arguments,new y(f)},u=Ce;u.l=r,u.i=t,u.w=function(v,h){return i(v,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var y=(function(){function v(f){this.$L=r(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[L]=!0}var h=v.prototype;return h.parse=function(f){this.$d=(function(o){var c=o.date,l=o.utc;if(c===null)return new Date(NaN);if(u.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var w=c.match(ce);if(w){var m=w[2]-1||0,k=(w[7]||"0").substring(0,3);return l?new Date(Date.UTC(w[1],m,w[3]||1,w[4]||0,w[5]||0,w[6]||0,k)):new Date(w[1],m,w[3]||1,w[4]||0,w[5]||0,w[6]||0,k)}}return new Date(c)})(f),this.init()},h.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},h.$utils=function(){return u},h.isValid=function(){return this.$d.toString()!==ie},h.isSame=function(f,o){var c=i(f);return this.startOf(o)<=c&&c<=this.endOf(o)},h.isAfter=function(f,o){return i(f)<this.startOf(o)},h.isBefore=function(f,o){return this.endOf(o)<i(f)},h.$g=function(f,o,c){return u.u(f)?this[o]:this.set(c,f)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(f,o){var c=this,l=!!u.u(o)||o,w=u.p(f),m=function(D,x){var S=u.w(c.$u?Date.UTC(c.$y,x,D):new Date(c.$y,x,D),c);return l?S:S.endOf(p)},k=function(D,x){return u.w(c.toDate()[D].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(x)),c)},g=this.$W,M=this.$M,C=this.$D,Y="set"+(this.$u?"UTC":"");switch(w){case K:return l?m(1,0):m(31,11);case B:return l?m(1,M):m(0,M+1);case F:var q=this.$locale().weekStart||0,E=(g<q?g+7:g)-q;return m(l?C-E:C+(6-E),M);case p:case re:return k(Y+"Hours",0);case J:return k(Y+"Minutes",1);case U:return k(Y+"Seconds",2);case j:return k(Y+"Milliseconds",3);default:return this.clone()}},h.endOf=function(f){return this.startOf(f,!1)},h.$set=function(f,o){var c,l=u.p(f),w="set"+(this.$u?"UTC":""),m=(c={},c[p]=w+"Date",c[re]=w+"Date",c[B]=w+"Month",c[K]=w+"FullYear",c[J]=w+"Hours",c[U]=w+"Minutes",c[j]=w+"Seconds",c[_]=w+"Milliseconds",c)[l],k=l===p?this.$D+(o-this.$W):o;if(l===B||l===K){var g=this.clone().set(re,1);g.$d[m](k),g.init(),this.$d=g.set(re,Math.min(this.$D,g.daysInMonth())).$d}else m&&this.$d[m](k);return this.init(),this},h.set=function(f,o){return this.clone().$set(f,o)},h.get=function(f){return this[u.p(f)]()},h.add=function(f,o){var c,l=this;f=Number(f);var w=u.p(o),m=function(M){var C=i(l);return u.w(C.date(C.date()+Math.round(M*f)),l)};if(w===B)return this.set(B,this.$M+f);if(w===K)return this.set(K,this.$y+f);if(w===p)return m(1);if(w===F)return m(7);var k=(c={},c[U]=s,c[J]=d,c[j]=n,c)[w]||1,g=this.$d.getTime()+f*k;return u.w(g,this)},h.subtract=function(f,o){return this.add(-1*f,o)},h.format=function(f){var o=this,c=this.$locale();if(!this.isValid())return c.invalidDate||ie;var l=f||"YYYY-MM-DDTHH:mm:ssZ",w=u.z(this),m=this.$H,k=this.$m,g=this.$M,M=c.weekdays,C=c.months,Y=c.meridiem,q=function(x,S,R,P){return x&&(x[S]||x(o,l))||R[S].slice(0,P)},E=function(x){return u.s(m%12||12,x,"0")},D=Y||function(x,S,R){var P=x<12?"AM":"PM";return R?P.toLowerCase():P};return l.replace(ye,(function(x,S){return S||(function(R){switch(R){case"YY":return String(o.$y).slice(-2);case"YYYY":return u.s(o.$y,4,"0");case"M":return g+1;case"MM":return u.s(g+1,2,"0");case"MMM":return q(c.monthsShort,g,C,3);case"MMMM":return q(C,g);case"D":return o.$D;case"DD":return u.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return q(c.weekdaysMin,o.$W,M,2);case"ddd":return q(c.weekdaysShort,o.$W,M,3);case"dddd":return M[o.$W];case"H":return String(m);case"HH":return u.s(m,2,"0");case"h":return E(1);case"hh":return E(2);case"a":return D(m,k,!0);case"A":return D(m,k,!1);case"m":return String(k);case"mm":return u.s(k,2,"0");case"s":return String(o.$s);case"ss":return u.s(o.$s,2,"0");case"SSS":return u.s(o.$ms,3,"0");case"Z":return w}return null})(x)||w.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(f,o,c){var l,w=this,m=u.p(o),k=i(f),g=(k.utcOffset()-this.utcOffset())*s,M=this-k,C=function(){return u.m(w,k)};switch(m){case K:l=C()/12;break;case B:l=C();break;case V:l=C()/3;break;case F:l=(M-g)/6048e5;break;case p:l=(M-g)/864e5;break;case J:l=M/d;break;case U:l=M/s;break;case j:l=M/n;break;default:l=M}return c?l:u.a(l)},h.daysInMonth=function(){return this.endOf(B).$D},h.$locale=function(){return G[this.$L]},h.locale=function(f,o){if(!f)return this.$L;var c=this.clone(),l=r(f,o,!0);return l&&(c.$L=l),c},h.clone=function(){return u.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},v})(),b=y.prototype;return i.prototype=b,[["$ms",_],["$s",j],["$m",U],["$H",J],["$W",p],["$M",B],["$y",K],["$D",re]].forEach((function(v){b[v[1]]=function(h){return this.$g(h,v[0],v[1])}})),i.extend=function(v,h){return v.$i||(v(h,y,i),v.$i=!0),i},i.locale=r,i.isDayjs=t,i.unix=function(v){return i(1e3*v)},i.en=G[le],i.Ls=G,i.p={},i}))})(xe)),xe.exports}var at=st();const te=be(at);var Me={exports:{}},ot=Me.exports,Ue;function ut(){return Ue||(Ue=1,(function(a,e){(function(n,s){a.exports=s()})(ot,(function(){var n="day";return function(s,d,_){var j=function(p){return p.add(4-p.isoWeekday(),n)},U=d.prototype;U.isoWeekYear=function(){return j(this).year()},U.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var F,B,V,K,re=j(this),ie=(F=this.isoWeekYear(),B=this.$u,V=(B?_.utc:_)().year(F).startOf("year"),K=4-V.isoWeekday(),V.isoWeekday()>4&&(K+=7),V.add(K,n));return re.diff(ie,"week")+1},U.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var J=U.startOf;U.startOf=function(p,F){var B=this.$utils(),V=!!B.u(F)||F;return B.p(p)==="isoweek"?V?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):J.bind(this)(p,F)}}}))})(Me)),Me.exports}var ct=ut();const lt=be(ct);var $e={exports:{}},ft=$e.exports,Fe;function dt(){return Fe||(Fe=1,(function(a,e){(function(n,s){a.exports=s()})(ft,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(s,d,_){var j=d.prototype,U=j.format;_.en.formats=n,j.format=function(J){J===void 0&&(J="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,F=(function(B,V){return B.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(K,re,ie){var ce=ie&&ie.toUpperCase();return re||V[ie]||n[ie]||V[ce].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(ye,Se,he){return Se||he.slice(1)}))}))})(J,p===void 0?{}:p);return U.call(this,F)}}}))})($e)),$e.exports}var ht=dt();const pt=be(ht);te.extend(pt),te.extend(lt);function gt(){W(Date.prototype,"add",function(a,e){return te(this).add(a,e).toDate()}),W(Date.prototype,"diff",function(a,e){return te(this).diff(a,e)}),W(Date.prototype,"endOf",function(a){return te(this).endOf(a).toDate()}),W(Date.prototype,"firstDayOfMonth",function(){return te(this).startOf("month").toDate()}),W(Date.prototype,"format",function(a){return te(this).format(a)}),W(Date.prototype,"isAfter",function(a,e){return te(this).isAfter(a,e)}),W(Date.prototype,"isBefore",function(a,e){return te(this).isBefore(a,e)}),W(Date.prototype,"isValid",function(){return te(this).isValid()}),W(Date.prototype,"isoWeek",function(){return te(this).isoWeek()}),W(Date.prototype,"subtract",function(a,e){return te(this).subtract(a,e).toDate()}),W(Date.prototype,"lastDayOfMonth",function(){return te(this).endOf("month").toDate()}),W(Date.prototype,"set",function(a,e){return te(this).set(a,e).toDate()}),W(Date.prototype,"startOf",function(a){return te(this).startOf(a).toDate()})}function mt(){W(String.prototype,"capitalize",function(){return this.charAt(0).toUpperCase()+this.slice(1)}),W(String.prototype,"isNumber",function(){return!isNaN(Number(this))&&this.trim()!==""}),W(String.prototype,"isEmpty",function(){return this===void 0||!this||this.length===0}),W(String.prototype,"stripTags",function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""})}class yt{resizeListener=null;onResizeCallbacks=new Set;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<"u"&&(this.resizeListener=this.onResize,window.addEventListener("resize",this.resizeListener,{passive:!0}))}destroy(){typeof window<"u"&&this.resizeListener!==null&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.emitTimeoutId!==null&&(clearTimeout(this.emitTimeoutId),this.emitTimeoutId=null),this.onResizeCallbacks.clear()}onResizeChange(e){this.onResizeCallbacks.add(e)}offResizeChange(e){this.onResizeCallbacks.delete(e)}onResize=()=>{if(typeof window>"u")return;const e=window.innerWidth;this.emitTimeoutId!==null&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null;const n=de.getBreakpointByScreenWidth(e);for(const s of this.onResizeCallbacks)s(e,n)},this.duplicateThresholdMs)}}A.BreakPointHelper=de,A.BreakPoints=me,A.BrowserHelper=Z,A.BrowserService=yt,A.BrowserType=ee,A.CanvasHelper=Be,A.CsvHelper=Qe,A.DownloadHelper=Ae,A.EnumHelper=Ve,A.FileHelper=Ze,A.ImageHelper=He,A.LocalStorageHelper=De,A.LoggerHelper=H,A.LoggerType=ge,A.ScreenHelper=ke,A.TokenHelper=rt,A.WindowResizeHelper=T,A.copyToClipboard=Ye,A.initArrayExtensions=nt,A.initDateExtensions=gt,A.initStringExtensions=mt,A.sortHelper=Te,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
8
|
+
`);var l=0,w=!1;this.parse=function(m,k,g){if(typeof m!="string")throw new Error("Input must be a string");var M=m.length,C=r.length,Y=i.length,q=u.length,b=L(y),D=[],x=[],S=[],R=l=0;if(!m)return X();if(v||v!==!1&&m.indexOf(o)===-1){for(var P=m.split(i),I=0;I<P.length;I++){if(S=P[I],l+=S.length,I!==P.length-1)l+=i.length;else if(g)return X();if(!u||S.substring(0,q)!==u){if(b){if(D=[],pe(S.split(r)),oe(),w)return X()}else pe(S.split(r));if(E&&E<=I)return D=D.slice(0,E),X(!0)}}return X()}for(var z=m.indexOf(r,l),$=m.indexOf(i,l),se=new RegExp(ce(c)+ce(o),"g"),O=m.indexOf(o,l);;)if(m[l]===o)for(O=l,l++;;){if((O=m.indexOf(o,O+1))===-1)return g||x.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:D.length,index:l}),ae();if(O===M-1)return ae(m.substring(l,O).replace(se,o));if(o===c&&m[O+1]===c)O++;else if(o===c||O===0||m[O-1]!==c){z!==-1&&z<O+1&&(z=m.indexOf(r,O+1));var N=ve(($=$!==-1&&$<O+1?m.indexOf(i,O+1):$)===-1?z:Math.min(z,$));if(m.substr(O+1+N,C)===r){S.push(m.substring(l,O).replace(se,o)),m[l=O+1+N+C]!==o&&(O=m.indexOf(o,l)),z=m.indexOf(r,l),$=m.indexOf(i,l);break}if(N=ve($),m.substring(O+1+N,O+1+N+Y)===i){if(S.push(m.substring(l,O).replace(se,o)),_e(O+1+N+Y),z=m.indexOf(r,l),O=m.indexOf(o,l),b&&(oe(),w))return X();if(E&&D.length>=E)return X(!0);break}x.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:D.length,index:l}),O++}}else if(u&&S.length===0&&m.substring(l,l+q)===u){if($===-1)return X();l=$+Y,$=m.indexOf(i,l),z=m.indexOf(r,l)}else if(z!==-1&&(z<$||$===-1))S.push(m.substring(l,z)),l=z+C,z=m.indexOf(r,l);else{if($===-1)break;if(S.push(m.substring(l,$)),_e($+Y),b&&(oe(),w))return X();if(E&&D.length>=E)return X(!0)}return ae();function pe(Q){D.push(Q),R=l}function ve(Q){var ne=0;return ne=Q!==-1&&(Q=m.substring(O+1,Q))&&Q.trim()===""?Q.length:ne}function ae(Q){return g||(Q===void 0&&(Q=m.substring(l)),S.push(Q),l=M,pe(S),b&&oe()),X()}function _e(Q){l=Q,pe(S),S=[],$=m.indexOf(i,l)}function X(Q){if(t.header&&!k&&D.length&&!f){var ne=D[0],fe=Object.create(null),Le=new Set(ne);let ze=!1;for(let we=0;we<ne.length;we++){let ue=ne[we];if(fe[ue=L(t.transformHeader)?t.transformHeader(ue,we):ue]){let be,je=fe[ue];for(;be=ue+"_"+je,je++,Le.has(be););Le.add(be),ne[we]=be,fe[ue]++,ze=!0,(h=h===null?{}:h)[be]=ue}else fe[ue]=1,ne[we]=ue;Le.add(ue)}ze&&console.warn("Duplicate headers found and renamed."),f=!0}return{data:D,errors:x,meta:{delimiter:r,linebreak:i,aborted:w,truncated:!!Q,cursor:R+(k||0),renamedHeaders:h}}}function oe(){y(X()),D=[],x=[]}},this.abort=function(){w=!0},this.getCharIndex=function(){return l}}function Se(t){var r=t.data,i=U[r.workerId],u=!1;if(r.error)i.userError(r.error,r.file);else if(r.results&&r.results.data){var y={abort:function(){u=!0,he(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Ce,resume:Ce};if(L(i.userStep)){for(var E=0;E<r.results.data.length&&(i.userStep({data:r.results.data[E],errors:r.results.errors,meta:r.results.meta},y),!u);E++);delete r.results}else L(i.userChunk)&&(i.userChunk(r.results,y,r.file),delete r.results)}r.finished&&!u&&he(r.workerId,r.results)}function he(t,r){var i=U[t];L(i.userComplete)&&i.userComplete(r),i.terminate(),delete U[t]}function Ce(){throw new Error("Not implemented.")}function le(t){if(typeof t!="object"||t===null)return t;var r,i=Array.isArray(t)?[]:{};for(r in t)i[r]=le(t[r]);return i}function G(t,r){return function(){t.apply(r,arguments)}}function L(t){return typeof t=="function"}return p.parse=function(t,r){var i=(r=r||{}).dynamicTyping||!1;if(L(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!L(r.transform)&&r.transform,!r.worker||!p.WORKERS_SUPPORTED)return i=null,p.NODE_STREAM_INPUT,typeof t=="string"?(t=(u=>u.charCodeAt(0)!==65279?u:u.slice(1))(t),i=new(r.download?B:K)(r)):t.readable===!0&&L(t.read)&&L(t.on)?i=new re(r):(s.File&&t instanceof File||t instanceof Object)&&(i=new V(r)),i.stream(t);(i=(()=>{var u;return!!p.WORKERS_SUPPORTED&&(u=(()=>{var y=s.URL||s.webkitURL||null,E=n.toString();return p.BLOB_URL||(p.BLOB_URL=y.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; ","(",E,")();"],{type:"text/javascript"})))})(),(u=new s.Worker(u)).onmessage=Se,u.id=J++,U[u.id]=u)})()).userStep=r.step,i.userChunk=r.chunk,i.userComplete=r.complete,i.userError=r.error,r.step=L(r.step),r.chunk=L(r.chunk),r.complete=L(r.complete),r.error=L(r.error),delete r.worker,i.postMessage({input:t,config:r,workerId:i.id})},p.unparse=function(t,r){var i=!1,u=!0,y=",",E=`\r
|
|
9
|
+
`,v='"',h=v+v,f=!1,o=null,c=!1,l=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||p.BAD_DELIMITERS.filter(function(k){return r.delimiter.indexOf(k)!==-1}).length||(y=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(i=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(f=r.skipEmptyLines),typeof r.newline=="string"&&(E=r.newline),typeof r.quoteChar=="string"&&(v=r.quoteChar),typeof r.header=="boolean"&&(u=r.header),Array.isArray(r.columns)){if(r.columns.length===0)throw new Error("Option columns is empty");o=r.columns}r.escapeChar!==void 0&&(h=r.escapeChar+v),r.escapeFormulae instanceof RegExp?c=r.escapeFormulae:typeof r.escapeFormulae=="boolean"&&r.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),new RegExp(ce(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return w(null,t,f);if(typeof t[0]=="object")return w(o||Object.keys(t[0]),t,f)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||o),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),w(t.fields||[],t.data||[],f);throw new Error("Unable to serialize unrecognized input");function w(k,g,M){var C="",Y=(typeof k=="string"&&(k=JSON.parse(k)),typeof g=="string"&&(g=JSON.parse(g)),Array.isArray(k)&&0<k.length),q=!Array.isArray(g[0]);if(Y&&u){for(var b=0;b<k.length;b++)0<b&&(C+=y),C+=m(k[b],b);0<g.length&&(C+=E)}for(var D=0;D<g.length;D++){var x=(Y?k:g[D]).length,S=!1,R=Y?Object.keys(g[D]).length===0:g[D].length===0;if(M&&!Y&&(S=M==="greedy"?g[D].join("").trim()==="":g[D].length===1&&g[D][0].length===0),M==="greedy"&&Y){for(var P=[],I=0;I<x;I++){var z=q?k[I]:I;P.push(g[D][z])}S=P.join("").trim()===""}if(!S){for(var $=0;$<x;$++){0<$&&!R&&(C+=y);var se=Y&&q?k[$]:$;C+=m(g[D][se],$)}D<g.length-1&&(!M||0<x&&!R)&&(C+=E)}}return C}function m(k,g){var M,C;return k==null?"":k.constructor===Date?JSON.stringify(k).slice(1,25):(C=!1,c&&typeof k=="string"&&c.test(k)&&(k="'"+k,C=!0),M=k.toString().replace(l,h),(C=C||i===!0||typeof i=="function"&&i(k,g)||Array.isArray(i)&&i[g]||((Y,q)=>{for(var b=0;b<q.length;b++)if(-1<Y.indexOf(q[b]))return!0;return!1})(M,p.BAD_DELIMITERS)||-1<M.indexOf(y)||M.charAt(0)===" "||M.charAt(M.length-1)===" ")?v+M+v:M)}},p.RECORD_SEP="",p.UNIT_SEP="",p.BYTE_ORDER_MARK="\uFEFF",p.BAD_DELIMITERS=["\r",`
|
|
10
|
+
`,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!_&&!!s.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=ye,p.ParserHandle=ie,p.NetworkStreamer=B,p.FileStreamer=V,p.StringStreamer=K,p.ReadableStreamStreamer=re,s.jQuery&&((d=s.jQuery).fn.parse=function(t){var r=t.config||{},i=[];return this.each(function(E){if(!(d(this).prop("tagName").toUpperCase()==="INPUT"&&d(this).attr("type").toLowerCase()==="file"&&s.FileReader)||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:d.extend({},r)})}),u(),this;function u(){if(i.length===0)L(t.complete)&&t.complete();else{var E,v,h,f,o=i[0];if(L(t.before)){var c=t.before(o.file,o.inputElem);if(typeof c=="object"){if(c.action==="abort")return E="AbortError",v=o.file,h=o.inputElem,f=c.reason,void(L(t.error)&&t.error({name:E},v,h,f));if(c.action==="skip")return void y();typeof c.config=="object"&&(o.instanceConfig=d.extend(o.instanceConfig,c.config))}else if(c==="skip")return void y()}var l=o.instanceConfig.complete;o.instanceConfig.complete=function(w){L(l)&&l(w,o.file,o.inputElem),y()},p.parse(o.file,o.instanceConfig)}}function y(){i.splice(0,1),u()}}),j&&(s.onmessage=function(t){t=t.data,p.WORKER_ID===void 0&&t&&(p.WORKER_ID=t.workerId),typeof t.input=="string"?s.postMessage({workerId:p.WORKER_ID,results:p.parse(t.input,t.config),finished:!0}):(s.File&&t.input instanceof File||t.input instanceof Object)&&(t=p.parse(t.input,t.config))&&s.postMessage({workerId:p.WORKER_ID,results:t,finished:!0})}),(B.prototype=Object.create(F.prototype)).constructor=B,(V.prototype=Object.create(F.prototype)).constructor=V,(K.prototype=Object.create(K.prototype)).constructor=K,(re.prototype=Object.create(F.prototype)).constructor=re,p})})(Oe)),Oe.exports}var Ne=We();const qe=Ee(Ne),{parse:Ke,unparse:Je}=qe;class Qe{static unparse(e,n){return Je(e,n)}static parse(e){return new Promise((n,s)=>{Ke(e,{header:!0,complete:d=>n(d),error:d=>s(d)})})}}class Ae{static revokeObjectUrlDelay=4e4;static utf8BomMimeType=/^\s*(?:text\/\S*|application\/xml|\S+\/\S+\+xml)\s*;\s*charset\s*=\s*utf-8/i;static saveAs(e,n,s={}){this.assertBrowserEnvironment();const d=this.resolveFileName(e,n),_=s.autoBom?this.addUtf8Bom(e):e;this.downloadBlob(_,d)}static resolveFileName(e,n){return typeof n=="string"&&n.trim().length>0?n:typeof File<"u"&&e instanceof File&&e.name.trim().length>0?e.name:"download"}static addUtf8Bom(e){return this.utf8BomMimeType.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}static assertBrowserEnvironment(){if(typeof window>"u"||typeof document>"u"||typeof URL>"u"||typeof URL.createObjectURL!="function"||typeof URL.revokeObjectURL!="function")throw new Error("DownloadHelper is only available in a browser environment with object URL support.")}static downloadBlob(e,n){const s=URL.createObjectURL(e);try{this.clickDownloadLink(s,n)}finally{window.setTimeout(()=>URL.revokeObjectURL(s),this.revokeObjectUrlDelay)}}static clickDownloadLink(e,n){const s=document.body??document.documentElement;if(!s)throw new Error("DownloadHelper.saveAs requires an initialized document.");const d=document.createElement("a");try{d.download=n,d.href=e,d.target="_blank",d.rel="noopener noreferrer",d.style.display="none",s.appendChild(d),d.click()}finally{d.remove()}}}class Ve{static getEnumValue(e,n){if(n in e)return e[n];throw Error(`${n} not found in ${e}`)}static getKeyValues(e){return Object.keys(e).filter(n=>!isNaN(Number(n))).map(n=>({key:Number(n),value:e[n]}))}}class Ze{static getFileExtension(e){let n="";const s=e.lastIndexOf(".");return s>0&&s<e.length-1&&(n=`.${e.substring(s+1).toLowerCase()}`),n}static readAsText(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=()=>{n.onload=null,n.onerror=null,typeof n.result=="string"?s(n.result):d(new Error("Unexpected result type"))},n.onerror=()=>{const _=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,d(_)},n.readAsText(e)})}static readAsArrayBuffer(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=()=>{n.onload=null,n.onerror=null,n.result instanceof ArrayBuffer?s(n.result):d(new Error("Unexpected result type"))},n.onerror=()=>{const _=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,d(_)},n.readAsArrayBuffer(e)})}static readAsDataUrl(e){const n=new FileReader;return new Promise((s,d)=>{n.onload=_=>{s(_)},n.onerror=_=>d(_),n.readAsDataURL(e)})}static formatFileSize(e,n=2,s){if(e===0)return"0 Bytes";const d=1024,_=["Bytes","KB","MB","GB","TB"];let j=Math.floor(Math.log(e)/Math.log(d));s&&_.includes(s)&&(j=_.indexOf(s));const U=e/Math.pow(d,j);return`${parseFloat(U.toFixed(n))} ${_[j]}`}static isWithinSizeLimit(e,n){if(!Number.isSafeInteger(n)||n<0)throw new RangeError("maxBytes must be a non-negative safe integer.");return e.size<=n}static save(e,n,s){const d=new Blob([e],{type:s});Ae.saveAs(d,n)}}class He{static hasAllowedMimeType(e,n){const s=e.type.trim().toLowerCase();return s.length>0&&n.some(d=>d.trim().toLowerCase()===s)}static load(e){const n=URL.createObjectURL(e);return this.loadSource(n).finally(()=>URL.revokeObjectURL(n))}static async compress(e,n=.8,s="image/jpeg"){const d=await this.loadSource(e),{canvas:_}=this.resize(d,d.width,d.height);return _.toDataURL(s,n)}static resize(e,n,s){let{width:d,height:_}=e;const j=n/d,U=s/_,J=Math.min(j,U,1);d=Math.floor(d*J),_=Math.floor(_*J);const p=document.createElement("canvas");p.width=d,p.height=_;const F=p.getContext("2d");return F.clearRect(0,0,d,_),F.drawImage(e,0,0,d,_),{canvas:p,width:d,height:_}}static loadSource(e){return new Promise((n,s)=>{const d=new Image;d.onload=()=>n(d),d.onerror=s,d.src=e})}}class De{static set(e,n){localStorage.setItem(e,JSON.stringify(n))}static get(e){let n=null;const s=localStorage.getItem(e);return s&&(n=JSON.parse(s)),n}static remove(e){const n=localStorage.getItem(e)!==null;return n&&localStorage.removeItem(e),n}static removeAll(){localStorage.clear()}static getKeysBy(e){return Object.keys(localStorage).filter(n=>n.startsWith(e))}}var ge=(a=>(a.log="log",a.info="info",a.warn="warn",a.debug="debug",a.error="error",a))(ge||{});class H{static listeners=new Set;static enabled=!0;static log(...e){H.doLog(ge.log,e)}static info(...e){H.doLog(ge.info,e)}static warn(...e){H.doLog(ge.warn,e)}static debug(...e){H.doLog(ge.debug,e)}static error(...e){H.doLog(ge.error,e)}static clearListeners(){H.listeners.clear()}static setEnabled(e){H.enabled=e}static doLog(e,n){if(!H.enabled)return;const s={type:e,args:n,timestamp:new Date().toISOString()};for(const d of H.listeners)try{if(d(s)===!1)return}catch{}console[e].apply(console,n)}static onLog(e,n=!1){if(n){const s=d=>{try{return e(d)}finally{H.listeners.delete(s)}};return H.listeners.add(s),()=>H.listeners.delete(s)}return H.listeners.add(e),()=>H.listeners.delete(e)}}const Ge=(a,e,n)=>a.localeCompare(e)*(n?1:-1),Xe=(a,e)=>a<e?-1:a===e?0:1,et=(a,e,n)=>Xe(a,e)*(n?1:-1),tt=(a,e,n)=>typeof a=="string"&&typeof e=="string"?Ge(a,e,n):et(a,e,n),Te=(a,e,n,s)=>{const d=n(a),_=n(e);return tt(d,_,s)};class rt{static get(e){return De.get(e)}static set(e,n){De.set(e,n)}static remove(e){De.remove(e)}}class T{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=null;static onResize(e){return T.initialized||T.init(),T.listeners.add(e),()=>T.off(e)}static handleResize=()=>{T.resizeTimeout!==null&&(window.clearTimeout(T.resizeTimeout),T.resizeTimeout=null),T.resizeTimeout=window.setTimeout(()=>{const e=window.innerWidth;if(T.resizeTimeout=null,e!==T.lastWidth){T.lastWidth=e;for(const n of T.listeners)n(e)}},150)};static init(){if(!T.initialized){if(typeof window>"u")throw new Error("WindowResizeHelper is only available in browser environments");T.lastWidth=window.innerWidth,window.addEventListener("resize",T.handleResize,{passive:!0}),T.initialized=!0}}static off(e){T.initialized&&(T.listeners.delete(e),T.listeners.size===0&&(T.resizeTimeout!==null&&(window.clearTimeout(T.resizeTimeout),T.resizeTimeout=null),window.removeEventListener("resize",T.handleResize),T.initialized=!1,T.lastWidth=null))}}function W(a,e,n){Object.defineProperty(a,e,{configurable:!0,enumerable:!1,value:n,writable:!0})}function nt(){W(Array.prototype,"distinct",function(a){return a?this.filter((n,s,d)=>d.findIndex(_=>a(_,n))===s):this.filter((n,s,d)=>d.indexOf(n)===s)}),W(Array.prototype,"filterBy",function(a){return this.filter(e=>a(e))}),W(Array.prototype,"first",function(){return this.length>0?this[0]:null}),W(Array.prototype,"groupBy",function(a){return this.reduce((e,n)=>{const s=a(n);return Object.hasOwn(e,s)||(e[s]=[]),e[s].push(n),e},Object.create(null))}),W(Array.prototype,"orderBy",function(a,e=!0){return this?.sort((n,s)=>Te(n,s,a,e)),this}),W(Array.prototype,"removeBy",function(a,e){return this.filter(n=>a(n)!==e)})}var xe={exports:{}},it=xe.exports,Ie;function st(){return Ie||(Ie=1,(function(a,e){(function(n,s){a.exports=s()})(it,(function(){var n=1e3,s=6e4,d=36e5,_="millisecond",j="second",U="minute",J="hour",p="day",F="week",B="month",V="quarter",K="year",re="date",ie="Invalid Date",ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ye=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Se={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var h=["th","st","nd","rd"],f=v%100;return"["+v+(h[(f-20)%10]||h[f]||h[0])+"]"}},he=function(v,h,f){var o=String(v);return!o||o.length>=h?v:""+Array(h+1-o.length).join(f)+v},Ce={s:he,z:function(v){var h=-v.utcOffset(),f=Math.abs(h),o=Math.floor(f/60),c=f%60;return(h<=0?"+":"-")+he(o,2,"0")+":"+he(c,2,"0")},m:function v(h,f){if(h.date()<f.date())return-v(f,h);var o=12*(f.year()-h.year())+(f.month()-h.month()),c=h.clone().add(o,B),l=f-c<0,w=h.clone().add(o+(l?-1:1),B);return+(-(o+(f-c)/(l?c-w:w-c))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:B,y:K,w:F,d:p,D:re,h:J,m:U,s:j,ms:_,Q:V}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},le="en",G={};G[le]=Se;var L="$isDayjsObject",t=function(v){return v instanceof y||!(!v||!v[L])},r=function v(h,f,o){var c;if(!h)return le;if(typeof h=="string"){var l=h.toLowerCase();G[l]&&(c=l),f&&(G[l]=f,c=l);var w=h.split("-");if(!c&&w.length>1)return v(w[0])}else{var m=h.name;G[m]=h,c=m}return!o&&c&&(le=c),c||!o&&le},i=function(v,h){if(t(v))return v.clone();var f=typeof h=="object"?h:{};return f.date=v,f.args=arguments,new y(f)},u=Ce;u.l=r,u.i=t,u.w=function(v,h){return i(v,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var y=(function(){function v(f){this.$L=r(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[L]=!0}var h=v.prototype;return h.parse=function(f){this.$d=(function(o){var c=o.date,l=o.utc;if(c===null)return new Date(NaN);if(u.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var w=c.match(ce);if(w){var m=w[2]-1||0,k=(w[7]||"0").substring(0,3);return l?new Date(Date.UTC(w[1],m,w[3]||1,w[4]||0,w[5]||0,w[6]||0,k)):new Date(w[1],m,w[3]||1,w[4]||0,w[5]||0,w[6]||0,k)}}return new Date(c)})(f),this.init()},h.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},h.$utils=function(){return u},h.isValid=function(){return this.$d.toString()!==ie},h.isSame=function(f,o){var c=i(f);return this.startOf(o)<=c&&c<=this.endOf(o)},h.isAfter=function(f,o){return i(f)<this.startOf(o)},h.isBefore=function(f,o){return this.endOf(o)<i(f)},h.$g=function(f,o,c){return u.u(f)?this[o]:this.set(c,f)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(f,o){var c=this,l=!!u.u(o)||o,w=u.p(f),m=function(D,x){var S=u.w(c.$u?Date.UTC(c.$y,x,D):new Date(c.$y,x,D),c);return l?S:S.endOf(p)},k=function(D,x){return u.w(c.toDate()[D].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(x)),c)},g=this.$W,M=this.$M,C=this.$D,Y="set"+(this.$u?"UTC":"");switch(w){case K:return l?m(1,0):m(31,11);case B:return l?m(1,M):m(0,M+1);case F:var q=this.$locale().weekStart||0,b=(g<q?g+7:g)-q;return m(l?C-b:C+(6-b),M);case p:case re:return k(Y+"Hours",0);case J:return k(Y+"Minutes",1);case U:return k(Y+"Seconds",2);case j:return k(Y+"Milliseconds",3);default:return this.clone()}},h.endOf=function(f){return this.startOf(f,!1)},h.$set=function(f,o){var c,l=u.p(f),w="set"+(this.$u?"UTC":""),m=(c={},c[p]=w+"Date",c[re]=w+"Date",c[B]=w+"Month",c[K]=w+"FullYear",c[J]=w+"Hours",c[U]=w+"Minutes",c[j]=w+"Seconds",c[_]=w+"Milliseconds",c)[l],k=l===p?this.$D+(o-this.$W):o;if(l===B||l===K){var g=this.clone().set(re,1);g.$d[m](k),g.init(),this.$d=g.set(re,Math.min(this.$D,g.daysInMonth())).$d}else m&&this.$d[m](k);return this.init(),this},h.set=function(f,o){return this.clone().$set(f,o)},h.get=function(f){return this[u.p(f)]()},h.add=function(f,o){var c,l=this;f=Number(f);var w=u.p(o),m=function(M){var C=i(l);return u.w(C.date(C.date()+Math.round(M*f)),l)};if(w===B)return this.set(B,this.$M+f);if(w===K)return this.set(K,this.$y+f);if(w===p)return m(1);if(w===F)return m(7);var k=(c={},c[U]=s,c[J]=d,c[j]=n,c)[w]||1,g=this.$d.getTime()+f*k;return u.w(g,this)},h.subtract=function(f,o){return this.add(-1*f,o)},h.format=function(f){var o=this,c=this.$locale();if(!this.isValid())return c.invalidDate||ie;var l=f||"YYYY-MM-DDTHH:mm:ssZ",w=u.z(this),m=this.$H,k=this.$m,g=this.$M,M=c.weekdays,C=c.months,Y=c.meridiem,q=function(x,S,R,P){return x&&(x[S]||x(o,l))||R[S].slice(0,P)},b=function(x){return u.s(m%12||12,x,"0")},D=Y||function(x,S,R){var P=x<12?"AM":"PM";return R?P.toLowerCase():P};return l.replace(ye,(function(x,S){return S||(function(R){switch(R){case"YY":return String(o.$y).slice(-2);case"YYYY":return u.s(o.$y,4,"0");case"M":return g+1;case"MM":return u.s(g+1,2,"0");case"MMM":return q(c.monthsShort,g,C,3);case"MMMM":return q(C,g);case"D":return o.$D;case"DD":return u.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return q(c.weekdaysMin,o.$W,M,2);case"ddd":return q(c.weekdaysShort,o.$W,M,3);case"dddd":return M[o.$W];case"H":return String(m);case"HH":return u.s(m,2,"0");case"h":return b(1);case"hh":return b(2);case"a":return D(m,k,!0);case"A":return D(m,k,!1);case"m":return String(k);case"mm":return u.s(k,2,"0");case"s":return String(o.$s);case"ss":return u.s(o.$s,2,"0");case"SSS":return u.s(o.$ms,3,"0");case"Z":return w}return null})(x)||w.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(f,o,c){var l,w=this,m=u.p(o),k=i(f),g=(k.utcOffset()-this.utcOffset())*s,M=this-k,C=function(){return u.m(w,k)};switch(m){case K:l=C()/12;break;case B:l=C();break;case V:l=C()/3;break;case F:l=(M-g)/6048e5;break;case p:l=(M-g)/864e5;break;case J:l=M/d;break;case U:l=M/s;break;case j:l=M/n;break;default:l=M}return c?l:u.a(l)},h.daysInMonth=function(){return this.endOf(B).$D},h.$locale=function(){return G[this.$L]},h.locale=function(f,o){if(!f)return this.$L;var c=this.clone(),l=r(f,o,!0);return l&&(c.$L=l),c},h.clone=function(){return u.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},v})(),E=y.prototype;return i.prototype=E,[["$ms",_],["$s",j],["$m",U],["$H",J],["$W",p],["$M",B],["$y",K],["$D",re]].forEach((function(v){E[v[1]]=function(h){return this.$g(h,v[0],v[1])}})),i.extend=function(v,h){return v.$i||(v(h,y,i),v.$i=!0),i},i.locale=r,i.isDayjs=t,i.unix=function(v){return i(1e3*v)},i.en=G[le],i.Ls=G,i.p={},i}))})(xe)),xe.exports}var at=st();const te=Ee(at);var Me={exports:{}},ot=Me.exports,Ue;function ut(){return Ue||(Ue=1,(function(a,e){(function(n,s){a.exports=s()})(ot,(function(){var n="day";return function(s,d,_){var j=function(p){return p.add(4-p.isoWeekday(),n)},U=d.prototype;U.isoWeekYear=function(){return j(this).year()},U.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var F,B,V,K,re=j(this),ie=(F=this.isoWeekYear(),B=this.$u,V=(B?_.utc:_)().year(F).startOf("year"),K=4-V.isoWeekday(),V.isoWeekday()>4&&(K+=7),V.add(K,n));return re.diff(ie,"week")+1},U.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var J=U.startOf;U.startOf=function(p,F){var B=this.$utils(),V=!!B.u(F)||F;return B.p(p)==="isoweek"?V?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):J.bind(this)(p,F)}}}))})(Me)),Me.exports}var ct=ut();const lt=Ee(ct);var $e={exports:{}},ft=$e.exports,Fe;function dt(){return Fe||(Fe=1,(function(a,e){(function(n,s){a.exports=s()})(ft,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(s,d,_){var j=d.prototype,U=j.format;_.en.formats=n,j.format=function(J){J===void 0&&(J="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,F=(function(B,V){return B.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(K,re,ie){var ce=ie&&ie.toUpperCase();return re||V[ie]||n[ie]||V[ce].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(ye,Se,he){return Se||he.slice(1)}))}))})(J,p===void 0?{}:p);return U.call(this,F)}}}))})($e)),$e.exports}var ht=dt();const pt=Ee(ht);te.extend(pt),te.extend(lt);function gt(){W(Date.prototype,"add",function(a,e){return te(this).add(a,e).toDate()}),W(Date.prototype,"diff",function(a,e){return te(this).diff(a,e)}),W(Date.prototype,"endOf",function(a){return te(this).endOf(a).toDate()}),W(Date.prototype,"firstDayOfMonth",function(){return te(this).startOf("month").toDate()}),W(Date.prototype,"format",function(a){return te(this).format(a)}),W(Date.prototype,"isAfter",function(a,e){return te(this).isAfter(a,e)}),W(Date.prototype,"isBefore",function(a,e){return te(this).isBefore(a,e)}),W(Date.prototype,"isValid",function(){return te(this).isValid()}),W(Date.prototype,"isoWeek",function(){return te(this).isoWeek()}),W(Date.prototype,"subtract",function(a,e){return te(this).subtract(a,e).toDate()}),W(Date.prototype,"lastDayOfMonth",function(){return te(this).endOf("month").toDate()}),W(Date.prototype,"set",function(a,e){return te(this).set(a,e).toDate()}),W(Date.prototype,"startOf",function(a){return te(this).startOf(a).toDate()})}function mt(){W(String.prototype,"capitalize",function(){return this.charAt(0).toUpperCase()+this.slice(1)}),W(String.prototype,"isNumber",function(){return!isNaN(Number(this))&&this.trim()!==""}),W(String.prototype,"isEmpty",function(){return this===void 0||!this||this.length===0}),W(String.prototype,"stripTags",function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""})}class yt{resizeListener=null;onResizeCallbacks=new Set;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<"u"&&(this.resizeListener=this.onResize,window.addEventListener("resize",this.resizeListener,{passive:!0}))}destroy(){typeof window<"u"&&this.resizeListener!==null&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.emitTimeoutId!==null&&(clearTimeout(this.emitTimeoutId),this.emitTimeoutId=null),this.onResizeCallbacks.clear()}onResizeChange(e){this.onResizeCallbacks.add(e)}offResizeChange(e){this.onResizeCallbacks.delete(e)}onResize=()=>{if(typeof window>"u")return;const e=window.innerWidth;this.emitTimeoutId!==null&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null;const n=de.getBreakpointByScreenWidth(e);for(const s of this.onResizeCallbacks)s(e,n)},this.duplicateThresholdMs)}}A.BreakPointHelper=de,A.BreakPoints=me,A.BrowserHelper=Z,A.BrowserService=yt,A.BrowserType=ee,A.CanvasHelper=Be,A.CsvHelper=Qe,A.DownloadHelper=Ae,A.EnumHelper=Ve,A.FileHelper=Ze,A.ImageHelper=He,A.LocalStorageHelper=De,A.LoggerHelper=H,A.LoggerType=ge,A.ScreenHelper=ke,A.TokenHelper=rt,A.WindowResizeHelper=T,A.copyToClipboard=Ye,A.initArrayExtensions=nt,A.initDateExtensions=gt,A.initStringExtensions=mt,A.sortHelper=Te,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|