@oardi/ts-utils 0.0.38 → 0.0.40

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.umd.js CHANGED
@@ -1,10 +1,10 @@
1
- (function(z,ge){typeof exports=="object"&&typeof module<"u"?ge(exports):typeof define=="function"&&define.amd?define(["exports"],ge):(z=typeof globalThis<"u"?globalThis:z||self,ge(z["ts-utils"]={}))})(this,(function(z){"use strict";const ge={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class _e{static getScreenWidth(){return window.innerWidth}static getScreenHeight(){return window.innerHeight}}class F{static breakPoints=ge;static listeners=new Set;static currentBreakpoint=F.getBreakpointByScreenWidth();static initialized=!1;static resizeTimeout=null;static getCurrentBreakpoint(){return F.getBreakpointByScreenWidth(_e.getScreenWidth())}static getBreakpointByScreenWidth(e=_e.getScreenWidth()){let i="xs";for(const a of Object.keys(F.breakPoints))F.breakPoints[a]<=e&&(i=a);return{breakpoint:i,screenWidth:e}}isScreenGreaterThan(e){return _e.getScreenWidth()>F.breakPoints[e]}isScreenSmallerThan(e){return _e.getScreenWidth()<F.breakPoints[e]}static onResize(e,i=!1){if(F.initialized||F.initResizeListener(),i){const a=b=>{try{return e(b)}finally{F.listeners.delete(a)}};return F.listeners.add(a),()=>F.listeners.delete(a)}return F.listeners.add(e),()=>F.listeners.delete(e)}static initResizeListener(){F.initialized||(window.addEventListener("resize",()=>{F.resizeTimeout&&window.clearTimeout(F.resizeTimeout),F.resizeTimeout=window.setTimeout(()=>{const e=F.getCurrentBreakpoint();if(e.breakpoint!==F.currentBreakpoint.breakpoint){F.currentBreakpoint=e;for(const i of F.listeners)i(e)}},150)}),F.initialized=!0)}}var H=(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))(H||{});const ue=(typeof navigator<"u"?navigator.userAgent:"").toLowerCase();class X{static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(e=ue){return this.isBrowserEnv()?e.includes("opr/")||e.includes("opera"):!1}static isFirefox(e=ue){return this.isBrowserEnv()?e.includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(e=ue){if(!this.isBrowserEnv())return!1;const i=navigator.vendor&&navigator.vendor.includes("Apple"),a=e.includes("safari"),b=!(e.includes("crios")||e.includes("chrome")||e.includes("android")||e.includes("opr/")||e.includes("edg"));return i&&a&&b}static isIOS(e=ue){if(!this.isBrowserEnv())return!1;const i=/iphone|ipad|ipod/.test(e),a=e.includes("macintosh")&&navigator.maxTouchPoints>1;return i||a}static isEdgeLegacy(){return this.isBrowserEnv()?!!window.StyleMedia&&!ue.includes("edg/"):!1}static isEdg(e=ue){return this.isBrowserEnv()?e.includes("edg/"):!1}static isIE(){return!this.isBrowserEnv()&&typeof document>"u"?!1:!!document.documentMode}static isChrome(e=ue){if(!this.isBrowserEnv())return!1;const i=navigator.vendor&&navigator.vendor.includes("Google"),a=e.includes("chrome")||e.includes("crios"),b=!this.isEdg(e)&&!this.isOpera(e);return i&&a&&b}static isElectron(e=ue){return typeof process<"u"&&process.versions?.electron?!0:e.includes("electron")}static isHeadlessChrome(e=ue){return e.includes("headlesschrome")}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){const e=navigator.userAgent.toLowerCase();if(typeof navigator>"u")throw new Error("navigator not set");if(X.isOpera())return H.opera;if(X.isFirefox())return H.firefox;if(X.isSafari())return H.safari;if(X.isIE())return H.ie;if(X.isEdgeLegacy())return H.edgeLegacy;if(X.isEdg())return H.edg;if(X.isChrome())return H.chrome;if(X.isIOS(e))return H.iOS;if(X.isElectron(e))return H.electron;if(X.isHeadlessChrome(e))return H.headlessChrome;if(X.isNodeRuntime())return H.nodeRuntime;throw new Error("Browser could not be detected: "+e)}}function je(s){return navigator.clipboard.writeText(s)}function Me(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ke={exports:{}};var Ue=ke.exports,Ce;function Ye(){return Ce||(Ce=1,(function(s,e){((i,a)=>{s.exports=a()})(Ue,function i(){var a=typeof self<"u"?self:typeof window<"u"?window:a!==void 0?a:{},b,R=!a.document&&!!a.postMessage,L=a.IS_PAPA_WORKER||!1,q={},K=0,w={};function J(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 n=fe(r);n.chunkSize=parseInt(n.chunkSize),r.step||r.chunk||(n.chunkSize=null),this._handle=new ie(n),(this._handle.streamer=this)._config=n}).call(this,t),this.parseChunk=function(r,n){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let E=this._config.newline;E||(g=this._config.quoteChar||'"',E=this._handle.guessLineEndings(r,g)),r=[...r.split(E).slice(u)].join(E)}this.isFirstChunk&&$(this._config.beforeFirstChunk)&&(g=this._config.beforeFirstChunk(r))!==void 0&&(r=g),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,g=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=g.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),g&&g.data&&(this._rowCount+=g.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),L)a.postMessage({results:g,workerId:w.WORKER_ID,finished:u});else if($(this._config.chunk)&&!n){if(this._config.chunk(g,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=g=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(g.data),this._completeResults.errors=this._completeResults.errors.concat(g.errors),this._completeResults.meta=g.meta),this._completed||!u||!$(this._config.complete)||g&&g.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||g&&g.meta.paused||this._nextChunk(),g}this._halted=!0},this._sendError=function(r){$(this._config.error)?this._config.error(r):L&&this._config.error&&a.postMessage({workerId:w.WORKER_ID,error:r,finished:!1})}}function W(t){var r;(t=t||{}).chunkSize||(t.chunkSize=w.RemoteChunkSize),J.call(this,t),this._nextChunk=R?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(n){this._input=n,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),R||(r.onload=Q(this._chunkLoaded,this),r.onerror=Q(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!R),this._config.downloadRequestHeaders){var n,u=this._config.downloadRequestHeaders;for(n in u)r.setRequestHeader(n,u[n])}var g;this._config.chunkSize&&(g=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+g));try{r.send(this._config.downloadRequestBody)}catch(E){this._chunkError(E.message)}R&&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>=(n=>(n=n.getResponseHeader("Content-Range"))!==null?parseInt(n.substring(n.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(n){n=r.statusText||n,this._sendError(new Error(n))}}function ne(t){(t=t||{}).chunkSize||(t.chunkSize=w.LocalChunkSize),J.call(this,t);var r,n,u=typeof FileReader<"u";this.stream=function(g){this._input=g,n=g.slice||g.webkitSlice||g.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 g=this._input,E=(this._config.chunkSize&&(E=Math.min(this._start+this._config.chunkSize,this._input.size),g=n.call(g,this._start,E)),r.readAsText(g,this._config.encoding));u||this._chunkLoaded({target:{result:E}})},this._chunkLoaded=function(g){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(g.target.result)},this._chunkError=function(){this._sendError(r.error)}}function Z(t){var r;J.call(this,t=t||{}),this.stream=function(n){return r=n,this._nextChunk()},this._nextChunk=function(){var n,u;if(!this._finished)return n=this._config.chunkSize,r=n?(u=r.substring(0,n),r.substring(n)):(u=r,""),this._finished=!r,this.parseChunk(u)}}function te(t){J.call(this,t=t||{});var r=[],n=!0,u=!1;this.pause=function(){J.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){J.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(g){this._input=g,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()):n=!0},this._streamData=Q(function(g){try{r.push(typeof g=="string"?g:g.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(E){this._streamError(E)}},this),this._streamError=Q(function(g){this._streamCleanUp(),this._sendError(g)},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 ie(t){var r,n,u,g,E=Math.pow(2,53),m=-E,l=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,d=/^((\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,y=!1,p=!1,v=[],h={data:[],errors:[],meta:{}};function x(S){return t.skipEmptyLines==="greedy"?S.join("").trim()==="":S.length===1&&S[0].length===0}function C(){if(h&&u&&(N("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+w.DefaultDelimiter+"'"),u=!1),t.skipEmptyLines&&(h.data=h.data.filter(function(_){return!x(_)})),j()){let _=function(T,U){$(t.transformHeader)&&(T=t.transformHeader(T,U)),v.push(T)};if(h)if(Array.isArray(h.data[0])){for(var S=0;j()&&S<h.data.length;S++)h.data[S].forEach(_);h.data.splice(0,1)}else h.data.forEach(_)}function D(_,T){for(var U=t.header?{}:[],A=0;A<_.length;A++){var I=A,M=_[A],M=((re,k)=>(Y=>(t.dynamicTypingFunction&&t.dynamicTyping[Y]===void 0&&(t.dynamicTyping[Y]=t.dynamicTypingFunction(Y)),(t.dynamicTyping[Y]||t.dynamicTyping)===!0))(re)?k==="true"||k==="TRUE"||k!=="false"&&k!=="FALSE"&&((Y=>{if(l.test(Y)&&(Y=parseFloat(Y),m<Y&&Y<E))return 1})(k)?parseFloat(k):d.test(k)?new Date(k):k===""?null:k):k)(I=t.header?A>=v.length?"__parsed_extra":v[A]:I,M=t.transform?t.transform(M,I):M);I==="__parsed_extra"?(U[I]=U[I]||[],U[I].push(M)):U[I]=M}return t.header&&(A>v.length?N("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+A,f+T):A<v.length&&N("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+A,f+T)),U}var O;h&&(t.header||t.dynamicTyping||t.transform)&&(O=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(D),O=h.data.length):h.data=D(h.data,0),t.header&&h.meta&&(h.meta.fields=v),f+=O)}function j(){return t.header&&v.length===0}function N(S,D,O,_){S={type:S,code:D,message:O},_!==void 0&&(S.row=_),h.errors.push(S)}$(t.step)&&(g=t.step,t.step=function(S){h=S,j()?C():(C(),h.data.length!==0&&(c+=S.data.length,t.preview&&c>t.preview?n.abort():(h.data=h.data[0],g(h,o))))}),this.parse=function(S,D,O){var _=t.quoteChar||'"',_=(t.newline||(t.newline=this.guessLineEndings(S,_)),u=!1,t.delimiter?$(t.delimiter)&&(t.delimiter=t.delimiter(S),h.meta.delimiter=t.delimiter):((_=((T,U,A,I,M)=>{var re,k,Y,he;M=M||[","," ","|",";",w.RECORD_SEP,w.UNIT_SEP];for(var ve=0;ve<M.length;ve++){for(var se,Se=M[ve],V=0,ae=0,P=0,G=(Y=void 0,new ye({comments:I,delimiter:Se,newline:U,preview:10}).parse(T)),de=0;de<G.data.length;de++)A&&x(G.data[de])?P++:(se=G.data[de].length,ae+=se,Y===void 0?Y=se:0<se&&(V+=Math.abs(se-Y),Y=se));0<G.data.length&&(ae/=G.data.length-P),(k===void 0||V<=k)&&(he===void 0||he<ae)&&1.99<ae&&(k=V,re=Se,he=ae)}return{successful:!!(t.delimiter=re),bestDelimiter:re}})(S,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=_.bestDelimiter:(u=!0,t.delimiter=w.DefaultDelimiter),h.meta.delimiter=t.delimiter),fe(t));return t.preview&&t.header&&_.preview++,r=S,n=new ye(_),h=n.parse(r,D,O),C(),y?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return y},this.pause=function(){y=!0,n.abort(),r=$(t.chunk)?"":r.substring(n.getCharIndex())},this.resume=function(){o.streamer._halted?(y=!1,o.streamer.parseChunk(r,!0)):setTimeout(o.resume,3)},this.aborted=function(){return p},this.abort=function(){p=!0,n.abort(),h.meta.aborted=!0,$(t.complete)&&t.complete(h),r=""},this.guessLineEndings=function(T,_){T=T.substring(0,1048576);var _=new RegExp(ce(_)+"([^]*?)"+ce(_),"gm"),O=(T=T.replace(_,"")).split("\r"),_=T.split(`
2
- `),T=1<_.length&&_[0].length<O[0].length;if(O.length===1||T)return`
3
- `;for(var U=0,A=0;A<O.length;A++)O[A][0]===`
4
- `&&U++;return U>=O.length/2?`\r
5
- `:"\r"}}function ce(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(t){var r=(t=t||{}).delimiter,n=t.newline,u=t.comments,g=t.step,E=t.preview,m=t.fastMode,l=null,d=!1,o=t.quoteChar==null?'"':t.quoteChar,c=o;if(t.escapeChar!==void 0&&(c=t.escapeChar),(typeof r!="string"||-1<w.BAD_DELIMITERS.indexOf(r))&&(r=","),u===r)throw new Error("Comment character same as delimiter");u===!0?u="#":(typeof u!="string"||-1<w.BAD_DELIMITERS.indexOf(u))&&(u=!1),n!==`
1
+ (function(L,mt){typeof exports=="object"&&typeof module<"u"?mt(exports):typeof define=="function"&&define.amd?define(["exports"],mt):(L=typeof globalThis<"u"?globalThis:L||self,mt(L["ts-utils"]={}))})(this,(function(L){"use strict";const mt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class bt{static getScreenWidth(){return window.innerWidth}static getScreenHeight(){return window.innerHeight}}class pt{static breakPoints=mt;static getCurrentBreakpoint(){return pt.getBreakpointByScreenWidth(bt.getScreenWidth())}static getBreakpointByScreenWidth(t=bt.getScreenWidth()){let i="xs";for(const c of Object.keys(pt.breakPoints))pt.breakPoints[c]<=t&&(i=c);return{breakpoint:i,screenWidth:t}}isScreenGreaterThan(t){return bt.getScreenWidth()>pt.breakPoints[t]}isScreenSmallerThan(t){return bt.getScreenWidth()<pt.breakPoints[t]}}var H=(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))(H||{});const ut=(typeof navigator<"u"?navigator.userAgent:"").toLowerCase();class X{static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(t=ut){return this.isBrowserEnv()?t.includes("opr/")||t.includes("opera"):!1}static isFirefox(t=ut){return this.isBrowserEnv()?t.includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(t=ut){if(!this.isBrowserEnv())return!1;const i=navigator.vendor&&navigator.vendor.includes("Apple"),c=t.includes("safari"),b=!(t.includes("crios")||t.includes("chrome")||t.includes("android")||t.includes("opr/")||t.includes("edg"));return i&&c&&b}static isIOS(t=ut){if(!this.isBrowserEnv())return!1;const i=/iphone|ipad|ipod/.test(t),c=t.includes("macintosh")&&navigator.maxTouchPoints>1;return i||c}static isEdgeLegacy(){return this.isBrowserEnv()?!!window.StyleMedia&&!ut.includes("edg/"):!1}static isEdg(t=ut){return this.isBrowserEnv()?t.includes("edg/"):!1}static isIE(){return!this.isBrowserEnv()&&typeof document>"u"?!1:!!document.documentMode}static isChrome(t=ut){if(!this.isBrowserEnv())return!1;const i=navigator.vendor&&navigator.vendor.includes("Google"),c=t.includes("chrome")||t.includes("crios"),b=!this.isEdg(t)&&!this.isOpera(t);return i&&c&&b}static isElectron(t=ut){return typeof process<"u"&&process.versions?.electron?!0:t.includes("electron")}static isHeadlessChrome(t=ut){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(X.isOpera())return H.opera;if(X.isFirefox())return H.firefox;if(X.isSafari())return H.safari;if(X.isIE())return H.ie;if(X.isEdgeLegacy())return H.edgeLegacy;if(X.isEdg())return H.edg;if(X.isChrome())return H.chrome;if(X.isIOS(t))return H.iOS;if(X.isElectron(t))return H.electron;if(X.isHeadlessChrome(t))return H.headlessChrome;if(X.isNodeRuntime())return H.nodeRuntime;throw new Error("Browser could not be detected: "+t)}}function Pt(s){return navigator.clipboard.writeText(s)}function $t(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Dt={exports:{}};var Ut=Dt.exports,Rt;function Bt(){return Rt||(Rt=1,(function(s,t){((i,c)=>{s.exports=c()})(Ut,function i(){var c=typeof self<"u"?self:typeof window<"u"?window:c!==void 0?c:{},b,$=!c.document&&!!c.postMessage,F=c.IS_PAPA_WORKER||!1,q={},K=0,_={};function J(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 n=ft(r);n.chunkSize=parseInt(n.chunkSize),r.step||r.chunk||(n.chunkSize=null),this._handle=new it(n),(this._handle.streamer=this)._config=n}).call(this,e),this.parseChunk=function(r,n){var o=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<o){let k=this._config.newline;k||(g=this._config.quoteChar||'"',k=this._handle.guessLineEndings(r,g)),r=[...r.split(k).slice(o)].join(k)}this.isFirstChunk&&R(this._config.beforeFirstChunk)&&(g=this._config.beforeFirstChunk(r))!==void 0&&(r=g),this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+r,g=(this._partialLine="",this._handle.parse(o,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=g.meta.cursor,o=(this._finished||(this._partialLine=o.substring(r-this._baseIndex),this._baseIndex=r),g&&g.data&&(this._rowCount+=g.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),F)c.postMessage({results:g,workerId:_.WORKER_ID,finished:o});else if(R(this._config.chunk)&&!n){if(this._config.chunk(g,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=g=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(g.data),this._completeResults.errors=this._completeResults.errors.concat(g.errors),this._completeResults.meta=g.meta),this._completed||!o||!R(this._config.complete)||g&&g.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),o||g&&g.meta.paused||this._nextChunk(),g}this._halted=!0},this._sendError=function(r){R(this._config.error)?this._config.error(r):F&&this._config.error&&c.postMessage({workerId:_.WORKER_ID,error:r,finished:!1})}}function Y(e){var r;(e=e||{}).chunkSize||(e.chunkSize=_.RemoteChunkSize),J.call(this,e),this._nextChunk=$?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(n){this._input=n,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=Q(this._chunkLoaded,this),r.onerror=Q(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!$),this._config.downloadRequestHeaders){var n,o=this._config.downloadRequestHeaders;for(n in o)r.setRequestHeader(n,o[n])}var g;this._config.chunkSize&&(g=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+g));try{r.send(this._config.downloadRequestBody)}catch(k){this._chunkError(k.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>=(n=>(n=n.getResponseHeader("Content-Range"))!==null?parseInt(n.substring(n.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(n){n=r.statusText||n,this._sendError(new Error(n))}}function nt(e){(e=e||{}).chunkSize||(e.chunkSize=_.LocalChunkSize),J.call(this,e);var r,n,o=typeof FileReader<"u";this.stream=function(g){this._input=g,n=g.slice||g.webkitSlice||g.mozSlice,o?((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 g=this._input,k=(this._config.chunkSize&&(k=Math.min(this._start+this._config.chunkSize,this._input.size),g=n.call(g,this._start,k)),r.readAsText(g,this._config.encoding));o||this._chunkLoaded({target:{result:k}})},this._chunkLoaded=function(g){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(g.target.result)},this._chunkError=function(){this._sendError(r.error)}}function Z(e){var r;J.call(this,e=e||{}),this.stream=function(n){return r=n,this._nextChunk()},this._nextChunk=function(){var n,o;if(!this._finished)return n=this._config.chunkSize,r=n?(o=r.substring(0,n),r.substring(n)):(o=r,""),this._finished=!r,this.parseChunk(o)}}function et(e){J.call(this,e=e||{});var r=[],n=!0,o=!1;this.pause=function(){J.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){J.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(g){this._input=g,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){o&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):n=!0},this._streamData=Q(function(g){try{r.push(typeof g=="string"?g:g.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(k){this._streamError(k)}},this),this._streamError=Q(function(g){this._streamCleanUp(),this._sendError(g)},this),this._streamEnd=Q(function(){this._streamCleanUp(),o=!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 it(e){var r,n,o,g,k=Math.pow(2,53),m=-k,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)))$/,a=this,u=0,f=0,y=!1,p=!1,v=[],h={data:[],errors:[],meta:{}};function x(S){return e.skipEmptyLines==="greedy"?S.join("").trim()==="":S.length===1&&S[0].length===0}function C(){if(h&&o&&(B("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+_.DefaultDelimiter+"'"),o=!1),e.skipEmptyLines&&(h.data=h.data.filter(function(w){return!x(w)})),z()){let w=function(T,j){R(e.transformHeader)&&(T=e.transformHeader(T,j)),v.push(T)};if(h)if(Array.isArray(h.data[0])){for(var S=0;z()&&S<h.data.length;S++)h.data[S].forEach(w);h.data.splice(0,1)}else h.data.forEach(w)}function D(w,T){for(var j=e.header?{}:[],A=0;A<w.length;A++){var I=A,M=w[A],M=((rt,E)=>(P=>(e.dynamicTypingFunction&&e.dynamicTyping[P]===void 0&&(e.dynamicTyping[P]=e.dynamicTypingFunction(P)),(e.dynamicTyping[P]||e.dynamicTyping)===!0))(rt)?E==="true"||E==="TRUE"||E!=="false"&&E!=="FALSE"&&((P=>{if(d.test(P)&&(P=parseFloat(P),m<P&&P<k))return 1})(E)?parseFloat(E):l.test(E)?new Date(E):E===""?null:E):E)(I=e.header?A>=v.length?"__parsed_extra":v[A]:I,M=e.transform?e.transform(M,I):M);I==="__parsed_extra"?(j[I]=j[I]||[],j[I].push(M)):j[I]=M}return e.header&&(A>v.length?B("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+A,f+T):A<v.length&&B("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+A,f+T)),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(D),O=h.data.length):h.data=D(h.data,0),e.header&&h.meta&&(h.meta.fields=v),f+=O)}function z(){return e.header&&v.length===0}function B(S,D,O,w){S={type:S,code:D,message:O},w!==void 0&&(S.row=w),h.errors.push(S)}R(e.step)&&(g=e.step,e.step=function(S){h=S,z()?C():(C(),h.data.length!==0&&(u+=S.data.length,e.preview&&u>e.preview?n.abort():(h.data=h.data[0],g(h,a))))}),this.parse=function(S,D,O){var w=e.quoteChar||'"',w=(e.newline||(e.newline=this.guessLineEndings(S,w)),o=!1,e.delimiter?R(e.delimiter)&&(e.delimiter=e.delimiter(S),h.meta.delimiter=e.delimiter):((w=((T,j,A,I,M)=>{var rt,E,P,ht;M=M||[","," ","|",";",_.RECORD_SEP,_.UNIT_SEP];for(var _t=0;_t<M.length;_t++){for(var st,kt=M[_t],V=0,at=0,N=0,G=(P=void 0,new vt({comments:I,delimiter:kt,newline:j,preview:10}).parse(T)),lt=0;lt<G.data.length;lt++)A&&x(G.data[lt])?N++:(st=G.data[lt].length,at+=st,P===void 0?P=st:0<st&&(V+=Math.abs(st-P),P=st));0<G.data.length&&(at/=G.data.length-N),(E===void 0||V<=E)&&(ht===void 0||ht<at)&&1.99<at&&(E=V,rt=kt,ht=at)}return{successful:!!(e.delimiter=rt),bestDelimiter:rt}})(S,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=w.bestDelimiter:(o=!0,e.delimiter=_.DefaultDelimiter),h.meta.delimiter=e.delimiter),ft(e));return e.preview&&e.header&&w.preview++,r=S,n=new vt(w),h=n.parse(r,D,O),C(),y?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return y},this.pause=function(){y=!0,n.abort(),r=R(e.chunk)?"":r.substring(n.getCharIndex())},this.resume=function(){a.streamer._halted?(y=!1,a.streamer.parseChunk(r,!0)):setTimeout(a.resume,3)},this.aborted=function(){return p},this.abort=function(){p=!0,n.abort(),h.meta.aborted=!0,R(e.complete)&&e.complete(h),r=""},this.guessLineEndings=function(T,w){T=T.substring(0,1048576);var w=new RegExp(ct(w)+"([^]*?)"+ct(w),"gm"),O=(T=T.replace(w,"")).split("\r"),w=T.split(`
2
+ `),T=1<w.length&&w[0].length<O[0].length;if(O.length===1||T)return`
3
+ `;for(var j=0,A=0;A<O.length;A++)O[A][0]===`
4
+ `&&j++;return j>=O.length/2?`\r
5
+ `:"\r"}}function ct(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vt(e){var r=(e=e||{}).delimiter,n=e.newline,o=e.comments,g=e.step,k=e.preview,m=e.fastMode,d=null,l=!1,a=e.quoteChar==null?'"':e.quoteChar,u=a;if(e.escapeChar!==void 0&&(u=e.escapeChar),(typeof r!="string"||-1<_.BAD_DELIMITERS.indexOf(r))&&(r=","),o===r)throw new Error("Comment character same as delimiter");o===!0?o="#":(typeof o!="string"||-1<_.BAD_DELIMITERS.indexOf(o))&&(o=!1),n!==`
6
6
  `&&n!=="\r"&&n!==`\r
7
7
  `&&(n=`
8
- `);var f=0,y=!1;this.parse=function(p,v,h){if(typeof p!="string")throw new Error("Input must be a string");var x=p.length,C=r.length,j=n.length,N=u.length,S=$(g),D=[],O=[],_=[],T=f=0;if(!p)return V();if(m||m!==!1&&p.indexOf(o)===-1){for(var U=p.split(n),A=0;A<U.length;A++){if(_=U[A],f+=_.length,A!==U.length-1)f+=n.length;else if(h)return V();if(!u||_.substring(0,N)!==u){if(S){if(D=[],he(_.split(r)),ae(),y)return V()}else he(_.split(r));if(E&&E<=A)return D=D.slice(0,E),V(!0)}}return V()}for(var I=p.indexOf(r,f),M=p.indexOf(n,f),re=new RegExp(ce(c)+ce(o),"g"),k=p.indexOf(o,f);;)if(p[f]===o)for(k=f,f++;;){if((k=p.indexOf(o,k+1))===-1)return h||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:D.length,index:f}),se();if(k===x-1)return se(p.substring(f,k).replace(re,o));if(o===c&&p[k+1]===c)k++;else if(o===c||k===0||p[k-1]!==c){I!==-1&&I<k+1&&(I=p.indexOf(r,k+1));var Y=ve((M=M!==-1&&M<k+1?p.indexOf(n,k+1):M)===-1?I:Math.min(I,M));if(p.substr(k+1+Y,C)===r){_.push(p.substring(f,k).replace(re,o)),p[f=k+1+Y+C]!==o&&(k=p.indexOf(o,f)),I=p.indexOf(r,f),M=p.indexOf(n,f);break}if(Y=ve(M),p.substring(k+1+Y,k+1+Y+j)===n){if(_.push(p.substring(f,k).replace(re,o)),Se(k+1+Y+j),I=p.indexOf(r,f),k=p.indexOf(o,f),S&&(ae(),y))return V();if(E&&D.length>=E)return V(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:D.length,index:f}),k++}}else if(u&&_.length===0&&p.substring(f,f+N)===u){if(M===-1)return V();f=M+j,M=p.indexOf(n,f),I=p.indexOf(r,f)}else if(I!==-1&&(I<M||M===-1))_.push(p.substring(f,I)),f=I+C,I=p.indexOf(r,f);else{if(M===-1)break;if(_.push(p.substring(f,M)),Se(M+j),S&&(ae(),y))return V();if(E&&D.length>=E)return V(!0)}return se();function he(P){D.push(P),T=f}function ve(P){var G=0;return G=P!==-1&&(P=p.substring(k+1,P))&&P.trim()===""?P.length:G}function se(P){return h||(P===void 0&&(P=p.substring(f)),_.push(P),f=x,he(_),S&&ae()),V()}function Se(P){f=P,he(_),_=[],M=p.indexOf(n,f)}function V(P){if(t.header&&!v&&D.length&&!d){var G=D[0],de=Object.create(null),Re=new Set(G);let ze=!1;for(let we=0;we<G.length;we++){let oe=G[we];if(de[oe=$(t.transformHeader)?t.transformHeader(oe,we):oe]){let Ee,Fe=de[oe];for(;Ee=oe+"_"+Fe,Fe++,Re.has(Ee););Re.add(Ee),G[we]=Ee,de[oe]++,ze=!0,(l=l===null?{}:l)[Ee]=oe}else de[oe]=1,G[we]=oe;Re.add(oe)}ze&&console.warn("Duplicate headers found and renamed."),d=!0}return{data:D,errors:O,meta:{delimiter:r,linebreak:n,aborted:y,truncated:!!P,cursor:T+(v||0),renamedHeaders:l}}}function ae(){g(V()),D=[],O=[]}},this.abort=function(){y=!0},this.getCharIndex=function(){return f}}function be(t){var r=t.data,n=q[r.workerId],u=!1;if(r.error)n.userError(r.error,r.file);else if(r.results&&r.results.data){var g={abort:function(){u=!0,le(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:xe,resume:xe};if($(n.userStep)){for(var E=0;E<r.results.data.length&&(n.userStep({data:r.results.data[E],errors:r.results.errors,meta:r.results.meta},g),!u);E++);delete r.results}else $(n.userChunk)&&(n.userChunk(r.results,g,r.file),delete r.results)}r.finished&&!u&&le(r.workerId,r.results)}function le(t,r){var n=q[t];$(n.userComplete)&&n.userComplete(r),n.terminate(),delete q[t]}function xe(){throw new Error("Not implemented.")}function fe(t){if(typeof t!="object"||t===null)return t;var r,n=Array.isArray(t)?[]:{};for(r in t)n[r]=fe(t[r]);return n}function Q(t,r){return function(){t.apply(r,arguments)}}function $(t){return typeof t=="function"}return w.parse=function(t,r){var n=(r=r||{}).dynamicTyping||!1;if($(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!$(r.transform)&&r.transform,!r.worker||!w.WORKERS_SUPPORTED)return n=null,w.NODE_STREAM_INPUT,typeof t=="string"?(t=(u=>u.charCodeAt(0)!==65279?u:u.slice(1))(t),n=new(r.download?W:Z)(r)):t.readable===!0&&$(t.read)&&$(t.on)?n=new te(r):(a.File&&t instanceof File||t instanceof Object)&&(n=new ne(r)),n.stream(t);(n=(()=>{var u;return!!w.WORKERS_SUPPORTED&&(u=(()=>{var g=a.URL||a.webkitURL||null,E=i.toString();return w.BLOB_URL||(w.BLOB_URL=g.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 a.Worker(u)).onmessage=be,u.id=K++,q[u.id]=u)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=$(r.step),r.chunk=$(r.chunk),r.complete=$(r.complete),r.error=$(r.error),delete r.worker,n.postMessage({input:t,config:r,workerId:n.id})},w.unparse=function(t,r){var n=!1,u=!0,g=",",E=`\r
9
- `,m='"',l=m+m,d=!1,o=null,c=!1,f=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||w.BAD_DELIMITERS.filter(function(v){return r.delimiter.indexOf(v)!==-1}).length||(g=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(n=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(d=r.skipEmptyLines),typeof r.newline=="string"&&(E=r.newline),typeof r.quoteChar=="string"&&(m=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&&(l=r.escapeChar+m),r.escapeFormulae instanceof RegExp?c=r.escapeFormulae:typeof r.escapeFormulae=="boolean"&&r.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),new RegExp(ce(m),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return y(null,t,d);if(typeof t[0]=="object")return y(o||Object.keys(t[0]),t,d)}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])),y(t.fields||[],t.data||[],d);throw new Error("Unable to serialize unrecognized input");function y(v,h,x){var C="",j=(typeof v=="string"&&(v=JSON.parse(v)),typeof h=="string"&&(h=JSON.parse(h)),Array.isArray(v)&&0<v.length),N=!Array.isArray(h[0]);if(j&&u){for(var S=0;S<v.length;S++)0<S&&(C+=g),C+=p(v[S],S);0<h.length&&(C+=E)}for(var D=0;D<h.length;D++){var O=(j?v:h[D]).length,_=!1,T=j?Object.keys(h[D]).length===0:h[D].length===0;if(x&&!j&&(_=x==="greedy"?h[D].join("").trim()==="":h[D].length===1&&h[D][0].length===0),x==="greedy"&&j){for(var U=[],A=0;A<O;A++){var I=N?v[A]:A;U.push(h[D][I])}_=U.join("").trim()===""}if(!_){for(var M=0;M<O;M++){0<M&&!T&&(C+=g);var re=j&&N?v[M]:M;C+=p(h[D][re],M)}D<h.length-1&&(!x||0<O&&!T)&&(C+=E)}}return C}function p(v,h){var x,C;return v==null?"":v.constructor===Date?JSON.stringify(v).slice(1,25):(C=!1,c&&typeof v=="string"&&c.test(v)&&(v="'"+v,C=!0),x=v.toString().replace(f,l),(C=C||n===!0||typeof n=="function"&&n(v,h)||Array.isArray(n)&&n[h]||((j,N)=>{for(var S=0;S<N.length;S++)if(-1<j.indexOf(N[S]))return!0;return!1})(x,w.BAD_DELIMITERS)||-1<x.indexOf(g)||x.charAt(0)===" "||x.charAt(x.length-1)===" ")?m+x+m:x)}},w.RECORD_SEP="",w.UNIT_SEP="",w.BYTE_ORDER_MARK="\uFEFF",w.BAD_DELIMITERS=["\r",`
10
- `,'"',w.BYTE_ORDER_MARK],w.WORKERS_SUPPORTED=!R&&!!a.Worker,w.NODE_STREAM_INPUT=1,w.LocalChunkSize=10485760,w.RemoteChunkSize=5242880,w.DefaultDelimiter=",",w.Parser=ye,w.ParserHandle=ie,w.NetworkStreamer=W,w.FileStreamer=ne,w.StringStreamer=Z,w.ReadableStreamStreamer=te,a.jQuery&&((b=a.jQuery).fn.parse=function(t){var r=t.config||{},n=[];return this.each(function(E){if(!(b(this).prop("tagName").toUpperCase()==="INPUT"&&b(this).attr("type").toLowerCase()==="file"&&a.FileReader)||!this.files||this.files.length===0)return!0;for(var m=0;m<this.files.length;m++)n.push({file:this.files[m],inputElem:this,instanceConfig:b.extend({},r)})}),u(),this;function u(){if(n.length===0)$(t.complete)&&t.complete();else{var E,m,l,d,o=n[0];if($(t.before)){var c=t.before(o.file,o.inputElem);if(typeof c=="object"){if(c.action==="abort")return E="AbortError",m=o.file,l=o.inputElem,d=c.reason,void($(t.error)&&t.error({name:E},m,l,d));if(c.action==="skip")return void g();typeof c.config=="object"&&(o.instanceConfig=b.extend(o.instanceConfig,c.config))}else if(c==="skip")return void g()}var f=o.instanceConfig.complete;o.instanceConfig.complete=function(y){$(f)&&f(y,o.file,o.inputElem),g()},w.parse(o.file,o.instanceConfig)}}function g(){n.splice(0,1),u()}}),L&&(a.onmessage=function(t){t=t.data,w.WORKER_ID===void 0&&t&&(w.WORKER_ID=t.workerId),typeof t.input=="string"?a.postMessage({workerId:w.WORKER_ID,results:w.parse(t.input,t.config),finished:!0}):(a.File&&t.input instanceof File||t.input instanceof Object)&&(t=w.parse(t.input,t.config))&&a.postMessage({workerId:w.WORKER_ID,results:t,finished:!0})}),(W.prototype=Object.create(J.prototype)).constructor=W,(ne.prototype=Object.create(J.prototype)).constructor=ne,(Z.prototype=Object.create(Z.prototype)).constructor=Z,(te.prototype=Object.create(J.prototype)).constructor=te,w})})(ke)),ke.exports}var Ne=Ye();const We=Me(Ne),{parse:Pe,unparse:qe}=We;class Be{static unparse(e,i){return qe(e,i)}static parse(e){return new Promise((i,a)=>{Pe(e,{header:!0,complete:b=>i(b),error:b=>a(b)})})}}async function $e(s,e,i){const a=i?.mimeType??Je(e),b=Ke(s,a);if("showSaveFilePicker"in window&&i?.showSaveFilePicker)try{const K=await(await window.showSaveFilePicker({suggestedName:e,types:[{description:"Datei",accept:{[a]:[`.${Te(e)}`]}}]})).createWritable();await K.write(b),await K.close();return}catch{}const R=URL.createObjectURL(b),L=document.createElement("a");L.href=R,L.download=e,L.rel="noopener",L.style.display="none",document.body.appendChild(L),Qe(L),window.setTimeout(()=>{document.body.removeChild(L),URL.revokeObjectURL(R)},0),Ve()&&window.open(R,"_blank","noopener,noreferrer")}function Ke(s,e){if(s instanceof Blob)return s.type?s:new Blob([s],{type:e});if(s instanceof ArrayBuffer||s instanceof Uint8Array){const i=s instanceof Uint8Array?s:new Uint8Array(s);return new Blob([i],{type:e})}return new Blob([s],{type:e||"text/plain;charset=utf-8"})}function Je(s){switch(Te(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 Te(s){const e=s.lastIndexOf(".");return e>=0&&e<s.length-1?s.slice(e+1):""}function Qe(s){const e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),s.dispatchEvent(e)}function Ve(){const s=navigator.userAgent,e=/iPad|iPhone|iPod/.test(s),i=/^((?!chrome|android).)*safari/i.test(s);return e||i}class Ze{static getEnumValue(e,i){if(i in e)return e[i];throw Error(`${i} not found in ${e}`)}static getKeyValues(e){return Object.keys(e).filter(i=>!isNaN(Number(i))).map(i=>({key:Number(i),value:e[i]}))}}class Ge{static getFileExtension(e){let i="";const a=e.lastIndexOf(".");return a>0&&a<e.length-1&&(i=`.${e.substring(a+1).toLowerCase()}`),i}static readAsText(e){const i=new FileReader;return new Promise((a,b)=>{i.onload=()=>{i.onload=null,i.onerror=null,typeof i.result=="string"?a(i.result):b(new Error("Unexpected result type"))},i.onerror=()=>{const R=i.error??new Error("FileReader error");i.onload=null,i.onerror=null,b(R)},i.readAsText(e)})}static readAsArrayBuffer(e){const i=new FileReader;return new Promise((a,b)=>{i.onload=()=>{i.onload=null,i.onerror=null,i.result instanceof ArrayBuffer?a(i.result):b(new Error("Unexpected result type"))},i.onerror=()=>{const R=i.error??new Error("FileReader error");i.onload=null,i.onerror=null,b(R)},i.readAsArrayBuffer(e)})}static readAsDataUrl(e){const i=new FileReader;return new Promise((a,b)=>{i.onload=R=>{a(R)},i.onerror=R=>b(R),i.readAsDataURL(e)})}static formatFileSize(e,i=2,a){if(e===0)return"0 Bytes";const b=1024,R=["Bytes","KB","MB","GB","TB"];let L=Math.floor(Math.log(e)/Math.log(b));a&&R.includes(a)&&(L=R.indexOf(a));const q=e/Math.pow(b,L);return`${parseFloat(q.toFixed(i))} ${R[L]}`}static save(e,i,a){const b=new Blob([e],{type:a});$e(b,i)}}class me{static set(e,i){localStorage.setItem(e,JSON.stringify(i))}static get(e){let i=null;const a=localStorage.getItem(e);return a&&(i=JSON.parse(a)),i}static remove(e){let i=!!me.get(e);return i&&localStorage.removeItem(e),i}static removeAll(){localStorage.clear()}static getKeysBy(e){return Object.keys(localStorage).filter(i=>i.startsWith(e))}}var pe=(s=>(s.log="log",s.info="info",s.warn="warn",s.debug="debug",s.error="error",s))(pe||{});class B{static listeners=new Set;static enabled=!0;static log(...e){B.doLog(pe.log,e)}static info(...e){B.doLog(pe.info,e)}static warn(...e){B.doLog(pe.warn,e)}static debug(...e){B.doLog(pe.debug,e)}static error(...e){B.doLog(pe.error,e)}static clearListeners(){B.listeners.clear()}static setEnabled(e){B.enabled=e}static doLog(e,i){if(!B.enabled)return;const a={type:e,args:i,timestamp:new Date().toISOString()};for(const b of B.listeners)try{if(b(a)===!1)return}catch{}console[e].apply(console,i)}static onLog(e,i=!1){if(i){const a=b=>{try{return e(b)}finally{B.listeners.delete(a)}};return B.listeners.add(a),()=>B.listeners.delete(a)}return B.listeners.add(e),()=>B.listeners.delete(e)}}const He=(s,e,i)=>s.localeCompare(e)*(i?1:-1),Xe=(s,e)=>s<e?-1:s===e?0:1,et=(s,e,i)=>Xe(s,e)*(i?1:-1),tt=(s,e,i)=>{let a=0;return typeof s=="string"&&typeof e=="string"?a=He(s,e,i):a=et(s,e,i),a},Ae=(s,e,i,a)=>{const b=i(s),R=i(e);return tt(b,R,a)};class rt{static get(e){return me.get(e)}static set(e,i){me.set(e,i)}static remove(e){me.remove(e)}}function nt(){Array.prototype.distinct=function(s){return s?this.filter((i,a,b)=>b.findIndex(R=>s(R,i))===a):this.filter((i,a,b)=>b.indexOf(i)===a)},Array.prototype.filterBy=function(s){return this.filter(e=>s(e))},Array.prototype.first=function(){return this.length>0?this[0]:null},Array.prototype.groupBy=function(s){return this.reduce((e,i)=>{const a=s(i);return e[a]||(e[a]=[]),e[a].push(i),e},{})},Array.prototype.orderBy=function(s,e=!0){return this?.sort((i,a)=>Ae(i,a,s,e)),this},Array.prototype.removeBy=function(s,e){return this.filter(i=>s(i)!==e)}}var De={exports:{}},it=De.exports,Ie;function st(){return Ie||(Ie=1,(function(s,e){(function(i,a){s.exports=a()})(it,(function(){var i=1e3,a=6e4,b=36e5,R="millisecond",L="second",q="minute",K="hour",w="day",J="week",W="month",ne="quarter",Z="year",te="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=/\[([^\]]+)]|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,be={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(m){var l=["th","st","nd","rd"],d=m%100;return"["+m+(l[(d-20)%10]||l[d]||l[0])+"]"}},le=function(m,l,d){var o=String(m);return!o||o.length>=l?m:""+Array(l+1-o.length).join(d)+m},xe={s:le,z:function(m){var l=-m.utcOffset(),d=Math.abs(l),o=Math.floor(d/60),c=d%60;return(l<=0?"+":"-")+le(o,2,"0")+":"+le(c,2,"0")},m:function m(l,d){if(l.date()<d.date())return-m(d,l);var o=12*(d.year()-l.year())+(d.month()-l.month()),c=l.clone().add(o,W),f=d-c<0,y=l.clone().add(o+(f?-1:1),W);return+(-(o+(d-c)/(f?c-y:y-c))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:W,y:Z,w:J,d:w,D:te,h:K,m:q,s:L,ms:R,Q:ne}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},fe="en",Q={};Q[fe]=be;var $="$isDayjsObject",t=function(m){return m instanceof g||!(!m||!m[$])},r=function m(l,d,o){var c;if(!l)return fe;if(typeof l=="string"){var f=l.toLowerCase();Q[f]&&(c=f),d&&(Q[f]=d,c=f);var y=l.split("-");if(!c&&y.length>1)return m(y[0])}else{var p=l.name;Q[p]=l,c=p}return!o&&c&&(fe=c),c||!o&&fe},n=function(m,l){if(t(m))return m.clone();var d=typeof l=="object"?l:{};return d.date=m,d.args=arguments,new g(d)},u=xe;u.l=r,u.i=t,u.w=function(m,l){return n(m,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var g=(function(){function m(d){this.$L=r(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[$]=!0}var l=m.prototype;return l.parse=function(d){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 y=c.match(ce);if(y){var p=y[2]-1||0,v=(y[7]||"0").substring(0,3);return f?new Date(Date.UTC(y[1],p,y[3]||1,y[4]||0,y[5]||0,y[6]||0,v)):new Date(y[1],p,y[3]||1,y[4]||0,y[5]||0,y[6]||0,v)}}return new Date(c)})(d),this.init()},l.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},l.$utils=function(){return u},l.isValid=function(){return this.$d.toString()!==ie},l.isSame=function(d,o){var c=n(d);return this.startOf(o)<=c&&c<=this.endOf(o)},l.isAfter=function(d,o){return n(d)<this.startOf(o)},l.isBefore=function(d,o){return this.endOf(o)<n(d)},l.$g=function(d,o,c){return u.u(d)?this[o]:this.set(c,d)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(d,o){var c=this,f=!!u.u(o)||o,y=u.p(d),p=function(D,O){var _=u.w(c.$u?Date.UTC(c.$y,O,D):new Date(c.$y,O,D),c);return f?_:_.endOf(w)},v=function(D,O){return u.w(c.toDate()[D].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(O)),c)},h=this.$W,x=this.$M,C=this.$D,j="set"+(this.$u?"UTC":"");switch(y){case Z:return f?p(1,0):p(31,11);case W:return f?p(1,x):p(0,x+1);case J:var N=this.$locale().weekStart||0,S=(h<N?h+7:h)-N;return p(f?C-S:C+(6-S),x);case w:case te:return v(j+"Hours",0);case K:return v(j+"Minutes",1);case q:return v(j+"Seconds",2);case L:return v(j+"Milliseconds",3);default:return this.clone()}},l.endOf=function(d){return this.startOf(d,!1)},l.$set=function(d,o){var c,f=u.p(d),y="set"+(this.$u?"UTC":""),p=(c={},c[w]=y+"Date",c[te]=y+"Date",c[W]=y+"Month",c[Z]=y+"FullYear",c[K]=y+"Hours",c[q]=y+"Minutes",c[L]=y+"Seconds",c[R]=y+"Milliseconds",c)[f],v=f===w?this.$D+(o-this.$W):o;if(f===W||f===Z){var h=this.clone().set(te,1);h.$d[p](v),h.init(),this.$d=h.set(te,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},l.set=function(d,o){return this.clone().$set(d,o)},l.get=function(d){return this[u.p(d)]()},l.add=function(d,o){var c,f=this;d=Number(d);var y=u.p(o),p=function(x){var C=n(f);return u.w(C.date(C.date()+Math.round(x*d)),f)};if(y===W)return this.set(W,this.$M+d);if(y===Z)return this.set(Z,this.$y+d);if(y===w)return p(1);if(y===J)return p(7);var v=(c={},c[q]=a,c[K]=b,c[L]=i,c)[y]||1,h=this.$d.getTime()+d*v;return u.w(h,this)},l.subtract=function(d,o){return this.add(-1*d,o)},l.format=function(d){var o=this,c=this.$locale();if(!this.isValid())return c.invalidDate||ie;var f=d||"YYYY-MM-DDTHH:mm:ssZ",y=u.z(this),p=this.$H,v=this.$m,h=this.$M,x=c.weekdays,C=c.months,j=c.meridiem,N=function(O,_,T,U){return O&&(O[_]||O(o,f))||T[_].slice(0,U)},S=function(O){return u.s(p%12||12,O,"0")},D=j||function(O,_,T){var U=O<12?"AM":"PM";return T?U.toLowerCase():U};return f.replace(ye,(function(O,_){return _||(function(T){switch(T){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 N(c.monthsShort,h,C,3);case"MMMM":return N(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 N(c.weekdaysMin,o.$W,x,2);case"ddd":return N(c.weekdaysShort,o.$W,x,3);case"dddd":return x[o.$W];case"H":return String(p);case"HH":return u.s(p,2,"0");case"h":return S(1);case"hh":return S(2);case"a":return D(p,v,!0);case"A":return D(p,v,!1);case"m":return String(v);case"mm":return u.s(v,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 y}return null})(O)||y.replace(":","")}))},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(d,o,c){var f,y=this,p=u.p(o),v=n(d),h=(v.utcOffset()-this.utcOffset())*a,x=this-v,C=function(){return u.m(y,v)};switch(p){case Z:f=C()/12;break;case W:f=C();break;case ne:f=C()/3;break;case J:f=(x-h)/6048e5;break;case w:f=(x-h)/864e5;break;case K:f=x/b;break;case q:f=x/a;break;case L:f=x/i;break;default:f=x}return c?f:u.a(f)},l.daysInMonth=function(){return this.endOf(W).$D},l.$locale=function(){return Q[this.$L]},l.locale=function(d,o){if(!d)return this.$L;var c=this.clone(),f=r(d,o,!0);return f&&(c.$L=f),c},l.clone=function(){return u.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},m})(),E=g.prototype;return n.prototype=E,[["$ms",R],["$s",L],["$m",q],["$H",K],["$W",w],["$M",W],["$y",Z],["$D",te]].forEach((function(m){E[m[1]]=function(l){return this.$g(l,m[0],m[1])}})),n.extend=function(m,l){return m.$i||(m(l,g,n),m.$i=!0),n},n.locale=r,n.isDayjs=t,n.unix=function(m){return n(1e3*m)},n.en=Q[fe],n.Ls=Q,n.p={},n}))})(De)),De.exports}var at=st();const ee=Me(at);var Oe={exports:{}},ot=Oe.exports,Le;function ut(){return Le||(Le=1,(function(s,e){(function(i,a){s.exports=a()})(ot,(function(){var i={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,b,R){var L=b.prototype,q=L.format;R.en.formats=i,L.format=function(K){K===void 0&&(K="YYYY-MM-DDTHH:mm:ssZ");var w=this.$locale().formats,J=(function(W,ne){return W.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(Z,te,ie){var ce=ie&&ie.toUpperCase();return te||ne[ie]||i[ie]||ne[ce].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(ye,be,le){return be||le.slice(1)}))}))})(K,w===void 0?{}:w);return q.call(this,J)}}}))})(Oe)),Oe.exports}var ct=ut();const ft=Me(ct);ee.extend(ft);function dt(){Date.prototype.add=function(s,e){return ee(this).add(s,e).toDate()},Date.prototype.diff=function(s,e){return ee(this).diff(s,e)},Date.prototype.endOf=function(s){return ee(this).endOf(s).toDate()},Date.prototype.firstDayOfMonth=function(){return ee(this).startOf("month").toDate()},Date.prototype.isAfter=function(s,e){return ee(this).isAfter(s,e)},Date.prototype.isBefore=function(s,e){return ee(this).isBefore(s,e)},Date.prototype.format=function(s){return ee(this).format(s)},Date.prototype.isValid=function(){return ee(this).isValid()},Date.prototype.subtract=function(s,e){return ee(this).subtract(s,e).toDate()},Date.prototype.lastDayOfMonth=function(){return ee(this).endOf("month").toDate()},Date.prototype.set=function(s,e){return ee(this).set(s,e).toDate()},Date.prototype.startOf=function(s){return ee(this).startOf(s).toDate()}}function lt(){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 ht{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))}}z.BreakPointHelper=F,z.BreakPoints=ge,z.BrowserHelper=X,z.BrowserService=ht,z.BrowserType=H,z.CsvHelper=Be,z.EnumHelper=Ze,z.FileHelper=Ge,z.LocalStorageHelper=me,z.LoggerHelper=B,z.LoggerType=pe,z.ScreenHelper=_e,z.TokenHelper=rt,z.copyToClipboard=je,z.initArrayExtensions=nt,z.initDateExtensions=dt,z.initStringExtensions=lt,z.saveAs=$e,z.sortHelper=Ae,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
8
+ `);var f=0,y=!1;this.parse=function(p,v,h){if(typeof p!="string")throw new Error("Input must be a string");var x=p.length,C=r.length,z=n.length,B=o.length,S=R(g),D=[],O=[],w=[],T=f=0;if(!p)return V();if(m||m!==!1&&p.indexOf(a)===-1){for(var j=p.split(n),A=0;A<j.length;A++){if(w=j[A],f+=w.length,A!==j.length-1)f+=n.length;else if(h)return V();if(!o||w.substring(0,B)!==o){if(S){if(D=[],ht(w.split(r)),at(),y)return V()}else ht(w.split(r));if(k&&k<=A)return D=D.slice(0,k),V(!0)}}return V()}for(var I=p.indexOf(r,f),M=p.indexOf(n,f),rt=new RegExp(ct(u)+ct(a),"g"),E=p.indexOf(a,f);;)if(p[f]===a)for(E=f,f++;;){if((E=p.indexOf(a,E+1))===-1)return h||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:D.length,index:f}),st();if(E===x-1)return st(p.substring(f,E).replace(rt,a));if(a===u&&p[E+1]===u)E++;else if(a===u||E===0||p[E-1]!==u){I!==-1&&I<E+1&&(I=p.indexOf(r,E+1));var P=_t((M=M!==-1&&M<E+1?p.indexOf(n,E+1):M)===-1?I:Math.min(I,M));if(p.substr(E+1+P,C)===r){w.push(p.substring(f,E).replace(rt,a)),p[f=E+1+P+C]!==a&&(E=p.indexOf(a,f)),I=p.indexOf(r,f),M=p.indexOf(n,f);break}if(P=_t(M),p.substring(E+1+P,E+1+P+z)===n){if(w.push(p.substring(f,E).replace(rt,a)),kt(E+1+P+z),I=p.indexOf(r,f),E=p.indexOf(a,f),S&&(at(),y))return V();if(k&&D.length>=k)return V(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:D.length,index:f}),E++}}else if(o&&w.length===0&&p.substring(f,f+B)===o){if(M===-1)return V();f=M+z,M=p.indexOf(n,f),I=p.indexOf(r,f)}else if(I!==-1&&(I<M||M===-1))w.push(p.substring(f,I)),f=I+C,I=p.indexOf(r,f);else{if(M===-1)break;if(w.push(p.substring(f,M)),kt(M+z),S&&(at(),y))return V();if(k&&D.length>=k)return V(!0)}return st();function ht(N){D.push(N),T=f}function _t(N){var G=0;return G=N!==-1&&(N=p.substring(E+1,N))&&N.trim()===""?N.length:G}function st(N){return h||(N===void 0&&(N=p.substring(f)),w.push(N),f=x,ht(w),S&&at()),V()}function kt(N){f=N,ht(w),w=[],M=p.indexOf(n,f)}function V(N){if(e.header&&!v&&D.length&&!l){var G=D[0],lt=Object.create(null),Ct=new Set(G);let zt=!1;for(let wt=0;wt<G.length;wt++){let ot=G[wt];if(lt[ot=R(e.transformHeader)?e.transformHeader(ot,wt):ot]){let Et,jt=lt[ot];for(;Et=ot+"_"+jt,jt++,Ct.has(Et););Ct.add(Et),G[wt]=Et,lt[ot]++,zt=!0,(d=d===null?{}:d)[Et]=ot}else lt[ot]=1,G[wt]=ot;Ct.add(ot)}zt&&console.warn("Duplicate headers found and renamed."),l=!0}return{data:D,errors:O,meta:{delimiter:r,linebreak:n,aborted:y,truncated:!!N,cursor:T+(v||0),renamedHeaders:d}}}function at(){g(V()),D=[],O=[]}},this.abort=function(){y=!0},this.getCharIndex=function(){return f}}function St(e){var r=e.data,n=q[r.workerId],o=!1;if(r.error)n.userError(r.error,r.file);else if(r.results&&r.results.data){var g={abort:function(){o=!0,dt(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Mt,resume:Mt};if(R(n.userStep)){for(var k=0;k<r.results.data.length&&(n.userStep({data:r.results.data[k],errors:r.results.errors,meta:r.results.meta},g),!o);k++);delete r.results}else R(n.userChunk)&&(n.userChunk(r.results,g,r.file),delete r.results)}r.finished&&!o&&dt(r.workerId,r.results)}function dt(e,r){var n=q[e];R(n.userComplete)&&n.userComplete(r),n.terminate(),delete q[e]}function Mt(){throw new Error("Not implemented.")}function ft(e){if(typeof e!="object"||e===null)return e;var r,n=Array.isArray(e)?[]:{};for(r in e)n[r]=ft(e[r]);return n}function Q(e,r){return function(){e.apply(r,arguments)}}function R(e){return typeof e=="function"}return _.parse=function(e,r){var n=(r=r||{}).dynamicTyping||!1;if(R(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!R(r.transform)&&r.transform,!r.worker||!_.WORKERS_SUPPORTED)return n=null,_.NODE_STREAM_INPUT,typeof e=="string"?(e=(o=>o.charCodeAt(0)!==65279?o:o.slice(1))(e),n=new(r.download?Y:Z)(r)):e.readable===!0&&R(e.read)&&R(e.on)?n=new et(r):(c.File&&e instanceof File||e instanceof Object)&&(n=new nt(r)),n.stream(e);(n=(()=>{var o;return!!_.WORKERS_SUPPORTED&&(o=(()=>{var g=c.URL||c.webkitURL||null,k=i.toString();return _.BLOB_URL||(_.BLOB_URL=g.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; ","(",k,")();"],{type:"text/javascript"})))})(),(o=new c.Worker(o)).onmessage=St,o.id=K++,q[o.id]=o)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.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,n.postMessage({input:e,config:r,workerId:n.id})},_.unparse=function(e,r){var n=!1,o=!0,g=",",k=`\r
9
+ `,m='"',d=m+m,l=!1,a=null,u=!1,f=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||_.BAD_DELIMITERS.filter(function(v){return r.delimiter.indexOf(v)!==-1}).length||(g=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(n=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(l=r.skipEmptyLines),typeof r.newline=="string"&&(k=r.newline),typeof r.quoteChar=="string"&&(m=r.quoteChar),typeof r.header=="boolean"&&(o=r.header),Array.isArray(r.columns)){if(r.columns.length===0)throw new Error("Option columns is empty");a=r.columns}r.escapeChar!==void 0&&(d=r.escapeChar+m),r.escapeFormulae instanceof RegExp?u=r.escapeFormulae:typeof r.escapeFormulae=="boolean"&&r.escapeFormulae&&(u=/^[=+\-@\t\r].*$/)}})(),new RegExp(ct(m),"g"));if(typeof e=="string"&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return y(null,e,l);if(typeof e[0]=="object")return y(a||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||a),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])),y(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function y(v,h,x){var C="",z=(typeof v=="string"&&(v=JSON.parse(v)),typeof h=="string"&&(h=JSON.parse(h)),Array.isArray(v)&&0<v.length),B=!Array.isArray(h[0]);if(z&&o){for(var S=0;S<v.length;S++)0<S&&(C+=g),C+=p(v[S],S);0<h.length&&(C+=k)}for(var D=0;D<h.length;D++){var O=(z?v:h[D]).length,w=!1,T=z?Object.keys(h[D]).length===0:h[D].length===0;if(x&&!z&&(w=x==="greedy"?h[D].join("").trim()==="":h[D].length===1&&h[D][0].length===0),x==="greedy"&&z){for(var j=[],A=0;A<O;A++){var I=B?v[A]:A;j.push(h[D][I])}w=j.join("").trim()===""}if(!w){for(var M=0;M<O;M++){0<M&&!T&&(C+=g);var rt=z&&B?v[M]:M;C+=p(h[D][rt],M)}D<h.length-1&&(!x||0<O&&!T)&&(C+=k)}}return C}function p(v,h){var x,C;return v==null?"":v.constructor===Date?JSON.stringify(v).slice(1,25):(C=!1,u&&typeof v=="string"&&u.test(v)&&(v="'"+v,C=!0),x=v.toString().replace(f,d),(C=C||n===!0||typeof n=="function"&&n(v,h)||Array.isArray(n)&&n[h]||((z,B)=>{for(var S=0;S<B.length;S++)if(-1<z.indexOf(B[S]))return!0;return!1})(x,_.BAD_DELIMITERS)||-1<x.indexOf(g)||x.charAt(0)===" "||x.charAt(x.length-1)===" ")?m+x+m:x)}},_.RECORD_SEP="",_.UNIT_SEP="",_.BYTE_ORDER_MARK="\uFEFF",_.BAD_DELIMITERS=["\r",`
10
+ `,'"',_.BYTE_ORDER_MARK],_.WORKERS_SUPPORTED=!$&&!!c.Worker,_.NODE_STREAM_INPUT=1,_.LocalChunkSize=10485760,_.RemoteChunkSize=5242880,_.DefaultDelimiter=",",_.Parser=vt,_.ParserHandle=it,_.NetworkStreamer=Y,_.FileStreamer=nt,_.StringStreamer=Z,_.ReadableStreamStreamer=et,c.jQuery&&((b=c.jQuery).fn.parse=function(e){var r=e.config||{},n=[];return this.each(function(k){if(!(b(this).prop("tagName").toUpperCase()==="INPUT"&&b(this).attr("type").toLowerCase()==="file"&&c.FileReader)||!this.files||this.files.length===0)return!0;for(var m=0;m<this.files.length;m++)n.push({file:this.files[m],inputElem:this,instanceConfig:b.extend({},r)})}),o(),this;function o(){if(n.length===0)R(e.complete)&&e.complete();else{var k,m,d,l,a=n[0];if(R(e.before)){var u=e.before(a.file,a.inputElem);if(typeof u=="object"){if(u.action==="abort")return k="AbortError",m=a.file,d=a.inputElem,l=u.reason,void(R(e.error)&&e.error({name:k},m,d,l));if(u.action==="skip")return void g();typeof u.config=="object"&&(a.instanceConfig=b.extend(a.instanceConfig,u.config))}else if(u==="skip")return void g()}var f=a.instanceConfig.complete;a.instanceConfig.complete=function(y){R(f)&&f(y,a.file,a.inputElem),g()},_.parse(a.file,a.instanceConfig)}}function g(){n.splice(0,1),o()}}),F&&(c.onmessage=function(e){e=e.data,_.WORKER_ID===void 0&&e&&(_.WORKER_ID=e.workerId),typeof e.input=="string"?c.postMessage({workerId:_.WORKER_ID,results:_.parse(e.input,e.config),finished:!0}):(c.File&&e.input instanceof File||e.input instanceof Object)&&(e=_.parse(e.input,e.config))&&c.postMessage({workerId:_.WORKER_ID,results:e,finished:!0})}),(Y.prototype=Object.create(J.prototype)).constructor=Y,(nt.prototype=Object.create(J.prototype)).constructor=nt,(Z.prototype=Object.create(Z.prototype)).constructor=Z,(et.prototype=Object.create(J.prototype)).constructor=et,_})})(Dt)),Dt.exports}var Yt=Bt();const Nt=$t(Yt),{parse:qt,unparse:Wt}=Nt;class Kt{static unparse(t,i){return Wt(t,i)}static parse(t){return new Promise((i,c)=>{qt(t,{header:!0,complete:b=>i(b),error:b=>c(b)})})}}async function Tt(s,t,i){const c=i?.mimeType??Qt(t),b=Jt(s,c);if("showSaveFilePicker"in window&&i?.showSaveFilePicker)try{const K=await(await window.showSaveFilePicker({suggestedName:t,types:[{description:"Datei",accept:{[c]:[`.${At(t)}`]}}]})).createWritable();await K.write(b),await K.close();return}catch{}const $=URL.createObjectURL(b),F=document.createElement("a");F.href=$,F.download=t,F.rel="noopener",F.style.display="none",document.body.appendChild(F),Vt(F),window.setTimeout(()=>{document.body.removeChild(F),URL.revokeObjectURL($)},0),Zt()&&window.open($,"_blank","noopener,noreferrer")}function Jt(s,t){if(s instanceof Blob)return s.type?s:new Blob([s],{type:t});if(s instanceof ArrayBuffer||s instanceof Uint8Array){const i=s instanceof Uint8Array?s:new Uint8Array(s);return new Blob([i],{type:t})}return new Blob([s],{type:t||"text/plain;charset=utf-8"})}function Qt(s){switch(At(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 At(s){const t=s.lastIndexOf(".");return t>=0&&t<s.length-1?s.slice(t+1):""}function Vt(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 Zt(){const s=navigator.userAgent,t=/iPad|iPhone|iPod/.test(s),i=/^((?!chrome|android).)*safari/i.test(s);return t||i}class Gt{static getEnumValue(t,i){if(i in t)return t[i];throw Error(`${i} not found in ${t}`)}static getKeyValues(t){return Object.keys(t).filter(i=>!isNaN(Number(i))).map(i=>({key:Number(i),value:t[i]}))}}class Ht{static getFileExtension(t){let i="";const c=t.lastIndexOf(".");return c>0&&c<t.length-1&&(i=`.${t.substring(c+1).toLowerCase()}`),i}static readAsText(t){const i=new FileReader;return new Promise((c,b)=>{i.onload=()=>{i.onload=null,i.onerror=null,typeof i.result=="string"?c(i.result):b(new Error("Unexpected result type"))},i.onerror=()=>{const $=i.error??new Error("FileReader error");i.onload=null,i.onerror=null,b($)},i.readAsText(t)})}static readAsArrayBuffer(t){const i=new FileReader;return new Promise((c,b)=>{i.onload=()=>{i.onload=null,i.onerror=null,i.result instanceof ArrayBuffer?c(i.result):b(new Error("Unexpected result type"))},i.onerror=()=>{const $=i.error??new Error("FileReader error");i.onload=null,i.onerror=null,b($)},i.readAsArrayBuffer(t)})}static readAsDataUrl(t){const i=new FileReader;return new Promise((c,b)=>{i.onload=$=>{c($)},i.onerror=$=>b($),i.readAsDataURL(t)})}static formatFileSize(t,i=2,c){if(t===0)return"0 Bytes";const b=1024,$=["Bytes","KB","MB","GB","TB"];let F=Math.floor(Math.log(t)/Math.log(b));c&&$.includes(c)&&(F=$.indexOf(c));const q=t/Math.pow(b,F);return`${parseFloat(q.toFixed(i))} ${$[F]}`}static save(t,i,c){const b=new Blob([t],{type:c});Tt(b,i)}}class yt{static set(t,i){localStorage.setItem(t,JSON.stringify(i))}static get(t){let i=null;const c=localStorage.getItem(t);return c&&(i=JSON.parse(c)),i}static remove(t){let i=!!yt.get(t);return i&&localStorage.removeItem(t),i}static removeAll(){localStorage.clear()}static getKeysBy(t){return Object.keys(localStorage).filter(i=>i.startsWith(t))}}var gt=(s=>(s.log="log",s.info="info",s.warn="warn",s.debug="debug",s.error="error",s))(gt||{});class W{static listeners=new Set;static enabled=!0;static log(...t){W.doLog(gt.log,t)}static info(...t){W.doLog(gt.info,t)}static warn(...t){W.doLog(gt.warn,t)}static debug(...t){W.doLog(gt.debug,t)}static error(...t){W.doLog(gt.error,t)}static clearListeners(){W.listeners.clear()}static setEnabled(t){W.enabled=t}static doLog(t,i){if(!W.enabled)return;const c={type:t,args:i,timestamp:new Date().toISOString()};for(const b of W.listeners)try{if(b(c)===!1)return}catch{}console[t].apply(console,i)}static onLog(t,i=!1){if(i){const c=b=>{try{return t(b)}finally{W.listeners.delete(c)}};return W.listeners.add(c),()=>W.listeners.delete(c)}return W.listeners.add(t),()=>W.listeners.delete(t)}}const Xt=(s,t,i)=>s.localeCompare(t)*(i?1:-1),te=(s,t)=>s<t?-1:s===t?0:1,ee=(s,t,i)=>te(s,t)*(i?1:-1),re=(s,t,i)=>{let c=0;return typeof s=="string"&&typeof t=="string"?c=Xt(s,t,i):c=ee(s,t,i),c},It=(s,t,i,c)=>{const b=i(s),$=i(t);return re(b,$,c)};class ne{static get(t){return yt.get(t)}static set(t,i){yt.set(t,i)}static remove(t){yt.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 i of U.listeners)i(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 ie(){Array.prototype.distinct=function(s){return s?this.filter((i,c,b)=>b.findIndex($=>s($,i))===c):this.filter((i,c,b)=>b.indexOf(i)===c)},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,i)=>{const c=s(i);return t[c]||(t[c]=[]),t[c].push(i),t},{})},Array.prototype.orderBy=function(s,t=!0){return this?.sort((i,c)=>It(i,c,s,t)),this},Array.prototype.removeBy=function(s,t){return this.filter(i=>s(i)!==t)}}var Ot={exports:{}},se=Ot.exports,Lt;function ae(){return Lt||(Lt=1,(function(s,t){(function(i,c){s.exports=c()})(se,(function(){var i=1e3,c=6e4,b=36e5,$="millisecond",F="second",q="minute",K="hour",_="day",J="week",Y="month",nt="quarter",Z="year",et="date",it="Invalid Date",ct=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vt=/\[([^\]]+)]|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,St={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(m){var d=["th","st","nd","rd"],l=m%100;return"["+m+(d[(l-20)%10]||d[l]||d[0])+"]"}},dt=function(m,d,l){var a=String(m);return!a||a.length>=d?m:""+Array(d+1-a.length).join(l)+m},Mt={s:dt,z:function(m){var d=-m.utcOffset(),l=Math.abs(d),a=Math.floor(l/60),u=l%60;return(d<=0?"+":"-")+dt(a,2,"0")+":"+dt(u,2,"0")},m:function m(d,l){if(d.date()<l.date())return-m(l,d);var a=12*(l.year()-d.year())+(l.month()-d.month()),u=d.clone().add(a,Y),f=l-u<0,y=d.clone().add(a+(f?-1:1),Y);return+(-(a+(l-u)/(f?u-y:y-u))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:Y,y:Z,w:J,d:_,D:et,h:K,m:q,s:F,ms:$,Q:nt}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},ft="en",Q={};Q[ft]=St;var R="$isDayjsObject",e=function(m){return m instanceof g||!(!m||!m[R])},r=function m(d,l,a){var u;if(!d)return ft;if(typeof d=="string"){var f=d.toLowerCase();Q[f]&&(u=f),l&&(Q[f]=l,u=f);var y=d.split("-");if(!u&&y.length>1)return m(y[0])}else{var p=d.name;Q[p]=d,u=p}return!a&&u&&(ft=u),u||!a&&ft},n=function(m,d){if(e(m))return m.clone();var l=typeof d=="object"?d:{};return l.date=m,l.args=arguments,new g(l)},o=Mt;o.l=r,o.i=e,o.w=function(m,d){return n(m,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var g=(function(){function m(l){this.$L=r(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[R]=!0}var d=m.prototype;return d.parse=function(l){this.$d=(function(a){var u=a.date,f=a.utc;if(u===null)return new Date(NaN);if(o.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var y=u.match(ct);if(y){var p=y[2]-1||0,v=(y[7]||"0").substring(0,3);return f?new Date(Date.UTC(y[1],p,y[3]||1,y[4]||0,y[5]||0,y[6]||0,v)):new Date(y[1],p,y[3]||1,y[4]||0,y[5]||0,y[6]||0,v)}}return new Date(u)})(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 o},d.isValid=function(){return this.$d.toString()!==it},d.isSame=function(l,a){var u=n(l);return this.startOf(a)<=u&&u<=this.endOf(a)},d.isAfter=function(l,a){return n(l)<this.startOf(a)},d.isBefore=function(l,a){return this.endOf(a)<n(l)},d.$g=function(l,a,u){return o.u(l)?this[a]:this.set(u,l)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(l,a){var u=this,f=!!o.u(a)||a,y=o.p(l),p=function(D,O){var w=o.w(u.$u?Date.UTC(u.$y,O,D):new Date(u.$y,O,D),u);return f?w:w.endOf(_)},v=function(D,O){return o.w(u.toDate()[D].apply(u.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(O)),u)},h=this.$W,x=this.$M,C=this.$D,z="set"+(this.$u?"UTC":"");switch(y){case Z:return f?p(1,0):p(31,11);case Y:return f?p(1,x):p(0,x+1);case J:var B=this.$locale().weekStart||0,S=(h<B?h+7:h)-B;return p(f?C-S:C+(6-S),x);case _:case et:return v(z+"Hours",0);case K:return v(z+"Minutes",1);case q:return v(z+"Seconds",2);case F:return v(z+"Milliseconds",3);default:return this.clone()}},d.endOf=function(l){return this.startOf(l,!1)},d.$set=function(l,a){var u,f=o.p(l),y="set"+(this.$u?"UTC":""),p=(u={},u[_]=y+"Date",u[et]=y+"Date",u[Y]=y+"Month",u[Z]=y+"FullYear",u[K]=y+"Hours",u[q]=y+"Minutes",u[F]=y+"Seconds",u[$]=y+"Milliseconds",u)[f],v=f===_?this.$D+(a-this.$W):a;if(f===Y||f===Z){var h=this.clone().set(et,1);h.$d[p](v),h.init(),this.$d=h.set(et,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},d.set=function(l,a){return this.clone().$set(l,a)},d.get=function(l){return this[o.p(l)]()},d.add=function(l,a){var u,f=this;l=Number(l);var y=o.p(a),p=function(x){var C=n(f);return o.w(C.date(C.date()+Math.round(x*l)),f)};if(y===Y)return this.set(Y,this.$M+l);if(y===Z)return this.set(Z,this.$y+l);if(y===_)return p(1);if(y===J)return p(7);var v=(u={},u[q]=c,u[K]=b,u[F]=i,u)[y]||1,h=this.$d.getTime()+l*v;return o.w(h,this)},d.subtract=function(l,a){return this.add(-1*l,a)},d.format=function(l){var a=this,u=this.$locale();if(!this.isValid())return u.invalidDate||it;var f=l||"YYYY-MM-DDTHH:mm:ssZ",y=o.z(this),p=this.$H,v=this.$m,h=this.$M,x=u.weekdays,C=u.months,z=u.meridiem,B=function(O,w,T,j){return O&&(O[w]||O(a,f))||T[w].slice(0,j)},S=function(O){return o.s(p%12||12,O,"0")},D=z||function(O,w,T){var j=O<12?"AM":"PM";return T?j.toLowerCase():j};return f.replace(vt,(function(O,w){return w||(function(T){switch(T){case"YY":return String(a.$y).slice(-2);case"YYYY":return o.s(a.$y,4,"0");case"M":return h+1;case"MM":return o.s(h+1,2,"0");case"MMM":return B(u.monthsShort,h,C,3);case"MMMM":return B(C,h);case"D":return a.$D;case"DD":return o.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return B(u.weekdaysMin,a.$W,x,2);case"ddd":return B(u.weekdaysShort,a.$W,x,3);case"dddd":return x[a.$W];case"H":return String(p);case"HH":return o.s(p,2,"0");case"h":return S(1);case"hh":return S(2);case"a":return D(p,v,!0);case"A":return D(p,v,!1);case"m":return String(v);case"mm":return o.s(v,2,"0");case"s":return String(a.$s);case"ss":return o.s(a.$s,2,"0");case"SSS":return o.s(a.$ms,3,"0");case"Z":return y}return null})(O)||y.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(l,a,u){var f,y=this,p=o.p(a),v=n(l),h=(v.utcOffset()-this.utcOffset())*c,x=this-v,C=function(){return o.m(y,v)};switch(p){case Z:f=C()/12;break;case Y:f=C();break;case nt:f=C()/3;break;case J:f=(x-h)/6048e5;break;case _:f=(x-h)/864e5;break;case K:f=x/b;break;case q:f=x/c;break;case F:f=x/i;break;default:f=x}return u?f:o.a(f)},d.daysInMonth=function(){return this.endOf(Y).$D},d.$locale=function(){return Q[this.$L]},d.locale=function(l,a){if(!l)return this.$L;var u=this.clone(),f=r(l,a,!0);return f&&(u.$L=f),u},d.clone=function(){return o.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()},m})(),k=g.prototype;return n.prototype=k,[["$ms",$],["$s",F],["$m",q],["$H",K],["$W",_],["$M",Y],["$y",Z],["$D",et]].forEach((function(m){k[m[1]]=function(d){return this.$g(d,m[0],m[1])}})),n.extend=function(m,d){return m.$i||(m(d,g,n),m.$i=!0),n},n.locale=r,n.isDayjs=e,n.unix=function(m){return n(1e3*m)},n.en=Q[ft],n.Ls=Q,n.p={},n}))})(Ot)),Ot.exports}var oe=ae();const tt=$t(oe);var xt={exports:{}},ue=xt.exports,Ft;function ce(){return Ft||(Ft=1,(function(s,t){(function(i,c){s.exports=c()})(ue,(function(){var i={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(c,b,$){var F=b.prototype,q=F.format;$.en.formats=i,F.format=function(K){K===void 0&&(K="YYYY-MM-DDTHH:mm:ssZ");var _=this.$locale().formats,J=(function(Y,nt){return Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(Z,et,it){var ct=it&&it.toUpperCase();return et||nt[it]||i[it]||nt[ct].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(vt,St,dt){return St||dt.slice(1)}))}))})(K,_===void 0?{}:_);return q.call(this,J)}}}))})(xt)),xt.exports}var fe=ce();const le=$t(fe);tt.extend(le);function de(){Date.prototype.add=function(s,t){return tt(this).add(s,t).toDate()},Date.prototype.diff=function(s,t){return tt(this).diff(s,t)},Date.prototype.endOf=function(s){return tt(this).endOf(s).toDate()},Date.prototype.firstDayOfMonth=function(){return tt(this).startOf("month").toDate()},Date.prototype.isAfter=function(s,t){return tt(this).isAfter(s,t)},Date.prototype.isBefore=function(s,t){return tt(this).isBefore(s,t)},Date.prototype.format=function(s){return tt(this).format(s)},Date.prototype.isValid=function(){return tt(this).isValid()},Date.prototype.subtract=function(s,t){return tt(this).subtract(s,t).toDate()},Date.prototype.lastDayOfMonth=function(){return tt(this).endOf("month").toDate()},Date.prototype.set=function(s,t){return tt(this).set(s,t).toDate()},Date.prototype.startOf=function(s){return tt(this).startOf(s).toDate()}}function he(){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 pe{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(t){this.onResizeCallbacks.add(t)}offResizeChange(t){this.onResizeCallbacks.delete(t)}onResize=()=>{typeof window>"u"||(this.emitTimeoutId&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null},this.duplicateThresholdMs))}}L.BreakPointHelper=pt,L.BreakPoints=mt,L.BrowserHelper=X,L.BrowserService=pe,L.BrowserType=H,L.CsvHelper=Kt,L.EnumHelper=Gt,L.FileHelper=Ht,L.LocalStorageHelper=yt,L.LoggerHelper=W,L.LoggerType=gt,L.ScreenHelper=bt,L.TokenHelper=ne,L.WindowResizeHelper=U,L.copyToClipboard=Pt,L.initArrayExtensions=ie,L.initDateExtensions=de,L.initStringExtensions=he,L.saveAs=Tt,L.sortHelper=It,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oardi/ts-utils",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "description": "utility services, types",
5
5
  "main": "index.cjs.js",
6
6
  "module": "index.es.js",