X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fdist%2Fen-US%2Fmain.040e98aeea20ed40.js;fp=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fdist%2Fen-US%2Fmain.040e98aeea20ed40.js;h=eb424a184f70aa5953897e7af7218e8dce275c0b;hb=1e59de90020f1d8d374046ef9cca56ccd4e806e2;hp=0000000000000000000000000000000000000000;hpb=bd41e436e25044e8e83156060a37c23cb661c364;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.040e98aeea20ed40.js b/ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.040e98aeea20ed40.js new file mode 100644 index 000000000..eb424a184 --- /dev/null +++ b/ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.040e98aeea20ed40.js @@ -0,0 +1,3 @@ +var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"en-US"}); +"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en-us-posix"]=["en-US-POSIX",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],u,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","0/00","INF","NaN",":"],["0.######","0%","\xA4\xA00.00","0.000000E+000"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; +var Wm=Math.pow;(self.webpackChunkceph_dashboard=self.webpackChunkceph_dashboard||[]).push([[179],{43155:(v,b)=>{"use strict";b.N=void 0;var r=/^([^\w]*)(javascript|data|vbscript)/im,a=/&#(\w+)(^\w|;)?/g,f=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,u=/^([^:]+):/gm,e=[".","/"];b.N=function T(M){var w=function g(M){return M.replace(a,function(w,R){return String.fromCharCode(R)})}(M||"").replace(f,"").trim();if(!w)return"about:blank";if(function p(M){return e.indexOf(M[0])>-1}(w))return w;var R=w.match(u);return R&&r.test(R[0])?"about:blank":w}},62946:(v,b,i)=>{"use strict";i.d(b,{iM:()=>Of,qr:()=>lm,xc:()=>lv});var r=i(89724),a=i(11048),f=function(F,J){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,Te){B.__proto__=Te}||function(B,Te){for(var ft in Te)Te.hasOwnProperty(ft)&&(B[ft]=Te[ft])})(F,J)};function u(F,J){function B(){this.constructor=F}f(F,J),F.prototype=null===J?Object.create(J):(B.prototype=J.prototype,new B)}var e=function(){return e=Object.assign||function(J){for(var B,Te=1,ft=arguments.length;Te0)&&!(ft=Te.next()).done;)Zt.push(ft.value)}catch(xr){rr={error:xr}}finally{try{ft&&!ft.done&&(B=Te.return)&&B.call(Te)}finally{if(rr)throw rr.error}}return Zt}function g(){for(var F=[],J=0;J2&&et("box");var B=zn(J);return new ao(F,ri(B),B.name,!0,B.equals)},shallowBox:function(F,J){return arguments.length>2&&et("shallowBox"),Wn.box(F,{name:J,deep:!1})},array:function(F,J){arguments.length>2&&et("array");var B=zn(J);return new tc(F,ri(B),B.name)},shallowArray:function(F,J){return arguments.length>2&&et("shallowArray"),Wn.array(F,{name:J,deep:!1})},map:function(F,J){arguments.length>2&&et("map");var B=zn(J);return new Io(F,ri(B),B.name)},shallowMap:function(F,J){return arguments.length>2&&et("shallowMap"),Wn.map(F,{name:J,deep:!1})},set:function(F,J){arguments.length>2&&et("set");var B=zn(J);return new De(F,ri(B),B.name)},object:function(F,J,B){"string"==typeof arguments[1]&&et("object");var Te=zn(B);return _c({},F,J,Te)},shallowObject:function(F,J){return"string"==typeof arguments[1]&&et("shallowObject"),Wn.object(F,{},{name:J,deep:!1})},ref:vr,shallow:ui,deep:Gi,struct:Ji},Wn=function mn(F,J,B){if("string"==typeof arguments[1])return Gi.apply(null,arguments);if(Kn(F))return F;var Te=fe(F)?Wn.object(F,J,B):Array.isArray(F)?Wn.array(F,J):Oe(F)?Wn.map(F,J):Tt(F)?Wn.set(F,J):F;if(Te!==F)return Te;j(!1)};function et(F){j("Expected one or two arguments to observable."+F+". Did you accidentally try to use observable."+F+" as decorator?")}Object.keys(Rn).forEach(function(F){return Wn[F]=Rn[F]});var Le=ei(!1,function(F,J,B,Te,ft){!function Pn(F,J,B){var Te=Ht(F);B.name=Te.name+"."+J,B.context=F,Te.values[J]=new Eo(B),Object.defineProperty(F,J,function Vi(F){return ai[F]||(ai[F]={configurable:Or.computedConfigurable,enumerable:!1,get:function(){return Ci(this).read(this,F)},set:function(J){Ci(this).write(this,F,J)}})}(J))}(F,J,e({get:B.get,set:B.set},ft[0]||{}))}),Re=Le({equals:Br.structural}),Se=function(J,B,Te){if("string"==typeof B||null!==J&&"object"==typeof J&&1===arguments.length)return Le.apply(null,arguments);var ft="object"==typeof B?B:{};return ft.get=J,ft.set="function"==typeof B?B:ft.set,ft.name=ft.name||J.name||"",new Eo(ft)};Se.struct=Re;var dt=(()=>{return(F=dt||(dt={}))[F.NOT_TRACKING=-1]="NOT_TRACKING",F[F.UP_TO_DATE=0]="UP_TO_DATE",F[F.POSSIBLY_STALE=1]="POSSIBLY_STALE",F[F.STALE=2]="STALE",dt;var F})(),st=(()=>{return(F=st||(st={}))[F.NONE=0]="NONE",F[F.LOG=1]="LOG",F[F.BREAK=2]="BREAK",st;var F})(),nn=function F(J){this.cause=J};function Fe(F){return F instanceof nn}function Lr(F){switch(F.dependenciesState){case dt.UP_TO_DATE:return!1;case dt.NOT_TRACKING:case dt.STALE:return!0;case dt.POSSIBLY_STALE:for(var J=yn(),B=F.observing,Te=B.length,ft=0;ft0;Or.computationDepth>0&&J&&j(!1),!Or.allowStateChanges&&(J||"strict"===Or.enforceActions)&&j(!1)}function Et(F,J,B){var Te=xi(!0);Uo(F),F.newObserving=new Array(F.observing.length+100),F.unboundDepsCount=0,F.runId=++Or.runId;var Zt,ft=Or.trackingDerivation;if(Or.trackingDerivation=F,!0===Or.disableErrorBoundaries)Zt=J.call(B);else try{Zt=J.call(B)}catch(rr){Zt=new nn(rr)}return Or.trackingDerivation=ft,function _t(F){for(var J=F.observing,B=F.observing=F.newObserving,Te=dt.UP_TO_DATE,ft=0,Zt=F.unboundDepsCount,rr=0;rrTe&&(Te=xr.dependenciesState);for(B.length=ft,F.newObserving=null,Zt=J.length;Zt--;)0===(xr=J[Zt]).diffValue&&go(xr,F),xr.diffValue=0;for(;ft--;){var xr;1===(xr=B[ft]).diffValue&&(xr.diffValue=0,ro(xr,F))}Te!==dt.UP_TO_DATE&&(F.dependenciesState=Te,F.onBecomeStale())}(F),yi(Te),Zt}function yt(F){var J=F.observing;F.observing=[];for(var B=J.length;B--;)go(J[B],F);F.dependenciesState=dt.NOT_TRACKING}function Vt(F){var J=yn(),B=F();return Cr(J),B}function yn(){var F=Or.trackingDerivation;return Or.trackingDerivation=null,F}function Cr(F){Or.trackingDerivation=F}function xi(F){var J=Or.allowStateReads;return Or.allowStateReads=F,J}function yi(F){Or.allowStateReads=F}function Uo(F){if(F.dependenciesState!==dt.UP_TO_DATE){F.dependenciesState=dt.UP_TO_DATE;for(var J=F.observing,B=J.length;B--;)J[B].lowestObserverState=dt.UP_TO_DATE}}var Qo=0,lo=1;function Ri(F,J){var B=function(){return ko(F,J,this,arguments)};return B.isMobxAction=!0,B}function ko(F,J,B,Te){var ft=function Xo(F,J,B){var Te=Gs()&&!!F,ft=0;if(Te){ft=Date.now();var Zt=B&&B.length||0,rr=new Array(Zt);if(Zt>0)for(var xr=0;xr0&&!F.__mobxGlobals&&(or=!1),F.__mobxGlobals&&F.__mobxGlobals.version!==(new ua).version&&(or=!1),or?F.__mobxGlobals?(F.__mobxInstanceCount+=1,F.__mobxGlobals.UNCHANGED||(F.__mobxGlobals.UNCHANGED={}),F.__mobxGlobals):(F.__mobxInstanceCount=1,F.__mobxGlobals=new ua):(setTimeout(function(){j("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new ua));function ro(F,J){var B=F.observers.length;B&&(F.observersIndexes[J.__mapid]=B),F.observers[B]=J,F.lowestObserverState>J.dependenciesState&&(F.lowestObserverState=J.dependenciesState)}function go(F,J){if(1===F.observers.length)F.observers.length=0,Ro(F);else{var B=F.observers,Te=F.observersIndexes,ft=B.pop();if(ft!==J){var Zt=Te[J.__mapid]||0;Zt?Te[ft.__mapid]=Zt:delete Te[ft.__mapid],B[Zt]=ft}delete Te[J.__mapid]}}function Ro(F){!1===F.isPendingUnobservation&&(F.isPendingUnobservation=!0,Or.pendingUnobservations.push(F))}function js(){Or.inBatch++}function ds(){if(0==--Or.inBatch){ys();for(var F=Or.pendingUnobservations,J=0;J0&&Ro(F),!1)}function sa(F,J){if(console.log("[mobx.trace] '"+F.name+"' is invalidated due to a change in: '"+J.name+"'"),F.isTracing===st.BREAK){var B=[];Ra(function Cl(F,J){return mc(br(F,J))}(F),B,1),new Function("debugger;\n/*\nTracing '"+F.name+"'\n\nYou are entering this break point because derivation '"+F.name+"' is being traced and '"+J.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(F instanceof Eo?F.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+B.join("\n")+"\n*/\n ")()}}function Ra(F,J,B){J.length>=1e3?J.push("(and many more)"):(J.push(""+new Array(B).join("\t")+F.name),F.dependencies&&F.dependencies.forEach(function(Te){return Ra(Te,J,B+1)}))}var pl=function(){function F(J,B,Te,ft){void 0===J&&(J="Reaction@"+W()),void 0===ft&&(ft=!1),this.name=J,this.onInvalidate=B,this.errorHandler=Te,this.requiresObservable=ft,this.observing=[],this.newObserving=[],this.dependenciesState=dt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+W(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=st.NONE}return F.prototype.onBecomeStale=function(){this.schedule()},F.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Or.pendingReactions.push(this),ys())},F.prototype.isScheduled=function(){return this._isScheduled},F.prototype.runReaction=function(){if(!this.isDisposed){if(js(),this._isScheduled=!1,Lr(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Gs()&&$o({name:this.name,type:"scheduled-reaction"})}catch(J){this.reportExceptionInDerivation(J)}}ds()}},F.prototype.track=function(J){js();var Te,B=Gs();B&&(Te=Date.now(),To({name:this.name,type:"reaction"})),this._isRunning=!0;var ft=Et(this,J,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&yt(this),Fe(ft)&&this.reportExceptionInDerivation(ft.cause),B&&hs({time:Date.now()-Te}),ds()},F.prototype.reportExceptionInDerivation=function(J){var B=this;if(this.errorHandler)this.errorHandler(J,this);else{if(Or.disableErrorBoundaries)throw J;var Te="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Or.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(Te,J),Gs()&&$o({type:"error",name:this.name,message:Te,error:""+J}),Or.globalReactionErrorHandlers.forEach(function(ft){return ft(J,B)})}},F.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(js(),yt(this),ds()))},F.prototype.getDisposer=function(){var J=this.dispose.bind(this);return J.$mobx=this,J},F.prototype.toString=function(){return"Reaction["+this.name+"]"},F.prototype.trace=function(J){void 0===J&&(J=!1),function Jo(){for(var F=[],J=0;J0||Or.isRunningReactions||function(F){F()}(Wa)}function Wa(){Or.isRunningReactions=!0;for(var F=Or.pendingReactions,J=0;F.length>0;){100==++J&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+F[0]),F.splice(0));for(var B=F.splice(0),Te=0,ft=B.length;Te",J):2===arguments.length&&"function"==typeof B?Ri(J,B):1===arguments.length&&"string"==typeof J?Ki(J):!0!==ft?Ki(B).apply(null,arguments):void(J[B]=Ri(J.name||B,Te.value))};function hn(F,J,B){ce(F,J,Ri(J,B.bind(F)))}function ii(F,J){void 0===J&&(J=w);var ft,B=J&&J.name||F.name||"Autorun@"+W();if(J.scheduler||J.delay){var Zt=ki(J),rr=!1;ft=new pl(B,function(){rr||(rr=!0,Zt(function(){rr=!1,ft.isDisposed||ft.track(xr)}))},J.onError,J.requiresObservable)}else ft=new pl(B,function(){this.track(xr)},J.onError,J.requiresObservable);function xr(){F(ft)}return ft.schedule(),ft.getDisposer()}te.bound=function pn(F,J,B,Te){return!0===Te?(hn(F,J,B.value),null):B?{configurable:!0,enumerable:!1,get:function(){return hn(this,J,B.value||B.initializer.call(this)),this[J]},set:kr}:{enumerable:!1,configurable:!0,set:function(ft){hn(this,J,ft)},get:function(){}}};var Oi=function(F){return F()};function ki(F){return F.scheduler?F.scheduler:F.delay?function(J){return setTimeout(J,F.delay)}:Oi}function _s(F,J,B){void 0===B&&(B=w),"boolean"==typeof B&&(B={fireImmediately:B});var ns,Te=B.name||"Reaction@"+W(),ft=te(Te,B.onError?function Vo(F,J){return function(){try{return J.apply(this,arguments)}catch(B){F.call(this,B)}}}(B.onError,J):J),Zt=!B.scheduler&&!B.delay,rr=ki(B),xr=!0,hi=!1,zo=B.compareStructural?Br.structural:B.equals||Br.default,As=new pl(Te,function(){xr||Zt?ml():hi||(hi=!0,rr(ml))},B.onError,B.requiresObservable);function ml(){if(hi=!1,!As.isDisposed){var au=!1;As.track(function(){var Xl=F(As);au=xr||!zo(ns,Xl),ns=Xl}),xr&&B.fireImmediately&&ft(ns,As),!xr&&!0===au&&ft(ns,As),xr&&(xr=!1)}}return As.schedule(),As.getDisposer()}function Ks(F,J,B){return hl("onBecomeUnobserved",F,J,B)}function hl(F,J,B,Te){var ft="function"==typeof Te?br(J,B):br(J),Zt="function"==typeof Te?Te:B,rr=ft[F];return"function"!=typeof rr?j(!1):(ft[F]=function(){rr.call(this),Zt.call(this)},function(){ft[F]=rr})}function _c(F,J,B,Te){var Zt=(Te=zn(Te)).defaultDecorator||(!1===Te.deep?vr:Gi);_r(F),Ht(F,Te.name,Zt.enhancer),js();try{for(var ft in J){var rr=Object.getOwnPropertyDescriptor(J,ft),hi=(B&&ft in B?B[ft]:rr.get?Le:Zt)(F,ft,rr,!0);hi&&Object.defineProperty(F,ft,hi)}}finally{ds()}return F}function mc(F){var J={name:F.name};return F.observing&&F.observing.length>0&&(J.dependencies=function ae(F){var J=[];return F.forEach(function(B){-1===J.indexOf(B)&&J.push(B)}),J}(F.observing).map(mc)),J}function Kt(F,J){if(null==F)return!1;if(void 0!==J){if(Rr(F)){var B=F.$mobx;return B.values&&!!B.values[J]}return!1}return Rr(F)||!!F.$mobx||Gt(F)||Is(F)||mo(F)}function Kn(F){return 1!==arguments.length&&j(!1),Kt(F)}function ja(F){switch(F.length){case 0:return Or.trackingDerivation;case 1:return br(F[0]);case 2:return br(F[0],F[1])}}function El(F,J){void 0===J&&(J=void 0),js();try{return F.apply(J)}finally{ds()}}function Yi(F){return void 0!==F.interceptors&&F.interceptors.length>0}function aa(F,J){var B=F.interceptors||(F.interceptors=[]);return B.push(J),H(function(){var Te=B.indexOf(J);-1!==Te&&B.splice(Te,1)})}function Fa(F,J){var B=yn();try{var Te=F.interceptors;if(Te)for(var ft=0,Zt=Te.length;ft0}function ec(F,J){var B=F.changeListeners||(F.changeListeners=[]);return B.push(J),H(function(){var Te=B.indexOf(J);-1!==Te&&B.splice(Te,1)})}function Sl(F,J){var B=yn(),Te=F.changeListeners;if(Te){for(var ft=0,Zt=(Te=Te.slice()).length;ft0?J.map(this.dehancer):J},F.prototype.intercept=function(J){return aa(this,J)},F.prototype.observe=function(J,B){return void 0===B&&(B=!1),B&&J({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),ec(this,J)},F.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},F.prototype.setArrayLength=function(J){if("number"!=typeof J||J<0)throw new Error("[mobx.array] Out of range: "+J);var B=this.values.length;if(J!==B)if(J>B){for(var Te=new Array(J-B),ft=0;ft0&&J+B+1>iu&&Uu(J+B+1)},F.prototype.spliceWithArray=function(J,B,Te){var ft=this;Ut(this.atom);var Zt=this.values.length;if(void 0===J?J=0:J>Zt?J=Zt:J<0&&(J=Math.max(0,Zt+J)),B=1===arguments.length?Zt-J:null==B?0:Math.max(0,Math.min(B,Zt-J)),void 0===Te&&(Te=M),Yi(this)){var rr=Fa(this,{object:this.array,type:"splice",index:J,removedCount:B,added:Te});if(!rr)return M;B=rr.removedCount,Te=rr.added}var xr=(Te=0===Te.length?Te:Te.map(function(ns){return ft.enhancer(ns,void 0)})).length-B;this.updateArrayLength(Zt,xr);var hi=this.spliceItemsIntoValues(J,B,Te);return(0!==B||0!==Te.length)&&this.notifyArraySplice(J,Te,hi),this.dehanceValues(hi)},F.prototype.spliceItemsIntoValues=function(J,B,Te){var ft;if(Te.length<1e4)return(ft=this.values).splice.apply(ft,g([J,B],Te));var Zt=this.values.slice(J,J+B);return this.values=this.values.slice(0,J).concat(Te,this.values.slice(J+B)),Zt},F.prototype.notifyArrayChildUpdate=function(J,B,Te){var ft=!this.owned&&Gs(),Zt=Es(this),rr=Zt||ft?{object:this.array,type:"update",index:J,newValue:B,oldValue:Te}:null;ft&&To(e({},rr,{name:this.atom.name})),this.atom.reportChanged(),Zt&&Sl(this,rr),ft&&hs()},F.prototype.notifyArraySplice=function(J,B,Te){var ft=!this.owned&&Gs(),Zt=Es(this),rr=Zt||ft?{object:this.array,type:"splice",index:J,removed:Te,added:B,removedCount:Te.length,addedCount:B.length}:null;ft&&To(e({},rr,{name:this.atom.name})),this.atom.reportChanged(),Zt&&Sl(this,rr),ft&&hs()},F}(),tc=function(F){function J(B,Te,ft,Zt){void 0===ft&&(ft="ObservableArray@"+W()),void 0===Zt&&(Zt=!1);var rr=F.call(this)||this,xr=new td(ft,Te,rr,Zt);if(Be(rr,"$mobx",xr),B&&B.length){var hi=kn(!0);rr.spliceWithArray(0,0,B),nr(hi)}return Eu&&Object.defineProperty(xr.array,"0",uu),rr}return u(J,F),J.prototype.intercept=function(B){return this.$mobx.intercept(B)},J.prototype.observe=function(B,Te){return void 0===Te&&(Te=!1),this.$mobx.observe(B,Te)},J.prototype.clear=function(){return this.splice(0)},J.prototype.concat=function(){for(var B=[],Te=0;Te-1&&(this.splice(Te,1),!0)},J.prototype.move=function(B,Te){function ft(xr){if(xr<0)throw new Error("[mobx.array] Index out of bounds: "+xr+" is negative");var hi=this.$mobx.values.length;if(xr>=hi)throw new Error("[mobx.array] Index out of bounds: "+xr+" is not smaller than "+hi)}if(ft.call(this,B),ft.call(this,Te),B!==Te){var rr,Zt=this.$mobx.values;rr=B0){if(++J>=800)return arguments[0]}else J=0;return F.apply(void 0,arguments)}}(ou);const ge=Ae,Ot=function ht(F,J){return ge(Mo(F,J,La),F+"")};var sn=i(15131),Un=i(2951),gr=i(66224);const Lo=function gi(F,J,B){(void 0!==B&&!(0,gr.Z)(F[J],B)||void 0===B&&!(J in F))&&(0,Un.Z)(F,J,B)};var ha=function Ta(F){return function(J,B,Te){for(var ft=-1,Zt=Object(J),rr=Te(J),xr=rr.length;xr--;){var hi=rr[F?xr:++ft];if(!1===B(Zt[hi],hi,Zt))break}return J}}();const Ca=ha;var Nu=i(27672),cc=i(1044),ka=i(36889),rl=i(42542),vc=i(40591),yc=i(34654),ju=i(18402),Ul=i(6539);var Fc=i(25014),cu=i(58209),Ma=i(4214),ll=i(98286),Ll=i(11595),id=Function.prototype.toString,Al=Object.prototype.hasOwnProperty,kl=id.call(Object);const ul=function Gu(F){if(!(0,Ul.Z)(F)||"[object Object]"!=(0,ll.Z)(F))return!1;var J=(0,Ll.Z)(F);if(null===J)return!0;var B=Al.call(J,"constructor")&&J.constructor;return"function"==typeof B&&B instanceof B&&id.call(B)==kl};var Cu=i(14803);const Ec=function cn(F,J){if(("constructor"!==J||"function"!=typeof F[J])&&"__proto__"!=J)return F[J]};var Iu=i(57640),qa=i(34673);const vd=function Bc(F,J,B,Te,ft,Zt,rr){var xr=Ec(F,B),hi=Ec(J,B),ns=rr.get(hi);if(ns)Lo(F,B,ns);else{var zo=Zt?Zt(xr,hi,B+"",F,J,rr):void 0,As=void 0===zo;if(As){var ml=(0,yc.Z)(hi),au=!ml&&(0,Fc.Z)(hi),Xl=!ml&&!au&&(0,Cu.Z)(hi);zo=hi,ml||au||Xl?(0,yc.Z)(xr)?zo=xr:function nc(F){return(0,Ul.Z)(F)&&(0,ju.Z)(F)}(xr)?zo=(0,ka.Z)(xr):au?(As=!1,zo=(0,Nu.Z)(hi,!0)):Xl?(As=!1,zo=(0,cc.Z)(hi,!0)):zo=[]:ul(hi)||(0,vc.Z)(hi)?(zo=xr,(0,vc.Z)(xr)?zo=function cl(F){return(0,Iu.Z)(F,(0,qa.Z)(F))}(xr):(!(0,Ma.Z)(xr)||(0,cu.Z)(xr))&&(zo=(0,rl.Z)(hi))):As=!1}As&&(rr.set(hi,zo),ft(zo,hi,Te,Zt,rr),rr.delete(hi)),Lo(F,B,zo)}},yd=function dc(F,J,B,Te,ft){F!==J&&Ca(J,function(Zt,rr){if(ft||(ft=new sn.Z),(0,Ma.Z)(Zt))vd(F,J,rr,B,dc,Te,ft);else{var xr=Te?Te(Ec(F,rr),Zt,rr+"",F,J,ft):void 0;void 0===xr&&(xr=Zt),Lo(F,rr,xr)}},qa.Z)},vf=function $p(F,J,B,Te,ft,Zt){return(0,Ma.Z)(F)&&(0,Ma.Z)(J)&&(Zt.set(J,F),yd(F,J,void 0,$p,Zt),Zt.delete(J)),F};var ap=i(28078);const fc=function Vu(F,J,B){if(!(0,Ma.Z)(B))return!1;var Te=typeof J;return!!("number"==Te?(0,ju.Z)(B)&&(0,ap.Z)(J,B.length):"string"==Te&&J in B)&&(0,gr.Z)(B[J],F)};var yp=function Wd(F){return Ot(function(J,B){var Te=-1,ft=B.length,Zt=ft>1?B[ft-1]:void 0,rr=ft>2?B[2]:void 0;for(Zt=F.length>3&&"function"==typeof Zt?(ft--,Zt):void 0,rr&&fc(B[0],B[1],rr)&&(Zt=ft<3?void 0:Zt,ft=1),J=Object(J);++Teft?0:ft+J),(B=B>ft?ft:B)<0&&(B+=ft),ft=J>B?0:B-J>>>0,J>>>=0;for(var Zt=Array(ft);++Te0&&B(xr)?J>1?wa(xr,J-1,B,Te,ft):(0,qs.Z)(ft,xr):Te||(ft[ft.length]=xr)}return ft},Va=function _u(F){return null!=F&&F.length?Gl(F,1):[]},ku=function Mu(F){return ge(Mo(F,void 0,Va),F+"")};var xc=i(23359),K=ku(function(F,J){var B={};if(null==F)return B;var Te=!1;J=Wc(J,function(Zt){return Zt=P(Zt,F),Te||(Te=Zt.length>1),Zt}),(0,Iu.Z)(F,(0,xc.Z)(F),B),Te&&(B=(0,St.Z)(B,7,Zs));for(var ft=J.length;ft--;)is(B,J[ft]);return B});const be=K,Ai=function Dr(F,J){for(var B=-1,Te=null==F?0:F.length;++Bxr))return!1;var ns=Zt.get(F),zo=Zt.get(J);if(ns&&zo)return ns==J&&zo==F;var As=-1,ml=!0,au=2&B?new yf:void 0;for(Zt.set(F,J),Zt.set(J,F);++As-1?ft[Zt?J[rr]:rr]:void 0}}(function Kf(F,J,B){var Te=null==F?0:F.length;if(!Te)return-1;var ft=null==B?0:Od(B);return ft<0&&(ft=Vp(Te+ft,0)),dp(F,Wf(J),ft)});const Ap=i_,qf=function sf(F){return"string"==typeof F||!(0,yc.Z)(F)&&(0,Ul.Z)(F)&&"[object String]"==(0,ll.Z)(F)};var zp=i(40309);const ep=function(){return zp.Z.Date.now()};var E_=Math.max,nm=Math.min;const S_=function $_(F,J,B){var Te=!0,ft=!0;if("function"!=typeof F)throw new TypeError("Expected a function");return(0,Ma.Z)(B)&&(Te="leading"in B?!!B.leading:Te,ft="trailing"in B?!!B.trailing:ft),function Oh(F,J,B){var Te,ft,Zt,rr,xr,hi,ns=0,zo=!1,As=!1,ml=!0;if("function"!=typeof F)throw new TypeError("Expected a function");function au(dd){var _p=Te,Wu=ft;return Te=ft=void 0,ns=dd,rr=F.apply(Wu,_p)}function Xl(dd){return ns=dd,xr=setTimeout(lf,J),zo?au(dd):rr}function Dd(dd){var _p=dd-hi;return void 0===hi||_p>=J||_p<0||As&&dd-ns>=Zt}function lf(){var dd=ep();if(Dd(dd))return cd(dd);xr=setTimeout(lf,function xu(dd){var hc=J-(dd-hi);return As?nm(hc,Zt-(dd-ns)):hc}(dd))}function cd(dd){return xr=void 0,ml&&Te?au(dd):(Te=ft=void 0,rr)}function uf(){var dd=ep(),_p=Dd(dd);if(Te=arguments,ft=this,hi=dd,_p){if(void 0===xr)return Xl(hi);if(As)return clearTimeout(xr),xr=setTimeout(lf,J),au(hi)}return void 0===xr&&(xr=setTimeout(lf,J)),rr}return J=fp(J)||0,(0,Ma.Z)(B)&&(zo=!!B.leading,Zt=(As="maxWait"in B)?E_(fp(B.maxWait)||0,J):Zt,ml="trailing"in B?!!B.trailing:ml),uf.cancel=function a_(){void 0!==xr&&clearTimeout(xr),ns=0,Te=hi=ft=xr=void 0},uf.flush=function G_(){return void 0===xr?rr:cd(ep())},uf}(F,J,{leading:Te,maxWait:J,trailing:ft})},H_=function Mf(F){return F!=F},T_=function Jp(F){return null==F?[]:function Rp(F,J){return Wc(J,function(B){return F[B]})}(F,(0,Td.Z)(F))};var Ad=Math.max;const Sm=function B_(F,J,B,Te){F=(0,ju.Z)(F)?F:T_(F),B=B&&!Te?Od(B):0;var ft=F.length;return B<0&&(B=Ad(ft+B,0)),qf(F)?B<=ft&&F.indexOf(J,B)>-1:!!ft&&function xp(F,J,B){return J==J?function tp(F,J,B){for(var Te=B-1,ft=F.length;++Te-1};var hp=i(15427);const Gc=function Ah(F,J,B,Te){if(!(0,Ma.Z)(F))return F;for(var ft=-1,Zt=(J=P(J,F)).length,rr=Zt-1,xr=F;null!=xr&&++ft{class F{constructor(B,Te){this.templateRef=B,this.viewContainer=Te,this.templateBindings={}}ngOnInit(){this.view=this.viewContainer.createEmbeddedView(this.templateRef),this.dispose&&this.dispose(),this.shouldDetach()&&this.view.detach(),this.autoDetect(this.view)}shouldDetach(){return this.treeMobxAutorun&&this.treeMobxAutorun.detach}autoDetect(B){this.dispose=ii(()=>B.detectChanges())}ngOnDestroy(){this.dispose&&this.dispose()}}return F.\u0275fac=function(B){return new(B||F)(r.Y36(r.Rgc),r.Y36(r.s_b))},F.\u0275dir=r.lG2({type:F,selectors:[["","treeMobxAutorun",""]],inputs:{treeMobxAutorun:"treeMobxAutorun"}}),F})();const Of={TOGGLE_ACTIVE:(F,J,B)=>J&&J.toggleActivated(),TOGGLE_ACTIVE_MULTI:(F,J,B)=>J&&J.toggleActivated(!0),TOGGLE_SELECTED:(F,J,B)=>J&&J.toggleSelected(),ACTIVATE:(F,J,B)=>J.setIsActive(!0),DEACTIVATE:(F,J,B)=>J.setIsActive(!1),SELECT:(F,J,B)=>J.setIsSelected(!0),DESELECT:(F,J,B)=>J.setIsSelected(!1),FOCUS:(F,J,B)=>J.focus(),TOGGLE_EXPANDED:(F,J,B)=>J.hasChildren&&J.toggleExpanded(),EXPAND:(F,J,B)=>J.expand(),COLLAPSE:(F,J,B)=>J.collapse(),DRILL_DOWN:(F,J,B)=>F.focusDrillDown(),DRILL_UP:(F,J,B)=>F.focusDrillUp(),NEXT_NODE:(F,J,B)=>F.focusNextNode(),PREVIOUS_NODE:(F,J,B)=>F.focusPreviousNode(),MOVE_NODE:(F,J,B,{from:Te,to:ft})=>{B.ctrlKey?F.copyNode(Te,ft):F.moveNode(Te,ft)}},Qm={mouse:{click:Of.TOGGLE_ACTIVE,dblClick:null,contextMenu:null,expanderClick:Of.TOGGLE_EXPANDED,checkboxClick:Of.TOGGLE_SELECTED,drop:Of.MOVE_NODE},keys:{39:Of.DRILL_DOWN,37:Of.DRILL_UP,40:Of.NEXT_NODE,38:Of.PREVIOUS_NODE,32:Of.TOGGLE_ACTIVE,13:Of.TOGGLE_ACTIVE}};class bg{constructor(J={}){this.options=J,this.actionMapping=od({},this.options.actionMapping,Qm),J.rtl&&(this.actionMapping.keys[39]=nt(J,["actionMapping","keys",39])||Of.DRILL_UP,this.actionMapping.keys[37]=nt(J,["actionMapping","keys",37])||Of.DRILL_DOWN)}get hasChildrenField(){return this.options.hasChildrenField||"hasChildren"}get childrenField(){return this.options.childrenField||"children"}get displayField(){return this.options.displayField||"name"}get idField(){return this.options.idField||"id"}get isExpandedField(){return this.options.isExpandedField||"isExpanded"}get getChildren(){return this.options.getChildren}get levelPadding(){return this.options.levelPadding||0}get useVirtualScroll(){return this.options.useVirtualScroll}get animateExpand(){return this.options.animateExpand}get animateSpeed(){return this.options.animateSpeed||1}get animateAcceleration(){return this.options.animateAcceleration||1.2}get scrollOnActivate(){return void 0===this.options.scrollOnActivate||this.options.scrollOnActivate}get rtl(){return!!this.options.rtl}get rootId(){return this.options.rootId}get useCheckbox(){return this.options.useCheckbox}get useTriState(){return void 0===this.options.useTriState||this.options.useTriState}get scrollContainer(){return this.options.scrollContainer}get allowDragoverStyling(){return void 0===this.options.allowDragoverStyling||this.options.allowDragoverStyling}getNodeClone(J){return this.options.getNodeClone?this.options.getNodeClone(J):be(Object.assign({},J.data),["id"])}allowDrop(J,B,Te){return this.options.allowDrop instanceof Function?this.options.allowDrop(J,B,Te):void 0===this.options.allowDrop||this.options.allowDrop}allowDrag(J){return this.options.allowDrag instanceof Function?this.options.allowDrag(J):this.options.allowDrag}nodeClass(J){return this.options.nodeClass?this.options.nodeClass(J):""}nodeHeight(J){if(J.data.virtual)return 0;let B=this.options.nodeHeight||22;return"function"==typeof B&&(B=B(J)),B+(0===J.index?2:1)*this.dropSlotHeight}get dropSlotHeight(){return function wt(F){return"number"==typeof F||(0,Ul.Z)(F)&&"[object Number]"==(0,ll.Z)(F)}(this.options.dropSlotHeight)?this.options.dropSlotHeight:2}}const Qc={toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",initialized:"initialized",updateData:"updateData",moveNode:"moveNode",copyNode:"copyNode",event:"event",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",stateChange:"stateChange"};var Pc=function(F,J,B,Te){var rr,ft=arguments.length,Zt=ft<3?J:null===Te?Te=Object.getOwnPropertyDescriptor(J,B):Te;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Zt=Reflect.decorate(F,J,B,Te);else for(var xr=F.length-1;xr>=0;xr--)(rr=F[xr])&&(Zt=(ft<3?rr(Zt):ft>3?rr(J,B,Zt):rr(J,B))||Zt);return ft>3&&Zt&&Object.defineProperty(J,B,Zt),Zt},su=function(F,J){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,J)};let Sg=(()=>{class F{constructor(B,Te,ft,Zt){this.data=B,this.parent=Te,this.treeModel=ft,this.position=0,this.allowDrop=(rr,xr)=>this.options.allowDrop(rr,{parent:this,index:0},xr),this.allowDragoverStyling=()=>this.options.allowDragoverStyling,null==this.id&&(this.id=function am(){return Math.floor(1e13*Math.random())}()),this.index=Zt,this.getField("children")&&this._initChildren(),this.autoLoadChildren()}get isHidden(){return this.treeModel.isHidden(this)}get isExpanded(){return this.treeModel.isExpanded(this)}get isActive(){return this.treeModel.isActive(this)}get isFocused(){return this.treeModel.isNodeFocused(this)}get isSelected(){return this.isSelectable()?this.treeModel.isSelected(this):function Ts(F,J,B){var Te=(0,yc.Z)(F)?Ai:$u;return B&&fc(F,J,B)&&(J=void 0),Te(F,Wf(J))}(this.children,B=>B.isSelected)}get isAllSelected(){return this.isSelectable()?this.treeModel.isSelected(this):function Mp(F,J,B){var Te=(0,yc.Z)(F)?Hu:Lf;return B&&fc(F,J,B)&&(J=void 0),Te(F,Wf(J))}(this.children,B=>B.isAllSelected)}get isPartiallySelected(){return this.isSelected&&!this.isAllSelected}get level(){return this.parent?this.parent.level+1:0}get path(){return this.parent?[...this.parent.path,this.id]:[]}get elementRef(){throw"Element Ref is no longer supported since introducing virtual scroll\n\n You may use a template to obtain a reference to the element"}get originalNode(){return this._originalNode}get hasChildren(){return!!(this.getField("hasChildren")||this.children&&this.children.length>0)}get isCollapsed(){return!this.isExpanded}get isLeaf(){return!this.hasChildren}get isRoot(){return this.parent.data.virtual}get realParent(){return this.isRoot?null:this.parent}get options(){return this.treeModel.options}fireEvent(B){this.treeModel.fireEvent(B)}get displayField(){return this.getField("display")}get id(){return this.getField("id")}set id(B){this.setField("id",B)}getField(B){return this.data[this.options[`${B}Field`]]}setField(B,Te){this.data[this.options[`${B}Field`]]=Te}_findAdjacentSibling(B,Te=!1){const ft=this._getParentsChildren(Te),Zt=ft.indexOf(this);return ft.length>Zt+B?ft[Zt+B]:null}findNextSibling(B=!1){return this._findAdjacentSibling(1,B)}findPreviousSibling(B=!1){return this._findAdjacentSibling(-1,B)}getVisibleChildren(){return this.visibleChildren}get visibleChildren(){return(this.children||[]).filter(B=>!B.isHidden)}getFirstChild(B=!1){return tf((B?this.visibleChildren:this.children)||[])}getLastChild(B=!1){return fn((B?this.visibleChildren:this.children)||[])}findNextNode(B=!0,Te=!1){return B&&this.isExpanded&&this.getFirstChild(Te)||this.findNextSibling(Te)||this.parent&&this.parent.findNextNode(!1,Te)}findPreviousNode(B=!1){let Te=this.findPreviousSibling(B);return Te?Te._getLastOpenDescendant(B):this.realParent}_getLastOpenDescendant(B=!1){const Te=this.getLastChild(B);return this.isCollapsed||!Te?this:Te._getLastOpenDescendant(B)}_getParentsChildren(B=!1){return this.parent&&(B?this.parent.getVisibleChildren():this.parent.children)||[]}getIndexInParent(B=!1){return this._getParentsChildren(B).indexOf(this)}isDescendantOf(B){return this===B||this.parent&&this.parent.isDescendantOf(B)}getNodePadding(){return this.options.levelPadding*(this.level-1)+"px"}getClass(){return[this.options.nodeClass(this),`tree-node-level-${this.level}`].join(" ")}onDrop(B){this.mouseAction("drop",B.event,{from:B.element,to:{parent:this,index:0,dropOnNode:!0}})}allowDrag(){return this.options.allowDrag(this)}loadNodeChildren(){return this.options.getChildren?Promise.resolve(this.options.getChildren(this)).then(B=>{B&&(this.setField("children",B),this._initChildren(),this.options.useTriState&&this.treeModel.isSelected(this)&&this.setIsSelected(!0),this.children.forEach(Te=>{Te.getField("isExpanded")&&Te.hasChildren&&Te.expand()}))}).then(()=>{this.fireEvent({eventName:Qc.loadNodeChildren,node:this})}):Promise.resolve()}expand(){return this.isExpanded||this.toggleExpanded(),this}collapse(){return this.isExpanded&&this.toggleExpanded(),this}doForAll(B){Promise.resolve(B(this)).then(()=>{this.children&&this.children.forEach(Te=>Te.doForAll(B))})}expandAll(){this.doForAll(B=>B.expand())}collapseAll(){this.doForAll(B=>B.collapse())}ensureVisible(){return this.realParent&&(this.realParent.expand(),this.realParent.ensureVisible()),this}toggleExpanded(){return this.setIsExpanded(!this.isExpanded),this}setIsExpanded(B){return this.hasChildren&&this.treeModel.setExpandedNode(this,B),this}autoLoadChildren(){this.handler=_s(()=>this.isExpanded,B=>{!this.children&&this.hasChildren&&B&&this.loadNodeChildren()},{fireImmediately:!0})}dispose(){this.children&&this.children.forEach(B=>B.dispose()),this.handler&&this.handler(),this.parent=null,this.children=null}setIsActive(B,Te=!1){return this.treeModel.setActiveNode(this,B,Te),B&&this.focus(this.options.scrollOnActivate),this}isSelectable(){return this.isLeaf||!this.children||!this.options.useTriState}setIsSelected(B){return this.isSelectable()?this.treeModel.setSelectedNode(this,B):this.visibleChildren.forEach(Te=>Te.setIsSelected(B)),this}toggleSelected(){return this.setIsSelected(!this.isSelected),this}toggleActivated(B=!1){return this.setIsActive(!this.isActive,B),this}setActiveAndVisible(B=!1){return this.setIsActive(!0,B).ensureVisible(),setTimeout(this.scrollIntoView.bind(this)),this}scrollIntoView(B=!1){this.treeModel.virtualScroll.scrollIntoView(this,B)}focus(B=!0){let Te=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(this),B&&this.scrollIntoView(),Te&&this.fireEvent({eventName:Qc.blur,node:Te}),this.fireEvent({eventName:Qc.focus,node:this}),this}blur(){let B=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(null),B&&this.fireEvent({eventName:Qc.blur,node:this}),this}setIsHidden(B){this.treeModel.setIsHidden(this,B)}hide(){this.setIsHidden(!0)}show(){this.setIsHidden(!1)}mouseAction(B,Te,ft=null){this.treeModel.setFocus(!0);const rr=this.options.actionMapping.mouse[B];rr&&rr(this.treeModel,this,Te,ft)}getSelfHeight(){return this.options.nodeHeight(this)}_initChildren(){this.children=this.getField("children").map((B,Te)=>new F(B,this,this.treeModel,Te))}}return Pc([Se,su("design:type",Object),su("design:paramtypes",[])],F.prototype,"isHidden",null),Pc([Se,su("design:type",Object),su("design:paramtypes",[])],F.prototype,"isExpanded",null),Pc([Se,su("design:type",Object),su("design:paramtypes",[])],F.prototype,"isActive",null),Pc([Se,su("design:type",Object),su("design:paramtypes",[])],F.prototype,"isFocused",null),Pc([Se,su("design:type",Object),su("design:paramtypes",[])],F.prototype,"isSelected",null),Pc([Se,su("design:type",Object),su("design:paramtypes",[])],F.prototype,"isAllSelected",null),Pc([Se,su("design:type",Object),su("design:paramtypes",[])],F.prototype,"isPartiallySelected",null),Pc([Wn,su("design:type",Array)],F.prototype,"children",void 0),Pc([Wn,su("design:type",Number)],F.prototype,"index",void 0),Pc([Wn,su("design:type",Object)],F.prototype,"position",void 0),Pc([Wn,su("design:type",Number)],F.prototype,"height",void 0),Pc([Se,su("design:type",Number),su("design:paramtypes",[])],F.prototype,"level",null),Pc([Se,su("design:type",Array),su("design:paramtypes",[])],F.prototype,"path",null),Pc([Se,su("design:type",Object),su("design:paramtypes",[])],F.prototype,"visibleChildren",null),Pc([te,su("design:type",Function),su("design:paramtypes",[Object]),su("design:returntype",void 0)],F.prototype,"setIsSelected",null),Pc([te,su("design:type",Function),su("design:paramtypes",[]),su("design:returntype",void 0)],F.prototype,"_initChildren",null),F})();var Vl=function(F,J,B,Te){var rr,ft=arguments.length,Zt=ft<3?J:null===Te?Te=Object.getOwnPropertyDescriptor(J,B):Te;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Zt=Reflect.decorate(F,J,B,Te);else for(var xr=F.length-1;xr>=0;xr--)(rr=F[xr])&&(Zt=(ft<3?rr(Zt):ft>3?rr(J,B,Zt):rr(J,B))||Zt);return ft>3&&Zt&&Object.defineProperty(J,B,Zt),Zt},Ko=function(F,J){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,J)};let Il=(()=>{class F{constructor(){this.options=new bg,this.eventNames=Object.keys(Qc),this.expandedNodeIds={},this.selectedLeafNodeIds={},this.activeNodeIds={},this.hiddenNodeIds={},this.focusedNodeId=null,this.firstUpdate=!0,this.subscriptions=[]}fireEvent(B){B.treeModel=this,this.events[B.eventName].emit(B),this.events.event.emit(B)}subscribe(B,Te){const ft=this.events[B].subscribe(Te);this.subscriptions.push(ft)}getFocusedNode(){return this.focusedNode}getActiveNode(){return this.activeNodes[0]}getActiveNodes(){return this.activeNodes}getVisibleRoots(){return this.virtualRoot.visibleChildren}getFirstRoot(B=!1){return tf(B?this.getVisibleRoots():this.roots)}getLastRoot(B=!1){return fn(B?this.getVisibleRoots():this.roots)}get isFocused(){return F.focusedTree===this}isNodeFocused(B){return this.focusedNode===B}isEmptyTree(){return this.roots&&0===this.roots.length}get focusedNode(){return this.focusedNodeId?this.getNodeById(this.focusedNodeId):null}get expandedNodes(){const B=Object.keys(this.expandedNodeIds).filter(Te=>this.expandedNodeIds[Te]).map(Te=>this.getNodeById(Te));return Sh(B)}get activeNodes(){const B=Object.keys(this.activeNodeIds).filter(Te=>this.activeNodeIds[Te]).map(Te=>this.getNodeById(Te));return Sh(B)}get hiddenNodes(){const B=Object.keys(this.hiddenNodeIds).filter(Te=>this.hiddenNodeIds[Te]).map(Te=>this.getNodeById(Te));return Sh(B)}get selectedLeafNodes(){const B=Object.keys(this.selectedLeafNodeIds).filter(Te=>this.selectedLeafNodeIds[Te]).map(Te=>this.getNodeById(Te));return Sh(B)}getNodeByPath(B,Te=null){if(!B)return null;if(Te=Te||this.virtualRoot,0===B.length)return Te;if(!Te.children)return null;const ft=B.shift(),Zt=Ap(Te.children,{id:ft});return Zt?this.getNodeByPath(B,Zt):null}getNodeById(B){const Te=B.toString();return this.getNodeBy(ft=>ft.id.toString()===Te)}getNodeBy(B,Te=null){if(!(Te=Te||this.virtualRoot).children)return null;const ft=Ap(Te.children,B);if(ft)return ft;for(let Zt of Te.children){const rr=this.getNodeBy(B,Zt);if(rr)return rr}}isExpanded(B){return this.expandedNodeIds[B.id]}isHidden(B){return this.hiddenNodeIds[B.id]}isActive(B){return this.activeNodeIds[B.id]}isSelected(B){return this.selectedLeafNodeIds[B.id]}ngOnDestroy(){this.dispose(),this.unsubscribeAll()}dispose(){this.virtualRoot&&this.virtualRoot.dispose()}unsubscribeAll(){this.subscriptions.forEach(B=>B.unsubscribe()),this.subscriptions=[]}setData({nodes:B,options:Te=null,events:ft=null}){Te&&(this.options=new bg(Te)),ft&&(this.events=ft),B&&(this.nodes=B),this.update()}update(){let B={id:this.options.rootId,virtual:!0,[this.options.childrenField]:this.nodes};this.dispose(),this.virtualRoot=new Sg(B,null,this,0),this.roots=this.virtualRoot.children,this.firstUpdate?this.roots&&(this.firstUpdate=!1,this._calculateExpandedNodes()):this.fireEvent({eventName:Qc.updateData})}setFocusedNode(B){this.focusedNodeId=B?B.id:null}setFocus(B){F.focusedTree=B?this:null}doForAll(B){this.roots.forEach(Te=>Te.doForAll(B))}focusNextNode(){let B=this.getFocusedNode(),Te=B?B.findNextNode(!0,!0):this.getFirstRoot(!0);Te&&Te.focus()}focusPreviousNode(){let B=this.getFocusedNode(),Te=B?B.findPreviousNode(!0):this.getLastRoot(!0);Te&&Te.focus()}focusDrillDown(){let B=this.getFocusedNode();if(B&&B.isCollapsed&&B.hasChildren)B.toggleExpanded();else{let Te=B?B.getFirstChild(!0):this.getFirstRoot(!0);Te&&Te.focus()}}focusDrillUp(){let B=this.getFocusedNode();if(B)if(B.isExpanded)B.toggleExpanded();else{let Te=B.realParent;Te&&Te.focus()}}setActiveNode(B,Te,ft=!1){ft?this._setActiveNodeMulti(B,Te):this._setActiveNodeSingle(B,Te),Te?(B.focus(this.options.scrollOnActivate),this.fireEvent({eventName:Qc.activate,node:B}),this.fireEvent({eventName:Qc.nodeActivate,node:B})):(this.fireEvent({eventName:Qc.deactivate,node:B}),this.fireEvent({eventName:Qc.nodeDeactivate,node:B}))}setSelectedNode(B,Te){this.selectedLeafNodeIds=Object.assign({},this.selectedLeafNodeIds,{[B.id]:Te}),Te?(B.focus(),this.fireEvent({eventName:Qc.select,node:B})):this.fireEvent({eventName:Qc.deselect,node:B})}setExpandedNode(B,Te){this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[B.id]:Te}),this.fireEvent({eventName:Qc.toggleExpanded,node:B,isExpanded:Te})}expandAll(){this.roots.forEach(B=>B.expandAll())}collapseAll(){this.roots.forEach(B=>B.collapseAll())}setIsHidden(B,Te){this.hiddenNodeIds=Object.assign({},this.hiddenNodeIds,{[B.id]:Te})}setHiddenNodeIds(B){this.hiddenNodeIds=B.reduce((Te,ft)=>Object.assign(Te,{[ft]:!0}),{})}performKeyAction(B,Te){const ft=this.options.actionMapping.keys[Te.keyCode];return!!ft&&(Te.preventDefault(),ft(this,B,Te),!0)}filterNodes(B,Te=!0){let ft;if(!B)return this.clearFilter();if(qf(B))ft=rr=>-1!==rr.displayField.toLowerCase().indexOf(B.toLowerCase());else{if(!(0,cu.Z)(B))return console.error("Don't know what to do with filter",B),void console.error("Should be either a string or function");ft=B}const Zt={};this.roots.forEach(rr=>this._filterNode(Zt,rr,ft,Te)),this.hiddenNodeIds=Zt,this.fireEvent({eventName:Qc.changeFilter})}clearFilter(){this.hiddenNodeIds={},this.fireEvent({eventName:Qc.changeFilter})}moveNode(B,Te){const ft=B.getIndexInParent(),Zt=B.parent;if(!this.canMoveNode(B,Te,ft))return;const rr=Zt.getField("children");Te.parent.getField("children")||Te.parent.setField("children",[]);const xr=Te.parent.getField("children"),hi=rr.splice(ft,1)[0];let ns=Zt===Te.parent&&Te.index>ft?Te.index-1:Te.index;xr.splice(ns,0,hi),Zt.treeModel.update(),Te.parent.treeModel!==Zt.treeModel&&Te.parent.treeModel.update(),this.fireEvent({eventName:Qc.moveNode,node:hi,to:{parent:Te.parent.data,index:ns},from:{parent:Zt.data,index:ft}})}copyNode(B,Te){const ft=B.getIndexInParent();if(!this.canMoveNode(B,Te,ft))return;Te.parent.getField("children")||Te.parent.setField("children",[]);const Zt=Te.parent.getField("children"),rr=this.options.getNodeClone(B);Zt.splice(Te.index,0,rr),B.treeModel.update(),Te.parent.treeModel!==B.treeModel&&Te.parent.treeModel.update(),this.fireEvent({eventName:Qc.copyNode,node:rr,to:{parent:Te.parent.data,index:Te.index}})}getState(){return{expandedNodeIds:this.expandedNodeIds,selectedLeafNodeIds:this.selectedLeafNodeIds,activeNodeIds:this.activeNodeIds,hiddenNodeIds:this.hiddenNodeIds,focusedNodeId:this.focusedNodeId}}setState(B){!B||Object.assign(this,{expandedNodeIds:B.expandedNodeIds||{},selectedLeafNodeIds:B.selectedLeafNodeIds||{},activeNodeIds:B.activeNodeIds||{},hiddenNodeIds:B.hiddenNodeIds||{},focusedNodeId:B.focusedNodeId})}subscribeToState(B){ii(()=>B(this.getState()))}canMoveNode(B,Te,ft){return ft||B.getIndexInParent(),(B.parent!==Te.parent||ft!==Te.index)&&!Te.parent.isDescendantOf(B)}calculateExpandedNodes(){this._calculateExpandedNodes()}_filterNode(B,Te,ft,Zt){let rr=ft(Te);return Te.children&&Te.children.forEach(xr=>{this._filterNode(B,xr,ft,Zt)&&(rr=!0)}),rr||(B[Te.id]=!0),Zt&&rr&&Te.ensureVisible(),rr}_calculateExpandedNodes(B=null){(B=B||this.virtualRoot).data[this.options.isExpandedField]&&(this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[B.id]:!0})),B.children&&B.children.forEach(Te=>this._calculateExpandedNodes(Te))}_setActiveNodeSingle(B,Te){this.activeNodes.filter(ft=>ft!==B).forEach(ft=>{this.fireEvent({eventName:Qc.deactivate,node:ft}),this.fireEvent({eventName:Qc.nodeDeactivate,node:ft})}),this.activeNodeIds=Te?{[B.id]:!0}:{}}_setActiveNodeMulti(B,Te){this.activeNodeIds=Object.assign({},this.activeNodeIds,{[B.id]:Te})}}return F.\u0275fac=function(B){return new(B||F)},F.\u0275prov=r.Yz7({token:F,factory:F.\u0275fac}),F.focusedTree=null,F})();Vl([Wn,Ko("design:type",Array)],Il.prototype,"roots",void 0),Vl([Wn,Ko("design:type",Object)],Il.prototype,"expandedNodeIds",void 0),Vl([Wn,Ko("design:type",Object)],Il.prototype,"selectedLeafNodeIds",void 0),Vl([Wn,Ko("design:type",Object)],Il.prototype,"activeNodeIds",void 0),Vl([Wn,Ko("design:type",Object)],Il.prototype,"hiddenNodeIds",void 0),Vl([Wn,Ko("design:type",Object)],Il.prototype,"focusedNodeId",void 0),Vl([Wn,Ko("design:type",Sg)],Il.prototype,"virtualRoot",void 0),Vl([Se,Ko("design:type",Object),Ko("design:paramtypes",[])],Il.prototype,"focusedNode",null),Vl([Se,Ko("design:type",Object),Ko("design:paramtypes",[])],Il.prototype,"expandedNodes",null),Vl([Se,Ko("design:type",Object),Ko("design:paramtypes",[])],Il.prototype,"activeNodes",null),Vl([Se,Ko("design:type",Object),Ko("design:paramtypes",[])],Il.prototype,"hiddenNodes",null),Vl([Se,Ko("design:type",Object),Ko("design:paramtypes",[])],Il.prototype,"selectedLeafNodes",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object]),Ko("design:returntype",void 0)],Il.prototype,"setData",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[]),Ko("design:returntype",void 0)],Il.prototype,"update",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object]),Ko("design:returntype",void 0)],Il.prototype,"setFocusedNode",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object]),Ko("design:returntype",void 0)],Il.prototype,"setFocus",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object]),Ko("design:returntype",void 0)],Il.prototype,"doForAll",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[]),Ko("design:returntype",void 0)],Il.prototype,"focusNextNode",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[]),Ko("design:returntype",void 0)],Il.prototype,"focusPreviousNode",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[]),Ko("design:returntype",void 0)],Il.prototype,"focusDrillDown",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[]),Ko("design:returntype",void 0)],Il.prototype,"focusDrillUp",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object,Object,Object]),Ko("design:returntype",void 0)],Il.prototype,"setActiveNode",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object,Object]),Ko("design:returntype",void 0)],Il.prototype,"setSelectedNode",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object,Object]),Ko("design:returntype",void 0)],Il.prototype,"setExpandedNode",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[]),Ko("design:returntype",void 0)],Il.prototype,"expandAll",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[]),Ko("design:returntype",void 0)],Il.prototype,"collapseAll",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object,Object]),Ko("design:returntype",void 0)],Il.prototype,"setIsHidden",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object]),Ko("design:returntype",void 0)],Il.prototype,"setHiddenNodeIds",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object,Object]),Ko("design:returntype",void 0)],Il.prototype,"filterNodes",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[]),Ko("design:returntype",void 0)],Il.prototype,"clearFilter",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object,Object]),Ko("design:returntype",void 0)],Il.prototype,"moveNode",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object,Object]),Ko("design:returntype",void 0)],Il.prototype,"copyNode",null),Vl([te,Ko("design:type",Function),Ko("design:paramtypes",[Object]),Ko("design:returntype",void 0)],Il.prototype,"setState",null);let Km=(()=>{class F{constructor(){this._draggedElement=null}set(B){this._draggedElement=B}get(){return this._draggedElement}isDragging(){return!!this.get()}}return F.\u0275fac=function(B){return new(B||F)},F.\u0275prov=(0,r.Yz7)({factory:function(){return new F},token:F,providedIn:"root"}),F})();var af=function(F,J,B,Te){var rr,ft=arguments.length,Zt=ft<3?J:null===Te?Te=Object.getOwnPropertyDescriptor(J,B):Te;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Zt=Reflect.decorate(F,J,B,Te);else for(var xr=F.length-1;xr>=0;xr--)(rr=F[xr])&&(Zt=(ft<3?rr(Zt):ft>3?rr(J,B,Zt):rr(J,B))||Zt);return ft>3&&Zt&&Object.defineProperty(J,B,Zt),Zt},Xc=function(F,J){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,J)};let wp=(()=>{class F{constructor(B){this.treeModel=B,this.yBlocks=0,this.x=0,this.viewportHeight=null,this.viewport=null,B.virtualScroll=this,this._dispose=[ii(()=>this.fixScroll())]}get y(){return 150*this.yBlocks}get totalHeight(){return this.treeModel.virtualRoot?this.treeModel.virtualRoot.height:0}fireEvent(B){this.treeModel.fireEvent(B)}init(){const B=this.recalcPositions.bind(this);B(),this._dispose=[...this._dispose,_s(()=>this.treeModel.roots,B),_s(()=>this.treeModel.expandedNodeIds,B),_s(()=>this.treeModel.hiddenNodeIds,B)],this.treeModel.subscribe(Qc.loadNodeChildren,B)}isEnabled(){return this.treeModel.options.useVirtualScroll}_setYBlocks(B){this.yBlocks=B}recalcPositions(){this.treeModel.virtualRoot.height=this._getPositionAfter(this.treeModel.getVisibleRoots(),0)}_getPositionAfter(B,Te){let ft=Te;return B.forEach(Zt=>{Zt.position=ft,ft=this._getPositionAfterNode(Zt,ft)}),ft}_getPositionAfterNode(B,Te){let ft=B.getSelfHeight()+Te;return B.children&&B.isExpanded&&(ft=this._getPositionAfter(B.visibleChildren,ft)),B.height=ft-Te,ft}clear(){this._dispose.forEach(B=>B())}setViewport(B){Object.assign(this,{viewport:B,x:B.scrollLeft,yBlocks:Math.round(B.scrollTop/150),viewportHeight:B.getBoundingClientRect?B.getBoundingClientRect().height:0})}scrollIntoView(B,Te,ft=!0){if(B.options.scrollContainer){const Zt=B.options.scrollContainer,rr=Zt.getBoundingClientRect().height,xr=Zt.getBoundingClientRect().top,hi=this.viewport.getBoundingClientRect().top+B.position-xr;(Te||hiZt.scrollTop+rr)&&(Zt.scrollTop=ft?hi-rr/2:hi)}else(Te||B.positionthis.y+this.viewportHeight)&&this.viewport&&(this.viewport.scrollTop=ft?B.position-this.viewportHeight/2:B.position,this._setYBlocks(Math.floor(this.viewport.scrollTop/150)))}getViewportNodes(B){if(!B)return[];const Te=B.filter(ns=>!ns.isHidden);if(!this.isEnabled())return Te;if(!this.viewportHeight||!Te.length)return[];const ft=eg(Te,ns=>ns.position+500>this.y||ns.position+ns.height>this.y),Zt=eg(Te,ns=>ns.position-500>this.y+this.viewportHeight,ft),rr=[];if(Zt-ft>(1e3+this.viewportHeight)/Te[0].treeModel.options.options.nodeHeight)return[];for(let ns=ft;ns<=Zt;ns++)rr.push(Te[ns]);return rr}fixScroll(){const B=Math.max(0,this.totalHeight-this.viewportHeight);this.y<0&&this._setYBlocks(0),this.y>B&&this._setYBlocks(B/150)}}return F.\u0275fac=function(B){return new(B||F)(r.LFG(Il))},F.\u0275prov=r.Yz7({token:F,factory:F.\u0275fac}),F})();function eg(F,J,B=0){let Te=B,ft=F.length-1;for(;Te!==ft;){let Zt=Math.floor((Te+ft)/2);J(F[Zt])?ft=Zt:Te=Te===Zt?ft:Zt}return Te}af([Wn,Xc("design:type",Object)],wp.prototype,"yBlocks",void 0),af([Wn,Xc("design:type",Object)],wp.prototype,"x",void 0),af([Wn,Xc("design:type",Object)],wp.prototype,"viewportHeight",void 0),af([Se,Xc("design:type",Object),Xc("design:paramtypes",[])],wp.prototype,"y",null),af([Se,Xc("design:type",Object),Xc("design:paramtypes",[])],wp.prototype,"totalHeight",null),af([te,Xc("design:type",Function),Xc("design:paramtypes",[Object]),Xc("design:returntype",void 0)],wp.prototype,"_setYBlocks",null),af([te,Xc("design:type",Function),Xc("design:paramtypes",[]),Xc("design:returntype",void 0)],wp.prototype,"recalcPositions",null),af([te,Xc("design:type",Function),Xc("design:paramtypes",[Object]),Xc("design:returntype",void 0)],wp.prototype,"setViewport",null),af([te,Xc("design:type",Function),Xc("design:paramtypes",[Object,Object,Object]),Xc("design:returntype",void 0)],wp.prototype,"scrollIntoView",null);let ov=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["tree-loading-component"]],inputs:{template:"template",node:"node"},decls:2,vars:5,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(B,Te){1&B&&(r.YNc(0,z,2,0,"span",0),r.GkF(1,1)),2&B&&(r.Q6J("ngIf",!Te.template),r.xp6(1),r.Q6J("ngTemplateOutlet",Te.template)("ngTemplateOutletContext",r.VKq(3,Me,Te.node)))},directives:[a.O5,a.tP],encapsulation:2}),F})(),Cm=(()=>{class F{constructor(B,Te,ft){this.elementRef=B,this.ngZone=Te,this.virtualScroll=ft,this.setViewport=S_(()=>{this.virtualScroll.setViewport(this.elementRef.nativeElement)},17),this.scrollEventHandler=this.setViewport.bind(this)}ngOnInit(){this.virtualScroll.init()}ngAfterViewInit(){setTimeout(()=>{this.setViewport(),this.virtualScroll.fireEvent({eventName:Qc.initialized})});let B=this.elementRef.nativeElement;this.ngZone.runOutsideAngular(()=>{B.addEventListener("scroll",this.scrollEventHandler)})}ngOnDestroy(){this.virtualScroll.clear(),this.elementRef.nativeElement.removeEventListener("scroll",this.scrollEventHandler)}getTotalHeight(){return this.virtualScroll.isEnabled()&&this.virtualScroll.totalHeight+"px"||"auto"}}return F.\u0275fac=function(B){return new(B||F)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(wp))},F.\u0275cmp=r.Xpm({type:F,selectors:[["tree-viewport"]],features:[r._Bn([wp])],ngContentSelectors:yr,decls:1,vars:2,consts:[[4,"treeMobxAutorun"]],template:function(B,Te){1&B&&(r.F$t(),r.YNc(0,Ke,3,2,"ng-container",0)),2&B&&r.Q6J("treeMobxAutorun",r.DdM(1,gn))},directives:[Zr],encapsulation:2}),F})(),lm=(()=>{class F{constructor(B,Te){this.treeModel=B,this.treeDraggedElement=Te,B.eventNames.forEach(ft=>this[ft]=new r.vpe),B.subscribeToState(ft=>this.stateChange.emit(ft))}set nodes(B){}set options(B){}set focused(B){this.treeModel.setFocus(B)}set state(B){this.treeModel.setState(B)}onKeydown(B){if(!this.treeModel.isFocused||Sm(["input","textarea"],document.activeElement.tagName.toLowerCase()))return;const Te=this.treeModel.getFocusedNode();this.treeModel.performKeyAction(Te,B)}onMousedown(B){(function Te(ft,Zt){return!ft||ft.localName!==Zt&&Te(ft.parentElement,Zt)})(B.target,"tree-root")&&this.treeModel.setFocus(!1)}ngOnChanges(B){(B.options||B.nodes)&&this.treeModel.setData({options:B.options&&B.options.currentValue,nodes:B.nodes&&B.nodes.currentValue,events:S(this,this.treeModel.eventNames)})}sizeChanged(){this.viewportComponent.setViewport()}}return F.\u0275fac=function(B){return new(B||F)(r.Y36(Il),r.Y36(Km))},F.\u0275cmp=r.Xpm({type:F,selectors:[["Tree"],["tree-root"]],contentQueries:function(B,Te,ft){if(1&B&&(r.Suo(ft,Nr,5),r.Suo(ft,vi,5),r.Suo(ft,di,5),r.Suo(ft,ts,5)),2&B){let Zt;r.iGM(Zt=r.CRH())&&(Te.loadingTemplate=Zt.first),r.iGM(Zt=r.CRH())&&(Te.treeNodeTemplate=Zt.first),r.iGM(Zt=r.CRH())&&(Te.treeNodeWrapperTemplate=Zt.first),r.iGM(Zt=r.CRH())&&(Te.treeNodeFullTemplate=Zt.first)}},viewQuery:function(B,Te){if(1&B&&r.Gf(Do,5),2&B){let ft;r.iGM(ft=r.CRH())&&(Te.viewportComponent=ft.first)}},hostBindings:function(B,Te){1&B&&r.NdJ("keydown",function(Zt){return Te.onKeydown(Zt)},!1,r.pYS)("mousedown",function(Zt){return Te.onMousedown(Zt)},!1,r.pYS)},inputs:{nodes:"nodes",options:"options",focused:"focused",state:"state"},outputs:{toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",updateData:"updateData",initialized:"initialized",moveNode:"moveNode",copyNode:"copyNode",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",event:"event",stateChange:"stateChange"},features:[r._Bn([Il]),r.TTD],decls:5,vars:6,consts:[["viewport",""],[1,"angular-tree-component"],[3,"nodes","treeModel","templates",4,"ngIf"],["class","empty-tree-drop-slot",3,"dropIndex","node",4,"ngIf"],[3,"nodes","treeModel","templates"],[1,"empty-tree-drop-slot",3,"dropIndex","node"]],template:function(B,Te){1&B&&(r.TgZ(0,"tree-viewport",null,0)(2,"div",1),r.YNc(3,Yo,1,8,"tree-node-collection",2),r.YNc(4,ia,1,2,"tree-node-drop-slot",3),r.qZA()()),2&B&&(r.xp6(2),r.ekj("node-dragging",Te.treeDraggedElement.isDragging())("angular-tree-component-rtl",Te.treeModel.options.rtl),r.xp6(1),r.Q6J("ngIf",Te.treeModel.roots),r.xp6(1),r.Q6J("ngIf",Te.treeModel.isEmptyTree()))},directives:function(){return[Cm,a.O5,D_,xh]},encapsulation:2}),F})(),M_=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["TreeNode"],["tree-node"]],inputs:{node:"node",index:"index",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"class","tree-node","tree-node-expanded","tree-node-collapsed","tree-node-leaf","tree-node-active","tree-node-focused",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"dropIndex","node",4,"ngIf"],[3,"node","index","templates"],[3,"node","templates"],[3,"dropIndex","node"]],template:function(B,Te){1&B&&r.YNc(0,Ee,3,8,"ng-container",0),2&B&&r.Q6J("treeMobxAutorun",r.DdM(1,gn))},directives:function(){return[Zr,a.O5,xh,Mg,O_,a.tP]},encapsulation:2}),F})(),Mm=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["tree-node-content"]],inputs:{node:"node",index:"index",template:"template"},decls:2,vars:7,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(B,Te){1&B&&(r.YNc(0,ze,2,1,"span",0),r.GkF(1,1)),2&B&&(r.Q6J("ngIf",!Te.template),r.xp6(1),r.Q6J("ngTemplateOutlet",Te.template)("ngTemplateOutletContext",r.kEZ(3,At,Te.node,Te.node,Te.index)))},directives:[a.O5,a.tP],encapsulation:2}),F})(),xh=(()=>{class F{onDrop(B){this.node.mouseAction("drop",B.event,{from:B.element,to:{parent:this.node,index:this.dropIndex}})}allowDrop(B,Te){return this.node.options.allowDrop(B,{parent:this.node,index:this.dropIndex},Te)}}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["TreeNodeDropSlot"],["tree-node-drop-slot"]],inputs:{node:"node",dropIndex:"dropIndex"},decls:1,vars:2,consts:[[1,"node-drop-slot",3,"treeAllowDrop","allowDragoverStyling","treeDrop"]],template:function(B,Te){1&B&&(r.TgZ(0,"div",0),r.NdJ("treeDrop",function(Zt){return Te.onDrop(Zt)}),r.qZA()),2&B&&r.Q6J("treeAllowDrop",Te.allowDrop.bind(Te))("allowDragoverStyling",!0)},directives:function(){return[rg]},encapsulation:2}),F})(),Y_=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["tree-node-expander"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["class","toggle-children-wrapper",3,"toggle-children-wrapper-expanded","toggle-children-wrapper-collapsed","click",4,"ngIf"],["class","toggle-children-placeholder",4,"ngIf"],[1,"toggle-children-wrapper",3,"click"],[1,"toggle-children"],[1,"toggle-children-placeholder"]],template:function(B,Te){1&B&&r.YNc(0,ar,3,2,"ng-container",0),2&B&&r.Q6J("treeMobxAutorun",r.DdM(1,gn))},directives:[Zr,a.O5],encapsulation:2}),F})(),O_=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["tree-node-children"]],inputs:{node:"node",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"tree-children","tree-children-no-padding",4,"treeAnimateOpen","treeAnimateOpenSpeed","treeAnimateOpenAcceleration","treeAnimateOpenEnabled"],[3,"nodes","templates","treeModel",4,"ngIf"],["class","tree-node-loading",3,"padding-left","template","node",4,"ngIf"],[3,"nodes","templates","treeModel"],[1,"tree-node-loading",3,"template","node"]],template:function(B,Te){1&B&&r.YNc(0,po,2,4,"ng-container",0),2&B&&r.Q6J("treeMobxAutorun",r.DdM(1,gn))},directives:function(){return[Zr,av,a.O5,D_,ov]},encapsulation:2}),F})();const um=Object.assign(function Tg(...F){return te(...F)},te),tg=Object.assign(function Cg(...F){return Se(...F)},Se),j_=Object.assign(function ng(...F){return Wn(...F)},Wn);var Qp=function(F,J,B,Te){var rr,ft=arguments.length,Zt=ft<3?J:null===Te?Te=Object.getOwnPropertyDescriptor(J,B):Te;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Zt=Reflect.decorate(F,J,B,Te);else for(var xr=F.length-1;xr>=0;xr--)(rr=F[xr])&&(Zt=(ft<3?rr(Zt):ft>3?rr(J,B,Zt):rr(J,B))||Zt);return ft>3&&Zt&&Object.defineProperty(J,B,Zt),Zt},A_=function(F,J){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,J)};let D_=(()=>{class F{constructor(){this._dispose=[]}get nodes(){return this._nodes}set nodes(B){this.setNodes(B)}get marginTop(){const B=this.viewportNodes&&this.viewportNodes.length&&this.viewportNodes[0];return(B&&B.parent?B.position-B.parent.position-B.parent.getSelfHeight():0)+"px"}setNodes(B){this._nodes=B}ngOnInit(){this.virtualScroll=this.treeModel.virtualScroll,this._dispose=[_s(()=>this.virtualScroll.getViewportNodes(this.nodes).map(B=>B.index),B=>{this.viewportNodes=B.map(Te=>this.nodes[Te])},{compareStructural:!0,fireImmediately:!0}),_s(()=>this.nodes,B=>{this.viewportNodes=this.virtualScroll.getViewportNodes(B)})]}ngOnDestroy(){this._dispose.forEach(B=>B())}trackNode(B,Te){return Te.id}}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["tree-node-collection"]],inputs:{nodes:"nodes",treeModel:"treeModel",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"node","index","templates",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","index","templates"]],template:function(B,Te){1&B&&r.YNc(0,oa,3,4,"ng-container",0),2&B&&r.Q6J("treeMobxAutorun",r.DdM(1,gn))},directives:[Zr,a.sg,M_],encapsulation:2}),F})();Qp([j_,A_("design:type",Object)],D_.prototype,"_nodes",void 0),Qp([j_,A_("design:type",Array)],D_.prototype,"viewportNodes",void 0),Qp([tg,A_("design:type",String),A_("design:paramtypes",[])],D_.prototype,"marginTop",null),Qp([um,A_("design:type",Function),A_("design:paramtypes",[Object]),A_("design:returntype",void 0)],D_.prototype,"setNodes",null);let Mg=(()=>{class F{constructor(){}}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["tree-node-wrapper"]],inputs:{node:"node",index:"index",templates:"templates"},decls:2,vars:8,consts:[["class","node-wrapper",3,"padding-left",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node-wrapper"],[3,"node",4,"ngIf"],[3,"node"],[1,"node-content-wrapper",3,"treeAllowDrop","allowDragoverStyling","treeDrag","treeDragEnabled","click","dblclick","mouseover","mouseout","contextmenu","treeDrop","treeDropDragOver","treeDropDragLeave","treeDropDragEnter"],[3,"node","index","template"]],template:function(B,Te){1&B&&(r.YNc(0,Qr,5,15,"div",0),r.GkF(1,1)),2&B&&(r.Q6J("ngIf",!Te.templates.treeNodeWrapperTemplate),r.xp6(1),r.Q6J("ngTemplateOutlet",Te.templates.treeNodeWrapperTemplate)("ngTemplateOutletContext",r.l5B(3,Y,Te.node,Te.node,Te.index,Te.templates)))},directives:function(){return[a.O5,cm,Y_,sv,rg,Mm,a.tP]},encapsulation:2}),F})(),cm=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275cmp=r.Xpm({type:F,selectors:[["tree-node-checkbox"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["type","checkbox",1,"tree-node-checkbox",3,"checked","indeterminate","click"]],template:function(B,Te){1&B&&r.YNc(0,Fr,2,2,"ng-container",0),2&B&&r.Q6J("treeMobxAutorun",r.DdM(1,gn))},directives:[Zr],encapsulation:2}),F})();const Om="is-dragging-over",Og="is-dragging-over-disabled";let rg=(()=>{class F{constructor(B,Te,ft,Zt){this.el=B,this.renderer=Te,this.treeDraggedElement=ft,this.ngZone=Zt,this.allowDragoverStyling=!0,this.onDropCallback=new r.vpe,this.onDragOverCallback=new r.vpe,this.onDragLeaveCallback=new r.vpe,this.onDragEnterCallback=new r.vpe,this._allowDrop=(rr,xr)=>!0,this.dragOverEventHandler=this.onDragOver.bind(this),this.dragEnterEventHandler=this.onDragEnter.bind(this),this.dragLeaveEventHandler=this.onDragLeave.bind(this)}set treeAllowDrop(B){this._allowDrop=B instanceof Function?B:(Te,ft)=>B}allowDrop(B){return this._allowDrop(this.treeDraggedElement.get(),B)}ngAfterViewInit(){let B=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{B.addEventListener("dragover",this.dragOverEventHandler),B.addEventListener("dragenter",this.dragEnterEventHandler),B.addEventListener("dragleave",this.dragLeaveEventHandler)})}ngOnDestroy(){let B=this.el.nativeElement;B.removeEventListener("dragover",this.dragOverEventHandler),B.removeEventListener("dragenter",this.dragEnterEventHandler),B.removeEventListener("dragleave",this.dragLeaveEventHandler)}onDragOver(B){if(!this.allowDrop(B))return this.allowDragoverStyling?this.addDisabledClass():void 0;this.onDragOverCallback.emit({event:B,element:this.treeDraggedElement.get()}),B.preventDefault(),this.allowDragoverStyling&&this.addClass()}onDragEnter(B){!this.allowDrop(B)||(B.preventDefault(),this.onDragEnterCallback.emit({event:B,element:this.treeDraggedElement.get()}))}onDragLeave(B){if(!this.allowDrop(B))return this.allowDragoverStyling?this.removeDisabledClass():void 0;this.onDragLeaveCallback.emit({event:B,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass()}onDrop(B){!this.allowDrop(B)||(B.preventDefault(),this.onDropCallback.emit({event:B,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass(),this.treeDraggedElement.set(null))}addClass(){this.renderer.addClass(this.el.nativeElement,Om)}removeClass(){this.renderer.removeClass(this.el.nativeElement,Om)}addDisabledClass(){this.renderer.addClass(this.el.nativeElement,Og)}removeDisabledClass(){this.renderer.removeClass(this.el.nativeElement,Og)}}return F.\u0275fac=function(B){return new(B||F)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(Km),r.Y36(r.R0b))},F.\u0275dir=r.lG2({type:F,selectors:[["","treeDrop",""]],hostBindings:function(B,Te){1&B&&r.NdJ("drop",function(Zt){return Te.onDrop(Zt)})},inputs:{allowDragoverStyling:"allowDragoverStyling",treeAllowDrop:"treeAllowDrop"},outputs:{onDropCallback:"treeDrop",onDragOverCallback:"treeDropDragOver",onDragLeaveCallback:"treeDropDragLeave",onDragEnterCallback:"treeDropDragEnter"}}),F})(),sv=(()=>{class F{constructor(B,Te,ft,Zt){this.el=B,this.renderer=Te,this.treeDraggedElement=ft,this.ngZone=Zt,this.dragEventHandler=this.onDrag.bind(this)}ngAfterViewInit(){let B=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{B.addEventListener("drag",this.dragEventHandler)})}ngDoCheck(){this.renderer.setAttribute(this.el.nativeElement,"draggable",this.treeDragEnabled?"true":"false")}ngOnDestroy(){this.el.nativeElement.removeEventListener("drag",this.dragEventHandler)}onDragStart(B){B.dataTransfer.setData("text",B.target.id),this.treeDraggedElement.set(this.draggedElement),this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragStart",B)}onDrag(B){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("drag",B)}onDragEnd(){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragEnd"),this.treeDraggedElement.set(null)}}return F.\u0275fac=function(B){return new(B||F)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(Km),r.Y36(r.R0b))},F.\u0275dir=r.lG2({type:F,selectors:[["","treeDrag",""]],hostBindings:function(B,Te){1&B&&r.NdJ("dragstart",function(Zt){return Te.onDragStart(Zt)})("dragend",function(){return Te.onDragEnd()})},inputs:{draggedElement:["treeDrag","draggedElement"],treeDragEnabled:"treeDragEnabled"}}),F})(),av=(()=>{class F{constructor(B,Te,ft){this.renderer=B,this.templateRef=Te,this.viewContainerRef=ft}set isOpen(B){B?(this._show(),this.isEnabled&&!1===this._isOpen&&this._animateOpen()):this.isEnabled?this._animateClose():this._hide(),this._isOpen=!!B}_show(){this.innerElement||(this.innerElement=this.viewContainerRef.createEmbeddedView(this.templateRef).rootNodes[0])}_hide(){this.viewContainerRef.clear(),this.innerElement=null}_animateOpen(){let B=this.animateSpeed,Te=this.animateAcceleration,ft=0;this.renderer.setStyle(this.innerElement,"max-height","0"),setTimeout(()=>{const Zt=setInterval(()=>{if(!this._isOpen||!this.innerElement)return clearInterval(Zt);ft+=B;const rr=Math.round(ft);this.renderer.setStyle(this.innerElement,"max-height",`${rr}px`);const xr=this.innerElement.getBoundingClientRect?this.innerElement.getBoundingClientRect().height:0;B*=Te,Te*=1.005,xr{if(this._isOpen||!this.innerElement)return clearInterval(Zt);ft-=B,this.renderer.setStyle(this.innerElement,"max-height",`${ft}px`),B*=Te,Te*=1.005,ft<=0&&(this.viewContainerRef.clear(),this.innerElement=null,clearInterval(Zt))},17)}}return F.\u0275fac=function(B){return new(B||F)(r.Y36(r.Qsj),r.Y36(r.Rgc),r.Y36(r.s_b))},F.\u0275dir=r.lG2({type:F,selectors:[["","treeAnimateOpen",""]],inputs:{isOpen:["treeAnimateOpen","isOpen"],animateSpeed:["treeAnimateOpenSpeed","animateSpeed"],animateAcceleration:["treeAnimateOpenAcceleration","animateAcceleration"],isEnabled:["treeAnimateOpenEnabled","isEnabled"]}}),F})(),lv=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=r.oAB({type:F}),F.\u0275inj=r.cJS({providers:[],imports:[[a.ez]]}),F})()},84051:(v,b,i)=>{"use strict";i.d(b,{$7:()=>Uo,AR:()=>yi,Hg:()=>Wn,Sr:()=>es,dX:()=>Qo,ii:()=>Zn,nE:()=>sa,vq:()=>yn,xD:()=>Oo});var r=i(89724),a=i(11048),f=i(79765),u=i(22759),e=i(26215),p=i(46782),g=i(64762);const T=["*"];function M(ut,pn){1&ut&&r._UZ(0,"datatable-progress")}function w(ut,pn){if(1&ut&&r._UZ(0,"datatable-summary-row",9),2&ut){const te=r.oxw(2);r.Q6J("rowHeight",te.summaryHeight)("offsetX",te.offsetX)("innerWidth",te.innerWidth)("rows",te.rows)("columns",te.columns)}}function R(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-body-row",13),r.NdJ("treeAction",function(){r.CHM(te);const jt=r.oxw().$implicit;return r.oxw(2).onTreeAction(jt)})("activate",function(jt){r.CHM(te);const hn=r.oxw().index,ii=r.oxw(2);return r.MAs(2).onActivate(jt,ii.indexes.first+hn)}),r.qZA()}if(2&ut){const te=r.oxw().$implicit,Ue=r.oxw(2),jt=r.MAs(2);r.Q6J("isSelected",jt.getRowSelected(te))("innerWidth",Ue.innerWidth)("offsetX",Ue.offsetX)("columns",Ue.columns)("rowHeight",Ue.getRowHeight(te))("row",te)("rowIndex",Ue.getRowIndex(te))("expanded",Ue.getRowExpanded(te))("rowClass",Ue.rowClass)("displayCheck",Ue.displayCheck)("treeStatus",te&&te.treeStatus)}}function U(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-body-row",15),r.NdJ("activate",function(jt){const ii=r.CHM(te).index;return r.oxw(4),r.MAs(2).onActivate(jt,ii)}),r.qZA()}if(2&ut){const te=pn.$implicit,Ue=r.oxw(2).$implicit,jt=r.oxw(2),hn=r.MAs(2);r.Q6J("isSelected",hn.getRowSelected(te))("innerWidth",jt.innerWidth)("offsetX",jt.offsetX)("columns",jt.columns)("rowHeight",jt.getRowHeight(te))("row",te)("group",Ue.value)("rowIndex",jt.getRowIndex(te))("expanded",jt.getRowExpanded(te))("rowClass",jt.rowClass)}}function W(ut,pn){if(1&ut&&r.YNc(0,U,1,10,"datatable-body-row",14),2&ut){const te=r.oxw().$implicit,Ue=r.oxw(2);r.Q6J("ngForOf",te.value)("ngForTrackBy",Ue.rowTrackingFn)}}function j(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-row-wrapper",10),r.NdJ("rowContextmenu",function(jt){return r.CHM(te),r.oxw(2).rowContextmenu.emit(jt)}),r.YNc(1,R,1,11,"datatable-body-row",11),r.YNc(2,W,1,2,"ng-template",null,12,r.W1O),r.qZA()}if(2&ut){const te=pn.$implicit,Ue=pn.index,jt=r.MAs(3),hn=r.oxw(2);r.Q6J("groupedRows",hn.groupedRows)("innerWidth",hn.innerWidth)("ngStyle",hn.getRowsStyles(te))("rowDetail",hn.rowDetail)("groupHeader",hn.groupHeader)("offsetX",hn.offsetX)("detailRowHeight",hn.getDetailRowHeight(te&&te[Ue],Ue))("row",te)("expanded",hn.getRowExpanded(te))("rowIndex",hn.getRowIndex(te&&te[Ue])),r.xp6(1),r.Q6J("ngIf",!hn.groupedRows)("ngIfElse",jt)}}function q(ut,pn){if(1&ut&&r._UZ(0,"datatable-summary-row",16),2&ut){const te=r.oxw(2);r.Q6J("ngStyle",te.getBottomSummaryRowStyles())("rowHeight",te.summaryHeight)("offsetX",te.offsetX)("innerWidth",te.innerWidth)("rows",te.rows)("columns",te.columns)}}function ue(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-scroller",5),r.NdJ("scroll",function(jt){return r.CHM(te),r.oxw().onBodyScroll(jt)}),r.YNc(1,w,1,5,"datatable-summary-row",6),r.YNc(2,j,4,12,"datatable-row-wrapper",7),r.YNc(3,q,1,6,"datatable-summary-row",8),r.qZA()}if(2&ut){const te=r.oxw();r.Q6J("scrollbarV",te.scrollbarV)("scrollbarH",te.scrollbarH)("scrollHeight",te.scrollHeight)("scrollWidth",null==te.columnGroupWidths?null:te.columnGroupWidths.total),r.xp6(1),r.Q6J("ngIf",te.summaryRow&&"top"===te.summaryPosition),r.xp6(1),r.Q6J("ngForOf",te.temp)("ngForTrackBy",te.rowTrackingFn),r.xp6(1),r.Q6J("ngIf",te.summaryRow&&"bottom"===te.summaryPosition)}}function re(ut,pn){if(1&ut&&r._UZ(0,"div",17),2&ut){const te=r.oxw();r.Q6J("innerHTML",te.emptyMessage,r.oJD)}}function H(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-header-cell",4),r.NdJ("resize",function(jt){const ii=r.CHM(te).$implicit;return r.oxw(2).onColumnResized(jt,ii)})("longPressStart",function(jt){return r.CHM(te),r.oxw(2).onLongPressStart(jt)})("longPressEnd",function(jt){return r.CHM(te),r.oxw(2).onLongPressEnd(jt)})("sort",function(jt){return r.CHM(te),r.oxw(2).onSort(jt)})("select",function(jt){return r.CHM(te),r.oxw(2).select.emit(jt)})("columnContextmenu",function(jt){return r.CHM(te),r.oxw(2).columnContextmenu.emit(jt)}),r.qZA()}if(2&ut){const te=pn.$implicit,Ue=r.oxw(2);r.Q6J("resizeEnabled",te.resizeable)("pressModel",te)("pressEnabled",Ue.reorderable&&te.draggable)("dragX",Ue.reorderable&&te.draggable&&te.dragging)("dragY",!1)("dragModel",te)("dragEventTarget",Ue.dragEventTarget)("headerHeight",Ue.headerHeight)("isTarget",te.isTarget)("targetMarkerTemplate",Ue.targetMarkerTemplate)("targetMarkerContext",te.targetMarkerContext)("column",te)("sortType",Ue.sortType)("sorts",Ue.sorts)("selectionType",Ue.selectionType)("sortAscendingIcon",Ue.sortAscendingIcon)("sortDescendingIcon",Ue.sortDescendingIcon)("sortUnsetIcon",Ue.sortUnsetIcon)("allRowsSelected",Ue.allRowsSelected)}}function se(ut,pn){if(1&ut&&(r.TgZ(0,"div",2),r.YNc(1,H,1,19,"datatable-header-cell",3),r.qZA()),2&ut){const te=pn.$implicit,Ue=r.oxw();r.Tol("datatable-row-"+te.type),r.Q6J("ngStyle",Ue._styleByGroup[te.type]),r.xp6(1),r.Q6J("ngForOf",te.columns)("ngForTrackBy",Ue.columnTrackingFn)}}function ae(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-header",4),r.NdJ("sort",function(jt){return r.CHM(te),r.oxw().onColumnSort(jt)})("resize",function(jt){return r.CHM(te),r.oxw().onColumnResize(jt)})("reorder",function(jt){return r.CHM(te),r.oxw().onColumnReorder(jt)})("select",function(jt){return r.CHM(te),r.oxw().onHeaderSelect(jt)})("columnContextmenu",function(jt){return r.CHM(te),r.oxw().onColumnContextmenu(jt)}),r.ALo(1,"async"),r.qZA()}if(2&ut){const te=r.oxw();r.Q6J("sorts",te.sorts)("sortType",te.sortType)("scrollbarH",te.scrollbarH)("innerWidth",te._innerWidth)("offsetX",r.lcZ(1,15,te._offsetX))("dealsWithGroup",void 0!==te.groupedRows)("columns",te._internalColumns)("headerHeight",te.headerHeight)("reorderable",te.reorderable)("targetMarkerTemplate",te.targetMarkerTemplate)("sortAscendingIcon",te.cssClasses.sortAscending)("sortDescendingIcon",te.cssClasses.sortDescending)("sortUnsetIcon",te.cssClasses.sortUnset)("allRowsSelected",te.allRowsSelected)("selectionType",te.selectionType)}}function ie(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-footer",5),r.NdJ("page",function(jt){return r.CHM(te),r.oxw().onFooterPage(jt)}),r.qZA()}if(2&ut){const te=r.oxw();r.Q6J("rowCount",te.rowCount)("pageSize",te.pageSize)("offset",te.offset)("footerHeight",te.footerHeight)("footerTemplate",te.footer)("totalMessage",te.messages.totalMessage)("pagerLeftArrowIcon",te.cssClasses.pagerLeftArrow)("pagerRightArrowIcon",te.cssClasses.pagerRightArrow)("pagerPreviousIcon",te.cssClasses.pagerPrevious)("selectedCount",te.selected.length)("selectedMessage",!!te.selectionType&&te.messages.selectedMessage)("pagerNextIcon",te.cssClasses.pagerNext)}}function fe(ut,pn){}function _e(ut,pn){if(1&ut&&r.YNc(0,fe,0,0,"ng-template",5),2&ut){const te=r.oxw();r.Q6J("ngTemplateOutlet",te.targetMarkerTemplate)("ngTemplateOutletContext",te.targetMarkerContext)}}function Ce(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"label",6)(1,"input",7),r.NdJ("change",function(){r.CHM(te);const jt=r.oxw();return jt.select.emit(!jt.allRowsSelected)}),r.qZA()()}if(2&ut){const te=r.oxw();r.xp6(1),r.Q6J("checked",te.allRowsSelected)}}function ce(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"span",8)(1,"span",9),r.NdJ("click",function(){return r.CHM(te),r.oxw().onSort()}),r.qZA()()}if(2&ut){const te=r.oxw();r.xp6(1),r.Q6J("innerHTML",te.name,r.oJD)}}function Be(ut,pn){}function Ve(ut,pn){if(1&ut&&r.YNc(0,Be,0,0,"ng-template",5),2&ut){const te=r.oxw();r.Q6J("ngTemplateOutlet",te.column.headerTemplate)("ngTemplateOutletContext",te.cellContext)}}function Xe(ut,pn){}const He=function(ut,pn,te,Ue,jt){return{rowCount:ut,pageSize:pn,selectedCount:te,curPage:Ue,offset:jt}};function Pe(ut,pn){if(1&ut&&r.YNc(0,Xe,0,0,"ng-template",4),2&ut){const te=r.oxw();r.Q6J("ngTemplateOutlet",te.footerTemplate.template)("ngTemplateOutletContext",r.qbA(2,He,te.rowCount,te.pageSize,te.selectedCount,te.curPage,te.offset))}}function Ge(ut,pn){if(1&ut&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&ut){const te=r.oxw(2);r.xp6(1),r.AsE(" ",null==te.selectedCount?null:te.selectedCount.toLocaleString()," ",te.selectedMessage," / ")}}function Oe(ut,pn){if(1&ut&&(r.TgZ(0,"div",5),r.YNc(1,Ge,2,2,"span",1),r._uU(2),r.qZA()),2&ut){const te=r.oxw();r.xp6(1),r.Q6J("ngIf",te.selectedMessage),r.xp6(1),r.AsE(" ",null==te.rowCount?null:te.rowCount.toLocaleString()," ",te.totalMessage," ")}}function Tt(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-pager",6),r.NdJ("change",function(jt){return r.CHM(te),r.oxw().page.emit(jt)}),r.qZA()}if(2&ut){const te=r.oxw();r.Q6J("pagerLeftArrowIcon",te.pagerLeftArrowIcon)("pagerRightArrowIcon",te.pagerRightArrowIcon)("pagerPreviousIcon",te.pagerPreviousIcon)("pagerNextIcon",te.pagerNextIcon)("page",te.curPage)("size",te.pageSize)("count",te.rowCount)("hidden",!te.isVisible)}}const We=function(ut){return{"selected-count":ut}};function Qt(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"li",6)(1,"a",7),r.NdJ("click",function(){const hn=r.CHM(te).$implicit;return r.oxw().selectPage(hn.number)}),r._uU(2),r.qZA()()}if(2&ut){const te=pn.$implicit,Ue=r.oxw();r.ekj("active",te.number===Ue.page),r.uIk("aria-label","page "+te.number),r.xp6(2),r.hij(" ",te.text," ")}}function Nt(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"datatable-body-cell",3),r.NdJ("activate",function(jt){const ii=r.CHM(te).index;return r.oxw(2).onActivate(jt,ii)})("treeAction",function(){return r.CHM(te),r.oxw(2).onTreeAction()}),r.qZA()}if(2&ut){const te=pn.$implicit,Ue=r.oxw(2);r.Q6J("row",Ue.row)("group",Ue.group)("expanded",Ue.expanded)("isSelected",Ue.isSelected)("rowIndex",Ue.rowIndex)("column",te)("rowHeight",Ue.rowHeight)("displayCheck",Ue.displayCheck)("treeStatus",Ue.treeStatus)}}function Yt(ut,pn){if(1&ut&&(r.TgZ(0,"div",1),r.YNc(1,Nt,1,9,"datatable-body-cell",2),r.qZA()),2&ut){const te=pn.$implicit,Ue=r.oxw();r.Gre("datatable-row-",te.type," datatable-row-group"),r.Q6J("ngStyle",Ue._groupStyles[te.type]),r.xp6(1),r.Q6J("ngForOf",te.columns)("ngForTrackBy",Ue.columnTrackingFn)}}function dn(ut,pn){}function rn(ut,pn){if(1&ut&&r.YNc(0,dn,0,0,"ng-template",4),2&ut){const te=r.oxw(2);r.Q6J("ngTemplateOutlet",te.groupHeader.template)("ngTemplateOutletContext",te.groupContext)}}function vt(ut,pn){if(1&ut&&(r.TgZ(0,"div",3),r.YNc(1,rn,1,2,null,1),r.qZA()),2&ut){const te=r.oxw();r.Q6J("ngStyle",te.getGroupHeaderStyle()),r.xp6(1),r.Q6J("ngIf",te.groupHeader&&te.groupHeader.template)}}function xt(ut,pn){1&ut&&r.Hsn(0,0,["*ngIf","(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template"])}function Ct(ut,pn){}function Gt(ut,pn){if(1&ut&&r.YNc(0,Ct,0,0,"ng-template",4),2&ut){const te=r.oxw(2);r.Q6J("ngTemplateOutlet",te.rowDetail.template)("ngTemplateOutletContext",te.rowContext)}}function Fn(ut,pn){if(1&ut&&(r.TgZ(0,"div",5),r.YNc(1,Gt,1,2,null,1),r.qZA()),2&ut){const te=r.oxw();r.Udp("height",te.detailRowHeight,"px"),r.xp6(1),r.Q6J("ngIf",te.rowDetail&&te.rowDetail.template)}}const pr=["cellTemplate"];function mi(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"label",4)(1,"input",5),r.NdJ("click",function(jt){return r.CHM(te),r.oxw().onCheckboxChange(jt)}),r.qZA()()}if(2&ut){const te=r.oxw();r.xp6(1),r.Q6J("checked",te.isSelected)}}function ci(ut,pn){1&ut&&r._UZ(0,"i",11)}function hr(ut,pn){1&ut&&r._UZ(0,"i",12)}function Br(ut,pn){1&ut&&r._UZ(0,"i",13)}function Ur(ut,pn){if(1&ut){const te=r.EpF();r.TgZ(0,"button",7),r.NdJ("click",function(){return r.CHM(te),r.oxw(2).onTreeAction()}),r.TgZ(1,"span"),r.YNc(2,ci,1,0,"i",8),r.YNc(3,hr,1,0,"i",9),r.YNc(4,Br,1,0,"i",10),r.qZA()()}if(2&ut){const te=r.oxw(2);r.Q6J("disabled","disabled"===te.treeStatus),r.xp6(2),r.Q6J("ngIf","loading"===te.treeStatus),r.xp6(1),r.Q6J("ngIf","collapsed"===te.treeStatus),r.xp6(1),r.Q6J("ngIf","expanded"===te.treeStatus||"disabled"===te.treeStatus)}}function Hn(ut,pn){}const er=function(ut){return{cellContext:ut}};function _r(ut,pn){if(1&ut&&r.YNc(0,Hn,0,0,"ng-template",14),2&ut){const te=r.oxw(2);r.Q6J("ngTemplateOutlet",te.column.treeToggleTemplate)("ngTemplateOutletContext",r.VKq(2,er,te.cellContext))}}function ei(ut,pn){if(1&ut&&(r.ynx(0),r.YNc(1,Ur,5,4,"button",6),r.YNc(2,_r,1,4,null,2),r.BQk()),2&ut){const te=r.oxw();r.xp6(1),r.Q6J("ngIf",!te.column.treeToggleTemplate),r.xp6(1),r.Q6J("ngIf",te.column.treeToggleTemplate)}}function bi(ut,pn){if(1&ut&&r._UZ(0,"span",15),2&ut){const te=r.oxw();r.Q6J("title",te.sanitizedValue)("innerHTML",te.value,r.oJD)}}function fi(ut,pn){}function no(ut,pn){if(1&ut&&r.YNc(0,fi,0,0,"ng-template",14,16,r.W1O),2&ut){const te=r.oxw();r.Q6J("ngTemplateOutlet",te.column.cellTemplate)("ngTemplateOutletContext",te.cellContext)}}function xo(ut,pn){if(1&ut&&r._UZ(0,"datatable-body-row",1),2&ut){const te=r.oxw();r.Q6J("innerWidth",te.innerWidth)("offsetX",te.offsetX)("columns",te._internalColumns)("rowHeight",te.rowHeight)("row",te.summaryRow)("rowIndex",-1)}}let Er=(()=>{class ut{constructor(te){this.document=te,this.width=this.getWidth()}getWidth(){const te=this.document.createElement("div");te.style.visibility="hidden",te.style.width="100px",te.style.msOverflowStyle="scrollbar",this.document.body.appendChild(te);const Ue=te.offsetWidth;te.style.overflow="scroll";const jt=this.document.createElement("div");jt.style.width="100%",te.appendChild(jt);const hn=jt.offsetWidth;return te.parentNode.removeChild(te),Ue-hn}}return ut.\u0275fac=function(te){return new(te||ut)(r.LFG(a.K0))},ut.\u0275prov=r.Yz7({token:ut,factory:ut.\u0275fac}),ut})(),an=(()=>{class ut{getDimensions(te){return te.getBoundingClientRect()}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275prov=r.Yz7({token:ut,factory:ut.\u0275fac}),ut})(),vn=(()=>{class ut{constructor(){this.columnInputChanges=new f.xQ}get columnInputChanges$(){return this.columnInputChanges.asObservable()}onInputChange(){this.columnInputChanges.next()}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275prov=r.Yz7({token:ut,factory:ut.\u0275fac}),ut})(),Zn=(()=>{class ut{constructor(te){this.template=te}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.Rgc))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","ngx-datatable-footer-template",""]]}),ut})(),Xn=(()=>{class ut{constructor(te,Ue){this.element=te,this.zone=Ue,this.isVisible=!1,this.visible=new r.vpe}ngOnInit(){this.runCheck()}ngOnDestroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const te=()=>{const{offsetHeight:Ue,offsetWidth:jt}=this.element.nativeElement;Ue&&jt?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>te(),50)}))};this.timeout=setTimeout(()=>te())}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.SBq),r.Y36(r.R0b))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","visibilityObserver",""]],hostVars:2,hostBindings:function(te,Ue){2&te&&r.ekj("visible",Ue.isVisible)},outputs:{visible:"visible"}}),ut})(),zn=(()=>{class ut{constructor(te){this.dragX=!0,this.dragY=!0,this.dragStart=new r.vpe,this.dragging=new r.vpe,this.dragEnd=new r.vpe,this.isDragging=!1,this.element=te.nativeElement}ngOnChanges(te){te.dragEventTarget&&te.dragEventTarget.currentValue&&this.dragModel.dragging&&this.onMousedown(te.dragEventTarget.currentValue)}ngOnDestroy(){this._destroySubscription()}onMouseup(te){!this.isDragging||(this.isDragging=!1,this.element.classList.remove("dragging"),this.subscription&&(this._destroySubscription(),this.dragEnd.emit({event:te,element:this.element,model:this.dragModel})))}onMousedown(te){if(te.target.classList.contains("draggable")&&(this.dragX||this.dragY)){te.preventDefault(),this.isDragging=!0;const jt={x:te.clientX,y:te.clientY},hn=(0,u.R)(document,"mouseup");this.subscription=hn.subscribe(Oi=>this.onMouseup(Oi));const ii=(0,u.R)(document,"mousemove").pipe((0,p.R)(hn)).subscribe(Oi=>this.move(Oi,jt));this.subscription.add(ii),this.dragStart.emit({event:te,element:this.element,model:this.dragModel})}}move(te,Ue){if(!this.isDragging)return;const hn=te.clientY-Ue.y;this.dragX&&(this.element.style.left=te.clientX-Ue.x+"px"),this.dragY&&(this.element.style.top=`${hn}px`),this.element.classList.add("dragging"),this.dragging.emit({event:te,element:this.element,model:this.dragModel})}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.SBq))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","draggable",""]],inputs:{dragX:"dragX",dragY:"dragY",dragEventTarget:"dragEventTarget",dragModel:"dragModel"},outputs:{dragStart:"dragStart",dragging:"dragging",dragEnd:"dragEnd"},features:[r.TTD]}),ut})(),ri=(()=>{class ut{constructor(te,Ue){this.renderer=Ue,this.resizeEnabled=!0,this.resize=new r.vpe,this.resizing=!1,this.element=te.nativeElement}ngAfterViewInit(){const te=this.renderer;this.resizeHandle=te.createElement("span"),te.addClass(this.resizeHandle,this.resizeEnabled?"resize-handle":"resize-handle--not-resizable"),te.appendChild(this.element,this.resizeHandle)}ngOnDestroy(){this._destroySubscription(),this.renderer.destroyNode?this.renderer.destroyNode(this.resizeHandle):this.resizeHandle&&this.renderer.removeChild(this.renderer.parentNode(this.resizeHandle),this.resizeHandle)}onMouseup(){this.resizing=!1,this.subscription&&!this.subscription.closed&&(this._destroySubscription(),this.resize.emit(this.element.clientWidth))}onMousedown(te){const Ue=te.target.classList.contains("resize-handle"),jt=this.element.clientWidth,hn=te.screenX;if(Ue){te.stopPropagation(),this.resizing=!0;const ii=(0,u.R)(document,"mouseup");this.subscription=ii.subscribe(ki=>this.onMouseup());const Oi=(0,u.R)(document,"mousemove").pipe((0,p.R)(ii)).subscribe(ki=>this.move(ki,jt,hn));this.subscription.add(Oi)}}move(te,Ue,jt){const ii=Ue+(te.screenX-jt);(!this.minWidth||ii>=this.minWidth)&&(!this.maxWidth||ii<=this.maxWidth)&&(this.element.style.width=`${ii}px`)}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.SBq),r.Y36(r.Qsj))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","resizeable",""]],hostVars:2,hostBindings:function(te,Ue){1&te&&r.NdJ("mousedown",function(hn){return Ue.onMousedown(hn)}),2&te&&r.ekj("resizeable",Ue.resizeEnabled)},inputs:{resizeEnabled:"resizeEnabled",minWidth:"minWidth",maxWidth:"maxWidth"},outputs:{resize:"resize"}}),ut})(),Gi=(()=>{class ut{constructor(te,Ue){this.document=Ue,this.reorder=new r.vpe,this.targetChanged=new r.vpe,this.differ=te.find({}).create()}ngAfterContentInit(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))}ngOnDestroy(){this.draggables.forEach(te=>{te.dragStart.unsubscribe(),te.dragging.unsubscribe(),te.dragEnd.unsubscribe()})}updateSubscriptions(){const te=this.differ.diff(this.createMapDiffs());if(te){const Ue=({currentValue:hn,previousValue:ii})=>{jt({previousValue:ii}),hn&&(hn.dragStart.subscribe(this.onDragStart.bind(this)),hn.dragging.subscribe(this.onDragging.bind(this)),hn.dragEnd.subscribe(this.onDragEnd.bind(this)))},jt=({previousValue:hn})=>{hn&&(hn.dragStart.unsubscribe(),hn.dragging.unsubscribe(),hn.dragEnd.unsubscribe())};te.forEachAddedItem(Ue),te.forEachRemovedItem(jt)}}onDragStart(){this.positions={};let te=0;for(const Ue of this.draggables.toArray()){const jt=Ue.element,hn=parseInt(jt.offsetLeft.toString(),0);this.positions[Ue.dragModel.prop]={left:hn,right:hn+parseInt(jt.offsetWidth.toString(),0),index:te++,element:jt}}}onDragging({model:Ue,event:jt}){const hn=this.positions[Ue.prop],ii=this.isTarget(Ue,jt);ii?this.lastDraggingIndex!==ii.i&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,newIndex:ii.i,initialIndex:hn.index}),this.lastDraggingIndex=ii.i):this.lastDraggingIndex!==hn.index&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,initialIndex:hn.index}),this.lastDraggingIndex=hn.index)}onDragEnd({element:te,model:Ue,event:jt}){const hn=this.positions[Ue.prop],ii=this.isTarget(Ue,jt);ii&&this.reorder.emit({prevIndex:hn.index,newIndex:ii.i,model:Ue}),this.lastDraggingIndex=void 0,te.style.left="auto"}isTarget(te,Ue){let jt=0;const Oi=this.document.elementsFromPoint(Ue.x||Ue.clientX,Ue.y||Ue.clientY);for(const ki in this.positions){const _s=this.positions[ki];if(te.prop!==ki&&Oi.find(Vo=>Vo===_s.element))return{pos:_s,i:jt};jt++}}createMapDiffs(){return this.draggables.toArray().reduce((te,Ue)=>(te[Ue.dragModel.$$id]=Ue,te),{})}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.aQg),r.Y36(a.K0))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","orderable",""]],contentQueries:function(te,Ue,jt){if(1&te&&r.Suo(jt,zn,5),2&te){let hn;r.iGM(hn=r.CRH())&&(Ue.draggables=hn)}},outputs:{reorder:"reorder",targetChanged:"targetChanged"}}),ut})(),ui=(()=>{class ut{constructor(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new r.vpe,this.longPressing=new r.vpe,this.longPressEnd=new r.vpe,this.mouseX=0,this.mouseY=0}get press(){return this.pressing}get isLongPress(){return this.isLongPressing}onMouseDown(te){if(1!==te.which||!this.pressEnabled||te.target.classList.contains("resize-handle"))return;this.mouseX=te.clientX,this.mouseY=te.clientY,this.pressing=!0,this.isLongPressing=!1;const jt=(0,u.R)(document,"mouseup");this.subscription=jt.subscribe(hn=>this.onMouseup()),this.timeout=setTimeout(()=>{this.isLongPressing=!0,this.longPressStart.emit({event:te,model:this.pressModel}),this.subscription.add((0,u.R)(document,"mousemove").pipe((0,p.R)(jt)).subscribe(hn=>this.onMouseMove(hn))),this.loop(te)},this.duration),this.loop(te)}onMouseMove(te){if(this.pressing&&!this.isLongPressing){const Ue=Math.abs(te.clientX-this.mouseX)>10,jt=Math.abs(te.clientY-this.mouseY)>10;(Ue||jt)&&this.endPress()}}loop(te){this.isLongPressing&&(this.timeout=setTimeout(()=>{this.longPressing.emit({event:te,model:this.pressModel}),this.loop(te)},50))}endPress(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})}onMouseup(){this.endPress()}ngOnDestroy(){this._destroySubscription()}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275dir=r.lG2({type:ut,selectors:[["","long-press",""]],hostVars:4,hostBindings:function(te,Ue){1&te&&r.NdJ("mousedown",function(hn){return Ue.onMouseDown(hn)}),2&te&&r.ekj("press",Ue.press)("longpress",Ue.isLongPress)},inputs:{pressEnabled:"pressEnabled",duration:"duration",pressModel:"pressModel"},outputs:{longPressStart:"longPressStart",longPressing:"longPressing",longPressEnd:"longPressEnd"}}),ut})(),vr=(()=>{class ut{constructor(te,Ue,jt){this.ngZone=te,this.renderer=jt,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new r.vpe,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this._scrollEventListener=null,this.element=Ue.nativeElement}ngOnInit(){if(this.scrollbarV||this.scrollbarH){const te=this.renderer;this.parentElement=te.parentNode(te.parentNode(this.element)),this._scrollEventListener=this.onScrolled.bind(this),this.parentElement.addEventListener("scroll",this._scrollEventListener)}}ngOnDestroy(){this._scrollEventListener&&(this.parentElement.removeEventListener("scroll",this._scrollEventListener),this._scrollEventListener=null)}setOffset(te){this.parentElement&&(this.parentElement.scrollTop=te)}onScrolled(te){const Ue=te.currentTarget;requestAnimationFrame(()=>{this.scrollYPos=Ue.scrollTop,this.scrollXPos=Ue.scrollLeft,this.updateOffset()})}updateOffset(){let te;this.scrollYPosthis.prevScrollYPos&&(te="up"),this.scroll.emit({direction:te,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(r.Qsj))},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-scroller"]],hostAttrs:[1,"datatable-scroll"],hostVars:4,hostBindings:function(te,Ue){2&te&&r.Udp("height",Ue.scrollHeight,"px")("width",Ue.scrollWidth,"px")},inputs:{scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth"},outputs:{scroll:"scroll"},ngContentSelectors:T,decls:1,vars:0,template:function(te,Ue){1&te&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),ut})(),Ji=(()=>{class ut{constructor(te){this.template=te}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.Rgc))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","ngx-datatable-group-header-template",""]]}),ut})(),mn=(()=>{class ut{constructor(){this.rowHeight=0,this.toggle=new r.vpe}get template(){return this._templateInput||this._templateQuery}toggleExpandGroup(te){this.toggle.emit({type:"group",value:te})}expandAllGroups(){this.toggle.emit({type:"all",value:!0})}collapseAllGroups(){this.toggle.emit({type:"all",value:!1})}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275dir=r.lG2({type:ut,selectors:[["ngx-datatable-group-header"]],contentQueries:function(te,Ue,jt){if(1&te&&r.Suo(jt,Ji,7,r.Rgc),2&te){let hn;r.iGM(hn=r.CRH())&&(Ue._templateQuery=hn.first)}},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),ut})();function Rn(){return""}function Wn(ut){return null==ut?Rn:"number"==typeof ut?et:-1!==ut.indexOf(".")?Re:Le}function et(ut,pn){if(null==ut)return"";if(!ut||null==pn)return ut;const te=ut[pn];return null==te?"":te}function Le(ut,pn){if(null==ut)return"";if(!ut||!pn)return ut;const te=ut[pn];return null==te?"":te}function Re(ut,pn){if(null==ut)return"";if(!ut||!pn)return ut;let te=ut[pn];if(void 0!==te)return te;te=ut;const Ue=pn.split(".");if(Ue.length)for(let jt=0;jtWn(ut)(pn,ut))}function dt(ut,pn,te){if(pn&&te){const Ue={},jt=ut.length;let hn=null;Ue[0]=new st;const ii=ut.reduce((ki,_s)=>{const Vo=te(_s);return-1===ki.indexOf(Vo)&&ki.push(Vo),ki},[]);for(let ki=0;ki-1&&(_s=Vo),hn.parent=Ue[_s],hn.row.level=hn.parent.row.level+1,hn.parent.children.push(hn)}let Oi=[];return Ue[0].flatten(function(){Oi=[...Oi,this.row]},!0),Oi}return ut}class st{constructor(pn=null){pn||(pn={level:-1,treeStatus:"expanded"}),this.row=pn,this.parent=null,this.children=[]}flatten(pn,te){if("expanded"===this.row.treeStatus)for(let Ue=0,jt=this.children.length;Ue` ${pn}`).replace(/^./,pn=>pn.toUpperCase())}function ti(ut){if(!ut)return;let pn=!1;for(const te of ut)te.$$id||(te.$$id=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)),Ut(te.prop)&&te.name&&(te.prop=nn(te.name)),te.$$valueGetter||(te.$$valueGetter=Wn(te.prop)),!Ut(te.prop)&&Ut(te.name)&&(te.name=Fe(String(te.prop))),Ut(te.prop)&&Ut(te.name)&&(te.name=""),te.hasOwnProperty("resizeable")||(te.resizeable=!0),te.hasOwnProperty("sortable")||(te.sortable=!0),te.hasOwnProperty("draggable")||(te.draggable=!0),te.hasOwnProperty("canAutoResize")||(te.canAutoResize=!0),te.hasOwnProperty("width")||(te.width=150),te.hasOwnProperty("isTreeColumn")&&te.isTreeColumn&&!pn?pn=!0:te.isTreeColumn=!1}function Ut(ut){return null==ut}var Et=(()=>{return(ut=Et||(Et={})).standard="standard",ut.flex="flex",ut.force="force",Et;var ut})(),$t=(()=>{return(ut=$t||($t={})).single="single",ut.multi="multi",ut.multiClick="multiClick",ut.cell="cell",ut.checkbox="checkbox",$t;var ut})(),_t=(()=>{return(ut=_t||(_t={})).single="single",ut.multi="multi",_t;var ut})(),yt=(()=>{return(ut=yt||(yt={})).header="header",ut.body="body",yt;var ut})();let Vt=(()=>{class ut{constructor(te){this.template=te}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.Rgc))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","ngx-datatable-header-template",""]]}),ut})(),yn=(()=>{class ut{constructor(te){this.template=te}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.Rgc))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","ngx-datatable-cell-template",""]]}),ut})(),Cr=(()=>{class ut{constructor(te){this.template=te}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.Rgc))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","ngx-datatable-tree-toggle",""]]}),ut})(),xi=(()=>{class ut{constructor(te){this.columnChangesService=te,this.isFirstChange=!0}get cellTemplate(){return this._cellTemplateInput||this._cellTemplateQuery}get headerTemplate(){return this._headerTemplateInput||this._headerTemplateQuery}get treeToggleTemplate(){return this._treeToggleTemplateInput||this._treeToggleTemplateQuery}ngOnChanges(){this.isFirstChange?this.isFirstChange=!1:this.columnChangesService.onInputChange()}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(vn))},ut.\u0275dir=r.lG2({type:ut,selectors:[["ngx-datatable-column"]],contentQueries:function(te,Ue,jt){if(1&te&&(r.Suo(jt,yn,7,r.Rgc),r.Suo(jt,Vt,7,r.Rgc),r.Suo(jt,Cr,7,r.Rgc)),2&te){let hn;r.iGM(hn=r.CRH())&&(Ue._cellTemplateQuery=hn.first),r.iGM(hn=r.CRH())&&(Ue._headerTemplateQuery=hn.first),r.iGM(hn=r.CRH())&&(Ue._treeToggleTemplateQuery=hn.first)}},inputs:{name:"name",prop:"prop",frozenLeft:"frozenLeft",frozenRight:"frozenRight",flexGrow:"flexGrow",resizeable:"resizeable",comparator:"comparator",pipe:"pipe",sortable:"sortable",draggable:"draggable",canAutoResize:"canAutoResize",minWidth:"minWidth",width:"width",maxWidth:"maxWidth",checkboxable:"checkboxable",headerCheckboxable:"headerCheckboxable",headerClass:"headerClass",cellClass:"cellClass",isTreeColumn:"isTreeColumn",treeLevelIndent:"treeLevelIndent",summaryFunc:"summaryFunc",summaryTemplate:"summaryTemplate",_cellTemplateInput:["cellTemplate","_cellTemplateInput"],_headerTemplateInput:["headerTemplate","_headerTemplateInput"],_treeToggleTemplateInput:["treeToggleTemplate","_treeToggleTemplateInput"]},features:[r.TTD]}),ut})(),yi=(()=>{class ut{constructor(te){this.template=te}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.Rgc))},ut.\u0275dir=r.lG2({type:ut,selectors:[["","ngx-datatable-row-detail-template",""]]}),ut})(),Uo=(()=>{class ut{constructor(){this.rowHeight=0,this.toggle=new r.vpe}get template(){return this._templateInput||this._templateQuery}toggleExpandRow(te){this.toggle.emit({type:"row",value:te})}expandAllRows(){this.toggle.emit({type:"all",value:!0})}collapseAllRows(){this.toggle.emit({type:"all",value:!1})}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275dir=r.lG2({type:ut,selectors:[["ngx-datatable-row-detail"]],contentQueries:function(te,Ue,jt){if(1&te&&r.Suo(jt,yi,7,r.Rgc),2&te){let hn;r.iGM(hn=r.CRH())&&(Ue._templateQuery=hn.first)}},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),ut})(),Qo=(()=>{class ut{get template(){return this._templateInput||this._templateQuery}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275dir=r.lG2({type:ut,selectors:[["ngx-datatable-footer"]],contentQueries:function(te,Ue,jt){if(1&te&&r.Suo(jt,Zn,5,r.Rgc),2&te){let hn;r.iGM(hn=r.CRH())&&(Ue._templateQuery=hn.first)}},inputs:{footerHeight:"footerHeight",totalMessage:"totalMessage",selectedMessage:"selectedMessage",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",_templateInput:["template","_templateInput"]}}),ut})();function lo(ut){const pn={left:[],center:[],right:[]};if(ut)for(const te of ut)te.frozenLeft?pn.left.push(te):te.frozenRight?pn.right.push(te):pn.center.push(te);return pn}function Ri(ut,pn){return{left:ko(ut.left),center:ko(ut.center),right:ko(ut.right),total:Math.floor(ko(pn))}}function ko(ut,pn){let te=0;if(ut)for(const Ue of ut)te+=parseFloat(pn&&Ue[pn]?Ue[pn]:Ue.width);return te}function ir(ut){const pn=[],te=lo(ut);return pn.push({type:"left",columns:te.left}),pn.push({type:"center",columns:te.center}),pn.push({type:"right",columns:te.right}),pn}class si{constructor(){this.treeArray=[]}clearCache(){this.treeArray=[]}initCache(pn){const{rows:te,rowHeight:Ue,detailRowHeight:jt,externalVirtual:hn,rowCount:ii,rowIndexes:Oi,rowExpansions:ki}=pn,_s="function"==typeof Ue,Vo="function"==typeof jt;if(!_s&&isNaN(Ue))throw new Error(`Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: (${Ue}) when 'scrollbarV' is enabled.`);if(!Vo&&isNaN(jt))throw new Error(`Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: (${jt}) when 'scrollbarV' is enabled.`);const Fs=hn?ii:te.length;this.treeArray=new Array(Fs);for(let Ks=0;Ks=0;)te+=this.treeArray[pn],pn=(pn&pn+1)-1;return te}queryBetween(pn,te){return this.query(te)-this.query(pn-1)}calcRowIndex(pn){if(!this.treeArray.length)return 0;let te=-1;const Ue=this.treeArray.length;for(let hn=Math.pow(2,Ue.toString(2).length-1);0!==hn;hn>>=1){const ii=te+hn;ii=this.treeArray[ii]&&(pn-=this.treeArray[ii],te=ii)}return te+1}}const kn={},nr="undefined"!=typeof document?document.createElement("div").style:void 0,ao=function(){const ut="undefined"!=typeof window?window.getComputedStyle(document.documentElement,""):void 0,pn=void 0!==ut?Array.prototype.slice.call(ut).join("").match(/-(moz|webkit|ms)-/):null,te=null!==pn?pn[1]:void 0,Ue=void 0!==te?"WebKit|Moz|MS|O".match(new RegExp("("+te+")","i"))[1]:void 0;return Ue?{dom:Ue,lowercase:te,css:`-${te}-`,js:te[0].toUpperCase()+te.substr(1)}:void 0}();function $i(ut){const pn=nn(ut);return kn[pn]||(void 0!==ao&&void 0!==nr[ao.css+ut]?kn[pn]=ao.css+ut:void 0!==nr[ut]&&(kn[pn]=ut)),kn[pn]}const Eo="undefined"!=typeof window?$i("transform"):void 0,mo="undefined"!=typeof window?$i("backfaceVisibility"):void 0,Go="undefined"!=typeof window?!!$i("transform"):void 0,ua="undefined"!=typeof window?!!$i("perspective"):void 0,or="undefined"!=typeof window?window.navigator.userAgent:"Chrome",Mr=/Safari\//.test(or)&&!/Chrome\//.test(or);function Or(ut,pn,te){void 0!==Eo&&Go?!Mr&&ua?(ut[Eo]=`translate3d(${pn}px, ${te}px, 0)`,ut[mo]="hidden"):ut[nn(Eo)]=`translate(${pn}px, ${te}px)`:(ut.top=`${te}px`,ut.left=`${pn}px`)}let cr=(()=>{class ut{constructor(te){this.cd=te,this.selected=[],this.scroll=new r.vpe,this.page=new r.vpe,this.activate=new r.vpe,this.select=new r.vpe,this.detailToggle=new r.vpe,this.rowContextmenu=new r.vpe(!1),this.treeAction=new r.vpe,this.rowHeightsCache=new si,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new WeakMap,this.rowExpansions=[],this.getDetailRowHeight=(Ue,jt)=>{if(!this.rowDetail)return 0;const hn=this.rowDetail.rowHeight;return"function"==typeof hn?hn(Ue,jt):hn},this.rowTrackingFn=(Ue,jt)=>{const hn=this.getRowIndex(jt);return this.trackByProp?jt[this.trackByProp]:hn}}set pageSize(te){this._pageSize=te,this.recalcLayout()}get pageSize(){return this._pageSize}set rows(te){this._rows=te,this.recalcLayout()}get rows(){return this._rows}set columns(te){this._columns=te;const Ue=lo(te);this.columnGroupWidths=Ri(Ue,te)}get columns(){return this._columns}set offset(te){this._offset=te,(!this.scrollbarV||this.scrollbarV&&!this.virtualization)&&this.recalcLayout()}get offset(){return this._offset}set rowCount(te){this._rowCount=te,this.recalcLayout()}get rowCount(){return this._rowCount}get bodyWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}set bodyHeight(te){this._bodyHeight=this.scrollbarV?te+"px":"auto",this.recalcLayout()}get bodyHeight(){return this._bodyHeight}get selectEnabled(){return!!this.selectionType}get scrollHeight(){if(this.scrollbarV&&this.virtualization&&this.rowCount)return this.rowHeightsCache.query(this.rowCount-1)}ngOnInit(){this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(({type:te,value:Ue})=>{"row"===te&&this.toggleRowExpansion(Ue),"all"===te&&this.toggleAllRows(Ue),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(({type:te,value:Ue})=>{"group"===te&&this.toggleRowExpansion(Ue),"all"===te&&this.toggleAllRows(Ue),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()}))}ngOnDestroy(){(this.rowDetail||this.groupHeader)&&this.listener.unsubscribe()}updateOffsetY(te){this.scroller&&(this.scrollbarV&&this.virtualization&&te?te=this.rowHeightsCache.query(this.pageSize*te-1):this.scrollbarV&&!this.virtualization&&(te=0),this.scroller.setOffset(te||0))}onBodyScroll(te){const Ue=te.scrollYPos,jt=te.scrollXPos;(this.offsetY!==Ue||this.offsetX!==jt)&&this.scroll.emit({offsetY:Ue,offsetX:jt}),this.offsetY=Ue,this.offsetX=jt,this.updateIndexes(),this.updatePage(te.direction),this.updateRows()}updatePage(te){let Ue=this.indexes.first/this.pageSize;"up"===te?Ue=Math.ceil(Ue):"down"===te&&(Ue=Math.floor(Ue)),void 0!==te&&!isNaN(Ue)&&this.page.emit({offset:Ue})}updateRows(){const{first:te,last:Ue}=this.indexes;let jt=te,hn=0;const ii=[];if(this.groupedRows){let Oi=3;for(1===this.groupedRows.length&&(Oi=this.groupedRows[0].value.length);jt{this.rowIndexes.set(_s,`${jt}-${Vo}`)}),ii[hn]=ki,hn++,jt++}}else for(;jtthis.loadingIndicator=!1,500)}updateIndexes(){let te=0,Ue=0;if(this.scrollbarV)if(this.virtualization){const jt=parseInt(this.bodyHeight,0);te=this.rowHeightsCache.getRowIndex(this.offsetY),Ue=this.rowHeightsCache.getRowIndex(jt+this.offsetY)+1}else te=0,Ue=this.rowCount;else this.externalPaging||(te=Math.max(this.offset*this.pageSize,0)),Ue=Math.min(te+this.pageSize,this.rowCount);this.indexes={first:te,last:Ue}}refreshRowHeightCache(){if(this.scrollbarV&&(!this.scrollbarV||this.virtualization)&&(this.rowHeightsCache.clearCache(),this.rows&&this.rows.length)){const te=new Set;for(const Ue of this.rows)this.getRowExpanded(Ue)&&te.add(Ue);this.rowHeightsCache.initCache({rows:this.rows,rowHeight:this.rowHeight,detailRowHeight:this.getDetailRowHeight,externalVirtual:this.scrollbarV&&this.externalPaging,rowCount:this.rowCount,rowIndexes:this.rowIndexes,rowExpansions:te})}}getAdjustedViewPortIndex(){const te=this.indexes.first;return this.scrollbarV&&this.virtualization&&this.rowHeightsCache.query(te-1)<=this.offsetY?te-1:te}toggleRowExpansion(te){const Ue=this.getAdjustedViewPortIndex(),jt=this.getRowExpandedIdx(te,this.rowExpansions),hn=jt>-1;if(this.scrollbarV&&this.virtualization){const ii=this.getDetailRowHeight(te)*(hn?-1:1),Oi=this.getRowIndex(te);this.rowHeightsCache.update(Oi,ii)}hn?this.rowExpansions.splice(jt,1):this.rowExpansions.push(te),this.detailToggle.emit({rows:[te],currentIndex:Ue})}toggleAllRows(te){this.rowExpansions=[];const Ue=this.getAdjustedViewPortIndex();if(te)for(const jt of this.rows)this.rowExpansions.push(jt);this.scrollbarV&&this.recalcLayout(),this.detailToggle.emit({rows:this.rows,currentIndex:Ue})}recalcLayout(){this.refreshRowHeightCache(),this.updateIndexes(),this.updateRows()}columnTrackingFn(te,Ue){return Ue.$$id}stylesByGroup(te){const Ue=this.columnGroupWidths,jt=this.offsetX,hn={width:`${Ue[te]}px`};if("left"===te)Or(hn,jt,0);else if("right"===te){const ii=parseInt(this.innerWidth+"",0);Or(hn,-1*(Ue.total-ii-jt),0)}return hn}getRowExpanded(te){if(0===this.rowExpansions.length&&this.groupExpansionDefault)for(const Ue of this.groupedRows)this.rowExpansions.push(Ue);return this.getRowExpandedIdx(te,this.rowExpansions)>-1}getRowExpandedIdx(te,Ue){if(!Ue||!Ue.length)return-1;const jt=this.rowIdentity(te);return Ue.findIndex(hn=>this.rowIdentity(hn)===jt)}getRowIndex(te){return this.rowIndexes.get(te)||0}onTreeAction(te){this.treeAction.emit({row:te})}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.sBO))},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-body"]],viewQuery:function(te,Ue){if(1&te&&r.Gf(vr,5),2&te){let jt;r.iGM(jt=r.CRH())&&(Ue.scroller=jt.first)}},hostAttrs:[1,"datatable-body"],hostVars:4,hostBindings:function(te,Ue){2&te&&r.Udp("width",Ue.bodyWidth)("height",Ue.bodyHeight)},inputs:{selected:"selected",pageSize:"pageSize",rows:"rows",columns:"columns",offset:"offset",rowCount:"rowCount",bodyHeight:"bodyHeight",offsetX:"offsetX",loadingIndicator:"loadingIndicator",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",externalPaging:"externalPaging",rowHeight:"rowHeight",emptyMessage:"emptyMessage",selectionType:"selectionType",rowIdentity:"rowIdentity",rowDetail:"rowDetail",groupHeader:"groupHeader",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",rowClass:"rowClass",groupedRows:"groupedRows",groupExpansionDefault:"groupExpansionDefault",innerWidth:"innerWidth",groupRowsBy:"groupRowsBy",virtualization:"virtualization",summaryRow:"summaryRow",summaryPosition:"summaryPosition",summaryHeight:"summaryHeight"},outputs:{scroll:"scroll",page:"page",activate:"activate",select:"select",detailToggle:"detailToggle",rowContextmenu:"rowContextmenu",treeAction:"treeAction"},decls:5,vars:9,consts:[[4,"ngIf"],[3,"selected","rows","selectCheck","selectEnabled","selectionType","rowIdentity","select","activate"],["selector",""],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll",4,"ngIf"],["class","empty-row",3,"innerHTML",4,"ngIf"],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll"],[3,"rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"rowHeight","offsetX","innerWidth","rows","columns"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate",4,"ngIf","ngIfElse"],["groupedRowsTemplate",""],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate"],[3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns"],[1,"empty-row",3,"innerHTML"]],template:function(te,Ue){1&te&&(r.YNc(0,M,1,0,"datatable-progress",0),r.TgZ(1,"datatable-selection",1,2),r.NdJ("select",function(hn){return Ue.select.emit(hn)})("activate",function(hn){return Ue.activate.emit(hn)}),r.YNc(3,ue,4,8,"datatable-scroller",3),r.YNc(4,re,1,1,"div",4),r.qZA()),2&te&&(r.Q6J("ngIf",Ue.loadingIndicator),r.xp6(1),r.Q6J("selected",Ue.selected)("rows",Ue.rows)("selectCheck",Ue.selectCheck)("selectEnabled",Ue.selectEnabled)("selectionType",Ue.selectionType)("rowIdentity",Ue.rowIdentity),r.xp6(2),r.Q6J("ngIf",null==Ue.rows?null:Ue.rows.length),r.xp6(1),r.Q6J("ngIf",!(null!=Ue.rows&&Ue.rows.length||Ue.loadingIndicator)))},directives:function(){return[a.O5,yl,$o,vr,hs,a.sg,Wa,a.PC,ys]},encapsulation:2,changeDetection:0}),ut})(),pi=(()=>{class ut{constructor(te){this.cd=te,this.sort=new r.vpe,this.reorder=new r.vpe,this.resize=new r.vpe,this.select=new r.vpe,this.columnContextmenu=new r.vpe(!1),this._columnGroupWidths={total:100},this._styleByGroup={left:{},center:{},right:{}},this.destroyed=!1}set innerWidth(te){this._innerWidth=te,setTimeout(()=>{if(this._columns){const Ue=lo(this._columns);this._columnGroupWidths=Ri(Ue,this._columns),this.setStylesByGroup()}})}get innerWidth(){return this._innerWidth}set headerHeight(te){this._headerHeight="auto"!==te?`${te}px`:te}get headerHeight(){return this._headerHeight}set columns(te){this._columns=te;const Ue=lo(te);this._columnsByPin=ir(te),setTimeout(()=>{this._columnGroupWidths=Ri(Ue,te),this.setStylesByGroup()})}get columns(){return this._columns}set offsetX(te){this._offsetX=te,this.setStylesByGroup()}get offsetX(){return this._offsetX}ngOnDestroy(){this.destroyed=!0}onLongPressStart({event:te,model:Ue}){Ue.dragging=!0,this.dragEventTarget=te}onLongPressEnd({event:te,model:Ue}){this.dragEventTarget=te,setTimeout(()=>{const jt=this._columns.find(hn=>hn.$$id===Ue.$$id);jt&&(jt.dragging=!1)},5)}get headerWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}trackByGroups(te,Ue){return Ue.type}columnTrackingFn(te,Ue){return Ue.$$id}onColumnResized(te,Ue){te<=Ue.minWidth?te=Ue.minWidth:te>=Ue.maxWidth&&(te=Ue.maxWidth),this.resize.emit({column:Ue,prevValue:Ue.width,newValue:te})}onColumnReordered({prevIndex:te,newIndex:Ue,model:jt}){const hn=this.getColumn(Ue);hn.isTarget=!1,hn.targetMarkerContext=void 0,this.reorder.emit({column:jt,prevValue:te,newValue:Ue})}onTargetChanged({prevIndex:te,newIndex:Ue,initialIndex:jt}){if(te||0===te){const hn=this.getColumn(te);hn.isTarget=!1,hn.targetMarkerContext=void 0}if(Ue||0===Ue){const hn=this.getColumn(Ue);hn.isTarget=!0,jt!==Ue&&(hn.targetMarkerContext={class:"targetMarker ".concat(jt>Ue?"dragFromRight":"dragFromLeft")})}}getColumn(te){const Ue=this._columnsByPin[0].columns.length;if(te((Oi=Object.assign({},Oi)).prop===te.prop&&(hn=ki),Oi));return void 0===jt?ii.splice(hn,1):Ue?ii[hn].dir=jt:(this.sortType===_t.single&&ii.splice(0,this.sorts.length),ii.push({dir:jt,prop:te.prop})),ii}setStylesByGroup(){this._styleByGroup.left=this.calcStylesByGroup("left"),this._styleByGroup.center=this.calcStylesByGroup("center"),this._styleByGroup.right=this.calcStylesByGroup("right"),this.destroyed||this.cd.detectChanges()}calcStylesByGroup(te){const Ue=this._columnGroupWidths,hn={width:`${Ue[te]}px`};return"center"===te?Or(hn,-1*this.offsetX,0):"right"===te&&Or(hn,-1*(Ue.total-this.innerWidth),0),hn}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.sBO))},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-header"]],hostAttrs:[1,"datatable-header"],hostVars:4,hostBindings:function(te,Ue){2&te&&r.Udp("height",Ue.headerHeight)("width",Ue.headerWidth)},inputs:{innerWidth:"innerWidth",headerHeight:"headerHeight",columns:"columns",offsetX:"offsetX",sorts:"sorts",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",scrollbarH:"scrollbarH",dealsWithGroup:"dealsWithGroup",targetMarkerTemplate:"targetMarkerTemplate",sortType:"sortType",allRowsSelected:"allRowsSelected",selectionType:"selectionType",reorderable:"reorderable"},outputs:{sort:"sort",reorder:"reorder",resize:"resize",select:"select",columnContextmenu:"columnContextmenu"},decls:2,vars:4,consts:[["orderable","",1,"datatable-header-inner",3,"reorder","targetChanged"],[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],["resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu"]],template:function(te,Ue){1&te&&(r.TgZ(0,"div",0),r.NdJ("reorder",function(hn){return Ue.onColumnReordered(hn)})("targetChanged",function(hn){return Ue.onTargetChanged(hn)}),r.YNc(1,se,2,5,"div",1),r.qZA()),2&te&&(r.Udp("width",Ue._columnGroupWidths.total,"px"),r.xp6(1),r.Q6J("ngForOf",Ue._columnsByPin)("ngForTrackBy",Ue.trackByGroups))},directives:function(){return[Gi,a.sg,a.PC,Ra,ri,ui,zn]},encapsulation:2,changeDetection:0}),ut})();function Sn(ut,pn,te){te=te||{};let Ue,jt,hn,ii=null,Oi=0;function ki(){Oi=!1===te.leading?0:+new Date,ii=null,hn=ut.apply(Ue,jt)}return function(){const _s=+new Date;!Oi&&!1===te.leading&&(Oi=_s);const Vo=pn-(_s-Oi);return Ue=this,jt=arguments,Vo<=0?(clearTimeout(ii),ii=null,Oi=_s,hn=ut.apply(Ue,jt)):!ii&&!1!==te.trailing&&(ii=setTimeout(ki,Vo)),hn}}function $n(ut,pn){return function(Ue,jt,hn){return{configurable:!0,enumerable:hn.enumerable,get:function(){return Object.defineProperty(this,jt,{configurable:!0,enumerable:hn.enumerable,value:Sn(hn.value,ut,pn)}),this[jt]}}}}function js(ut,pn){for(const te of pn){const Ue=ut.indexOf(te);ut.splice(Ue,1)}}function ds(ut,pn=300){let te=0;for(const Ue of ut)te+=Ue.width||pn;return te}var es=(()=>{return(ut=es||(es={})).asc="asc",ut.desc="desc",es;var ut})();function ya(ut,pn){if(null==ut&&(ut=0),null==pn&&(pn=0),ut instanceof Date&&pn instanceof Date){if(utpn)return 1}else if(isNaN(parseFloat(ut))||!isFinite(ut)||isNaN(parseFloat(pn))||!isFinite(pn)){if(ut=String(ut),pn=String(pn),ut.toLowerCase()pn.toLowerCase())return 1}else{if(parseFloat(ut)parseFloat(pn))return 1}return 0}let sa=(()=>{class ut{constructor(te,Ue,jt,hn,ii,Oi,ki){this.scrollbarHelper=te,this.dimensionsHelper=Ue,this.cd=jt,this.columnChangesService=Oi,this.configuration=ki,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=Et.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.swapColumns=!0,this.sortType=_t.single,this.sorts=[],this.cssClasses={sortAscending:"datatable-icon-up",sortDescending:"datatable-icon-down",sortUnset:"datatable-icon-sort-unset",pagerLeftArrow:"datatable-icon-left",pagerRightArrow:"datatable-icon-right",pagerPrevious:"datatable-icon-prev",pagerNext:"datatable-icon-skip"},this.messages={emptyMessage:"No data to display",totalMessage:"total",selectedMessage:"selected"},this.groupExpansionDefault=!1,this.selectAllRowsOnPage=!1,this.virtualization=!0,this.summaryRow=!1,this.summaryHeight=30,this.summaryPosition="top",this.scroll=new r.vpe,this.activate=new r.vpe,this.select=new r.vpe,this.sort=new r.vpe,this.page=new r.vpe,this.reorder=new r.vpe,this.resize=new r.vpe,this.tableContextmenu=new r.vpe(!1),this.treeAction=new r.vpe,this.rowCount=0,this._offsetX=new e.X(0),this._count=0,this._offset=0,this._subscriptions=[],this.rowIdentity=_s=>this._groupRowsBy?_s.key:_s,this.element=hn.nativeElement,this.rowDiffer=ii.find({}).create(),this.configuration&&this.configuration.messages&&(this.messages=Object.assign({},this.configuration.messages))}set rows(te){this._rows=te,te&&(this._internalRows=[...te]),this.externalSorting||this.sortInternalRows(),this._internalRows=dt(this._internalRows,Se(this.treeFromRelation),Se(this.treeToRelation)),this.recalculate(),this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)),this.cd.markForCheck()}get rows(){return this._rows}set groupRowsBy(te){te&&(this._groupRowsBy=te,this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)))}get groupRowsBy(){return this._groupRowsBy}set columns(te){te&&(this._internalColumns=[...te],ti(this._internalColumns),this.recalculateColumns()),this._columns=te}get columns(){return this._columns}set limit(te){this._limit=te,this.recalculate()}get limit(){return this._limit}set count(te){this._count=te,this.recalculate()}get count(){return this._count}set offset(te){this._offset=te}get offset(){return Math.max(Math.min(this._offset,Math.ceil(this.rowCount/this.pageSize)-1),0)}get isFixedHeader(){const te=this.headerHeight;return"string"!=typeof te||"auto"!==te}get isFixedRow(){return"auto"!==this.rowHeight}get isVertScroll(){return this.scrollbarV}get isVirtualized(){return this.virtualization}get isHorScroll(){return this.scrollbarH}get isSelectable(){return void 0!==this.selectionType}get isCheckboxSelection(){return this.selectionType===$t.checkbox}get isCellSelection(){return this.selectionType===$t.cell}get isSingleSelection(){return this.selectionType===$t.single}get isMultiSelection(){return this.selectionType===$t.multi}get isMultiClickSelection(){return this.selectionType===$t.multiClick}set columnTemplates(te){this._columnTemplates=te,this.translateColumns(te)}get columnTemplates(){return this._columnTemplates}get allRowsSelected(){let te=this.rows&&this.selected&&this.selected.length===this.rows.length;if(this.bodyComponent&&this.selectAllRowsOnPage){const Ue=this.bodyComponent.indexes;te=this.selected.length===Ue.last-Ue.first}return this.selected&&this.rows&&0!==this.rows.length&&te}ngOnInit(){this.recalculate()}ngAfterViewInit(){this.externalSorting||this.sortInternalRows(),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(()=>{this.recalculate(),this.externalPaging&&this.scrollbarV&&this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:0})})}ngAfterContentInit(){this.columnTemplates.changes.subscribe(te=>this.translateColumns(te)),this.listenForColumnInputChanges()}translateColumns(te){if(te){const Ue=te.toArray();Ue.length&&(this._internalColumns=function Dn(ut){const pn=[];for(const te of ut){const Ue={},jt=Object.getOwnPropertyNames(te);for(const hn of jt)Ue[hn]=te[hn];te.headerTemplate&&(Ue.headerTemplate=te.headerTemplate),te.cellTemplate&&(Ue.cellTemplate=te.cellTemplate),te.summaryFunc&&(Ue.summaryFunc=te.summaryFunc),te.summaryTemplate&&(Ue.summaryTemplate=te.summaryTemplate),pn.push(Ue)}return pn}(Ue),ti(this._internalColumns),this.recalculateColumns(),this.sortInternalRows(),this.cd.markForCheck())}}groupArrayBy(te,Ue){const jt=new Map;return te.forEach(Oi=>{const ki=Oi[Ue];jt.has(ki)?jt.get(ki).push(Oi):jt.set(ki,[Oi])}),Array.from(jt,Oi=>((Oi,ki)=>({key:Oi,value:ki}))(Oi[0],Oi[1]))}ngDoCheck(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=[...this.rows]:this.sortInternalRows(),this._internalRows=dt(this._internalRows,Se(this.treeFromRelation),Se(this.treeToRelation)),this.recalculatePages(),this.cd.markForCheck())}recalculate(){this.recalculateDims(),this.recalculateColumns(),this.cd.markForCheck()}onWindowResize(){this.recalculate()}recalculateColumns(te=this._internalColumns,Ue=-1,jt=this.scrollbarH){if(!te)return;let hn=this._innerWidth;return this.scrollbarV&&(hn-=this.scrollbarHelper.width),this.columnMode===Et.force?function Ro(ut,pn,te,Ue,jt=300){const hn=ut.slice(te+1,ut.length).filter(Ks=>!1!==Ks.canAutoResize);for(const Ks of hn)Ks.$$oldWidth||(Ks.$$oldWidth=Ks.width);let ii=0,Oi=!1,ki=ds(ut,jt),_s=pn-ki;const Vo=[];do{ii=_s/hn.length,Oi=ki>=pn;for(const Ks of hn){if(Oi&&Ue)Ks.width=Ks.$$oldWidth||Ks.width||jt;else{const hl=(Ks.width||jt)+ii;Ks.minWidth&&hlKs.maxWidth?(Ks.width=Ks.maxWidth,Vo.push(Ks)):Ks.width=hl}Ks.width=Math.max(0,Ks.width)}ki=ds(ut),_s=pn-ki,js(hn,Vo)}while(_s>1&&0!==hn.length)}(te,hn,Ue,jt):this.columnMode===Et.flex&&function ro(ut,pn){const te=function Xo(ut,pn){let te=0;for(const Ue of ut)te+=pn&&Ue[pn]?Ue[pn]:Ue.width;return te}(ut),Ue=function Jr(ut){let pn=0;for(const te of ut)pn+=te.flexGrow||0;return pn}(ut),jt=lo(ut);te!==pn&&function go(ut,pn,te){for(const hn in ut)for(const ii of ut[hn])ii.canAutoResize?ii.width=0:(pn-=ii.width,te-=ii.flexGrow?ii.flexGrow:0);const Ue={};let jt=pn;do{const hn=jt/te;jt=0;for(const ii in ut)for(const Oi of ut[ii])if(Oi.canAutoResize&&!Ue[Oi.prop]){const ki=Oi.width+Oi.flexGrow*hn;void 0!==Oi.minWidth&&ki((ii=Object.assign({},ii)).$$id===te.$$id&&(jt=Oi,ii.width=Ue,ii.$$oldWidth=Ue),ii));this.recalculateColumns(hn,jt),this._internalColumns=hn,this.resize.emit({column:te,newValue:Ue})}onColumnReorder({column:te,newValue:Ue,prevValue:jt}){const hn=this._internalColumns.map(ii=>Object.assign({},ii));if(this.swapColumns){const ii=hn[Ue];hn[Ue]=te,hn[jt]=ii}else if(Ue>jt){const ii=hn[jt];for(let Oi=jt;OiUe;Oi--)hn[Oi]=hn[Oi-1];hn[Ue]=ii}this._internalColumns=hn,this.reorder.emit({column:te,newValue:Ue,prevValue:jt})}onColumnSort(te){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected})),this.sorts=te.sorts,!1===this.externalSorting&&this.sortInternalRows(),this._internalRows=dt(this._internalRows,Se(this.treeFromRelation),Se(this.treeToRelation)),this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(te)}onHeaderSelect(te){if(this.bodyComponent&&this.selectAllRowsOnPage){const Ue=this.bodyComponent.indexes.first,jt=this.bodyComponent.indexes.last,hn=this.selected.length===jt-Ue;this.selected=[],hn||this.selected.push(...this._internalRows.slice(Ue,jt))}else{const Ue=this.selected.length===this.rows.length;this.selected=[],Ue||this.selected.push(...this.rows)}this.select.emit({selected:this.selected})}onBodySelect(te){this.select.emit(te)}onTreeAction(te){const Ue=te.row,jt=this._rows.findIndex(hn=>hn[this.treeToRelation]===te.row[this.treeToRelation]);this.treeAction.emit({row:Ue,rowIndex:jt})}ngOnDestroy(){this._subscriptions.forEach(te=>te.unsubscribe())}listenForColumnInputChanges(){this._subscriptions.push(this.columnChangesService.columnInputChanges$.subscribe(()=>{this.columnTemplates&&this.columnTemplates.notifyOnChanges()}))}sortInternalRows(){this._internalRows=function fa(ut,pn,te){if(!ut)return[];if(!te||!te.length||!pn)return[...ut];const Ue=new Map;ut.forEach((Oi,ki)=>Ue.set(Oi,ki));const jt=[...ut],hn=pn.reduce((Oi,ki)=>(ki.comparator&&"function"==typeof ki.comparator&&(Oi[ki.prop]=ki.comparator),Oi),{}),ii=te.map(Oi=>{const ki=Oi.prop;return{prop:ki,dir:Oi.dir,valueGetter:Wn(ki),compareFn:hn[ki]||ya}});return jt.sort(function(Oi,ki){for(const _s of ii){const{prop:Vo,valueGetter:Fs}=_s,Ks=Fs(Oi,Vo),hl=Fs(ki,Vo),sl=_s.dir!==es.desc?_s.compareFn(Ks,hl,Oi,ki,_s.dir):-_s.compareFn(Ks,hl,Oi,ki,_s.dir);if(0!==sl)return sl}return Ue.has(Oi)&&Ue.has(ki)?Ue.get(Oi)div{display:flex}.ngx-datatable .datatable-footer{display:block;overflow:auto;width:100%}.ngx-datatable .datatable-footer .datatable-footer-inner{align-items:center;display:flex;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{display:inline-block;list-style:none;margin:0;padding:0}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:none}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{cursor:not-allowed}"],encapsulation:2,changeDetection:0}),(0,g.gn)([$n(5)],ut.prototype,"onWindowResize",null),ut})(),Ra=(()=>{class ut{constructor(te){this.cd=te,this.sort=new r.vpe,this.select=new r.vpe,this.columnContextmenu=new r.vpe(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}set allRowsSelected(te){this._allRowsSelected=te,this.cellContext.allRowsSelected=te}get allRowsSelected(){return this._allRowsSelected}set column(te){this._column=te,this.cellContext.column=te,this.cd.markForCheck()}get column(){return this._column}set sorts(te){this._sorts=te,this.sortDir=this.calcSortDir(te),this.cellContext.sortDir=this.sortDir,this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()}get sorts(){return this._sorts}get columnCssClasses(){let te="datatable-header-cell";if(this.column.sortable&&(te+=" sortable"),this.column.resizeable&&(te+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)te+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){const jt=this.column.headerClass({column:this.column});if("string"==typeof jt)te+=jt;else if("object"==typeof jt){const hn=Object.keys(jt);for(const ii of hn)!0===jt[ii]&&(te+=` ${ii}`)}}const Ue=this.sortDir;return Ue&&(te+=` sort-active sort-${Ue}`),te}get name(){return void 0===this.column.headerTemplate?this.column.name:void 0}get minWidth(){return this.column.minWidth}get maxWidth(){return this.column.maxWidth}get width(){return this.column.width}get isCheckboxable(){return this.column.checkboxable&&this.column.headerCheckboxable&&this.selectionType===$t.checkbox}onContextmenu(te){this.columnContextmenu.emit({event:te,column:this.column})}ngOnInit(){this.sortClass=this.calcSortClass(this.sortDir)}calcSortDir(te){if(te&&this.column){const Ue=te.find(jt=>jt.prop===this.column.prop);if(Ue)return Ue.dir}}onSort(){if(!this.column.sortable)return;const te=function ma(ut,pn){return ut===_t.single?pn===es.asc?es.desc:es.asc:pn?pn===es.asc?es.desc:void 0:es.asc}(this.sortType,this.sortDir);this.sort.emit({column:this.column,prevValue:this.sortDir,newValue:te})}calcSortClass(te){if(this.cellContext.column.sortable)return te===es.asc?`sort-btn sort-asc ${this.sortAscendingIcon}`:te===es.desc?`sort-btn sort-desc ${this.sortDescendingIcon}`:`sort-btn ${this.sortUnsetIcon}`}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.sBO))},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-header-cell"]],hostAttrs:[1,"datatable-header-cell"],hostVars:11,hostBindings:function(te,Ue){1&te&&r.NdJ("contextmenu",function(hn){return Ue.onContextmenu(hn)}),2&te&&(r.uIk("title",Ue.name),r.Tol(Ue.columnCssClasses),r.Udp("min-width",Ue.minWidth,"px")("max-width",Ue.maxWidth,"px")("width",Ue.width,"px")("height",Ue.headerHeight,"px"))},inputs:{allRowsSelected:"allRowsSelected",column:"column",sorts:"sorts",sortType:"sortType",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",isTarget:"isTarget",targetMarkerTemplate:"targetMarkerTemplate",targetMarkerContext:"targetMarkerContext",selectionType:"selectionType",headerHeight:"headerHeight"},outputs:{sort:"sort",select:"select",columnContextmenu:"columnContextmenu"},decls:6,vars:6,consts:[[1,"datatable-header-cell-template-wrap"],[4,"ngIf"],["class","datatable-checkbox",4,"ngIf"],["class","datatable-header-cell-wrapper",4,"ngIf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","change"],[1,"datatable-header-cell-wrapper"],[1,"datatable-header-cell-label","draggable",3,"innerHTML","click"]],template:function(te,Ue){1&te&&(r.TgZ(0,"div",0),r.YNc(1,_e,1,2,null,1),r.YNc(2,Ce,2,1,"label",2),r.YNc(3,ce,2,1,"span",3),r.YNc(4,Ve,1,2,null,1),r.TgZ(5,"span",4),r.NdJ("click",function(){return Ue.onSort()}),r.qZA()()),2&te&&(r.xp6(1),r.Q6J("ngIf",Ue.isTarget),r.xp6(1),r.Q6J("ngIf",Ue.isCheckboxable),r.xp6(1),r.Q6J("ngIf",!Ue.column.headerTemplate),r.xp6(1),r.Q6J("ngIf",Ue.column.headerTemplate),r.xp6(1),r.Tol(Ue.sortClass))},directives:[a.O5,a.tP],encapsulation:2,changeDetection:0}),ut})(),pl=(()=>{class ut{constructor(){this.selectedCount=0,this.page=new r.vpe}get isVisible(){return this.rowCount/this.pageSize>1}get curPage(){return this.offset+1}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-footer"]],hostAttrs:[1,"datatable-footer"],inputs:{selectedCount:"selectedCount",footerHeight:"footerHeight",rowCount:"rowCount",pageSize:"pageSize",offset:"offset",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",totalMessage:"totalMessage",footerTemplate:"footerTemplate",selectedMessage:"selectedMessage"},outputs:{page:"page"},decls:4,vars:8,consts:[[1,"datatable-footer-inner",3,"ngClass"],[4,"ngIf"],["class","page-count",4,"ngIf"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"page-count"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change"]],template:function(te,Ue){1&te&&(r.TgZ(0,"div",0),r.YNc(1,Pe,1,8,null,1),r.YNc(2,Oe,3,3,"div",2),r.YNc(3,Tt,1,8,"datatable-pager",3),r.qZA()),2&te&&(r.Udp("height",Ue.footerHeight,"px"),r.Q6J("ngClass",r.VKq(6,We,Ue.selectedMessage)),r.xp6(1),r.Q6J("ngIf",Ue.footerTemplate),r.xp6(1),r.Q6J("ngIf",!Ue.footerTemplate),r.xp6(1),r.Q6J("ngIf",!Ue.footerTemplate))},directives:function(){return[a.mk,a.O5,a.tP,Co]},encapsulation:2,changeDetection:0}),ut})(),Co=(()=>{class ut{constructor(){this.change=new r.vpe,this._count=0,this._page=1,this._size=0}set size(te){this._size=te,this.pages=this.calcPages()}get size(){return this._size}set count(te){this._count=te,this.pages=this.calcPages()}get count(){return this._count}set page(te){this._page=te,this.pages=this.calcPages()}get page(){return this._page}get totalPages(){const te=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(te||0,1)}canPrevious(){return this.page>1}canNext(){return this.page0&&te<=this.totalPages&&te!==this.page&&(this.page=te,this.change.emit({page:te}))}calcPages(te){const Ue=[];let jt=1,hn=this.totalPages;te=te||this.page,5this.totalPages&&(jt=Math.max(this.totalPages-5+1,1),hn=this.totalPages));for(let ki=jt;ki<=hn;ki++)Ue.push({number:ki,text:ki});return Ue}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-pager"]],hostAttrs:[1,"datatable-pager"],inputs:{size:"size",count:"count",page:"page",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon"},outputs:{change:"change"},decls:14,vars:21,consts:[[1,"pager"],["role","button","aria-label","go to first page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to previous page","href","javascript:void(0)",3,"click"],["role","button","class","pages",3,"active",4,"ngFor","ngForOf"],["role","button","aria-label","go to next page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to last page","href","javascript:void(0)",3,"click"],["role","button",1,"pages"],["href","javascript:void(0)",3,"click"]],template:function(te,Ue){1&te&&(r.TgZ(0,"ul",0)(1,"li")(2,"a",1),r.NdJ("click",function(){return Ue.selectPage(1)}),r._UZ(3,"i"),r.qZA()(),r.TgZ(4,"li")(5,"a",2),r.NdJ("click",function(){return Ue.prevPage()}),r._UZ(6,"i"),r.qZA()(),r.YNc(7,Qt,3,4,"li",3),r.TgZ(8,"li")(9,"a",4),r.NdJ("click",function(){return Ue.nextPage()}),r._UZ(10,"i"),r.qZA()(),r.TgZ(11,"li")(12,"a",5),r.NdJ("click",function(){return Ue.selectPage(Ue.totalPages)}),r._UZ(13,"i"),r.qZA()()()),2&te&&(r.xp6(1),r.ekj("disabled",!Ue.canPrevious()),r.xp6(2),r.Tol(Ue.pagerPreviousIcon),r.xp6(1),r.ekj("disabled",!Ue.canPrevious()),r.xp6(2),r.Tol(Ue.pagerLeftArrowIcon),r.xp6(1),r.Q6J("ngForOf",Ue.pages),r.xp6(1),r.ekj("disabled",!Ue.canNext()),r.xp6(2),r.Tol(Ue.pagerRightArrowIcon),r.xp6(1),r.ekj("disabled",!Ue.canNext()),r.xp6(2),r.Tol(Ue.pagerNextIcon))},directives:[a.sg],encapsulation:2,changeDetection:0}),ut})(),yl=(()=>{class ut{}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-progress"]],decls:3,vars:0,consts:[["role","progressbar",1,"progress-linear"],[1,"container"],[1,"bar"]],template:function(te,Ue){1&te&&(r.TgZ(0,"div",0)(1,"div",1),r._UZ(2,"div",2),r.qZA()())},encapsulation:2,changeDetection:0}),ut})();var Wo=(()=>{return(ut=Wo||(Wo={}))[ut.up=38]="up",ut[ut.down=40]="down",ut[ut.return=13]="return",ut[ut.escape=27]="escape",ut[ut.left=37]="left",ut[ut.right=39]="right",Wo;var ut})();let ys=(()=>{class ut{constructor(te,Ue,jt,hn){this.differs=te,this.scrollbarHelper=Ue,this.cd=jt,this.treeStatus="collapsed",this.activate=new r.vpe,this.treeAction=new r.vpe,this._groupStyles={left:{},center:{},right:{}},this._element=hn.nativeElement,this._rowDiffer=te.find({}).create()}set columns(te){this._columns=te,this.recalculateColumns(te),this.buildStylesByGroup()}get columns(){return this._columns}set innerWidth(te){if(this._columns){const Ue=lo(this._columns);this._columnGroupWidths=Ri(Ue,this._columns)}this._innerWidth=te,this.recalculateColumns(),this.buildStylesByGroup()}get innerWidth(){return this._innerWidth}set offsetX(te){this._offsetX=te,this.buildStylesByGroup()}get offsetX(){return this._offsetX}get cssClass(){let te="datatable-body-row";if(this.isSelected&&(te+=" active"),this.rowIndex%2!=0&&(te+=" datatable-row-odd"),this.rowIndex%2==0&&(te+=" datatable-row-even"),this.rowClass){const Ue=this.rowClass(this.row);if("string"==typeof Ue)te+=` ${Ue}`;else if("object"==typeof Ue){const jt=Object.keys(Ue);for(const hn of jt)!0===Ue[hn]&&(te+=` ${hn}`)}}return te}get columnsTotalWidths(){return this._columnGroupWidths.total}ngDoCheck(){this._rowDiffer.diff(this.row)&&this.cd.markForCheck()}trackByGroups(te,Ue){return Ue.type}columnTrackingFn(te,Ue){return Ue.$$id}buildStylesByGroup(){this._groupStyles.left=this.calcStylesByGroup("left"),this._groupStyles.center=this.calcStylesByGroup("center"),this._groupStyles.right=this.calcStylesByGroup("right"),this.cd.markForCheck()}calcStylesByGroup(te){const Ue=this._columnGroupWidths,jt=this.offsetX,hn={width:`${Ue[te]}px`};if("left"===te)Or(hn,jt,0);else if("right"===te){const ii=parseInt(this.innerWidth+"",0);Or(hn,-1*(Ue.total-ii-jt+this.scrollbarHelper.width),0)}return hn}onActivate(te,Ue){te.cellIndex=Ue,te.rowElement=this._element,this.activate.emit(te)}onKeyDown(te){const Ue=te.keyCode;(Ue===Wo.return||Ue===Wo.down||Ue===Wo.up||Ue===Wo.left||Ue===Wo.right)&&te.target===this._element&&(te.preventDefault(),te.stopPropagation(),this.activate.emit({type:"keydown",event:te,row:this.row,rowElement:this._element}))}onMouseenter(te){this.activate.emit({type:"mouseenter",event:te,row:this.row,rowElement:this._element})}recalculateColumns(te=this.columns){this._columns=te;const Ue=lo(this._columns);this._columnsByPin=ir(this._columns),this._columnGroupWidths=Ri(Ue,this._columns)}onTreeAction(){this.treeAction.emit()}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.aQg),r.Y36(Er,4),r.Y36(r.sBO),r.Y36(r.SBq))},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-body-row"]],hostVars:6,hostBindings:function(te,Ue){1&te&&r.NdJ("keydown",function(hn){return Ue.onKeyDown(hn)})("mouseenter",function(hn){return Ue.onMouseenter(hn)}),2&te&&(r.Tol(Ue.cssClass),r.Udp("width",Ue.columnsTotalWidths,"px")("height",Ue.rowHeight,"px"))},inputs:{treeStatus:"treeStatus",columns:"columns",innerWidth:"innerWidth",offsetX:"offsetX",expanded:"expanded",rowClass:"rowClass",row:"row",group:"group",isSelected:"isSelected",rowIndex:"rowIndex",displayCheck:"displayCheck",rowHeight:"rowHeight"},outputs:{activate:"activate",treeAction:"treeAction"},decls:1,vars:2,consts:[[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction"]],template:function(te,Ue){1&te&&r.YNc(0,Yt,2,6,"div",0),2&te&&r.Q6J("ngForOf",Ue._columnsByPin)("ngForTrackBy",Ue.trackByGroups)},directives:function(){return[a.sg,a.PC,Is]},encapsulation:2,changeDetection:0}),ut})(),Wa=(()=>{class ut{constructor(te,Ue){this.cd=te,this.differs=Ue,this.rowContextmenu=new r.vpe(!1),this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this._expanded=!1,this.rowDiffer=Ue.find({}).create()}set rowIndex(te){this._rowIndex=te,this.rowContext.rowIndex=te,this.groupContext.rowIndex=te,this.cd.markForCheck()}get rowIndex(){return this._rowIndex}set expanded(te){this._expanded=te,this.groupContext.expanded=te,this.rowContext.expanded=te,this.cd.markForCheck()}get expanded(){return this._expanded}ngDoCheck(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())}onContextmenu(te){this.rowContextmenu.emit({event:te,row:this.row})}getGroupHeaderStyle(){const te={};return te.transform="translate3d("+this.offsetX+"px, 0px, 0px)",te["backface-visibility"]="hidden",te.width=this.innerWidth,te}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.sBO),r.Y36(r.aQg))},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-row-wrapper"]],hostAttrs:[1,"datatable-row-wrapper"],hostBindings:function(te,Ue){1&te&&r.NdJ("contextmenu",function(hn){return Ue.onContextmenu(hn)})},inputs:{rowIndex:"rowIndex",expanded:"expanded",innerWidth:"innerWidth",rowDetail:"rowDetail",groupHeader:"groupHeader",offsetX:"offsetX",detailRowHeight:"detailRowHeight",row:"row",groupedRows:"groupedRows"},outputs:{rowContextmenu:"rowContextmenu"},ngContentSelectors:T,decls:3,vars:3,consts:[["class","datatable-group-header",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","datatable-row-detail",3,"height",4,"ngIf"],[1,"datatable-group-header",3,"ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-row-detail"]],template:function(te,Ue){1&te&&(r.F$t(),r.YNc(0,vt,2,2,"div",0),r.YNc(1,xt,1,0,"ng-content",1),r.YNc(2,Fn,2,3,"div",2)),2&te&&(r.Q6J("ngIf",Ue.groupHeader&&Ue.groupHeader.template),r.xp6(1),r.Q6J("ngIf",Ue.groupHeader&&Ue.groupHeader.template&&Ue.expanded||!Ue.groupHeader||!Ue.groupHeader.template),r.xp6(1),r.Q6J("ngIf",Ue.rowDetail&&Ue.rowDetail.template&&Ue.expanded))},directives:[a.O5,a.PC,a.tP],encapsulation:2,changeDetection:0}),ut})(),Is=(()=>{class ut{constructor(te,Ue){this.cd=Ue,this.activate=new r.vpe,this.treeAction=new r.vpe,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex,treeStatus:this.treeStatus,onTreeAction:this.onTreeAction.bind(this)},this._element=te.nativeElement}set group(te){this._group=te,this.cellContext.group=te,this.checkValueUpdates(),this.cd.markForCheck()}get group(){return this._group}set rowHeight(te){this._rowHeight=te,this.cellContext.rowHeight=te,this.checkValueUpdates(),this.cd.markForCheck()}get rowHeight(){return this._rowHeight}set isSelected(te){this._isSelected=te,this.cellContext.isSelected=te,this.cd.markForCheck()}get isSelected(){return this._isSelected}set expanded(te){this._expanded=te,this.cellContext.expanded=te,this.cd.markForCheck()}get expanded(){return this._expanded}set rowIndex(te){this._rowIndex=te,this.cellContext.rowIndex=te,this.checkValueUpdates(),this.cd.markForCheck()}get rowIndex(){return this._rowIndex}set column(te){this._column=te,this.cellContext.column=te,this.checkValueUpdates(),this.cd.markForCheck()}get column(){return this._column}set row(te){this._row=te,this.cellContext.row=te,this.checkValueUpdates(),this.cd.markForCheck()}get row(){return this._row}set sorts(te){this._sorts=te,this.calcSortDir=this.calcSortDir(te)}get sorts(){return this._sorts}set treeStatus(te){this._treeStatus="collapsed"!==te&&"expanded"!==te&&"loading"!==te&&"disabled"!==te?"collapsed":te,this.cellContext.treeStatus=this._treeStatus,this.checkValueUpdates(),this.cd.markForCheck()}get treeStatus(){return this._treeStatus}get columnCssClasses(){let te="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)te+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){const Ue=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof Ue)te+=" "+Ue;else if("object"==typeof Ue){const jt=Object.keys(Ue);for(const hn of jt)!0===Ue[hn]&&(te+=` ${hn}`)}}return this.sortDir||(te+=" sort-active"),this.isFocused&&(te+=" active"),this.sortDir===es.asc&&(te+=" sort-asc"),this.sortDir===es.desc&&(te+=" sort-desc"),te}get width(){return this.column.width}get minWidth(){return this.column.minWidth}get maxWidth(){return this.column.maxWidth}get height(){const te=this.rowHeight;return isNaN(te)?te:te+"px"}ngDoCheck(){this.checkValueUpdates()}ngOnDestroy(){this.cellTemplate&&this.cellTemplate.clear()}checkValueUpdates(){let te="";if(this.row&&this.column){const Ue=this.column.$$valueGetter(this.row,this.column.prop),jt=this.column.pipe;jt?te=jt.transform(Ue):void 0!==te&&(te=Ue)}else te="";this.value!==te&&(this.value=te,this.cellContext.value=te,this.sanitizedValue=null!=te?this.stripHtml(te):te,this.cd.markForCheck())}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}onClick(te){this.activate.emit({type:"click",event:te,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}onDblClick(te){this.activate.emit({type:"dblclick",event:te,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}onKeyDown(te){const Ue=te.keyCode;(Ue===Wo.return||Ue===Wo.down||Ue===Wo.up||Ue===Wo.left||Ue===Wo.right)&&te.target===this._element&&(te.preventDefault(),te.stopPropagation(),this.activate.emit({type:"keydown",event:te,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element}))}onCheckboxChange(te){this.activate.emit({type:"checkbox",event:te,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element,treeStatus:"collapsed"})}calcSortDir(te){if(!te)return;const Ue=te.find(jt=>jt.prop===this.column.prop);return Ue?Ue.dir:void 0}stripHtml(te){return te.replace?te.replace(/<\/?[^>]+(>|$)/g,""):te}onTreeAction(){this.treeAction.emit(this.row)}calcLeftMargin(te,Ue){return te.isTreeColumn?Ue.level*(null!=te.treeLevelIndent?te.treeLevelIndent:50):0}}return ut.\u0275fac=function(te){return new(te||ut)(r.Y36(r.SBq),r.Y36(r.sBO))},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-body-cell"]],viewQuery:function(te,Ue){if(1&te&&r.Gf(pr,7,r.s_b),2&te){let jt;r.iGM(jt=r.CRH())&&(Ue.cellTemplate=jt.first)}},hostVars:10,hostBindings:function(te,Ue){1&te&&r.NdJ("focus",function(){return Ue.onFocus()})("blur",function(){return Ue.onBlur()})("click",function(hn){return Ue.onClick(hn)})("dblclick",function(hn){return Ue.onDblClick(hn)})("keydown",function(hn){return Ue.onKeyDown(hn)}),2&te&&(r.Tol(Ue.columnCssClasses),r.Udp("width",Ue.width,"px")("min-width",Ue.minWidth,"px")("max-width",Ue.maxWidth,"px")("height",Ue.height))},inputs:{group:"group",rowHeight:"rowHeight",isSelected:"isSelected",expanded:"expanded",rowIndex:"rowIndex",column:"column",row:"row",sorts:"sorts",treeStatus:"treeStatus",displayCheck:"displayCheck"},outputs:{activate:"activate",treeAction:"treeAction"},decls:5,vars:6,consts:[[1,"datatable-body-cell-label"],["class","datatable-checkbox",4,"ngIf"],[4,"ngIf"],[3,"title","innerHTML",4,"ngIf"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","click"],["class","datatable-tree-button",3,"disabled","click",4,"ngIf"],[1,"datatable-tree-button",3,"disabled","click"],["class","icon datatable-icon-collapse",4,"ngIf"],["class","icon datatable-icon-up",4,"ngIf"],["class","icon datatable-icon-down",4,"ngIf"],[1,"icon","datatable-icon-collapse"],[1,"icon","datatable-icon-up"],[1,"icon","datatable-icon-down"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"title","innerHTML"],["cellTemplate",""]],template:function(te,Ue){1&te&&(r.TgZ(0,"div",0),r.YNc(1,mi,2,1,"label",1),r.YNc(2,ei,3,2,"ng-container",2),r.YNc(3,bi,1,2,"span",3),r.YNc(4,no,2,2,null,2),r.qZA()),2&te&&(r.Udp("margin-left",Ue.calcLeftMargin(Ue.column,Ue.row),"px"),r.xp6(1),r.Q6J("ngIf",Ue.column.checkboxable&&(!Ue.displayCheck||Ue.displayCheck(Ue.row,Ue.column,Ue.value))),r.xp6(1),r.Q6J("ngIf",Ue.column.isTreeColumn),r.xp6(1),r.Q6J("ngIf",!Ue.column.cellTemplate),r.xp6(1),r.Q6J("ngIf",Ue.column.cellTemplate))},directives:[a.O5,a.tP],encapsulation:2,changeDetection:0}),ut})();function nl(ut,pn,te){const Ue=te(pn,ut);return Ue>-1?ut.splice(Ue,1):ut.push(pn),ut}let $o=(()=>{class ut{constructor(){this.activate=new r.vpe,this.select=new r.vpe}selectRow(te,Ue,jt){if(!this.selectEnabled)return;const hn=this.selectionType===$t.checkbox,Oi=this.selectionType===$t.multiClick;let ki=[];ki=this.selectionType===$t.multi||hn||Oi?te.shiftKey?function Gs(ut,pn,te,Ue,jt){const hn=te=Ue&&ii<=te,_s=ii<=Ue&&ii>=te;let Vo={start:0,end:0};Vo=hn?{start:te,end:Ue}:{start:Ue,end:te+1},(hn&&_s||!hn&&ki)&&ii>=Vo.start&&ii<=Vo.end&&ut.push(Oi)}return ut}([],this.rows,Ue,this.prevIndex,this.getRowSelectedIdx.bind(this)):nl(te.ctrlKey||te.metaKey||Oi||hn?[...this.selected]:[],jt,this.getRowSelectedIdx.bind(this)):nl([],jt,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(ki=ki.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),this.selected.push(...ki),this.prevIndex=Ue,this.select.emit({selected:ki})}onActivate(te,Ue){const{type:jt,event:hn,row:ii}=te,Oi=this.selectionType===$t.checkbox;!Oi&&("click"===jt||"dblclick"===jt)||Oi&&"checkbox"===jt?this.selectRow(hn,Ue,ii):"keydown"===jt&&(hn.keyCode===Wo.return?this.selectRow(hn,Ue,ii):this.onKeyboardFocus(te)),this.activate.emit(te)}onKeyboardFocus(te){const{keyCode:Ue}=te.event;if(Ue===Wo.up||Ue===Wo.down||Ue===Wo.right||Ue===Wo.left){const hn=this.selectionType===$t.cell;te.cellElement&&hn?hn&&this.focusCell(te.cellElement,te.rowElement,Ue,te.cellIndex):this.focusRow(te.rowElement,Ue)}}focusRow(te,Ue){const jt=this.getPrevNextRow(te,Ue);jt&&jt.focus()}getPrevNextRow(te,Ue){const jt=te.parentElement;if(jt){let hn;if(Ue===Wo.up?hn=jt.previousElementSibling:Ue===Wo.down&&(hn=jt.nextElementSibling),hn&&hn.children.length)return hn.children[0]}}focusCell(te,Ue,jt,hn){let ii;if(jt===Wo.left)ii=te.previousElementSibling;else if(jt===Wo.right)ii=te.nextElementSibling;else if(jt===Wo.up||jt===Wo.down){const Oi=this.getPrevNextRow(Ue,jt);if(Oi){const ki=Oi.getElementsByClassName("datatable-body-cell");ki.length&&(ii=ki[hn])}}ii&&ii.focus()}getRowSelected(te){return this.getRowSelectedIdx(te,this.selected)>-1}getRowSelectedIdx(te,Ue){if(!Ue||!Ue.length)return-1;const jt=this.rowIdentity(te);return Ue.findIndex(hn=>this.rowIdentity(hn)===jt)}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-selection"]],inputs:{rows:"rows",selected:"selected",selectEnabled:"selectEnabled",selectionType:"selectionType",rowIdentity:"rowIdentity",selectCheck:"selectCheck"},outputs:{activate:"activate",select:"select"},ngContentSelectors:T,decls:1,vars:0,template:function(te,Ue){1&te&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),ut})();function To(ut){const pn=ut.filter(te=>!!te);return!pn.length||pn.some(te=>"number"!=typeof te)?null:pn.reduce((te,Ue)=>te+Ue)}function Ns(ut){return null}let hs=(()=>{class ut{constructor(){this.summaryRow={}}ngOnChanges(){!this.columns||!this.rows||(this.updateInternalColumns(),this.updateValues())}updateInternalColumns(){this._internalColumns=this.columns.map(te=>Object.assign(Object.assign({},te),{cellTemplate:te.summaryTemplate}))}updateValues(){this.summaryRow={},this.columns.filter(te=>!te.summaryTemplate).forEach(te=>{const Ue=this.rows.map(hn=>hn[te.prop]),jt=this.getSummaryFunction(te);this.summaryRow[te.prop]=te.pipe?te.pipe.transform(jt(Ue)):jt(Ue)})}getSummaryFunction(te){return void 0===te.summaryFunc?To:null===te.summaryFunc?Ns:te.summaryFunc}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275cmp=r.Xpm({type:ut,selectors:[["datatable-summary-row"]],hostAttrs:[1,"datatable-summary-row"],inputs:{rows:"rows",columns:"columns",rowHeight:"rowHeight",offsetX:"offsetX",innerWidth:"innerWidth"},features:[r.TTD],decls:1,vars:1,consts:[["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex",4,"ngIf"],["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex"]],template:function(te,Ue){1&te&&r.YNc(0,xo,1,6,"datatable-body-row",0),2&te&&r.Q6J("ngIf",Ue.summaryRow&&Ue._internalColumns)},directives:[a.O5,ys],encapsulation:2}),ut})(),Oo=(()=>{class ut{static forRoot(te){return{ngModule:ut,providers:[{provide:"configuration",useValue:te}]}}}return ut.\u0275fac=function(te){return new(te||ut)},ut.\u0275mod=r.oAB({type:ut}),ut.\u0275inj=r.cJS({providers:[Er,an,vn],imports:[[a.ez]]}),ut})();"undefined"!=typeof document&&!document.elementsFromPoint&&(document.elementsFromPoint=function Ki(ut,pn){const te=[],Ue=[];let jt,hn,ii;for(;(jt=document.elementFromPoint(ut,pn))&&-1===te.indexOf(jt)&&null!=jt;)te.push(jt),Ue.push({value:jt.style.getPropertyValue("pointer-events"),priority:jt.style.getPropertyPriority("pointer-events")}),jt.style.setProperty("pointer-events","none","important");for(hn=Ue.length;ii=Ue[--hn];)te[hn].style.setProperty("pointer-events",ii.value?ii.value:"",ii.priority);return te})},67506:v=>{"use strict";function b(a,f,u){a instanceof RegExp&&(a=i(a,u)),f instanceof RegExp&&(f=i(f,u));var e=r(a,f,u);return e&&{start:e[0],end:e[1],pre:u.slice(0,e[0]),body:u.slice(e[0]+a.length,e[1]),post:u.slice(e[1]+f.length)}}function i(a,f){var u=f.match(a);return u?u[0]:null}function r(a,f,u){var e,p,g,T,M,w=u.indexOf(a),R=u.indexOf(f,w+1),U=w;if(w>=0&&R>0){if(a===f)return[w,R];for(e=[],g=u.length;U>=0&&!M;)U==w?(e.push(U),w=u.indexOf(a,U+1)):1==e.length?M=[e.pop(),R]:((p=e.pop())=0?w:R;e.length&&(M=[g,T])}return M}v.exports=b,b.range=r},96434:(v,b)=>{"use strict";b.byteLength=function g(W){var j=p(W),ue=j[1];return 3*(j[0]+ue)/4-ue},b.toByteArray=function M(W){var j,ie,q=p(W),ue=q[0],re=q[1],H=new a(function T(W,j,q){return 3*(j+q)/4-q}(0,ue,re)),se=0,ae=re>0?ue-4:ue;for(ie=0;ie>16&255,H[se++]=j>>8&255,H[se++]=255&j;return 2===re&&(j=r[W.charCodeAt(ie)]<<2|r[W.charCodeAt(ie+1)]>>4,H[se++]=255&j),1===re&&(j=r[W.charCodeAt(ie)]<<10|r[W.charCodeAt(ie+1)]<<4|r[W.charCodeAt(ie+2)]>>2,H[se++]=j>>8&255,H[se++]=255&j),H},b.fromByteArray=function U(W){for(var j,q=W.length,ue=q%3,re=[],H=16383,se=0,ae=q-ue;seae?ae:se+H));return 1===ue?re.push(i[(j=W[q-1])>>2]+i[j<<4&63]+"=="):2===ue&&re.push(i[(j=(W[q-2]<<8)+W[q-1])>>10]+i[j>>4&63]+i[j<<2&63]+"="),re.join("")};for(var i=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,e=f.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var q=W.indexOf("=");return-1===q&&(q=j),[q,q===j?0:4-q%4]}function w(W){return i[W>>18&63]+i[W>>12&63]+i[W>>6&63]+i[63&W]}function R(W,j,q){for(var re=[],H=j;H{var r=i(2665),a=i(67506);v.exports=function U(se){return se?("{}"===se.substr(0,2)&&(se="\\{\\}"+se.substr(2)),H(function M(se){return se.split("\\\\").join(f).split("\\{").join(u).split("\\}").join(e).split("\\,").join(p).split("\\.").join(g)}(se),!0).map(w)):[]};var f="\0SLASH"+Math.random()+"\0",u="\0OPEN"+Math.random()+"\0",e="\0CLOSE"+Math.random()+"\0",p="\0COMMA"+Math.random()+"\0",g="\0PERIOD"+Math.random()+"\0";function T(se){return parseInt(se,10)==se?parseInt(se,10):se.charCodeAt(0)}function w(se){return se.split(f).join("\\").split(u).join("{").split(e).join("}").split(p).join(",").split(g).join(".")}function R(se){if(!se)return[""];var ae=[],ie=a("{","}",se);if(!ie)return se.split(",");var _e=ie.body,Ce=ie.post,ce=ie.pre.split(",");ce[ce.length-1]+="{"+_e+"}";var Be=R(Ce);return Ce.length&&(ce[ce.length-1]+=Be.shift(),ce.push.apply(ce,Be)),ae.push.apply(ae,ce),ae}function j(se){return"{"+se+"}"}function q(se){return/^-?0\d/.test(se)}function ue(se,ae){return se<=ae}function re(se,ae){return se>=ae}function H(se,ae){var ie=[],fe=a("{","}",se);if(!fe||/\$$/.test(fe.pre))return[se];var Ve,_e=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(fe.body),Ce=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(fe.body),ce=_e||Ce,Be=fe.body.indexOf(",")>=0;if(!ce&&!Be)return fe.post.match(/,.*\}/)?H(se=fe.pre+"{"+fe.body+e+fe.post):[se];if(ce)Ve=fe.body.split(/\.\./);else if(1===(Ve=R(fe.body)).length&&1===(Ve=H(Ve[0],!1).map(j)).length)return(He=fe.post.length?H(fe.post,!1):[""]).map(function(mi){return fe.pre+Ve[0]+mi});var Pe,Xe=fe.pre,He=fe.post.length?H(fe.post,!1):[""];if(ce){var Ge=T(Ve[0]),Oe=T(Ve[1]),Tt=Math.max(Ve[0].length,Ve[1].length),We=3==Ve.length?Math.abs(T(Ve[2])):1,Qt=ue;Oe0){var xt=new Array(vt+1).join("0");rn=dn<0?"-"+xt+rn.slice(1):xt+rn}}Pe.push(rn)}}else Pe=r(Ve,function(pr){return H(pr,!1)});for(var Ct=0;Ct{"use strict";var r=i(18540),a=i(60044),f=a(r("String.prototype.indexOf"));v.exports=function(e,p){var g=r(e,!!p);return"function"==typeof g&&f(e,".prototype.")>-1?a(g):g}},60044:(v,b,i)=>{"use strict";var r=i(75396),a=i(18540),f=a("%Function.prototype.apply%"),u=a("%Function.prototype.call%"),e=a("%Reflect.apply%",!0)||r.call(u,f),p=a("%Object.getOwnPropertyDescriptor%",!0),g=a("%Object.defineProperty%",!0),T=a("%Math.max%");if(g)try{g({},"a",{value:1})}catch(w){g=null}v.exports=function(R){var U=e(r,u,arguments);if(p&&g){var W=p(U,"length");W.configurable&&g(U,"length",{value:1+T(0,R.length-(arguments.length-1))})}return U};var M=function(){return e(r,f,arguments)};g?g(v.exports,"apply",{value:M}):v.exports.apply=M},72318:v=>{var b=!("undefined"==typeof window||!window.document||!window.document.createElement);v.exports=b},6823:function(v,b,i){v.exports=function(r){"use strict";r=r&&r.hasOwnProperty("default")?r.default:r;var u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},e=function a(h,E){return h(E={exports:{}},E.exports),E.exports}(function(h){var E={};for(var P in u)u.hasOwnProperty(P)&&(E[u[P]]=P);var L=h.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var X in L)if(L.hasOwnProperty(X)){if(!("channels"in L[X]))throw new Error("missing channels property: "+X);if(!("labels"in L[X]))throw new Error("missing channel labels property: "+X);if(L[X].labels.length!==L[X].channels)throw new Error("channel and label counts mismatch: "+X);var de=L[X].channels,ve=L[X].labels;delete L[X].channels,delete L[X].labels,Object.defineProperty(L[X],"channels",{value:de}),Object.defineProperty(L[X],"labels",{value:ve})}function Ye(xe,nt){return Math.pow(xe[0]-nt[0],2)+Math.pow(xe[1]-nt[1],2)+Math.pow(xe[2]-nt[2],2)}L.rgb.hsl=function(xe){var fr,Ui,nt=xe[0]/255,St=xe[1]/255,Mt=xe[2]/255,fn=Math.min(nt,St,Mt),jn=Math.max(nt,St,Mt),Vn=jn-fn;return jn===fn?fr=0:nt===jn?fr=(St-Mt)/Vn:St===jn?fr=2+(Mt-nt)/Vn:Mt===jn&&(fr=4+(nt-St)/Vn),(fr=Math.min(60*fr,360))<0&&(fr+=360),Ui=(fn+jn)/2,[fr,100*(jn===fn?0:Ui<=.5?Vn/(jn+fn):Vn/(2-jn-fn)),100*Ui]},L.rgb.hsv=function(xe){var nt,St,Mt,fn,jn,Vn=xe[0]/255,fr=xe[1]/255,$r=xe[2]/255,Ui=Math.max(Vn,fr,$r),is=Ui-Math.min(Vn,fr,$r),yo=function(Zs){return(Ui-Zs)/6/is+.5};return 0===is?fn=jn=0:(jn=is/Ui,nt=yo(Vn),St=yo(fr),Mt=yo($r),Vn===Ui?fn=Mt-St:fr===Ui?fn=1/3+nt-Mt:$r===Ui&&(fn=2/3+St-nt),fn<0?fn+=1:fn>1&&(fn-=1)),[360*fn,100*jn,100*Ui]},L.rgb.hwb=function(xe){var nt=xe[0],St=xe[1],Mt=xe[2];return[L.rgb.hsl(xe)[0],1/255*Math.min(nt,Math.min(St,Mt))*100,100*(Mt=1-1/255*Math.max(nt,Math.max(St,Mt)))]},L.rgb.cmyk=function(xe){var fr,nt=xe[0]/255,St=xe[1]/255,Mt=xe[2]/255;return[100*((1-nt-(fr=Math.min(1-nt,1-St,1-Mt)))/(1-fr)||0),100*((1-St-fr)/(1-fr)||0),100*((1-Mt-fr)/(1-fr)||0),100*fr]},L.rgb.keyword=function(xe){var nt=E[xe];if(nt)return nt;var Mt,St=1/0;for(var fn in u)if(u.hasOwnProperty(fn)){var Vn=Ye(xe,u[fn]);Vn.04045?Math.pow((nt+.055)/1.055,2.4):nt/12.92)+.3576*(St=St>.04045?Math.pow((St+.055)/1.055,2.4):St/12.92)+.1805*(Mt=Mt>.04045?Math.pow((Mt+.055)/1.055,2.4):Mt/12.92)),100*(.2126*nt+.7152*St+.0722*Mt),100*(.0193*nt+.1192*St+.9505*Mt)]},L.rgb.lab=function(xe){var nt=L.rgb.xyz(xe),St=nt[0],Mt=nt[1],fn=nt[2];return Mt/=100,fn/=108.883,St=(St/=95.047)>.008856?Math.pow(St,1/3):7.787*St+16/116,[116*(Mt=Mt>.008856?Math.pow(Mt,1/3):7.787*Mt+16/116)-16,500*(St-Mt),200*(Mt-(fn=fn>.008856?Math.pow(fn,1/3):7.787*fn+16/116))]},L.hsl.rgb=function(xe){var fn,jn,Vn,fr,$r,nt=xe[0]/360,St=xe[1]/100,Mt=xe[2]/100;if(0===St)return[$r=255*Mt,$r,$r];fn=2*Mt-(jn=Mt<.5?Mt*(1+St):Mt+St-Mt*St),fr=[0,0,0];for(var Ui=0;Ui<3;Ui++)(Vn=nt+1/3*-(Ui-1))<0&&Vn++,Vn>1&&Vn--,fr[Ui]=255*($r=6*Vn<1?fn+6*(jn-fn)*Vn:2*Vn<1?jn:3*Vn<2?fn+(jn-fn)*(2/3-Vn)*6:fn);return fr},L.hsl.hsv=function(xe){var nt=xe[0],St=xe[1]/100,Mt=xe[2]/100,fn=St,jn=Math.max(Mt,.01);return St*=(Mt*=2)<=1?Mt:2-Mt,fn*=jn<=1?jn:2-jn,[nt,100*(0===Mt?2*fn/(jn+fn):2*St/(Mt+St)),(Mt+St)/2*100]},L.hsv.rgb=function(xe){var nt=xe[0]/60,St=xe[1]/100,Mt=xe[2]/100,fn=Math.floor(nt)%6,jn=nt-Math.floor(nt),Vn=255*Mt*(1-St),fr=255*Mt*(1-St*jn),$r=255*Mt*(1-St*(1-jn));switch(Mt*=255,fn){case 0:return[Mt,$r,Vn];case 1:return[fr,Mt,Vn];case 2:return[Vn,Mt,$r];case 3:return[Vn,fr,Mt];case 4:return[$r,Vn,Mt];case 5:return[Mt,Vn,fr]}},L.hsv.hsl=function(xe){var jn,Vn,fr,nt=xe[0],St=xe[1]/100,Mt=xe[2]/100,fn=Math.max(Mt,.01);return fr=(2-St)*Mt,Vn=St*fn,[nt,100*(Vn=(Vn/=(jn=(2-St)*fn)<=1?jn:2-jn)||0),100*(fr/=2)]},L.hwb.rgb=function(xe){var jn,Vn,fr,$r,Ui,is,yo,nt=xe[0]/360,St=xe[1]/100,Mt=xe[2]/100,fn=St+Mt;switch(fn>1&&(St/=fn,Mt/=fn),fr=6*nt-(jn=Math.floor(6*nt)),0!=(1&jn)&&(fr=1-fr),$r=St+fr*((Vn=1-Mt)-St),jn){default:case 6:case 0:Ui=Vn,is=$r,yo=St;break;case 1:Ui=$r,is=Vn,yo=St;break;case 2:Ui=St,is=Vn,yo=$r;break;case 3:Ui=St,is=$r,yo=Vn;break;case 4:Ui=$r,is=St,yo=Vn;break;case 5:Ui=Vn,is=St,yo=$r}return[255*Ui,255*is,255*yo]},L.cmyk.rgb=function(xe){var St=xe[1]/100,Mt=xe[2]/100,fn=xe[3]/100;return[255*(1-Math.min(1,xe[0]/100*(1-fn)+fn)),255*(1-Math.min(1,St*(1-fn)+fn)),255*(1-Math.min(1,Mt*(1-fn)+fn))]},L.xyz.rgb=function(xe){var fn,jn,Vn,nt=xe[0]/100,St=xe[1]/100,Mt=xe[2]/100;return jn=-.9689*nt+1.8758*St+.0415*Mt,Vn=.0557*nt+-.204*St+1.057*Mt,fn=(fn=3.2406*nt+-1.5372*St+-.4986*Mt)>.0031308?1.055*Math.pow(fn,1/2.4)-.055:12.92*fn,jn=jn>.0031308?1.055*Math.pow(jn,1/2.4)-.055:12.92*jn,Vn=Vn>.0031308?1.055*Math.pow(Vn,1/2.4)-.055:12.92*Vn,[255*(fn=Math.min(Math.max(0,fn),1)),255*(jn=Math.min(Math.max(0,jn),1)),255*(Vn=Math.min(Math.max(0,Vn),1))]},L.xyz.lab=function(xe){var nt=xe[0],St=xe[1],Mt=xe[2];return St/=100,Mt/=108.883,nt=(nt/=95.047)>.008856?Math.pow(nt,1/3):7.787*nt+16/116,[116*(St=St>.008856?Math.pow(St,1/3):7.787*St+16/116)-16,500*(nt-St),200*(St-(Mt=Mt>.008856?Math.pow(Mt,1/3):7.787*Mt+16/116))]},L.lab.xyz=function(xe){var fn,jn,Vn;fn=xe[1]/500+(jn=(xe[0]+16)/116),Vn=jn-xe[2]/200;var fr=Math.pow(jn,3),$r=Math.pow(fn,3),Ui=Math.pow(Vn,3);return jn=fr>.008856?fr:(jn-16/116)/7.787,fn=$r>.008856?$r:(fn-16/116)/7.787,Vn=Ui>.008856?Ui:(Vn-16/116)/7.787,[fn*=95.047,jn*=100,Vn*=108.883]},L.lab.lch=function(xe){var jn,nt=xe[0],St=xe[1],Mt=xe[2];return(jn=360*Math.atan2(Mt,St)/2/Math.PI)<0&&(jn+=360),[nt,Math.sqrt(St*St+Mt*Mt),jn]},L.lch.lab=function(xe){var Vn,St=xe[1];return Vn=xe[2]/360*2*Math.PI,[xe[0],St*Math.cos(Vn),St*Math.sin(Vn)]},L.rgb.ansi16=function(xe){var nt=xe[0],St=xe[1],Mt=xe[2],fn=1 in arguments?arguments[1]:L.rgb.hsv(xe)[2];if(0===(fn=Math.round(fn/50)))return 30;var jn=30+(Math.round(Mt/255)<<2|Math.round(St/255)<<1|Math.round(nt/255));return 2===fn&&(jn+=60),jn},L.hsv.ansi16=function(xe){return L.rgb.ansi16(L.hsv.rgb(xe),xe[2])},L.rgb.ansi256=function(xe){var nt=xe[0],St=xe[1],Mt=xe[2];return nt===St&&St===Mt?nt<8?16:nt>248?231:Math.round((nt-8)/247*24)+232:16+36*Math.round(nt/255*5)+6*Math.round(St/255*5)+Math.round(Mt/255*5)},L.ansi16.rgb=function(xe){var nt=xe%10;if(0===nt||7===nt)return xe>50&&(nt+=3.5),[nt=nt/10.5*255,nt,nt];var St=.5*(1+~~(xe>50));return[(1&nt)*St*255,(nt>>1&1)*St*255,(nt>>2&1)*St*255]},L.ansi256.rgb=function(xe){if(xe>=232){var nt=10*(xe-232)+8;return[nt,nt,nt]}var St;return xe-=16,[Math.floor(xe/36)/5*255,Math.floor((St=xe%36)/6)/5*255,St%6/5*255]},L.rgb.hex=function(xe){var St=(((255&Math.round(xe[0]))<<16)+((255&Math.round(xe[1]))<<8)+(255&Math.round(xe[2]))).toString(16).toUpperCase();return"000000".substring(St.length)+St},L.hex.rgb=function(xe){var nt=xe.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!nt)return[0,0,0];var St=nt[0];3===nt[0].length&&(St=St.split("").map(function(fr){return fr+fr}).join(""));var Mt=parseInt(St,16);return[Mt>>16&255,Mt>>8&255,255&Mt]},L.rgb.hcg=function(xe){var $r,nt=xe[0]/255,St=xe[1]/255,Mt=xe[2]/255,fn=Math.max(Math.max(nt,St),Mt),jn=Math.min(Math.min(nt,St),Mt),Vn=fn-jn;return $r=Vn<=0?0:fn===nt?(St-Mt)/Vn%6:fn===St?2+(Mt-nt)/Vn:4+(nt-St)/Vn+4,$r/=6,[360*($r%=1),100*Vn,100*(Vn<1?jn/(1-Vn):0)]},L.hsl.hcg=function(xe){var Mt,nt=xe[1]/100,St=xe[2]/100,fn=0;return(Mt=St<.5?2*nt*St:2*nt*(1-St))<1&&(fn=(St-.5*Mt)/(1-Mt)),[xe[0],100*Mt,100*fn]},L.hsv.hcg=function(xe){var St=xe[2]/100,Mt=xe[1]/100*St,fn=0;return Mt<1&&(fn=(St-Mt)/(1-Mt)),[xe[0],100*Mt,100*fn]},L.hcg.rgb=function(xe){var St=xe[1]/100,Mt=xe[2]/100;if(0===St)return[255*Mt,255*Mt,255*Mt];var $r,fn=[0,0,0],jn=xe[0]/360%1*6,Vn=jn%1,fr=1-Vn;switch(Math.floor(jn)){case 0:fn[0]=1,fn[1]=Vn,fn[2]=0;break;case 1:fn[0]=fr,fn[1]=1,fn[2]=0;break;case 2:fn[0]=0,fn[1]=1,fn[2]=Vn;break;case 3:fn[0]=0,fn[1]=fr,fn[2]=1;break;case 4:fn[0]=Vn,fn[1]=0,fn[2]=1;break;default:fn[0]=1,fn[1]=0,fn[2]=fr}return[255*(St*fn[0]+($r=(1-St)*Mt)),255*(St*fn[1]+$r),255*(St*fn[2]+$r)]},L.hcg.hsv=function(xe){var nt=xe[1]/100,Mt=nt+xe[2]/100*(1-nt),fn=0;return Mt>0&&(fn=nt/Mt),[xe[0],100*fn,100*Mt]},L.hcg.hsl=function(xe){var nt=xe[1]/100,Mt=xe[2]/100*(1-nt)+.5*nt,fn=0;return Mt>0&&Mt<.5?fn=nt/(2*Mt):Mt>=.5&&Mt<1&&(fn=nt/(2*(1-Mt))),[xe[0],100*fn,100*Mt]},L.hcg.hwb=function(xe){var nt=xe[1]/100,Mt=nt+xe[2]/100*(1-nt);return[xe[0],100*(Mt-nt),100*(1-Mt)]},L.hwb.hcg=function(xe){var Mt=1-xe[2]/100,fn=Mt-xe[1]/100,jn=0;return fn<1&&(jn=(Mt-fn)/(1-fn)),[xe[0],100*fn,100*jn]},L.apple.rgb=function(xe){return[xe[0]/65535*255,xe[1]/65535*255,xe[2]/65535*255]},L.rgb.apple=function(xe){return[xe[0]/255*65535,xe[1]/255*65535,xe[2]/255*65535]},L.gray.rgb=function(xe){return[xe[0]/100*255,xe[0]/100*255,xe[0]/100*255]},L.gray.hsl=L.gray.hsv=function(xe){return[0,0,xe[0]]},L.gray.hwb=function(xe){return[0,100,xe[0]]},L.gray.cmyk=function(xe){return[0,0,0,xe[0]]},L.gray.lab=function(xe){return[xe[0],0,0]},L.gray.hex=function(xe){var nt=255&Math.round(xe[0]/100*255),Mt=((nt<<16)+(nt<<8)+nt).toString(16).toUpperCase();return"000000".substring(Mt.length)+Mt},L.rgb.gray=function(xe){return[(xe[0]+xe[1]+xe[2])/3/255*100]}});function fe(h){var E=function ie(){for(var h={},E=Object.keys(e),P=E.length,L=0;L1&&(P=Array.prototype.slice.call(arguments));var L=h(P);if("object"==typeof L)for(var X=L.length,de=0;de1&&(P=Array.prototype.slice.call(arguments)),h(P))};return"conversion"in h&&(E.conversion=h.conversion),E}(X)})});var Pe=Be,Ge={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Oe={getRgba:Tt,getHsla:We,getRgb:function Nt(h){var E=Tt(h);return E&&E.slice(0,3)},getHsl:function Yt(h){var E=We(h);return E&&E.slice(0,3)},getHwb:Qt,getAlpha:function dn(h){var E=Tt(h);return E||(E=We(h))||(E=Qt(h))?E[3]:void 0},hexString:function rn(h,P){return P=void 0!==P&&3===h.length?P:h[3],"#"+Br(h[0])+Br(h[1])+Br(h[2])+(P>=0&&P<1?Br(Math.round(255*P)):"")},rgbString:function vt(h,E){return E<1||h[3]&&h[3]<1?xt(h,E):"rgb("+h[0]+", "+h[1]+", "+h[2]+")"},rgbaString:xt,percentString:function Ct(h,E){return E<1||h[3]&&h[3]<1?Gt(h,E):"rgb("+Math.round(h[0]/255*100)+"%, "+Math.round(h[1]/255*100)+"%, "+Math.round(h[2]/255*100)+"%)"},percentaString:Gt,hslString:function Fn(h,E){return E<1||h[3]&&h[3]<1?pr(h,E):"hsl("+h[0]+", "+h[1]+"%, "+h[2]+"%)"},hslaString:pr,hwbString:function mi(h,E){return void 0===E&&(E=void 0!==h[3]?h[3]:1),"hwb("+h[0]+", "+h[1]+"%, "+h[2]+"%"+(void 0!==E&&1!==E?", "+E:"")+")"},keyword:function ci(h){return Ur[h.slice(0,3)]}};function Tt(h){if(h){var ve=[0,0,0],Ye=1,xe=h.match(/^#([a-fA-F0-9]{3,4})$/i),nt="";if(xe){nt=(xe=xe[1])[3];for(var St=0;StP?(E+.05)/(P+.05):(P+.05)/(E+.05)},level:function(h){var E=this.contrast(h);return E>=7.1?"AAA":E>=4.5?"AA":""},dark:function(){var h=this.values.rgb;return(299*h[0]+587*h[1]+114*h[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var h=[],E=0;E<3;E++)h[E]=255-this.values.rgb[E];return this.setValues("rgb",h),this},lighten:function(h){var E=this.values.hsl;return E[2]+=E[2]*h,this.setValues("hsl",E),this},darken:function(h){var E=this.values.hsl;return E[2]-=E[2]*h,this.setValues("hsl",E),this},saturate:function(h){var E=this.values.hsl;return E[1]+=E[1]*h,this.setValues("hsl",E),this},desaturate:function(h){var E=this.values.hsl;return E[1]-=E[1]*h,this.setValues("hsl",E),this},whiten:function(h){var E=this.values.hwb;return E[1]+=E[1]*h,this.setValues("hwb",E),this},blacken:function(h){var E=this.values.hwb;return E[2]+=E[2]*h,this.setValues("hwb",E),this},greyscale:function(){var h=this.values.rgb,E=.3*h[0]+.59*h[1]+.11*h[2];return this.setValues("rgb",[E,E,E]),this},clearer:function(h){var E=this.values.alpha;return this.setValues("alpha",E-E*h),this},opaquer:function(h){var E=this.values.alpha;return this.setValues("alpha",E+E*h),this},rotate:function(h){var E=this.values.hsl,P=(E[0]+h)%360;return E[0]=P<0?360+P:P,this.setValues("hsl",E),this},mix:function(h,E){var P=this,L=h,X=void 0===E?.5:E,de=2*X-1,ve=P.alpha()-L.alpha(),Ye=((de*ve==-1?de:(de+ve)/(1+de*ve))+1)/2,xe=1-Ye;return this.rgb(Ye*P.red()+xe*L.red(),Ye*P.green()+xe*L.green(),Ye*P.blue()+xe*L.blue()).alpha(P.alpha()*X+L.alpha()*(1-X))},toJSON:function(){return this.rgb()},clone:function(){var L,X,h=new er,E=this.values,P=h.values;for(var de in E)E.hasOwnProperty(de)&&("[object Array]"===(X={}.toString.call(L=E[de]))?P[de]=L.slice(0):"[object Number]"===X?P[de]=L:console.error("unexpected color value:",L));return h}},er.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},er.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},er.prototype.getValues=function(h){for(var E=this.values,P={},L=0;L=0;X--)E.call(P,h[X],X);else for(X=0;X=1?h:-(Math.sqrt(1-h*h)-1)},easeOutCirc:function(h){return Math.sqrt(1-(h-=1)*h)},easeInOutCirc:function(h){return(h/=.5)<1?-.5*(Math.sqrt(1-h*h)-1):.5*(Math.sqrt(1-(h-=2)*h)+1)},easeInElastic:function(h){var E=1.70158,P=0,L=1;return 0===h?0:1===h?1:(P||(P=.3),L<1?(L=1,E=P/4):E=P/(2*Math.PI)*Math.asin(1/L),-L*Math.pow(2,10*(h-=1))*Math.sin((h-E)*(2*Math.PI)/P))},easeOutElastic:function(h){var E=1.70158,P=0,L=1;return 0===h?0:1===h?1:(P||(P=.3),L<1?(L=1,E=P/4):E=P/(2*Math.PI)*Math.asin(1/L),L*Math.pow(2,-10*h)*Math.sin((h-E)*(2*Math.PI)/P)+1)},easeInOutElastic:function(h){var E=1.70158,P=0,L=1;return 0===h?0:2==(h/=.5)?1:(P||(P=.45),L<1?(L=1,E=P/4):E=P/(2*Math.PI)*Math.asin(1/L),h<1?L*Math.pow(2,10*(h-=1))*Math.sin((h-E)*(2*Math.PI)/P)*-.5:L*Math.pow(2,-10*(h-=1))*Math.sin((h-E)*(2*Math.PI)/P)*.5+1)},easeInBack:function(h){var E=1.70158;return h*h*((E+1)*h-E)},easeOutBack:function(h){var E=1.70158;return(h-=1)*h*((E+1)*h+E)+1},easeInOutBack:function(h){var E=1.70158;return(h/=.5)<1?h*h*((1+(E*=1.525))*h-E)*.5:.5*((h-=2)*h*((1+(E*=1.525))*h+E)+2)},easeInBounce:function(h){return 1-no.easeOutBounce(1-h)},easeOutBounce:function(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375},easeInOutBounce:function(h){return h<.5?.5*no.easeInBounce(2*h):.5*no.easeOutBounce(2*h-1)+.5}},xo={effects:no};fi.easingEffects=no;var Er=Math.PI,an=Er/180,vn=2*Er,Zn=Er/2,Xn=Er/4,zn=2*Er/3,ri={clear:function(h){h.ctx.clearRect(0,0,h.width,h.height)},roundedRect:function(h,E,P,L,X,de){if(de){var ve=Math.min(de,X/2,L/2),Ye=E+ve,xe=P+ve,nt=E+L-ve,St=P+X-ve;h.moveTo(E,xe),YeE.left-P&&h.xE.top-P&&h.y0&&h.requestAnimationFrame()},advance:function(){for(var E,P,L,X,h=this.animations,de=0;de=L?(Fe.callback(E.onAnimationComplete,[E],P),P.animating=!1,h.splice(de,1)):++de}},xi=Fe.options.resolve,yi=["push","pop","shift","splice","unshift"];function Qo(h,E){var P=h._chartjs;if(P){var L=P.listeners,X=L.indexOf(E);-1!==X&&L.splice(X,1),!(L.length>0)&&(yi.forEach(function(de){delete h[de]}),delete h._chartjs)}}var lo=function(h,E){this.initialize(h,E)};Fe.extend(lo.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(h,E){var P=this;P.chart=h,P.index=E,P.linkScales(),P.addElements(),P._type=P.getMeta().type},updateIndex:function(h){this.index=h},linkScales:function(){var h=this,E=h.getMeta(),P=h.chart,L=P.scales,X=h.getDataset(),de=P.options.scales;(null===E.xAxisID||!(E.xAxisID in L)||X.xAxisID)&&(E.xAxisID=X.xAxisID||de.xAxes[0].id),(null===E.yAxisID||!(E.yAxisID in L)||X.yAxisID)&&(E.yAxisID=X.yAxisID||de.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(h){return this.chart.scales[h]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Qo(this._data,this)},createMetaDataset:function(){var h=this,E=h.datasetElementType;return E&&new E({_chart:h.chart,_datasetIndex:h.index})},createMetaData:function(h){var E=this,P=E.dataElementType;return P&&new P({_chart:E.chart,_datasetIndex:E.index,_index:h})},addElements:function(){var X,de,h=this,E=h.getMeta(),P=h.getDataset().data||[],L=E.data;for(X=0,de=P.length;XL&&h.insertElements(L,X-L)},insertElements:function(h,E){for(var P=0;PX?h.arc(ve,Ye,E.innerRadius-X,L+(de=X/E.innerRadius),P-de,!0):h.arc(ve,Ye,X,L+Math.PI/2,P-Math.PI/2),h.closePath(),h.clip()}function si(h,E,P){var L="inner"===E.borderAlign;L?(h.lineWidth=2*E.borderWidth,h.lineJoin="round"):(h.lineWidth=E.borderWidth,h.lineJoin="bevel"),P.fullCircles&&function ir(h,E,P,L){var de,X=P.endAngle;for(L&&(P.endAngle=P.startAngle+ko,Xo(h,P),P.endAngle=X,P.endAngle===P.startAngle&&P.fullCircles&&(P.endAngle+=ko,P.fullCircles--)),h.beginPath(),h.arc(P.x,P.y,P.innerRadius,P.startAngle+ko,P.startAngle,!0),de=0;deYe;)X-=ko;for(;X=ve&&X<=Ye&&de>=P.innerRadius&&de<=P.outerRadius}return!1},getCenterPoint:function(){var h=this._view,E=(h.startAngle+h.endAngle)/2,P=(h.innerRadius+h.outerRadius)/2;return{x:h.x+Math.cos(E)*P,y:h.y+Math.sin(E)*P}},getArea:function(){var h=this._view;return Math.PI*((h.endAngle-h.startAngle)/(2*Math.PI))*(Math.pow(h.outerRadius,2)-Math.pow(h.innerRadius,2))},tooltipPosition:function(){var h=this._view,E=h.startAngle+(h.endAngle-h.startAngle)/2,P=(h.outerRadius-h.innerRadius)/2+h.innerRadius;return{x:h.x+Math.cos(E)*P,y:h.y+Math.sin(E)*P}},draw:function(){var X,h=this._chart.ctx,E=this._view,P="inner"===E.borderAlign?.33:0,L={x:E.x,y:E.y,innerRadius:E.innerRadius,outerRadius:Math.max(E.outerRadius-P,0),pixelMargin:P,startAngle:E.startAngle,endAngle:E.endAngle,fullCircles:Math.floor(E.circumference/ko)};if(h.save(),h.fillStyle=E.backgroundColor,h.strokeStyle=E.borderColor,L.fullCircles){for(L.endAngle=L.startAngle+ko,h.beginPath(),h.arc(L.x,L.y,L.outerRadius,L.startAngle,L.endAngle),h.arc(L.x,L.y,L.innerRadius,L.endAngle,L.startAngle,!0),h.closePath(),X=0;Xh.x&&(E=cr(E,"left","right")):h.baseP?P:de,r:X.right||ve<0?0:ve>E?E:ve,b:X.bottom||Ye<0?0:Ye>P?P:Ye,l:X.left||xe<0?0:xe>E?E:xe}}function Jr(h,E,P){var L=null===E,X=null===P,de=!(!h||L&&X)&&Or(h);return de&&(L||E>=de.left&&E<=de.right)&&(X||P>=de.top&&P<=de.bottom)}vr._set("global",{elements:{rectangle:{backgroundColor:or,borderColor:or,borderSkipped:"bottom",borderWidth:0}}});var ro=yt.extend({_type:"rectangle",draw:function(){var h=this._chart.ctx,E=this._view,P=function $n(h){var E=Or(h),P=E.right-E.left,L=E.bottom-E.top,X=Sn(h,P/2,L/2);return{outer:{x:E.left,y:E.top,w:P,h:L},inner:{x:E.left+X.l,y:E.top+X.t,w:P-X.l-X.r,h:L-X.t-X.b}}}(E),L=P.outer,X=P.inner;h.fillStyle=E.backgroundColor,h.fillRect(L.x,L.y,L.w,L.h),(L.w!==X.w||L.h!==X.h)&&(h.save(),h.beginPath(),h.rect(L.x,L.y,L.w,L.h),h.clip(),h.fillStyle=E.borderColor,h.rect(X.x,X.y,X.w,X.h),h.fill("evenodd"),h.restore())},height:function(){var h=this._view;return h.base-h.y},inRange:function(h,E){return Jr(this._view,h,E)},inLabelRange:function(h,E){var P=this._view;return Mr(P)?Jr(P,h,null):Jr(P,null,E)},inXRange:function(h){return Jr(this._view,h,null)},inYRange:function(h){return Jr(this._view,null,h)},getCenterPoint:function(){var E,P,h=this._view;return Mr(h)?(E=h.x,P=(h.y+h.base)/2):(E=(h.x+h.base)/2,P=h.y),{x:E,y:P}},getArea:function(){var h=this._view;return Mr(h)?h.width*Math.abs(h.y-h.base):h.height*Math.abs(h.x-h.base)},tooltipPosition:function(){var h=this._view;return{x:h.x,y:h.y}}}),go={},js=ao,ds=ua,es=ro;go.Arc=kn,go.Line=js,go.Point=ds,go.Rectangle=es;var ma=Fe._deprecated,ya=Fe.valueOrDefault;function sa(h,E,P){var Ye,xe,L=P.barThickness,X=E.stackCount,de=E.pixels[h],ve=Fe.isNullOrUndef(L)?function fa(h,E){var L,X,de,ve,P=h._length;for(de=1,ve=E.length;de0?Math.min(P,Math.abs(X-L)):P,L=X;return P}(E.scale,E.pixels):-1;return Fe.isNullOrUndef(L)?(Ye=ve*P.categoryPercentage,xe=P.barPercentage):(Ye=L*X,xe=1),{chunk:Ye/X,ratio:xe,start:de-Ye/2}}vr._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),vr._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var pl=Ri.extend({dataElementType:go.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var E,P,h=this;Ri.prototype.initialize.apply(h,arguments),(E=h.getMeta()).stack=h.getDataset().stack,E.bar=!0,P=h._getIndexScale().options,ma("bar chart",P.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),ma("bar chart",P.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),ma("bar chart",P.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),ma("bar chart",h._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),ma("bar chart",P.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(h){var L,X,E=this,P=E.getMeta().data;for(E._ruler=E.getRuler(),L=0,X=P.length;L=0&&nt.min>=0?nt.min:nt.max,Vn=void 0===nt.start?nt.end:nt.max>=0&&nt.min>=0?nt.max-nt.min:nt.min-nt.max,fr=xe.length;if(Mt||void 0===Mt&&void 0!==fn)for($r=0;$r=0&&el.max>=0?el.max:el.min,(nt.min<0&&is<0||nt.max>=0&&is>0)&&(jn+=is));return yo=de.getPixelForValue(jn),qs=(Zs=de.getPixelForValue(jn+Vn))-yo,void 0!==St&&Math.abs(qs)=0&&!ve||Vn<0&&ve?yo-St:yo+St),{size:qs,base:yo,head:Zs,center:Zs+qs/2}},calculateBarIndexPixels:function(h,E,P,L){var de="flex"===L.barThickness?function Ra(h,E,P){var xe,L=E.pixels,X=L[h],de=h>0?L[h-1]:null,ve=h=Wa?-Is:is<-Wa?Is:0)+fn,Zs=Math.cos(is),qs=Math.sin(is),el=Math.cos(yo),$a=Math.sin(yo),Ga=is<=0&&yo>=0||yo>=Is,wa=is<=nl&&yo>=nl||yo>=Is+nl,_u=is<=-nl&&yo>=-nl||yo>=Wa+nl,Va=is===-Wa||yo>=Wa?-1:Math.min(Zs,Zs*Mt,el,el*Mt),Mu=_u?-1:Math.min(qs,qs*Mt,$a,$a*Mt),ku=Ga?1:Math.max(Zs,Zs*Mt,el,el*Mt),xc=wa?1:Math.max(qs,qs*Mt,$a,$a*Mt);de=(ku-Va)/2,ve=(xc-Mu)/2,Ye=-(ku+Va)/2,xe=-(xc+Mu)/2}for($r=0,Ui=St.length;$r0&&!isNaN(h)?Is*(Math.abs(h)/E):0},getMaxBorderWidth:function(h){var X,de,ve,Ye,xe,nt,St,Mt,P=0,L=this.chart;if(!h)for(X=0,de=L.data.datasets.length;X(P=(St=nt.borderWidth)>P?St:P)?Mt:P);return P},setHoverStyle:function(h){var E=h._model,P=h._options,L=Fe.getHoverColor;h.$previousStyle={backgroundColor:E.backgroundColor,borderColor:E.borderColor,borderWidth:E.borderWidth},E.backgroundColor=ys(P.hoverBackgroundColor,L(P.backgroundColor)),E.borderColor=ys(P.hoverBorderColor,L(P.borderColor)),E.borderWidth=ys(P.hoverBorderWidth,P.borderWidth)},_getRingWeightOffset:function(h){for(var E=0,P=0;P0&&hs(de[ve-1]._model,X)&&(xe.controlPointPreviousX=St(xe.controlPointPreviousX,X.left,X.right),xe.controlPointPreviousY=St(xe.controlPointPreviousY,X.top,X.bottom)),ve0&&(de=h.getDatasetMeta(de[0]._datasetIndex).data),de},"x-axis":function(h,E){return hl(h,E,{intersect:!1})},point:function(h,E){return Vo(h,ki(E,h))},nearest:function(h,E,P){var L=ki(E,h);P.axis=P.axis||"xy";var X=Ks(P.axis);return Fs(h,L,P.intersect,X)},x:function(h,E,P){var L=ki(E,h),X=[],de=!1;return _s(h,function(ve){ve.inXRange(L.x)&&X.push(ve),ve.inRange(L.x,L.y)&&(de=!0)}),P.intersect&&!de&&(X=[]),X},y:function(h,E,P){var L=ki(E,h),X=[],de=!1;return _s(h,function(ve){ve.inYRange(L.y)&&X.push(ve),ve.inRange(L.x,L.y)&&(de=!0)}),P.intersect&&!de&&(X=[]),X}}},Jl=Fe.extend;function Xu(h,E){return Fe.where(h,function(P){return P.pos===E})}function _c(h,E){return h.sort(function(P,L){var X=E?L:P,de=E?P:L;return X.weight===de.weight?X.index-de.index:X.weight-de.weight})}function Ku(h,E,P,L){return Math.max(h[P],E[P])+Math.max(h[L],E[L])}function Xa(h,E,P){var de,ve,L=P.box,X=h.maxPadding;if(P.size&&(h[P.pos]-=P.size),P.size=P.horizontal?L.height:L.width,h[P.pos]+=P.size,L.getPadding){var Ye=L.getPadding();X.top=Math.max(X.top,Ye.top),X.left=Math.max(X.left,Ye.left),X.bottom=Math.max(X.bottom,Ye.bottom),X.right=Math.max(X.right,Ye.right)}if(de=E.outerWidth-Ku(X,h,"left","right"),ve=E.outerHeight-Ku(X,h,"top","bottom"),de!==h.w||ve!==h.h){h.w=de,h.h=ve;var xe=P.horizontal?[de,h.w]:[ve,h.h];return!(xe[0]===xe[1]||isNaN(xe[0])&&isNaN(xe[1]))}}function ru(h,E){var P=E.maxPadding;return function L(X){var de={left:0,top:0,right:0,bottom:0};return X.forEach(function(ve){de[ve]=Math.max(E[ve],P[ve])}),de}(h?["left","right"]:["top","bottom"])}function Ja(h,E,P){var X,de,ve,Ye,xe,nt,L=[];for(X=0,de=h.length;X div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"})),Kt="$chartjs",Kn="chartjs-",oi=Kn+"size-monitor",wi=Kn+"render-monitor",Vs=["animationstart","webkitAnimationStart"],Os={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ws(h,E){var P=Fe.getStyle(h,E),L=P&&P.match(/^(\d+)(\.\d+)?px$/);return L?Number(L[1]):void 0}var al=!!function(){var h=!1;try{var E=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("e",null,E)}catch(P){}return h}()&&{passive:!0};function Bs(h,E,P){h.addEventListener(E,P,al)}function mt(h,E,P){h.removeEventListener(E,P,al)}function ot(h,E,P,L,X){return{type:h,chart:E,native:X||null,x:void 0!==P?P:null,y:void 0!==L?L:null}}function Si(h){var E=document.createElement("div");return E.className=h||"",E}function qu(h,E,P){var L=h[Kt]||(h[Kt]={}),X=L.resizer=function Jo(h){var E=1e6,P=Si(oi),L=Si(oi+"-expand"),X=Si(oi+"-shrink");L.appendChild(Si()),X.appendChild(Si()),P.appendChild(L),P.appendChild(X),P._reset=function(){L.scrollLeft=E,L.scrollTop=E,X.scrollLeft=E,X.scrollTop=E};var de=function(){P._reset(),h()};return Bs(L,"scroll",de.bind(L,"expand")),Bs(X,"scroll",de.bind(X,"shrink")),P}(function Xt(h,E){var P=!1,L=[];return function(){L=Array.prototype.slice.call(arguments),E=E||this,P||(P=!0,Fe.requestAnimFrame.call(window,function(){P=!1,h.apply(E,L)}))}}(function(){if(L.resizer){var de=P.options.maintainAspectRatio&&h.parentNode,ve=de?de.clientWidth:0;E(ot("resize",P)),de&&de.clientWidth0){var de=h[0];de.label?P=de.label:de.xLabel?P=de.xLabel:X>0&&de.index-1?h.split("\n"):h}function bu(h){var E=h._xScale,P=h._yScale||h._scale,L=h._index,X=h._datasetIndex,de=h._chart.getDatasetMeta(X).controller,ve=de._getIndexScale(),Ye=de._getValueScale();return{xLabel:E?E.getLabelForIndex(L,X):"",yLabel:P?P.getLabelForIndex(L,X):"",label:ve?""+ve.getLabelForIndex(L,X):"",value:Ye?""+Ye.getLabelForIndex(L,X):"",index:L,datasetIndex:X,x:h._model.x,y:h._model.y}}function td(h){var E=vr.global;return{xPadding:h.xPadding,yPadding:h.yPadding,xAlign:h.xAlign,yAlign:h.yAlign,rtl:h.rtl,textDirection:h.textDirection,bodyFontColor:h.bodyFontColor,_bodyFontFamily:Sl(h.bodyFontFamily,E.defaultFontFamily),_bodyFontStyle:Sl(h.bodyFontStyle,E.defaultFontStyle),_bodyAlign:h.bodyAlign,bodyFontSize:Sl(h.bodyFontSize,E.defaultFontSize),bodySpacing:h.bodySpacing,titleFontColor:h.titleFontColor,_titleFontFamily:Sl(h.titleFontFamily,E.defaultFontFamily),_titleFontStyle:Sl(h.titleFontStyle,E.defaultFontStyle),titleFontSize:Sl(h.titleFontSize,E.defaultFontSize),_titleAlign:h.titleAlign,titleSpacing:h.titleSpacing,titleMarginBottom:h.titleMarginBottom,footerFontColor:h.footerFontColor,_footerFontFamily:Sl(h.footerFontFamily,E.defaultFontFamily),_footerFontStyle:Sl(h.footerFontStyle,E.defaultFontStyle),footerFontSize:Sl(h.footerFontSize,E.defaultFontSize),_footerAlign:h.footerAlign,footerSpacing:h.footerSpacing,footerMarginTop:h.footerMarginTop,caretSize:h.caretSize,cornerRadius:h.cornerRadius,backgroundColor:h.backgroundColor,opacity:0,legendColorBackground:h.multiKeyBackground,displayColors:h.displayColors,borderColor:h.borderColor,borderWidth:h.borderWidth}}function nd(h,E){return"center"===E?h.x+h.width/2:"right"===E?h.x+h.width-h.xPadding:h.x+h.xPadding}function Uu(h){return iu([],ra(h))}var Yu=yt.extend({initialize:function(){this._model=td(this._options),this._lastActive=[]},getTitle:function(){var h=this,P=h._options.callbacks,L=P.beforeTitle.apply(h,arguments),X=P.title.apply(h,arguments),de=P.afterTitle.apply(h,arguments),ve=[];return ve=iu(ve,ra(L)),ve=iu(ve,ra(X)),iu(ve,ra(de))},getBeforeBody:function(){return Uu(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(h,E){var P=this,L=P._options.callbacks,X=[];return Fe.each(h,function(de){var ve={before:[],lines:[],after:[]};iu(ve.before,ra(L.beforeLabel.call(P,de,E))),iu(ve.lines,L.label.call(P,de,E)),iu(ve.after,ra(L.afterLabel.call(P,de,E))),X.push(ve)}),X},getAfterBody:function(){return Uu(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var h=this,E=h._options.callbacks,P=E.beforeFooter.apply(h,arguments),L=E.footer.apply(h,arguments),X=E.afterFooter.apply(h,arguments),de=[];return de=iu(de,ra(P)),de=iu(de,ra(L)),iu(de,ra(X))},update:function(h){var Mt,fn,E=this,P=E._options,L=E._model,X=E._model=td(P),de=E._active,ve=E._data,Ye={xAlign:L.xAlign,yAlign:L.yAlign},xe={x:L.x,y:L.y},nt={width:L.width,height:L.height},St={x:L.caretX,y:L.caretY};if(de.length){X.opacity=1;var jn=[],Vn=[];St=Eu[P.position].call(E,de,E._eventPosition);var fr=[];for(Mt=0,fn=de.length;MtL.width&&(X=L.width-E.width),X<0&&(X=0)),"top"===St?de+=Mt:de-="bottom"===St?E.height+Mt:E.height/2,"center"===St?"left"===nt?X+=Mt:"right"===nt&&(X-=Mt):"left"===nt?X-=fn:"right"===nt&&(X+=fn),{x:X,y:de}}(X,nt=function tc(h,E){var P=h._chart.ctx,L=2*E.yPadding,X=0,de=E.body,ve=de.reduce(function(Vn,fr){return Vn+fr.before.length+fr.lines.length+fr.after.length},0),Ye=E.title.length,xe=E.footer.length,nt=E.titleFontSize,St=E.bodyFontSize,Mt=E.footerFontSize;L+=Ye*nt,L+=Ye?(Ye-1)*E.titleSpacing:0,L+=Ye?E.titleMarginBottom:0,L+=(ve+=E.beforeBody.length+E.afterBody.length)*St,L+=ve?(ve-1)*E.bodySpacing:0,L+=xe?E.footerMarginTop:0,L+=xe*Mt,L+=xe?(xe-1)*E.footerSpacing:0;var fn=0,jn=function(Vn){X=Math.max(X,P.measureText(Vn).width+fn)};return P.font=Fe.fontString(nt,E._titleFontStyle,E._titleFontFamily),Fe.each(E.title,jn),P.font=Fe.fontString(St,E._bodyFontStyle,E._bodyFontFamily),Fe.each(E.beforeBody.concat(E.afterBody),jn),fn=E.displayColors?St+2:0,Fe.each(de,function(Vn){Fe.each(Vn.before,jn),Fe.each(Vn.lines,jn),Fe.each(Vn.after,jn)}),fn=0,P.font=Fe.fontString(Mt,E._footerFontStyle,E._footerFontFamily),Fe.each(E.footer,jn),{width:X+=2*E.xPadding,height:L}}(this,X),Ye=function uu(h,E){var P=h._model,L=h._chart,X=h._chart.chartArea,de="center",ve="center";P.yL.height-E.height&&(ve="bottom");var Ye,xe,nt,St,Mt,fn=(X.left+X.right)/2,jn=(X.top+X.bottom)/2;"center"===ve?(Ye=function(fr){return fr<=fn},xe=function(fr){return fr>fn}):(Ye=function(fr){return fr<=E.width/2},xe=function(fr){return fr>=L.width-E.width/2}),nt=function(fr){return fr+E.width+P.caretSize+P.caretPadding>L.width},St=function(fr){return fr-E.width-P.caretSize-P.caretPadding<0},Mt=function(fr){return fr<=jn?"top":"bottom"},Ye(P.x)?(de="left",nt(P.x)&&(de="center",ve=Mt(P.y))):xe(P.x)&&(de="right",St(P.x)&&(de="center",ve=Mt(P.y)));var Vn=h._options;return{xAlign:Vn.xAlign?Vn.xAlign:de,yAlign:Vn.yAlign?Vn.yAlign:ve}}(this,nt),E._chart)}else X.opacity=0;return X.xAlign=Ye.xAlign,X.yAlign=Ye.yAlign,X.x=xe.x,X.y=xe.y,X.width=nt.width,X.height=nt.height,X.caretX=St.x,X.caretY=St.y,E._model=X,h&&P.custom&&P.custom.call(E,X),E},drawCaret:function(h,E){var P=this._chart.ctx,X=this.getCaretPosition(h,E,this._view);P.lineTo(X.x1,X.y1),P.lineTo(X.x2,X.y2),P.lineTo(X.x3,X.y3)},getCaretPosition:function(h,E,P){var L,X,de,ve,Ye,xe,nt=P.caretSize,St=P.cornerRadius,Mt=P.xAlign,fn=P.yAlign,jn=h.x,Vn=h.y,fr=E.width,$r=E.height;if("center"===fn)Ye=Vn+$r/2,"left"===Mt?(X=(L=jn)-nt,de=L,ve=Ye+nt,xe=Ye-nt):(X=(L=jn+fr)+nt,de=L,ve=Ye-nt,xe=Ye+nt);else if("left"===Mt?(L=(X=jn+St+nt)-nt,de=X+nt):"right"===Mt?(L=(X=jn+fr-St-nt)-nt,de=X+nt):(L=(X=P.caretX)-nt,de=X+nt),"top"===fn)Ye=(ve=Vn)-nt,xe=ve;else{Ye=(ve=Vn+$r)+nt,xe=ve;var Ui=de;de=L,L=Ui}return{x1:L,x2:X,x3:de,y1:ve,y2:Ye,y3:xe}},drawTitle:function(h,E,P){var de,ve,Ye,L=E.title,X=L.length;if(X){var xe=lu(E.rtl,E.x,E.width);for(h.x=nd(E,E._titleAlign),P.textAlign=xe.textAlign(E._titleAlign),P.textBaseline="middle",de=E.titleFontSize,ve=E.titleSpacing,P.fillStyle=E.titleFontColor,P.font=Fe.fontString(de,E._titleFontStyle,E._titleFontFamily),Ye=0;Ye0&&P.stroke()},draw:function(){var h=this._chart.ctx,E=this._view;if(0!==E.opacity){var P={width:E.width,height:E.height},L={x:E.x,y:E.y},X=Math.abs(E.opacity<.001)?0:E.opacity;this._options.enabled&&(E.title.length||E.beforeBody.length||E.body.length||E.afterBody.length||E.footer.length)&&(h.save(),h.globalAlpha=X,this.drawBackground(L,E,h,P),L.y+=E.yPadding,Fe.rtl.overrideTextDirection(h,E.textDirection),this.drawTitle(L,E,h),this.drawBody(L,E,h),this.drawFooter(L,E,h),Fe.rtl.restoreTextDirection(h,E.textDirection),h.restore())}},handleEvent:function(h){var L,E=this,P=E._options;return E._lastActive=E._lastActive||[],"mouseout"===h.type?E._active=[]:(E._active=E._chart.getElementsAtEventForMode(h,P.mode,P),P.reverse&&E._active.reverse()),(L=!Fe.arrayEquals(E._active,E._lastActive))&&(E._lastActive=E._active,(P.enabled||P.custom)&&(E._eventPosition={x:h.x,y:h.y},E.update(!0),E.pivot())),L}}),Ld=Yu;Ld.positioners=Eu;var Io=Fe.valueOrDefault;function fu(){return Fe.merge(Object.create(null),[].slice.call(arguments),{merger:function(h,E,P,L){if("xAxes"===h||"yAxes"===h){var de,ve,Ye,X=P[h].length;for(E[h]||(E[h]=[]),de=0;de=E[h].length&&E[h].push({}),Fe.merge(E[h][de],!E[h][de].type||Ye.type&&Ye.type!==E[h][de].type?[ec.getScaleDefaults(ve),Ye]:Ye)}else Fe._merger(h,E,P,L)}})}function Sr(){return Fe.merge(Object.create(null),[].slice.call(arguments),{merger:function(h,E,P,L){var X=E[h]||Object.create(null),de=P[h];"scales"===h?E[h]=fu(X,de):"scale"===h?E[h]=Fe.merge(X,[ec.getScaleDefaults(de.type),de]):Fe._merger(h,E,P,L)}})}function De(h){var E=h.options;Fe.each(h.scales,function(P){Bl.removeBox(h,P)}),E=Sr(vr.global,vr[h.config.type],E),h.options=h.config.options=E,h.ensureScalesHaveIDs(),h.buildOrUpdateScales(),h.tooltip._options=E.tooltips,h.tooltip.initialize()}function ct(h,E,P){var L,X=function(de){return de.id===L};do{L=E+P++}while(Fe.findIndex(h,X)>=0);return L}function It(h){return"top"===h||"bottom"===h}function Ht(h,E){return function(P,L){return P[h]===L[h]?P[E]-L[E]:P[h]-L[h]}}vr._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var _n=function(h,E){return this.construct(h,E),this};Fe.extend(_n.prototype,{construct:function(h,E){var P=this;E=function Z(h){var E=(h=h||Object.create(null)).data=h.data||{};return E.datasets=E.datasets||[],E.labels=E.labels||[],h.options=Sr(vr.global,vr[h.type],h.options||{}),h}(E);var L=Fa.acquireContext(h,E),X=L&&L.canvas,de=X&&X.height,ve=X&&X.width;P.id=Fe.uid(),P.ctx=L,P.canvas=X,P.config=E,P.width=ve,P.height=de,P.aspectRatio=de?ve/de:null,P.options=E.options,P._bufferedRender=!1,P._layers=[],P.chart=P,P.controller=P,_n.instances[P.id]=P,Object.defineProperty(P,"data",{get:function(){return P.config.data},set:function(Ye){P.config.data=Ye}}),L&&X?(P.initialize(),P.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var h=this;return Es.notify(h,"beforeInit"),Fe.retinaScale(h,h.options.devicePixelRatio),h.bindEvents(),h.options.responsive&&h.resize(!0),h.initToolTip(),Es.notify(h,"afterInit"),h},clear:function(){return Fe.canvas.clear(this),this},stop:function(){return Cr.cancelAnimation(this),this},resize:function(h){var E=this,P=E.options,L=E.canvas,X=P.maintainAspectRatio&&E.aspectRatio||null,de=Math.max(0,Math.floor(Fe.getMaximumWidth(L))),ve=Math.max(0,Math.floor(X?de/X:Fe.getMaximumHeight(L)));if((E.width!==de||E.height!==ve)&&(L.width=E.width=de,L.height=E.height=ve,L.style.width=de+"px",L.style.height=ve+"px",Fe.retinaScale(E,P.devicePixelRatio),!h)){var Ye={width:de,height:ve};Es.notify(E,"resize",[Ye]),P.onResize&&P.onResize(E,Ye),E.stop(),E.update({duration:P.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var h=this.options,E=h.scales||{},P=h.scale;Fe.each(E.xAxes,function(L,X){L.id||(L.id=ct(E.xAxes,"x-axis-",X))}),Fe.each(E.yAxes,function(L,X){L.id||(L.id=ct(E.yAxes,"y-axis-",X))}),P&&(P.id=P.id||"scale")},buildOrUpdateScales:function(){var h=this,E=h.options,P=h.scales||{},L=[],X=Object.keys(P).reduce(function(de,ve){return de[ve]=!1,de},{});E.scales&&(L=L.concat((E.scales.xAxes||[]).map(function(de){return{options:de,dtype:"category",dposition:"bottom"}}),(E.scales.yAxes||[]).map(function(de){return{options:de,dtype:"linear",dposition:"left"}}))),E.scale&&L.push({options:E.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),Fe.each(L,function(de){var ve=de.options,Ye=ve.id,xe=Io(ve.type,de.dtype);It(ve.position)!==It(de.dposition)&&(ve.position=de.dposition),X[Ye]=!0;var nt=null;if(Ye in P&&P[Ye].type===xe)(nt=P[Ye]).options=ve,nt.ctx=h.ctx,nt.chart=h;else{var St=ec.getScaleConstructor(xe);if(!St)return;nt=new St({id:Ye,type:xe,options:ve,ctx:h.ctx,chart:h}),P[nt.id]=nt}nt.mergeTicksOptions(),de.isDefault&&(h.scale=nt)}),Fe.each(X,function(de,ve){de||delete P[ve]}),h.scales=P,ec.addScalesToLayout(this)},buildOrUpdateControllers:function(){var L,X,h=this,E=[],P=h.data.datasets;for(L=0,X=P.length;L=0;--L)E.drawDataset(P[L],h);Es.notify(E,"afterDatasetsDraw",[h])}},drawDataset:function(h,E){var L={meta:h,index:h.index,easingValue:E};!1!==Es.notify(this,"beforeDatasetDraw",[L])&&(h.controller.draw(E),Es.notify(this,"afterDatasetDraw",[L]))},_drawTooltip:function(h){var E=this,P=E.tooltip,L={tooltip:P,easingValue:h};!1!==Es.notify(E,"beforeTooltipDraw",[L])&&(P.draw(),Es.notify(E,"afterTooltipDraw",[L]))},getElementAtEvent:function(h){return sl.modes.single(this,h)},getElementsAtEvent:function(h){return sl.modes.label(this,h,{intersect:!0})},getElementsAtXAxis:function(h){return sl.modes["x-axis"](this,h,{intersect:!0})},getElementsAtEventForMode:function(h,E,P){var L=sl.modes[E];return"function"==typeof L?L(this,h,P):[]},getDatasetAtEvent:function(h){return sl.modes.dataset(this,h,{intersect:!0})},getDatasetMeta:function(h){var E=this,P=E.data.datasets[h];P._meta||(P._meta={});var L=P._meta[E.id];return L||(L=P._meta[E.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:P.order||0,index:h}),L},getVisibleDatasetCount:function(){for(var h=0,E=0,P=this.data.datasets.length;E3?P[2]-P[1]:P[1]-P[0];Math.abs(L)>1&&h!==Math.floor(h)&&(L=h-Math.floor(h));var X=Fe.log10(Math.abs(L)),de="";if(0!==h)if(Math.max(Math.abs(P[0]),Math.abs(P[P.length-1]))<1e-4){var Ye=Fe.log10(Math.abs(h)),xe=Math.floor(Ye)-Math.floor(X);xe=Math.max(Math.min(xe,20),0),de=h.toExponential(xe)}else{var nt=-1*Math.floor(X);nt=Math.max(Math.min(nt,20),0),de=h.toFixed(nt)}else de="0";return de},logarithmic:function(h,E,P){var L=h/Math.pow(10,Math.floor(Fe.log10(h)));return 0===h?"0":1===L||2===L||5===L||0===E||E===P.length-1?h.toExponential():""}}},Yn=Fe.isArray,Rr=Fe.isNullOrUndef,br=Fe.valueOrDefault,fo=Fe.valueAtIndexOrDefault;function ls(h,E,P){var nt,L=h.getTicks().length,X=Math.min(E,L-1),de=h.getPixelForTick(X),ve=h._startPixel,Ye=h._endPixel;if(!(P&&(nt=1===L?Math.max(de-ve,Ye-de):0===E?(h.getPixelForTick(1)-de)/2:(de-h.getPixelForTick(X-1))/2,de+=XYe+1e-6)))return de}function Us(h,E,P,L){var St,Mt,fn,jn,Vn,fr,$r,Ui,is,yo,Zs,qs,el,X=P.length,de=[],ve=[],Ye=[],xe=0,nt=0;for(St=0;StE){for(de=0;de=de||L<=1||!h.isHorizontal()?h.labelRotation=X:(xe=(Ye=h._getLabelSizes()).widest.width,nt=Ye.highest.height-Ye.highest.offset,St=Math.min(h.maxWidth,h.chart.width-xe),xe+6>(Mt=E.offset?h.maxWidth/L:St/(L-1))&&(Mt=St/(L-(E.offset?.5:1)),fn=h.maxHeight-Zc(E.gridLines)-P.padding-Ic(E.scaleLabel),jn=Math.sqrt(xe*xe+nt*nt),ve=Fe.toDegrees(Math.min(Math.asin(Math.min((Ye.highest.height+6)/Mt,1)),Math.asin(Math.min(fn/jn,1))-Math.asin(nt/jn))),ve=Math.max(X,Math.min(de,ve))),h.labelRotation=ve)},afterCalculateTickRotation:function(){Fe.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){Fe.callback(this.options.beforeFit,[this])},fit:function(){var h=this,E=h.minSize={width:0,height:0},P=h.chart,L=h.options,X=L.ticks,de=L.scaleLabel,ve=L.gridLines,Ye=h._isVisible(),xe="bottom"===L.position,nt=h.isHorizontal();if(nt?E.width=h.maxWidth:Ye&&(E.width=Zc(ve)+Ic(de)),nt?Ye&&(E.height=Zc(ve)+Ic(de)):E.height=h.maxHeight,X.display&&Ye){var St=Su(X),Mt=h._getLabelSizes(),fn=Mt.first,jn=Mt.last,Vn=Mt.widest,fr=Mt.highest,$r=.4*St.minor.lineHeight,Ui=X.padding;if(nt){var is=0!==h.labelRotation,yo=Fe.toRadians(h.labelRotation),Zs=Math.cos(yo),qs=Math.sin(yo);E.height=Math.min(h.maxHeight,E.height+(qs*Vn.width+Zs*(fr.height-(is?fr.offset:0))+(is?0:$r))+Ui);var wa,Gl,$a=h.getPixelForTick(0)-h.left,Ga=h.right-h.getPixelForTick(h.getTicks().length-1);is?(wa=xe?Zs*fn.width+qs*fn.offset:qs*(fn.height-fn.offset),Gl=xe?qs*(jn.height-jn.offset):Zs*jn.width+qs*jn.offset):(wa=fn.width/2,Gl=jn.width/2),h.paddingLeft=Math.max((wa-$a)*h.width/(h.width-$a),0)+3,h.paddingRight=Math.max((Gl-Ga)*h.width/(h.width-Ga),0)+3}else E.width=Math.min(h.maxWidth,E.width+(X.mirror?0:Vn.width+Ui+$r)),h.paddingTop=fn.height/2,h.paddingBottom=jn.height/2}h.handleMargins(),nt?(h.width=h._length=P.width-h.margins.left-h.margins.right,h.height=E.height):(h.width=E.width,h.height=h._length=P.height-h.margins.top-h.margins.bottom)},handleMargins:function(){var h=this;h.margins&&(h.margins.left=Math.max(h.paddingLeft,h.margins.left),h.margins.top=Math.max(h.paddingTop,h.margins.top),h.margins.right=Math.max(h.paddingRight,h.margins.right),h.margins.bottom=Math.max(h.paddingBottom,h.margins.bottom))},afterFit:function(){Fe.callback(this.options.afterFit,[this])},isHorizontal:function(){var h=this.options.position;return"top"===h||"bottom"===h},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(h){if(Rr(h))return NaN;if(("number"==typeof h||h instanceof Number)&&!isFinite(h))return NaN;if(h)if(this.isHorizontal()){if(void 0!==h.x)return this.getRightValue(h.x)}else if(void 0!==h.y)return this.getRightValue(h.y);return h},_convertTicksToLabels:function(h){var P,L,X,E=this;for(E.ticks=h.map(function(de){return de.value}),E.beforeTickToLabelConversion(),P=E.convertTicksToLabels(h)||E.ticks,E.afterTickToLabelConversion(),L=0,X=h.length;LL-1?null:E.getPixelForDecimal(h*X+(P?X/2:0))},getPixelForDecimal:function(h){var E=this;return E._reversePixels&&(h=1-h),E._startPixel+h*E._length},getDecimalForPixel:function(h){var E=(h-this._startPixel)/this._length;return this._reversePixels?1-E:E},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var h=this,E=h.min,P=h.max;return h.beginAtZero?0:E<0&&P<0?P:E>0&&P>0?E:0},_autoSkip:function(h){var nt,St,Mt,fn,E=this,P=E.options.ticks,L=E._length,X=P.maxTicksLimit||L/E._tickSize()+1,de=P.major.enabled?function Hc(h){var P,L,E=[];for(P=0,L=h.length;PX)return function La(h,E,P){var de,ve,L=0,X=E[0];for(P=Math.ceil(P),de=0;dede)return Ye;return Math.max(de,1)}(de,h,0,X),ve>0){for(nt=0,St=ve-1;nt1?(xe-Ye)/(ve-1):null)?0:Ye-fn,Ye),kd(h,Mt,xe,Fe.isNullOrUndef(fn)?h.length:xe+fn),Zd(h)}return kd(h,Mt),Zd(h)},_tickSize:function(){var h=this,E=h.options.ticks,P=Fe.toRadians(h.labelRotation),L=Math.abs(Math.cos(P)),X=Math.abs(Math.sin(P)),de=h._getLabelSizes(),ve=E.autoSkipPadding||0,Ye=de?de.widest.width+ve:0,xe=de?de.highest.height+ve:0;return h.isHorizontal()?xe*L>Ye*X?Ye/L:xe/X:xe*X=0&&(de=Ye),void 0!==X&&(Ye=E.indexOf(X))>=0&&(ve=Ye),h.minIndex=de,h.maxIndex=ve,h.min=E[de],h.max=E[ve]},buildTicks:function(){var h=this,E=h._getLabels(),P=h.minIndex,L=h.maxIndex;h.ticks=0===P&&L===E.length-1?E:E.slice(P,L+1)},getLabelForIndex:function(h,E){var P=this,L=P.chart;return L.getDatasetMeta(E).controller._getValueScaleId()===P.id?P.getRightValue(L.data.datasets[E].data[h]):P._getLabels()[h]},_configure:function(){var h=this,E=h.options.offset,P=h.ticks;Mo.prototype._configure.call(h),h.isHorizontal()||(h._reversePixels=!h._reversePixels),P&&(h._startValue=h.minIndex-(E?.5:0),h._valueRange=Math.max(P.length-(E?0:1),1))},getPixelForValue:function(h,E,P){var X,de,ve,L=this;return!wo(E)&&!wo(P)&&(h=L.chart.data.datasets[P].data[E]),wo(h)||(X=L.isHorizontal()?h.x:h.y),(void 0!==X||void 0!==h&&isNaN(E))&&(de=L._getLabels(),h=Fe.valueOrDefault(X,h),E=-1!==(ve=de.indexOf(h))?ve:E,isNaN(E)&&(E=h)),L.getPixelForDecimal((E-L._startValue)/L._valueRange)},getPixelForTick:function(h){var E=this.ticks;return h<0||h>E.length-1?null:this.getPixelForValue(E[h],h+this.minIndex)},getValueForPixel:function(h){var E=this,P=Math.round(E._startValue+E.getDecimalForPixel(h)*E._valueRange);return Math.min(Math.max(P,0),E.ticks.length-1)},getBasePixel:function(){return this.bottom}});Tl._defaults={position:"bottom"};var gc=Fe.isNullOrUndef;var pa=Mo.extend({getRightValue:function(h){return"string"==typeof h?+h:Mo.prototype.getRightValue.call(this,h)},handleTickRangeOptions:function(){var h=this,P=h.options.ticks;if(P.beginAtZero){var L=Fe.sign(h.min),X=Fe.sign(h.max);L<0&&X<0?h.max=0:L>0&&X>0&&(h.min=0)}var de=void 0!==P.min||void 0!==P.suggestedMin,ve=void 0!==P.max||void 0!==P.suggestedMax;void 0!==P.min?h.min=P.min:void 0!==P.suggestedMin&&(h.min=null===h.min?P.suggestedMin:Math.min(h.min,P.suggestedMin)),void 0!==P.max?h.max=P.max:void 0!==P.suggestedMax&&(h.max=null===h.max?P.suggestedMax:Math.max(h.max,P.suggestedMax)),de!==ve&&h.min>=h.max&&(de?h.max=h.min+1:h.min=h.max-1),h.min===h.max&&(h.max++,P.beginAtZero||h.min--)},getTickLimit:function(){var X,h=this,E=h.options.ticks,P=E.stepSize,L=E.maxTicksLimit;return P?X=Math.ceil(h.max/P)-Math.floor(h.min/P)+1:(X=h._computeTickLimit(),L=L||11),L&&(X=Math.min(L,X)),X},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Fe.noop,buildTicks:function(){var h=this,P=h.options.ticks,L=h.getTickLimit(),X={maxTicks:L=Math.max(2,L),min:P.min,max:P.max,precision:P.precision,stepSize:Fe.valueOrDefault(P.fixedStepSize,P.stepSize)},de=h.ticks=function En(h,E){var jn,Vn,fr,$r,P=[],X=h.stepSize,de=X||1,ve=h.maxTicks-1,Ye=h.min,xe=h.max,nt=h.precision,St=E.min,Mt=E.max,fn=Fe.niceNum((Mt-St)/ve/de)*de;if(fn<1e-14&&gc(Ye)&&gc(xe))return[St,Mt];($r=Math.ceil(Mt/fn)-Math.floor(St/fn))>ve&&(fn=Fe.niceNum($r*fn/ve/de)*de),X||gc(nt)?jn=Math.pow(10,Fe._decimalPlaces(fn)):(jn=Math.pow(10,nt),fn=Math.ceil(fn*jn)/jn),Vn=Math.floor(St/fn)*fn,fr=Math.ceil(Mt/fn)*fn,X&&(!gc(Ye)&&Fe.almostWhole(Ye/fn,fn/1e3)&&(Vn=Ye),!gc(xe)&&Fe.almostWhole(xe/fn,fn/1e3)&&(fr=xe)),$r=Fe.almostEquals($r=(fr-Vn)/fn,Math.round($r),fn/1e3)?Math.round($r):Math.ceil($r),Vn=Math.round(Vn*jn)/jn,fr=Math.round(fr*jn)/jn,P.push(gc(Ye)?Vn:Ye);for(var Ui=1;Ui<$r;++Ui)P.push(Math.round((Vn+Ui*fn)*jn)/jn);return P.push(gc(xe)?fr:xe),P}(X,h);h.handleDirectionalChanges(),h.max=Fe.max(de),h.min=Fe.min(de),P.reverse?(de.reverse(),h.start=h.max,h.end=h.min):(h.start=h.min,h.end=h.max)},convertTicksToLabels:function(){var h=this;h.ticksAsNumbers=h.ticks.slice(),h.zeroLineIndex=h.ticks.indexOf(0),Mo.prototype.convertTicksToLabels.call(h)},_configure:function(){var X,h=this,E=h.getTicks(),P=h.min,L=h.max;Mo.prototype._configure.call(h),h.options.offset&&E.length&&(P-=X=(L-P)/Math.max(E.length-1,1)/2,L+=X),h._startValue=P,h._endValue=L,h._valueRange=L-P}}),rd={position:"left",ticks:{callback:Pr.formatters.linear}};function ht(h,E,P,L){var St,Mt,X=h.options,ve=function ge(h,E,P){var L=[P.type,void 0===E&&void 0===P.stack?P.index:"",P.stack].join(".");return void 0===h[L]&&(h[L]={pos:[],neg:[]}),h[L]}(E,X.stacked,P),Ye=ve.pos,xe=ve.neg,nt=L.length;for(St=0;StE.length-1?null:this.getPixelForValue(E[h])}});sn._defaults=rd;var gr=Fe.valueOrDefault,gi=Fe.math.log10;var Ta={position:"left",ticks:{callback:Pr.formatters.logarithmic}};function ms(h,E){return Fe.isFinite(h)&&h>=0?h:E}var ha=Mo.extend({determineDataLimits:function(){var ve,Ye,xe,nt,St,Mt,h=this,E=h.options,P=h.chart,L=P.data.datasets,X=h.isHorizontal();function de($r){return X?$r.xAxisID===h.id:$r.yAxisID===h.id}h.min=Number.POSITIVE_INFINITY,h.max=Number.NEGATIVE_INFINITY,h.minNotZero=Number.POSITIVE_INFINITY;var fn=E.stacked;if(void 0===fn)for(ve=0;ve0){var Ui=Fe.min($r),is=Fe.max($r);h.min=Math.min(h.min,Ui),h.max=Math.max(h.max,is)}})}else for(ve=0;ve0?h.min:h.max<1?Math.pow(10,Math.floor(gi(h.max))):1)},buildTicks:function(){var h=this,E=h.options.ticks,P=!h.isHorizontal(),L={min:ms(E.min),max:ms(E.max)},X=h.ticks=function Lo(h,E){var ve,Ye,P=[],L=gr(h.min,Math.pow(10,Math.floor(gi(E.min)))),X=Math.floor(gi(E.max)),de=Math.ceil(E.max/Math.pow(10,X));0===L?(ve=Math.floor(gi(E.minNotZero)),Ye=Math.floor(E.minNotZero/Math.pow(10,ve)),P.push(L),L=Ye*Math.pow(10,ve)):(ve=Math.floor(gi(L)),Ye=Math.floor(L/Math.pow(10,ve)));var xe=ve<0?Math.pow(10,Math.abs(ve)):1;do{P.push(L),10==++Ye&&(Ye=1,xe=++ve>=0?1:xe),L=Math.round(Ye*Math.pow(10,ve)*xe)/xe}while(veE.length-1?null:this.getPixelForValue(E[h])},_getFirstTickValue:function(h){var E=Math.floor(gi(h));return Math.floor(h/Math.pow(10,E))*Math.pow(10,E)},_configure:function(){var h=this,E=h.min,P=0;Mo.prototype._configure.call(h),0===E&&(E=h._getFirstTickValue(h.minNotZero),P=gr(h.options.ticks.fontSize,vr.global.defaultFontSize)/h._length),h._startValue=gi(E),h._valueOffset=P,h._valueRange=(gi(h.max)-gi(E))/(1-P)},getPixelForValue:function(h){var E=this,P=0;return(h=+E.getRightValue(h))>E.min&&h>0&&(P=(gi(h)-E._startValue)/E._valueRange+E._valueOffset),E.getPixelForDecimal(P)},getValueForPixel:function(h){var E=this,P=E.getDecimalForPixel(h);return 0===P&&0===E.min?0:Math.pow(10,E._startValue+(P-E._valueOffset)*E._valueRange)}});ha._defaults=Ta;var Nu=Fe.valueOrDefault,cc=Fe.valueAtIndexOrDefault,ka=Fe.options.resolve,rl={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Pr.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(h){return h}}};function vc(h){var E=h.ticks;return E.display&&h.display?Nu(E.fontSize,vr.global.defaultFontSize)+2*E.backdropPaddingY:0}function yc(h,E,P){return Fe.isArray(P)?{w:Fe.longestText(h,h.font,P),h:P.length*E}:{w:h.measureText(P).width,h:E}}function ju(h,E,P,L,X){return h===L||h===X?{start:E-P/2,end:E+P/2}:hX?{start:E-P,end:E}:{start:E,end:E+P}}function nc(h){return 0===h||180===h?"center":h<180?"left":"right"}function gd(h,E,P,L){var de,ve,X=P.y+L/2;if(Fe.isArray(E))for(de=0,ve=E.length;de270||h<90)&&(P.y-=E.h)}function ll(h){return Fe.isNumber(h)?h:0}var Ll=pa.extend({setDimensions:function(){var h=this;h.width=h.maxWidth,h.height=h.maxHeight,h.paddingTop=vc(h.options)/2,h.xCenter=Math.floor(h.width/2),h.yCenter=Math.floor((h.height-h.paddingTop)/2),h.drawingArea=Math.min(h.height-h.paddingTop,h.width)/2},determineDataLimits:function(){var h=this,E=h.chart,P=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY;Fe.each(E.data.datasets,function(X,de){if(E.isDatasetVisible(de)){var ve=E.getDatasetMeta(de);Fe.each(X.data,function(Ye,xe){var nt=+h.getRightValue(Ye);isNaN(nt)||ve.data[xe].hidden||(P=Math.min(nt,P),L=Math.max(nt,L))})}}),h.min=P===Number.POSITIVE_INFINITY?0:P,h.max=L===Number.NEGATIVE_INFINITY?0:L,h.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/vc(this.options))},convertTicksToLabels:function(){var h=this;pa.prototype.convertTicksToLabels.call(h),h.pointLabels=h.chart.data.labels.map(function(){var E=Fe.callback(h.options.pointLabels.callback,arguments,h);return E||0===E?E:""})},getLabelForIndex:function(h,E){return+this.getRightValue(this.chart.data.datasets[E].data[h])},fit:function(){var h=this,E=h.options;E.display&&E.pointLabels.display?function Ul(h){var X,de,ve,E=Fe.options._parseFont(h.options.pointLabels),P={l:0,r:h.width,t:0,b:h.height-h.paddingTop},L={};h.ctx.font=E.string,h._pointLabelSizes=[];var Ye=h.chart.data.labels.length;for(X=0;XP.r&&(P.r=St.end,L.r=xe),Mt.startP.b&&(P.b=Mt.end,L.b=xe)}h.setReductions(h.drawingArea,P,L)}(h):h.setCenterPoint(0,0,0,0)},setReductions:function(h,E,P){var L=this,X=E.l/Math.sin(P.l),de=Math.max(E.r-L.width,0)/Math.sin(P.r),ve=-E.t/Math.cos(P.t),Ye=-Math.max(E.b-(L.height-L.paddingTop),0)/Math.cos(P.b);X=ll(X),de=ll(de),ve=ll(ve),Ye=ll(Ye),L.drawingArea=Math.min(Math.floor(h-(X+de)/2),Math.floor(h-(ve+Ye)/2)),L.setCenterPoint(X,de,ve,Ye)},setCenterPoint:function(h,E,P,L){var X=this,Ye=P+X.drawingArea,xe=X.height-X.paddingTop-L-X.drawingArea;X.xCenter=Math.floor((h+X.drawingArea+(X.width-E-X.drawingArea))/2+X.left),X.yCenter=Math.floor((Ye+xe)/2+X.top+X.paddingTop)},getIndexAngle:function(h){var E=this.chart,de=(h*(360/E.data.labels.length)+((E.options||{}).startAngle||0))%360;return(de<0?de+360:de)*Math.PI*2/360},getDistanceFromCenterForValue:function(h){var E=this;if(Fe.isNullOrUndef(h))return NaN;var P=E.drawingArea/(E.max-E.min);return E.options.ticks.reverse?(E.max-h)*P:(h-E.min)*P},getPointPosition:function(h,E){var P=this,L=P.getIndexAngle(h)-Math.PI/2;return{x:Math.cos(L)*E+P.xCenter,y:Math.sin(L)*E+P.yCenter}},getPointPositionForValue:function(h,E){return this.getPointPosition(h,this.getDistanceFromCenterForValue(E))},getBasePosition:function(h){var E=this,P=E.min,L=E.max;return E.getPointPositionForValue(h||0,E.beginAtZero?0:P<0&&L<0?L:P>0&&L>0?P:0)},_drawGrid:function(){var Ye,xe,nt,h=this,E=h.ctx,P=h.options,L=P.gridLines,X=P.angleLines,de=Nu(X.lineWidth,L.lineWidth),ve=Nu(X.color,L.color);if(P.pointLabels.display&&function cu(h){var E=h.ctx,P=h.options,L=P.pointLabels,X=vc(P),de=h.getDistanceFromCenterForValue(P.ticks.reverse?h.min:h.max),ve=Fe.options._parseFont(L);E.save(),E.font=ve.string,E.textBaseline="middle";for(var Ye=h.chart.data.labels.length-1;Ye>=0;Ye--){var nt=h.getPointPosition(Ye,de+(0===Ye?X/2:0)+5),St=cc(L.fontColor,Ye,vr.global.defaultFontColor);E.fillStyle=St;var Mt=h.getIndexAngle(Ye),fn=Fe.toDegrees(Mt);E.textAlign=nc(fn),Fc(fn,h._pointLabelSizes[Ye],nt),gd(E,h.pointLabels[Ye],nt,ve.lineHeight)}E.restore()}(h),L.display&&Fe.each(h.ticks,function(St,Mt){0!==Mt&&(xe=h.getDistanceFromCenterForValue(h.ticksAsNumbers[Mt]),function Ma(h,E,P,L){var nt,X=h.ctx,de=E.circular,ve=h.chart.data.labels.length,Ye=cc(E.color,L-1),xe=cc(E.lineWidth,L-1);if((de||ve)&&Ye&&xe){if(X.save(),X.strokeStyle=Ye,X.lineWidth=xe,X.setLineDash&&(X.setLineDash(E.borderDash||[]),X.lineDashOffset=E.borderDashOffset||0),X.beginPath(),de)X.arc(h.xCenter,h.yCenter,P,0,2*Math.PI);else{nt=h.getPointPosition(0,P),X.moveTo(nt.x,nt.y);for(var St=1;St=0;Ye--)xe=h.getDistanceFromCenterForValue(P.ticks.reverse?h.min:h.max),nt=h.getPointPosition(Ye,xe),E.beginPath(),E.moveTo(h.xCenter,h.yCenter),E.lineTo(nt.x,nt.y),E.stroke();E.restore()}},_drawLabels:function(){var h=this,E=h.ctx,L=h.options.ticks;if(L.display){var Ye,xe,X=h.getIndexAngle(0),de=Fe.options._parseFont(L),ve=Nu(L.fontColor,vr.global.defaultFontColor);E.save(),E.font=de.string,E.translate(h.xCenter,h.yCenter),E.rotate(X),E.textAlign="center",E.textBaseline="middle",Fe.each(h.ticks,function(nt,St){0===St&&!L.reverse||(Ye=h.getDistanceFromCenterForValue(h.ticksAsNumbers[St]),L.showLabelBackdrop&&(xe=E.measureText(nt).width,E.fillStyle=L.backdropColor,E.fillRect(-xe/2-L.backdropPaddingX,-Ye-de.size/2-L.backdropPaddingY,xe+2*L.backdropPaddingX,de.size+2*L.backdropPaddingY)),E.fillStyle=ve,E.fillText(nt,0,-Ye))}),E.restore()}},_drawTitle:Fe.noop});Ll._defaults=rl;var gf=Fe._deprecated,zd=Fe.options.resolve,id=Fe.valueOrDefault,Al=Number.MIN_SAFE_INTEGER||-9007199254740991,kl=Number.MAX_SAFE_INTEGER||9007199254740991,Gu={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ul=Object.keys(Gu);function Cu(h,E){return h-E}function Ec(h){return Fe.valueOrDefault(h.time.min,h.ticks.min)}function Iu(h){return Fe.valueOrDefault(h.time.max,h.ticks.max)}function xf(h,E,P,L){var X=function cl(h,E,P){for(var de,ve,Ye,L=0,X=h.length-1;L>=0&&L<=X;){if(Ye=h[de=L+X>>1],!(ve=h[de-1]||null))return{lo:null,hi:Ye};if(Ye[E]P))return{lo:ve,hi:Ye};X=de-1}}return{lo:Ye,hi:null}}(h,E,P),de=X.lo?X.hi?X.lo:h[h.length-2]:h[0],ve=X.lo?X.hi?X.hi:h[h.length-1]:h[1],Ye=ve[E]-de[E];return de[L]+(ve[L]-de[L])*(Ye?(P-de[E])/Ye:0)}function Bc(h,E){var P=h._adapter,L=h.options.time,X=L.parser,de=X||L.format,ve=E;return"function"==typeof X&&(ve=X(ve)),Fe.isFinite(ve)||(ve="string"==typeof de?P.parse(ve,de):P.parse(ve)),null!==ve?+ve:(!X&&"function"==typeof de&&(ve=de(E),Fe.isFinite(ve)||(ve=P.parse(ve))),ve)}function vd(h,E){if(Fe.isNullOrUndef(E))return null;var P=h.options.time,L=Bc(h,h.getRightValue(E));return null===L||P.round&&(L=+h._adapter.startOf(L,P.round)),L}function dc(h,E,P,L){var de,ve,X=ul.length;for(de=ul.indexOf(h);de=0&&(E[xe].major=!0);return E}(h,L,X,P):L}var Rf=Mo.extend({initialize:function(){this.mergeTicksOptions(),Mo.prototype.initialize.call(this)},update:function(){var h=this,E=h.options,P=E.time||(E.time={}),L=h._adapter=new Vi._date(E.adapters.date);return gf("time scale",P.format,"time.format","time.parser"),gf("time scale",P.min,"time.min","ticks.min"),gf("time scale",P.max,"time.max","ticks.max"),Fe.mergeIf(P.displayFormats,L.formats()),Mo.prototype.update.apply(h,arguments)},getRightValue:function(h){return h&&void 0!==h.t&&(h=h.t),Mo.prototype.getRightValue.call(this,h)},determineDataLimits:function(){var St,Mt,fn,jn,Vn,fr,$r,h=this,E=h.chart,P=h._adapter,L=h.options,X=L.time.unit||"day",de=kl,ve=Al,Ye=[],xe=[],nt=[],Ui=h._getLabels();for(St=0,fn=Ui.length;St1?function cn(h){var L,X,de,E={},P=[];for(L=0,X=h.length;L1e5*xe)throw E+" and "+P+" are too far apart with stepSize of "+xe+" "+Ye;for(fn=St;fn=E&&jn<=P&&Ye.push(jn);return h.min=E,h.max=P,h._unit=de.unit||(X.autoSkip?dc(de.minUnit,h.min,h.max,xe):function yd(h,E,P,L,X){var de,ve;for(de=ul.length-1;de>=ul.indexOf(P);de--)if(Gu[ve=ul[de]].common&&h._adapter.diff(X,L,ve)>=E-1)return ve;return ul[P?ul.indexOf(P):0]}(h,Ye.length,de.minUnit,h.min,h.max)),h._majorUnit=X.major.enabled&&"year"!==h._unit?function $p(h){for(var E=ul.indexOf(h)+1,P=ul.length;EE&&nt=0&&h0?Ye:1}});Rf._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var Lc={category:Tl,linear:sn,logarithmic:ha,radialLinear:Ll,time:Rf},Fu={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Vi._date.override("function"==typeof r?{_id:"moment",formats:function(){return Fu},parse:function(h,E){return"string"==typeof h&&"string"==typeof E?h=r(h,E):h instanceof r||(h=r(h)),h.isValid()?h.valueOf():null},format:function(h,E){return r(h).format(E)},add:function(h,E,P){return r(h).add(E,P).valueOf()},diff:function(h,E,P){return r(h).diff(r(E),P)},startOf:function(h,E,P){return h=r(h),"isoWeek"===E?h.isoWeekday(P).valueOf():h.startOf(E).valueOf()},endOf:function(h,E){return r(h).endOf(E).valueOf()},_create:function(h){return r(h)}}:{}),vr._set("global",{plugins:{filler:{propagate:!0}}});var od={dataset:function(h){var E=h.fill,P=h.chart,L=P.getDatasetMeta(E),de=L&&P.isDatasetVisible(E)&&L.dataset._children||[],ve=de.length||0;return ve?function(Ye,xe){return xe=P)&&de;switch(X){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return X;default:return!1}}function sd(h){return(h.el._scale||{}).getPointPositionForValue?function zc(h){var ve,Ye,xe,nt,St,E=h.el._scale,P=E.options,L=E.chart.data.labels.length,X=h.fill,de=[];if(!L)return null;for(Ye=P.ticks.reverse?E.min:E.max,xe=E.getPointPositionForValue(0,ve=P.ticks.reverse?E.max:E.min),nt=0;nt0;--de)h.arc(ve,Ye,xe,P[de].angle,P[de-1].angle,!0);return}for(h.lineTo(P[X-1].x,P[X-1].y),de=X-1;de>0;--de)Fe.canvas.lineTo(h,P[de],P[de-1],!0)}}function $l(h,E,P,L,X,de){var fn,jn,Vn,fr,$r,Ui,is,yo,ve=E.length,Ye=L.spanGaps,xe=[],nt=[],St=0,Mt=0;for(h.beginPath(),fn=0,jn=ve;fn=0;--X)(L=E[X].$filler)&&L.visible&&(Ye=(de=L.el)._children||[],nt=(ve=de._view).backgroundColor||vr.global.defaultColor,(xe=L.mapper)&&nt&&Ye.length&&(Fe.canvas.clipArea(P,h.chartArea),$l(P,Ye,xe,ve,nt,de._loop),Fe.canvas.unclipArea(P)))}},ga=Fe.rtl.getRtlAdapter,Dc=Fe.noop,Lu=Fe.valueOrDefault;function bc(h,E){return h.usePointStyle&&h.boxWidth>E?E:h.boxWidth}vr._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(h,E){var P=E.datasetIndex,L=this.chart,X=L.getDatasetMeta(P);X.hidden=null===X.hidden?!L.data.datasets[P].hidden:null,L.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(h){var E=h.data.datasets,P=h.options.legend||{},L=P.labels&&P.labels.usePointStyle;return h._getSortedDatasetMetas().map(function(X){var de=X.controller.getStyle(L?0:void 0);return{text:E[X.index].label,fillStyle:de.backgroundColor,hidden:!h.isDatasetVisible(X.index),lineCap:de.borderCapStyle,lineDash:de.borderDash,lineDashOffset:de.borderDashOffset,lineJoin:de.borderJoinStyle,lineWidth:de.borderWidth,strokeStyle:de.borderColor,pointStyle:de.pointStyle,rotation:de.rotation,datasetIndex:X.index}},this)}}},legendCallback:function(h){var L,X,de,E=document.createElement("ul"),P=h.data.datasets;for(E.setAttribute("class",h.id+"-legend"),L=0,X=P.length;Lxe.width)&&(Mt+=ve+P.padding,St[St.length-(yo>0?0:1)]=0),Ye[yo]={left:0,top:0,width:qs,height:ve},St[St.length-1]+=qs+P.padding}),xe.height+=Mt}else{var fn=P.padding,jn=h.columnWidths=[],Vn=h.columnHeights=[],fr=P.padding,$r=0,Ui=0;Fe.each(h.legendItems,function(is,yo){var qs=bc(P,ve)+ve/2+X.measureText(is.text).width;yo>0&&Ui+ve+2*fn>xe.height&&(fr+=$r+P.padding,jn.push($r),Vn.push(Ui),$r=0,Ui=0),$r=Math.max($r,qs),Ui+=ve+fn,Ye[yo]={left:0,top:0,width:qs,height:ve}}),fr+=$r,jn.push($r),Vn.push(Ui),xe.width+=fr}h.width=xe.width,h.height=xe.height}else h.width=xe.width=h.height=xe.height=0},afterFit:Dc,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var h=this,E=h.options,P=E.labels,L=vr.global,X=L.defaultColor,de=L.elements.line,ve=h.height,Ye=h.columnHeights,xe=h.width,nt=h.lineWidths;if(E.display){var fr,St=ga(E.rtl,h.left,h.minSize.width),Mt=h.ctx,fn=Lu(P.fontColor,L.defaultFontColor),jn=Fe.options._parseFont(P),Vn=jn.size;Mt.textAlign=St.textAlign("left"),Mt.textBaseline="middle",Mt.lineWidth=.5,Mt.strokeStyle=fn,Mt.fillStyle=fn,Mt.font=jn.string;var $r=bc(P,Vn),Ui=h.legendHitBoxes,Zs=function($a,Ga){switch(E.align){case"start":return P.padding;case"end":return $a-Ga;default:return($a-Ga+P.padding)/2}},qs=h.isHorizontal();fr=qs?{x:h.left+Zs(xe,nt[0]),y:h.top+P.padding,line:0}:{x:h.left+P.padding,y:h.top+Zs(ve,Ye[0]),line:0},Fe.rtl.overrideTextDirection(h.ctx,E.textDirection);var el=Vn+P.padding;Fe.each(h.legendItems,function($a,Ga){var wa=Mt.measureText($a.text).width,Gl=$r+Vn/2+wa,_u=fr.x,Va=fr.y;St.setWidth(h.minSize.width),qs?Ga>0&&_u+Gl+P.padding>h.left+h.minSize.width&&(Va=fr.y+=el,fr.line++,_u=fr.x=h.left+Zs(xe,nt[fr.line])):Ga>0&&Va+el>h.top+h.minSize.height&&(_u=fr.x=_u+h.columnWidths[fr.line]+P.padding,fr.line++,Va=fr.y=h.top+Zs(ve,Ye[fr.line]));var Mu=St.x(_u);(function($a,Ga,wa){if(!(isNaN($r)||$r<=0)){Mt.save();var Gl=Lu(wa.lineWidth,de.borderWidth);if(Mt.fillStyle=Lu(wa.fillStyle,X),Mt.lineCap=Lu(wa.lineCap,de.borderCapStyle),Mt.lineDashOffset=Lu(wa.lineDashOffset,de.borderDashOffset),Mt.lineJoin=Lu(wa.lineJoin,de.borderJoinStyle),Mt.lineWidth=Gl,Mt.strokeStyle=Lu(wa.strokeStyle,X),Mt.setLineDash&&Mt.setLineDash(Lu(wa.lineDash,de.borderDash)),P&&P.usePointStyle){var _u=$r*Math.SQRT2/2,Va=St.xPlus($a,$r/2);Fe.canvas.drawPoint(Mt,wa.pointStyle,_u,Va,Ga+Vn/2,wa.rotation)}else Mt.fillRect(St.leftForLtr($a,$r),Ga,$r,Vn),0!==Gl&&Mt.strokeRect(St.leftForLtr($a,$r),Ga,$r,Vn);Mt.restore()}})(Mu,Va,$a),Ui[Ga].left=St.leftForLtr(Mu,Ui[Ga].width),Ui[Ga].top=Va,function($a,Ga,wa,Gl){var _u=Vn/2,Va=St.xPlus($a,$r+_u),Mu=Ga+_u;Mt.fillText(wa.text,Va,Mu),wa.hidden&&(Mt.beginPath(),Mt.lineWidth=2,Mt.moveTo(Va,Mu),Mt.lineTo(St.xPlus(Va,Gl),Mu),Mt.stroke())}(Mu,Va,$a,wa),qs?fr.x+=Gl+P.padding:fr.y+=el}),Fe.rtl.restoreTextDirection(h.ctx,E.textDirection)}},_getLegendItemAt:function(h,E){var L,X,de,P=this;if(h>=P.left&&h<=P.right&&E>=P.top&&E<=P.bottom)for(de=P.legendHitBoxes,L=0;L=(X=de[L]).left&&h<=X.left+X.width&&E>=X.top&&E<=X.top+X.height)return P.legendItems[L];return null},handleEvent:function(h){var X,E=this,P=E.options,L="mouseup"===h.type?"click":h.type;if("mousemove"===L){if(!P.onHover&&!P.onLeave)return}else{if("click"!==L)return;if(!P.onClick)return}X=E._getLegendItemAt(h.x,h.y),"click"===L?X&&P.onClick&&P.onClick.call(E,h.native,X):(P.onLeave&&X!==E._hoveredItem&&(E._hoveredItem&&P.onLeave.call(E,h.native,E._hoveredItem),E._hoveredItem=X),P.onHover&&X&&P.onHover.call(E,h.native,X))}});function Ql(h,E){var P=new ic({ctx:h.ctx,options:E,chart:h});Bl.configure(h,P,E),Bl.addBox(h,P),h.legend=P}var Sc={id:"legend",_element:ic,beforeInit:function(h){var E=h.options.legend;E&&Ql(h,E)},beforeUpdate:function(h){var E=h.options.legend,P=h.legend;E?(Fe.mergeIf(E,vr.global.legend),P?(Bl.configure(h,P,E),P.options=E):Ql(h,E)):P&&(Bl.removeBox(h,P),delete h.legend)},afterEvent:function(h,E){var P=h.legend;P&&P.handleEvent(E)}},Tc=Fe.noop;vr._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Zu=yt.extend({initialize:function(h){Fe.extend(this,h),this.legendHitBoxes=[]},beforeUpdate:Tc,update:function(h,E,P){var L=this;return L.beforeUpdate(),L.maxWidth=h,L.maxHeight=E,L.margins=P,L.beforeSetDimensions(),L.setDimensions(),L.afterSetDimensions(),L.beforeBuildLabels(),L.buildLabels(),L.afterBuildLabels(),L.beforeFit(),L.fit(),L.afterFit(),L.afterUpdate(),L.minSize},afterUpdate:Tc,beforeSetDimensions:Tc,setDimensions:function(){var h=this;h.isHorizontal()?(h.width=h.maxWidth,h.left=0,h.right=h.width):(h.height=h.maxHeight,h.top=0,h.bottom=h.height),h.paddingLeft=0,h.paddingTop=0,h.paddingRight=0,h.paddingBottom=0,h.minSize={width:0,height:0}},afterSetDimensions:Tc,beforeBuildLabels:Tc,buildLabels:Tc,afterBuildLabels:Tc,beforeFit:Tc,fit:function(){var de,h=this,E=h.options,P=h.minSize={},L=h.isHorizontal();E.display?(de=(Fe.isArray(E.text)?E.text.length:1)*Fe.options._parseFont(E).lineHeight+2*E.padding,h.width=P.width=L?h.maxWidth:de,h.height=P.height=L?de:h.maxHeight):h.width=P.width=h.height=P.height=0},afterFit:Tc,isHorizontal:function(){var h=this.options.position;return"top"===h||"bottom"===h},draw:function(){var h=this,E=h.ctx,P=h.options;if(P.display){var Mt,fn,jn,L=Fe.options._parseFont(P),X=L.lineHeight,de=X/2+P.padding,ve=0,Ye=h.top,xe=h.left,nt=h.bottom,St=h.right;E.fillStyle=Fe.valueOrDefault(P.fontColor,vr.global.defaultFontColor),E.font=L.string,h.isHorizontal()?(fn=xe+(St-xe)/2,jn=Ye+de,Mt=St-xe):(fn="left"===P.position?xe+de:St-de,jn=Ye+(nt-Ye)/2,Mt=nt-Ye,ve=Math.PI*("left"===P.position?-.5:.5)),E.save(),E.translate(fn,jn),E.rotate(ve),E.textAlign="center",E.textBaseline="middle";var Vn=P.text;if(Fe.isArray(Vn))for(var fr=0,$r=0;$r=0;ve--){var Ye=L[ve];if(X(Ye))return Ye}},Fe.isNumber=function(L){return!isNaN(parseFloat(L))&&isFinite(L)},Fe.almostEquals=function(L,X,de){return Math.abs(L-X)=L},Fe.max=function(L){return L.reduce(function(X,de){return isNaN(de)?X:Math.max(X,de)},Number.NEGATIVE_INFINITY)},Fe.min=function(L){return L.reduce(function(X,de){return isNaN(de)?X:Math.min(X,de)},Number.POSITIVE_INFINITY)},Fe.sign=Math.sign?function(L){return Math.sign(L)}:function(L){return 0==(L=+L)||isNaN(L)?L:L>0?1:-1},Fe.toRadians=function(L){return L*(Math.PI/180)},Fe.toDegrees=function(L){return L*(180/Math.PI)},Fe._decimalPlaces=function(L){if(Fe.isFinite(L)){for(var X=1,de=0;Math.round(L*X)/X!==L;)X*=10,de++;return de}},Fe.getAngleFromPoint=function(L,X){var de=X.x-L.x,ve=X.y-L.y,Ye=Math.sqrt(de*de+ve*ve),xe=Math.atan2(ve,de);return xe<-.5*Math.PI&&(xe+=2*Math.PI),{angle:xe,distance:Ye}},Fe.distanceBetweenPoints=function(L,X){return Math.sqrt(Math.pow(X.x-L.x,2)+Math.pow(X.y-L.y,2))},Fe.aliasPixel=function(L){return L%2==0?0:.5},Fe._alignPixel=function(L,X,de){var ve=L.currentDevicePixelRatio,Ye=de/2;return Math.round((X-Ye)*ve)/ve+Ye},Fe.splineCurve=function(L,X,de,ve){var Ye=L.skip?X:L,xe=X,nt=de.skip?X:de,St=Math.sqrt(Math.pow(xe.x-Ye.x,2)+Math.pow(xe.y-Ye.y,2)),Mt=Math.sqrt(Math.pow(nt.x-xe.x,2)+Math.pow(nt.y-xe.y,2)),fn=St/(St+Mt),jn=Mt/(St+Mt),Vn=ve*(fn=isNaN(fn)?0:fn),fr=ve*(jn=isNaN(jn)?0:jn);return{previous:{x:xe.x-Vn*(nt.x-Ye.x),y:xe.y-Vn*(nt.y-Ye.y)},next:{x:xe.x+fr*(nt.x-Ye.x),y:xe.y+fr*(nt.y-Ye.y)}}},Fe.EPSILON=Number.EPSILON||1e-14,Fe.splineCurveMonotone=function(L){var ve,Ye,xe,nt,Mt,fn,jn,Vn,fr,X=(L||[]).map(function($r){return{model:$r._model,deltaK:0,mK:0}}),de=X.length;for(ve=0;ve0?X[ve-1]:null,(nt=ve0?X[ve-1]:null)&&!Ye.model.skip&&(xe.model.controlPointPreviousX=xe.model.x-(fr=(xe.model.x-Ye.model.x)/3),xe.model.controlPointPreviousY=xe.model.y-fr*xe.mK),nt&&!nt.model.skip&&(xe.model.controlPointNextX=xe.model.x+(fr=(nt.model.x-xe.model.x)/3),xe.model.controlPointNextY=xe.model.y+fr*xe.mK))},Fe.nextItem=function(L,X,de){return de?X>=L.length-1?L[0]:L[X+1]:X>=L.length-1?L[L.length-1]:L[X+1]},Fe.previousItem=function(L,X,de){return de?X<=0?L[L.length-1]:L[X-1]:X<=0?L[0]:L[X-1]},Fe.niceNum=function(L,X){var de=Math.floor(Fe.log10(L)),ve=L/Math.pow(10,de);return(X?ve<1.5?1:ve<3?2:ve<7?5:10:ve<=1?1:ve<=2?2:ve<=5?5:10)*Math.pow(10,de)},Fe.requestAnimFrame="undefined"==typeof window?function(L){L()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(L){return window.setTimeout(L,1e3/60)},Fe.getRelativePosition=function(L,X){var de,ve,Ye=L.originalEvent||L,xe=L.target||L.srcElement,nt=xe.getBoundingClientRect(),St=Ye.touches;St&&St.length>0?(de=St[0].clientX,ve=St[0].clientY):(de=Ye.clientX,ve=Ye.clientY);var Mt=parseFloat(Fe.getStyle(xe,"padding-left")),fn=parseFloat(Fe.getStyle(xe,"padding-top")),jn=parseFloat(Fe.getStyle(xe,"padding-right")),Vn=parseFloat(Fe.getStyle(xe,"padding-bottom")),$r=nt.bottom-nt.top-fn-Vn;return{x:de=Math.round((de-nt.left-Mt)/(nt.right-nt.left-Mt-jn)*xe.width/X.currentDevicePixelRatio),y:ve=Math.round((ve-nt.top-fn)/$r*xe.height/X.currentDevicePixelRatio)}},Fe.getConstraintWidth=function(L){return P(L,"max-width","clientWidth")},Fe.getConstraintHeight=function(L){return P(L,"max-height","clientHeight")},Fe._calculatePadding=function(L,X,de){return(X=Fe.getStyle(L,X)).indexOf("%")>-1?de*parseInt(X,10)/100:parseInt(X,10)},Fe._getParentNode=function(L){var X=L.parentNode;return X&&"[object ShadowRoot]"===X.toString()&&(X=X.host),X},Fe.getMaximumWidth=function(L){var X=Fe._getParentNode(L);if(!X)return L.clientWidth;var de=X.clientWidth,xe=de-Fe._calculatePadding(X,"padding-left",de)-Fe._calculatePadding(X,"padding-right",de),nt=Fe.getConstraintWidth(L);return isNaN(nt)?xe:Math.min(xe,nt)},Fe.getMaximumHeight=function(L){var X=Fe._getParentNode(L);if(!X)return L.clientHeight;var de=X.clientHeight,xe=de-Fe._calculatePadding(X,"padding-top",de)-Fe._calculatePadding(X,"padding-bottom",de),nt=Fe.getConstraintHeight(L);return isNaN(nt)?xe:Math.min(xe,nt)},Fe.getStyle=function(L,X){return L.currentStyle?L.currentStyle[X]:document.defaultView.getComputedStyle(L,null).getPropertyValue(X)},Fe.retinaScale=function(L,X){var de=L.currentDevicePixelRatio=X||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==de){var ve=L.canvas,Ye=L.height,xe=L.width;ve.height=Ye*de,ve.width=xe*de,L.ctx.scale(de,de),!ve.style.height&&!ve.style.width&&(ve.style.height=Ye+"px",ve.style.width=xe+"px")}},Fe.fontString=function(L,X,de){return X+" "+L+"px "+de},Fe.longestText=function(L,X,de,ve){var Ye=(ve=ve||{}).data=ve.data||{},xe=ve.garbageCollect=ve.garbageCollect||[];ve.font!==X&&(Ye=ve.data={},xe=ve.garbageCollect=[],ve.font=X),L.font=X;var Mt,fn,jn,Vn,fr,nt=0,St=de.length;for(Mt=0;Mtde.length){for(Mt=0;Mt<$r;Mt++)delete Ye[xe[Mt]];xe.splice(0,$r)}return nt},Fe.measureText=function(L,X,de,ve,Ye){var xe=X[Ye];return xe||(xe=X[Ye]=L.measureText(Ye).width,de.push(Ye)),xe>ve&&(ve=xe),ve},Fe.numberOfLabelLines=function(L){var X=1;return Fe.each(L,function(de){Fe.isArray(de)&&de.length>X&&(X=de.length)}),X},Fe.color=_r?function(L){return L instanceof CanvasGradient&&(L=vr.global.defaultColor),_r(L)}:function(L){return console.error("Color.js not found!"),L},Fe.getHoverColor=function(L){return L instanceof CanvasPattern||L instanceof CanvasGradient?L:Fe.color(L).saturate(.5).darken(.1).rgbString()}}(),Pn._adapters=Vi,Pn.Animation=yn,Pn.animationService=Cr,Pn.controllers=Oi,Pn.DatasetController=Ri,Pn.defaults=vr,Pn.Element=yt,Pn.elements=go,Pn.Interaction=sl,Pn.layouts=Bl,Pn.platform=Fa,Pn.plugins=Es,Pn.Scale=Mo,Pn.scaleService=ec,Pn.Ticks=Pr,Pn.Tooltip=Ld,Pn.helpers.each(Lc,function(h,E){Pn.scaleService.registerScaleType(E,h,h._defaults)}),pc)pc.hasOwnProperty(Uc)&&Pn.plugins.register(pc[Uc]);Pn.platform.initialize();var oc=Pn;return"undefined"!=typeof window&&(window.Chart=Pn),Pn.Chart=Pn,Pn.Legend=pc.legend._element,Pn.Title=pc.title._element,Pn.pluginService=Pn.plugins,Pn.PluginBase=Pn.Element.extend({}),Pn.canvasHelpers=Pn.helpers.canvas,Pn.layoutService=Pn.layouts,Pn.LinearScaleBase=pa,Pn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(h){Pn[h]=function(E,P){return new Pn(E,Pn.helpers.merge(P||{},{type:h.charAt(0).toLowerCase()+h.slice(1)}))}}),oc}(function(){try{return i(16738)}catch(f){}}())},82885:(v,b)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function u(){for(var e=[],p=0;p{v.exports=function(i,r){for(var a=[],f=0;f{"use strict";b.parse=function a(T,M){if("string"!=typeof T)throw new TypeError("argument str must be a string");for(var w={},U=(M||{}).decode||u,W=0;W{"use strict";var r=i(35311),a={"text/plain":"Text","text/html":"Url",default:"Text"};v.exports=function e(p,g){var T,M,w,R,U,W,j=!1;g||(g={}),T=g.debug||!1;try{if(w=r(),R=document.createRange(),U=document.getSelection(),(W=document.createElement("span")).textContent=p,W.ariaHidden="true",W.style.all="unset",W.style.position="fixed",W.style.top=0,W.style.clip="rect(0, 0, 0, 0)",W.style.whiteSpace="pre",W.style.webkitUserSelect="text",W.style.MozUserSelect="text",W.style.msUserSelect="text",W.style.userSelect="text",W.addEventListener("copy",function(ue){ue.stopPropagation(),g.format&&(ue.preventDefault(),void 0===ue.clipboardData?(T&&console.warn("unable to use e.clipboardData"),T&&console.warn("trying IE specific stuff"),window.clipboardData.clearData(),window.clipboardData.setData(a[g.format]||a.default,p)):(ue.clipboardData.clearData(),ue.clipboardData.setData(g.format,p))),g.onCopy&&(ue.preventDefault(),g.onCopy(ue.clipboardData))}),document.body.appendChild(W),R.selectNodeContents(W),U.addRange(R),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");j=!0}catch(ue){T&&console.error("unable to copy using execCommand: ",ue),T&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(g.format||"text",p),g.onCopy&&g.onCopy(window.clipboardData),j=!0}catch(re){T&&console.error("unable to copy using clipboardData: ",re),T&&console.error("falling back to prompt"),M=function u(p){var g=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,g)}("message"in g?g.message:"Copy to clipboard: #{key}, Enter"),window.prompt(M,p)}}finally{U&&("function"==typeof U.removeRange?U.removeRange(R):U.removeAllRanges()),W&&document.body.removeChild(W),w()}return j}},43987:(v,b,i)=>{var r=i(75242);v.exports=r},99556:(v,b,i)=>{var r=i(10323);v.exports=r},39287:(v,b,i)=>{var r=i(8748);v.exports=r},25272:(v,b,i)=>{var r=i(71873);v.exports=r},54450:(v,b,i)=>{var r=i(19095);v.exports=r},39557:(v,b,i)=>{var r=i(52049);v.exports=r},61611:(v,b,i)=>{var r=i(87054);v.exports=r},22549:(v,b,i)=>{var r=i(45284);v.exports=r},47646:(v,b,i)=>{var r=i(70157);v.exports=r},78663:(v,b,i)=>{var r=i(640);v.exports=r},48498:(v,b,i)=>{var r=i(50320);v.exports=r},4922:(v,b,i)=>{var r=i(93006);v.exports=r},95190:(v,b,i)=>{var r=i(36226);v.exports=r},78525:(v,b,i)=>{var r=i(21968);v.exports=r},21064:(v,b,i)=>{var r=i(87259);v.exports=r},65641:(v,b,i)=>{var r=i(62021);v.exports=r},21693:(v,b,i)=>{var r=i(57682);v.exports=r},88907:(v,b,i)=>{var r=i(94222);v.exports=r},41432:(v,b,i)=>{var r=i(1162);v.exports=r},7398:(v,b,i)=>{var r=i(82805);v.exports=r},67221:(v,b,i)=>{var r=i(26498);v.exports=r},67447:(v,b,i)=>{var r=i(44850);v.exports=r},58811:(v,b,i)=>{var r=i(9634);v.exports=r},19573:(v,b,i)=>{var r=i(96551);i(5737),v.exports=r},10226:(v,b,i)=>{var r=i(98908);v.exports=r},56378:(v,b,i)=>{var r=i(55434);v.exports=r},74771:(v,b,i)=>{i(3934),i(261);var r=i(13544);v.exports=r.Array.from},8412:(v,b,i)=>{i(2862);var r=i(13544);v.exports=r.Array.isArray},77377:(v,b,i)=>{i(1625);var r=i(97911);v.exports=r("Array").concat},399:(v,b,i)=>{i(1285),i(17221);var r=i(97911);v.exports=r("Array").entries},66933:(v,b,i)=>{i(70466);var r=i(97911);v.exports=r("Array").every},9504:(v,b,i)=>{i(24990);var r=i(97911);v.exports=r("Array").fill},82168:(v,b,i)=>{i(56534);var r=i(97911);v.exports=r("Array").filter},65618:(v,b,i)=>{i(12773);var r=i(97911);v.exports=r("Array").findIndex},9186:(v,b,i)=>{i(60326);var r=i(97911);v.exports=r("Array").find},98812:(v,b,i)=>{i(98792);var r=i(97911);v.exports=r("Array").forEach},58479:(v,b,i)=>{i(77059);var r=i(97911);v.exports=r("Array").includes},43207:(v,b,i)=>{i(2795);var r=i(97911);v.exports=r("Array").indexOf},33195:(v,b,i)=>{i(1285),i(17221);var r=i(97911);v.exports=r("Array").keys},63033:(v,b,i)=>{i(74926);var r=i(97911);v.exports=r("Array").lastIndexOf},5736:(v,b,i)=>{i(88119);var r=i(97911);v.exports=r("Array").map},7198:(v,b,i)=>{i(46250);var r=i(97911);v.exports=r("Array").reduce},84302:(v,b,i)=>{i(32836);var r=i(97911);v.exports=r("Array").reverse},86693:(v,b,i)=>{i(72999);var r=i(97911);v.exports=r("Array").slice},24273:(v,b,i)=>{i(50733);var r=i(97911);v.exports=r("Array").some},45974:(v,b,i)=>{i(93639);var r=i(97911);v.exports=r("Array").sort},68012:(v,b,i)=>{i(63117);var r=i(97911);v.exports=r("Array").splice},46332:(v,b,i)=>{i(1285),i(17221);var r=i(97911);v.exports=r("Array").values},42618:(v,b,i)=>{i(34699);var r=i(13544);v.exports=r.Date.now},97724:(v,b,i)=>{i(33379);var r=i(97911);v.exports=r("Function").bind},63791:(v,b,i)=>{i(1285),i(3934);var r=i(34014);v.exports=r},69029:(v,b,i)=>{var r=i(23336),a=i(97724),f=Function.prototype;v.exports=function(u){var e=u.bind;return u===f||r(f,u)&&e===f.bind?a:e}},28924:(v,b,i)=>{var r=i(23336),a=i(77377),f=Array.prototype;v.exports=function(u){var e=u.concat;return u===f||r(f,u)&&e===f.concat?a:e}},98709:(v,b,i)=>{var r=i(23336),a=i(66933),f=Array.prototype;v.exports=function(u){var e=u.every;return u===f||r(f,u)&&e===f.every?a:e}},65991:(v,b,i)=>{var r=i(23336),a=i(9504),f=Array.prototype;v.exports=function(u){var e=u.fill;return u===f||r(f,u)&&e===f.fill?a:e}},64158:(v,b,i)=>{var r=i(23336),a=i(82168),f=Array.prototype;v.exports=function(u){var e=u.filter;return u===f||r(f,u)&&e===f.filter?a:e}},91799:(v,b,i)=>{var r=i(23336),a=i(65618),f=Array.prototype;v.exports=function(u){var e=u.findIndex;return u===f||r(f,u)&&e===f.findIndex?a:e}},26155:(v,b,i)=>{var r=i(23336),a=i(9186),f=Array.prototype;v.exports=function(u){var e=u.find;return u===f||r(f,u)&&e===f.find?a:e}},33758:(v,b,i)=>{var r=i(23336),a=i(58479),f=i(85136),u=Array.prototype,e=String.prototype;v.exports=function(p){var g=p.includes;return p===u||r(u,p)&&g===u.includes?a:"string"==typeof p||p===e||r(e,p)&&g===e.includes?f:g}},7592:(v,b,i)=>{var r=i(23336),a=i(43207),f=Array.prototype;v.exports=function(u){var e=u.indexOf;return u===f||r(f,u)&&e===f.indexOf?a:e}},17480:(v,b,i)=>{var r=i(23336),a=i(63033),f=Array.prototype;v.exports=function(u){var e=u.lastIndexOf;return u===f||r(f,u)&&e===f.lastIndexOf?a:e}},20681:(v,b,i)=>{var r=i(23336),a=i(5736),f=Array.prototype;v.exports=function(u){var e=u.map;return u===f||r(f,u)&&e===f.map?a:e}},90949:(v,b,i)=>{var r=i(23336),a=i(7198),f=Array.prototype;v.exports=function(u){var e=u.reduce;return u===f||r(f,u)&&e===f.reduce?a:e}},99316:(v,b,i)=>{var r=i(23336),a=i(96302),f=String.prototype;v.exports=function(u){var e=u.repeat;return"string"==typeof u||u===f||r(f,u)&&e===f.repeat?a:e}},62212:(v,b,i)=>{var r=i(23336),a=i(84302),f=Array.prototype;v.exports=function(u){var e=u.reverse;return u===f||r(f,u)&&e===f.reverse?a:e}},49073:(v,b,i)=>{var r=i(23336),a=i(86693),f=Array.prototype;v.exports=function(u){var e=u.slice;return u===f||r(f,u)&&e===f.slice?a:e}},24146:(v,b,i)=>{var r=i(23336),a=i(24273),f=Array.prototype;v.exports=function(u){var e=u.some;return u===f||r(f,u)&&e===f.some?a:e}},40104:(v,b,i)=>{var r=i(23336),a=i(45974),f=Array.prototype;v.exports=function(u){var e=u.sort;return u===f||r(f,u)&&e===f.sort?a:e}},3555:(v,b,i)=>{var r=i(23336),a=i(68012),f=Array.prototype;v.exports=function(u){var e=u.splice;return u===f||r(f,u)&&e===f.splice?a:e}},68333:(v,b,i)=>{var r=i(23336),a=i(98720),f=String.prototype;v.exports=function(u){var e=u.startsWith;return"string"==typeof u||u===f||r(f,u)&&e===f.startsWith?a:e}},65786:(v,b,i)=>{var r=i(23336),a=i(75998),f=String.prototype;v.exports=function(u){var e=u.trim;return"string"==typeof u||u===f||r(f,u)&&e===f.trim?a:e}},66306:(v,b,i)=>{i(75071);var r=i(13544),a=i(2543);r.JSON||(r.JSON={stringify:JSON.stringify}),v.exports=function(u,e,p){return a(r.JSON.stringify,null,arguments)}},31845:(v,b,i)=>{i(1285),i(85140),i(17221),i(3934);var r=i(13544);v.exports=r.Map},44168:(v,b,i)=>{i(67234);var r=i(13544);v.exports=r.Object.assign},25852:(v,b,i)=>{i(86516);var a=i(13544).Object;v.exports=function(u,e){return a.create(u,e)}},24457:(v,b,i)=>{i(36255);var a=i(13544).Object,f=v.exports=function(e,p){return a.defineProperties(e,p)};a.defineProperties.sham&&(f.sham=!0)},99671:(v,b,i)=>{i(84468);var a=i(13544).Object,f=v.exports=function(e,p,g){return a.defineProperty(e,p,g)};a.defineProperty.sham&&(f.sham=!0)},38007:(v,b,i)=>{i(86627);var a=i(13544).Object,f=v.exports=function(e,p){return a.getOwnPropertyDescriptor(e,p)};a.getOwnPropertyDescriptor.sham&&(f.sham=!0)},57432:(v,b,i)=>{i(78275);var r=i(13544);v.exports=r.Object.getOwnPropertyDescriptors},36541:(v,b,i)=>{i(56728);var r=i(13544);v.exports=r.Object.getOwnPropertySymbols},17303:(v,b,i)=>{i(31193);var r=i(13544);v.exports=r.Object.getPrototypeOf},62149:(v,b,i)=>{i(56557);var r=i(13544);v.exports=r.Object.keys},86537:(v,b,i)=>{i(17971);var r=i(13544);v.exports=r.Object.setPrototypeOf},79553:(v,b,i)=>{i(88923);var r=i(13544);v.exports=r.Object.values},80092:(v,b,i)=>{i(10901),i(1285),i(17221),i(66793),i(84798),i(98857),i(30185),i(3934);var r=i(13544);v.exports=r.Promise},472:(v,b,i)=>{i(19539);var r=i(13544);v.exports=r.Reflect.construct},4678:(v,b,i)=>{i(60851);var r=i(13544);v.exports=r.Reflect.get},85136:(v,b,i)=>{i(97764);var r=i(97911);v.exports=r("String").includes},96302:(v,b,i)=>{i(3588);var r=i(97911);v.exports=r("String").repeat},98720:(v,b,i)=>{i(24655);var r=i(97911);v.exports=r("String").startsWith},75998:(v,b,i)=>{i(90451);var r=i(97911);v.exports=r("String").trim},61697:(v,b,i)=>{i(1625),i(17221),i(56728),i(16426),i(1172),i(99579),i(41258),i(2383),i(44339),i(64776),i(88215),i(65389),i(12733),i(97977),i(59792),i(60242),i(26291),i(32300),i(63603),i(44864);var r=i(13544);v.exports=r.Symbol},42497:(v,b,i)=>{i(1285),i(17221),i(3934),i(2383);var r=i(89734);v.exports=r.f("iterator")},50681:(v,b,i)=>{i(68154),i(59792);var r=i(89734);v.exports=r.f("toPrimitive")},56286:(v,b,i)=>{v.exports=i(73875)},54153:(v,b,i)=>{v.exports=i(91700)},90755:(v,b,i)=>{v.exports=i(70589)},98235:(v,b,i)=>{v.exports=i(71432)},78096:(v,b,i)=>{v.exports=i(73712)},31236:(v,b,i)=>{v.exports=i(58044)},15819:(v,b,i)=>{v.exports=i(55451)},44948:(v,b,i)=>{v.exports=i(61483)},96471:(v,b,i)=>{v.exports=i(46815)},5228:(v,b,i)=>{v.exports=i(28296)},50182:(v,b,i)=>{v.exports=i(96973)},41171:(v,b,i)=>{v.exports=i(47194)},54585:(v,b,i)=>{v.exports=i(56805)},62005:(v,b,i)=>{v.exports=i(32944)},39964:(v,b,i)=>{v.exports=i(70729)},70326:(v,b,i)=>{v.exports=i(48299)},98162:(v,b,i)=>{v.exports=i(33969)},42346:(v,b,i)=>{v.exports=i(26421)},4204:(v,b,i)=>{v.exports=i(37785)},24329:(v,b,i)=>{v.exports=i(15123)},2793:(v,b,i)=>{v.exports=i(49745)},42700:(v,b,i)=>{v.exports=i(29044)},70269:(v,b,i)=>{v.exports=i(20611)},88819:(v,b,i)=>{v.exports=i(65861)},55912:(v,b,i)=>{v.exports=i(63816)},91185:(v,b,i)=>{v.exports=i(72378)},73875:(v,b,i)=>{var r=i(43987);v.exports=r},91700:(v,b,i)=>{var r=i(99556);v.exports=r},70589:(v,b,i)=>{var r=i(39287);v.exports=r},71432:(v,b,i)=>{var r=i(25272);v.exports=r},73712:(v,b,i)=>{var r=i(54450);v.exports=r},58044:(v,b,i)=>{var r=i(39557);v.exports=r},55451:(v,b,i)=>{var r=i(61611);v.exports=r},61483:(v,b,i)=>{var r=i(22549);v.exports=r},46815:(v,b,i)=>{var r=i(47646);v.exports=r},28296:(v,b,i)=>{var r=i(78663);i(78271),i(60854),i(10509),i(30887),i(54547),i(68996),i(1530),i(60176),i(41554),i(41688),i(92847),i(17316),i(58786),i(35517),i(12783),i(69773),i(22337),i(40199),i(69046),i(84131),v.exports=r},96973:(v,b,i)=>{var r=i(48498);v.exports=r},47194:(v,b,i)=>{var r=i(4922);v.exports=r},56805:(v,b,i)=>{var r=i(95190);v.exports=r},32944:(v,b,i)=>{var r=i(78525);v.exports=r},70729:(v,b,i)=>{var r=i(21064);v.exports=r},48299:(v,b,i)=>{var r=i(65641);v.exports=r},33969:(v,b,i)=>{var r=i(21693);v.exports=r},26421:(v,b,i)=>{var r=i(88907);v.exports=r},37785:(v,b,i)=>{var r=i(41432);v.exports=r},15123:(v,b,i)=>{var r=i(7398);v.exports=r},49745:(v,b,i)=>{var r=i(67221);i(67670),i(61127),i(93114),i(45975),v.exports=r},29044:(v,b,i)=>{var r=i(67447);v.exports=r},20611:(v,b,i)=>{var r=i(58811);v.exports=r},65861:(v,b,i)=>{var r=i(19573);i(55461),i(61652),i(90791),i(87097),i(29559),i(90212),i(71985),i(93770),i(47743),v.exports=r},63816:(v,b,i)=>{var r=i(10226);v.exports=r},72378:(v,b,i)=>{var r=i(56378);v.exports=r},61812:(v,b,i)=>{var r=i(52208),a=i(7378),f=TypeError;v.exports=function(u){if(r(u))return u;throw f(a(u)+" is not a function")}},54356:(v,b,i)=>{var r=i(81177),a=i(7378),f=TypeError;v.exports=function(u){if(r(u))return u;throw f(a(u)+" is not a constructor")}},64902:(v,b,i)=>{var r=i(7378);v.exports=function(a){if("object"==typeof a&&"size"in a&&"has"in a&&"get"in a&&"set"in a&&"delete"in a&&"entries"in a)return a;throw TypeError(r(a)+" is not a map")}},93221:(v,b,i)=>{var r=i(52208),a=String,f=TypeError;v.exports=function(u){if("object"==typeof u||r(u))return u;throw f("Can't set "+a(u)+" as a prototype")}},82196:v=>{v.exports=function(){}},54849:(v,b,i)=>{var r=i(23336),a=TypeError;v.exports=function(f,u){if(r(u,f))return f;throw a("Incorrect invocation")}},64562:(v,b,i)=>{var r=i(77293),a=String,f=TypeError;v.exports=function(u){if(r(u))return u;throw f(a(u)+" is not an object")}},76318:(v,b,i)=>{var r=i(55756);v.exports=r(function(){if("function"==typeof ArrayBuffer){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},35277:(v,b,i)=>{"use strict";var r=i(70267),a=i(19401),f=i(6381);v.exports=function(e){for(var p=r(this),g=f(p),T=arguments.length,M=a(T>1?arguments[1]:void 0,g),w=T>2?arguments[2]:void 0,R=void 0===w?g:a(w,g);R>M;)p[M++]=e;return p}},8366:(v,b,i)=>{"use strict";var r=i(68607).forEach,f=i(33620)("forEach");v.exports=f?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},51923:(v,b,i)=>{"use strict";var r=i(76781),a=i(25401),f=i(70267),u=i(93463),e=i(39918),p=i(81177),g=i(6381),T=i(46751),M=i(88055),w=i(34014),R=Array;v.exports=function(W){var j=f(W),q=p(this),ue=arguments.length,re=ue>1?arguments[1]:void 0,H=void 0!==re;H&&(re=r(re,ue>2?arguments[2]:void 0));var ie,fe,_e,Ce,ce,Be,se=w(j),ae=0;if(!se||this===R&&e(se))for(ie=g(j),fe=q?new this(ie):R(ie);ie>ae;ae++)Be=H?re(j[ae],ae):j[ae],T(fe,ae,Be);else for(ce=(Ce=M(j,se)).next,fe=q?new this:[];!(_e=a(ce,Ce)).done;ae++)Be=H?u(Ce,re,[_e.value,ae],!0):_e.value,T(fe,ae,Be);return fe.length=ae,fe}},95171:(v,b,i)=>{var r=i(81010),a=i(19401),f=i(6381),u=function(e){return function(p,g,T){var U,M=r(p),w=f(M),R=a(T,w);if(e&&g!=g){for(;w>R;)if((U=M[R++])!=U)return!0}else for(;w>R;R++)if((e||R in M)&&M[R]===g)return e||R||0;return!e&&-1}};v.exports={includes:u(!0),indexOf:u(!1)}},68607:(v,b,i)=>{var r=i(76781),a=i(23634),f=i(20973),u=i(70267),e=i(6381),p=i(2103),g=a([].push),T=function(M){var w=1==M,R=2==M,U=3==M,W=4==M,j=6==M,q=7==M,ue=5==M||j;return function(re,H,se,ae){for(var Xe,He,ie=u(re),fe=f(ie),_e=r(H,se),Ce=e(fe),ce=0,Be=ae||p,Ve=w?Be(re,Ce):R||q?Be(re,0):void 0;Ce>ce;ce++)if((ue||ce in fe)&&(He=_e(Xe=fe[ce],ce,ie),M))if(w)Ve[ce]=He;else if(He)switch(M){case 3:return!0;case 5:return Xe;case 6:return ce;case 2:g(Ve,Xe)}else switch(M){case 4:return!1;case 7:g(Ve,Xe)}return j?-1:U||W?W:Ve}};v.exports={forEach:T(0),map:T(1),filter:T(2),some:T(3),every:T(4),find:T(5),findIndex:T(6),filterReject:T(7)}},78375:(v,b,i)=>{"use strict";var r=i(2543),a=i(81010),f=i(33912),u=i(6381),e=i(33620),p=Math.min,g=[].lastIndexOf,T=!!g&&1/[1].lastIndexOf(1,-0)<0,M=e("lastIndexOf");v.exports=T||!M?function(U){if(T)return r(g,this,arguments)||0;var W=a(this),j=u(W),q=j-1;for(arguments.length>1&&(q=p(q,f(arguments[1]))),q<0&&(q=j+q);q>=0;q--)if(q in W&&W[q]===U)return q||0;return-1}:g},95913:(v,b,i)=>{var r=i(55756),a=i(91840),f=i(63556),u=a("species");v.exports=function(e){return f>=51||!r(function(){var p=[];return(p.constructor={})[u]=function(){return{foo:1}},1!==p[e](Boolean).foo})}},33620:(v,b,i)=>{"use strict";var r=i(55756);v.exports=function(a,f){var u=[][a];return!!u&&r(function(){u.call(null,f||function(){return 1},1)})}},88908:(v,b,i)=>{var r=i(61812),a=i(70267),f=i(20973),u=i(6381),e=TypeError,p=function(g){return function(T,M,w,R){r(M);var U=a(T),W=f(U),j=u(U),q=g?j-1:0,ue=g?-1:1;if(w<2)for(;;){if(q in W){R=W[q],q+=ue;break}if(q+=ue,g?q<0:j<=q)throw e("Reduce of empty array with no initial value")}for(;g?q>=0:j>q;q+=ue)q in W&&(R=M(R,W[q],q,U));return R}};v.exports={left:p(!1),right:p(!0)}},54716:(v,b,i)=>{"use strict";var r=i(49642),a=i(89735),f=TypeError,u=Object.getOwnPropertyDescriptor,e=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(p){return p instanceof TypeError}}();v.exports=e?function(p,g){if(a(p)&&!u(p,"length").writable)throw f("Cannot set read only .length");return p.length=g}:function(p,g){return p.length=g}},8681:(v,b,i)=>{var r=i(19401),a=i(6381),f=i(46751),u=Array,e=Math.max;v.exports=function(p,g,T){for(var M=a(p),w=r(g,M),R=r(void 0===T?M:T,M),U=u(e(R-w,0)),W=0;w{var r=i(23634);v.exports=r([].slice)},84865:(v,b,i)=>{var r=i(8681),a=Math.floor,f=function(p,g){var T=p.length,M=a(T/2);return T<8?u(p,g):e(p,f(r(p,0,M),g),f(r(p,M),g),g)},u=function(p,g){for(var w,R,T=p.length,M=1;M0;)p[R]=p[--R];R!==M++&&(p[R]=w)}return p},e=function(p,g,T,M){for(var w=g.length,R=T.length,U=0,W=0;U{var r=i(89735),a=i(81177),f=i(77293),e=i(91840)("species"),p=Array;v.exports=function(g){var T;return r(g)&&(a(T=g.constructor)&&(T===p||r(T.prototype))||f(T)&&null===(T=T[e]))&&(T=void 0),void 0===T?p:T}},2103:(v,b,i)=>{var r=i(48045);v.exports=function(a,f){return new(r(a))(0===f?0:f)}},93463:(v,b,i)=>{var r=i(64562),a=i(40798);v.exports=function(f,u,e,p){try{return p?u(r(e)[0],e[1]):u(e)}catch(g){a(f,"throw",g)}}},49458:v=>{v.exports=function(b,i){return 1==i?function(r,a){return r[b](a)}:function(r,a,f){return r[b](a,f)}}},5253:(v,b,i)=>{var a=i(91840)("iterator"),f=!1;try{var u=0,e={next:function(){return{done:!!u++}},return:function(){f=!0}};e[a]=function(){return this},Array.from(e,function(){throw 2})}catch(p){}v.exports=function(p,g){if(!g&&!f)return!1;var T=!1;try{var M={};M[a]=function(){return{next:function(){return{done:T=!0}}}},p(M)}catch(w){}return T}},49806:(v,b,i)=>{var r=i(23634),a=r({}.toString),f=r("".slice);v.exports=function(u){return f(a(u),8,-1)}},35329:(v,b,i)=>{var r=i(5552),a=i(52208),f=i(49806),e=i(91840)("toStringTag"),p=Object,g="Arguments"==f(function(){return arguments}());v.exports=r?f:function(M){var w,R,U;return void 0===M?"Undefined":null===M?"Null":"string"==typeof(R=function(M,w){try{return M[w]}catch(R){}}(w=p(M),e))?R:g?f(w):"Object"==(U=f(w))&&a(w.callee)?"Arguments":U}},83483:(v,b,i)=>{"use strict";var r=i(76781),a=i(25401),f=i(61812),u=i(54356),e=i(43550),p=i(41605),g=[].push;v.exports=function(M){var U,W,j,q,w=arguments.length,R=w>1?arguments[1]:void 0;return u(this),(U=void 0!==R)&&f(R),e(M)?new this:(W=[],U?(j=0,q=r(R,w>2?arguments[2]:void 0),p(M,function(ue){a(g,W,q(ue,j++))})):p(M,g,{that:W}),new this(W))}},13067:(v,b,i)=>{"use strict";var r=i(37591);v.exports=function(){return new this(r(arguments))}},26650:(v,b,i)=>{"use strict";var r=i(83272),a=i(1707),f=i(84604),u=i(76781),e=i(54849),p=i(43550),g=i(41605),T=i(79077),M=i(28738),w=i(58014),R=i(49642),U=i(57867).fastKey,W=i(91093),j=W.set,q=W.getterFor;v.exports={getConstructor:function(ue,re,H,se){var ae=ue(function(ce,Be){e(ce,ie),j(ce,{type:re,index:r(null),first:void 0,last:void 0,size:0}),R||(ce.size=0),p(Be)||g(Be,ce[se],{that:ce,AS_ENTRIES:H})}),ie=ae.prototype,fe=q(re),_e=function(ce,Be,Ve){var Pe,Ge,Xe=fe(ce),He=Ce(ce,Be);return He?He.value=Ve:(Xe.last=He={index:Ge=U(Be,!0),key:Be,value:Ve,previous:Pe=Xe.last,next:void 0,removed:!1},Xe.first||(Xe.first=He),Pe&&(Pe.next=He),R?Xe.size++:ce.size++,"F"!==Ge&&(Xe.index[Ge]=He)),ce},Ce=function(ce,Be){var He,Ve=fe(ce),Xe=U(Be);if("F"!==Xe)return Ve.index[Xe];for(He=Ve.first;He;He=He.next)if(He.key==Be)return He};return f(ie,{clear:function(){for(var Ve=fe(this),Xe=Ve.index,He=Ve.first;He;)He.removed=!0,He.previous&&(He.previous=He.previous.next=void 0),delete Xe[He.index],He=He.next;Ve.first=Ve.last=void 0,R?Ve.size=0:this.size=0},delete:function(ce){var Ve=fe(this),Xe=Ce(this,ce);if(Xe){var He=Xe.next,Pe=Xe.previous;delete Ve.index[Xe.index],Xe.removed=!0,Pe&&(Pe.next=He),He&&(He.previous=Pe),Ve.first==Xe&&(Ve.first=He),Ve.last==Xe&&(Ve.last=Pe),R?Ve.size--:this.size--}return!!Xe},forEach:function(Be){for(var He,Ve=fe(this),Xe=u(Be,arguments.length>1?arguments[1]:void 0);He=He?He.next:Ve.first;)for(Xe(He.value,He.key,this);He&&He.removed;)He=He.previous},has:function(Be){return!!Ce(this,Be)}}),f(ie,H?{get:function(Be){var Ve=Ce(this,Be);return Ve&&Ve.value},set:function(Be,Ve){return _e(this,0===Be?0:Be,Ve)}}:{add:function(Be){return _e(this,Be=0===Be?0:Be,Be)}}),R&&a(ie,"size",{configurable:!0,get:function(){return fe(this).size}}),ae},setStrong:function(ue,re,H){var se=re+" Iterator",ae=q(re),ie=q(se);T(ue,re,function(fe,_e){j(this,{type:se,target:fe,state:ae(fe),kind:_e,last:void 0})},function(){for(var fe=ie(this),_e=fe.kind,Ce=fe.last;Ce&&Ce.removed;)Ce=Ce.previous;return fe.target&&(fe.last=Ce=Ce?Ce.next:fe.state.first)?M("keys"==_e?Ce.key:"values"==_e?Ce.value:[Ce.key,Ce.value],!1):(fe.target=void 0,M(void 0,!0))},H?"entries":"values",!H,!0),w(re)}}},85116:(v,b,i)=>{"use strict";var r=i(90513),a=i(70009),f=i(57867),u=i(55756),e=i(65162),p=i(41605),g=i(54849),T=i(52208),M=i(77293),w=i(85681),R=i(48011).f,U=i(68607).forEach,W=i(49642),j=i(91093),q=j.set,ue=j.getterFor;v.exports=function(re,H,se){var Be,ae=-1!==re.indexOf("Map"),ie=-1!==re.indexOf("Weak"),fe=ae?"set":"add",_e=a[re],Ce=_e&&_e.prototype,ce={};if(W&&T(_e)&&(ie||Ce.forEach&&!u(function(){(new _e).entries().next()}))){var Ve=(Be=H(function(He,Pe){q(g(He,Ve),{type:re,collection:new _e}),null!=Pe&&p(Pe,He[fe],{that:He,AS_ENTRIES:ae})})).prototype,Xe=ue(re);U(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(He){var Pe="add"==He||"set"==He;He in Ce&&(!ie||"clear"!=He)&&e(Ve,He,function(Ge,Oe){var Tt=Xe(this).collection;if(!Pe&&ie&&!M(Ge))return"get"==He&&void 0;var We=Tt[He](0===Ge?0:Ge,Oe);return Pe?this:We})}),ie||R(Ve,"size",{configurable:!0,get:function(){return Xe(this).collection.size}})}else Be=se.getConstructor(H,re,ae,fe),f.enable();return w(Be,re,!1,!0),ce[re]=Be,r({global:!0,forced:!0},ce),ie||se.setStrong(Be,re,ae),Be}},65031:(v,b,i)=>{var r=i(80112),a=i(59823),f=i(25525),u=i(48011);v.exports=function(e,p,g){for(var T=a(p),M=u.f,w=f.f,R=0;R{var a=i(91840)("match");v.exports=function(f){var u=/./;try{"/./"[f](u)}catch(e){try{return u[a]=!1,"/./"[f](u)}catch(p){}}return!1}},37112:(v,b,i)=>{var r=i(55756);v.exports=!r(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},28738:v=>{v.exports=function(b,i){return{value:b,done:i}}},65162:(v,b,i)=>{var r=i(49642),a=i(48011),f=i(51361);v.exports=r?function(u,e,p){return a.f(u,e,f(1,p))}:function(u,e,p){return u[e]=p,u}},51361:v=>{v.exports=function(b,i){return{enumerable:!(1&b),configurable:!(2&b),writable:!(4&b),value:i}}},46751:(v,b,i)=>{"use strict";var r=i(62939),a=i(48011),f=i(51361);v.exports=function(u,e,p){var g=r(e);g in u?a.f(u,g,f(0,p)):u[g]=p}},1707:(v,b,i)=>{var r=i(48011);v.exports=function(a,f,u){return r.f(a,f,u)}},42915:(v,b,i)=>{var r=i(65162);v.exports=function(a,f,u,e){return e&&e.enumerable?a[f]=u:r(a,f,u),a}},84604:(v,b,i)=>{var r=i(42915);v.exports=function(a,f,u){for(var e in f)u&&u.unsafe&&a[e]?a[e]=f[e]:r(a,e,f[e],u);return a}},34056:(v,b,i)=>{var r=i(70009),a=Object.defineProperty;v.exports=function(f,u){try{a(r,f,{value:u,configurable:!0,writable:!0})}catch(e){r[f]=u}return u}},67236:(v,b,i)=>{"use strict";var r=i(7378),a=TypeError;v.exports=function(f,u){if(!delete f[u])throw a("Cannot delete property "+r(u)+" of "+r(f))}},49642:(v,b,i)=>{var r=i(55756);v.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},59478:v=>{var b="object"==typeof document&&document.all;v.exports={all:b,IS_HTMLDDA:void 0===b&&void 0!==b}},96682:(v,b,i)=>{var r=i(70009),a=i(77293),f=r.document,u=a(f)&&a(f.createElement);v.exports=function(e){return u?f.createElement(e):{}}},11594:v=>{var b=TypeError;v.exports=function(r){if(r>9007199254740991)throw b("Maximum allowed index exceeded");return r}},44125:v=>{v.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},36410:(v,b,i)=>{var a=i(86053).match(/firefox\/(\d+)/i);v.exports=!!a&&+a[1]},34008:(v,b,i)=>{var r=i(31813),a=i(3787);v.exports=!r&&!a&&"object"==typeof window&&"object"==typeof document},70902:v=>{v.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},31813:v=>{v.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},5329:(v,b,i)=>{var r=i(86053);v.exports=/MSIE|Trident/.test(r)},16137:(v,b,i)=>{var r=i(86053);v.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},3877:(v,b,i)=>{var r=i(86053);v.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},3787:(v,b,i)=>{var r=i(49806);v.exports="undefined"!=typeof process&&"process"==r(process)},85308:(v,b,i)=>{var r=i(86053);v.exports=/web0s(?!.*chrome)/i.test(r)},86053:v=>{v.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},63556:(v,b,i)=>{var g,T,r=i(70009),a=i(86053),f=r.process,u=r.Deno,e=f&&f.versions||u&&u.version,p=e&&e.v8;p&&(T=(g=p.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!T&&a&&(!(g=a.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=a.match(/Chrome\/(\d+)/))&&(T=+g[1]),v.exports=T},34545:(v,b,i)=>{var a=i(86053).match(/AppleWebKit\/(\d+)\./);v.exports=!!a&&+a[1]},97911:(v,b,i)=>{var r=i(13544);v.exports=function(a){return r[a+"Prototype"]}},44939:v=>{v.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},40039:(v,b,i)=>{var r=i(23634),a=Error,f=r("".replace),u=String(a("zxcasd").stack),e=/\n\s*at [^:]*:[^\n]*/,p=e.test(u);v.exports=function(g,T){if(p&&"string"==typeof g&&!a.prepareStackTrace)for(;T--;)g=f(g,e,"");return g}},77732:(v,b,i)=>{var r=i(65162),a=i(40039),f=i(50499),u=Error.captureStackTrace;v.exports=function(e,p,g,T){f&&(u?u(e,p):r(e,"stack",a(g,T)))}},50499:(v,b,i)=>{var r=i(55756),a=i(51361);v.exports=!r(function(){var f=Error("a");return!("stack"in f)||(Object.defineProperty(f,"stack",a(1,7)),7!==f.stack)})},90513:(v,b,i)=>{"use strict";var r=i(70009),a=i(2543),f=i(64350),u=i(52208),e=i(25525).f,p=i(79482),g=i(13544),T=i(76781),M=i(65162),w=i(80112),R=function(U){var W=function(j,q,ue){if(this instanceof W){switch(arguments.length){case 0:return new U;case 1:return new U(j);case 2:return new U(j,q)}return new U(j,q,ue)}return a(U,this,arguments)};return W.prototype=U.prototype,W};v.exports=function(U,W){var ie,fe,_e,Ce,ce,Be,Ve,Xe,He,j=U.target,q=U.global,ue=U.stat,re=U.proto,H=q?r:ue?r[j]:(r[j]||{}).prototype,se=q?g:g[j]||M(g,j,{})[j],ae=se.prototype;for(Ce in W)fe=!(ie=p(q?Ce:j+(ue?".":"#")+Ce,U.forced))&&H&&w(H,Ce),Be=se[Ce],fe&&(Ve=U.dontCallGetSet?(He=e(H,Ce))&&He.value:H[Ce]),ce=fe&&Ve?Ve:W[Ce],(!fe||typeof Be!=typeof ce)&&(Xe=U.bind&&fe?T(ce,r):U.wrap&&fe?R(ce):re&&u(ce)?f(ce):ce,(U.sham||ce&&ce.sham||Be&&Be.sham)&&M(Xe,"sham",!0),M(se,Ce,Xe),re&&(w(g,_e=j+"Prototype")||M(g,_e,{}),M(g[_e],Ce,ce),U.real&&ae&&(ie||!ae[Ce])&&M(ae,Ce,ce)))}},55756:v=>{v.exports=function(b){try{return!!b()}catch(i){return!0}}},3124:(v,b,i)=>{var r=i(55756);v.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},2543:(v,b,i)=>{var r=i(29046),a=Function.prototype,f=a.apply,u=a.call;v.exports="object"==typeof Reflect&&Reflect.apply||(r?u.bind(f):function(){return u.apply(f,arguments)})},76781:(v,b,i)=>{var r=i(64350),a=i(61812),f=i(29046),u=r(r.bind);v.exports=function(e,p){return a(e),void 0===p?e:f?u(e,p):function(){return e.apply(p,arguments)}}},29046:(v,b,i)=>{var r=i(55756);v.exports=!r(function(){var a=function(){}.bind();return"function"!=typeof a||a.hasOwnProperty("prototype")})},44197:(v,b,i)=>{"use strict";var r=i(23634),a=i(61812),f=i(77293),u=i(80112),e=i(37591),p=i(29046),g=Function,T=r([].concat),M=r([].join),w={},R=function(U,W,j){if(!u(w,W)){for(var q=[],ue=0;ue{var r=i(29046),a=Function.prototype.call;v.exports=r?a.bind(a):function(){return a.apply(a,arguments)}},29862:(v,b,i)=>{var r=i(49642),a=i(80112),f=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,e=a(f,"name"),p=e&&"something"===function(){}.name,g=e&&(!r||r&&u(f,"name").configurable);v.exports={EXISTS:e,PROPER:p,CONFIGURABLE:g}},13325:(v,b,i)=>{var r=i(23634),a=i(61812);v.exports=function(f,u,e){try{return r(a(Object.getOwnPropertyDescriptor(f,u)[e]))}catch(p){}}},64350:(v,b,i)=>{var r=i(49806),a=i(23634);v.exports=function(f){if("Function"===r(f))return a(f)}},23634:(v,b,i)=>{var r=i(29046),a=Function.prototype,f=a.call,u=r&&a.bind.bind(f,f);v.exports=r?u:function(e){return function(){return f.apply(e,arguments)}}},7365:(v,b,i)=>{var r=i(13544),a=i(70009),f=i(52208),u=function(e){return f(e)?e:void 0};v.exports=function(e,p){return arguments.length<2?u(r[e])||u(a[e]):r[e]&&r[e][p]||a[e]&&a[e][p]}},34014:(v,b,i)=>{var r=i(35329),a=i(34778),f=i(43550),u=i(84394),p=i(91840)("iterator");v.exports=function(g){if(!f(g))return a(g,p)||a(g,"@@iterator")||u[r(g)]}},88055:(v,b,i)=>{var r=i(25401),a=i(61812),f=i(64562),u=i(7378),e=i(34014),p=TypeError;v.exports=function(g,T){var M=arguments.length<2?e(g):T;if(a(M))return f(r(M,g));throw p(u(g)+" is not iterable")}},32092:(v,b,i)=>{var r=i(23634),a=i(89735),f=i(52208),u=i(49806),e=i(41433),p=r([].push);v.exports=function(g){if(f(g))return g;if(a(g)){for(var T=g.length,M=[],w=0;w{var r=i(61812),a=i(43550);v.exports=function(f,u){var e=f[u];return a(e)?void 0:r(e)}},70009:function(v){var b=function(i){return i&&i.Math==Math&&i};v.exports=b("object"==typeof globalThis&&globalThis)||b("object"==typeof window&&window)||b("object"==typeof self&&self)||b("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},80112:(v,b,i)=>{var r=i(23634),a=i(70267),f=r({}.hasOwnProperty);v.exports=Object.hasOwn||function(e,p){return f(a(e),p)}},45599:v=>{v.exports={}},52912:v=>{v.exports=function(b,i){try{1==arguments.length?console.error(b):console.error(b,i)}catch(r){}}},55690:(v,b,i)=>{var r=i(7365);v.exports=r("document","documentElement")},50495:(v,b,i)=>{var r=i(49642),a=i(55756),f=i(96682);v.exports=!r&&!a(function(){return 7!=Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a})},20973:(v,b,i)=>{var r=i(23634),a=i(55756),f=i(49806),u=Object,e=r("".split);v.exports=a(function(){return!u("z").propertyIsEnumerable(0)})?function(p){return"String"==f(p)?e(p,""):u(p)}:u},26699:(v,b,i)=>{var r=i(23634),a=i(52208),f=i(24766),u=r(Function.toString);a(f.inspectSource)||(f.inspectSource=function(e){return u(e)}),v.exports=f.inspectSource},33411:(v,b,i)=>{var r=i(77293),a=i(65162);v.exports=function(f,u){r(u)&&"cause"in u&&a(f,"cause",u.cause)}},57867:(v,b,i)=>{var r=i(90513),a=i(23634),f=i(45599),u=i(77293),e=i(80112),p=i(48011).f,g=i(51518),T=i(62469),M=i(46401),w=i(13708),R=i(3124),U=!1,W=w("meta"),j=0,q=function(ie){p(ie,W,{value:{objectID:"O"+j++,weakData:{}}})},ae=v.exports={enable:function(){ae.enable=function(){},U=!0;var ie=g.f,fe=a([].splice),_e={};_e[W]=1,ie(_e).length&&(g.f=function(Ce){for(var ce=ie(Ce),Be=0,Ve=ce.length;Be{var U,W,j,r=i(81101),a=i(70009),f=i(77293),u=i(65162),e=i(80112),p=i(24766),g=i(86066),T=i(45599),M="Object already initialized",w=a.TypeError;if(r||p.state){var re=p.state||(p.state=new(0,a.WeakMap));re.get=re.get,re.has=re.has,re.set=re.set,U=function(se,ae){if(re.has(se))throw w(M);return ae.facade=se,re.set(se,ae),ae},W=function(se){return re.get(se)||{}},j=function(se){return re.has(se)}}else{var H=g("state");T[H]=!0,U=function(se,ae){if(e(se,H))throw w(M);return ae.facade=se,u(se,H,ae),ae},W=function(se){return e(se,H)?se[H]:{}},j=function(se){return e(se,H)}}v.exports={set:U,get:W,has:j,enforce:function(se){return j(se)?W(se):U(se,{})},getterFor:function(se){return function(ae){var ie;if(!f(ae)||(ie=W(ae)).type!==se)throw w("Incompatible receiver, "+se+" required");return ie}}}},39918:(v,b,i)=>{var r=i(91840),a=i(84394),f=r("iterator"),u=Array.prototype;v.exports=function(e){return void 0!==e&&(a.Array===e||u[f]===e)}},89735:(v,b,i)=>{var r=i(49806);v.exports=Array.isArray||function(f){return"Array"==r(f)}},52208:(v,b,i)=>{var r=i(59478),a=r.all;v.exports=r.IS_HTMLDDA?function(f){return"function"==typeof f||f===a}:function(f){return"function"==typeof f}},81177:(v,b,i)=>{var r=i(23634),a=i(55756),f=i(52208),u=i(35329),e=i(7365),p=i(26699),g=function(){},T=[],M=e("Reflect","construct"),w=/^\s*(?:class|function)\b/,R=r(w.exec),U=!w.exec(g),W=function(ue){if(!f(ue))return!1;try{return M(g,T,ue),!0}catch(re){return!1}},j=function(ue){if(!f(ue))return!1;switch(u(ue)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return U||!!R(w,p(ue))}catch(re){return!0}};j.sham=!0,v.exports=!M||a(function(){var q;return W(W.call)||!W(Object)||!W(function(){q=!0})||q})?j:W},27029:(v,b,i)=>{var r=i(80112);v.exports=function(a){return void 0!==a&&(r(a,"value")||r(a,"writable"))}},79482:(v,b,i)=>{var r=i(55756),a=i(52208),f=/#|\.prototype\./,u=function(M,w){var R=p[e(M)];return R==T||R!=g&&(a(w)?r(w):!!w)},e=u.normalize=function(M){return String(M).replace(f,".").toLowerCase()},p=u.data={},g=u.NATIVE="N",T=u.POLYFILL="P";v.exports=u},43550:v=>{v.exports=function(b){return null==b}},77293:(v,b,i)=>{var r=i(52208),a=i(59478),f=a.all;v.exports=a.IS_HTMLDDA?function(u){return"object"==typeof u?null!==u:r(u)||u===f}:function(u){return"object"==typeof u?null!==u:r(u)}},81124:v=>{v.exports=!0},60373:(v,b,i)=>{var r=i(77293),a=i(49806),u=i(91840)("match");v.exports=function(e){var p;return r(e)&&(void 0!==(p=e[u])?!!p:"RegExp"==a(e))}},74717:(v,b,i)=>{var r=i(7365),a=i(52208),f=i(23336),u=i(99554),e=Object;v.exports=u?function(p){return"symbol"==typeof p}:function(p){var g=r("Symbol");return a(g)&&f(g.prototype,e(p))}},87463:(v,b,i)=>{var r=i(25401);v.exports=function(a,f,u){for(var p,g,e=u||a.next;!(p=r(e,a)).done;)if(void 0!==(g=f(p.value)))return g}},41605:(v,b,i)=>{var r=i(76781),a=i(25401),f=i(64562),u=i(7378),e=i(39918),p=i(6381),g=i(23336),T=i(88055),M=i(34014),w=i(40798),R=TypeError,U=function(j,q){this.stopped=j,this.result=q},W=U.prototype;v.exports=function(j,q,ue){var _e,Ce,ce,Be,Ve,Xe,He,H=!(!ue||!ue.AS_ENTRIES),se=!(!ue||!ue.IS_RECORD),ae=!(!ue||!ue.IS_ITERATOR),ie=!(!ue||!ue.INTERRUPTED),fe=r(q,ue&&ue.that),Pe=function(Oe){return _e&&w(_e,"normal",Oe),new U(!0,Oe)},Ge=function(Oe){return H?(f(Oe),ie?fe(Oe[0],Oe[1],Pe):fe(Oe[0],Oe[1])):ie?fe(Oe,Pe):fe(Oe)};if(se)_e=j.iterator;else if(ae)_e=j;else{if(!(Ce=M(j)))throw R(u(j)+" is not iterable");if(e(Ce)){for(ce=0,Be=p(j);Be>ce;ce++)if((Ve=Ge(j[ce]))&&g(W,Ve))return Ve;return new U(!1)}_e=T(j,Ce)}for(Xe=se?j.next:_e.next;!(He=a(Xe,_e)).done;){try{Ve=Ge(He.value)}catch(Oe){w(_e,"throw",Oe)}if("object"==typeof Ve&&Ve&&g(W,Ve))return Ve}return new U(!1)}},40798:(v,b,i)=>{var r=i(25401),a=i(64562),f=i(34778);v.exports=function(u,e,p){var g,T;a(u);try{if(!(g=f(u,"return"))){if("throw"===e)throw p;return p}g=r(g,u)}catch(M){T=!0,g=M}if("throw"===e)throw p;if(T)throw g;return a(g),p}},14554:(v,b,i)=>{"use strict";var r=i(38432).IteratorPrototype,a=i(83272),f=i(51361),u=i(85681),e=i(84394),p=function(){return this};v.exports=function(g,T,M,w){var R=T+" Iterator";return g.prototype=a(r,{next:f(+!w,M)}),u(g,R,!1,!0),e[R]=p,g}},79077:(v,b,i)=>{"use strict";var r=i(90513),a=i(25401),f=i(81124),u=i(29862),e=i(52208),p=i(14554),g=i(31426),T=i(54945),M=i(85681),w=i(65162),R=i(42915),U=i(91840),W=i(84394),j=i(38432),q=u.PROPER,ue=u.CONFIGURABLE,re=j.IteratorPrototype,H=j.BUGGY_SAFARI_ITERATORS,se=U("iterator"),ie="values",fe="entries",_e=function(){return this};v.exports=function(Ce,ce,Be,Ve,Xe,He,Pe){p(Be,ce,Ve);var dn,rn,vt,Ge=function(xt){if(xt===Xe&&Nt)return Nt;if(!H&&xt in We)return We[xt];switch(xt){case"keys":case ie:case fe:return function(){return new Be(this,xt)}}return function(){return new Be(this)}},Oe=ce+" Iterator",Tt=!1,We=Ce.prototype,Qt=We[se]||We["@@iterator"]||Xe&&We[Xe],Nt=!H&&Qt||Ge(Xe),Yt="Array"==ce&&We.entries||Qt;if(Yt&&(dn=g(Yt.call(new Ce)))!==Object.prototype&&dn.next&&(!f&&g(dn)!==re&&(T?T(dn,re):e(dn[se])||R(dn,se,_e)),M(dn,Oe,!0,!0),f&&(W[Oe]=_e)),q&&Xe==ie&&Qt&&Qt.name!==ie&&(!f&&ue?w(We,"name",ie):(Tt=!0,Nt=function(){return a(Qt,this)})),Xe)if(rn={values:Ge(ie),keys:He?Nt:Ge("keys"),entries:Ge(fe)},Pe)for(vt in rn)(H||Tt||!(vt in We))&&R(We,vt,rn[vt]);else r({target:ce,proto:!0,forced:H||Tt},rn);return(!f||Pe)&&We[se]!==Nt&&R(We,se,Nt,{name:Xe}),W[ce]=Nt,rn}},38432:(v,b,i)=>{"use strict";var R,U,W,r=i(55756),a=i(52208),f=i(77293),u=i(83272),e=i(31426),p=i(42915),g=i(91840),T=i(81124),M=g("iterator"),w=!1;[].keys&&("next"in(W=[].keys())?(U=e(e(W)))!==Object.prototype&&(R=U):w=!0),!f(R)||r(function(){var q={};return R[M].call(q)!==q})?R={}:T&&(R=u(R)),a(R[M])||p(R,M,function(){return this}),v.exports={IteratorPrototype:R,BUGGY_SAFARI_ITERATORS:w}},84394:v=>{v.exports={}},6381:(v,b,i)=>{var r=i(48869);v.exports=function(a){return r(a.length)}},60077:(v,b,i)=>{var r=i(7365),a=i(49458),f=r("Map");v.exports={Map:f,set:a("set",2),get:a("get",1),has:a("has",1),remove:a("delete",1),proto:f.prototype}},21515:(v,b,i)=>{var r=i(87463);v.exports=function(a,f,u){return u?r(a.entries(),function(e){return f(e[1],e[0])}):a.forEach(f)}},57729:(v,b,i)=>{"use strict";var r=i(25401),a=i(61812),f=i(52208),u=i(64562),e=TypeError;v.exports=function(g,T){var j,M=u(this),w=a(M.get),R=a(M.has),U=a(M.set),W=arguments.length>2?arguments[2]:void 0;if(!f(T)&&!f(W))throw e("At least one callback required");return r(R,M,g)?(j=r(w,M,g),f(T)&&(j=T(j),r(U,M,g,j))):f(W)&&(j=W(),r(U,M,g,j)),j}},8651:v=>{var b=Math.ceil,i=Math.floor;v.exports=Math.trunc||function(a){var f=+a;return(f>0?i:b)(f)}},58991:(v,b,i)=>{var ue,re,H,se,ae,r=i(70009),a=i(76781),f=i(25525).f,u=i(37352).set,e=i(70918),p=i(3877),g=i(16137),T=i(85308),M=i(3787),w=r.MutationObserver||r.WebKitMutationObserver,R=r.document,U=r.process,W=r.Promise,j=f(r,"queueMicrotask"),q=j&&j.value;if(!q){var ie=new e,fe=function(){var _e,Ce;for(M&&(_e=U.domain)&&_e.exit();Ce=ie.get();)try{Ce()}catch(ce){throw ie.head&&ue(),ce}_e&&_e.enter()};p||M||T||!w||!R?!g&&W&&W.resolve?((se=W.resolve(void 0)).constructor=W,ae=a(se.then,se),ue=function(){ae(fe)}):M?ue=function(){U.nextTick(fe)}:(u=a(u,r),ue=function(){u(fe)}):(re=!0,H=R.createTextNode(""),new w(fe).observe(H,{characterData:!0}),ue=function(){H.data=re=!re}),q=function(_e){ie.head||ue(),ie.add(_e)}}v.exports=q},54256:(v,b,i)=>{"use strict";var r=i(61812),a=TypeError,f=function(u){var e,p;this.promise=new u(function(g,T){if(void 0!==e||void 0!==p)throw a("Bad Promise constructor");e=g,p=T}),this.resolve=r(e),this.reject=r(p)};v.exports.f=function(u){return new f(u)}},63313:(v,b,i)=>{var r=i(41433);v.exports=function(a,f){return void 0===a?arguments.length<2?"":f:r(a)}},56421:(v,b,i)=>{var r=i(60373),a=TypeError;v.exports=function(f){if(r(f))throw a("The method doesn't accept regular expressions");return f}},75791:(v,b,i)=>{"use strict";var r=i(49642),a=i(23634),f=i(25401),u=i(55756),e=i(28474),p=i(47238),g=i(25558),T=i(70267),M=i(20973),w=Object.assign,R=Object.defineProperty,U=a([].concat);v.exports=!w||u(function(){if(r&&1!==w({b:1},w(R({},"a",{enumerable:!0,get:function(){R(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var W={},j={},q=Symbol(),ue="abcdefghijklmnopqrst";return W[q]=7,ue.split("").forEach(function(re){j[re]=re}),7!=w({},W)[q]||e(w({},j)).join("")!=ue})?function(j,q){for(var ue=T(j),re=arguments.length,H=1,se=p.f,ae=g.f;re>H;)for(var ce,ie=M(arguments[H++]),fe=se?U(e(ie),se(ie)):e(ie),_e=fe.length,Ce=0;_e>Ce;)ce=fe[Ce++],(!r||f(ae,ie,ce))&&(ue[ce]=ie[ce]);return ue}:w},83272:(v,b,i)=>{var re,r=i(64562),a=i(25913),f=i(44939),u=i(45599),e=i(55690),p=i(96682),g=i(86066),w="prototype",R="script",U=g("IE_PROTO"),W=function(){},j=function(se){return"<"+R+">"+se+""},q=function(se){se.write(j("")),se.close();var ae=se.parentWindow.Object;return se=null,ae},H=function(){try{re=new ActiveXObject("htmlfile")}catch(ae){}H="undefined"!=typeof document?document.domain&&re?q(re):function(){var ie,se=p("iframe");return se.style.display="none",e.appendChild(se),se.src=String("javascript:"),(ie=se.contentWindow.document).open(),ie.write(j("document.F=Object")),ie.close(),ie.F}():q(re);for(var se=f.length;se--;)delete H[w][f[se]];return H()};u[U]=!0,v.exports=Object.create||function(ae,ie){var fe;return null!==ae?(W[w]=r(ae),fe=new W,W[w]=null,fe[U]=ae):fe=H(),void 0===ie?fe:a.f(fe,ie)}},25913:(v,b,i)=>{var r=i(49642),a=i(47960),f=i(48011),u=i(64562),e=i(81010),p=i(28474);b.f=r&&!a?Object.defineProperties:function(T,M){u(T);for(var j,w=e(M),R=p(M),U=R.length,W=0;U>W;)f.f(T,j=R[W++],w[j]);return T}},48011:(v,b,i)=>{var r=i(49642),a=i(50495),f=i(47960),u=i(64562),e=i(62939),p=TypeError,g=Object.defineProperty,T=Object.getOwnPropertyDescriptor,M="enumerable",w="configurable",R="writable";b.f=r?f?function(W,j,q){if(u(W),j=e(j),u(q),"function"==typeof W&&"prototype"===j&&"value"in q&&R in q&&!q[R]){var ue=T(W,j);ue&&ue[R]&&(W[j]=q.value,q={configurable:w in q?q[w]:ue[w],enumerable:M in q?q[M]:ue[M],writable:!1})}return g(W,j,q)}:g:function(W,j,q){if(u(W),j=e(j),u(q),a)try{return g(W,j,q)}catch(ue){}if("get"in q||"set"in q)throw p("Accessors not supported");return"value"in q&&(W[j]=q.value),W}},25525:(v,b,i)=>{var r=i(49642),a=i(25401),f=i(25558),u=i(51361),e=i(81010),p=i(62939),g=i(80112),T=i(50495),M=Object.getOwnPropertyDescriptor;b.f=r?M:function(R,U){if(R=e(R),U=p(U),T)try{return M(R,U)}catch(W){}if(g(R,U))return u(!a(f.f,R,U),R[U])}},62469:(v,b,i)=>{var r=i(49806),a=i(81010),f=i(51518).f,u=i(8681),e="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];v.exports.f=function(T){return e&&"Window"==r(T)?function(g){try{return f(g)}catch(T){return u(e)}}(T):f(a(T))}},51518:(v,b,i)=>{var r=i(66250),f=i(44939).concat("length","prototype");b.f=Object.getOwnPropertyNames||function(e){return r(e,f)}},47238:(v,b)=>{b.f=Object.getOwnPropertySymbols},31426:(v,b,i)=>{var r=i(80112),a=i(52208),f=i(70267),u=i(86066),e=i(37112),p=u("IE_PROTO"),g=Object,T=g.prototype;v.exports=e?g.getPrototypeOf:function(M){var w=f(M);if(r(w,p))return w[p];var R=w.constructor;return a(R)&&w instanceof R?R.prototype:w instanceof g?T:null}},46401:(v,b,i)=>{var r=i(55756),a=i(77293),f=i(49806),u=i(76318),e=Object.isExtensible,p=r(function(){e(1)});v.exports=p||u?function(T){return!(!a(T)||u&&"ArrayBuffer"==f(T))&&(!e||e(T))}:e},23336:(v,b,i)=>{var r=i(23634);v.exports=r({}.isPrototypeOf)},66250:(v,b,i)=>{var r=i(23634),a=i(80112),f=i(81010),u=i(95171).indexOf,e=i(45599),p=r([].push);v.exports=function(g,T){var U,M=f(g),w=0,R=[];for(U in M)!a(e,U)&&a(M,U)&&p(R,U);for(;T.length>w;)a(M,U=T[w++])&&(~u(R,U)||p(R,U));return R}},28474:(v,b,i)=>{var r=i(66250),a=i(44939);v.exports=Object.keys||function(u){return r(u,a)}},25558:(v,b)=>{"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);b.f=a?function(u){var e=r(this,u);return!!e&&e.enumerable}:i},54945:(v,b,i)=>{var r=i(13325),a=i(64562),f=i(93221);v.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p,u=!1,e={};try{(p=r(Object.prototype,"__proto__","set"))(e,[]),u=e instanceof Array}catch(g){}return function(T,M){return a(T),f(M),u?p(T,M):T.__proto__=M,T}}():void 0)},36805:(v,b,i)=>{var r=i(49642),a=i(23634),f=i(28474),u=i(81010),p=a(i(25558).f),g=a([].push),T=function(M){return function(w){for(var ue,R=u(w),U=f(R),W=U.length,j=0,q=[];W>j;)ue=U[j++],(!r||p(R,ue))&&g(q,M?[ue,R[ue]]:R[ue]);return q}};v.exports={entries:T(!0),values:T(!1)}},97686:(v,b,i)=>{"use strict";var r=i(5552),a=i(35329);v.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},71689:(v,b,i)=>{var r=i(25401),a=i(52208),f=i(77293),u=TypeError;v.exports=function(e,p){var g,T;if("string"===p&&a(g=e.toString)&&!f(T=r(g,e))||a(g=e.valueOf)&&!f(T=r(g,e))||"string"!==p&&a(g=e.toString)&&!f(T=r(g,e)))return T;throw u("Can't convert object to primitive value")}},59823:(v,b,i)=>{var r=i(7365),a=i(23634),f=i(51518),u=i(47238),e=i(64562),p=a([].concat);v.exports=r("Reflect","ownKeys")||function(T){var M=f.f(e(T)),w=u.f;return w?p(M,w(T)):M}},13544:v=>{v.exports={}},26975:v=>{v.exports=function(b){try{return{error:!1,value:b()}}catch(i){return{error:!0,value:i}}}},9936:(v,b,i)=>{var r=i(70009),a=i(46456),f=i(52208),u=i(79482),e=i(26699),p=i(91840),g=i(34008),T=i(31813),M=i(81124),w=i(63556),R=a&&a.prototype,U=p("species"),W=!1,j=f(r.PromiseRejectionEvent),q=u("Promise",function(){var ue=e(a),re=ue!==String(a);if(!re&&66===w||M&&(!R.catch||!R.finally))return!0;if(!w||w<51||!/native code/.test(ue)){var H=new a(function(ie){ie(1)}),se=function(ie){ie(function(){},function(){})};if((H.constructor={})[U]=se,!(W=H.then(function(){})instanceof se))return!0}return!re&&(g||T)&&!j});v.exports={CONSTRUCTOR:q,REJECTION_EVENT:j,SUBCLASSING:W}},46456:(v,b,i)=>{var r=i(70009);v.exports=r.Promise},25524:(v,b,i)=>{var r=i(64562),a=i(77293),f=i(54256);v.exports=function(u,e){if(r(u),a(e)&&e.constructor===u)return e;var p=f.f(u);return(0,p.resolve)(e),p.promise}},95758:(v,b,i)=>{var r=i(46456),a=i(5253),f=i(9936).CONSTRUCTOR;v.exports=f||!a(function(u){r.all(u).then(void 0,function(){})})},70918:v=>{var b=function(){this.head=null,this.tail=null};b.prototype={add:function(i){var r={item:i,next:null},a=this.tail;a?a.next=r:this.head=r,this.tail=r},get:function(){var i=this.head;if(i)return null===(this.head=i.next)&&(this.tail=null),i.item}},v.exports=b},67917:(v,b,i)=>{var r=i(43550),a=TypeError;v.exports=function(f){if(r(f))throw a("Can't call method on "+f);return f}},29627:v=>{v.exports=function(b,i){return b===i||b!=b&&i!=i}},53814:(v,b,i)=>{"use strict";var w,r=i(70009),a=i(2543),f=i(52208),u=i(70902),e=i(86053),p=i(37591),g=i(15086),T=r.Function,M=/MSIE .\./.test(e)||u&&((w=r.Bun.version.split(".")).length<3||0==w[0]&&(w[1]<3||3==w[1]&&0==w[2]));v.exports=function(w,R){var U=R?2:1;return M?function(W,j){var q=g(arguments.length,1)>U,ue=f(W)?W:T(W),re=q?p(arguments,U):[],H=q?function(){a(ue,this,re)}:ue;return R?w(H,j):w(H)}:w}},58014:(v,b,i)=>{"use strict";var r=i(7365),a=i(1707),f=i(91840),u=i(49642),e=f("species");v.exports=function(p){var g=r(p);u&&g&&!g[e]&&a(g,e,{configurable:!0,get:function(){return this}})}},85681:(v,b,i)=>{var r=i(5552),a=i(48011).f,f=i(65162),u=i(80112),e=i(97686),g=i(91840)("toStringTag");v.exports=function(T,M,w,R){if(T){var U=w?T:T.prototype;u(U,g)||a(U,g,{configurable:!0,value:M}),R&&!r&&f(U,"toString",e)}}},86066:(v,b,i)=>{var r=i(64579),a=i(13708),f=r("keys");v.exports=function(u){return f[u]||(f[u]=a(u))}},24766:(v,b,i)=>{var r=i(70009),a=i(34056),f="__core-js_shared__",u=r[f]||a(f,{});v.exports=u},64579:(v,b,i)=>{var r=i(81124),a=i(24766);(v.exports=function(f,u){return a[f]||(a[f]=void 0!==u?u:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},95869:(v,b,i)=>{var r=i(64562),a=i(54356),f=i(43550),e=i(91840)("species");v.exports=function(p,g){var M,T=r(p).constructor;return void 0===T||f(M=r(T)[e])?g:a(M)}},61557:(v,b,i)=>{var r=i(23634),a=i(33912),f=i(41433),u=i(67917),e=r("".charAt),p=r("".charCodeAt),g=r("".slice),T=function(M){return function(w,R){var q,ue,U=f(u(w)),W=a(R),j=U.length;return W<0||W>=j?M?"":void 0:(q=p(U,W))<55296||q>56319||W+1===j||(ue=p(U,W+1))<56320||ue>57343?M?e(U,W):q:M?g(U,W,W+2):ue-56320+(q-55296<<10)+65536}};v.exports={codeAt:T(!1),charAt:T(!0)}},26662:(v,b,i)=>{var r=i(23634),a=2147483647,R=/[^\0-\u007E]/,U=/[.\u3002\uFF0E\uFF61]/g,W="Overflow: input needs wider integers to process",q=RangeError,ue=r(U.exec),re=Math.floor,H=String.fromCharCode,se=r("".charCodeAt),ae=r([].join),ie=r([].push),fe=r("".replace),_e=r("".split),Ce=r("".toLowerCase),Be=function(He){return He+22+75*(He<26)},Ve=function(He,Pe,Ge){var Oe=0;for(He=Ge?re(He/700):He>>1,He+=re(He/Pe);He>455;)He=re(He/35),Oe+=36;return re(Oe+36*He/(He+38))},Xe=function(He){var Pe=[];He=function(He){for(var Pe=[],Ge=0,Oe=He.length;Ge=55296&&Tt<=56319&&Ge=Oe&&Ntre((a-Tt)/vt))throw q(W);for(Tt+=(rn-Oe)*vt,Oe=rn,Qt=0;Qta)throw q(W);if(Nt==Oe){for(var xt=Tt,Ct=36;;){var Gt=Ct<=We?1:Ct>=We+26?26:Ct-We;if(xt{"use strict";var r=i(33912),a=i(41433),f=i(67917),u=RangeError;v.exports=function(p){var g=a(f(this)),T="",M=r(p);if(M<0||M==1/0)throw u("Wrong number of repetitions");for(;M>0;(M>>>=1)&&(g+=g))1&M&&(T+=g);return T}},85462:(v,b,i)=>{var r=i(29862).PROPER,a=i(55756),f=i(88185);v.exports=function(e){return a(function(){return!!f[e]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[e]()||r&&f[e].name!==e})}},89858:(v,b,i)=>{var r=i(23634),a=i(67917),f=i(41433),u=i(88185),e=r("".replace),p=RegExp("^["+u+"]+"),g=RegExp("(^|[^"+u+"])["+u+"]+$"),T=function(M){return function(w){var R=f(a(w));return 1&M&&(R=e(R,p,"")),2&M&&(R=e(R,g,"$1")),R}};v.exports={start:T(1),end:T(2),trim:T(3)}},98535:(v,b,i)=>{var r=i(63556),a=i(55756),u=i(70009).String;v.exports=!!Object.getOwnPropertySymbols&&!a(function(){var e=Symbol();return!u(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},56992:(v,b,i)=>{var r=i(25401),a=i(7365),f=i(91840),u=i(42915);v.exports=function(){var e=a("Symbol"),p=e&&e.prototype,g=p&&p.valueOf,T=f("toPrimitive");p&&!p[T]&&u(p,T,function(M){return r(g,this)},{arity:1})}},56709:(v,b,i)=>{var r=i(98535);v.exports=r&&!!Symbol.for&&!!Symbol.keyFor},37352:(v,b,i)=>{var _e,Ce,ce,Be,r=i(70009),a=i(2543),f=i(76781),u=i(52208),e=i(80112),p=i(55756),g=i(55690),T=i(37591),M=i(96682),w=i(15086),R=i(3877),U=i(3787),W=r.setImmediate,j=r.clearImmediate,q=r.process,ue=r.Dispatch,re=r.Function,H=r.MessageChannel,se=r.String,ae=0,ie={},fe="onreadystatechange";p(function(){_e=r.location});var Ve=function(Ge){if(e(ie,Ge)){var Oe=ie[Ge];delete ie[Ge],Oe()}},Xe=function(Ge){return function(){Ve(Ge)}},He=function(Ge){Ve(Ge.data)},Pe=function(Ge){r.postMessage(se(Ge),_e.protocol+"//"+_e.host)};(!W||!j)&&(W=function(Oe){w(arguments.length,1);var Tt=u(Oe)?Oe:re(Oe),We=T(arguments,1);return ie[++ae]=function(){a(Tt,void 0,We)},Ce(ae),ae},j=function(Oe){delete ie[Oe]},U?Ce=function(Ge){q.nextTick(Xe(Ge))}:ue&&ue.now?Ce=function(Ge){ue.now(Xe(Ge))}:H&&!R?(Be=(ce=new H).port2,ce.port1.onmessage=He,Ce=f(Be.postMessage,Be)):r.addEventListener&&u(r.postMessage)&&!r.importScripts&&_e&&"file:"!==_e.protocol&&!p(Pe)?(Ce=Pe,r.addEventListener("message",He,!1)):Ce=fe in M("script")?function(Ge){g.appendChild(M("script"))[fe]=function(){g.removeChild(this),Ve(Ge)}}:function(Ge){setTimeout(Xe(Ge),0)}),v.exports={set:W,clear:j}},19401:(v,b,i)=>{var r=i(33912),a=Math.max,f=Math.min;v.exports=function(u,e){var p=r(u);return p<0?a(p+e,0):f(p,e)}},81010:(v,b,i)=>{var r=i(20973),a=i(67917);v.exports=function(f){return r(a(f))}},33912:(v,b,i)=>{var r=i(8651);v.exports=function(a){var f=+a;return f!=f||0===f?0:r(f)}},48869:(v,b,i)=>{var r=i(33912),a=Math.min;v.exports=function(f){return f>0?a(r(f),9007199254740991):0}},70267:(v,b,i)=>{var r=i(67917),a=Object;v.exports=function(f){return a(r(f))}},1645:(v,b,i)=>{var r=i(25401),a=i(77293),f=i(74717),u=i(34778),e=i(71689),p=i(91840),g=TypeError,T=p("toPrimitive");v.exports=function(M,w){if(!a(M)||f(M))return M;var U,R=u(M,T);if(R){if(void 0===w&&(w="default"),U=r(R,M,w),!a(U)||f(U))return U;throw g("Can't convert object to primitive value")}return void 0===w&&(w="number"),e(M,w)}},62939:(v,b,i)=>{var r=i(1645),a=i(74717);v.exports=function(f){var u=r(f,"string");return a(u)?u:u+""}},5552:(v,b,i)=>{var f={};f[i(91840)("toStringTag")]="z",v.exports="[object z]"===String(f)},41433:(v,b,i)=>{var r=i(35329),a=String;v.exports=function(f){if("Symbol"===r(f))throw TypeError("Cannot convert a Symbol value to a string");return a(f)}},7378:v=>{var b=String;v.exports=function(i){try{return b(i)}catch(r){return"Object"}}},13708:(v,b,i)=>{var r=i(23634),a=0,f=Math.random(),u=r(1..toString);v.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+u(++a+f,36)}},54933:(v,b,i)=>{var r=i(55756),a=i(91840),f=i(49642),u=i(81124),e=a("iterator");v.exports=!r(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),g=p.searchParams,T="";return p.pathname="c%20d",g.forEach(function(M,w){g.delete("b"),T+=w+M}),u&&!p.toJSON||!g.size&&(u||!f)||!g.sort||"http://a/c%20d?a=1&c=3"!==p.href||"3"!==g.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!g[e]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==T||"x"!==new URL("http://x",void 0).host})},99554:(v,b,i)=>{var r=i(98535);v.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},47960:(v,b,i)=>{var r=i(49642),a=i(55756);v.exports=r&&a(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},15086:v=>{var b=TypeError;v.exports=function(i,r){if(i{var r=i(70009),a=i(52208),f=r.WeakMap;v.exports=a(f)&&/native code/.test(String(f))},25374:(v,b,i)=>{var r=i(13544),a=i(80112),f=i(89734),u=i(48011).f;v.exports=function(e){var p=r.Symbol||(r.Symbol={});a(p,e)||u(p,e,{value:f.f(e)})}},89734:(v,b,i)=>{var r=i(91840);b.f=r},91840:(v,b,i)=>{var r=i(70009),a=i(64579),f=i(80112),u=i(13708),e=i(98535),p=i(99554),g=r.Symbol,T=a("wks"),M=p?g.for||g:g&&g.withoutSetter||u;v.exports=function(w){return f(T,w)||(T[w]=e&&f(g,w)?g[w]:M("Symbol."+w)),T[w]}},88185:v=>{v.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},70210:(v,b,i)=>{"use strict";var r=i(90513),a=i(23336),f=i(31426),u=i(54945),e=i(65031),p=i(83272),g=i(65162),T=i(51361),M=i(33411),w=i(77732),R=i(41605),U=i(63313),j=i(91840)("toStringTag"),q=Error,ue=[].push,re=function(ae,ie){var _e,fe=a(H,this);u?_e=u(q(),fe?f(this):H):(_e=fe?this:p(H),g(_e,j,"Error")),void 0!==ie&&g(_e,"message",U(ie)),w(_e,re,_e.stack,1),arguments.length>2&&M(_e,arguments[2]);var Ce=[];return R(ae,ue,{that:Ce}),g(_e,"errors",Ce),_e};u?u(re,q):e(re,q,{name:!0});var H=re.prototype=p(q.prototype,{constructor:T(1,re),message:T(1,""),name:T(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:re})},10901:(v,b,i)=>{i(70210)},1625:(v,b,i)=>{"use strict";var r=i(90513),a=i(55756),f=i(89735),u=i(77293),e=i(70267),p=i(6381),g=i(11594),T=i(46751),M=i(2103),w=i(95913),R=i(91840),U=i(63556),W=R("isConcatSpreadable"),j=U>=51||!a(function(){var re=[];return re[W]=!1,re.concat()[0]!==re}),q=function(re){if(!u(re))return!1;var H=re[W];return void 0!==H?!!H:f(re)};r({target:"Array",proto:!0,arity:1,forced:!j||!w("concat")},{concat:function(H){var fe,_e,Ce,ce,Be,se=e(this),ae=M(se,0),ie=0;for(fe=-1,Ce=arguments.length;fe{"use strict";var r=i(90513),a=i(68607).every;r({target:"Array",proto:!0,forced:!i(33620)("every")},{every:function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}})},24990:(v,b,i)=>{var r=i(90513),a=i(35277),f=i(82196);r({target:"Array",proto:!0},{fill:a}),f("fill")},56534:(v,b,i)=>{"use strict";var r=i(90513),a=i(68607).filter;r({target:"Array",proto:!0,forced:!i(95913)("filter")},{filter:function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}})},12773:(v,b,i)=>{"use strict";var r=i(90513),a=i(68607).findIndex,f=i(82196),u="findIndex",e=!0;u in[]&&Array(1)[u](function(){e=!1}),r({target:"Array",proto:!0,forced:e},{findIndex:function(g){return a(this,g,arguments.length>1?arguments[1]:void 0)}}),f(u)},60326:(v,b,i)=>{"use strict";var r=i(90513),a=i(68607).find,f=i(82196),u="find",e=!0;u in[]&&Array(1)[u](function(){e=!1}),r({target:"Array",proto:!0,forced:e},{find:function(g){return a(this,g,arguments.length>1?arguments[1]:void 0)}}),f(u)},98792:(v,b,i)=>{"use strict";var r=i(90513),a=i(8366);r({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},261:(v,b,i)=>{var r=i(90513),a=i(51923);r({target:"Array",stat:!0,forced:!i(5253)(function(e){Array.from(e)})},{from:a})},77059:(v,b,i)=>{"use strict";var r=i(90513),a=i(95171).includes,f=i(55756),u=i(82196);r({target:"Array",proto:!0,forced:f(function(){return!Array(1).includes()})},{includes:function(g){return a(this,g,arguments.length>1?arguments[1]:void 0)}}),u("includes")},2795:(v,b,i)=>{"use strict";var r=i(90513),a=i(64350),f=i(95171).indexOf,u=i(33620),e=a([].indexOf),p=!!e&&1/e([1],1,-0)<0;r({target:"Array",proto:!0,forced:p||!u("indexOf")},{indexOf:function(M){var w=arguments.length>1?arguments[1]:void 0;return p?e(this,M,w)||0:f(this,M,w)}})},2862:(v,b,i)=>{i(90513)({target:"Array",stat:!0},{isArray:i(89735)})},1285:(v,b,i)=>{"use strict";var r=i(81010),a=i(82196),f=i(84394),u=i(91093),e=i(48011).f,p=i(79077),g=i(28738),T=i(81124),M=i(49642),w="Array Iterator",R=u.set,U=u.getterFor(w);v.exports=p(Array,"Array",function(j,q){R(this,{type:w,target:r(j),index:0,kind:q})},function(){var j=U(this),q=j.target,ue=j.kind,re=j.index++;return!q||re>=q.length?(j.target=void 0,g(void 0,!0)):g("keys"==ue?re:"values"==ue?q[re]:[re,q[re]],!1)},"values");var W=f.Arguments=f.Array;if(a("keys"),a("values"),a("entries"),!T&&M&&"values"!==W.name)try{e(W,"name",{value:"values"})}catch(j){}},74926:(v,b,i)=>{var r=i(90513),a=i(78375);r({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},88119:(v,b,i)=>{"use strict";var r=i(90513),a=i(68607).map;r({target:"Array",proto:!0,forced:!i(95913)("map")},{map:function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}})},46250:(v,b,i)=>{"use strict";var r=i(90513),a=i(88908).left,f=i(33620),u=i(63556);r({target:"Array",proto:!0,forced:!i(3787)&&u>79&&u<83||!f("reduce")},{reduce:function(M){var w=arguments.length;return a(this,M,w,w>1?arguments[1]:void 0)}})},32836:(v,b,i)=>{"use strict";var r=i(90513),a=i(23634),f=i(89735),u=a([].reverse),e=[1,2];r({target:"Array",proto:!0,forced:String(e)===String(e.reverse())},{reverse:function(){return f(this)&&(this.length=this.length),u(this)}})},72999:(v,b,i)=>{"use strict";var r=i(90513),a=i(89735),f=i(81177),u=i(77293),e=i(19401),p=i(6381),g=i(81010),T=i(46751),M=i(91840),w=i(95913),R=i(37591),U=w("slice"),W=M("species"),j=Array,q=Math.max;r({target:"Array",proto:!0,forced:!U},{slice:function(re,H){var _e,Ce,ce,se=g(this),ae=p(se),ie=e(re,ae),fe=e(void 0===H?ae:H,ae);if(a(se)&&((f(_e=se.constructor)&&(_e===j||a(_e.prototype))||u(_e)&&null===(_e=_e[W]))&&(_e=void 0),_e===j||void 0===_e))return R(se,ie,fe);for(Ce=new(void 0===_e?j:_e)(q(fe-ie,0)),ce=0;ie{"use strict";var r=i(90513),a=i(68607).some;r({target:"Array",proto:!0,forced:!i(33620)("some")},{some:function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}})},93639:(v,b,i)=>{"use strict";var r=i(90513),a=i(23634),f=i(61812),u=i(70267),e=i(6381),p=i(67236),g=i(41433),T=i(55756),M=i(84865),w=i(33620),R=i(36410),U=i(5329),W=i(63556),j=i(34545),q=[],ue=a(q.sort),re=a(q.push),H=T(function(){q.sort(void 0)}),se=T(function(){q.sort(null)}),ae=w("sort"),ie=!T(function(){if(W)return W<70;if(!(R&&R>3)){if(U)return!0;if(j)return j<603;var ce,Be,Ve,Xe,Ce="";for(ce=65;ce<76;ce++){switch(Be=String.fromCharCode(ce),ce){case 66:case 69:case 70:case 72:Ve=3;break;case 68:case 71:Ve=4;break;default:Ve=2}for(Xe=0;Xe<47;Xe++)q.push({k:Be+Xe,v:Ve})}for(q.sort(function(He,Pe){return Pe.v-He.v}),Xe=0;Xeg(Be)?1:-1}}(ce)),He=e(Ve),Pe=0;Pe{"use strict";var r=i(90513),a=i(70267),f=i(19401),u=i(33912),e=i(6381),p=i(54716),g=i(11594),T=i(2103),M=i(46751),w=i(67236),U=i(95913)("splice"),W=Math.max,j=Math.min;r({target:"Array",proto:!0,forced:!U},{splice:function(ue,re){var fe,_e,Ce,ce,Be,Ve,H=a(this),se=e(H),ae=f(ue,se),ie=arguments.length;for(0===ie?fe=_e=0:1===ie?(fe=0,_e=se-ae):(fe=ie-2,_e=j(W(u(re),0),se-ae)),g(se+fe-_e),Ce=T(H,_e),ce=0;ce<_e;ce++)(Be=ae+ce)in H&&M(Ce,ce,H[Be]);if(Ce.length=_e,fe<_e){for(ce=ae;cese-_e+fe;ce--)w(H,ce-1)}else if(fe>_e)for(ce=se-_e;ce>ae;ce--)Ve=ce+fe-1,(Be=ce+_e-1)in H?H[Ve]=H[Be]:w(H,Ve);for(ce=0;ce{var r=i(90513),a=i(23634),f=Date,u=a(f.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return u(new f)}})},68154:()=>{},33379:(v,b,i)=>{var r=i(90513),a=i(44197);r({target:"Function",proto:!0,forced:Function.bind!==a},{bind:a})},75071:(v,b,i)=>{var r=i(90513),a=i(7365),f=i(2543),u=i(25401),e=i(23634),p=i(55756),g=i(52208),T=i(74717),M=i(37591),w=i(32092),R=i(98535),U=String,W=a("JSON","stringify"),j=e(/./.exec),q=e("".charAt),ue=e("".charCodeAt),re=e("".replace),H=e(1..toString),se=/[\uD800-\uDFFF]/g,ae=/^[\uD800-\uDBFF]$/,ie=/^[\uDC00-\uDFFF]$/,fe=!R||p(function(){var Be=a("Symbol")();return"[null]"!=W([Be])||"{}"!=W({a:Be})||"{}"!=W(Object(Be))}),_e=p(function(){return'"\\udf06\\ud834"'!==W("\udf06\ud834")||'"\\udead"'!==W("\udead")}),Ce=function(Be,Ve){var Xe=M(arguments),He=w(Ve);if(g(He)||void 0!==Be&&!T(Be))return Xe[1]=function(Pe,Ge){if(g(He)&&(Ge=u(He,this,U(Pe),Ge)),!T(Ge))return Ge},f(W,null,Xe)},ce=function(Be,Ve,Xe){var He=q(Xe,Ve-1),Pe=q(Xe,Ve+1);return j(ae,Be)&&!j(ie,Pe)||j(ie,Be)&&!j(ae,He)?"\\u"+H(ue(Be,0),16):Be};W&&r({target:"JSON",stat:!0,arity:3,forced:fe||_e},{stringify:function(Ve,Xe,He){var Pe=M(arguments),Ge=f(fe?Ce:W,null,Pe);return _e&&"string"==typeof Ge?re(Ge,se,ce):Ge}})},32300:(v,b,i)=>{var r=i(70009);i(85681)(r.JSON,"JSON",!0)},83616:(v,b,i)=>{"use strict";i(85116)("Map",function(f){return function(){return f(this,arguments.length?arguments[0]:void 0)}},i(26650))},85140:(v,b,i)=>{i(83616)},63603:()=>{},67234:(v,b,i)=>{var r=i(90513),a=i(75791);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},86516:(v,b,i)=>{i(90513)({target:"Object",stat:!0,sham:!i(49642)},{create:i(83272)})},36255:(v,b,i)=>{var r=i(90513),a=i(49642),f=i(25913).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==f,sham:!a},{defineProperties:f})},84468:(v,b,i)=>{var r=i(90513),a=i(49642),f=i(48011).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==f,sham:!a},{defineProperty:f})},86627:(v,b,i)=>{var r=i(90513),a=i(55756),f=i(81010),u=i(25525).f,e=i(49642);r({target:"Object",stat:!0,forced:!e||a(function(){u(1)}),sham:!e},{getOwnPropertyDescriptor:function(T,M){return u(f(T),M)}})},78275:(v,b,i)=>{var r=i(90513),a=i(49642),f=i(59823),u=i(81010),e=i(25525),p=i(46751);r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(T){for(var j,q,M=u(T),w=e.f,R=f(M),U={},W=0;R.length>W;)void 0!==(q=w(M,j=R[W++]))&&p(U,j,q);return U}})},37764:(v,b,i)=>{var r=i(90513),a=i(98535),f=i(55756),u=i(47238),e=i(70267);r({target:"Object",stat:!0,forced:!a||f(function(){u.f(1)})},{getOwnPropertySymbols:function(T){var M=u.f;return M?M(e(T)):[]}})},31193:(v,b,i)=>{var r=i(90513),a=i(55756),f=i(70267),u=i(31426),e=i(37112);r({target:"Object",stat:!0,forced:a(function(){u(1)}),sham:!e},{getPrototypeOf:function(T){return u(f(T))}})},56557:(v,b,i)=>{var r=i(90513),a=i(70267),f=i(28474);r({target:"Object",stat:!0,forced:i(55756)(function(){f(1)})},{keys:function(g){return f(a(g))}})},17971:(v,b,i)=>{i(90513)({target:"Object",stat:!0},{setPrototypeOf:i(54945)})},17221:()=>{},88923:(v,b,i)=>{var r=i(90513),a=i(36805).values;r({target:"Object",stat:!0},{values:function(u){return a(u)}})},84798:(v,b,i)=>{"use strict";var r=i(90513),a=i(25401),f=i(61812),u=i(54256),e=i(26975),p=i(41605);r({target:"Promise",stat:!0,forced:i(95758)},{allSettled:function(M){var w=this,R=u.f(w),U=R.resolve,W=R.reject,j=e(function(){var q=f(w.resolve),ue=[],re=0,H=1;p(M,function(se){var ae=re++,ie=!1;H++,a(q,w,se).then(function(fe){ie||(ie=!0,ue[ae]={status:"fulfilled",value:fe},--H||U(ue))},function(fe){ie||(ie=!0,ue[ae]={status:"rejected",reason:fe},--H||U(ue))})}),--H||U(ue)});return j.error&&W(j.value),R.promise}})},58085:(v,b,i)=>{"use strict";var r=i(90513),a=i(25401),f=i(61812),u=i(54256),e=i(26975),p=i(41605);r({target:"Promise",stat:!0,forced:i(95758)},{all:function(M){var w=this,R=u.f(w),U=R.resolve,W=R.reject,j=e(function(){var q=f(w.resolve),ue=[],re=0,H=1;p(M,function(se){var ae=re++,ie=!1;H++,a(q,w,se).then(function(fe){ie||(ie=!0,ue[ae]=fe,--H||U(ue))},W)}),--H||U(ue)});return j.error&&W(j.value),R.promise}})},98857:(v,b,i)=>{"use strict";var r=i(90513),a=i(25401),f=i(61812),u=i(7365),e=i(54256),p=i(26975),g=i(41605),T=i(95758),M="No one promise resolved";r({target:"Promise",stat:!0,forced:T},{any:function(R){var U=this,W=u("AggregateError"),j=e.f(U),q=j.resolve,ue=j.reject,re=p(function(){var H=f(U.resolve),se=[],ae=0,ie=1,fe=!1;g(R,function(_e){var Ce=ae++,ce=!1;ie++,a(H,U,_e).then(function(Be){ce||fe||(fe=!0,q(Be))},function(Be){ce||fe||(ce=!0,se[Ce]=Be,--ie||ue(new W(se,M)))})}),--ie||ue(new W(se,M))});return re.error&&ue(re.value),j.promise}})},5846:(v,b,i)=>{"use strict";var r=i(90513),a=i(81124),f=i(9936).CONSTRUCTOR,u=i(46456),e=i(7365),p=i(52208),g=i(42915),T=u&&u.prototype;if(r({target:"Promise",proto:!0,forced:f,real:!0},{catch:function(w){return this.then(void 0,w)}}),!a&&p(u)){var M=e("Promise").prototype.catch;T.catch!==M&&g(T,"catch",M,{unsafe:!0})}},38206:(v,b,i)=>{"use strict";var mi,ci,Br,r=i(90513),a=i(81124),f=i(3787),u=i(70009),e=i(25401),p=i(42915),g=i(54945),T=i(85681),M=i(58014),w=i(61812),R=i(52208),U=i(77293),W=i(54849),j=i(95869),q=i(37352).set,ue=i(58991),re=i(52912),H=i(26975),se=i(70918),ae=i(91093),ie=i(46456),fe=i(9936),_e=i(54256),Ce="Promise",ce=fe.CONSTRUCTOR,Be=fe.REJECTION_EVENT,Ve=fe.SUBCLASSING,Xe=ae.getterFor(Ce),He=ae.set,Pe=ie&&ie.prototype,Ge=ie,Oe=Pe,Tt=u.TypeError,We=u.document,Qt=u.process,Nt=_e.f,Yt=Nt,dn=!!(We&&We.createEvent&&u.dispatchEvent),rn="unhandledrejection",Ur=function(an){var vn;return!(!U(an)||!R(vn=an.then))&&vn},Hn=function(an,vn){var vr,Ji,mn,Zn=vn.value,Xn=1==vn.state,zn=Xn?an.ok:an.fail,ri=an.resolve,Gi=an.reject,ui=an.domain;try{zn?(Xn||(2===vn.rejection&&fi(vn),vn.rejection=1),!0===zn?vr=Zn:(ui&&ui.enter(),vr=zn(Zn),ui&&(ui.exit(),mn=!0)),vr===an.promise?Gi(Tt("Promise-chain cycle")):(Ji=Ur(vr))?e(Ji,vr,ri,Gi):ri(vr)):Gi(Zn)}catch(Rn){ui&&!mn&&ui.exit(),Gi(Rn)}},er=function(an,vn){an.notified||(an.notified=!0,ue(function(){for(var Xn,Zn=an.reactions;Xn=Zn.get();)Hn(Xn,an);an.notified=!1,vn&&!an.rejection&&ei(an)}))},_r=function(an,vn,Zn){var Xn,zn;dn?((Xn=We.createEvent("Event")).promise=vn,Xn.reason=Zn,Xn.initEvent(an,!1,!0),u.dispatchEvent(Xn)):Xn={promise:vn,reason:Zn},!Be&&(zn=u["on"+an])?zn(Xn):an===rn&&re("Unhandled promise rejection",Zn)},ei=function(an){e(q,u,function(){var zn,vn=an.facade,Zn=an.value;if(bi(an)&&(zn=H(function(){f?Qt.emit("unhandledRejection",Zn,vn):_r(rn,vn,Zn)}),an.rejection=f||bi(an)?2:1,zn.error))throw zn.value})},bi=function(an){return 1!==an.rejection&&!an.parent},fi=function(an){e(q,u,function(){var vn=an.facade;f?Qt.emit("rejectionHandled",vn):_r("rejectionhandled",vn,an.value)})},no=function(an,vn,Zn){return function(Xn){an(vn,Xn,Zn)}},xo=function(an,vn,Zn){an.done||(an.done=!0,Zn&&(an=Zn),an.value=vn,an.state=2,er(an,!0))},Er=function(an,vn,Zn){if(!an.done){an.done=!0,Zn&&(an=Zn);try{if(an.facade===vn)throw Tt("Promise can't be resolved itself");var Xn=Ur(vn);Xn?ue(function(){var zn={done:!1};try{e(Xn,vn,no(Er,zn,an),no(xo,zn,an))}catch(ri){xo(zn,ri,an)}}):(an.value=vn,an.state=1,er(an,!1))}catch(zn){xo({done:!1},zn,an)}}};if(ce&&(Ge=function(vn){W(this,Oe),w(vn),e(mi,this);var Zn=Xe(this);try{vn(no(Er,Zn),no(xo,Zn))}catch(Xn){xo(Zn,Xn)}},(mi=function(vn){He(this,{type:Ce,done:!1,notified:!1,parent:!1,reactions:new se,rejection:!1,state:0,value:void 0})}).prototype=p(Oe=Ge.prototype,"then",function(vn,Zn){var Xn=Xe(this),zn=Nt(j(this,Ge));return Xn.parent=!0,zn.ok=!R(vn)||vn,zn.fail=R(Zn)&&Zn,zn.domain=f?Qt.domain:void 0,0==Xn.state?Xn.reactions.add(zn):ue(function(){Hn(zn,Xn)}),zn.promise}),ci=function(){var an=new mi,vn=Xe(an);this.promise=an,this.resolve=no(Er,vn),this.reject=no(xo,vn)},_e.f=Nt=function(an){return an===Ge||void 0===an?new ci(an):Yt(an)},!a&&R(ie)&&Pe!==Object.prototype)){Br=Pe.then,Ve||p(Pe,"then",function(vn,Zn){var Xn=this;return new Ge(function(zn,ri){e(Br,Xn,zn,ri)}).then(vn,Zn)},{unsafe:!0});try{delete Pe.constructor}catch(an){}g&&g(Pe,Oe)}r({global:!0,constructor:!0,wrap:!0,forced:ce},{Promise:Ge}),T(Ge,Ce,!1,!0),M(Ce)},30185:(v,b,i)=>{"use strict";var r=i(90513),a=i(81124),f=i(46456),u=i(55756),e=i(7365),p=i(52208),g=i(95869),T=i(25524),M=i(42915),w=f&&f.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!f&&u(function(){w.finally.call({then:function(){}},function(){})})},{finally:function(W){var j=g(this,e("Promise")),q=p(W);return this.then(q?function(ue){return T(j,W()).then(function(){return ue})}:W,q?function(ue){return T(j,W()).then(function(){throw ue})}:W)}}),!a&&p(f)){var U=e("Promise").prototype.finally;w.finally!==U&&M(w,"finally",U,{unsafe:!0})}},66793:(v,b,i)=>{i(38206),i(58085),i(5846),i(44738),i(74767),i(4991)},44738:(v,b,i)=>{"use strict";var r=i(90513),a=i(25401),f=i(61812),u=i(54256),e=i(26975),p=i(41605);r({target:"Promise",stat:!0,forced:i(95758)},{race:function(M){var w=this,R=u.f(w),U=R.reject,W=e(function(){var j=f(w.resolve);p(M,function(q){a(j,w,q).then(R.resolve,U)})});return W.error&&U(W.value),R.promise}})},74767:(v,b,i)=>{"use strict";var r=i(90513),a=i(25401),f=i(54256);r({target:"Promise",stat:!0,forced:i(9936).CONSTRUCTOR},{reject:function(p){var g=f.f(this);return a(g.reject,void 0,p),g.promise}})},4991:(v,b,i)=>{"use strict";var r=i(90513),a=i(7365),f=i(81124),u=i(46456),e=i(9936).CONSTRUCTOR,p=i(25524),g=a("Promise"),T=f&&!e;r({target:"Promise",stat:!0,forced:f||e},{resolve:function(w){return p(T&&this===g?u:this,w)}})},19539:(v,b,i)=>{var r=i(90513),a=i(7365),f=i(2543),u=i(44197),e=i(54356),p=i(64562),g=i(77293),T=i(83272),M=i(55756),w=a("Reflect","construct"),R=Object.prototype,U=[].push,W=M(function(){function ue(){}return!(w(function(){},[],ue)instanceof ue)}),j=!M(function(){w(function(){})}),q=W||j;r({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(re,H){e(re),p(H);var se=arguments.length<3?re:e(arguments[2]);if(j&&!W)return w(re,H,se);if(re==se){switch(H.length){case 0:return new re;case 1:return new re(H[0]);case 2:return new re(H[0],H[1]);case 3:return new re(H[0],H[1],H[2]);case 4:return new re(H[0],H[1],H[2],H[3])}var ae=[null];return f(U,ae,H),new(f(u,re,ae))}var ie=se.prototype,fe=T(g(ie)?ie:R),_e=f(re,fe,H);return g(_e)?_e:fe}})},60851:(v,b,i)=>{var r=i(90513),a=i(25401),f=i(77293),u=i(64562),e=i(27029),p=i(25525),g=i(31426);r({target:"Reflect",stat:!0},{get:function T(M,w){var U,W,R=arguments.length<3?M:arguments[2];return u(M)===R?M[w]:(U=p.f(M,w))?e(U)?U.value:void 0===U.get?void 0:a(U.get,R):f(W=g(M))?T(W,w,R):void 0}})},44864:()=>{},97764:(v,b,i)=>{"use strict";var r=i(90513),a=i(23634),f=i(56421),u=i(67917),e=i(41433),p=i(79668),g=a("".indexOf);r({target:"String",proto:!0,forced:!p("includes")},{includes:function(M){return!!~g(e(u(this)),e(f(M)),arguments.length>1?arguments[1]:void 0)}})},3934:(v,b,i)=>{"use strict";var r=i(61557).charAt,a=i(41433),f=i(91093),u=i(79077),e=i(28738),p="String Iterator",g=f.set,T=f.getterFor(p);u(String,"String",function(M){g(this,{type:p,string:a(M),index:0})},function(){var W,w=T(this),R=w.string,U=w.index;return U>=R.length?e(void 0,!0):(W=r(R,U),w.index+=W.length,e(W,!1))})},3588:(v,b,i)=>{i(90513)({target:"String",proto:!0},{repeat:i(53411)})},24655:(v,b,i)=>{"use strict";var q,r=i(90513),a=i(64350),f=i(25525).f,u=i(48869),e=i(41433),p=i(56421),g=i(67917),T=i(79668),M=i(81124),w=a("".startsWith),R=a("".slice),U=Math.min,W=T("startsWith");r({target:"String",proto:!0,forced:!(!M&&!W&&(q=f(String.prototype,"startsWith"),q&&!q.writable)||W)},{startsWith:function(ue){var re=e(g(this));p(ue);var H=u(U(arguments.length>1?arguments[1]:void 0,re.length)),se=e(ue);return w?w(re,se,H):R(re,H,H+se.length)===se}})},90451:(v,b,i)=>{"use strict";var r=i(90513),a=i(89858).trim;r({target:"String",proto:!0,forced:i(85462)("trim")},{trim:function(){return a(this)}})},16426:(v,b,i)=>{i(25374)("asyncIterator")},17858:(v,b,i)=>{"use strict";var r=i(90513),a=i(70009),f=i(25401),u=i(23634),e=i(81124),p=i(49642),g=i(98535),T=i(55756),M=i(80112),w=i(23336),R=i(64562),U=i(81010),W=i(62939),j=i(41433),q=i(51361),ue=i(83272),re=i(28474),H=i(51518),se=i(62469),ae=i(47238),ie=i(25525),fe=i(48011),_e=i(25913),Ce=i(25558),ce=i(42915),Be=i(1707),Ve=i(64579),Xe=i(86066),He=i(45599),Pe=i(13708),Ge=i(91840),Oe=i(89734),Tt=i(25374),We=i(56992),Qt=i(85681),Nt=i(91093),Yt=i(68607).forEach,dn=Xe("hidden"),rn="Symbol",vt="prototype",xt=Nt.set,Ct=Nt.getterFor(rn),Gt=Object[vt],Fn=a.Symbol,pr=Fn&&Fn[vt],mi=a.TypeError,ci=a.QObject,hr=ie.f,Br=fe.f,Ur=se.f,Hn=Ce.f,er=u([].push),_r=Ve("symbols"),ei=Ve("op-symbols"),bi=Ve("wks"),fi=!ci||!ci[vt]||!ci[vt].findChild,no=p&&T(function(){return 7!=ue(Br({},"a",{get:function(){return Br(this,"a",{value:7}).a}})).a})?function(Gi,ui,vr){var Ji=hr(Gt,ui);Ji&&delete Gt[ui],Br(Gi,ui,vr),Ji&&Gi!==Gt&&Br(Gt,ui,Ji)}:Br,xo=function(Gi,ui){var vr=_r[Gi]=ue(pr);return xt(vr,{type:rn,tag:Gi,description:ui}),p||(vr.description=ui),vr},Er=function(ui,vr,Ji){ui===Gt&&Er(ei,vr,Ji),R(ui);var mn=W(vr);return R(Ji),M(_r,mn)?(Ji.enumerable?(M(ui,dn)&&ui[dn][mn]&&(ui[dn][mn]=!1),Ji=ue(Ji,{enumerable:q(0,!1)})):(M(ui,dn)||Br(ui,dn,q(1,{})),ui[dn][mn]=!0),no(ui,mn,Ji)):Br(ui,mn,Ji)},an=function(ui,vr){R(ui);var Ji=U(vr),mn=re(Ji).concat(ri(Ji));return Yt(mn,function(Rn){(!p||f(Zn,Ji,Rn))&&Er(ui,Rn,Ji[Rn])}),ui},Zn=function(ui){var vr=W(ui),Ji=f(Hn,this,vr);return!(this===Gt&&M(_r,vr)&&!M(ei,vr))&&(!(Ji||!M(this,vr)||!M(_r,vr)||M(this,dn)&&this[dn][vr])||Ji)},Xn=function(ui,vr){var Ji=U(ui),mn=W(vr);if(Ji!==Gt||!M(_r,mn)||M(ei,mn)){var Rn=hr(Ji,mn);return Rn&&M(_r,mn)&&!(M(Ji,dn)&&Ji[dn][mn])&&(Rn.enumerable=!0),Rn}},zn=function(ui){var vr=Ur(U(ui)),Ji=[];return Yt(vr,function(mn){!M(_r,mn)&&!M(He,mn)&&er(Ji,mn)}),Ji},ri=function(Gi){var ui=Gi===Gt,vr=Ur(ui?ei:U(Gi)),Ji=[];return Yt(vr,function(mn){M(_r,mn)&&(!ui||M(Gt,mn))&&er(Ji,_r[mn])}),Ji};g||(ce(pr=(Fn=function(){if(w(pr,this))throw mi("Symbol is not a constructor");var ui=arguments.length&&void 0!==arguments[0]?j(arguments[0]):void 0,vr=Pe(ui),Ji=function(mn){this===Gt&&f(Ji,ei,mn),M(this,dn)&&M(this[dn],vr)&&(this[dn][vr]=!1),no(this,vr,q(1,mn))};return p&&fi&&no(Gt,vr,{configurable:!0,set:Ji}),xo(vr,ui)})[vt],"toString",function(){return Ct(this).tag}),ce(Fn,"withoutSetter",function(Gi){return xo(Pe(Gi),Gi)}),Ce.f=Zn,fe.f=Er,_e.f=an,ie.f=Xn,H.f=se.f=zn,ae.f=ri,Oe.f=function(Gi){return xo(Ge(Gi),Gi)},p&&(Be(pr,"description",{configurable:!0,get:function(){return Ct(this).description}}),e||ce(Gt,"propertyIsEnumerable",Zn,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!g,sham:!g},{Symbol:Fn}),Yt(re(bi),function(Gi){Tt(Gi)}),r({target:rn,stat:!0,forced:!g},{useSetter:function(){fi=!0},useSimple:function(){fi=!1}}),r({target:"Object",stat:!0,forced:!g,sham:!p},{create:function(ui,vr){return void 0===vr?ue(ui):an(ue(ui),vr)},defineProperty:Er,defineProperties:an,getOwnPropertyDescriptor:Xn}),r({target:"Object",stat:!0,forced:!g},{getOwnPropertyNames:zn}),We(),Qt(Fn,rn),He[dn]=!0},1172:()=>{},12353:(v,b,i)=>{var r=i(90513),a=i(7365),f=i(80112),u=i(41433),e=i(64579),p=i(56709),g=e("string-to-symbol-registry"),T=e("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!p},{for:function(M){var w=u(M);if(f(g,w))return g[w];var R=a("Symbol")(w);return g[w]=R,T[R]=w,R}})},99579:(v,b,i)=>{i(25374)("hasInstance")},41258:(v,b,i)=>{i(25374)("isConcatSpreadable")},2383:(v,b,i)=>{i(25374)("iterator")},56728:(v,b,i)=>{i(17858),i(12353),i(27632),i(75071),i(37764)},27632:(v,b,i)=>{var r=i(90513),a=i(80112),f=i(74717),u=i(7378),e=i(64579),p=i(56709),g=e("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!p},{keyFor:function(M){if(!f(M))throw TypeError(u(M)+" is not a symbol");if(a(g,M))return g[M]}})},64776:(v,b,i)=>{i(25374)("matchAll")},44339:(v,b,i)=>{i(25374)("match")},88215:(v,b,i)=>{i(25374)("replace")},65389:(v,b,i)=>{i(25374)("search")},12733:(v,b,i)=>{i(25374)("species")},97977:(v,b,i)=>{i(25374)("split")},59792:(v,b,i)=>{var r=i(25374),a=i(56992);r("toPrimitive"),a()},60242:(v,b,i)=>{var r=i(7365),a=i(25374),f=i(85681);a("toStringTag"),f(r("Symbol"),"Symbol")},26291:(v,b,i)=>{i(25374)("unscopables")},67670:(v,b,i)=>{i(10901)},10509:(v,b,i)=>{"use strict";var r=i(90513),a=i(64902),f=i(60077).remove;r({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var g,e=a(this),p=!0,T=0,M=arguments.length;T{"use strict";var r=i(90513),a=i(64902),f=i(60077),u=f.get,e=f.has,p=f.set;r({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(T,M){var R,U,w=a(this);return e(w,T)?(R=u(w,T),"update"in M&&(R=M.update(R,T,w),p(w,T,R)),R):(U=M.insert(T,w),p(w,T,U),U)}})},54547:(v,b,i)=>{"use strict";var r=i(90513),a=i(76781),f=i(64902),u=i(21515);r({target:"Map",proto:!0,real:!0,forced:!0},{every:function(p){var g=f(this),T=a(p,arguments.length>1?arguments[1]:void 0);return!1!==u(g,function(M,w){if(!T(M,w,g))return!1},!0)}})},68996:(v,b,i)=>{"use strict";var r=i(90513),a=i(76781),f=i(64902),u=i(60077),e=i(21515),p=u.Map,g=u.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(M){var w=f(this),R=a(M,arguments.length>1?arguments[1]:void 0),U=new p;return e(w,function(W,j){R(W,j,w)&&g(U,j,W)}),U}})},60176:(v,b,i)=>{"use strict";var r=i(90513),a=i(76781),f=i(64902),u=i(21515);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(p){var g=f(this),T=a(p,arguments.length>1?arguments[1]:void 0),M=u(g,function(w,R){if(T(w,R,g))return{key:R}},!0);return M&&M.key}})},1530:(v,b,i)=>{"use strict";var r=i(90513),a=i(76781),f=i(64902),u=i(21515);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(p){var g=f(this),T=a(p,arguments.length>1?arguments[1]:void 0),M=u(g,function(w,R){if(T(w,R,g))return{value:w}},!0);return M&&M.value}})},78271:(v,b,i)=>{i(90513)({target:"Map",stat:!0,forced:!0},{from:i(83483)})},41554:(v,b,i)=>{"use strict";var r=i(90513),a=i(25401),f=i(23634),u=i(52208),e=i(61812),p=i(41605),g=i(60077).Map,T=f([].push);r({target:"Map",stat:!0,forced:!0},{groupBy:function(w,R){var W=new(u(this)?this:g);e(R);var j=e(W.has),q=e(W.get),ue=e(W.set);return p(w,function(re){var H=R(re);a(j,W,H)?T(a(q,W,H),re):a(ue,W,H,[re])}),W}})},41688:(v,b,i)=>{"use strict";var r=i(90513),a=i(29627),f=i(64902),u=i(21515);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(p){return!0===u(f(this),function(g){if(a(g,p))return!0},!0)}})},92847:(v,b,i)=>{"use strict";var r=i(90513),a=i(25401),f=i(41605),u=i(52208),e=i(61812),p=i(60077).Map;r({target:"Map",stat:!0,forced:!0},{keyBy:function(T,M){var R=new(u(this)?this:p);e(M);var U=e(R.set);return f(T,function(W){a(U,R,M(W),W)}),R}})},17316:(v,b,i)=>{"use strict";var r=i(90513),a=i(64902),f=i(21515);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var p=f(a(this),function(g,T){if(g===e)return{key:T}},!0);return p&&p.key}})},58786:(v,b,i)=>{"use strict";var r=i(90513),a=i(76781),f=i(64902),u=i(60077),e=i(21515),p=u.Map,g=u.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(M){var w=f(this),R=a(M,arguments.length>1?arguments[1]:void 0),U=new p;return e(w,function(W,j){g(U,R(W,j,w),W)}),U}})},35517:(v,b,i)=>{"use strict";var r=i(90513),a=i(76781),f=i(64902),u=i(60077),e=i(21515),p=u.Map,g=u.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(M){var w=f(this),R=a(M,arguments.length>1?arguments[1]:void 0),U=new p;return e(w,function(W,j){g(U,j,R(W,j,w))}),U}})},12783:(v,b,i)=>{"use strict";var r=i(90513),a=i(64902),f=i(41605),u=i(60077).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(p){for(var g=a(this),T=arguments.length,M=0;M{i(90513)({target:"Map",stat:!0,forced:!0},{of:i(13067)})},69773:(v,b,i)=>{"use strict";var r=i(90513),a=i(61812),f=i(64902),u=i(21515),e=TypeError;r({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(g){var T=f(this),M=arguments.length<2,w=M?void 0:arguments[1];if(a(g),u(T,function(R,U){M?(M=!1,w=R):w=g(w,R,U,T)}),M)throw e("Reduce of empty map with no initial value");return w}})},22337:(v,b,i)=>{"use strict";var r=i(90513),a=i(76781),f=i(64902),u=i(21515);r({target:"Map",proto:!0,real:!0,forced:!0},{some:function(p){var g=f(this),T=a(p,arguments.length>1?arguments[1]:void 0);return!0===u(g,function(M,w){if(T(M,w,g))return!0},!0)}})},84131:(v,b,i)=>{"use strict";i(90513)({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:i(57729)})},40199:(v,b,i)=>{"use strict";var r=i(90513),a=i(61812),f=i(64902),u=i(60077),e=TypeError,p=u.get,g=u.has,T=u.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(w,R){var U=f(this),W=arguments.length;a(R);var j=g(U,w);if(!j&&W<3)throw e("Updating absent value");var q=j?p(U,w):a(W>2?arguments[2]:void 0)(w,U);return T(U,w,R(q,w,U)),U}})},69046:(v,b,i)=>{"use strict";i(90513)({target:"Map",proto:!0,real:!0,forced:!0},{upsert:i(57729)})},61127:(v,b,i)=>{i(84798)},45975:(v,b,i)=>{i(98857)},93114:(v,b,i)=>{"use strict";var r=i(90513),a=i(54256),f=i(26975);r({target:"Promise",stat:!0,forced:!0},{try:function(u){var e=a.f(this),p=f(u);return(p.error?e.reject:e.resolve)(p.value),e.promise}})},55461:(v,b,i)=>{i(25374)("asyncDispose")},5737:(v,b,i)=>{i(25374)("dispose")},61652:(v,b,i)=>{var r=i(90513),a=i(7365),f=i(23634),u=a("Symbol"),e=u.keyFor,p=f(u.prototype.valueOf);r({target:"Symbol",stat:!0},{isRegistered:function(T){try{return void 0!==e(p(T))}catch(M){return!1}}})},90791:(v,b,i)=>{for(var r=i(90513),a=i(64579),f=i(7365),u=i(23634),e=i(74717),p=i(91840),g=f("Symbol"),T=g.isWellKnown,M=f("Object","getOwnPropertyNames"),w=u(g.prototype.valueOf),R=a("wks"),U=0,W=M(g),j=W.length;U{i(25374)("matcher")},29559:(v,b,i)=>{i(25374)("metadataKey")},71985:(v,b,i)=>{i(25374)("metadata")},90212:(v,b,i)=>{i(25374)("observable")},93770:(v,b,i)=>{i(25374)("patternMatch")},47743:(v,b,i)=>{i(25374)("replaceAll")},33089:(v,b,i)=>{i(1285);var r=i(44125),a=i(70009),f=i(35329),u=i(65162),e=i(84394),g=i(91840)("toStringTag");for(var T in r){var M=a[T],w=M&&M.prototype;w&&f(w)!==g&&u(w,g,T),e[T]=e.Array}},94784:(v,b,i)=>{var r=i(90513),a=i(70009),u=i(53814)(a.setInterval,!0);r({global:!0,bind:!0,forced:a.setInterval!==u},{setInterval:u})},36445:(v,b,i)=>{var r=i(90513),a=i(70009),u=i(53814)(a.setTimeout,!0);r({global:!0,bind:!0,forced:a.setTimeout!==u},{setTimeout:u})},69280:(v,b,i)=>{i(94784),i(36445)},73842:(v,b,i)=>{"use strict";i(1285);var r=i(90513),a=i(70009),f=i(25401),u=i(23634),e=i(49642),p=i(54933),g=i(42915),T=i(1707),M=i(84604),w=i(85681),R=i(14554),U=i(91093),W=i(54849),j=i(52208),q=i(80112),ue=i(76781),re=i(35329),H=i(64562),se=i(77293),ae=i(41433),ie=i(83272),fe=i(51361),_e=i(88055),Ce=i(34014),ce=i(15086),Be=i(91840),Ve=i(84865),Xe=Be("iterator"),He="URLSearchParams",Pe=He+"Iterator",Ge=U.set,Oe=U.getterFor(He),Tt=U.getterFor(Pe),We=Object.getOwnPropertyDescriptor,Qt=function(mn){if(!e)return a[mn];var Rn=We(a,mn);return Rn&&Rn.value},Nt=Qt("fetch"),Yt=Qt("Request"),dn=Qt("Headers"),rn=Yt&&Yt.prototype,vt=dn&&dn.prototype,xt=a.RegExp,Ct=a.TypeError,Gt=a.decodeURIComponent,Fn=a.encodeURIComponent,pr=u("".charAt),mi=u([].join),ci=u([].push),hr=u("".replace),Br=u([].shift),Ur=u([].splice),Hn=u("".split),er=u("".slice),_r=/\+/g,ei=Array(4),bi=function(mn){return ei[mn-1]||(ei[mn-1]=xt("((?:%[\\da-f]{2}){"+mn+"})","gi"))},fi=function(mn){try{return Gt(mn)}catch(Rn){return mn}},no=function(mn){var Rn=hr(mn,_r," "),Wn=4;try{return Gt(Rn)}catch(et){for(;Wn;)Rn=hr(Rn,bi(Wn--),fi);return Rn}},xo=/[!'()~]|%20/g,Er={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},an=function(mn){return Er[mn]},vn=function(mn){return hr(Fn(mn),xo,an)},Zn=R(function(Rn,Wn){Ge(this,{type:Pe,iterator:_e(Oe(Rn).entries),kind:Wn})},"Iterator",function(){var Rn=Tt(this),Wn=Rn.kind,et=Rn.iterator.next(),Le=et.value;return et.done||(et.value="keys"===Wn?Le.key:"values"===Wn?Le.value:[Le.key,Le.value]),et},!0),Xn=function(mn){this.entries=[],this.url=null,void 0!==mn&&(se(mn)?this.parseObject(mn):this.parseQuery("string"==typeof mn?"?"===pr(mn,0)?er(mn,1):mn:ae(mn)))};Xn.prototype={type:He,bindURL:function(mn){this.url=mn,this.update()},parseObject:function(mn){var Wn,et,Le,Re,Se,dt,st,Rn=Ce(mn);if(Rn)for(et=(Wn=_e(mn,Rn)).next;!(Le=f(et,Wn)).done;){if(Re=_e(H(Le.value)),(dt=f(Se=Re.next,Re)).done||(st=f(Se,Re)).done||!f(Se,Re).done)throw Ct("Expected sequence with length 2");ci(this.entries,{key:ae(dt.value),value:ae(st.value)})}else for(var nn in mn)q(mn,nn)&&ci(this.entries,{key:nn,value:ae(mn[nn])})},parseQuery:function(mn){if(mn)for(var et,Le,Rn=Hn(mn,"&"),Wn=0;Wn0?arguments[0]:void 0,Wn=Ge(this,new Xn(Rn));e||(this.length=Wn.entries.length)},ri=zn.prototype;if(M(ri,{append:function(Rn,Wn){ce(arguments.length,2);var et=Oe(this);ci(et.entries,{key:ae(Rn),value:ae(Wn)}),e||this.length++,et.updateURL()},delete:function(mn){ce(arguments.length,1);for(var Rn=Oe(this),Wn=Rn.entries,et=ae(mn),Le=0;Leet.key?1:-1}),Rn.updateURL()},forEach:function(Rn){for(var Re,Wn=Oe(this).entries,et=ue(Rn,arguments.length>1?arguments[1]:void 0),Le=0;Le1?vr(arguments[1]):{})}}),j(Yt)){var Ji=function(Rn){return W(this,rn),new Yt(Rn,arguments.length>1?vr(arguments[1]):{})};rn.constructor=Ji,Ji.prototype=rn,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ji})}}v.exports={URLSearchParams:zn,getState:Oe}},26953:(v,b,i)=>{i(73842)},86023:()=>{},37256:(v,b,i)=>{var r=i(90513),a=i(7365),f=i(55756),u=i(15086),e=i(41433),p=i(54933),g=a("URL");r({target:"URL",stat:!0,forced:!(p&&f(function(){g.canParse()}))},{canParse:function(w){var R=u(arguments.length,1),U=e(w),W=R<2||void 0===arguments[1]?void 0:e(arguments[1]);try{return!!new g(U,W)}catch(j){return!1}}})},80504:(v,b,i)=>{"use strict";i(3934);var xo,r=i(90513),a=i(49642),f=i(54933),u=i(70009),e=i(76781),p=i(23634),g=i(42915),T=i(1707),M=i(54849),w=i(80112),R=i(75791),U=i(51923),W=i(8681),j=i(61557).codeAt,q=i(26662),ue=i(41433),re=i(85681),H=i(15086),se=i(73842),ae=i(91093),ie=ae.set,fe=ae.getterFor("URL"),_e=se.URLSearchParams,Ce=se.getState,ce=u.URL,Be=u.TypeError,Ve=u.parseInt,Xe=Math.floor,He=Math.pow,Pe=p("".charAt),Ge=p(/./.exec),Oe=p([].join),Tt=p(1..toString),We=p([].pop),Qt=p([].push),Nt=p("".replace),Yt=p([].shift),dn=p("".split),rn=p("".slice),vt=p("".toLowerCase),xt=p([].unshift),Gt="Invalid scheme",Fn="Invalid host",pr="Invalid port",mi=/[a-z]/i,ci=/[\d+-.a-z]/i,hr=/\d/,Br=/^0x/i,Ur=/^[0-7]+$/,Hn=/^\d+$/,er=/^[\da-f]+$/i,_r=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ei=/[\0\t\n\r #/:<>?@[\\\]^|]/,bi=/^[\u0000-\u0020]+/,fi=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,no=/[\t\n\r]/g,Zn=function(ir){var si,kn,nr,jr;if("number"==typeof ir){for(si=[],kn=0;kn<4;kn++)xt(si,ir%256),ir=Xe(ir/256);return Oe(si,".")}if("object"==typeof ir){for(si="",nr=function(ir){for(var si=null,kn=1,nr=null,jr=0,ao=0;ao<8;ao++)0!==ir[ao]?(jr>kn&&(si=nr,kn=jr),nr=null,jr=0):(null===nr&&(nr=ao),++jr);return jr>kn&&(si=nr,kn=jr),si}(ir),kn=0;kn<8;kn++)jr&&0===ir[kn]||(jr&&(jr=!1),nr===kn?(si+=kn?":":"::",jr=!0):(si+=Tt(ir[kn],16),kn<7&&(si+=":")));return"["+si+"]"}return ir},Xn={},zn=R({},Xn,{" ":1,'"':1,"<":1,">":1,"`":1}),ri=R({},zn,{"#":1,"?":1,"{":1,"}":1}),Gi=R({},ri,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ui=function(ir,si){var kn=j(ir,0);return kn>32&&kn<127&&!w(si,ir)?ir:encodeURIComponent(ir)},vr={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ji=function(ir,si){var kn;return 2==ir.length&&Ge(mi,Pe(ir,0))&&(":"==(kn=Pe(ir,1))||!si&&"|"==kn)},mn=function(ir){var si;return ir.length>1&&Ji(rn(ir,0,2))&&(2==ir.length||"/"===(si=Pe(ir,2))||"\\"===si||"?"===si||"#"===si)},Rn=function(ir){return"."===ir||"%2e"===vt(ir)},Wn=function(ir){return".."===(ir=vt(ir))||"%2e."===ir||".%2e"===ir||"%2e%2e"===ir},et={},Le={},Re={},Se={},dt={},st={},nn={},Fe={},Lr={},ti={},Ut={},Dn={},Et={},$t={},_t={},yt={},Vt={},yn={},Cr={},xi={},yi={},Uo=function(ir,si,kn){var jr,ao,$i,nr=ue(ir);if(si){if(ao=this.parse(nr))throw Be(ao);this.searchParams=null}else{if(void 0!==kn&&(jr=new Uo(kn,!0)),ao=this.parse(nr,null,jr))throw Be(ao);($i=Ce(new _e)).bindURL(this),this.searchParams=$i}};Uo.prototype={type:"URL",parse:function(ir,si,kn){var ua,or,Mr,Or,nr=this,jr=si||et,ao=0,$i="",Eo=!1,mo=!1,Go=!1;for(ir=ue(ir),si||(nr.scheme="",nr.username="",nr.password="",nr.host=null,nr.port=null,nr.path=[],nr.query=null,nr.fragment=null,nr.cannotBeABaseURL=!1,ir=Nt(ir,bi,""),ir=Nt(ir,fi,"$1")),ir=Nt(ir,no,""),ua=U(ir);ao<=ua.length;){switch(or=ua[ao],jr){case et:if(!or||!Ge(mi,or)){if(si)return Gt;jr=Re;continue}$i+=vt(or),jr=Le;break;case Le:if(or&&(Ge(ci,or)||"+"==or||"-"==or||"."==or))$i+=vt(or);else{if(":"!=or){if(si)return Gt;$i="",jr=Re,ao=0;continue}if(si&&(nr.isSpecial()!=w(vr,$i)||"file"==$i&&(nr.includesCredentials()||null!==nr.port)||"file"==nr.scheme&&!nr.host))return;if(nr.scheme=$i,si)return void(nr.isSpecial()&&vr[nr.scheme]==nr.port&&(nr.port=null));$i="","file"==nr.scheme?jr=$t:nr.isSpecial()&&kn&&kn.scheme==nr.scheme?jr=Se:nr.isSpecial()?jr=Fe:"/"==ua[ao+1]?(jr=dt,ao++):(nr.cannotBeABaseURL=!0,Qt(nr.path,""),jr=Cr)}break;case Re:if(!kn||kn.cannotBeABaseURL&&"#"!=or)return Gt;if(kn.cannotBeABaseURL&&"#"==or){nr.scheme=kn.scheme,nr.path=W(kn.path),nr.query=kn.query,nr.fragment="",nr.cannotBeABaseURL=!0,jr=yi;break}jr="file"==kn.scheme?$t:st;continue;case Se:if("/"!=or||"/"!=ua[ao+1]){jr=st;continue}jr=Lr,ao++;break;case dt:if("/"==or){jr=ti;break}jr=yn;continue;case st:if(nr.scheme=kn.scheme,or==xo)nr.username=kn.username,nr.password=kn.password,nr.host=kn.host,nr.port=kn.port,nr.path=W(kn.path),nr.query=kn.query;else if("/"==or||"\\"==or&&nr.isSpecial())jr=nn;else if("?"==or)nr.username=kn.username,nr.password=kn.password,nr.host=kn.host,nr.port=kn.port,nr.path=W(kn.path),nr.query="",jr=xi;else{if("#"!=or){nr.username=kn.username,nr.password=kn.password,nr.host=kn.host,nr.port=kn.port,nr.path=W(kn.path),nr.path.length--,jr=yn;continue}nr.username=kn.username,nr.password=kn.password,nr.host=kn.host,nr.port=kn.port,nr.path=W(kn.path),nr.query=kn.query,nr.fragment="",jr=yi}break;case nn:if(!nr.isSpecial()||"/"!=or&&"\\"!=or){if("/"!=or){nr.username=kn.username,nr.password=kn.password,nr.host=kn.host,nr.port=kn.port,jr=yn;continue}jr=ti}else jr=Lr;break;case Fe:if(jr=Lr,"/"!=or||"/"!=Pe($i,ao+1))continue;ao++;break;case Lr:if("/"!=or&&"\\"!=or){jr=ti;continue}break;case ti:if("@"==or){Eo&&($i="%40"+$i),Eo=!0,Mr=U($i);for(var cr=0;cr65535)return pr;nr.port=nr.isSpecial()&&$n===vr[nr.scheme]?null:$n,$i=""}if(si)return;jr=Vt;continue}return pr}$i+=or;break;case $t:if(nr.scheme="file","/"==or||"\\"==or)jr=_t;else{if(!kn||"file"!=kn.scheme){jr=yn;continue}if(or==xo)nr.host=kn.host,nr.path=W(kn.path),nr.query=kn.query;else if("?"==or)nr.host=kn.host,nr.path=W(kn.path),nr.query="",jr=xi;else{if("#"!=or){mn(Oe(W(ua,ao),""))||(nr.host=kn.host,nr.path=W(kn.path),nr.shortenPath()),jr=yn;continue}nr.host=kn.host,nr.path=W(kn.path),nr.query=kn.query,nr.fragment="",jr=yi}}break;case _t:if("/"==or||"\\"==or){jr=yt;break}kn&&"file"==kn.scheme&&!mn(Oe(W(ua,ao),""))&&(Ji(kn.path[0],!0)?Qt(nr.path,kn.path[0]):nr.host=kn.host),jr=yn;continue;case yt:if(or==xo||"/"==or||"\\"==or||"?"==or||"#"==or){if(!si&&Ji($i))jr=yn;else if(""==$i){if(nr.host="",si)return;jr=Vt}else{if(Or=nr.parseHost($i))return Or;if("localhost"==nr.host&&(nr.host=""),si)return;$i="",jr=Vt}continue}$i+=or;break;case Vt:if(nr.isSpecial()){if(jr=yn,"/"!=or&&"\\"!=or)continue}else if(si||"?"!=or)if(si||"#"!=or){if(or!=xo&&(jr=yn,"/"!=or))continue}else nr.fragment="",jr=yi;else nr.query="",jr=xi;break;case yn:if(or==xo||"/"==or||"\\"==or&&nr.isSpecial()||!si&&("?"==or||"#"==or)){if(Wn($i)?(nr.shortenPath(),"/"!=or&&!("\\"==or&&nr.isSpecial())&&Qt(nr.path,"")):Rn($i)?"/"!=or&&!("\\"==or&&nr.isSpecial())&&Qt(nr.path,""):("file"==nr.scheme&&!nr.path.length&&Ji($i)&&(nr.host&&(nr.host=""),$i=Pe($i,0)+":"),Qt(nr.path,$i)),$i="","file"==nr.scheme&&(or==xo||"?"==or||"#"==or))for(;nr.path.length>1&&""===nr.path[0];)Yt(nr.path);"?"==or?(nr.query="",jr=xi):"#"==or&&(nr.fragment="",jr=yi)}else $i+=ui(or,ri);break;case Cr:"?"==or?(nr.query="",jr=xi):"#"==or?(nr.fragment="",jr=yi):or!=xo&&(nr.path[0]+=ui(or,Xn));break;case xi:si||"#"!=or?or!=xo&&("'"==or&&nr.isSpecial()?nr.query+="%27":nr.query+="#"==or?"%23":ui(or,Xn)):(nr.fragment="",jr=yi);break;case yi:or!=xo&&(nr.fragment+=ui(or,zn))}ao++}},parseHost:function(ir){var si,kn,nr;if("["==Pe(ir,0)){if("]"!=Pe(ir,ir.length-1)||(si=function(ir){var ao,$i,Eo,mo,Go,ua,or,si=[0,0,0,0,0,0,0,0],kn=0,nr=null,jr=0,Mr=function(){return Pe(ir,jr)};if(":"==Mr()){if(":"!=Pe(ir,1))return;jr+=2,nr=++kn}for(;Mr();){if(8==kn)return;if(":"!=Mr()){for(ao=$i=0;$i<4&&Ge(er,Mr());)ao=16*ao+Ve(Mr(),16),jr++,$i++;if("."==Mr()){if(0==$i||(jr-=$i,kn>6))return;for(Eo=0;Mr();){if(mo=null,Eo>0){if(!("."==Mr()&&Eo<4))return;jr++}if(!Ge(hr,Mr()))return;for(;Ge(hr,Mr());){if(Go=Ve(Mr(),10),null===mo)mo=Go;else{if(0==mo)return;mo=10*mo+Go}if(mo>255)return;jr++}si[kn]=256*si[kn]+mo,(2==++Eo||4==Eo)&&kn++}if(4!=Eo)return;break}if(":"==Mr()){if(jr++,!Mr())return}else if(Mr())return;si[kn++]=ao}else{if(null!==nr)return;jr++,nr=++kn}}if(null!==nr)for(ua=kn-nr,kn=7;0!=kn&&ua>0;)or=si[kn],si[kn--]=si[nr+ua-1],si[nr+--ua]=or;else if(8!=kn)return;return si}(rn(ir,1,-1)),!si))return Fn;this.host=si}else if(this.isSpecial()){if(ir=q(ir),Ge(_r,ir)||(si=function(ir){var kn,nr,jr,ao,$i,Eo,mo,si=dn(ir,".");if(si.length&&""==si[si.length-1]&&si.length--,(kn=si.length)>4)return ir;for(nr=[],jr=0;jr1&&"0"==Pe(ao,0)&&($i=Ge(Br,ao)?16:8,ao=rn(ao,8==$i?1:2)),""===ao)Eo=0;else{if(!Ge(10==$i?Hn:8==$i?Ur:er,ao))return ir;Eo=Ve(ao,$i)}Qt(nr,Eo)}for(jr=0;jr=He(256,5-kn))return null}else if(Eo>255)return null;for(mo=We(nr),jr=0;jr1?arguments[1]:void 0,jr=ie(kn,new Uo(si,!1,nr));a||(kn.href=jr.serialize(),kn.origin=jr.getOrigin(),kn.protocol=jr.getProtocol(),kn.username=jr.getUsername(),kn.password=jr.getPassword(),kn.host=jr.getHost(),kn.hostname=jr.getHostname(),kn.port=jr.getPort(),kn.pathname=jr.getPathname(),kn.search=jr.getSearch(),kn.searchParams=jr.getSearchParams(),kn.hash=jr.getHash())},lo=Qo.prototype,Ri=function(ir,si){return{get:function(){return fe(this)[ir]()},set:si&&function(kn){return fe(this)[si](kn)},configurable:!0,enumerable:!0}};if(a&&(T(lo,"href",Ri("serialize","setHref")),T(lo,"origin",Ri("getOrigin")),T(lo,"protocol",Ri("getProtocol","setProtocol")),T(lo,"username",Ri("getUsername","setUsername")),T(lo,"password",Ri("getPassword","setPassword")),T(lo,"host",Ri("getHost","setHost")),T(lo,"hostname",Ri("getHostname","setHostname")),T(lo,"port",Ri("getPort","setPort")),T(lo,"pathname",Ri("getPathname","setPathname")),T(lo,"search",Ri("getSearch","setSearch")),T(lo,"searchParams",Ri("getSearchParams")),T(lo,"hash",Ri("getHash","setHash"))),g(lo,"toJSON",function(){return fe(this).serialize()},{enumerable:!0}),g(lo,"toString",function(){return fe(this).serialize()},{enumerable:!0}),ce){var ko=ce.createObjectURL,Xo=ce.revokeObjectURL;ko&&g(Qo,"createObjectURL",e(ko,ce)),Xo&&g(Qo,"revokeObjectURL",e(Xo,ce))}re(Qo,"URL"),r({global:!0,constructor:!0,forced:!f,sham:!a},{URL:Qo})},95981:(v,b,i)=>{i(80504)},71324:()=>{},75242:(v,b,i)=>{var r=i(74771);v.exports=r},10323:(v,b,i)=>{var r=i(8412);v.exports=r},99940:(v,b,i)=>{var r=i(399);v.exports=r},89919:(v,b,i)=>{var r=i(98812);v.exports=r},14869:(v,b,i)=>{var r=i(33195);v.exports=r},4475:(v,b,i)=>{var r=i(46332);v.exports=r},38762:(v,b,i)=>{var r=i(42618);v.exports=r},8748:(v,b,i)=>{var r=i(63791);i(33089),v.exports=r},71873:(v,b,i)=>{var r=i(69029);v.exports=r},61599:(v,b,i)=>{var r=i(28924);v.exports=r},34097:(v,b,i)=>{i(33089);var r=i(35329),a=i(80112),f=i(23336),u=i(99940),e=Array.prototype,p={DOMTokenList:!0,NodeList:!0};v.exports=function(g){var T=g.entries;return g===e||f(e,g)&&T===e.entries||a(p,r(g))?u:T}},15149:(v,b,i)=>{var r=i(98709);v.exports=r},83361:(v,b,i)=>{var r=i(65991);v.exports=r},19095:(v,b,i)=>{var r=i(64158);v.exports=r},71420:(v,b,i)=>{var r=i(91799);v.exports=r},13178:(v,b,i)=>{var r=i(26155);v.exports=r},52049:(v,b,i)=>{i(33089);var r=i(35329),a=i(80112),f=i(23336),u=i(89919),e=Array.prototype,p={DOMTokenList:!0,NodeList:!0};v.exports=function(g){var T=g.forEach;return g===e||f(e,g)&&T===e.forEach||a(p,r(g))?u:T}},83655:(v,b,i)=>{var r=i(33758);v.exports=r},87054:(v,b,i)=>{var r=i(7592);v.exports=r},51946:(v,b,i)=>{i(33089);var r=i(35329),a=i(80112),f=i(23336),u=i(14869),e=Array.prototype,p={DOMTokenList:!0,NodeList:!0};v.exports=function(g){var T=g.keys;return g===e||f(e,g)&&T===e.keys||a(p,r(g))?u:T}},40764:(v,b,i)=>{var r=i(17480);v.exports=r},81214:(v,b,i)=>{var r=i(20681);v.exports=r},50881:(v,b,i)=>{var r=i(90949);v.exports=r},38813:(v,b,i)=>{var r=i(99316);v.exports=r},45284:(v,b,i)=>{var r=i(62212);v.exports=r},70157:(v,b,i)=>{var r=i(49073);v.exports=r},3502:(v,b,i)=>{var r=i(24146);v.exports=r},81610:(v,b,i)=>{var r=i(40104);v.exports=r},19543:(v,b,i)=>{var r=i(3555);v.exports=r},74046:(v,b,i)=>{var r=i(68333);v.exports=r},13731:(v,b,i)=>{var r=i(65786);v.exports=r},80129:(v,b,i)=>{i(33089);var r=i(35329),a=i(80112),f=i(23336),u=i(4475),e=Array.prototype,p={DOMTokenList:!0,NodeList:!0};v.exports=function(g){var T=g.values;return g===e||f(e,g)&&T===e.values||a(p,r(g))?u:T}},43720:(v,b,i)=>{var r=i(66306);v.exports=r},640:(v,b,i)=>{var r=i(31845);i(33089),v.exports=r},50320:(v,b,i)=>{var r=i(44168);v.exports=r},93006:(v,b,i)=>{var r=i(25852);v.exports=r},36226:(v,b,i)=>{var r=i(24457);v.exports=r},21968:(v,b,i)=>{var r=i(99671);v.exports=r},87259:(v,b,i)=>{var r=i(38007);v.exports=r},62021:(v,b,i)=>{var r=i(57432);v.exports=r},57682:(v,b,i)=>{var r=i(36541);v.exports=r},94222:(v,b,i)=>{var r=i(17303);v.exports=r},1162:(v,b,i)=>{var r=i(62149);v.exports=r},82805:(v,b,i)=>{var r=i(86537);v.exports=r},70809:(v,b,i)=>{var r=i(79553);v.exports=r},26498:(v,b,i)=>{var r=i(80092);i(33089),v.exports=r},44850:(v,b,i)=>{var r=i(472);v.exports=r},9634:(v,b,i)=>{var r=i(4678);v.exports=r},12118:(v,b,i)=>{i(69280);var r=i(13544);v.exports=r.setTimeout},96551:(v,b,i)=>{var r=i(61697);i(33089),v.exports=r},98908:(v,b,i)=>{var r=i(42497);i(33089),v.exports=r},55434:(v,b,i)=>{var r=i(50681);v.exports=r},70906:(v,b,i)=>{var r=i(75081);v.exports=r},75081:(v,b,i)=>{i(95981),i(37256),i(71324),i(26953),i(86023);var r=i(13544);v.exports=r.URL},71577:function(){var v;v="undefined"!=typeof self?self:this,function(i){var r_searchParams="URLSearchParams"in v,r_iterable="Symbol"in v&&"iterator"in Symbol,r_blob="FileReader"in v&&"Blob"in v&&function(){try{return new Blob,!0}catch(Ce){return!1}}(),r_formData="FormData"in v,r_arrayBuffer="ArrayBuffer"in v;if(r_arrayBuffer)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(Ce){return Ce&&f.indexOf(Object.prototype.toString.call(Ce))>-1};function e(Ce){if("string"!=typeof Ce&&(Ce=String(Ce)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Ce))throw new TypeError("Invalid character in header field name");return Ce.toLowerCase()}function p(Ce){return"string"!=typeof Ce&&(Ce=String(Ce)),Ce}function g(Ce){var ce={next:function(){var Be=Ce.shift();return{done:void 0===Be,value:Be}}};return r_iterable&&(ce[Symbol.iterator]=function(){return ce}),ce}function T(Ce){this.map={},Ce instanceof T?Ce.forEach(function(ce,Be){this.append(Be,ce)},this):Array.isArray(Ce)?Ce.forEach(function(ce){this.append(ce[0],ce[1])},this):Ce&&Object.getOwnPropertyNames(Ce).forEach(function(ce){this.append(ce,Ce[ce])},this)}function M(Ce){if(Ce.bodyUsed)return Promise.reject(new TypeError("Already read"));Ce.bodyUsed=!0}function w(Ce){return new Promise(function(ce,Be){Ce.onload=function(){ce(Ce.result)},Ce.onerror=function(){Be(Ce.error)}})}function R(Ce){var ce=new FileReader,Be=w(ce);return ce.readAsArrayBuffer(Ce),Be}function j(Ce){if(Ce.slice)return Ce.slice(0);var ce=new Uint8Array(Ce.byteLength);return ce.set(new Uint8Array(Ce)),ce.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(Ce){this._bodyInit=Ce,Ce?"string"==typeof Ce?this._bodyText=Ce:r_blob&&Blob.prototype.isPrototypeOf(Ce)?this._bodyBlob=Ce:r_formData&&FormData.prototype.isPrototypeOf(Ce)?this._bodyFormData=Ce:r_searchParams&&URLSearchParams.prototype.isPrototypeOf(Ce)?this._bodyText=Ce.toString():r_arrayBuffer&&r_blob&&function a(Ce){return Ce&&DataView.prototype.isPrototypeOf(Ce)}(Ce)?(this._bodyArrayBuffer=j(Ce.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Ce)||u(Ce))?this._bodyArrayBuffer=j(Ce):this._bodyText=Ce=Object.prototype.toString.call(Ce):this._bodyText="",this.headers.get("content-type")||("string"==typeof Ce?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r_searchParams&&URLSearchParams.prototype.isPrototypeOf(Ce)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r_blob&&(this.blob=function(){var Ce=M(this);if(Ce)return Ce;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var Ce=M(this);if(Ce)return Ce;if(this._bodyBlob)return function U(Ce){var ce=new FileReader,Be=w(ce);return ce.readAsText(Ce),Be}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function W(Ce){for(var ce=new Uint8Array(Ce),Be=new Array(ce.length),Ve=0;Ve-1?ce:Ce}(ce.method||this.method||"GET"),this.mode=ce.mode||this.mode||null,this.signal=ce.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&Be)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Be)}function se(Ce){var ce=new FormData;return Ce.trim().split("&").forEach(function(Be){if(Be){var Ve=Be.split("="),Xe=Ve.shift().replace(/\+/g," "),He=Ve.join("=").replace(/\+/g," ");ce.append(decodeURIComponent(Xe),decodeURIComponent(He))}}),ce}function ae(Ce){var ce=new T;return Ce.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(Ve){var Xe=Ve.split(":"),He=Xe.shift().trim();if(He){var Pe=Xe.join(":").trim();ce.append(He,Pe)}}),ce}function ie(Ce,ce){ce||(ce={}),this.type="default",this.status=void 0===ce.status?200:ce.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ce?ce.statusText:"OK",this.headers=new T(ce.headers),this.url=ce.url||"",this._initBody(Ce)}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})},q.call(H.prototype),q.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new T(this.headers),url:this.url})},ie.error=function(){var Ce=new ie(null,{status:0,statusText:""});return Ce.type="error",Ce};var fe=[301,302,303,307,308];ie.redirect=function(Ce,ce){if(-1===fe.indexOf(ce))throw new RangeError("Invalid status code");return new ie(null,{status:ce,headers:{location:Ce}})},i.DOMException=v.DOMException;try{new i.DOMException}catch(Ce){i.DOMException=function(ce,Be){this.message=ce,this.name=Be;var Ve=Error(ce);this.stack=Ve.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function _e(Ce,ce){return new Promise(function(Be,Ve){var Xe=new H(Ce,ce);if(Xe.signal&&Xe.signal.aborted)return Ve(new i.DOMException("Aborted","AbortError"));var He=new XMLHttpRequest;function Pe(){He.abort()}He.onload=function(){var Ge={status:He.status,statusText:He.statusText,headers:ae(He.getAllResponseHeaders()||"")};Ge.url="responseURL"in He?He.responseURL:Ge.headers.get("X-Request-URL"),Be(new ie("response"in He?He.response:He.responseText,Ge))},He.onerror=function(){Ve(new TypeError("Network request failed"))},He.ontimeout=function(){Ve(new TypeError("Network request failed"))},He.onabort=function(){Ve(new i.DOMException("Aborted","AbortError"))},He.open(Xe.method,Xe.url,!0),"include"===Xe.credentials?He.withCredentials=!0:"omit"===Xe.credentials&&(He.withCredentials=!1),"responseType"in He&&r_blob&&(He.responseType="blob"),Xe.headers.forEach(function(Ge,Oe){He.setRequestHeader(Oe,Ge)}),Xe.signal&&(Xe.signal.addEventListener("abort",Pe),He.onreadystatechange=function(){4===He.readyState&&Xe.signal.removeEventListener("abort",Pe)}),He.send(void 0===Xe._bodyInit?null:Xe._bodyInit)})}_e.polyfill=!0,v.fetch||(v.fetch=_e,v.Headers=T,v.Request=H,v.Response=ie),i.Headers=T,i.Request=H,i.Response=ie,i.fetch=_e,Object.defineProperty(i,"__esModule",{value:!0})}({})},52243:function(v){var b;b="undefined"!=typeof global?global:this,v.exports=function(b){if(b.CSS&&b.CSS.escape)return b.CSS.escape;var i=function(r){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var e,a=String(r),f=a.length,u=-1,p="",g=a.charCodeAt(0);++u=1&&e<=31||127==e||0==u&&e>=48&&e<=57||1==u&&e>=48&&e<=57&&45==g?"\\"+e.toString(16)+" ":0==u&&1==f&&45==e||!(e>=128||45==e||95==e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122)?"\\"+a.charAt(u):a.charAt(u):p+="\ufffd";return p};return b.CSS||(b.CSS={}),b.CSS.escape=i,i}(b)},89225:v=>{"use strict";var b=function(re){return function i(ue){return!!ue&&"object"==typeof ue}(re)&&!function r(ue){var re=Object.prototype.toString.call(ue);return"[object RegExp]"===re||"[object Date]"===re||function u(ue){return ue.$$typeof===f}(ue)}(re)},f="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function p(ue,re){return!1!==re.clone&&re.isMergeableObject(ue)?j(function e(ue){return Array.isArray(ue)?[]:{}}(ue),ue,re):ue}function g(ue,re,H){return ue.concat(re).map(function(se){return p(se,H)})}function w(ue){return Object.keys(ue).concat(function M(ue){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(ue).filter(function(re){return Object.propertyIsEnumerable.call(ue,re)}):[]}(ue))}function R(ue,re){try{return re in ue}catch(H){return!1}}function j(ue,re,H){(H=H||{}).arrayMerge=H.arrayMerge||g,H.isMergeableObject=H.isMergeableObject||b,H.cloneUnlessOtherwiseSpecified=p;var se=Array.isArray(re);return se===Array.isArray(ue)?se?H.arrayMerge(ue,re,H):function W(ue,re,H){var se={};return H.isMergeableObject(ue)&&w(ue).forEach(function(ae){se[ae]=p(ue[ae],H)}),w(re).forEach(function(ae){(function U(ue,re){return R(ue,re)&&!(Object.hasOwnProperty.call(ue,re)&&Object.propertyIsEnumerable.call(ue,re))})(ue,ae)||(se[ae]=R(ue,ae)&&H.isMergeableObject(re[ae])?function T(ue,re){if(!re.customMerge)return j;var H=re.customMerge(ue);return"function"==typeof H?H:j}(ae,H)(ue[ae],re[ae],H):p(re[ae],H))}),se}(ue,re,H):p(re,H)}j.all=function(re,H){if(!Array.isArray(re))throw new Error("first argument should be an array");return re.reduce(function(se,ae){return j(se,ae,H)},{})},v.exports=j},97057:(v,b,i)=>{"use strict";i.d(b,{qY:()=>U});var a=function se(ae,ie,fe){this.name=ae,this.version=ie,this.os=fe,this.type="browser"},f=function se(ae){this.version=ae,this.type="node",this.name="node",this.os=process.platform},u=function se(ae,ie,fe,_e){this.name=ae,this.version=ie,this.os=fe,this.bot=_e,this.type="bot-device"},e=function se(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},p=function se(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},T=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,w=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],R=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function U(se){return se?q(se):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new p:"undefined"!=typeof navigator?q(navigator.userAgent):function re(){return"undefined"!=typeof process&&process.version?new f(process.version.slice(1)):null}()}function q(se){var ae=function W(se){return""!==se&&w.reduce(function(ae,ie){var fe=ie[0];if(ae)return ae;var Ce=ie[1].exec(se);return!!Ce&&[fe,Ce]},!1)}(se);if(!ae)return null;var ie=ae[0],fe=ae[1];if("searchbot"===ie)return new e;var _e=fe[1]&&fe[1].split(/[._]/).slice(0,3);_e?_e.length<3&&(_e=function(){for(var se=0,ae=0,ie=arguments.length;ae1?er-1:0),ei=1;ei/gm),rn=p(/^data-[\-\w.\u00B7-\uFFFF]/),vt=p(/^aria-[\-\w]+$/),xt=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ct=p(/^(?:\w+script|data):/i),Gt=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ur){return typeof Ur}:function(Ur){return Ur&&"function"==typeof Symbol&&Ur.constructor===Symbol&&Ur!==Symbol.prototype?"symbol":typeof Ur};function pr(Ur){if(Array.isArray(Ur)){for(var Hn=0,er=Array(Ur.length);Hn0&&void 0!==arguments[0]?arguments[0]:mi(),Hn=function(kr){return hr(kr)};if(Hn.version="2.3.3",Hn.removed=[],!Ur||!Ur.document||9!==Ur.document.nodeType)return Hn.isSupported=!1,Hn;var er=Ur.document,_r=Ur.document,ei=Ur.DocumentFragment,bi=Ur.HTMLTemplateElement,fi=Ur.Node,no=Ur.Element,xo=Ur.NodeFilter,Er=Ur.NamedNodeMap,an=void 0===Er?Ur.NamedNodeMap||Ur.MozNamedAttrMap:Er,vn=Ur.Text,Zn=Ur.Comment,Xn=Ur.DOMParser,zn=Ur.trustedTypes,ri=no.prototype,Gi=ce(ri,"cloneNode"),ui=ce(ri,"nextSibling"),vr=ce(ri,"childNodes"),Ji=ce(ri,"parentNode");if("function"==typeof bi){var mn=_r.createElement("template");mn.content&&mn.content.ownerDocument&&(_r=mn.content.ownerDocument)}var Rn=ci(zn,er),Wn=Rn&&jr?Rn.createHTML(""):"",Le=_r.implementation,Re=_r.createNodeIterator,Se=_r.createDocumentFragment,dt=_r.getElementsByTagName,st=er.importNode,nn={};try{nn=Ce(_r).documentMode?_r.documentMode:{}}catch(Oo){}var Fe={};Hn.isSupported="function"==typeof Ji&&Le&&void 0!==Le.createHTMLDocument&&9!==nn;var Lr=Yt,ti=dn,Ut=rn,Dn=vt,Et=Ct,$t=Gt,_t=xt,yt=null,Vt=_e({},[].concat(pr(Be),pr(Ve),pr(Xe),pr(Pe),pr(Oe))),yn=null,Cr=_e({},[].concat(pr(Tt),pr(We),pr(Qt),pr(Nt))),xi=null,yi=null,Uo=!0,Qo=!0,lo=!1,Ri=!1,ko=!1,Xo=!1,ir=!1,si=!1,kn=!1,nr=!0,jr=!1,ao=!0,$i=!0,Eo=!1,mo={},Go=null,ua=_e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),or=null,Mr=_e({},["audio","video","img","source","image","track"]),Or=null,cr=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pi="http://www.w3.org/1998/Math/MathML",Sn="http://www.w3.org/2000/svg",$n="http://www.w3.org/1999/xhtml",Jr=$n,ro=!1,go=void 0,Ro=["application/xhtml+xml","text/html"],js="text/html",ds=void 0,es=null,ma=_r.createElement("form"),ya=function(kr){es&&es===kr||((!kr||"object"!==(void 0===kr?"undefined":Fn(kr)))&&(kr={}),kr=Ce(kr),yt="ALLOWED_TAGS"in kr?_e({},kr.ALLOWED_TAGS):Vt,yn="ALLOWED_ATTR"in kr?_e({},kr.ALLOWED_ATTR):Cr,Or="ADD_URI_SAFE_ATTR"in kr?_e(Ce(cr),kr.ADD_URI_SAFE_ATTR):cr,or="ADD_DATA_URI_TAGS"in kr?_e(Ce(Mr),kr.ADD_DATA_URI_TAGS):Mr,Go="FORBID_CONTENTS"in kr?_e({},kr.FORBID_CONTENTS):ua,xi="FORBID_TAGS"in kr?_e({},kr.FORBID_TAGS):{},yi="FORBID_ATTR"in kr?_e({},kr.FORBID_ATTR):{},mo="USE_PROFILES"in kr&&kr.USE_PROFILES,Uo=!1!==kr.ALLOW_ARIA_ATTR,Qo=!1!==kr.ALLOW_DATA_ATTR,lo=kr.ALLOW_UNKNOWN_PROTOCOLS||!1,Ri=kr.SAFE_FOR_TEMPLATES||!1,ko=kr.WHOLE_DOCUMENT||!1,si=kr.RETURN_DOM||!1,kn=kr.RETURN_DOM_FRAGMENT||!1,nr=!1!==kr.RETURN_DOM_IMPORT,jr=kr.RETURN_TRUSTED_TYPE||!1,ir=kr.FORCE_BODY||!1,ao=!1!==kr.SANITIZE_DOM,$i=!1!==kr.KEEP_CONTENT,Eo=kr.IN_PLACE||!1,_t=kr.ALLOWED_URI_REGEXP||_t,Jr=kr.NAMESPACE||$n,go=go=-1===Ro.indexOf(kr.PARSER_MEDIA_TYPE)?js:kr.PARSER_MEDIA_TYPE,ds="application/xhtml+xml"===go?function(Ki){return Ki}:j,Ri&&(Qo=!1),kn&&(si=!0),mo&&(yt=_e({},[].concat(pr(Oe))),yn=[],!0===mo.html&&(_e(yt,Be),_e(yn,Tt)),!0===mo.svg&&(_e(yt,Ve),_e(yn,We),_e(yn,Nt)),!0===mo.svgFilters&&(_e(yt,Xe),_e(yn,We),_e(yn,Nt)),!0===mo.mathMl&&(_e(yt,Pe),_e(yn,Qt),_e(yn,Nt))),kr.ADD_TAGS&&(yt===Vt&&(yt=Ce(yt)),_e(yt,kr.ADD_TAGS)),kr.ADD_ATTR&&(yn===Cr&&(yn=Ce(yn)),_e(yn,kr.ADD_ATTR)),kr.ADD_URI_SAFE_ATTR&&_e(Or,kr.ADD_URI_SAFE_ATTR),kr.FORBID_CONTENTS&&(Go===ua&&(Go=Ce(Go)),_e(Go,kr.FORBID_CONTENTS)),$i&&(yt["#text"]=!0),ko&&_e(yt,["html","head","body"]),yt.table&&(_e(yt,["tbody"]),delete xi.tbody),e&&e(kr),es=kr)},fa=_e({},["mi","mo","mn","ms","mtext"]),sa=_e({},["foreignobject","desc","title","annotation-xml"]),Ra=_e({},Ve);_e(Ra,Xe),_e(Ra,He);var pl=_e({},Pe);_e(pl,Ge);var Co=function(kr){var Ki=Ji(kr);(!Ki||!Ki.tagName)&&(Ki={namespaceURI:$n,tagName:"template"});var ut=j(kr.tagName),pn=j(Ki.tagName);if(kr.namespaceURI===Sn)return Ki.namespaceURI===$n?"svg"===ut:Ki.namespaceURI===pi?"svg"===ut&&("annotation-xml"===pn||fa[pn]):Boolean(Ra[ut]);if(kr.namespaceURI===pi)return Ki.namespaceURI===$n?"math"===ut:Ki.namespaceURI===Sn?"math"===ut&&sa[pn]:Boolean(pl[ut]);if(kr.namespaceURI===$n){if(Ki.namespaceURI===Sn&&!sa[pn]||Ki.namespaceURI===pi&&!fa[pn])return!1;var te=_e({},["title","style","font","a","script"]);return!pl[ut]&&(te[ut]||!Ra[ut])}return!1},yl=function(kr){W(Hn.removed,{element:kr});try{kr.parentNode.removeChild(kr)}catch(Ki){try{kr.outerHTML=Wn}catch(ut){kr.remove()}}},Wo=function(kr,Ki){try{W(Hn.removed,{attribute:Ki.getAttributeNode(kr),from:Ki})}catch(ut){W(Hn.removed,{attribute:null,from:Ki})}if(Ki.removeAttribute(kr),"is"===kr&&!yn[kr])if(si||kn)try{yl(Ki)}catch(ut){}else try{Ki.setAttribute(kr,"")}catch(ut){}},ys=function(kr){var Ki=void 0,ut=void 0;if(ir)kr=""+kr;else{var pn=q(kr,/^[\r\n\t ]+/);ut=pn&&pn[0]}"application/xhtml+xml"===go&&(kr=''+kr+"");var te=Rn?Rn.createHTML(kr):kr;if(Jr===$n)try{Ki=(new Xn).parseFromString(te,go)}catch(jt){}if(!Ki||!Ki.documentElement){Ki=Le.createDocument(Jr,"template",null);try{Ki.documentElement.innerHTML=ro?"":te}catch(jt){}}var Ue=Ki.body||Ki.documentElement;return kr&&ut&&Ue.insertBefore(_r.createTextNode(ut),Ue.childNodes[0]||null),Jr===$n?dt.call(Ki,ko?"html":"body")[0]:ko?Ki.documentElement:Ue},Wa=function(kr){return Re.call(kr.ownerDocument||kr,kr,xo.SHOW_ELEMENT|xo.SHOW_COMMENT|xo.SHOW_TEXT,null,!1)},Is=function(kr){return!(kr instanceof vn||kr instanceof Zn||"string"==typeof kr.nodeName&&"string"==typeof kr.textContent&&"function"==typeof kr.removeChild&&kr.attributes instanceof an&&"function"==typeof kr.removeAttribute&&"function"==typeof kr.setAttribute&&"string"==typeof kr.namespaceURI&&"function"==typeof kr.insertBefore)},nl=function(kr){return"object"===(void 0===fi?"undefined":Fn(fi))?kr instanceof fi:kr&&"object"===(void 0===kr?"undefined":Fn(kr))&&"number"==typeof kr.nodeType&&"string"==typeof kr.nodeName},Gs=function(kr,Ki,ut){!Fe[kr]||R(Fe[kr],function(pn){pn.call(Hn,Ki,ut,es)})},$o=function(kr){var Ki=void 0;if(Gs("beforeSanitizeElements",kr,null),Is(kr)||q(kr.nodeName,/[\u0080-\uFFFF]/))return yl(kr),!0;var ut=ds(kr.nodeName);if(Gs("uponSanitizeElement",kr,{tagName:ut,allowedTags:yt}),!nl(kr.firstElementChild)&&(!nl(kr.content)||!nl(kr.content.firstElementChild))&&se(/<[/\w]/g,kr.innerHTML)&&se(/<[/\w]/g,kr.textContent)||"select"===ut&&se(/