@oardi/ts-utils 0.0.47 → 0.0.52
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/extensions/array-extensions.d.ts.map +1 -1
- package/helpers/break-point/break-point.helper.d.ts.map +1 -1
- package/helpers/browser/browser.helper.d.ts.map +1 -1
- package/helpers/canvas.helper.d.ts.map +1 -1
- package/helpers/download.helper.d.ts.map +1 -1
- package/helpers/file.helper.d.ts.map +1 -1
- package/helpers/image.helper.d.ts.map +1 -1
- package/helpers/sort.helper.d.ts.map +1 -1
- package/index.cjs.js +10 -10
- package/index.es.js +1235 -1272
- package/index.umd.js +10 -10
- package/package.json +1 -1
- package/services/browser/browser.service.d.ts +1 -2
- package/services/browser/browser.service.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-extensions.d.ts","sourceRoot":"","sources":["../../../lib/extensions/array-extensions.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,KAAK,CAAC,CAAC;QAChB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,CAAC,EAAE,CAAC;QACxE,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,GAAG,CAAC,EAAE,CAAC;QAC5D,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;QACpB,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;QACvE,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,CAAC;QAC7E,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;KACjE;CACD;AAED,wBAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"array-extensions.d.ts","sourceRoot":"","sources":["../../../lib/extensions/array-extensions.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,KAAK,CAAC,CAAC;QAChB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,CAAC,EAAE,CAAC;QACxE,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,GAAG,CAAC,EAAE,CAAC;QAC5D,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;QACpB,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;QACvE,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,CAAC;QAC7E,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;KACjE;CACD;AAED,wBAAgB,mBAAmB,SAgDlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"break-point.helper.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/break-point/break-point.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAIvD,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,MAAM,CAAC,WAAW,CAAqC;WAEjD,oBAAoB,IAAI,WAAW;WAInC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"break-point.helper.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/break-point/break-point.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAIvD,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,MAAM,CAAC,WAAW,CAAqC;WAEjD,oBAAoB,IAAI,WAAW;WAInC,0BAA0B,CACvC,KAAK,GAAE,MAAsC,GAC3C,WAAW;WAUA,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;WAIxC,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;CAGtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.helper.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/browser/browser.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD,qBAAa,aAAa;IACzB,+DAA+D;IAC/D,MAAM,CAAC,YAAY,IAAI,OAAO;IAI9B,MAAM,CAAC,OAAO,CAAC,cAAc,GAAE,MAA2B,GAAG,OAAO;IAKpE,MAAM,CAAC,SAAS,CAAC,cAAc,GAAE,MAA2B,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"browser.helper.d.ts","sourceRoot":"","sources":["../../../../lib/helpers/browser/browser.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD,qBAAa,aAAa;IACzB,+DAA+D;IAC/D,MAAM,CAAC,YAAY,IAAI,OAAO;IAI9B,MAAM,CAAC,OAAO,CAAC,cAAc,GAAE,MAA2B,GAAG,OAAO;IAKpE,MAAM,CAAC,SAAS,CAAC,cAAc,GAAE,MAA2B,GAAG,OAAO;IAQtE,MAAM,CAAC,QAAQ,CAAC,cAAc,GAAE,MAA2B,GAAG,OAAO;IAkBrE,MAAM,CAAC,KAAK,CAAC,cAAc,SAAqB,GAAG,OAAO;IAS1D,MAAM,CAAC,YAAY,IAAI,OAAO;IAK9B,MAAM,CAAC,KAAK,CAAC,cAAc,SAAqB,GAAG,OAAO;IAK1D,MAAM,CAAC,IAAI,IAAI,OAAO;IAKtB,MAAM,CAAC,QAAQ,CAAC,cAAc,SAAqB,GAAG,OAAO;IAW7D,MAAM,CAAC,UAAU,CAAC,cAAc,SAAqB,GAAG,OAAO;IAM/D,MAAM,CAAC,gBAAgB,CAAC,cAAc,SAAqB,GAAG,OAAO;IAIrE,MAAM,CAAC,aAAa,IAAI,OAAO;IAQ/B,MAAM,CAAC,iBAAiB,IAAI,WAAW;CAkBvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/canvas.helper.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IACxB,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"canvas.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/canvas.helper.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IACxB,MAAM,CAAC,MAAM,CACZ,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,OAAe,EACvB,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;CAYhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/download.helper.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAElE,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,wEAAwE,CAAC;IAC3F,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"download.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/download.helper.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAElE,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,wEAAwE,CAAC;IAC3F,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAsB,MAAM,CAC3B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAyDf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/file.helper.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACtB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAWjD;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAsB9C,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC;IAsB1D,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAWpE;;;SAGK;IACL,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"file.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/file.helper.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACtB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAWjD;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAsB9C,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC;IAsB1D,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAWpE;;;SAGK;IACL,MAAM,CAAC,cAAc,CACpB,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,MAAU,EACpB,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GACxC,MAAM;IAoBT,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAIxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/image.helper.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACvB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASlD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"image.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/image.helper.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACvB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASlD,MAAM,CAAC,MAAM,CACZ,GAAG,EAAE,gBAAgB,EACrB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GAClB,kBAAkB;CAoBrB;AAED,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/sort.helper.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"sort.helper.d.ts","sourceRoot":"","sources":["../../../lib/helpers/sort.helper.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,CAAC,EAC9B,GAAG,CAAC,EACJ,GAAG,CAAC,EACJ,aAAa,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EACxB,YAAY,OAAO,KACjB,MAIF,CAAC"}
|
package/index.cjs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600},u=class{static getScreenWidth(){return window.innerWidth}static getScreenHeight(){return window.innerHeight}},d=class e{static breakPoints=l;static getCurrentBreakpoint(){return e.getBreakpointByScreenWidth(u.getScreenWidth())}static getBreakpointByScreenWidth(t=u.getScreenWidth()){let n=`xs`;for(let r of Object.keys(e.breakPoints))e.breakPoints[r]<=t&&(n=r);return{breakpoint:n,screenWidth:t}}static isScreenGreaterThan(t){return u.getScreenWidth()>e.breakPoints[t]}static isScreenSmallerThan(t){return u.getScreenWidth()<e.breakPoints[t]}},f=function(e){return e.opera=`opera`,e.firefox=`firefox`,e.safari=`safari`,e.ie=`ie`,e.edgeLegacy=`edgeLegacy`,e.edg=`edg`,e.chrome=`chrome`,e.iOS=`iOS`,e.headlessChrome=`headlessChrome`,e.nodeRuntime=`nodeRuntime`,e.electron=`electron`,e}({}),p=(typeof navigator<`u`?navigator.userAgent:``).toLowerCase(),m=class e{static isBrowserEnv(){return typeof window<`u`&&typeof navigator<`u`}static isOpera(e=p){return this.isBrowserEnv()?e.includes(`opr/`)||e.includes(`opera`):!1}static isFirefox(e=p){return this.isBrowserEnv()?e.includes(`firefox`)||globalThis.InstallTrigger!==void 0:!1}static isSafari(e=p){if(!this.isBrowserEnv())return!1;let t=navigator.vendor&&navigator.vendor.includes(`Apple`),n=e.includes(`safari`),r=!(e.includes(`crios`)||e.includes(`chrome`)||e.includes(`android`)||e.includes(`opr/`)||e.includes(`edg`));return t&&n&&r}static isIOS(e=p){if(!this.isBrowserEnv())return!1;let t=/iphone|ipad|ipod/.test(e),n=e.includes(`macintosh`)&&navigator.maxTouchPoints>1;return t||n}static isEdgeLegacy(){return this.isBrowserEnv()?!!window.StyleMedia&&!p.includes(`edg/`):!1}static isEdg(e=p){return this.isBrowserEnv()?e.includes(`edg/`):!1}static isIE(){return!this.isBrowserEnv()&&typeof document>`u`?!1:!!document.documentMode}static isChrome(e=p){if(!this.isBrowserEnv())return!1;let t=navigator.vendor&&navigator.vendor.includes(`Google`),n=e.includes(`chrome`)||e.includes(`crios`),r=!this.isEdg(e)&&!this.isOpera(e);return t&&n&&r}static isElectron(e=p){return typeof process<`u`&&process.versions?.electron?!0:e.includes(`electron`)}static isHeadlessChrome(e=p){return e.includes(`headlesschrome`)}static isNodeRuntime(){return typeof process<`u`&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){let t=navigator.userAgent.toLowerCase();if(typeof navigator>`u`)throw Error(`navigator not set`);if(e.isOpera())return f.opera;if(e.isFirefox())return f.firefox;if(e.isSafari())return f.safari;if(e.isIE())return f.ie;if(e.isEdgeLegacy())return f.edgeLegacy;if(e.isEdg())return f.edg;if(e.isChrome())return f.chrome;if(e.isIOS(t))return f.iOS;if(e.isElectron(t))return f.electron;if(e.isHeadlessChrome(t))return f.headlessChrome;if(e.isNodeRuntime())return f.nodeRuntime;throw Error(`Browser could not be detected: `+t)}};function h(e){return navigator.clipboard.writeText(e)}var{parse:g,unparse:_}=c(o(((e,t)=>{((n,r)=>{typeof define==`function`&&define.amd?define([],r):typeof t==`object`&&e!==void 0?t.exports=r():n.Papa=r()})(e,function e(){var t=typeof self<`u`?self:typeof window<`u`?window:t===void 0?{}:t,n,r=!t.document&&!!t.postMessage,i=t.IS_PAPA_WORKER||!1,a={},o=0,s={};function c(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine=``,this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new p(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,n){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||=(a=this._config.quoteChar||`"`,this._handle.guessLineEndings(e,a)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&x(this._config.beforeFirstChunk)&&(a=this._config.beforeFirstChunk(e))!==void 0&&(e=a),this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e,a=(this._partialLine=``,this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=a.meta.cursor,r=(this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),a&&a.data&&(this._rowCount+=a.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),i)t.postMessage({results:a,workerId:s.WORKER_ID,finished:r});else if(x(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=a=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!r||!x(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){x(this._config.error)?this._config.error(e):i&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function l(e){var t;(e||={}).chunkSize||(e.chunkSize=s.RemoteChunkSize),c.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?`POST`:`GET`,this._input,!r),this._config.downloadRequestHeaders){var e,n=this._config.downloadRequestHeaders;for(e in n)t.setRequestHeader(e,n[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,t.setRequestHeader(`Range`,`bytes=`+this._start+`-`+i));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&t.status===0&&this._chunkError()}},this._chunkLoaded=function(){t.readyState===4&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>(e=e.getResponseHeader(`Content-Range`))===null?-1:parseInt(e.substring(e.lastIndexOf(`/`)+1)))(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function u(e){(e||={}).chunkSize||(e.chunkSize=s.LocalChunkSize),c.call(this,e);var t,n,r=typeof FileReader<`u`;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,i)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e||={}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return e=this._config.chunkSize,t=e?(n=t.substring(0,e),t.substring(e)):(n=t,``),this._finished=!t,this.parseChunk(n)}}function f(e){c.call(this,e||={});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on(`data`,this._streamData),this._input.on(`end`,this._streamEnd),this._input.on(`error`,this._streamError)},this._checkIsFinished=function(){r&&t.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=b(function(e){try{t.push(typeof e==`string`?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData(``)},this),this._streamCleanUp=b(function(){this._input.removeListener(`data`,this._streamData),this._input.removeListener(`end`,this._streamEnd),this._input.removeListener(`error`,this._streamError)},this)}function p(e){var t,n,r,i,a=2**53,o=-a,c=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,d=0,f=0,p=!1,g=!1,_=[],v={data:[],errors:[],meta:{}};function b(t){return e.skipEmptyLines===`greedy`?t.join(``).trim()===``:t.length===1&&t[0].length===0}function S(){if(v&&r&&(w(`Delimiter`,`UndetectableDelimiter`,`Unable to auto-detect delimiting character; defaulted to '`+s.DefaultDelimiter+`'`),r=!1),e.skipEmptyLines&&(v.data=v.data.filter(function(e){return!b(e)})),C()){if(v)if(Array.isArray(v.data[0])){for(var t=0;C()&&t<v.data.length;t++)v.data[t].forEach(n);v.data.splice(0,1)}else v.data.forEach(n);function n(t,n){x(e.transformHeader)&&(t=e.transformHeader(t,n)),_.push(t)}}function n(t,n){for(var r=e.header?{}:[],i=0;i<t.length;i++){var s=i,u=t[i],u=((t,n)=>(t=>(e.dynamicTypingFunction&&e.dynamicTyping[t]===void 0&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?n===`true`||n===`TRUE`||n!==`false`&&n!==`FALSE`&&((e=>{if(c.test(e)&&(e=parseFloat(e),o<e&&e<a))return 1})(n)?parseFloat(n):l.test(n)?new Date(n):n===``?null:n):n)(s=e.header?i>=_.length?`__parsed_extra`:_[i]:s,u=e.transform?e.transform(u,s):u);s===`__parsed_extra`?(r[s]=r[s]||[],r[s].push(u)):r[s]=u}return e.header&&(i>_.length?w(`FieldMismatch`,`TooManyFields`,`Too many fields: expected `+_.length+` fields but parsed `+i,f+n):i<_.length&&w(`FieldMismatch`,`TooFewFields`,`Too few fields: expected `+_.length+` fields but parsed `+i,f+n)),r}var i;v&&(e.header||e.dynamicTyping||e.transform)&&(i=1,!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(n),i=v.data.length):v.data=n(v.data,0),e.header&&v.meta&&(v.meta.fields=_),f+=i)}function C(){return e.header&&_.length===0}function w(e,t,n,r){e={type:e,code:t,message:n},r!==void 0&&(e.row=r),v.errors.push(e)}x(e.step)&&(i=e.step,e.step=function(t){v=t,C()?S():(S(),v.data.length!==0&&(d+=t.data.length,e.preview&&d>e.preview?n.abort():(v.data=v.data[0],i(v,u))))}),this.parse=function(i,a,o){var c=e.quoteChar||`"`,c=(e.newline||=this.guessLineEndings(i,c),r=!1,e.delimiter?x(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter):((c=((t,n,r,i,a)=>{var o,c,l,u;a||=[`,`,` `,`|`,`;`,s.RECORD_SEP,s.UNIT_SEP];for(var d=0;d<a.length;d++){for(var f,p=a[d],m=0,g=0,_=0,v=(l=void 0,new h({comments:i,delimiter:p,newline:n,preview:10}).parse(t)),y=0;y<v.data.length;y++)r&&b(v.data[y])?_++:(f=v.data[y].length,g+=f,l===void 0?l=f:0<f&&(m+=Math.abs(f-l),l=f));0<v.data.length&&(g/=v.data.length-_),(c===void 0||m<=c)&&(u===void 0||u<g)&&1.99<g&&(c=m,o=p,u=g)}return{successful:!!(e.delimiter=o),bestDelimiter:o}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=c.bestDelimiter:(r=!0,e.delimiter=s.DefaultDelimiter),v.meta.delimiter=e.delimiter),y(e));return e.preview&&e.header&&c.preview++,t=i,n=new h(c),v=n.parse(t,a,o),S(),p?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=x(e.chunk)?``:t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(p=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,n.abort(),v.meta.aborted=!0,x(e.complete)&&e.complete(v),t=``},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(m(t)+`([^]*?)`+m(t),`gm`),n=(e=e.replace(t,``)).split(`\r`),t=e.split(`
|
|
2
|
-
`),
|
|
3
|
-
`;for(var
|
|
4
|
-
`&&
|
|
5
|
-
|
|
6
|
-
`&&
|
|
7
|
-
`&&(
|
|
8
|
-
`);var f=0,
|
|
9
|
-
`,
|
|
10
|
-
`,`"`,s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!r&&!!t.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=`,`,s.Parser=h,s.ParserHandle=p,s.NetworkStreamer=l,s.FileStreamer=u,s.StringStreamer=d,s.ReadableStreamStreamer=f,t.jQuery&&((n=t.jQuery).fn.parse=function(e){var r=e.config||{},i=[];return this.each(function(e){if(!(n(this).prop(`tagName`).toUpperCase()===`INPUT`&&n(this).attr(`type`).toLowerCase()===`file`&&t.FileReader)||!this.files||this.files.length===0)return!0;for(var a=0;a<this.files.length;a++)i.push({file:this.files[a],inputElem:this,instanceConfig:n.extend({},r)})}),a(),this;function a(){if(i.length===0)x(e.complete)&&e.complete();else{var t,r,a,c,l=i[0];if(x(e.before)){var u=e.before(l.file,l.inputElem);if(typeof u==`object`){if(u.action===`abort`)return t=`AbortError`,r=l.file,a=l.inputElem,c=u.reason,void(x(e.error)&&e.error({name:t},r,a,c));if(u.action===`skip`)return void o();typeof u.config==`object`&&(l.instanceConfig=n.extend(l.instanceConfig,u.config))}else if(u===`skip`)return void o()}var d=l.instanceConfig.complete;l.instanceConfig.complete=function(e){x(d)&&d(e,l.file,l.inputElem),o()},s.parse(l.file,l.instanceConfig)}}function o(){i.splice(0,1),a()}}),i&&(t.onmessage=function(e){e=e.data,s.WORKER_ID===void 0&&e&&(s.WORKER_ID=e.workerId),typeof e.input==`string`?t.postMessage({workerId:s.WORKER_ID,results:s.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=s.parse(e.input,e.config))&&t.postMessage({workerId:s.WORKER_ID,results:e,finished:!0})}),(l.prototype=Object.create(c.prototype)).constructor=l,(u.prototype=Object.create(c.prototype)).constructor=u,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,s})}))()).default,v=class{static unparse(e,t){return _(e,t)}static parse(e){return new Promise((t,n)=>{g(e,{header:!0,complete:e=>t(e),error:e=>n(e)})})}};async function y(e,t,n){let r=n?.mimeType??x(t),i=b(e,r);if(`showSaveFilePicker`in window&&n?.showSaveFilePicker)try{let e=await(await window.showSaveFilePicker({suggestedName:t,types:[{description:`Datei`,accept:{[r]:[`.${S(t)}`]}}]})).createWritable();await e.write(i),await e.close();return}catch{}let a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=t,o.rel=`noopener`,o.style.display=`none`,document.body.appendChild(o),C(o),window.setTimeout(()=>{document.body.removeChild(o),URL.revokeObjectURL(a)},0),w()&&window.open(a,`_blank`,`noopener,noreferrer`)}function b(e,t){if(e instanceof Blob)return e.type?e:new Blob([e],{type:t});if(e instanceof ArrayBuffer||e instanceof Uint8Array){let n=e instanceof Uint8Array?e:new Uint8Array(e);return new Blob([n],{type:t})}return new Blob([e],{type:t||`text/plain;charset=utf-8`})}function x(e){switch(S(e).toLowerCase()){case`txt`:return`text/plain;charset=utf-8`;case`csv`:return`text/csv;charset=utf-8`;case`json`:return`application/json;charset=utf-8`;case`pdf`:return`application/pdf`;case`png`:return`image/png`;case`jpg`:case`jpeg`:return`image/jpeg`;case`svg`:return`image/svg+xml`;case`zip`:return`application/zip`;default:return`application/octet-stream`}}function S(e){let t=e.lastIndexOf(`.`);return t>=0&&t<e.length-1?e.slice(t+1):``}function C(e){let t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}function w(){let e=navigator.userAgent,t=/iPad|iPhone|iPod/.test(e),n=/^((?!chrome|android).)*safari/i.test(e);return t||n}var T=class{static getEnumValue(e,t){if(t in e)return e[t];throw Error(`${t} not found in ${e}`)}static getKeyValues(e){return Object.keys(e).filter(e=>!isNaN(Number(e))).map(t=>({key:Number(t),value:e[t]}))}},E=class{static getFileExtension(e){let t=``,n=e.lastIndexOf(`.`);return n>0&&n<e.length-1&&(t=`.${e.substring(n+1).toLowerCase()}`),t}static readAsText(e){let t=new FileReader;return new Promise((n,r)=>{t.onload=()=>{t.onload=null,t.onerror=null,typeof t.result==`string`?n(t.result):r(Error(`Unexpected result type`))},t.onerror=()=>{let e=t.error??Error(`FileReader error`);t.onload=null,t.onerror=null,r(e)},t.readAsText(e)})}static readAsArrayBuffer(e){let t=new FileReader;return new Promise((n,r)=>{t.onload=()=>{t.onload=null,t.onerror=null,t.result instanceof ArrayBuffer?n(t.result):r(Error(`Unexpected result type`))},t.onerror=()=>{let e=t.error??Error(`FileReader error`);t.onload=null,t.onerror=null,r(e)},t.readAsArrayBuffer(e)})}static readAsDataUrl(e){let t=new FileReader;return new Promise((n,r)=>{t.onload=e=>{n(e)},t.onerror=e=>r(e),t.readAsDataURL(e)})}static formatFileSize(e,t=2,n){if(e===0)return`0 Bytes`;let r=1024,i=[`Bytes`,`KB`,`MB`,`GB`,`TB`],a=Math.floor(Math.log(e)/Math.log(r));n&&i.includes(n)&&(a=i.indexOf(n));let o=e/r**+a;return`${parseFloat(o.toFixed(t))} ${i[a]}`}static save(e,t,n){y(new Blob([e],{type:n}),t)}},D=class e{static set(e,t){localStorage.setItem(e,JSON.stringify(t))}static get(e){let t=null,n=localStorage.getItem(e);return n&&(t=JSON.parse(n)),t}static remove(t){let n=!!e.get(t);return n&&localStorage.removeItem(t),n}static removeAll(){localStorage.clear()}static getKeysBy(e){return Object.keys(localStorage).filter(t=>t.startsWith(e))}},O=function(e){return e.log=`log`,e.info=`info`,e.warn=`warn`,e.debug=`debug`,e.error=`error`,e}({}),k=class e{static listeners=new Set;static enabled=!0;static log(...t){e.doLog(O.log,t)}static info(...t){e.doLog(O.info,t)}static warn(...t){e.doLog(O.warn,t)}static debug(...t){e.doLog(O.debug,t)}static error(...t){e.doLog(O.error,t)}static clearListeners(){e.listeners.clear()}static setEnabled(t){e.enabled=t}static doLog(t,n){if(!e.enabled)return;let r={type:t,args:n,timestamp:new Date().toISOString()};for(let t of e.listeners)try{if(t(r)===!1)return}catch{}console[t].apply(console,n)}static onLog(t,n=!1){if(n){let n=r=>{try{return t(r)}finally{e.listeners.delete(n)}};return e.listeners.add(n),()=>e.listeners.delete(n)}return e.listeners.add(t),()=>e.listeners.delete(t)}},A=function(e){return e[e.NONE=0]=`NONE`,e[e.ASC=1]=`ASC`,e[e.DESC=-1]=`DESC`,e}(A||{}),j=(e,t,n)=>e.localeCompare(t)*(n?A.ASC:A.DESC),M=(e,t)=>e<t?A.DESC:e===t?A.NONE:A.ASC,N=(e,t,n)=>M(e,t)*(n?A.ASC:A.DESC),P=(e,t,n)=>{let r=0;return r=typeof e==`string`&&typeof t==`string`?j(e,t,n):N(e,t,n),r},F=(e,t,n,r)=>P(n(e),n(t),r),I=class{static get(e){return D.get(e)}static set(e,t){D.set(e,t)}static remove(e){D.remove(e)}},L=class e{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=window.innerWidth;static onResize(t){return e.initialized||e.init(),e.listeners.add(t),()=>e.off(t)}static handleResize=()=>{e.resizeTimeout!==null&&(window.clearTimeout(e.resizeTimeout),e.resizeTimeout=null),e.resizeTimeout=window.setTimeout(()=>{let t=window.innerWidth;if(t!==e.lastWidth){e.lastWidth=t;for(let n of e.listeners)n(t)}},150)};static init(){e.initialized||=(window.addEventListener(`resize`,e.handleResize,{passive:!0}),!0)}static off(t){e.initialized&&(e.listeners.delete(t),e.listeners.size===0&&(window.removeEventListener(`resize`,e.handleResize),e.initialized=!1))}};function R(){Array.prototype.distinct=function(e){return e?this.filter((t,n,r)=>r.findIndex(n=>e(n,t))===n):this.filter((e,t,n)=>n.indexOf(e)===t)},Array.prototype.filterBy=function(e){return this.filter(t=>e(t))},Array.prototype.first=function(){return this.length>0?this[0]:null},Array.prototype.groupBy=function(e){return this.reduce((t,n)=>{let r=e(n);return t[r]||(t[r]=[]),t[r].push(n),t},{})},Array.prototype.orderBy=function(e,t=!0){return this?.sort((n,r)=>F(n,r,e,t)),this},Array.prototype.removeBy=function(e,t){return this.filter(n=>e(n)!==t)}}var z=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),B=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";var e=`day`;return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,a,o,s,c=i(this),l=(n=this.isoWeekYear(),a=this.$u,o=(a?r.utc:r)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):o.bind(this)(e,t)}}}))})),V=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={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(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),H=c(z()),U=c(B()),W=c(V());H.default.extend(W.default),H.default.extend(U.default);function G(){Date.prototype.add=function(e,t){return(0,H.default)(this).add(e,t).toDate()},Date.prototype.diff=function(e,t){return(0,H.default)(this).diff(e,t)},Date.prototype.endOf=function(e){return(0,H.default)(this).endOf(e).toDate()},Date.prototype.firstDayOfMonth=function(){return(0,H.default)(this).startOf(`month`).toDate()},Date.prototype.format=function(e){return(0,H.default)(this).format(e)},Date.prototype.isAfter=function(e,t){return(0,H.default)(this).isAfter(e,t)},Date.prototype.isBefore=function(e,t){return(0,H.default)(this).isBefore(e,t)},Date.prototype.isValid=function(){return(0,H.default)(this).isValid()},Date.prototype.isoWeek=function(){return(0,H.default)(this).isoWeek()},Date.prototype.subtract=function(e,t){return(0,H.default)(this).subtract(e,t).toDate()},Date.prototype.lastDayOfMonth=function(){return(0,H.default)(this).endOf(`month`).toDate()},Date.prototype.set=function(e,t){return(0,H.default)(this).set(e,t).toDate()},Date.prototype.startOf=function(e){return(0,H.default)(this).startOf(e).toDate()}}function K(){String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.isNumber=function(){return!isNaN(Number(this))&&this.trim()!==``},String.prototype.isEmpty=function(){return this===void 0||!this||this.length===0},String.prototype.stripTags=function(){return new DOMParser().parseFromString(this.toString(),`text/html`).body.textContent||``}}var q=class{resizeListener;onResizeCallbacks=new Set;rafId=null;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<`u`&&(this.resizeListener=this.onResize.bind(this),window.addEventListener(`resize`,this.resizeListener,{passive:!0}))}destroy(){typeof window<`u`&&window.removeEventListener(`resize`,this.resizeListener),this.onResizeCallbacks.clear(),this.rafId!==null&&(cancelAnimationFrame(this.rafId),this.rafId=null)}onResizeChange(e){this.onResizeCallbacks.add(e)}offResizeChange(e){this.onResizeCallbacks.delete(e)}onResize=()=>{typeof window>`u`||(this.emitTimeoutId&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null},this.duplicateThresholdMs))}};exports.BreakPointHelper=d,exports.BreakPoints=l,exports.BrowserHelper=m,exports.BrowserService=q,exports.BrowserType=f,exports.CsvHelper=v,exports.EnumHelper=T,exports.FileHelper=E,exports.LocalStorageHelper=D,exports.LoggerHelper=k,exports.LoggerType=O,exports.ScreenHelper=u,exports.TokenHelper=I,exports.WindowResizeHelper=L,exports.copyToClipboard=h,exports.initArrayExtensions=R,exports.initDateExtensions=G,exports.initStringExtensions=K,exports.saveAs=y,exports.sortHelper=F;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ft={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class bt{static getScreenWidth(){return document.documentElement.clientWidth}static getScreenHeight(){return document.documentElement.clientHeight}}class ht{static breakPoints=Ft;static getCurrentBreakpoint(){return ht.getBreakpointByScreenWidth(bt.getScreenWidth())}static getBreakpointByScreenWidth(t=bt.getScreenWidth()){let n="xs";for(const a of Object.keys(ht.breakPoints))ht.breakPoints[a]<=t&&(n=a);return{breakpoint:n,screenWidth:t}}static isScreenGreaterThan(t){return bt.getScreenWidth()>ht.breakPoints[t]}static isScreenSmallerThan(t){return bt.getScreenWidth()<ht.breakPoints[t]}}var tt=(s=>(s.opera="opera",s.firefox="firefox",s.safari="safari",s.ie="ie",s.edgeLegacy="edgeLegacy",s.edg="edg",s.chrome="chrome",s.iOS="iOS",s.headlessChrome="headlessChrome",s.nodeRuntime="nodeRuntime",s.electron="electron",s))(tt||{});const Yt=typeof navigator<"u"?navigator.userAgent:"",ft=Yt.toLowerCase();class et{static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(t=ft){return this.isBrowserEnv()?t.includes("opr/")||t.includes("opera"):!1}static isFirefox(t=ft){return this.isBrowserEnv()?t.includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(t=ft){if(!this.isBrowserEnv())return!1;const n=navigator.vendor&&navigator.vendor.includes("Apple"),a=t.includes("safari"),k=!(t.includes("crios")||t.includes("chrome")||t.includes("android")||t.includes("opr/")||t.includes("edg"));return n&&a&&k}static isIOS(t=ft){if(!this.isBrowserEnv())return!1;const n=/iphone|ipad|ipod/.test(t),a=t.includes("macintosh")&&navigator.maxTouchPoints>1;return n||a}static isEdgeLegacy(){return this.isBrowserEnv()?!!window.StyleMedia&&!ft.includes("edg/"):!1}static isEdg(t=ft){return this.isBrowserEnv()?t.includes("edg/"):!1}static isIE(){return!this.isBrowserEnv()&&typeof document>"u"?!1:!!document.documentMode}static isChrome(t=ft){if(!this.isBrowserEnv())return!1;const n=navigator.vendor&&navigator.vendor.includes("Google"),a=t.includes("chrome")||t.includes("crios"),k=!this.isEdg(t)&&!this.isOpera(t);return n&&a&&k}static isElectron(t=ft){return typeof process<"u"&&process.versions?.electron?!0:t.includes("electron")}static isHeadlessChrome(t=ft){return t.includes("headlesschrome")}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){const t=navigator.userAgent.toLowerCase();if(typeof navigator>"u")throw new Error("navigator not set");if(et.isOpera())return tt.opera;if(et.isFirefox())return tt.firefox;if(et.isSafari())return tt.safari;if(et.isIE())return tt.ie;if(et.isEdgeLegacy())return tt.edgeLegacy;if(et.isEdg())return tt.edg;if(et.isChrome())return tt.chrome;if(et.isIOS(t))return tt.iOS;if(et.isElectron(t))return tt.electron;if(et.isHeadlessChrome(t))return tt.headlessChrome;if(et.isNodeRuntime())return tt.nodeRuntime;throw new Error("Browser could not be detected: "+t)}}function Wt(s){return navigator.clipboard.writeText(s)}function Mt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Et={exports:{}};var Ut=Et.exports,Tt;function Bt(){return Tt||(Tt=1,(function(s,t){((n,a)=>{s.exports=a()})(Ut,function n(){var a=typeof self<"u"?self:typeof window<"u"?window:a!==void 0?a:{},k,D=!a.document&&!!a.postMessage,T=a.IS_PAPA_WORKER||!1,P={},q=0,p={};function Y(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(r){var i=ut(r);i.chunkSize=parseInt(i.chunkSize),r.step||r.chunk||(i.chunkSize=null),this._handle=new rt(i),(this._handle.streamer=this)._config=i}).call(this,e),this.parseChunk=function(r,i){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let S=this._config.newline;S||(m=this._config.quoteChar||'"',S=this._handle.guessLineEndings(r,m)),r=[...r.split(S).slice(u)].join(S)}this.isFirstChunk&&R(this._config.beforeFirstChunk)&&(m=this._config.beforeFirstChunk(r))!==void 0&&(r=m),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,m=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=m.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),m&&m.data&&(this._rowCount+=m.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),T)a.postMessage({results:m,workerId:p.WORKER_ID,finished:u});else if(R(this._config.chunk)&&!i){if(this._config.chunk(m,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=m=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(m.data),this._completeResults.errors=this._completeResults.errors.concat(m.errors),this._completeResults.meta=m.meta),this._completed||!u||!R(this._config.complete)||m&&m.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||m&&m.meta.paused||this._nextChunk(),m}this._halted=!0},this._sendError=function(r){R(this._config.error)?this._config.error(r):T&&this._config.error&&a.postMessage({workerId:p.WORKER_ID,error:r,finished:!1})}}function F(e){var r;(e=e||{}).chunkSize||(e.chunkSize=p.RemoteChunkSize),Y.call(this,e),this._nextChunk=D?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),D||(r.onload=Q(this._chunkLoaded,this),r.onerror=Q(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!D),this._config.downloadRequestHeaders){var i,u=this._config.downloadRequestHeaders;for(i in u)r.setRequestHeader(i,u[i])}var m;this._config.chunkSize&&(m=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+m));try{r.send(this._config.downloadRequestBody)}catch(S){this._chunkError(S.message)}D&&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 J(e){(e=e||{}).chunkSize||(e.chunkSize=p.LocalChunkSize),Y.call(this,e);var r,i,u=typeof FileReader<"u";this.stream=function(m){this._input=m,i=m.slice||m.webkitSlice||m.mozSlice,u?((r=new FileReader).onload=Q(this._chunkLoaded,this),r.onerror=Q(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 m=this._input,S=(this._config.chunkSize&&(S=Math.min(this._start+this._config.chunkSize,this._input.size),m=i.call(m,this._start,S)),r.readAsText(m,this._config.encoding));u||this._chunkLoaded({target:{result:S}})},this._chunkLoaded=function(m){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(m.target.result)},this._chunkError=function(){this._sendError(r.error)}}function N(e){var r;Y.call(this,e=e||{}),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 G(e){Y.call(this,e=e||{});var r=[],i=!0,u=!1;this.pause=function(){Y.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){Y.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(m){this._input=m,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=Q(function(m){try{r.push(typeof m=="string"?m:m.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(S){this._streamError(S)}},this),this._streamError=Q(function(m){this._streamCleanUp(),this._sendError(m)},this),this._streamEnd=Q(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function rt(e){var r,i,u,m,S=Math.pow(2,53),y=-S,d=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,o=this,c=0,f=0,v=!1,g=!1,_=[],h={data:[],errors:[],meta:{}};function M(b){return e.skipEmptyLines==="greedy"?b.join("").trim()==="":b.length===1&&b[0].length===0}function C(){if(h&&u&&(B("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),u=!1),e.skipEmptyLines&&(h.data=h.data.filter(function(w){return!M(w)})),z()){let w=function(A,j){R(e.transformHeader)&&(A=e.transformHeader(A,j)),_.push(A)};if(h)if(Array.isArray(h.data[0])){for(var b=0;z()&&b<h.data.length;b++)h.data[b].forEach(w);h.data.splice(0,1)}else h.data.forEach(w)}function x(w,A){for(var j=e.header?{}:[],I=0;I<w.length;I++){var L=I,$=w[I],$=((nt,E)=>(W=>(e.dynamicTypingFunction&&e.dynamicTyping[W]===void 0&&(e.dynamicTyping[W]=e.dynamicTypingFunction(W)),(e.dynamicTyping[W]||e.dynamicTyping)===!0))(nt)?E==="true"||E==="TRUE"||E!=="false"&&E!=="FALSE"&&((W=>{if(d.test(W)&&(W=parseFloat(W),y<W&&W<S))return 1})(E)?parseFloat(E):l.test(E)?new Date(E):E===""?null:E):E)(L=e.header?I>=_.length?"__parsed_extra":_[I]:L,$=e.transform?e.transform($,L):$);L==="__parsed_extra"?(j[L]=j[L]||[],j[L].push($)):j[L]=$}return e.header&&(I>_.length?B("FieldMismatch","TooManyFields","Too many fields: expected "+_.length+" fields but parsed "+I,f+A):I<_.length&&B("FieldMismatch","TooFewFields","Too few fields: expected "+_.length+" fields but parsed "+I,f+A)),j}var O;h&&(e.header||e.dynamicTyping||e.transform)&&(O=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(x),O=h.data.length):h.data=x(h.data,0),e.header&&h.meta&&(h.meta.fields=_),f+=O)}function z(){return e.header&&_.length===0}function B(b,x,O,w){b={type:b,code:x,message:O},w!==void 0&&(b.row=w),h.errors.push(b)}R(e.step)&&(m=e.step,e.step=function(b){h=b,z()?C():(C(),h.data.length!==0&&(c+=b.data.length,e.preview&&c>e.preview?i.abort():(h.data=h.data[0],m(h,o))))}),this.parse=function(b,x,O){var w=e.quoteChar||'"',w=(e.newline||(e.newline=this.guessLineEndings(b,w)),u=!1,e.delimiter?R(e.delimiter)&&(e.delimiter=e.delimiter(b),h.meta.delimiter=e.delimiter):((w=((A,j,I,L,$)=>{var nt,E,W,dt;$=$||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var mt=0;mt<$.length;mt++){for(var it,wt=$[mt],V=0,st=0,K=0,X=(W=void 0,new gt({comments:L,delimiter:wt,newline:j,preview:10}).parse(A)),ct=0;ct<X.data.length;ct++)I&&M(X.data[ct])?K++:(it=X.data[ct].length,st+=it,W===void 0?W=it:0<it&&(V+=Math.abs(it-W),W=it));0<X.data.length&&(st/=X.data.length-K),(E===void 0||V<=E)&&(dt===void 0||dt<st)&&1.99<st&&(E=V,nt=wt,dt=st)}return{successful:!!(e.delimiter=nt),bestDelimiter:nt}})(b,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=w.bestDelimiter:(u=!0,e.delimiter=p.DefaultDelimiter),h.meta.delimiter=e.delimiter),ut(e));return e.preview&&e.header&&w.preview++,r=b,i=new gt(w),h=i.parse(r,x,O),C(),v?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return v},this.pause=function(){v=!0,i.abort(),r=R(e.chunk)?"":r.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(v=!1,o.streamer.parseChunk(r,!0)):setTimeout(o.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,i.abort(),h.meta.aborted=!0,R(e.complete)&&e.complete(h),r=""},this.guessLineEndings=function(A,w){A=A.substring(0,1048576);var w=new RegExp(ot(w)+"([^]*?)"+ot(w),"gm"),O=(A=A.replace(w,"")).split("\r"),w=A.split(`
|
|
2
|
+
`),A=1<w.length&&w[0].length<O[0].length;if(O.length===1||A)return`
|
|
3
|
+
`;for(var j=0,I=0;I<O.length;I++)O[I][0]===`
|
|
4
|
+
`&&j++;return j>=O.length/2?`\r
|
|
5
|
+
`:"\r"}}function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gt(e){var r=(e=e||{}).delimiter,i=e.newline,u=e.comments,m=e.step,S=e.preview,y=e.fastMode,d=null,l=!1,o=e.quoteChar==null?'"':e.quoteChar,c=o;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");u===!0?u="#":(typeof u!="string"||-1<p.BAD_DELIMITERS.indexOf(u))&&(u=!1),i!==`
|
|
6
|
+
`&&i!=="\r"&&i!==`\r
|
|
7
|
+
`&&(i=`
|
|
8
|
+
`);var f=0,v=!1;this.parse=function(g,_,h){if(typeof g!="string")throw new Error("Input must be a string");var M=g.length,C=r.length,z=i.length,B=u.length,b=R(m),x=[],O=[],w=[],A=f=0;if(!g)return V();if(y||y!==!1&&g.indexOf(o)===-1){for(var j=g.split(i),I=0;I<j.length;I++){if(w=j[I],f+=w.length,I!==j.length-1)f+=i.length;else if(h)return V();if(!u||w.substring(0,B)!==u){if(b){if(x=[],dt(w.split(r)),st(),v)return V()}else dt(w.split(r));if(S&&S<=I)return x=x.slice(0,S),V(!0)}}return V()}for(var L=g.indexOf(r,f),$=g.indexOf(i,f),nt=new RegExp(ot(c)+ot(o),"g"),E=g.indexOf(o,f);;)if(g[f]===o)for(E=f,f++;;){if((E=g.indexOf(o,E+1))===-1)return h||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:f}),it();if(E===M-1)return it(g.substring(f,E).replace(nt,o));if(o===c&&g[E+1]===c)E++;else if(o===c||E===0||g[E-1]!==c){L!==-1&&L<E+1&&(L=g.indexOf(r,E+1));var W=mt(($=$!==-1&&$<E+1?g.indexOf(i,E+1):$)===-1?L:Math.min(L,$));if(g.substr(E+1+W,C)===r){w.push(g.substring(f,E).replace(nt,o)),g[f=E+1+W+C]!==o&&(E=g.indexOf(o,f)),L=g.indexOf(r,f),$=g.indexOf(i,f);break}if(W=mt($),g.substring(E+1+W,E+1+W+z)===i){if(w.push(g.substring(f,E).replace(nt,o)),wt(E+1+W+z),L=g.indexOf(r,f),E=g.indexOf(o,f),b&&(st(),v))return V();if(S&&x.length>=S)return V(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:f}),E++}}else if(u&&w.length===0&&g.substring(f,f+B)===u){if($===-1)return V();f=$+z,$=g.indexOf(i,f),L=g.indexOf(r,f)}else if(L!==-1&&(L<$||$===-1))w.push(g.substring(f,L)),f=L+C,L=g.indexOf(r,f);else{if($===-1)break;if(w.push(g.substring(f,$)),wt($+z),b&&(st(),v))return V();if(S&&x.length>=S)return V(!0)}return it();function dt(K){x.push(K),A=f}function mt(K){var X=0;return X=K!==-1&&(K=g.substring(E+1,K))&&K.trim()===""?K.length:X}function it(K){return h||(K===void 0&&(K=g.substring(f)),w.push(K),f=M,dt(w),b&&st()),V()}function wt(K){f=K,dt(w),w=[],$=g.indexOf(i,f)}function V(K){if(e.header&&!_&&x.length&&!l){var X=x[0],ct=Object.create(null),$t=new Set(X);let Ct=!1;for(let yt=0;yt<X.length;yt++){let at=X[yt];if(ct[at=R(e.transformHeader)?e.transformHeader(at,yt):at]){let kt,Rt=ct[at];for(;kt=at+"_"+Rt,Rt++,$t.has(kt););$t.add(kt),X[yt]=kt,ct[at]++,Ct=!0,(d=d===null?{}:d)[kt]=at}else ct[at]=1,X[yt]=at;$t.add(at)}Ct&&console.warn("Duplicate headers found and renamed."),l=!0}return{data:x,errors:O,meta:{delimiter:r,linebreak:i,aborted:v,truncated:!!K,cursor:A+(_||0),renamedHeaders:d}}}function st(){m(V()),x=[],O=[]}},this.abort=function(){v=!0},this.getCharIndex=function(){return f}}function _t(e){var r=e.data,i=P[r.workerId],u=!1;if(r.error)i.userError(r.error,r.file);else if(r.results&&r.results.data){var m={abort:function(){u=!0,lt(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:St,resume:St};if(R(i.userStep)){for(var S=0;S<r.results.data.length&&(i.userStep({data:r.results.data[S],errors:r.results.errors,meta:r.results.meta},m),!u);S++);delete r.results}else R(i.userChunk)&&(i.userChunk(r.results,m,r.file),delete r.results)}r.finished&&!u&<(r.workerId,r.results)}function lt(e,r){var i=P[e];R(i.userComplete)&&i.userComplete(r),i.terminate(),delete P[e]}function St(){throw new Error("Not implemented.")}function ut(e){if(typeof e!="object"||e===null)return e;var r,i=Array.isArray(e)?[]:{};for(r in e)i[r]=ut(e[r]);return i}function Q(e,r){return function(){e.apply(r,arguments)}}function R(e){return typeof e=="function"}return p.parse=function(e,r){var i=(r=r||{}).dynamicTyping||!1;if(R(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!R(r.transform)&&r.transform,!r.worker||!p.WORKERS_SUPPORTED)return i=null,p.NODE_STREAM_INPUT,typeof e=="string"?(e=(u=>u.charCodeAt(0)!==65279?u:u.slice(1))(e),i=new(r.download?F:N)(r)):e.readable===!0&&R(e.read)&&R(e.on)?i=new G(r):(a.File&&e instanceof File||e instanceof Object)&&(i=new J(r)),i.stream(e);(i=(()=>{var u;return!!p.WORKERS_SUPPORTED&&(u=(()=>{var m=a.URL||a.webkitURL||null,S=n.toString();return p.BLOB_URL||(p.BLOB_URL=m.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; ","(",S,")();"],{type:"text/javascript"})))})(),(u=new a.Worker(u)).onmessage=_t,u.id=q++,P[u.id]=u)})()).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})},p.unparse=function(e,r){var i=!1,u=!0,m=",",S=`\r
|
|
9
|
+
`,y='"',d=y+y,l=!1,o=null,c=!1,f=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||p.BAD_DELIMITERS.filter(function(_){return r.delimiter.indexOf(_)!==-1}).length||(m=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"||(l=r.skipEmptyLines),typeof r.newline=="string"&&(S=r.newline),typeof r.quoteChar=="string"&&(y=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&&(d=r.escapeChar+y),r.escapeFormulae instanceof RegExp?c=r.escapeFormulae:typeof r.escapeFormulae=="boolean"&&r.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),new RegExp(ot(y),"g"));if(typeof e=="string"&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return v(null,e,l);if(typeof e[0]=="object")return v(o||Object.keys(e[0]),e,l)}else if(typeof e=="object")return typeof e.data=="string"&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||o),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]=="object"?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]=="object"||(e.data=[e.data])),v(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function v(_,h,M){var C="",z=(typeof _=="string"&&(_=JSON.parse(_)),typeof h=="string"&&(h=JSON.parse(h)),Array.isArray(_)&&0<_.length),B=!Array.isArray(h[0]);if(z&&u){for(var b=0;b<_.length;b++)0<b&&(C+=m),C+=g(_[b],b);0<h.length&&(C+=S)}for(var x=0;x<h.length;x++){var O=(z?_:h[x]).length,w=!1,A=z?Object.keys(h[x]).length===0:h[x].length===0;if(M&&!z&&(w=M==="greedy"?h[x].join("").trim()==="":h[x].length===1&&h[x][0].length===0),M==="greedy"&&z){for(var j=[],I=0;I<O;I++){var L=B?_[I]:I;j.push(h[x][L])}w=j.join("").trim()===""}if(!w){for(var $=0;$<O;$++){0<$&&!A&&(C+=m);var nt=z&&B?_[$]:$;C+=g(h[x][nt],$)}x<h.length-1&&(!M||0<O&&!A)&&(C+=S)}}return C}function g(_,h){var M,C;return _==null?"":_.constructor===Date?JSON.stringify(_).slice(1,25):(C=!1,c&&typeof _=="string"&&c.test(_)&&(_="'"+_,C=!0),M=_.toString().replace(f,d),(C=C||i===!0||typeof i=="function"&&i(_,h)||Array.isArray(i)&&i[h]||((z,B)=>{for(var b=0;b<B.length;b++)if(-1<z.indexOf(B[b]))return!0;return!1})(M,p.BAD_DELIMITERS)||-1<M.indexOf(m)||M.charAt(0)===" "||M.charAt(M.length-1)===" ")?y+M+y:M)}},p.RECORD_SEP="",p.UNIT_SEP="",p.BYTE_ORDER_MARK="\uFEFF",p.BAD_DELIMITERS=["\r",`
|
|
10
|
+
`,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!D&&!!a.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=gt,p.ParserHandle=rt,p.NetworkStreamer=F,p.FileStreamer=J,p.StringStreamer=N,p.ReadableStreamStreamer=G,a.jQuery&&((k=a.jQuery).fn.parse=function(e){var r=e.config||{},i=[];return this.each(function(S){if(!(k(this).prop("tagName").toUpperCase()==="INPUT"&&k(this).attr("type").toLowerCase()==="file"&&a.FileReader)||!this.files||this.files.length===0)return!0;for(var y=0;y<this.files.length;y++)i.push({file:this.files[y],inputElem:this,instanceConfig:k.extend({},r)})}),u(),this;function u(){if(i.length===0)R(e.complete)&&e.complete();else{var S,y,d,l,o=i[0];if(R(e.before)){var c=e.before(o.file,o.inputElem);if(typeof c=="object"){if(c.action==="abort")return S="AbortError",y=o.file,d=o.inputElem,l=c.reason,void(R(e.error)&&e.error({name:S},y,d,l));if(c.action==="skip")return void m();typeof c.config=="object"&&(o.instanceConfig=k.extend(o.instanceConfig,c.config))}else if(c==="skip")return void m()}var f=o.instanceConfig.complete;o.instanceConfig.complete=function(v){R(f)&&f(v,o.file,o.inputElem),m()},p.parse(o.file,o.instanceConfig)}}function m(){i.splice(0,1),u()}}),T&&(a.onmessage=function(e){e=e.data,p.WORKER_ID===void 0&&e&&(p.WORKER_ID=e.workerId),typeof e.input=="string"?a.postMessage({workerId:p.WORKER_ID,results:p.parse(e.input,e.config),finished:!0}):(a.File&&e.input instanceof File||e.input instanceof Object)&&(e=p.parse(e.input,e.config))&&a.postMessage({workerId:p.WORKER_ID,results:e,finished:!0})}),(F.prototype=Object.create(Y.prototype)).constructor=F,(J.prototype=Object.create(Y.prototype)).constructor=J,(N.prototype=Object.create(N.prototype)).constructor=N,(G.prototype=Object.create(Y.prototype)).constructor=G,p})})(Et)),Et.exports}var Nt=Bt();const qt=Mt(Nt),{parse:Kt,unparse:Jt}=qt;class Qt{static unparse(t,n){return Jt(t,n)}static parse(t){return new Promise((n,a)=>{Kt(t,{header:!0,complete:k=>n(k),error:k=>a(k)})})}}async function zt(s,t,n){const a=n?.mimeType??Zt(t),k=Vt(s,a);if("showSaveFilePicker"in window&&n?.showSaveFilePicker)try{const q=await(await window.showSaveFilePicker({suggestedName:t,types:[{description:"Datei",accept:{[a]:[`.${jt(t)}`]}}]})).createWritable();await q.write(k),await q.close();return}catch{}const D=URL.createObjectURL(k),T=document.createElement("a");T.href=D,T.download=t,T.rel="noopener",T.style.display="none",document.body.appendChild(T),Gt(T),window.setTimeout(()=>{document.body.removeChild(T),URL.revokeObjectURL(D)},0),Ht()&&window.open(D,"_blank","noopener,noreferrer")}function Vt(s,t){if(s instanceof Blob)return s.type?s:new Blob([s],{type:t});if(s instanceof ArrayBuffer||s instanceof Uint8Array){const n=s instanceof Uint8Array?s:new Uint8Array(s);return new Blob([n],{type:t})}return new Blob([s],{type:t||"text/plain;charset=utf-8"})}function Zt(s){switch(jt(s).toLowerCase()){case"txt":return"text/plain;charset=utf-8";case"csv":return"text/csv;charset=utf-8";case"json":return"application/json;charset=utf-8";case"pdf":return"application/pdf";case"png":return"image/png";case"jpg":case"jpeg":return"image/jpeg";case"svg":return"image/svg+xml";case"zip":return"application/zip";default:return"application/octet-stream"}}function jt(s){const t=s.lastIndexOf(".");return t>=0&&t<s.length-1?s.slice(t+1):""}function Gt(s){const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),s.dispatchEvent(t)}function Ht(){const s=navigator.userAgent,t=/iPad|iPhone|iPod/.test(s),n=/^((?!chrome|android).)*safari/i.test(s);return t||n}class Xt{static getEnumValue(t,n){if(n in t)return t[n];throw Error(`${n} not found in ${t}`)}static getKeyValues(t){return Object.keys(t).filter(n=>!isNaN(Number(n))).map(n=>({key:Number(n),value:t[n]}))}}class te{static getFileExtension(t){let n="";const a=t.lastIndexOf(".");return a>0&&a<t.length-1&&(n=`.${t.substring(a+1).toLowerCase()}`),n}static readAsText(t){const n=new FileReader;return new Promise((a,k)=>{n.onload=()=>{n.onload=null,n.onerror=null,typeof n.result=="string"?a(n.result):k(new Error("Unexpected result type"))},n.onerror=()=>{const D=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,k(D)},n.readAsText(t)})}static readAsArrayBuffer(t){const n=new FileReader;return new Promise((a,k)=>{n.onload=()=>{n.onload=null,n.onerror=null,n.result instanceof ArrayBuffer?a(n.result):k(new Error("Unexpected result type"))},n.onerror=()=>{const D=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,k(D)},n.readAsArrayBuffer(t)})}static readAsDataUrl(t){const n=new FileReader;return new Promise((a,k)=>{n.onload=D=>{a(D)},n.onerror=D=>k(D),n.readAsDataURL(t)})}static formatFileSize(t,n=2,a){if(t===0)return"0 Bytes";const k=1024,D=["Bytes","KB","MB","GB","TB"];let T=Math.floor(Math.log(t)/Math.log(k));a&&D.includes(a)&&(T=D.indexOf(a));const P=t/Math.pow(k,T);return`${parseFloat(P.toFixed(n))} ${D[T]}`}static save(t,n,a){const k=new Blob([t],{type:a});zt(k,n)}}class vt{static set(t,n){localStorage.setItem(t,JSON.stringify(n))}static get(t){let n=null;const a=localStorage.getItem(t);return a&&(n=JSON.parse(a)),n}static remove(t){let n=!!vt.get(t);return n&&localStorage.removeItem(t),n}static removeAll(){localStorage.clear()}static getKeysBy(t){return Object.keys(localStorage).filter(n=>n.startsWith(t))}}var pt=(s=>(s.log="log",s.info="info",s.warn="warn",s.debug="debug",s.error="error",s))(pt||{});class Z{static listeners=new Set;static enabled=!0;static log(...t){Z.doLog(pt.log,t)}static info(...t){Z.doLog(pt.info,t)}static warn(...t){Z.doLog(pt.warn,t)}static debug(...t){Z.doLog(pt.debug,t)}static error(...t){Z.doLog(pt.error,t)}static clearListeners(){Z.listeners.clear()}static setEnabled(t){Z.enabled=t}static doLog(t,n){if(!Z.enabled)return;const a={type:t,args:n,timestamp:new Date().toISOString()};for(const k of Z.listeners)try{if(k(a)===!1)return}catch{}console[t].apply(console,n)}static onLog(t,n=!1){if(n){const a=k=>{try{return t(k)}finally{Z.listeners.delete(a)}};return Z.listeners.add(a),()=>Z.listeners.delete(a)}return Z.listeners.add(t),()=>Z.listeners.delete(t)}}const ee=(s,t,n)=>s.localeCompare(t)*(n?1:-1),re=(s,t)=>s<t?-1:s===t?0:1,ne=(s,t,n)=>re(s,t)*(n?1:-1),ie=(s,t,n)=>{let a=0;return typeof s=="string"&&typeof t=="string"?a=ee(s,t,n):a=ne(s,t,n),a},Pt=(s,t,n,a)=>{const k=n(s),D=n(t);return ie(k,D,a)};class se{static get(t){return vt.get(t)}static set(t,n){vt.set(t,n)}static remove(t){vt.remove(t)}}class U{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=window.innerWidth;static onResize(t){return U.initialized||U.init(),U.listeners.add(t),()=>U.off(t)}static handleResize=()=>{U.resizeTimeout!==null&&(window.clearTimeout(U.resizeTimeout),U.resizeTimeout=null),U.resizeTimeout=window.setTimeout(()=>{const t=window.innerWidth;if(t!==U.lastWidth){U.lastWidth=t;for(const n of U.listeners)n(t)}},150)};static init(){U.initialized||(window.addEventListener("resize",U.handleResize,{passive:!0}),U.initialized=!0)}static off(t){U.initialized&&(U.listeners.delete(t),U.listeners.size===0&&(window.removeEventListener("resize",U.handleResize),U.initialized=!1))}}function ae(){Array.prototype.distinct=function(s){return s?this.filter((n,a,k)=>k.findIndex(D=>s(D,n))===a):this.filter((n,a,k)=>k.indexOf(n)===a)},Array.prototype.filterBy=function(s){return this.filter(t=>s(t))},Array.prototype.first=function(){return this.length>0?this[0]:null},Array.prototype.groupBy=function(s){return this.reduce((t,n)=>{const a=s(n);return t[a]||(t[a]=[]),t[a].push(n),t},{})},Array.prototype.orderBy=function(s,t=!0){return this?.sort((n,a)=>Pt(n,a,s,t)),this},Array.prototype.removeBy=function(s,t){return this.filter(n=>s(n)!==t)}}var xt={exports:{}},oe=xt.exports,At;function ue(){return At||(At=1,(function(s,t){(function(n,a){s.exports=a()})(oe,(function(){var n=1e3,a=6e4,k=36e5,D="millisecond",T="second",P="minute",q="hour",p="day",Y="week",F="month",J="quarter",N="year",G="date",rt="Invalid Date",ot=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,gt=/\[([^\]]+)]|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,_t={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(y){var d=["th","st","nd","rd"],l=y%100;return"["+y+(d[(l-20)%10]||d[l]||d[0])+"]"}},lt=function(y,d,l){var o=String(y);return!o||o.length>=d?y:""+Array(d+1-o.length).join(l)+y},St={s:lt,z:function(y){var d=-y.utcOffset(),l=Math.abs(d),o=Math.floor(l/60),c=l%60;return(d<=0?"+":"-")+lt(o,2,"0")+":"+lt(c,2,"0")},m:function y(d,l){if(d.date()<l.date())return-y(l,d);var o=12*(l.year()-d.year())+(l.month()-d.month()),c=d.clone().add(o,F),f=l-c<0,v=d.clone().add(o+(f?-1:1),F);return+(-(o+(l-c)/(f?c-v:v-c))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:F,y:N,w:Y,d:p,D:G,h:q,m:P,s:T,ms:D,Q:J}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},ut="en",Q={};Q[ut]=_t;var R="$isDayjsObject",e=function(y){return y instanceof m||!(!y||!y[R])},r=function y(d,l,o){var c;if(!d)return ut;if(typeof d=="string"){var f=d.toLowerCase();Q[f]&&(c=f),l&&(Q[f]=l,c=f);var v=d.split("-");if(!c&&v.length>1)return y(v[0])}else{var g=d.name;Q[g]=d,c=g}return!o&&c&&(ut=c),c||!o&&ut},i=function(y,d){if(e(y))return y.clone();var l=typeof d=="object"?d:{};return l.date=y,l.args=arguments,new m(l)},u=St;u.l=r,u.i=e,u.w=function(y,d){return i(y,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var m=(function(){function y(l){this.$L=r(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[R]=!0}var d=y.prototype;return d.parse=function(l){this.$d=(function(o){var c=o.date,f=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 v=c.match(ot);if(v){var g=v[2]-1||0,_=(v[7]||"0").substring(0,3);return f?new Date(Date.UTC(v[1],g,v[3]||1,v[4]||0,v[5]||0,v[6]||0,_)):new Date(v[1],g,v[3]||1,v[4]||0,v[5]||0,v[6]||0,_)}}return new Date(c)})(l),this.init()},d.init=function(){var l=this.$d;this.$y=l.getFullYear(),this.$M=l.getMonth(),this.$D=l.getDate(),this.$W=l.getDay(),this.$H=l.getHours(),this.$m=l.getMinutes(),this.$s=l.getSeconds(),this.$ms=l.getMilliseconds()},d.$utils=function(){return u},d.isValid=function(){return this.$d.toString()!==rt},d.isSame=function(l,o){var c=i(l);return this.startOf(o)<=c&&c<=this.endOf(o)},d.isAfter=function(l,o){return i(l)<this.startOf(o)},d.isBefore=function(l,o){return this.endOf(o)<i(l)},d.$g=function(l,o,c){return u.u(l)?this[o]:this.set(c,l)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(l,o){var c=this,f=!!u.u(o)||o,v=u.p(l),g=function(x,O){var w=u.w(c.$u?Date.UTC(c.$y,O,x):new Date(c.$y,O,x),c);return f?w:w.endOf(p)},_=function(x,O){return u.w(c.toDate()[x].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(O)),c)},h=this.$W,M=this.$M,C=this.$D,z="set"+(this.$u?"UTC":"");switch(v){case N:return f?g(1,0):g(31,11);case F:return f?g(1,M):g(0,M+1);case Y:var B=this.$locale().weekStart||0,b=(h<B?h+7:h)-B;return g(f?C-b:C+(6-b),M);case p:case G:return _(z+"Hours",0);case q:return _(z+"Minutes",1);case P:return _(z+"Seconds",2);case T:return _(z+"Milliseconds",3);default:return this.clone()}},d.endOf=function(l){return this.startOf(l,!1)},d.$set=function(l,o){var c,f=u.p(l),v="set"+(this.$u?"UTC":""),g=(c={},c[p]=v+"Date",c[G]=v+"Date",c[F]=v+"Month",c[N]=v+"FullYear",c[q]=v+"Hours",c[P]=v+"Minutes",c[T]=v+"Seconds",c[D]=v+"Milliseconds",c)[f],_=f===p?this.$D+(o-this.$W):o;if(f===F||f===N){var h=this.clone().set(G,1);h.$d[g](_),h.init(),this.$d=h.set(G,Math.min(this.$D,h.daysInMonth())).$d}else g&&this.$d[g](_);return this.init(),this},d.set=function(l,o){return this.clone().$set(l,o)},d.get=function(l){return this[u.p(l)]()},d.add=function(l,o){var c,f=this;l=Number(l);var v=u.p(o),g=function(M){var C=i(f);return u.w(C.date(C.date()+Math.round(M*l)),f)};if(v===F)return this.set(F,this.$M+l);if(v===N)return this.set(N,this.$y+l);if(v===p)return g(1);if(v===Y)return g(7);var _=(c={},c[P]=a,c[q]=k,c[T]=n,c)[v]||1,h=this.$d.getTime()+l*_;return u.w(h,this)},d.subtract=function(l,o){return this.add(-1*l,o)},d.format=function(l){var o=this,c=this.$locale();if(!this.isValid())return c.invalidDate||rt;var f=l||"YYYY-MM-DDTHH:mm:ssZ",v=u.z(this),g=this.$H,_=this.$m,h=this.$M,M=c.weekdays,C=c.months,z=c.meridiem,B=function(O,w,A,j){return O&&(O[w]||O(o,f))||A[w].slice(0,j)},b=function(O){return u.s(g%12||12,O,"0")},x=z||function(O,w,A){var j=O<12?"AM":"PM";return A?j.toLowerCase():j};return f.replace(gt,(function(O,w){return w||(function(A){switch(A){case"YY":return String(o.$y).slice(-2);case"YYYY":return u.s(o.$y,4,"0");case"M":return h+1;case"MM":return u.s(h+1,2,"0");case"MMM":return B(c.monthsShort,h,C,3);case"MMMM":return B(C,h);case"D":return o.$D;case"DD":return u.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return B(c.weekdaysMin,o.$W,M,2);case"ddd":return B(c.weekdaysShort,o.$W,M,3);case"dddd":return M[o.$W];case"H":return String(g);case"HH":return u.s(g,2,"0");case"h":return b(1);case"hh":return b(2);case"a":return x(g,_,!0);case"A":return x(g,_,!1);case"m":return String(_);case"mm":return u.s(_,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 v}return null})(O)||v.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(l,o,c){var f,v=this,g=u.p(o),_=i(l),h=(_.utcOffset()-this.utcOffset())*a,M=this-_,C=function(){return u.m(v,_)};switch(g){case N:f=C()/12;break;case F:f=C();break;case J:f=C()/3;break;case Y:f=(M-h)/6048e5;break;case p:f=(M-h)/864e5;break;case q:f=M/k;break;case P:f=M/a;break;case T:f=M/n;break;default:f=M}return c?f:u.a(f)},d.daysInMonth=function(){return this.endOf(F).$D},d.$locale=function(){return Q[this.$L]},d.locale=function(l,o){if(!l)return this.$L;var c=this.clone(),f=r(l,o,!0);return f&&(c.$L=f),c},d.clone=function(){return u.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},y})(),S=m.prototype;return i.prototype=S,[["$ms",D],["$s",T],["$m",P],["$H",q],["$W",p],["$M",F],["$y",N],["$D",G]].forEach((function(y){S[y[1]]=function(d){return this.$g(d,y[0],y[1])}})),i.extend=function(y,d){return y.$i||(y(d,m,i),y.$i=!0),i},i.locale=r,i.isDayjs=e,i.unix=function(y){return i(1e3*y)},i.en=Q[ut],i.Ls=Q,i.p={},i}))})(xt)),xt.exports}var ce=ue();const H=Mt(ce);var Ot={exports:{}},fe=Ot.exports,It;function le(){return It||(It=1,(function(s,t){(function(n,a){s.exports=a()})(fe,(function(){var n="day";return function(a,k,D){var T=function(p){return p.add(4-p.isoWeekday(),n)},P=k.prototype;P.isoWeekYear=function(){return T(this).year()},P.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var Y,F,J,N,G=T(this),rt=(Y=this.isoWeekYear(),F=this.$u,J=(F?D.utc:D)().year(Y).startOf("year"),N=4-J.isoWeekday(),J.isoWeekday()>4&&(N+=7),J.add(N,n));return G.diff(rt,"week")+1},P.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var q=P.startOf;P.startOf=function(p,Y){var F=this.$utils(),J=!!F.u(Y)||Y;return F.p(p)==="isoweek"?J?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):q.bind(this)(p,Y)}}}))})(Ot)),Ot.exports}var de=le();const he=Mt(de);var Dt={exports:{}},pe=Dt.exports,Lt;function ge(){return Lt||(Lt=1,(function(s,t){(function(n,a){s.exports=a()})(pe,(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(a,k,D){var T=k.prototype,P=T.format;D.en.formats=n,T.format=function(q){q===void 0&&(q="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,Y=(function(F,J){return F.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(N,G,rt){var ot=rt&&rt.toUpperCase();return G||J[rt]||n[rt]||J[ot].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(gt,_t,lt){return _t||lt.slice(1)}))}))})(q,p===void 0?{}:p);return P.call(this,Y)}}}))})(Dt)),Dt.exports}var me=ge();const ye=Mt(me);H.extend(ye);H.extend(he);function ve(){Date.prototype.add=function(s,t){return H(this).add(s,t).toDate()},Date.prototype.diff=function(s,t){return H(this).diff(s,t)},Date.prototype.endOf=function(s){return H(this).endOf(s).toDate()},Date.prototype.firstDayOfMonth=function(){return H(this).startOf("month").toDate()},Date.prototype.format=function(s){return H(this).format(s)},Date.prototype.isAfter=function(s,t){return H(this).isAfter(s,t)},Date.prototype.isBefore=function(s,t){return H(this).isBefore(s,t)},Date.prototype.isValid=function(){return H(this).isValid()},Date.prototype.isoWeek=function(){return H(this).isoWeek()},Date.prototype.subtract=function(s,t){return H(this).subtract(s,t).toDate()},Date.prototype.lastDayOfMonth=function(){return H(this).endOf("month").toDate()},Date.prototype.set=function(s,t){return H(this).set(s,t).toDate()},Date.prototype.startOf=function(s){return H(this).startOf(s).toDate()}}function _e(){String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.isNumber=function(){return!isNaN(Number(this))&&this.trim()!==""},String.prototype.isEmpty=function(){return this===void 0||!this||this.length===0},String.prototype.stripTags=function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""}}class we{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(t){this.onResizeCallbacks.add(t)}offResizeChange(t){this.onResizeCallbacks.delete(t)}onResize=()=>{if(typeof window>"u")return;const t=window.innerWidth;this.emitTimeoutId!==null&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null;const n=ht.getBreakpointByScreenWidth(t);for(const a of this.onResizeCallbacks)a(t,n)},this.duplicateThresholdMs)}}exports.BreakPointHelper=ht;exports.BreakPoints=Ft;exports.BrowserHelper=et;exports.BrowserService=we;exports.BrowserType=tt;exports.CsvHelper=Qt;exports.EnumHelper=Xt;exports.FileHelper=te;exports.LocalStorageHelper=vt;exports.LoggerHelper=Z;exports.LoggerType=pt;exports.ScreenHelper=bt;exports.TokenHelper=se;exports.WindowResizeHelper=U;exports.copyToClipboard=Wt;exports.initArrayExtensions=ae;exports.initDateExtensions=ve;exports.initStringExtensions=_e;exports.saveAs=zt;exports.sortHelper=Pt;
|