From 2854ff8d478fbbc953bc67fb5bf95455d49255dd Mon Sep 17 00:00:00 2001 From: Sohaib Ahsan Date: Tue, 7 Jan 2025 01:42:53 +0000 Subject: [PATCH] Update storecloud-elements.js --- storecloud-elements/storecloud-elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storecloud-elements/storecloud-elements.js b/storecloud-elements/storecloud-elements.js index d230290..f116da9 100644 --- a/storecloud-elements/storecloud-elements.js +++ b/storecloud-elements/storecloud-elements.js @@ -1,3 +1,3 @@ (()=>{"use strict";var e,b={},p={};function t(e){var n=p[e];if(void 0!==n)return n.exports;var r=p[e]={id:e,loaded:!1,exports:{}};return b[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}t.m=b,t.amdO={},e=[],t.O=(n,r,a,o)=>{if(!r){var i=1/0;for(f=0;f=o)&&Object.keys(t.O).every(h=>t.O[h](r[s]))?r.splice(s--,1):(c=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,a,o]},t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__;t.t=function(r,a){if(1&a&&(r=this(r)),8&a||"object"==typeof r&&r&&(4&a&&r.__esModule||16&a&&"function"==typeof r.then))return r;var o=Object.create(null);t.r(o);var f={};n=n||[null,e({}),e([]),e(e)];for(var i=2&a&&r;"object"==typeof i&&!~n.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach(c=>f[c]=()=>r[c]);return f.default=()=>r,t.d(o,f),o}})(),t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};t.O.j=a=>0===e[a];var n=(a,o)=>{var s,l,[f,i,c]=o,_=0;if(f.some(u=>0!==e[u])){for(s in i)t.o(i,s)&&(t.m[s]=i[s]);if(c)var d=c(t)}for(a&&a(o);_{const me=":";class Ye extends Error{constructor(e){super(`No translation found for ${Qe(e)}.`),this.parsedMessage=e,this.type="MissingTranslationError"}}const Ee=function(i,...e){if(Ee.translate){const n=Ee.translate(i,e);i=n[0],e=n[1]}let t=et(i[0],i.raw[0]);for(let n=1;ntypeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=Ee,Oe(8583)},8583:()=>{!function(e){const t=e.performance;function n(x){t&&t.mark&&t.mark(x)}function r(x,y){t&&t.measure&&t.measure(x,y)}n("Zone");const s=e.__Zone_symbol_prefix||"__zone_symbol__";function l(x){return s+x}const f=!0===e[l("forceDuplicateZoneCheck")];if(e.Zone){if(f||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let u=(()=>{class x{constructor(o,c){this._parent=o,this._name=c?c.name||"unnamed":"",this._properties=c&&c.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,c)}static assertZonePatched(){if(e.Promise!==fe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let o=x.current;for(;o.parent;)o=o.parent;return o}static get current(){return W.zone}static get currentTask(){return le}static __load_patch(o,c,b=!1){if(fe.hasOwnProperty(o)){if(!b&&f)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){const I="Zone:"+o;n(I),fe[o]=c(e,x,K),r(I,I)}}get parent(){return this._parent}get name(){return this._name}get(o){const c=this.getZoneWith(o);if(c)return c._properties[o]}getZoneWith(o){let c=this;for(;c;){if(c._properties.hasOwnProperty(o))return c;c=c._parent}return null}fork(o){if(!o)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,o)}wrap(o,c){if("function"!=typeof o)throw new Error("Expecting function got: "+o);const b=this._zoneDelegate.intercept(this,o,c),I=this;return function(){return I.runGuarded(b,this,arguments,c)}}run(o,c,b,I){W={parent:W,zone:this};try{return this._zoneDelegate.invoke(this,o,c,b,I)}finally{W=W.parent}}runGuarded(o,c=null,b,I){W={parent:W,zone:this};try{try{return this._zoneDelegate.invoke(this,o,c,b,I)}catch(J){if(this._zoneDelegate.handleError(this,J))throw J}}finally{W=W.parent}}runTask(o,c,b){if(o.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(o.zone||Q).name+"; Execution: "+this.name+")");if(o.state===B&&(o.type===ne||o.type===R))return;const I=o.state!=k;I&&o._transitionTo(k,$),o.runCount++;const J=le;le=o,W={parent:W,zone:this};try{o.type==R&&o.data&&!o.data.isPeriodic&&(o.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,o,c,b)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{o.state!==B&&o.state!==T&&(o.type==ne||o.data&&o.data.isPeriodic?I&&o._transitionTo($,k):(o.runCount=0,this._updateTaskCount(o,-1),I&&o._transitionTo(B,k,B))),W=W.parent,le=J}}scheduleTask(o){if(o.zone&&o.zone!==this){let b=this;for(;b;){if(b===o.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${o.zone.name}`);b=b.parent}}o._transitionTo(Y,B);const c=[];o._zoneDelegates=c,o._zone=this;try{o=this._zoneDelegate.scheduleTask(this,o)}catch(b){throw o._transitionTo(T,Y,B),this._zoneDelegate.handleError(this,b),b}return o._zoneDelegates===c&&this._updateTaskCount(o,1),o.state==Y&&o._transitionTo($,Y),o}scheduleMicroTask(o,c,b,I){return this.scheduleTask(new g(L,o,c,b,I,void 0))}scheduleMacroTask(o,c,b,I,J){return this.scheduleTask(new g(R,o,c,b,I,J))}scheduleEventTask(o,c,b,I,J){return this.scheduleTask(new g(ne,o,c,b,I,J))}cancelTask(o){if(o.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(o.zone||Q).name+"; Execution: "+this.name+")");o._transitionTo(U,$,k);try{this._zoneDelegate.cancelTask(this,o)}catch(c){throw o._transitionTo(T,U),this._zoneDelegate.handleError(this,c),c}return this._updateTaskCount(o,-1),o._transitionTo(B,U),o.runCount=0,o}_updateTaskCount(o,c){const b=o._zoneDelegates;-1==c&&(o._zoneDelegates=null);for(let I=0;Ix.hasTask(o,c),onScheduleTask:(x,y,o,c)=>x.scheduleTask(o,c),onInvokeTask:(x,y,o,c,b,I)=>x.invokeTask(o,c,b,I),onCancelTask:(x,y,o,c)=>x.cancelTask(o,c)};class v{constructor(y,o,c){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=y,this._parentDelegate=o,this._forkZS=c&&(c&&c.onFork?c:o._forkZS),this._forkDlgt=c&&(c.onFork?o:o._forkDlgt),this._forkCurrZone=c&&(c.onFork?this.zone:o._forkCurrZone),this._interceptZS=c&&(c.onIntercept?c:o._interceptZS),this._interceptDlgt=c&&(c.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=c&&(c.onIntercept?this.zone:o._interceptCurrZone),this._invokeZS=c&&(c.onInvoke?c:o._invokeZS),this._invokeDlgt=c&&(c.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=c&&(c.onInvoke?this.zone:o._invokeCurrZone),this._handleErrorZS=c&&(c.onHandleError?c:o._handleErrorZS),this._handleErrorDlgt=c&&(c.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=c&&(c.onHandleError?this.zone:o._handleErrorCurrZone),this._scheduleTaskZS=c&&(c.onScheduleTask?c:o._scheduleTaskZS),this._scheduleTaskDlgt=c&&(c.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=c&&(c.onScheduleTask?this.zone:o._scheduleTaskCurrZone),this._invokeTaskZS=c&&(c.onInvokeTask?c:o._invokeTaskZS),this._invokeTaskDlgt=c&&(c.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=c&&(c.onInvokeTask?this.zone:o._invokeTaskCurrZone),this._cancelTaskZS=c&&(c.onCancelTask?c:o._cancelTaskZS),this._cancelTaskDlgt=c&&(c.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=c&&(c.onCancelTask?this.zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const b=c&&c.onHasTask;(b||o&&o._hasTaskZS)&&(this._hasTaskZS=b?c:E,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=y,c.onScheduleTask||(this._scheduleTaskZS=E,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this.zone),c.onInvokeTask||(this._invokeTaskZS=E,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this.zone),c.onCancelTask||(this._cancelTaskZS=E,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this.zone))}fork(y,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,y,o):new u(y,o)}intercept(y,o,c){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,y,o,c):o}invoke(y,o,c,b,I){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,y,o,c,b,I):o.apply(c,b)}handleError(y,o){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,y,o)}scheduleTask(y,o){let c=o;if(this._scheduleTaskZS)this._hasTaskZS&&c._zoneDelegates.push(this._hasTaskDlgtOwner),c=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,y,o),c||(c=o);else if(o.scheduleFn)o.scheduleFn(o);else{if(o.type!=L)throw new Error("Task is missing scheduleFn.");C(o)}return c}invokeTask(y,o,c,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,y,o,c,b):o.callback.apply(c,b)}cancelTask(y,o){let c;if(this._cancelTaskZS)c=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,y,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");c=o.cancelFn(o)}return c}hasTask(y,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,y,o)}catch(c){this.handleError(y,c)}}_updateTaskCount(y,o){const c=this._taskCounts,b=c[y],I=c[y]=b+o;if(I<0)throw new Error("More tasks executed then were scheduled.");0!=b&&0!=I||this.hasTask(this.zone,{microTask:c.microTask>0,macroTask:c.macroTask>0,eventTask:c.eventTask>0,change:y})}}class g{constructor(y,o,c,b,I,J){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=y,this.source=o,this.data=b,this.scheduleFn=I,this.cancelFn=J,!c)throw new Error("callback is not defined");this.callback=c;const h=this;this.invoke=y===ne&&b&&b.useG?g.invokeTask:function(){return g.invokeTask.call(e,h,this,arguments)}}static invokeTask(y,o,c){y||(y=this),oe++;try{return y.runCount++,y.zone.runTask(y,o,c)}finally{1==oe&&p(),oe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,Y)}_transitionTo(y,o,c){if(this._state!==o&&this._state!==c)throw new Error(`${this.type} '${this.source}': can not transition to '${y}', expecting state '${o}'${c?" or '"+c+"'":""}, was '${this._state}'.`);this._state=y,y==B&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const A=l("setTimeout"),N=l("Promise"),P=l("then");let F,H=[],S=!1;function z(x){if(F||e[N]&&(F=e[N].resolve(0)),F){let y=F[P];y||(y=F.then),y.call(F,x)}else e[A](x,0)}function C(x){0===oe&&0===H.length&&z(p),x&&H.push(x)}function p(){if(!S){for(S=!0;H.length;){const x=H;H=[];for(let y=0;yW,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:C,showUncaughtError:()=>!u[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:z};let W={parent:null,zone:new u(null,null)},le=null,oe=0;function q(){}r("Zone","Zone"),e.Zone=u}(typeof window<"u"&&window||typeof self<"u"&&self||global);const de=Object.getOwnPropertyDescriptor,Se=Object.defineProperty,Oe=Object.getPrototypeOf,me=Object.create,nt=Array.prototype.slice,Re="addEventListener",Me="removeEventListener",ue=Zone.__symbol__(Re),Ce=Zone.__symbol__(Me),se="true",ee="false",Ne=Zone.__symbol__("");function Ae(e,t){return Zone.current.wrap(e,t)}function ze(e,t,n,r,s){return Zone.current.scheduleMacroTask(e,t,n,r,s)}const j=Zone.__symbol__,Ie=typeof window<"u",_e=Ie?window:void 0,X=Ie&&_e||"object"==typeof self&&self||global,rt="removeAttribute";function Le(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=Ae(e[n],t+"_"+n));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const xe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ve=!("nw"in X)&&typeof X.process<"u"&&"[object process]"==={}.toString.call(X.process),De=!ve&&!xe&&!(!Ie||!_e.HTMLElement),je=typeof X.process<"u"&&"[object process]"==={}.toString.call(X.process)&&!xe&&!(!Ie||!_e.HTMLElement),we={},ie=function(e){if(!(e=e||X.event))return;let t=we[e.type];t||(t=we[e.type]=j("ON_PROPERTY"+e.type));const n=this||e.target||X,r=n[t];let s;return De&&n===_e&&"error"===e.type?(s=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===s&&e.preventDefault()):(s=r&&r.apply(this,arguments),null!=s&&!s&&e.preventDefault()),s};function $e(e,t,n){let r=de(e,t);if(!r&&n&&de(n,t)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const s=j("on"+t+"patched");if(e.hasOwnProperty(s)&&e[s])return;delete r.writable,delete r.value;const l=r.get,f=r.set,u=t.slice(2);let E=we[u];E||(E=we[u]=j("ON_PROPERTY"+u)),r.set=function(v){let g=this;!g&&e===X&&(g=X),g&&("function"==typeof g[E]&&g.removeEventListener(u,ie),f&&f.call(g,null),g[E]=v,"function"==typeof v&&g.addEventListener(u,ie,!1))},r.get=function(){let v=this;if(!v&&e===X&&(v=X),!v)return null;const g=v[E];if(g)return g;if(l){let A=l.call(this);if(A)return r.set.call(this,A),"function"==typeof v[rt]&&v.removeAttribute(t),A}return null},Se(e,t,r),e[s]=!0}function We(e,t,n){if(t)for(let r=0;rfunction(f,u){const E=n(f,u);return E.cbIdx>=0&&"function"==typeof u[E.cbIdx]?ze(E.name,u[E.cbIdx],E,s):l.apply(f,u)})}function ae(e,t){e[j("OriginalDelegate")]=t}let He=!1,Be=!1;function st(){if(He)return Be;He=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Be=!0)}catch{}return Be}Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const r=Object.getOwnPropertyDescriptor,s=Object.defineProperty,f=n.symbol,u=[],E=!0===e[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=f("Promise"),g=f("then"),A="__creationTrace__";n.onUnhandledError=h=>{if(n.showUncaughtError()){const d=h&&h.rejection;d?console.error("Unhandled Promise rejection:",d instanceof Error?d.message:d,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",d,d instanceof Error?d.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;u.length;){const h=u.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(d){P(d)}}};const N=f("unhandledPromiseRejectionHandler");function P(h){n.onUnhandledError(h);try{const d=t[N];"function"==typeof d&&d.call(this,h)}catch{}}function H(h){return h&&h.then}function S(h){return h}function F(h){return o.reject(h)}const z=f("state"),C=f("value"),p=f("finally"),Q=f("parentPromiseValue"),B=f("parentPromiseState"),Y="Promise.then",$=null,k=!0,U=!1,T=0;function L(h,d){return a=>{try{K(h,d,a)}catch(_){K(h,!1,_)}}}const R=function(){let h=!1;return function(a){return function(){h||(h=!0,a.apply(null,arguments))}}},ne="Promise resolved with itself",fe=f("currentTaskTrace");function K(h,d,a){const _=R();if(h===a)throw new TypeError(ne);if(h[z]===$){let w=null;try{("object"==typeof a||"function"==typeof a)&&(w=a&&a.then)}catch(O){return _(()=>{K(h,!1,O)})(),h}if(d!==U&&a instanceof o&&a.hasOwnProperty(z)&&a.hasOwnProperty(C)&&a[z]!==$)le(a),K(h,a[z],a[C]);else if(d!==U&&"function"==typeof w)try{w.call(a,_(L(h,d)),_(L(h,!1)))}catch(O){_(()=>{K(h,!1,O)})()}else{h[z]=d;const O=h[C];if(h[C]=a,h[p]===p&&d===k&&(h[z]=h[B],h[C]=h[Q]),d===U&&a instanceof Error){const m=t.currentTask&&t.currentTask.data&&t.currentTask.data[A];m&&s(a,fe,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const D=h[C],Z=!!a&&p===a[p];Z&&(a[Q]=D,a[B]=O);const M=d.run(m,void 0,Z&&m!==F&&m!==S?[]:[D]);K(a,!0,M)}catch(D){K(a,!1,D)}},a)}const x=function(){},y=e.AggregateError;class o{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(d){return K(new this(null),k,d)}static reject(d){return K(new this(null),U,d)}static any(d){if(!d||"function"!=typeof d[Symbol.iterator])return Promise.reject(new y([],"All promises were rejected"));const a=[];let _=0;try{for(let m of d)_++,a.push(o.resolve(m))}catch{return Promise.reject(new y([],"All promises were rejected"))}if(0===_)return Promise.reject(new y([],"All promises were rejected"));let w=!1;const O=[];return new o((m,D)=>{for(let Z=0;Z{w||(w=!0,m(M))},M=>{O.push(M),_--,0===_&&(w=!0,D(new y(O,"All promises were rejected")))})})}static race(d){let a,_,w=new this((D,Z)=>{a=D,_=Z});function O(D){a(D)}function m(D){_(D)}for(let D of d)H(D)||(D=this.resolve(D)),D.then(O,m);return w}static all(d){return o.allWithCallback(d)}static allSettled(d){return(this&&this.prototype instanceof o?this:o).allWithCallback(d,{thenCallback:_=>({status:"fulfilled",value:_}),errorCallback:_=>({status:"rejected",reason:_})})}static allWithCallback(d,a){let _,w,O=new this((M,V)=>{_=M,w=V}),m=2,D=0;const Z=[];for(let M of d){H(M)||(M=this.resolve(M));const V=D;try{M.then(G=>{Z[V]=a?a.thenCallback(G):G,m--,0===m&&_(Z)},G=>{a?(Z[V]=a.errorCallback(G),m--,0===m&&_(Z)):w(G)})}catch(G){w(G)}m++,D++}return m-=2,0===m&&_(Z),O}constructor(d){const a=this;if(!(a instanceof o))throw new Error("Must be an instanceof Promise.");a[z]=$,a[C]=[];try{const _=R();d&&d(_(L(a,k)),_(L(a,U)))}catch(_){K(a,!1,_)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return o}then(d,a){var _;let w=null===(_=this.constructor)||void 0===_?void 0:_[Symbol.species];(!w||"function"!=typeof w)&&(w=this.constructor||o);const O=new w(x),m=t.current;return this[z]==$?this[C].push(m,O,d,a):oe(this,m,O,d,a),O}catch(d){return this.then(null,d)}finally(d){var a;let _=null===(a=this.constructor)||void 0===a?void 0:a[Symbol.species];(!_||"function"!=typeof _)&&(_=o);const w=new _(x);w[p]=p;const O=t.current;return this[z]==$?this[C].push(O,w,d,d):oe(this,O,w,d,d),w}}o.resolve=o.resolve,o.reject=o.reject,o.race=o.race,o.all=o.all;const c=e[v]=e.Promise;e.Promise=o;const b=f("thenPatched");function I(h){const d=h.prototype,a=r(d,"then");if(a&&(!1===a.writable||!a.configurable))return;const _=d.then;d[g]=_,h.prototype.then=function(w,O){return new o((D,Z)=>{_.call(this,D,Z)}).then(w,O)},h[b]=!0}return n.patchThen=I,c&&(I(c),ce(e,"fetch",h=>function J(h){return function(d,a){let _=h.apply(d,a);if(_ instanceof o)return _;let w=_.constructor;return w[b]||I(w),_}}(h))),Promise[t.__symbol__("uncaughtPromiseErrors")]=u,o}),Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=j("OriginalDelegate"),r=j("Promise"),s=j("Error"),l=function(){if("function"==typeof this){const v=this[n];if(v)return"function"==typeof v?t.call(v):Object.prototype.toString.call(v);if(this===Promise){const g=e[r];if(g)return t.call(g)}if(this===Error){const g=e[s];if(g)return t.call(g)}}return t.call(this)};l[n]=t,Function.prototype.toString=l;const f=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":f.call(this)}});let Te=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Te=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Te=!1}const Xe={useG:!0},re={},Ue={},Ye=new RegExp("^"+Ne+"(\\w+)(true|false)$"),it=j("propagationStopped");function Ke(e,t){const n=(t?t(e):e)+ee,r=(t?t(e):e)+se,s=Ne+n,l=Ne+r;re[e]={},re[e][ee]=s,re[e][se]=l}function ct(e,t,n,r){const s=r&&r.add||Re,l=r&&r.rm||Me,f=r&&r.listeners||"eventListeners",u=r&&r.rmAll||"removeAllListeners",E=j(s),v="."+s+":",g="prependListener",A="."+g+":",N=function(C,p,Q){if(C.isRemoved)return;const B=C.callback;let Y;"object"==typeof B&&B.handleEvent&&(C.callback=k=>B.handleEvent(k),C.originalDelegate=B);try{C.invoke(C,p,[Q])}catch(k){Y=k}const $=C.options;return $&&"object"==typeof $&&$.once&&p[l].call(p,Q.type,C.originalDelegate?C.originalDelegate:C.callback,$),Y};function P(C,p,Q){if(!(p=p||e.event))return;const B=C||p.target||e,Y=B[re[p.type][Q?se:ee]];if(Y){const $=[];if(1===Y.length){const k=N(Y[0],B,p);k&&$.push(k)}else{const k=Y.slice();for(let U=0;U{throw U})}}}const H=function(C){return P(this,C,!1)},S=function(C){return P(this,C,!0)};function F(C,p){if(!C)return!1;let Q=!0;p&&void 0!==p.useG&&(Q=p.useG);const B=p&&p.vh;let Y=!0;p&&void 0!==p.chkDup&&(Y=p.chkDup);let $=!1;p&&void 0!==p.rt&&($=p.rt);let k=C;for(;k&&!k.hasOwnProperty(s);)k=Oe(k);if(!k&&C[s]&&(k=C),!k||k[E])return!1;const U=p&&p.eventNameToString,T={},L=k[E]=k[s],R=k[j(l)]=k[l],ne=k[j(f)]=k[f],fe=k[j(u)]=k[u];let K;p&&p.prepend&&(K=k[j(p.prepend)]=k[p.prepend]);const o=Q?function(a){if(!T.isExisting)return L.call(T.target,T.eventName,T.capture?S:H,T.options)}:function(a){return L.call(T.target,T.eventName,a.invoke,T.options)},c=Q?function(a){if(!a.isRemoved){const _=re[a.eventName];let w;_&&(w=_[a.capture?se:ee]);const O=w&&a.target[w];if(O)for(let m=0;mfunction(s,l){s[it]=!0,r&&r.apply(s,l)})}function Qe(e,t,n,r,s){const l=Zone.__symbol__(r);if(t[l])return;const f=t[l]=t[r];t[r]=function(u,E,v){return E&&E.prototype&&s.forEach(function(g){const A=`${n}.${r}::`+g,N=E.prototype;try{if(N.hasOwnProperty(g)){const P=e.ObjectGetOwnPropertyDescriptor(N,g);P&&P.value?(P.value=e.wrapWithCurrentZone(P.value,A),e._redefineProperty(E.prototype,g,P)):N[g]&&(N[g]=e.wrapWithCurrentZone(N[g],A))}else N[g]&&(N[g]=e.wrapWithCurrentZone(N[g],A))}catch{}}),f.call(t,u,E,v)},e.attachOriginToPatched(t[r],f)}function lt(e,t,n){if(!n||0===n.length)return t;const r=n.filter(l=>l.target===e);if(!r||0===r.length)return t;const s=r[0].ignoreProperties;return t.filter(l=>-1===s.indexOf(l))}function ut(e,t,n,r){e&&We(e,lt(e,t,n),r)}function Ve(e){return Object.getOwnPropertyNames(e).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}Zone.__load_patch("util",(e,t,n)=>{const r=Ve(e);n.patchOnProperties=We,n.patchMethod=ce,n.bindArguments=Le,n.patchMacroTask=qe;const s=t.__symbol__("BLACK_LISTED_EVENTS"),l=t.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[s]=e[l]),e[s]&&(t[s]=t[l]=e[s]),n.patchEventPrototype=Je,n.patchEventTarget=ct,n.isIEOrEdge=st,n.ObjectDefineProperty=Se,n.ObjectGetOwnPropertyDescriptor=de,n.ObjectCreate=me,n.ArraySlice=nt,n.patchClass=be,n.wrapWithCurrentZone=Ae,n.filterProperties=lt,n.attachOriginToPatched=ae,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Qe,n.getGlobalObjects=()=>({globalSources:Ue,zoneSymbolEventNames:re,eventNames:r,isBrowser:De,isMix:je,isNode:ve,TRUE_STR:se,FALSE_STR:ee,ZONE_SYMBOL_PREFIX:Ne,ADD_EVENT_LISTENER_STR:Re,REMOVE_EVENT_LISTENER_STR:Me})});const Ee=j("zoneTask");function ge(e,t,n,r){let s=null,l=null;n+=r;const f={};function u(v){const g=v.data;return g.args[0]=function(){return v.invoke.apply(this,arguments)},g.handleId=s.apply(e,g.args),v}function E(v){return l.call(e,v.data.handleId)}s=ce(e,t+=r,v=>function(g,A){if("function"==typeof A[0]){const N={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?A[1]||0:void 0,args:A},P=A[0];A[0]=function(){try{return P.apply(this,arguments)}finally{N.isPeriodic||("number"==typeof N.handleId?delete f[N.handleId]:N.handleId&&(N.handleId[Ee]=null))}};const H=ze(t,A[0],N,u,E);if(!H)return H;const S=H.data.handleId;return"number"==typeof S?f[S]=H:S&&(S[Ee]=H),S&&S.ref&&S.unref&&"function"==typeof S.ref&&"function"==typeof S.unref&&(H.ref=S.ref.bind(S),H.unref=S.unref.bind(S)),"number"==typeof S||S?S:H}return v.apply(e,A)}),l=ce(e,n,v=>function(g,A){const N=A[0];let P;"number"==typeof N?P=f[N]:(P=N&&N[Ee],P||(P=N)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof N?delete f[N]:N&&(N[Ee]=null),P.zone.cancelTask(P)):v.apply(e,A)})}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",(e,t,n)=>{n.patchMethod(e,"queueMicrotask",r=>function(s,l){t.current.scheduleMicroTask("queueMicrotask",l[0])})}),Zone.__load_patch("timers",e=>{const t="set",n="clear";ge(e,t,n,"Timeout"),ge(e,t,n,"Interval"),ge(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ge(e,"request","cancel","AnimationFrame"),ge(e,"mozRequest","mozCancel","AnimationFrame"),ge(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let r=0;rfunction(E,v){return t.current.run(l,e,v,u)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{(function i(e,t){t.patchEventPrototype(e,t)})(e,n),function _t(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:s,FALSE_STR:l,ZONE_SYMBOL_PREFIX:f}=t.getGlobalObjects();for(let E=0;E{be("MutationObserver"),be("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,t,n)=>{be("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,t,n)=>{be("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{!function ft(e,t){if(ve&&!je||Zone[e.symbol("patchEvents")])return;const n=t.__Zone_ignore_on_properties;let r=[];if(De){const s=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const l=function ot(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:s,ignoreProperties:["error"]}]:[];ut(s,Ve(s),n&&n.concat(l),Oe(s))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s{!function et(e,t){const{isBrowser:n,isMix:r}=t.getGlobalObjects();(n||r)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function E(v){const g=v.XMLHttpRequest;if(!g)return;const A=g.prototype;let P=A[ue],H=A[Ce];if(!P){const T=v.XMLHttpRequestEventTarget;if(T){const L=T.prototype;P=L[ue],H=L[Ce]}}const S="readystatechange",F="scheduled";function z(T){const L=T.data,R=L.target;R[l]=!1,R[u]=!1;const ne=R[s];P||(P=R[ue],H=R[Ce]),ne&&H.call(R,S,ne);const fe=R[s]=()=>{if(R.readyState===R.DONE)if(!L.aborted&&R[l]&&T.state===F){const W=R[t.__symbol__("loadfalse")];if(0!==R.status&&W&&W.length>0){const le=T.invoke;T.invoke=function(){const oe=R[t.__symbol__("loadfalse")];for(let q=0;qfunction(T,L){return T[r]=0==L[2],T[f]=L[1],Q.apply(T,L)}),Y=j("fetchTaskAborting"),$=j("fetchTaskScheduling"),k=ce(A,"send",()=>function(T,L){if(!0===t.current[$]||T[r])return k.apply(T,L);{const R={target:T,url:T[f],isPeriodic:!1,args:L,aborted:!1},ne=ze("XMLHttpRequest.send",C,R,z,p);T&&!0===T[u]&&!R.aborted&&ne.state===F&&ne.invoke()}}),U=ce(A,"abort",()=>function(T,L){const R=function N(T){return T[n]}(T);if(R&&"string"==typeof R.type){if(null==R.cancelFn||R.data&&R.data.aborted)return;R.zone.cancelTask(R)}else if(!0===t.current[Y])return U.apply(T,L)})}(e);const n=j("xhrTask"),r=j("xhrSync"),s=j("xhrListener"),l=j("xhrScheduled"),f=j("xhrURL"),u=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function ke(e,t){const n=e.constructor.name;for(let r=0;r{const E=function(){return u.apply(this,Le(arguments,n+"."+s))};return ae(E,u),E})(l)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(r){return function(s){at(e,r).forEach(f=>{const u=e.PromiseRejectionEvent;if(u){const E=new u(r,{promise:s.promise,reason:s.rejection});f.invoke(E)}})}}e.PromiseRejectionEvent&&(t[j("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[j("rejectionHandledHandler")]=n("rejectionhandled"))})}},de=>{de(de.s=73)}]); -(self.webpackChunkstore_website_element=self.webpackChunkstore_website_element||[]).push([[179],{6003:(Le,ye,G)=>{"use strict";var N={};function z(n){return"function"==typeof n}function S(n){const e=n(o=>{Error.call(o),o.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}G.r(N),G.d(N,{Arc:()=>kR,BezierCurve:()=>$j,BoundingRect:()=>eo,Circle:()=>TR,CompoundPath:()=>Che,Ellipse:()=>kj,Group:()=>as,Image:()=>Sh,IncrementalDisplayable:()=>Rhe,Line:()=>Uh,LinearGradient:()=>Kj,OrientedBoundingRect:()=>l5,Path:()=>Po,Point:()=>g1,Polygon:()=>Xj,Polyline:()=>a5,RadialGradient:()=>qhe,Rect:()=>Bi,Ring:()=>Fj,Sector:()=>j_,Text:()=>_a,applyTransform:()=>BR,clipPointsByRect:()=>jhe,clipRectByRect:()=>Uhe,createIcon:()=>FR,extendPath:()=>Ehe,extendShape:()=>Dhe,getShapeClass:()=>Ihe,getTransform:()=>Yhe,groupTransition:()=>aU,initProps:()=>U2,isElementRemoved:()=>U_,lineLineIntersect:()=>sU,linePolygonIntersect:()=>Vhe,makeImage:()=>nU,makePath:()=>NR,mergePath:()=>Nhe,registerShape:()=>np,removeElement:()=>p5,removeElementWithFadeOut:()=>eU,resizePath:()=>rU,setTooltipConfig:()=>HR,subPixelOptimize:()=>Fhe,subPixelOptimizeLine:()=>V_,subPixelOptimizeRect:()=>Bhe,transformDirection:()=>Hhe,traverseElements:()=>XR,updateProps:()=>_d});const R=S(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((o,r)=>`${r+1}) ${o.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function C(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class B{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const i of e)i.remove(this);else e.remove(this);const{initialTeardown:o}=this;if(z(o))try{o()}catch(i){t=i instanceof R?i.errors:[i]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const i of r)try{Ae(i)}catch(a){t=t??[],a instanceof R?t=[...t,...a.errors]:t.push(a)}}if(t)throw new R(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Ae(t);else{if(t instanceof B){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&C(e,t)}remove(t){const{_finalizers:e}=this;e&&C(e,t),t instanceof B&&t._removeParent(this)}}B.EMPTY=(()=>{const n=new B;return n.closed=!0,n})();const K=B.EMPTY;function Q(n){return n instanceof B||n&&"closed"in n&&z(n.remove)&&z(n.add)&&z(n.unsubscribe)}function Ae(n){z(n)?n():n.unsubscribe()}const Ie={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Je={setTimeout(n,t,...e){const{delegate:o}=Je;return o?.setTimeout?o.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Je;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Lt(n){Je.setTimeout(()=>{const{onUnhandledError:t}=Ie;if(!t)throw n;t(n)})}function At(){}const wt=Vt("C",void 0,void 0);function Vt(n,t,e){return{kind:n,value:t,error:e}}let M0=null;function s0(n){if(Ie.useDeprecatedSynchronousErrorHandling){const t=!M0;if(t&&(M0={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:o}=M0;if(M0=null,e)throw o}}else n()}class Zt extends B{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Q(t)&&t.add(this)):this.destination=nt}static create(t,e,o){return new Z0(t,e,o)}next(t){this.isStopped?L0(function bt(n){return Vt("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?L0(function je(n){return Vt("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?L0(wt,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const o1=Function.prototype.bind;function O0(n,t){return o1.call(n,t)}class x1{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(o){bn(o)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(o){bn(o)}else bn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){bn(e)}}}class Z0 extends Zt{constructor(t,e,o){let r;if(super(),z(t)||!t)r={next:t??void 0,error:e??void 0,complete:o??void 0};else{let i;this&&Ie.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&O0(t.next,i),error:t.error&&O0(t.error,i),complete:t.complete&&O0(t.complete,i)}):r=t}this.destination=new x1(r)}}function bn(n){Ie.useDeprecatedSynchronousErrorHandling?function C0(n){Ie.useDeprecatedSynchronousErrorHandling&&M0&&(M0.errorThrown=!0,M0.error=n)}(n):Lt(n)}function L0(n,t){const{onStoppedNotification:e}=Ie;e&&Je.setTimeout(()=>e(n,t))}const nt={closed:!0,next:At,error:function io(n){throw n},complete:At},ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function W(n){return n}function U(n){return 0===n.length?W:1===n.length?n[0]:function(e){return n.reduce((o,r)=>r(o),e)}}let V=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const o=new n;return o.source=this,o.operator=e,o}subscribe(e,o,r){const i=function Ce(n){return n&&n instanceof Zt||function Oe(n){return n&&z(n.next)&&z(n.error)&&z(n.complete)}(n)&&Q(n)}(e)?e:new Z0(e,o,r);return s0(()=>{const{operator:a,source:s}=this;i.add(a?a.call(i,s):s?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(o){e.error(o)}}forEach(e,o){return new(o=te(o))((r,i)=>{const a=new Z0({next:s=>{try{e(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:r});this.subscribe(a)})}_subscribe(e){var o;return null===(o=this.source)||void 0===o?void 0:o.subscribe(e)}[ne](){return this}pipe(...e){return U(e)(this)}toPromise(e){return new(e=te(e))((o,r)=>{let i;this.subscribe(a=>i=a,a=>r(a),()=>o(i))})}}return n.create=t=>new n(t),n})();function te(n){var t;return null!==(t=n??Ie.Promise)&&void 0!==t?t:Promise}const fe=S(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let I=(()=>{class n extends V{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const o=new ae(this,this);return o.operator=e,o}_throwIfClosed(){if(this.closed)throw new fe}next(e){s0(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const o of this.currentObservers)o.next(e)}})}error(e){s0(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:o}=this;for(;o.length;)o.shift().error(e)}})}complete(){s0(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:o,isStopped:r,observers:i}=this;return o||r?K:(this.currentObservers=null,i.push(e),new B(()=>{this.currentObservers=null,C(i,e)}))}_checkFinalizedStatuses(e){const{hasError:o,thrownError:r,isStopped:i}=this;o?e.error(r):i&&e.complete()}asObservable(){const e=new V;return e.source=this,e}}return n.create=(t,e)=>new ae(t,e),n})();class ae extends I{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,o;null===(o=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===o||o.call(e,t)}error(t){var e,o;null===(o=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===o||o.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,o;return null!==(o=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==o?o:K}}function Nt(n){return z(n?.lift)}function _t(n){return t=>{if(Nt(t))return t.lift(function(e){try{return n(e,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function $(n,t,e,o,r){return new Ue(n,t,e,o,r)}class Ue extends Zt{constructor(t,e,o,r,i,a){super(t),this.onFinalize=i,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){t.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=o?function(){try{o()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function j(n,t){return _t((e,o)=>{let r=0;e.subscribe($(o,i=>{o.next(n.call(t,i,r++))}))})}function $e(n,t,e,o){var a,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,o);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(r<3?a(i):r>3?a(t,e,i):a(t,e))||i);return r>3&&i&&Object.defineProperty(t,e,i),i}function q1(n){return this instanceof q1?(this.v=n,this):new q1(n)}function J1(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function T0(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],o=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(i){e[i]=n[i]&&function(a){return new Promise(function(s,c){!function r(i,a,s,c){Promise.resolve(c).then(function(p){i({value:p,done:s})},a)}(s,c,(a=n[i](a)).done,a.value)})}}}const tn=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function pn(n){return z(n?.then)}function Jt(n){return z(n[ne])}function Bn(n){return Symbol.asyncIterator&&z(n?.[Symbol.asyncIterator])}function Fn(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const _1=function cr(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function u0(n){return z(n?.[_1])}function ra(n){return function cn(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(h){o[h]&&(r[h]=function(M){return new Promise(function(g,v){i.push([h,M,g,v])>1||s(h,M)})})}function s(h,M){try{!function c(h){h.value instanceof q1?Promise.resolve(h.value.v).then(p,d):u(i[0][2],h)}(o[h](M))}catch(g){u(i[0][3],g)}}function p(h){s("next",h)}function d(h){s("throw",h)}function u(h,M){h(M),i.shift(),i.length&&s(i[0][0],i[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:o,done:r}=yield q1(e.read());if(r)return yield q1(void 0);yield yield q1(o)}}finally{e.releaseLock()}})}function y0(n){return z(n?.getReader)}function k0(n){if(n instanceof V)return n;if(null!=n){if(Jt(n))return function Ea(n){return new V(t=>{const e=n[ne]();if(z(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(tn(n))return function gn(n){return new V(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Lt)})}(n);if(Bn(n))return W1(n);if(u0(n))return function _r(n){return new V(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(y0(n))return function K0(n){return W1(ra(n))}(n)}throw Fn(n)}function W1(n){return new V(t=>{(function Go(n,t){var e,o,r,i;return function Kt(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=J1(n);!(o=yield e.next()).done;)if(t.next(o.value),t.closed)return}catch(a){r={error:a}}finally{try{o&&!o.done&&(i=e.return)&&(yield i.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function c1(n,t,e,o=0,r=!1){const i=t.schedule(function(){e(),r?n.add(this.schedule(null,o)):this.unsubscribe()},o);if(n.add(i),!r)return i}function On(n,t,e=1/0){return z(t)?On((o,r)=>j((i,a)=>t(o,i,r,a))(k0(n(o,r))),e):("number"==typeof t&&(e=t),_t((o,r)=>function V1(n,t,e,o,r,i,a,s){const c=[];let p=0,d=0,u=!1;const h=()=>{u&&!c.length&&!p&&t.complete()},M=v=>p{i&&t.next(v),p++;let A=!1;k0(e(v,d++)).subscribe($(t,y=>{r?.(y),i?M(y):t.next(y)},()=>{A=!0},void 0,()=>{if(A)try{for(p--;c.length&&pg(y)):g(y)}h()}catch(y){t.error(y)}}))};return n.subscribe($(t,M,()=>{u=!0,h()})),()=>{s?.()}}(o,r,n,e)))}function nn(n=1/0){return On(W,n)}const h1=new V(n=>n.complete());function Sr(n){return n&&z(n.schedule)}function Dr(n){return n[n.length-1]}function oi(n){return z(Dr(n))?n.pop():void 0}function vi(n){return Sr(Dr(n))?n.pop():void 0}function _p(n,t=0){return _t((e,o)=>{e.subscribe($(o,r=>c1(o,n,()=>o.next(r),t),()=>c1(o,n,()=>o.complete(),t),r=>c1(o,n,()=>o.error(r),t)))})}function Vn(n,t=0){return _t((e,o)=>{o.add(n.schedule(()=>e.subscribe(o),t))})}function vp(n,t){if(!n)throw new Error("Iterable cannot be null");return new V(e=>{c1(e,t,()=>{const o=n[Symbol.asyncIterator]();c1(e,t,()=>{o.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function $n(n,t){return t?function Dd(n,t){if(null!=n){if(Jt(n))return function _l(n,t){return k0(n).pipe(Vn(t),_p(t))}(n,t);if(tn(n))return function zl(n,t){return new V(e=>{let o=0;return t.schedule(function(){o===n.length?e.complete():(e.next(n[o++]),e.closed||this.schedule())})})}(n,t);if(pn(n))return function zp(n,t){return k0(n).pipe(Vn(t),_p(t))}(n,t);if(Bn(n))return vp(n,t);if(u0(n))return function vl(n,t){return new V(e=>{let o;return c1(e,t,()=>{o=n[_1](),c1(e,t,()=>{let r,i;try{({value:r,done:i}=o.next())}catch(a){return void e.error(a)}i?e.complete():e.next(r)},0,!0)}),()=>z(o?.return)&&o.return()})}(n,t);if(y0(n))return function Sd(n,t){return vp(ra(n),t)}(n,t)}throw Fn(n)}(n,t):k0(n)}function Ia(...n){const t=vi(n),e=function Ac(n,t){return"number"==typeof Dr(n)?n.pop():t}(n,1/0),o=n;return o.length?1===o.length?k0(o[0]):nn(e)($n(o,t)):h1}function Al(n={}){const{connector:t=(()=>new I),resetOnError:e=!0,resetOnComplete:o=!0,resetOnRefCountZero:r=!0}=n;return i=>{let a,s,c,p=0,d=!1,u=!1;const h=()=>{s?.unsubscribe(),s=void 0},M=()=>{h(),a=c=void 0,d=u=!1},g=()=>{const v=a;M(),v?.unsubscribe()};return _t((v,A)=>{p++,!u&&!d&&h();const y=c=c??t();A.add(()=>{p--,0===p&&!u&&!d&&(s=kd(g,r))}),y.subscribe(A),!a&&p>0&&(a=new Z0({next:q=>y.next(q),error:q=>{u=!0,h(),s=kd(M,e,q),y.error(q)},complete:()=>{d=!0,h(),s=kd(M,o),y.complete()}}),k0(v).subscribe(a))})(i)}}function kd(n,t,...e){if(!0===t)return void n();if(!1===t)return;const o=new Z0({next:()=>{o.unsubscribe(),n()}});return k0(t(...e)).subscribe(o)}function mn(n){for(let t in n)if(n[t]===mn)return t;throw Error("Could not find renamed property on target object.")}function Cf(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Hn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Hn).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Ap(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const wf=mn({__forward_ref__:mn});function Xn(n){return n.__forward_ref__=Xn,n.toString=function(){return Hn(this())},n}function P0(n){return yl(n)?n():n}function yl(n){return"function"==typeof n&&n.hasOwnProperty(wf)&&n.__forward_ref__===Xn}function yp(n){return n&&!!n.\u0275providers}const Wi="https://g.co/ng/security#xss";class xt extends Error{constructor(t,e){super(Cp(t,e)),this.code=t}}function Cp(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function E0(n){return"string"==typeof n?n:null==n?"":String(n)}function Ed(n,t){throw new xt(-201,!1)}function ia(n,t){null==n&&function _n(n,t,e,o){throw new Error(`ASSERTION ERROR: ${n}`+(null==o?"":` [Expected=> ${e} ${o} ${t} <=Actual]`))}(t,n,null,"!=")}function et(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Gn(n){return{providers:n.providers||[],imports:n.imports||[]}}function Id(n){return EM(n,wp)||EM(n,Cl)}function EM(n,t){return n.hasOwnProperty(t)?n[t]:null}function lr(n){return n&&(n.hasOwnProperty(zn)||n.hasOwnProperty(wl))?n[zn]:null}const wp=mn({\u0275prov:mn}),zn=mn({\u0275inj:mn}),Cl=mn({ngInjectableDef:mn}),wl=mn({ngInjectorDef:mn});var h0=(()=>((h0=h0||{})[h0.Default=0]="Default",h0[h0.Host=1]="Host",h0[h0.Self=2]="Self",h0[h0.SkipSelf=4]="SkipSelf",h0[h0.Optional=8]="Optional",h0))();let Nd;function Li(n){const t=Nd;return Nd=n,t}function Pp(n,t,e){const o=Id(n);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:e&h0.Optional?null:void 0!==t?t:void Ed(Hn(n))}const vn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Pl={},Xu="__NG_DI_FLAG__",Ba="ngTempTokenPath",ju="ngTokenPath",xp=/\n/gm,Zn="\u0275",Qs="__source";let xl;function qp(n){const t=xl;return xl=n,t}function Uu(n,t=h0.Default){if(void 0===xl)throw new xt(-203,!1);return null===xl?Pp(n,void 0,t):xl.get(n,t&h0.Optional?null:void 0,t)}function Te(n,t=h0.Default){return(function NM(){return Nd}()||Uu)(P0(n),t)}function c0(n,t=h0.Default){return Te(n,Bd(t))}function Bd(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Wp(n){const t=[];for(let e=0;e((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),ca=(()=>{return(n=ca||(ca={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",ca;var n})();const Ya={},un=[],Lp=mn({\u0275cmp:mn}),ri=mn({\u0275dir:mn}),Wl=mn({\u0275pipe:mn}),An=mn({\u0275mod:mn}),gs=mn({\u0275fac:mn}),Tp=mn({__NG_ELEMENT_ID__:mn});let YM=0;function Rt(n){return sa(()=>{const e=!0===n.standalone,o={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:o,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||un,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ca.Emulated,id:"c"+YM++,styles:n.styles||un,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},i=n.dependencies,a=n.features;return r.inputs=XM(n.inputs,o),r.outputs=XM(n.outputs),a&&a.forEach(s=>s(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(HM).filter(Rp):null,r.pipeDefs=i?()=>("function"==typeof i?i():i).map(Er).filter(Rp):null,r})}function Ha(n,t,e){const o=n.\u0275cmp;o.directiveDefs=()=>("function"==typeof t?t():t).map(HM),o.pipeDefs=()=>("function"==typeof e?e():e).map(Er)}function HM(n){return z1(n)||Zo(n)}function Rp(n){return null!==n}function yn(n){return sa(()=>({type:n.type,bootstrap:n.bootstrap||un,declarations:n.declarations||un,imports:n.imports||un,exports:n.exports||un,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function XM(n,t){if(null==n)return Ya;const e={};for(const o in n)if(n.hasOwnProperty(o)){let r=n[o],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),e[r]=o,t&&(t[r]=i)}return e}const b0=Rt;function jn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function z1(n){return n[Lp]||null}function Zo(n){return n[ri]||null}function Er(n){return n[Wl]||null}function ii(n,t){const e=n[An]||null;if(!e&&!0===t)throw new Error(`Type ${Hn(n)} does not have '\u0275mod' property.`);return e}const Ir=0,jt=1,u1=2,qo=3,Xa=4,Ll=5,Nr=6,Dp=7,Oo=8,Se=9,it=10,De=11,l0=12,N0=13,on=14,Y1=15,B0=16,Pc=17,kp=18,Wo=19,ec=20,jM=21,Cn=22,Ep=1,wn=2,$u=7,Fd=8,tc=9,ai=10;function Ri(n){return Array.isArray(n)&&"object"==typeof n[Ep]}function Ai(n){return Array.isArray(n)&&!0===n[Ep]}function Os(n){return 0!=(4&n.flags)}function xc(n){return n.componentOffset>-1}function Yd(n){return 1==(1&n.flags)}function yi(n){return null!==n.template}function UM(n){return 0!=(256&n[u1])}function qc(n,t){return n.hasOwnProperty(gs)?n[gs]:null}class $M{constructor(t,e,o){this.previousValue=t,this.currentValue=e,this.firstChange=o}isFirstChange(){return this.firstChange}}function Yo(){return Bp}function Bp(n){return n.type.prototype.ngOnChanges&&(n.setInput=Fp),Rf}function Rf(){const n=Hp(this),t=n?.current;if(t){const e=n.previous;if(e===Ya)n.previous=t;else for(let o in t)e[o]=t[o];n.current=null,this.ngOnChanges(t)}}function Fp(n,t,e,o){const r=this.declaredInputs[e],i=Hp(n)||function e2(n,t){return n[Yp]=t}(n,{previous:Ya,current:null}),a=i.current||(i.current={}),s=i.previous,c=s[r];a[r]=new $M(c&&c.currentValue,t,s===Ya),n[o]=t}Yo.ngInherit=!0;const Yp="__ngSimpleChanges__";function Hp(n){return n[Yp]||null}const la=function(n,t,e){},GM="svg";function zr(n){for(;Array.isArray(n);)n=n[Ir];return n}function Lc(n,t){return zr(t[n])}function Ci(n,t){return zr(t[n.index])}function Tl(n,t){return n.data[t]}function nc(n,t){return n[t]}function Kn(n,t){const e=t[n];return Ri(e)?e:e[Ir]}function n2(n){return 64==(64&n[u1])}function ms(n,t){return null==t?null:n[t]}function ja(n){n[kp]=0}function Sf(n,t){n[Ll]+=t;let e=n,o=n[qo];for(;null!==o&&(1===t&&1===e[Ll]||-1===t&&0===e[Ll]);)o[Ll]+=t,e=o,o=o[qo]}const r1={lFrame:ob(null),bindingsEnabled:!0};function QM(){return r1.bindingsEnabled}function mt(){return r1.lFrame.lView}function f1(){return r1.lFrame.tView}function R0(n){return r1.lFrame.contextLView=n,n[Oo]}function v0(n){return r1.lFrame.contextLView=null,n}function pr(){let n=tb();for(;null!==n&&64===n.type;)n=n.parent;return n}function tb(){return r1.lFrame.currentTNode}function Fr(n,t){const e=r1.lFrame;e.currentTNode=n,e.isParent=t}function Pt(){return r1.lFrame.isParent}function Df(){r1.lFrame.isParent=!1}function dr(){const n=r1.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function _s(){return r1.lFrame.bindingIndex}function Rl(){return r1.lFrame.bindingIndex++}function zs(n){const t=r1.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function kf(n,t){const e=r1.lFrame;e.bindingIndex=e.bindingRootIndex=n,Xp(t)}function Xp(n){r1.lFrame.currentDirectiveIndex=n}function Ef(){return r1.lFrame.currentQueryIndex}function If(n){r1.lFrame.currentQueryIndex=n}function vs(n){const t=n[jt];return 2===t.type?t.declTNode:1===t.type?n[Nr]:null}function a2(n,t,e){if(e&h0.SkipSelf){let r=t,i=n;for(;!(r=r.parent,null!==r||e&h0.Host||(r=vs(i),null===r||(i=i[Y1],10&r.type))););if(null===r)return!1;t=r,n=i}const o=r1.lFrame=si();return o.currentTNode=t,o.lView=n,!0}function As(n){const t=si(),e=n[jt];r1.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function si(){const n=r1.lFrame,t=null===n?null:n.child;return null===t?ob(n):t}function ob(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Va(){const n=r1.lFrame;return r1.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const s2=Va;function Sl(){const n=Va();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ci(){return r1.lFrame.selectedIndex}function ys(n){r1.lFrame.selectedIndex=n}function Co(){const n=r1.lFrame;return Tl(n.tView,n.selectedIndex)}function Di(){r1.lFrame.currentNamespace=GM}function rc(){!function ib(){r1.lFrame.currentNamespace=null}()}function Dl(n,t){for(let e=t.directiveStart,o=t.directiveEnd;e=o)break}else t[c]<0&&(n[kp]+=65536),(s>11>16&&(3&n[u1])===t){n[u1]+=2048,la(4,s,i);try{i.call(s)}finally{la(5,s,i)}}}else{la(4,s,i);try{i.call(s)}finally{la(5,s,i)}}}const jp=-1;class jd{constructor(t,e,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=o}}function Rc(n,t,e){let o=0;for(;ot){a=i-1;break}}}for(;i>16}(n),o=t;for(;e>0;)o=o[Y1],e--;return o}let Qe=!0;function r0(n){const t=Qe;return Qe=n,t}const L1=255,Ko=5;let ac=0;const ur={};function sb(n,t){const e=jv(n,t);if(-1!==e)return e;const o=t[jt];o.firstCreatePass&&(n.injectorIndex=t.length,cb(o.data,n),cb(t,null),cb(o.blueprint,null));const r=Nf(n,t),i=n.injectorIndex;if(k(r)){const a=Y(r),s=we(r,t),c=s[jt].data;for(let p=0;p<8;p++)t[i+p]=s[a+p]|c[a+p]}return t[i+8]=r,i}function cb(n,t){n.push(0,0,0,0,0,0,0,0,t)}function jv(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Nf(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,o=null,r=t;for(;null!==r;){if(o=pa(r),null===o)return jp;if(e++,r=r[Y1],-1!==o.injectorIndex)return o.injectorIndex|e<<16}return jp}function lb(n,t,e){!function Xv(n,t,e){let o;"string"==typeof e?o=e.charCodeAt(0)||0:e.hasOwnProperty(Tp)&&(o=e[Tp]),null==o&&(o=e[Tp]=ac++);const r=o&L1;t.data[n+(r>>Ko)]|=1<=0?t&L1:db:t}(e);if("function"==typeof i){if(!a2(t,n,o))return o&h0.Host?Uv(r,0,o):pb(t,e,o,r);try{const a=i(o);if(null!=a||o&h0.Optional)return a;Ed()}finally{s2()}}else if("number"==typeof i){let a=null,s=jv(n,t),c=jp,p=o&h0.Host?t[B0][Nr]:null;for((-1===s||o&h0.SkipSelf)&&(c=-1===s?Nf(n,t):t[s+8],c!==jp&&Ga(o,!1)?(a=t[jt],s=Y(c),t=we(c,t)):s=-1);-1!==s;){const d=t[jt];if($v(i,s,d.data)){const u=vx(s,t,e,a,o,p);if(u!==ur)return u}c=t[s+8],c!==jp&&Ga(o,t[jt].data[s+8]===p)&&$v(i,s,t)?(a=d,s=Y(c),t=we(c,t)):s=-1}}return r}function vx(n,t,e,o,r,i){const a=t[jt],s=a.data[n+8],d=Up(s,a,e,null==o?xc(s)&&Qe:o!=a&&0!=(3&s.type),r&h0.Host&&i===s);return null!==d?Vp(t,a,d,s):ur}function Up(n,t,e,o,r){const i=n.providerIndexes,a=t.data,s=1048575&i,c=n.directiveStart,d=i>>20,h=r?s+d:n.directiveEnd;for(let M=o?s:s+d;M=c&&g.type===e)return M}if(r){const M=a[c];if(M&&yi(M)&&M.type===e)return c}return null}function Vp(n,t,e,o){let r=n[e];const i=t.data;if(function $a(n){return n instanceof jd}(r)){const a=r;a.resolving&&function LM(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new xt(-200,`Circular dependency in DI detected for ${n}${e}`)}(function dn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():E0(n)}(i[e]));const s=r0(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Li(a.injectImpl):null;a2(n,o,h0.Default);try{r=n[e]=a.factory(void 0,i,n,o),t.firstCreatePass&&e>=o.directiveStart&&function ic(n,t,e){const{ngOnChanges:o,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(o){const a=Bp(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),i&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,i),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,i))}(e,i[e],t)}finally{null!==c&&Li(c),r0(s),a.resolving=!1,s2()}}return r}function $v(n,t,e){return!!(e[t+(n>>Ko)]&1<{const t=n.prototype.constructor,e=t[gs]||ub(t),o=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==o;){const i=r[gs]||ub(r);if(i&&i!==e)return i;r=Object.getPrototypeOf(r)}return i=>new i})}function ub(n){return yl(n)?()=>{const t=ub(P0(n));return t&&t()}:qc(n)}function pa(n){const t=n[jt],e=t.type;return 2===e?t.declTNode:1===e?n[Nr]:null}const Vd="__parameters__",Il="__prop__metadata__";function Bf(n){return function(...e){if(n){const o=n(...e);for(const r in o)this[r]=o[r]}}}function $d(n,t,e){return sa(()=>{const o=Bf(t);function r(...i){if(this instanceof r)return o.apply(this,i),this;const a=new r(...i);return s.annotation=a,s;function s(c,p,d){const u=c.hasOwnProperty(Vd)?c[Vd]:Object.defineProperty(c,Vd,{value:[]})[Vd];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(a),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}function fb(n,t,e,o){return sa(()=>{const r=Bf(t);function i(...a){if(this instanceof i)return r.apply(this,a),this;const s=new i(...a);return function c(p,d){const u=p.constructor,h=u.hasOwnProperty(Il)?u[Il]:Object.defineProperty(u,Il,{value:{}})[Il];h[d]=h.hasOwnProperty(d)&&h[d]||[],h[d].unshift(s),o&&o(p,d,...a)}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class Qt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Zd(n,t){n.forEach(e=>Array.isArray(e)?Zd(e,t):t(e))}function Kv(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Kd(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Sc(n,t){const e=[];for(let o=0;o=0?n[1|o]=e:(o=~o,function Wx(n,t,e,o){let r=n.length;if(r==t)n.push(e,o);else if(1===r)n.push(o,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=o}}(n,o,t,e)),o}function Jd(n,t){const e=u2(n,t);if(e>=0)return n[1|e]}function u2(n,t){return function mm(n,t,e){let o=0,r=n.length>>e;for(;r!==o;){const i=o+(r-o>>1),a=n[i<t?r=i:o=i+1}return~(r<({token:n})),-1),Gp=Fa($d("Optional"),8),f2=Fa($d("SkipSelf"),4);var ha=(()=>((ha=ha||{})[ha.Important=1]="Important",ha[ha.DashCase=2]="DashCase",ha))();const Xf=new Map;let uA=0;function xm(n){return Xf.get(n)||null}class yb{get lView(){return xm(this.lViewId)}constructor(t,e,o){this.lViewId=t,this.nodeIndex=e,this.native=o}}function wi(n){let t=Uf(n);if(t){if(Ri(t)){const e=t;let o,r,i;if(MA(n)){if(o=function gA(n,t){const e=n[jt].components;if(e)for(let o=0;o=0){const s=zr(i[a]),c=Ps(i,a,s);pi(s,c),t=c;break}}}}return t||null}function Ps(n,t,e){return new yb(n[ec],t,e)}const qm="__ngContext__";function pi(n,t){Ri(t)?(n[qm]=t[ec],function Pm(n){Xf.set(n[ec],n)}(t)):n[qm]=t}function Uf(n){const t=n[qm];return"number"==typeof t?xm(t):t||null}function MA(n){return n&&n.constructor&&n.constructor.\u0275cmp}function bA(n,t){const e=n[jt];for(let o=Cn;o0&&(n[e-1][Xa]=o[Xa]);const i=Kd(n,ai+t);!function $x(n,t){Gf(n,t,t[De],2,null,null),t[Ir]=null,t[Nr]=null}(o[jt],o);const a=i[Wo];null!==a&&a.detachView(i[jt]),o[qo]=null,o[Xa]=null,o[u1]&=-65}return o}function xb(n,t){if(!(128&t[u1])){const e=t[De];e.destroyNode&&Gf(n,t,e,3,null,null),function vA(n){let t=n[N0];if(!t)return Rm(n[jt],n);for(;t;){let e=null;if(Ri(t))e=t[N0];else{const o=t[ai];o&&(e=o)}if(!e){for(;t&&!t[Xa]&&t!==n;)Ri(t)&&Rm(t[jt],t),t=t[qo];null===t&&(t=n),Ri(t)&&Rm(t[jt],t),e=t&&t[Xa]}t=e}}(t)}}function Rm(n,t){if(!(128&t[u1])){t[u1]&=-65,t[u1]|=128,function eq(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let o=0;o=0?o[r=a]():o[r=-a].unsubscribe(),i+=2}else{const a=o[r=e[i+1]];e[i].call(a)}if(null!==o){for(let i=r+1;i-1){const{encapsulation:i}=n.data[o.directiveStart+r];if(i===ca.None||i===ca.Emulated)return null}return Ci(o,e)}}(n,t.parent,e)}function nu(n,t,e,o,r){n.insertBefore(t,e,o,r)}function wA(n,t,e){n.appendChild(t,e)}function PA(n,t,e,o,r){null!==o?nu(n,t,e,o,r):wA(n,t,e)}function qb(n,t){return n.parentNode(t)}function xA(n,t,e){return WA(n,t,e)}let Sm,Rb,Em,Sb,WA=function qA(n,t,e){return 40&n.type?Ci(n,e):null};function Wb(n,t,e,o){const r=yA(n,o,t),i=t[De],s=xA(o.parent||t[Nr],o,t);if(null!=r)if(Array.isArray(e))for(let c=0;cn,createScript:n=>n,createScriptURL:n=>n})}catch{}return Rb}()?.createHTML(n)||n}function Im(){if(void 0===Sb&&(Sb=null,vn.trustedTypes))try{Sb=vn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Sb}function kA(n){return Im()?.createHTML(n)||n}function IA(n){return Im()?.createScriptURL(n)||n}class ru{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Wi})`}}class dq extends ru{getTypeName(){return"HTML"}}class uq extends ru{getTypeName(){return"Style"}}class NA extends ru{getTypeName(){return"Script"}}class BA extends ru{getTypeName(){return"URL"}}class fq extends ru{getTypeName(){return"ResourceURL"}}function Za(n){return n instanceof ru?n.changingThisBreaksApplicationSecurity:n}function Dc(n,t){const e=function hq(n){return n instanceof ru&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Wi})`)}return e===t}class mq{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(ou(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class _q{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const o=this.inertDocument.createElement("body");e.appendChild(o)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=ou(t),e;const o=this.inertDocument.createElement("body");return o.innerHTML=ou(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(o),o}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();Eb.hasOwnProperty(e)&&!YA.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Fb(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Cq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wq=/([^\#-~ |!])/g;function Fb(n){return n.replace(/&/g,"&").replace(Cq,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wq,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Zf;function jA(n,t){let e=null;try{Zf=Zf||function FA(n){const t=new _q(n);return function zq(){try{return!!(new window.DOMParser).parseFromString(ou(""),"text/html")}catch{return!1}}()?new mq(t):t}(n);let o=t?String(t):"";e=Zf.getInertBodyElement(o);let r=5,i=o;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,o=i,i=e.innerHTML,e=Zf.getInertBodyElement(o)}while(o!==i);return ou((new Bb).sanitizeChildren(Fm(e)||e))}finally{if(e){const o=Fm(e)||e;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function Fm(n){return"content"in n&&function Pq(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var mo=(()=>((mo=mo||{})[mo.NONE=0]="NONE",mo[mo.HTML=1]="HTML",mo[mo.STYLE=2]="STYLE",mo[mo.SCRIPT=3]="SCRIPT",mo[mo.URL=4]="URL",mo[mo.RESOURCE_URL=5]="RESOURCE_URL",mo))();function Kf(n){const t=lc();return t?kA(t.sanitize(mo.HTML,n)||""):Dc(n,"HTML")?kA(Za(n)):jA(function DA(){return void 0!==Em?Em:typeof document<"u"?document:void 0}(),E0(n))}function Tn(n){const t=lc();return t?t.sanitize(mo.URL,n)||"":Dc(n,"URL")?Za(n):kb(E0(n))}function UA(n){const t=lc();if(t)return IA(t.sanitize(mo.RESOURCE_URL,n)||"");if(Dc(n,"ResourceURL"))return IA(Za(n));throw new xt(904,!1)}function lc(){const n=mt();return n&&n[l0]}const a1=new Qt("ENVIRONMENT_INITIALIZER"),VA=new Qt("INJECTOR",-1),ki=new Qt("INJECTOR_DEF_TYPES");class Ho{get(t,e=Pl){if(e===Pl){const o=new Error(`NullInjectorError: No provider for ${Hn(t)}!`);throw o.name="NullInjectorError",o}return e}}function Jp(...n){return{\u0275providers:$A(0,n),\u0275fromNgModule:!0}}function $A(n,...t){const e=[],o=new Set;let r;return Zd(t,i=>{const a=i;Ym(a,e,[],o)&&(r||(r=[]),r.push(a))}),void 0!==r&&GA(r,e),e}function GA(n,t){for(let e=0;e{t.push(i)})}}function Ym(n,t,e,o){if(!(n=P0(n)))return!1;let r=null,i=lr(n);const a=!i&&z1(n);if(i||a){if(a&&!a.standalone)return!1;r=n}else{const c=n.ngModule;if(i=lr(c),!i)return!1;r=c}const s=o.has(r);if(a){if(s)return!1;if(o.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const p of c)Ym(p,t,e,o)}}else{if(!i)return!1;{if(null!=i.imports&&!s){let p;o.add(r);try{Zd(i.imports,d=>{Ym(d,t,e,o)&&(p||(p=[]),p.push(d))})}finally{}void 0!==p&&GA(p,t)}if(!s){const p=qc(r)||(()=>new r);t.push({provide:r,useFactory:p,deps:un},{provide:ki,useValue:r,multi:!0},{provide:a1,useValue:()=>Te(r),multi:!0})}const c=i.providers;null==c||s||Hm(c,d=>{t.push(d)})}}return r!==n&&void 0!==n.providers}function Hm(n,t){for(let e of n)yp(e)&&(e=e.\u0275providers),Array.isArray(e)?Hm(e,t):t(e)}const Xm=mn({provide:String,useValue:mn});function jm(n){return null!==n&&"object"==typeof n&&Xm in n}function Ec(n){return"function"==typeof n}const Lo=new Qt("Set Injector scope."),Jf={},Sq={};let Vm;function Yb(){return void 0===Vm&&(Vm=new Ho),Vm}class pc{}class ZA extends pc{get destroyed(){return this._destroyed}constructor(t,e,o,r){super(),this.parent=e,this.source=o,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qp(t,a=>this.processProvider(a)),this.records.set(VA,m2(void 0,this)),r.has("environment")&&this.records.set(pc,m2(void 0,this));const i=this.records.get(Lo);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ki.multi,un,h0.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=qp(this),o=Li(void 0);try{return t()}finally{qp(e),Li(o)}}get(t,e=Pl,o=h0.Default){this.assertNotDestroyed(),o=Bd(o);const r=qp(this),i=Li(void 0);try{if(!(o&h0.SkipSelf)){let s=this.records.get(t);if(void 0===s){const c=function Ka(n){return"function"==typeof n||"object"==typeof n&&n instanceof Qt}(t)&&Id(t);s=c&&this.injectableDefInScope(c)?m2($m(t),Jf):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}return(o&h0.Self?Yb():this.parent).get(t,e=o&h0.Optional&&e===Pl?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Ba]=a[Ba]||[]).unshift(Hn(t)),r)throw a;return function ql(n,t,e,o){const r=n[Ba];throw t[Qs]&&r.unshift(t[Qs]),n.message=function FM(n,t,e,o=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==Zn?n.slice(2):n;let r=Hn(t);if(Array.isArray(t))r=t.map(Hn).join(" -> ");else if("object"==typeof t){let i=[];for(let a in t)if(t.hasOwnProperty(a)){let s=t[a];i.push(a+":"+("string"==typeof s?JSON.stringify(s):Hn(s)))}r=`{${i.join(", ")}}`}return`${e}${o?"("+o+")":""}[${r}]: ${n.replace(xp,"\n ")}`}("\n"+n.message,r,e,o),n[ju]=r,n[Ba]=null,n}(a,t,"R3InjectorError",this.source)}throw a}finally{Li(i),qp(r)}}resolveInjectorInitializers(){const t=qp(this),e=Li(void 0);try{const o=this.get(a1.multi,un,h0.Self);for(const r of o)r()}finally{qp(t),Li(e)}}toString(){const t=[],e=this.records;for(const o of e.keys())t.push(Hn(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new xt(205,!1)}processProvider(t){let e=Ec(t=P0(t))?t:P0(t&&t.provide);const o=function Qf(n){return jm(n)?m2(void 0,n.useValue):m2(Hb(n),Jf)}(t);if(Ec(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=m2(void 0,Jf,!0),r.factory=()=>Wp(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,o)}hydrate(t,e){return e.value===Jf&&(e.value=Sq,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Xb(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=P0(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function $m(n){const t=Id(n),e=null!==t?t.factory:qc(n);if(null!==e)return e;if(n instanceof Qt)throw new xt(204,!1);if(n instanceof Function)return function KA(n){const t=n.length;if(t>0)throw Sc(t,"?"),new xt(204,!1);const e=function IM(n){const t=n&&(n[wp]||n[Cl]);if(t){const e=function nm(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new xt(204,!1)}function Hb(n,t,e){let o;if(Ec(n)){const r=P0(n);return qc(r)||$m(r)}if(jm(n))o=()=>P0(n.useValue);else if(function Um(n){return!(!n||!n.useFactory)}(n))o=()=>n.useFactory(...Wp(n.deps||[]));else if(function kc(n){return!(!n||!n.useExisting)}(n))o=()=>Te(P0(n.useExisting));else{const r=P0(n&&(n.useClass||n.provide));if(!function JA(n){return!!n.deps}(n))return qc(r)||$m(r);o=()=>new r(...Wp(n.deps))}return o}function m2(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Qp(n,t){for(const e of n)Array.isArray(e)?Qp(e,t):e&&yp(e)?Qp(e.\u0275providers,t):t(e)}class Dq{}class QA{}class ty{resolveComponentFactory(t){throw function kq(n){const t=Error(`No component factory found for ${Hn(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Pi=(()=>{class n{}return n.NULL=new ty,n})();function v1(){return iu(pr(),mt())}function iu(n,t){return new fn(Ci(n,t))}let fn=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=v1,n})();function ny(n){return n instanceof fn?n.nativeElement:n}class Gm{}let P1=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Eq(){const n=mt(),e=Kn(pr().index,n);return(Ri(e)?e:n)[De]}(),n})(),oy=(()=>{class n{}return n.\u0275prov=et({token:n,providedIn:"root",factory:()=>null}),n})();class Fl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Iq=new Fl("15.1.5"),Zm={},Km="ngOriginalError";function Jm(n){return n[Km]}class _2{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Jm(t);for(;e&&Jm(e);)e=Jm(e);return e||null}}function ry(n){return n.ownerDocument.defaultView}function Yl(n){return n instanceof Function?n():n}function iy(n,t,e){let o=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const i=t.length;if(r+i===o||n.charCodeAt(r+i)<=32)return r}e=r+1}}const ay="ng-template";function Vq(n,t,e){let o=0;for(;oi?"":r[u+1].toLowerCase();const M=8&o?h:null;if(M&&-1!==iy(M,p,0)||2&o&&p!==h){if(dc(o))return!1;a=!0}}}}else{if(!a&&!dc(o)&&!dc(c))return!1;if(a&&dc(c))continue;a=!1,o=c|1&o}}return dc(o)||a}function dc(n){return 0==(1&n)}function sy(n,t,e,o){if(null===t)return-1;let r=0;if(o||!e){let i=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&o?r+="."+a:4&o&&(r+=" "+a);else""!==r&&!dc(a)&&(t+=dy(i,r),r=""),o=a,i=i||!dc(o);e++}return""!==r&&(t+=dy(i,r)),t}const j0={};function P(n){uy(f1(),mt(),ci()+n,!1)}function uy(n,t,e,o){if(!o)if(3==(3&t[u1])){const i=n.preOrderCheckHooks;null!==i&&ws(t,i,e)}else{const i=n.preOrderHooks;null!==i&&Xd(t,i,0,e)}ys(e)}function by(n,t=null,e=null,o){const r=gy(n,t,e,o);return r.resolveInjectorInitializers(),r}function gy(n,t=null,e=null,o,r=new Set){const i=[e||un,Jp(n)];return o=o||("object"==typeof n?void 0:Hn(n)),new ZA(i,t||Yb(),o||null,r)}let Qo=(()=>{class n{static create(e,o){if(Array.isArray(e))return by({name:""},o,e,"");{const r=e.name??"";return by({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Pl,n.NULL=new Ho,n.\u0275prov=et({token:n,providedIn:"any",factory:()=>Te(VA)}),n.__NG_ELEMENT_ID__=-1,n})();function Re(n,t=h0.Default){const e=mt();return null===e?Te(n,t):w1(pr(),e,P0(n),t)}function Vb(n,t){const e=n.contentQueries;if(null!==e)for(let o=0;oCn&&uy(n,t,Cn,!1),la(a?2:0,r),e(o,r)}finally{ys(i),la(a?3:1,r)}}function p3(n,t,e){if(Os(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,o,i)}}(n,t,o,eh(n,e,r.hostVars,j0),r)}function Pe(n,t,e,o,r,i){const a=Ci(n,t);!function Ne(n,t,e,o,r,i,a){if(null==i)n.removeAttribute(t,r,e);else{const s=null==a?E0(i):a(i,o||"",r);n.setAttribute(t,r,s,e)}}(t[De],a,i,n.value,e,o,r)}function dt(n,t,e,o,r,i){const a=i[t];if(null!==a){const s=o.setInput;for(let c=0;c0&&M1(e)}}function M1(n){for(let o=Pb(n);null!==o;o=Wm(o))for(let r=ai;r0&&M1(i)}const e=n[jt].components;if(null!==e)for(let o=0;o0&&M1(r)}}function H0(n,t){const e=Kn(t,n),o=e[jt];(function B1(n,t){for(let e=t.length;e-1&&(Tm(t,o),Kd(e,o))}this._attachedToViewContainer=!1}xb(this._lView[jt],this._lView)}onDestroy(t){xy(this._lView[jt],this._lView,null,t)}markForCheck(){Ei(this._cdRefInjectingView||this._lView)}detach(){this._lView[u1]&=-65}reattach(){this._lView[u1]|=64}detectChanges(){Hr(this._lView[jt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new xt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Zx(n,t){Gf(n,t,t[De],2,null,null)}(this._lView[jt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new xt(902,!1);this._appRef=t}}class n0e extends h3{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Hr(t[jt],t,t[Oo],!1)}checkNoChanges(){}get context(){return null}}class _I extends Pi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=z1(t);return new M3(e,this.ngModule)}}function zI(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class r0e{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,o){o=Bd(o);const r=this.injector.get(t,Zm,o);return r!==Zm||e===Zm?r:this.parentInjector.get(t,e,o)}}class M3 extends QA{get inputs(){return zI(this.componentDef.inputs)}get outputs(){return zI(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function Qq(n){return n.map(Jq).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,o,r){let i=(r=r||this.ngModule)instanceof pc?r:r?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const a=i?new r0e(t,i):t,s=a.get(Gm,null);if(null===s)throw new xt(407,!1);const c=a.get(oy,null),p=s.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",u=o?function g6(n,t,e){return n.selectRootElement(t,e===ca.ShadowDom)}(p,o,this.componentDef.encapsulation):Ma(p,d,function o0e(n){const t=n.toLowerCase();return"svg"===t?GM:"math"===t?"math":null}(d)),h=this.componentDef.onPush?288:272,M=d3(0,null,null,1,0,null,null,null,null,null),g=$b(null,M,null,h,null,null,s,p,c,a,null);let v,A;As(g);try{const y=this.componentDef;let q,L=null;y.findHostDirectiveDefs?(q=[],L=new Map,y.findHostDirectiveDefs(y,q,L),q.push(y)):q=[y];const D=function a0e(n,t){const e=n[jt],o=Cn;return n[o]=t,v2(e,o,2,"#host",null)}(g,u),X=function s0e(n,t,e,o,r,i,a,s){const c=r[jt];!function c0e(n,t,e,o){for(const r of n)t.mergedAttrs=O(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(Sy(t,t.mergedAttrs,!0),null!==e&&km(o,e,t))}(o,n,t,a);const p=i.createRenderer(t,e),d=$b(r,Py(e),null,e.onPush?32:16,r[n.index],n,i,p,s||null,null,null);return c.firstCreatePass&&b(c,n,o.length-1),I1(r,d),r[n.index]=d}(D,u,y,q,g,s,p);A=Tl(M,Cn),u&&function p0e(n,t,e,o){if(o)Rc(n,e,["ng-version",Iq.full]);else{const{attrs:r,classes:i}=function e6(n){const t=[],e=[];let o=1,r=2;for(;o0&&SA(n,e,i.join(" "))}}(p,y,u,o),void 0!==e&&function d0e(n,t,e){const o=n.projection=[];for(let r=0;r=0;o--){const r=n[o];r.hostVars=t+=r.hostVars,r.hostAttrs=O(r.hostAttrs,e=O(e,r.hostAttrs))}}(o)}function P6(n){return n===Ya?{}:n===un?[]:n}function h0e(n,t){const e=n.viewQuery;n.viewQuery=e?(o,r)=>{t(o,r),e(o,r)}:t}function M0e(n,t){const e=n.contentQueries;n.contentQueries=e?(o,r,i)=>{t(o,r,i),e(o,r,i)}:t}function b0e(n,t){const e=n.hostBindings;n.hostBindings=e?(o,r)=>{t(o,r),e(o,r)}:t}let ky=null;function oh(){if(!ky){const n=vn.Symbol;if(n&&n.iterator)ky=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(zr(D[o.index])):o.index;let L=null;if(!a&&s&&(L=function W0e(n,t,e,o){const r=n.cleanup;if(null!=r)for(let i=0;ic?s[c]:null}"string"==typeof a&&(i+=2)}return null}(n,t,r,o.index)),null!==L)(L.__ngLastListenerFn__||L).__ngNextListenerFn__=i,L.__ngLastListenerFn__=i,h=!1;else{i=NI(o,t,d,i,!1);const D=e.listen(A,r,i);u.push(i,D),p&&p.push(r,q,y,y+1)}}else i=NI(o,t,d,i,!1);const M=o.outputs;let g;if(h&&null!==M&&(g=M[r])){const v=g.length;if(v)for(let A=0;A-1?Kn(n.index,t):t);let c=II(t,e,o,a),p=i.__ngNextListenerFn__;for(;p;)c=II(t,e,p,a)&&c,p=p.__ngNextListenerFn__;return r&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function ce(n=1){return function Tc(n){return(r1.lFrame.contextLView=function rb(n,t){for(;n>0;)t=t[Y1],n--;return t}(n,r1.lFrame.contextLView))[Oo]}(n)}function L0e(n,t){let e=null;const o=function Zq(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function L6(n){return 2|n}function ih(n){return(131068&n)>>2}function T6(n,t){return-131069&n|t<<2}function R6(n){return 1|n}function ZI(n,t,e,o,r){const i=n[e+1],a=null===t;let s=o?A2(i):ih(i),c=!1;for(;0!==s&&(!1===c||a);){const d=n[s+1];E0e(n[s],t)&&(c=!0,n[s+1]=o?R6(d):L6(d)),s=o?A2(d):ih(d)}c&&(n[e+1]=o?L6(i):R6(i))}function E0e(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&u2(n,t)>=0}const di={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function KI(n){return n.substring(di.key,di.keyEnd)}function JI(n,t){const e=di.textEnd;return e===t?-1:(t=di.keyEnd=function F0e(n,t,e){for(;t32;)t++;return t}(n,di.key=t,e),ag(n,t,e))}function ag(n,t,e){for(;t=0;e=JI(t,e))Yr(n,KI(t),!0)}function Hl(n,t,e,o){const r=mt(),i=f1(),a=zs(2);i.firstUpdatePass&&rN(i,n,a,o),t!==j0&&ba(r,a,t)&&aN(i,i.data[ci()],r,r[De],n,r[a+1]=function K0e(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Hn(Za(n)))),n}(t,e),o,a)}function Xl(n,t,e,o){const r=f1(),i=zs(2);r.firstUpdatePass&&rN(r,null,i,o);const a=mt();if(e!==j0&&ba(a,i,e)){const s=r.data[ci()];if(cN(s,o)&&!oN(r,i)){let c=o?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Ap(c,e||"")),q6(r,s,a,e,o)}else!function Z0e(n,t,e,o,r,i,a,s){r===j0&&(r=un);let c=0,p=0,d=0=n.expandoStartIndex}function rN(n,t,e,o){const r=n.data;if(null===r[e+1]){const i=r[ci()],a=oN(n,e);cN(i,o)&&null===t&&!a&&(t=!1),t=function j0e(n,t,e,o){const r=function r2(n){const t=r1.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let i=o?t.residualClasses:t.residualStyles;if(null===r)0===(o?t.classBindings:t.styleBindings)&&(e=O3(e=S6(null,n,t,e,o),t.attrs,o),i=null);else{const a=t.directiveStylingLast;if(-1===a||n[a]!==r)if(e=S6(r,n,t,e,o),null===i){let c=function U0e(n,t,e){const o=e?t.classBindings:t.styleBindings;if(0!==ih(o))return n[A2(o)]}(n,t,o);void 0!==c&&Array.isArray(c)&&(c=S6(null,n,t,c[1],o),c=O3(c,t.attrs,o),function V0e(n,t,e,o){n[A2(e?t.classBindings:t.styleBindings)]=o}(n,t,o,c))}else i=function $0e(n,t,e){let o;const r=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(p=!0)):d=e,r)if(0!==c){const h=A2(n[s+1]);n[o+1]=Ny(h,s),0!==h&&(n[h+1]=T6(n[h+1],o)),n[s+1]=function R0e(n,t){return 131071&n|t<<17}(n[s+1],o)}else n[o+1]=Ny(s,0),0!==s&&(n[s+1]=T6(n[s+1],o)),s=o;else n[o+1]=Ny(c,0),0===s?s=o:n[c+1]=T6(n[c+1],o),c=o;p&&(n[o+1]=L6(n[o+1])),ZI(n,d,o,!0),ZI(n,d,o,!1),function k0e(n,t,e,o,r){const i=r?n.residualClasses:n.residualStyles;null!=i&&"string"==typeof t&&u2(i,t)>=0&&(e[o+1]=R6(e[o+1]))}(t,d,n,o,i),a=Ny(s,c),i?t.classBindings=a:t.styleBindings=a}(r,i,t,e,a,o)}}function S6(n,t,e,o,r){let i=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=n[r],p=Array.isArray(c),d=p?c[1]:c,u=null===d;let h=e[r+1];h===j0&&(h=u?un:void 0);let M=u?Jd(h,o):d===o?h:void 0;if(p&&!By(M)&&(M=Jd(c,o)),By(M)&&(s=M,a))return s;const g=n[r+1];r=a?A2(g):ih(g)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(s=Jd(c,o))}return s}function By(n){return void 0!==n}function cN(n,t){return 0!=(n.flags&(t?8:16))}function l(n,t=""){const e=mt(),o=f1(),r=n+Cn,i=o.firstCreatePass?v2(o,r,1,t,null):o.data[r],a=e[r]=function Lm(n,t){return n.createText(t)}(e[De],t);Wb(o,e,a,i),Fr(i,!1)}function t0(n){return Ct("",n,""),t0}function Ct(n,t,e){const o=mt(),r=Jb(o,n,t,e);return r!==j0&&au(o,ci(),r),Ct}function cu(n,t,e,o,r){const i=mt(),a=Qb(i,n,t,e,o,r);return a!==j0&&au(i,ci(),a),cu}function xn(n,t,e){Xl(Yr,od,Jb(mt(),n,t,e),!0)}function lu(n,t,e,o,r){Xl(Yr,od,Qb(mt(),n,t,e,o,r),!0)}function bN(n,t,e,o,r,i,a){Xl(Yr,od,function eg(n,t,e,o,r,i,a,s){const p=Iy(n,_s(),e,r,a);return zs(3),p?t+E0(e)+o+E0(r)+i+E0(a)+s:j0}(mt(),n,t,e,o,r,i,a),!0)}const ah=void 0;var h1e=["en",[["a","p"],["AM","PM"],ah],[["AM","PM"],ah,ah],[["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"]],ah,[["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"]],ah,[["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}",ah,"{1} 'at' {0}",ah],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function f1e(n){const e=Math.floor(Math.abs(n)),o=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===o?1:5}];let sg={};function es(n){const t=function M1e(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=qN(t);if(e)return e;const o=t.split("-")[0];if(e=qN(o),e)return e;if("en"===o)return h1e;throw new xt(701,!1)}function qN(n){return n in sg||(sg[n]=vn.ng&&vn.ng.common&&vn.ng.common.locales&&vn.ng.common.locales[n]),sg[n]}var d0=(()=>((d0=d0||{})[d0.LocaleId=0]="LocaleId",d0[d0.DayPeriodsFormat=1]="DayPeriodsFormat",d0[d0.DayPeriodsStandalone=2]="DayPeriodsStandalone",d0[d0.DaysFormat=3]="DaysFormat",d0[d0.DaysStandalone=4]="DaysStandalone",d0[d0.MonthsFormat=5]="MonthsFormat",d0[d0.MonthsStandalone=6]="MonthsStandalone",d0[d0.Eras=7]="Eras",d0[d0.FirstDayOfWeek=8]="FirstDayOfWeek",d0[d0.WeekendRange=9]="WeekendRange",d0[d0.DateFormat=10]="DateFormat",d0[d0.TimeFormat=11]="TimeFormat",d0[d0.DateTimeFormat=12]="DateTimeFormat",d0[d0.NumberSymbols=13]="NumberSymbols",d0[d0.NumberFormats=14]="NumberFormats",d0[d0.CurrencyCode=15]="CurrencyCode",d0[d0.CurrencySymbol=16]="CurrencySymbol",d0[d0.CurrencyName=17]="CurrencyName",d0[d0.Currencies=18]="Currencies",d0[d0.Directionality=19]="Directionality",d0[d0.PluralCase=20]="PluralCase",d0[d0.ExtraData=21]="ExtraData",d0))();const cg="en-US";let WN=cg;function E6(n,t,e,o,r){if(n=P0(n),Array.isArray(n))for(let i=0;i>20;if(Ec(n)||!n.multi){const M=new jd(c,r,Re),g=N6(s,t,r?d:d+h,u);-1===g?(lb(sb(p,a),i,s),I6(i,n,t.length),t.push(s),p.directiveStart++,p.directiveEnd++,r&&(p.providerIndexes+=1048576),e.push(M),a.push(M)):(e[g]=M,a[g]=M)}else{const M=N6(s,t,d+h,u),g=N6(s,t,d,d+h),A=g>=0&&e[g];if(r&&!A||!r&&!(M>=0&&e[M])){lb(sb(p,a),i,s);const y=function une(n,t,e,o,r){const i=new jd(n,e,Re);return i.multi=[],i.index=t,i.componentProviders=0,t7(i,r,o&&!e),i}(r?dne:pne,e.length,r,o,c);!r&&A&&(e[g].providerFactory=y),I6(i,n,t.length,0),t.push(s),p.directiveStart++,p.directiveEnd++,r&&(p.providerIndexes+=1048576),e.push(y),a.push(y)}else I6(i,n,M>-1?M:g,t7(e[r?g:M],c,!r&&o));!r&&o&&A&&e[g].componentProviders++}}}function I6(n,t,e,o){const r=Ec(t),i=function ko(n){return!!n.useClass}(t);if(r||i){const c=(i?P0(t.useClass):t).prototype.ngOnDestroy;if(c){const p=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const d=p.indexOf(e);-1===d?p.push(e,[o,c]):p[d+1].push(o,c)}else p.push(e,c)}}}function t7(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function N6(n,t,e,o){for(let r=e;r{e.providersResolver=(o,r)=>function lne(n,t,e){const o=f1();if(o.firstCreatePass){const r=yi(n);E6(e,o.data,o.blueprint,r,!0),E6(t,o.data,o.blueprint,r,!1)}}(o,r?r(n):n,t)}}class lg{}class n7{}class o7 extends lg{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _I(this);const o=ii(t);this._bootstrapComponents=Yl(o.bootstrap),this._r3Injector=gy(t,e,[{provide:lg,useValue:this},{provide:Pi,useValue:this.componentFactoryResolver}],Hn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class F6 extends n7{constructor(t){super(),this.moduleType=t}create(t){return new o7(this.moduleType,t)}}class hne extends lg{constructor(t,e,o){super(),this.componentFactoryResolver=new _I(this),this.instance=null;const r=new ZA([...t,{provide:lg,useValue:this},{provide:Pi,useValue:this.componentFactoryResolver}],e||Yb(),o,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function jy(n,t,e=null){return new hne(n,t,e).injector}let Mne=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const o=$A(0,e.type),r=o.length>0?jy([o],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=et({token:n,providedIn:"environment",factory:()=>new n(Te(pc))}),n})();function wo(n){n.getStandaloneInjector=t=>t.get(Mne).getOrCreateStandaloneInjector(n)}function Et(n,t,e){const o=dr()+n,r=mt();return r[o]===j0?td(r,o,e?t.call(e):t()):function b3(n,t){return n[t]}(r,o)}function Ht(n,t,e,o){return u7(mt(),dr(),n,t,e,o)}function wr(n,t,e,o,r){return f7(mt(),dr(),n,t,e,o,r)}function p7(n,t,e,o,r,i){return function h7(n,t,e,o,r,i,a,s){const c=t+e;return Iy(n,c,r,i,a)?td(n,c+3,s?o.call(s,r,i,a):o(r,i,a)):y3(n,c+3)}(mt(),dr(),n,t,e,o,r,i)}function y3(n,t){const e=n[t];return e===j0?void 0:e}function u7(n,t,e,o,r,i){const a=t+e;return ba(n,a,r)?td(n,a+1,i?o.call(i,r):o(r)):y3(n,a+1)}function f7(n,t,e,o,r,i,a){const s=t+e;return rh(n,s,r,i)?td(n,s+2,a?o.call(a,r,i):o(r,i)):y3(n,s+2)}function M7(n,t,e,o,r,i,a,s,c){const p=t+e;return function Bc(n,t,e,o,r,i){const a=rh(n,t,e,o);return rh(n,t+2,r,i)||a}(n,p,r,i,a,s)?td(n,p+4,c?o.call(c,r,i,a,s):o(r,i,a,s)):y3(n,p+4)}function pt(n,t){const e=f1();let o;const r=n+Cn;e.firstCreatePass?(o=function qne(n,t){if(t)for(let e=t.length-1;e>=0;e--){const o=t[e];if(n===o.name)return o}}(t,e.pipeRegistry),e.data[r]=o,o.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,o.onDestroy)):o=e.data[r];const i=o.factory||(o.factory=qc(o.type)),a=Li(Re);try{const s=r0(!1),c=i();return r0(s),function P0e(n,t,e,o){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=o}(e,mt(),r,c),c}finally{Li(a)}}function a0(n,t,e){const o=n+Cn,r=mt(),i=nc(r,o);return C3(r,o)?u7(r,dr(),t,i.transform,e,i):i.transform(e)}function _o(n,t,e,o){const r=n+Cn,i=mt(),a=nc(i,r);return C3(i,r)?f7(i,dr(),t,a.transform,e,o,a):a.transform(e,o)}function ga(n,t,e,o,r,i){const a=n+Cn,s=mt(),c=nc(s,a);return C3(s,a)?M7(s,dr(),t,c.transform,e,o,r,i,c):c.transform(e,o,r,i)}function C3(n,t){return n[jt].data[t].pure}function H6(n){return t=>{setTimeout(n,void 0,t)}}const G1=class Tne extends I{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,o){let r=t,i=e||(()=>null),a=o;if(t&&"object"==typeof t){const c=t;r=c.next?.bind(c),i=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(i=H6(i),r&&(r=H6(r)),a&&(a=H6(a)));const s=super.subscribe({next:r,error:i,complete:a});return t instanceof B&&t.add(s),s}};function Rne(){return this._results[oh()]()}class X6{get changes(){return this._changes||(this._changes=new G1)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=oh(),o=X6.prototype;o[e]||(o[e]=Rne)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const o=this;o.dirty=!1;const r=function Jo(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function da(n,t,e){if(n.length!==t.length)return!1;for(let o=0;o{class n{}return n.__NG_ELEMENT_ID__=kne,n})();const Sne=Xc,Dne=class extends Sne{constructor(t,e,o){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=o}createEmbeddedView(t,e){const o=this._declarationTContainer.tViews,r=$b(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,null,e||null);r[Pc]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Wo];return null!==a&&(r[Wo]=a.createEmbeddedView(o)),Gb(o,r,t),new h3(r)}};function kne(){return Uy(pr(),mt())}function Uy(n,t){return 4&n.type?new Dne(t,n,iu(n,t)):null}let uc=(()=>{class n{}return n.__NG_ELEMENT_ID__=Ene,n})();function Ene(){return m7(pr(),mt())}const Ine=uc,g7=class extends Ine{constructor(t,e,o){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=o}get element(){return iu(this._hostTNode,this._hostLView)}get injector(){return new p2(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nf(this._hostTNode,this._hostLView);if(k(t)){const e=we(t,this._hostLView),o=Y(t);return new p2(e[jt].data[o+8],e)}return new p2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=O7(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ai}createEmbeddedView(t,e,o){let r,i;"number"==typeof o?r=o:null!=o&&(r=o.index,i=o.injector);const a=t.createEmbeddedView(e||{},i);return this.insert(a,r),a}createComponent(t,e,o,r,i){const a=t&&!function d2(n){return"function"==typeof n}(t);let s;if(a)s=e;else{const u=e||{};s=u.index,o=u.injector,r=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef}const c=a?t:new M3(z1(t)),p=o||this.parentInjector;if(!i&&null==c.ngModule){const h=(a?p:this.parentInjector).get(pc,null);h&&(i=h)}const d=c.create(p,r,void 0,i);return this.insert(d.hostView,s),d}insert(t,e){const o=t._lView,r=o[jt];if(function sm(n){return Ai(n[qo])}(o)){const d=this.indexOf(t);if(-1!==d)this.detach(d);else{const u=o[qo],h=new g7(u,u[Nr],u[qo]);h.detach(h.indexOf(t))}}const i=this._adjustIndex(e),a=this._lContainer;!function Kx(n,t,e,o){const r=ai+o,i=e.length;o>0&&(e[r-1][Xa]=t),o0)o.push(a[s/2]);else{const p=i[s+1],d=t[-c];for(let u=ai;u({bindingPropertyName:n})),poe=fb("HostListener",(n,t)=>({eventName:n,args:t}));function $y(...n){}const Gy=new Qt("Application Initializer");let Zy=(()=>{class n{constructor(e){this.appInits=e,this.resolve=$y,this.reject=$y,this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,r)=>{this.resolve=o,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],o=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{i.subscribe({complete:s,error:c})});e.push(a)}}Promise.all(e).then(()=>{o()}).catch(r=>{this.reject(r)}),0===e.length&&o(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(Te(Gy,8))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const P3=new Qt("AppId",{providedIn:"root",factory:function j7(){return`${tW()}${tW()}${tW()}`}});function tW(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const U7=new Qt("Platform Initializer"),ug=new Qt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),V7=new Qt("appBootstrapListener");let doe=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const pu=new Qt("LocaleId",{providedIn:"root",factory:()=>c0(pu,h0.Optional|h0.SkipSelf)||function uoe(){return typeof $localize<"u"&&$localize.locale||cg}()}),foe=new Qt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class hoe{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let $7=(()=>{class n{compileModuleSync(e){return new F6(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const o=this.compileModuleSync(e),i=Yl(ii(e).declarations).reduce((a,s)=>{const c=z1(s);return c&&a.push(new M3(c)),a},[]);return new hoe(o,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const goe=(()=>Promise.resolve(0))();function nW(n){typeof Zone>"u"?goe.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class To{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new G1(!1),this.onMicrotaskEmpty=new G1(!1),this.onStable=new G1(!1),this.onError=new G1(!1),typeof Zone>"u")throw new xt(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!o&&e,r.shouldCoalesceRunChangeDetection=o,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Ooe(){let n=vn.requestAnimationFrame,t=vn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function zoe(n){const t=()=>{!function _oe(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(vn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,rW(n),n.isCheckStableRunning=!0,oW(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),rW(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,o,r,i,a,s)=>{try{return K7(n),e.invokeTask(r,i,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||n.shouldCoalesceRunChangeDetection)&&t(),J7(n)}},onInvoke:(e,o,r,i,a,s,c)=>{try{return K7(n),e.invoke(r,i,a,s,c)}finally{n.shouldCoalesceRunChangeDetection&&t(),J7(n)}},onHasTask:(e,o,r,i)=>{e.hasTask(r,i),o===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,rW(n),oW(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,o,r,i)=>(e.handleError(r,i),n.runOutsideAngular(()=>n.onError.emit(i)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!To.isInAngularZone())throw new xt(909,!1)}static assertNotInAngularZone(){if(To.isInAngularZone())throw new xt(909,!1)}run(t,e,o){return this._inner.run(t,e,o)}runTask(t,e,o,r){const i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+r,t,moe,$y,$y);try{return i.runTask(a,e,o)}finally{i.cancelTask(a)}}runGuarded(t,e,o){return this._inner.runGuarded(t,e,o)}runOutsideAngular(t){return this._outer.run(t)}}const moe={};function oW(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function rW(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function K7(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function J7(n){n._nesting--,oW(n)}class voe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new G1,this.onMicrotaskEmpty=new G1,this.onStable=new G1,this.onError=new G1}run(t,e,o){return t.apply(e,o)}runGuarded(t,e,o){return t.apply(e,o)}runOutsideAngular(t){return t()}runTask(t,e,o,r){return t.apply(e,o)}}const Q7=new Qt(""),Ky=new Qt("");let sW,iW=(()=>{class n{constructor(e,o,r){this._ngZone=e,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,sW||(function Aoe(n){sW=n}(r),r.addToWindow(o)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{To.assertNotInAngularZone(),nW(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())nW(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(e)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,o,r){let i=-1;o&&o>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==i),e(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:r})}whenStable(e,o,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,o,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,o,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(Te(To),Te(aW),Te(Ky))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),aW=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,o){this._applications.set(e,o)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,o=!0){return sW?.findTestabilityInTree(this,e,o)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),C2=null;const eB=new Qt("AllowMultipleToken"),cW=new Qt("PlatformDestroyListeners"),du=!1;class tB{constructor(t,e){this.name=t,this.token=e}}function oB(n,t,e=[]){const o=`Platform: ${t}`,r=new Qt(o);return(i=[])=>{let a=lW();if(!a||a.injector.get(eB,!1)){const s=[...e,...i,{provide:r,useValue:!0}];n?n(s):function woe(n){if(C2&&!C2.get(eB,!1))throw new xt(400,!1);C2=n;const t=n.get(iB);(function nB(n){const t=n.get(U7,null);t&&t.forEach(e=>e())})(n)}(function rB(n=[],t){return Qo.create({name:t,providers:[{provide:Lo,useValue:"platform"},{provide:cW,useValue:new Set([()=>C2=null])},...n]})}(s,o))}return function xoe(n){const t=lW();if(!t)throw new xt(401,!1);return t}()}}function lW(){return C2?.get(iB)??null}let iB=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,o){const r=function sB(n,t){let e;return e="noop"===n?new voe:("zone.js"===n?void 0:n)||new To(t),e}(o?.ngZone,function aB(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(o)),i=[{provide:To,useValue:r}];return r.run(()=>{const a=Qo.create({providers:i,parent:this.injector,name:e.moduleType.name}),s=e.create(a),c=s.injector.get(_2,null);if(!c)throw new xt(402,!1);return r.runOutsideAngular(()=>{const p=r.onError.subscribe({next:d=>{c.handleError(d)}});s.onDestroy(()=>{Jy(this._modules,s),p.unsubscribe()})}),function cB(n,t,e){try{const o=e();return g3(o)?o.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):o}catch(o){throw t.runOutsideAngular(()=>n.handleError(o)),o}}(c,r,()=>{const p=s.injector.get(Zy);return p.runInitializers(),p.donePromise.then(()=>(function LN(n){ia(n,"Expected localeId to be defined"),"string"==typeof n&&(WN=n.toLowerCase().replace(/_/g,"-"))}(s.injector.get(pu,cg)||cg),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,o=[]){const r=lB({},o);return function yoe(n,t,e){const o=new F6(e);return Promise.resolve(o)}(0,0,e).then(i=>this.bootstrapModuleFactory(i,r))}_moduleDoBootstrap(e){const o=e.injector.get(w2);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>o.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new xt(-403,!1);e.instance.ngDoBootstrap(o)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new xt(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const e=this._injector.get(cW,null);e&&(e.forEach(o=>o()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(Te(Qo))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function lB(n,t){return Array.isArray(t)?t.reduce(lB,n):{...n,...t}}let w2=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,o,r){this._zone=e,this._injector=o,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new V(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new V(s=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{To.assertNotInAngularZone(),nW(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const p=this._zone.onUnstable.subscribe(()=>{To.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),p.unsubscribe()}});this.isStable=Ia(i,a.pipe(Al()))}bootstrap(e,o){const r=e instanceof QA;if(!this._injector.get(Zy).done){!r&&function Sp(n){const t=z1(n)||Zo(n)||Er(n);return null!==t&&t.standalone}(e);throw new xt(405,du)}let a;a=r?e:this._injector.get(Pi).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Coe(n){return n.isBoundToModule}(a)?void 0:this._injector.get(lg),p=a.create(Qo.NULL,[],o||a.selector,s),d=p.location.nativeElement,u=p.injector.get(Q7,null);return u?.registerApplication(d),p.onDestroy(()=>{this.detachView(p.hostView),Jy(this.components,p),u?.unregisterApplication(d)}),this._loadComponent(p),p}tick(){if(this._runningTick)throw new xt(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const o=e;this._views.push(o),o.attachToAppRef(this)}detachView(e){const o=e;Jy(this._views,o),o.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const o=this._injector.get(V7,[]);o.push(...this._bootstrapListeners),o.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Jy(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new xt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(Te(To),Te(pc),Te(_2))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Jy(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let ns=(()=>{class n{}return n.__NG_ELEMENT_ID__=Woe,n})();function Woe(n){return function Loe(n,t,e){if(xc(n)&&!e){const o=Kn(n.index,t);return new h3(o,o)}return 47&n.type?new h3(t[B0],t):null}(pr(),mt(),16==(16&n))}class hB{constructor(){}supports(t){return Ey(t)}create(t){return new Eoe(t)}}const koe=(n,t)=>t;class Eoe{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||koe}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,o=this._removalsHead,r=0,i=null;for(;e||o;){const a=!o||e&&e.currentIndex{a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(o&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),o=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,o,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):t=this._addAfter(new Ioe(e,o),i,r),t}_verifyReinsertion(t,e,o,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,o),this._addToMoves(t,o),t}_moveAfter(t,e,o){return this._unlink(t),this._insertAfter(t,e,o),this._addToMoves(t,o),t}_addAfter(t,e,o){return this._insertAfter(t,e,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,o){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new MB),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,o=t._next;return null===e?this._itHead=o:e._next=o,null===o?this._itTail=e:o._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new MB),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ioe{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Noe{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===e||e<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const e=t._prevDup,o=t._nextDup;return null===e?this._head=o:e._nextDup=o,null===o?this._tail=e:o._prevDup=e,null===this._head}}class MB{constructor(){this.map=new Map}put(t){const e=t.trackById;let o=this.map.get(e);o||(o=new Noe,this.map.set(e,o)),o.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bB(n,t,e){const o=n.previousIndex;if(null===o)return o;let r=0;return e&&o{if(e&&e.key===r)this._maybeAddToChanges(e,o),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(r,o);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let o=e;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const o=t._prev;return e._next=t,e._prev=o,t._prev=e,o&&(o._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const i=r._prev,a=r._next;return i&&(i._next=a),a&&(a._prev=i),r._next=null,r._prev=null,r}const o=new Foe(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(o=>e(t[o],o))}}class Foe{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function OB(){return new t4([new hB])}let t4=(()=>{class n{constructor(e){this.factories=e}static create(e,o){if(null!=o){const r=o.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:o=>n.create(e,o||OB()),deps:[[n,new f2,new Gp]]}}find(e){const o=this.factories.find(r=>r.supports(e));if(null!=o)return o;throw new xt(901,!1)}}return n.\u0275prov=et({token:n,providedIn:"root",factory:OB}),n})();function mB(){return new x3([new gB])}let x3=(()=>{class n{constructor(e){this.factories=e}static create(e,o){if(o){const r=o.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:o=>n.create(e,o||mB()),deps:[[n,new f2,new Gp]]}}find(e){const o=this.factories.find(r=>r.supports(e));if(o)return o;throw new xt(901,!1)}}return n.\u0275prov=et({token:n,providedIn:"root",factory:mB}),n})();const Xoe=oB(null,"core",[]);let joe=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(Te(w2))},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({}),n})();function fg(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function _B(n,t){const e=z1(n),o=t.elementInjector||Yb();return new M3(e).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}let MW=null;function rd(){return MW}class $oe{}const Xr=new Qt("DocumentToken");let bW=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:function(){return function Goe(){return Te(zB)}()},providedIn:"platform"}),n})();const Zoe=new Qt("Location Initialized");let zB=(()=>{class n extends bW{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return rd().getBaseHref(this._doc)}onPopState(e){const o=rd().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",e,!1),()=>o.removeEventListener("popstate",e)}onHashChange(e){const o=rd().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",e,!1),()=>o.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,o,r){vB()?this._history.pushState(e,o,r):this._location.hash=r}replaceState(e,o,r){vB()?this._history.replaceState(e,o,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(Te(Xr))},n.\u0275prov=et({token:n,factory:function(){return function Koe(){return new zB(Te(Xr))}()},providedIn:"platform"}),n})();function vB(){return!!window.history.pushState}function gW(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function AB(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function uu(n){return n&&"?"!==n[0]?"?"+n:n}let ch=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:function(){return c0(CB)},providedIn:"root"}),n})();const yB=new Qt("appBaseHref");let CB=(()=>{class n extends ch{constructor(e,o){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??c0(Xr).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return gW(this._baseHref,e)}path(e=!1){const o=this._platformLocation.pathname+uu(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${o}${r}`:o}pushState(e,o,r,i){const a=this.prepareExternalUrl(r+uu(i));this._platformLocation.pushState(e,o,a)}replaceState(e,o,r,i){const a=this.prepareExternalUrl(r+uu(i));this._platformLocation.replaceState(e,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(Te(bW),Te(yB,8))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Joe=(()=>{class n extends ch{constructor(e,o){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=o&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}prepareExternalUrl(e){const o=gW(this._baseHref,e);return o.length>0?"#"+o:o}pushState(e,o,r,i){let a=this.prepareExternalUrl(r+uu(i));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,o,a)}replaceState(e,o,r,i){let a=this.prepareExternalUrl(r+uu(i));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(Te(bW),Te(yB,8))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),OW=(()=>{class n{constructor(e){this._subject=new G1,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const o=this._locationStrategy.getBaseHref();this._basePath=function tre(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(AB(wB(o))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,o=""){return this.path()==this.normalize(e+uu(o))}normalize(e){return n.stripTrailingSlash(function ere(n,t){return n&&new RegExp(`^${n}([/;?#]|$)`).test(t)?t.substring(n.length):t}(this._basePath,wB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,o="",r=null){this._locationStrategy.pushState(r,"",e,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+uu(o)),r)}replaceState(e,o="",r=null){this._locationStrategy.replaceState(r,"",e,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+uu(o)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)})),()=>{const o=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(o,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",o){this._urlChangeListeners.forEach(r=>r(e,o))}subscribe(e,o,r){return this._subject.subscribe({next:e,error:o,complete:r})}}return n.normalizeQueryParams=uu,n.joinWithSlash=gW,n.stripTrailingSlash=AB,n.\u0275fac=function(e){return new(e||n)(Te(ch))},n.\u0275prov=et({token:n,factory:function(){return function Qoe(){return new OW(Te(ch))}()},providedIn:"root"}),n})();function wB(n){return n.replace(/\/index.html$/,"")}const PB={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var Ts=(()=>((Ts=Ts||{})[Ts.Decimal=0]="Decimal",Ts[Ts.Percent=1]="Percent",Ts[Ts.Currency=2]="Currency",Ts[Ts.Scientific=3]="Scientific",Ts))(),Pr=(()=>((Pr=Pr||{})[Pr.Format=0]="Format",Pr[Pr.Standalone=1]="Standalone",Pr))(),Z1=(()=>((Z1=Z1||{})[Z1.Narrow=0]="Narrow",Z1[Z1.Abbreviated=1]="Abbreviated",Z1[Z1.Wide=2]="Wide",Z1[Z1.Short=3]="Short",Z1))(),er=(()=>((er=er||{})[er.Short=0]="Short",er[er.Medium=1]="Medium",er[er.Long=2]="Long",er[er.Full=3]="Full",er))(),U0=(()=>((U0=U0||{})[U0.Decimal=0]="Decimal",U0[U0.Group=1]="Group",U0[U0.List=2]="List",U0[U0.PercentSign=3]="PercentSign",U0[U0.PlusSign=4]="PlusSign",U0[U0.MinusSign=5]="MinusSign",U0[U0.Exponential=6]="Exponential",U0[U0.SuperscriptingExponent=7]="SuperscriptingExponent",U0[U0.PerMille=8]="PerMille",U0[U0.Infinity=9]="Infinity",U0[U0.NaN=10]="NaN",U0[U0.TimeSeparator=11]="TimeSeparator",U0[U0.CurrencyDecimal=12]="CurrencyDecimal",U0[U0.CurrencyGroup=13]="CurrencyGroup",U0))();function n4(n,t){return Uc(es(n)[d0.DateFormat],t)}function o4(n,t){return Uc(es(n)[d0.TimeFormat],t)}function r4(n,t){return Uc(es(n)[d0.DateTimeFormat],t)}function jc(n,t){const e=es(n),o=e[d0.NumberSymbols][t];if(typeof o>"u"){if(t===U0.CurrencyDecimal)return e[d0.NumberSymbols][U0.Decimal];if(t===U0.CurrencyGroup)return e[d0.NumberSymbols][U0.Group]}return o}function mW(n,t){return es(n)[d0.NumberFormats][t]}function xB(n){if(!n[d0.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[d0.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Uc(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function _W(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const ure=2,hre=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q3={},Mre=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ui=(()=>((ui=ui||{})[ui.Short=0]="Short",ui[ui.ShortGMT=1]="ShortGMT",ui[ui.Long=2]="Long",ui[ui.Extended=3]="Extended",ui))(),J0=(()=>((J0=J0||{})[J0.FullYear=0]="FullYear",J0[J0.Month=1]="Month",J0[J0.Date=2]="Date",J0[J0.Hours=3]="Hours",J0[J0.Minutes=4]="Minutes",J0[J0.Seconds=5]="Seconds",J0[J0.FractionalSeconds=6]="FractionalSeconds",J0[J0.Day=7]="Day",J0))(),T1=(()=>((T1=T1||{})[T1.DayPeriods=0]="DayPeriods",T1[T1.Days=1]="Days",T1[T1.Months=2]="Months",T1[T1.Eras=3]="Eras",T1))();function bre(n,t,e,o){let r=function Cre(n){if(LB(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,i=1,a=1]=n.split("-").map(s=>+s);return i4(r,i-1,a)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let o;if(o=n.match(hre))return function wre(n){const t=new Date(0);let e=0,o=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,i=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),o=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const a=Number(n[4]||0)-e,s=Number(n[5]||0)-o,c=Number(n[6]||0),p=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return i.call(t,a,s,c,p),t}(o)}const t=new Date(n);if(!LB(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=fu(e,t)||t;let s,a=[];for(;t;){if(s=Mre.exec(t),!s){a.push(t);break}{a=a.concat(s.slice(1));const d=a.pop();if(!d)break;t=d}}let c=r.getTimezoneOffset();o&&(c=WB(o,c),r=function yre(n,t,e){const o=e?-1:1,r=n.getTimezoneOffset();return function Are(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,o*(WB(t,r)-r))}(r,o,!0));let p="";return a.forEach(d=>{const u=function vre(n){if(vW[n])return vW[n];let t;switch(n){case"G":case"GG":case"GGG":t=Ro(T1.Eras,Z1.Abbreviated);break;case"GGGG":t=Ro(T1.Eras,Z1.Wide);break;case"GGGGG":t=Ro(T1.Eras,Z1.Narrow);break;case"y":t=Ur(J0.FullYear,1,0,!1,!0);break;case"yy":t=Ur(J0.FullYear,2,0,!0,!0);break;case"yyy":t=Ur(J0.FullYear,3,0,!1,!0);break;case"yyyy":t=Ur(J0.FullYear,4,0,!1,!0);break;case"Y":t=l4(1);break;case"YY":t=l4(2,!0);break;case"YYY":t=l4(3);break;case"YYYY":t=l4(4);break;case"M":case"L":t=Ur(J0.Month,1,1);break;case"MM":case"LL":t=Ur(J0.Month,2,1);break;case"MMM":t=Ro(T1.Months,Z1.Abbreviated);break;case"MMMM":t=Ro(T1.Months,Z1.Wide);break;case"MMMMM":t=Ro(T1.Months,Z1.Narrow);break;case"LLL":t=Ro(T1.Months,Z1.Abbreviated,Pr.Standalone);break;case"LLLL":t=Ro(T1.Months,Z1.Wide,Pr.Standalone);break;case"LLLLL":t=Ro(T1.Months,Z1.Narrow,Pr.Standalone);break;case"w":t=zW(1);break;case"ww":t=zW(2);break;case"W":t=zW(1,!0);break;case"d":t=Ur(J0.Date,1);break;case"dd":t=Ur(J0.Date,2);break;case"c":case"cc":t=Ur(J0.Day,1);break;case"ccc":t=Ro(T1.Days,Z1.Abbreviated,Pr.Standalone);break;case"cccc":t=Ro(T1.Days,Z1.Wide,Pr.Standalone);break;case"ccccc":t=Ro(T1.Days,Z1.Narrow,Pr.Standalone);break;case"cccccc":t=Ro(T1.Days,Z1.Short,Pr.Standalone);break;case"E":case"EE":case"EEE":t=Ro(T1.Days,Z1.Abbreviated);break;case"EEEE":t=Ro(T1.Days,Z1.Wide);break;case"EEEEE":t=Ro(T1.Days,Z1.Narrow);break;case"EEEEEE":t=Ro(T1.Days,Z1.Short);break;case"a":case"aa":case"aaa":t=Ro(T1.DayPeriods,Z1.Abbreviated);break;case"aaaa":t=Ro(T1.DayPeriods,Z1.Wide);break;case"aaaaa":t=Ro(T1.DayPeriods,Z1.Narrow);break;case"b":case"bb":case"bbb":t=Ro(T1.DayPeriods,Z1.Abbreviated,Pr.Standalone,!0);break;case"bbbb":t=Ro(T1.DayPeriods,Z1.Wide,Pr.Standalone,!0);break;case"bbbbb":t=Ro(T1.DayPeriods,Z1.Narrow,Pr.Standalone,!0);break;case"B":case"BB":case"BBB":t=Ro(T1.DayPeriods,Z1.Abbreviated,Pr.Format,!0);break;case"BBBB":t=Ro(T1.DayPeriods,Z1.Wide,Pr.Format,!0);break;case"BBBBB":t=Ro(T1.DayPeriods,Z1.Narrow,Pr.Format,!0);break;case"h":t=Ur(J0.Hours,1,-12);break;case"hh":t=Ur(J0.Hours,2,-12);break;case"H":t=Ur(J0.Hours,1);break;case"HH":t=Ur(J0.Hours,2);break;case"m":t=Ur(J0.Minutes,1);break;case"mm":t=Ur(J0.Minutes,2);break;case"s":t=Ur(J0.Seconds,1);break;case"ss":t=Ur(J0.Seconds,2);break;case"S":t=Ur(J0.FractionalSeconds,1);break;case"SS":t=Ur(J0.FractionalSeconds,2);break;case"SSS":t=Ur(J0.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=s4(ui.Short);break;case"ZZZZZ":t=s4(ui.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=s4(ui.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=s4(ui.Long);break;default:return null}return vW[n]=t,t}(d);p+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),p}function i4(n,t,e){const o=new Date(0);return o.setFullYear(n,t,e),o.setHours(0,0,0),o}function fu(n,t){const e=function nre(n){return es(n)[d0.LocaleId]}(n);if(q3[e]=q3[e]||{},q3[e][t])return q3[e][t];let o="";switch(t){case"shortDate":o=n4(n,er.Short);break;case"mediumDate":o=n4(n,er.Medium);break;case"longDate":o=n4(n,er.Long);break;case"fullDate":o=n4(n,er.Full);break;case"shortTime":o=o4(n,er.Short);break;case"mediumTime":o=o4(n,er.Medium);break;case"longTime":o=o4(n,er.Long);break;case"fullTime":o=o4(n,er.Full);break;case"short":const r=fu(n,"shortTime"),i=fu(n,"shortDate");o=a4(r4(n,er.Short),[r,i]);break;case"medium":const a=fu(n,"mediumTime"),s=fu(n,"mediumDate");o=a4(r4(n,er.Medium),[a,s]);break;case"long":const c=fu(n,"longTime"),p=fu(n,"longDate");o=a4(r4(n,er.Long),[c,p]);break;case"full":const d=fu(n,"fullTime"),u=fu(n,"fullDate");o=a4(r4(n,er.Full),[d,u])}return o&&(q3[e][t]=o),o}function a4(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,o){return null!=t&&o in t?t[o]:e})),n}function Ul(n,t,e="-",o,r){let i="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,i=e));let a=String(n);for(;a.length0||s>-e)&&(s+=e),n===J0.Hours)0===s&&-12===e&&(s=12);else if(n===J0.FractionalSeconds)return function gre(n,t){return Ul(n,3).substring(0,t)}(s,t);const c=jc(a,U0.MinusSign);return Ul(s,t,c,o,r)}}function Ro(n,t,e=Pr.Format,o=!1){return function(r,i){return function mre(n,t,e,o,r,i){switch(e){case T1.Months:return function ire(n,t,e){const o=es(n),i=Uc([o[d0.MonthsFormat],o[d0.MonthsStandalone]],t);return Uc(i,e)}(t,r,o)[n.getMonth()];case T1.Days:return function rre(n,t,e){const o=es(n),i=Uc([o[d0.DaysFormat],o[d0.DaysStandalone]],t);return Uc(i,e)}(t,r,o)[n.getDay()];case T1.DayPeriods:const a=n.getHours(),s=n.getMinutes();if(i){const p=function lre(n){const t=es(n);return xB(t),(t[d0.ExtraData][2]||[]).map(o=>"string"==typeof o?_W(o):[_W(o[0]),_W(o[1])])}(t),d=function pre(n,t,e){const o=es(n);xB(o);const i=Uc([o[d0.ExtraData][0],o[d0.ExtraData][1]],t)||[];return Uc(i,e)||[]}(t,r,o),u=p.findIndex(h=>{if(Array.isArray(h)){const[M,g]=h,v=a>=M.hours&&s>=M.minutes,A=a0?Math.floor(r/60):Math.ceil(r/60);switch(n){case ui.Short:return(r>=0?"+":"")+Ul(a,2,i)+Ul(Math.abs(r%60),2,i);case ui.ShortGMT:return"GMT"+(r>=0?"+":"")+Ul(a,1,i);case ui.Long:return"GMT"+(r>=0?"+":"")+Ul(a,2,i)+":"+Ul(Math.abs(r%60),2,i);case ui.Extended:return 0===o?"Z":(r>=0?"+":"")+Ul(a,2,i)+":"+Ul(Math.abs(r%60),2,i);default:throw new Error(`Unknown zone width "${n}"`)}}}const _re=0,c4=4;function qB(n){return i4(n.getFullYear(),n.getMonth(),n.getDate()+(c4-n.getDay()))}function zW(n,t=!1){return function(e,o){let r;if(t){const i=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+i)/7)}else{const i=qB(e),a=function zre(n){const t=i4(n,_re,1).getDay();return i4(n,0,1+(t<=c4?c4:c4+7)-t)}(i.getFullYear()),s=i.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ul(r,n,jc(o,U0.MinusSign))}}function l4(n,t=!1){return function(e,o){return Ul(qB(e).getFullYear(),n,jc(o,U0.MinusSign),t)}}const vW={};function WB(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function LB(n){return n instanceof Date&&!isNaN(n.valueOf())}const Pre=/^(\d+)?\.((\d+)(-(\d+))?)?$/,TB=22,p4=".",W3="0",xre=";",qre=",",AW="#",RB="\xa4";function yW(n,t,e,o,r,i,a=!1){let s="",c=!1;if(isFinite(n)){let p=function Sre(n){let o,r,i,a,s,t=Math.abs(n)+"",e=0;for((r=t.indexOf(p4))>-1&&(t=t.replace(p4,"")),(i=t.search(/e/i))>0?(r<0&&(r=i),r+=+t.slice(i+1),t=t.substring(0,i)):r<0&&(r=t.length),i=0;t.charAt(i)===W3;i++);if(i===(s=t.length))o=[0],r=1;else{for(s--;t.charAt(s)===W3;)s--;for(r-=i,o=[],a=0;i<=s;i++,a++)o[a]=Number(t.charAt(i))}return r>TB&&(o=o.splice(0,TB-1),e=r-1,r=1),{digits:o,exponent:e,integerLen:r}}(n);a&&(p=function Rre(n){if(0===n.digits[0])return n;const t=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===t?n.digits.push(0,0):1===t&&n.digits.push(0),n.integerLen+=2),n}(p));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(i){const q=i.match(Pre);if(null===q)throw new Error(`${i} is not a valid digit info`);const L=q[1],D=q[3],X=q[5];null!=L&&(d=wW(L)),null!=D&&(u=wW(D)),null!=X?h=wW(X):null!=D&&u>h&&(h=u)}!function Dre(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let o=n.digits,r=o.length-n.integerLen;const i=Math.min(Math.max(t,r),e);let a=i+n.integerLen,s=o[a];if(a>0){o.splice(Math.max(n.integerLen,a));for(let u=a;u=5)if(a-1<0){for(let u=0;u>a;u--)o.unshift(0),n.integerLen++;o.unshift(1),n.integerLen++}else o[a-1]++;for(;r=p?g.pop():c=!1),h>=10?1:0},0);d&&(o.unshift(d),n.integerLen++)}(p,u,h);let M=p.digits,g=p.integerLen;const v=p.exponent;let A=[];for(c=M.every(q=>!q);g0?A=M.splice(g,M.length):(A=M,M=[0]);const y=[];for(M.length>=t.lgSize&&y.unshift(M.splice(-t.lgSize,M.length).join(""));M.length>t.gSize;)y.unshift(M.splice(-t.gSize,M.length).join(""));M.length&&y.unshift(M.join("")),s=y.join(jc(e,o)),A.length&&(s+=jc(e,r)+A.join("")),v&&(s+=jc(e,U0.Exponential)+"+"+v)}else s=jc(e,U0.Infinity);return s=n<0&&!c?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf,s}function SB(n,t,e){return yW(n,CW(mW(t,Ts.Decimal),jc(t,U0.MinusSign)),t,U0.Group,U0.Decimal,e)}function CW(n,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},o=n.split(xre),r=o[0],i=o[1],a=-1!==r.indexOf(p4)?r.split(p4):[r.substring(0,r.lastIndexOf(W3)+1),r.substring(r.lastIndexOf(W3)+1)],s=a[0],c=a[1]||"";e.posPre=s.substring(0,s.indexOf(AW));for(let d=0;d{class n{constructor(e,o,r,i){this._iterableDiffers=e,this._keyValueDiffers=o,this._ngEl=r,this._renderer=i,this.initialClasses=EB,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(xW):EB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(xW):e}ngDoCheck(){for(const o of this.initialClasses)this._updateState(o,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const o of e)this._updateState(o,!0);else if(null!=e)for(const o of Object.keys(e))this._updateState(o,Boolean(e[o]));this._applyStateDiff()}_updateState(e,o){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==o&&(r.changed=!0,r.enabled=o),r.touched=!0):this.stateMap.set(e,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const o=e[0],r=e[1];r.changed?(this._toggleClass(o,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),r.touched=!1}}_toggleClass(e,o){(e=e.trim()).length>0&&e.split(xW).forEach(r=>{o?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(Re(t4),Re(x3),Re(fn),Re(P1))},n.\u0275dir=b0({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class Ire{constructor(t,e,o,r){this.$implicit=t,this.ngForOf=e,this.index=o,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Xo=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,o,r){this._viewContainer=e,this._template=o,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const o=this._viewContainer;e.forEachOperation((r,i,a)=>{if(null==r.previousIndex)o.createEmbeddedView(this._template,new Ire(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)o.remove(null===i?void 0:i);else if(null!==i){const s=o.get(i);o.move(s,a),BB(s,r)}});for(let r=0,i=o.length;r{BB(o.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,o){return!0}}return n.\u0275fac=function(e){return new(e||n)(Re(uc),Re(Xc),Re(t4))},n.\u0275dir=b0({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function BB(n,t){n.context.$implicit=t.item}let Q0=(()=>{class n{constructor(e,o){this._viewContainer=e,this._context=new Bre,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){FB("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){FB("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,o){return!0}}return n.\u0275fac=function(e){return new(e||n)(Re(uc),Re(Xc))},n.\u0275dir=b0({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Bre{constructor(){this.$implicit=null,this.ngIf=null}}function FB(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Hn(t)}'.`)}class qW{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let d4=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const o=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||o,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),o}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const o of this._defaultViews)o.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=b0({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),YB=(()=>{class n{constructor(e,o,r){this.ngSwitch=r,r._addCase(),this._view=new qW(e,o)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(Re(uc),Re(Xc),Re(d4,9))},n.\u0275dir=b0({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),Jn=(()=>{class n{constructor(e,o,r){this._ngEl=e,this._differs=o,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,o){const[r,i]=e.split("."),a=-1===r.indexOf("-")?void 0:ha.DashCase;null!=o?this._renderer.setStyle(this._ngEl.nativeElement,r,i?`${o}${i}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(e){e.forEachRemovedItem(o=>this._setStyle(o.key,null)),e.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),e.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(Re(fn),Re(x3),Re(P1))},n.\u0275dir=b0({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),So=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:i,ngTemplateOutletInjector:a}=this;this._viewRef=o.createEmbeddedView(r,i,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(Re(uc))},n.\u0275dir=b0({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Yo]}),n})();function Vl(n,t){return new xt(2100,!1)}class Hre{createSubscription(t,e){return t.subscribe({next:e,error:o=>{throw o}})}dispose(t){t.unsubscribe()}}class Xre{createSubscription(t,e){return t.then(e,o=>{throw o})}dispose(t){}}const jre=new Xre,Ure=new Hre;let Oa=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,o=>this._updateLatestValue(e,o))}_selectStrategy(e){if(g3(e))return jre;if(DI(e))return Ure;throw Vl()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,o){e===this._obj&&(this._latestValue=o,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(Re(ns,16))},n.\u0275pipe=jn({name:"async",type:n,pure:!1,standalone:!0}),n})();const $re=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let id=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Vl();return e.replace($re,o=>o[0].toUpperCase()+o.slice(1).toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=jn({name:"titlecase",type:n,pure:!0,standalone:!0}),n})(),L3=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Vl();return e.toUpperCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=jn({name:"uppercase",type:n,pure:!0,standalone:!0}),n})();const Zre=new Qt("DATE_PIPE_DEFAULT_TIMEZONE"),Kre=new Qt("DATE_PIPE_DEFAULT_OPTIONS");let WW=(()=>{class n{constructor(e,o,r){this.locale=e,this.defaultTimezone=o,this.defaultOptions=r}transform(e,o,r,i){if(null==e||""===e||e!=e)return null;try{return bre(e,o??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw Vl()}}}return n.\u0275fac=function(e){return new(e||n)(Re(pu,16),Re(Zre,24),Re(Kre,24))},n.\u0275pipe=jn({name:"date",type:n,pure:!0,standalone:!0}),n})(),XB=(()=>{class n{transform(e){return JSON.stringify(e,null,2)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=jn({name:"json",type:n,pure:!1,standalone:!0}),n})(),$l=(()=>{class n{constructor(e){this._locale=e}transform(e,o,r){if(!LW(e))return null;r=r||this._locale;try{return SB(TW(e),r,o)}catch(i){throw Vl()}}}return n.\u0275fac=function(e){return new(e||n)(Re(pu,16))},n.\u0275pipe=jn({name:"number",type:n,pure:!0,standalone:!0}),n})(),UB=(()=>{class n{constructor(e){this._locale=e}transform(e,o,r){if(!LW(e))return null;r=r||this._locale;try{return function Tre(n,t,e){return yW(n,CW(mW(t,Ts.Percent),jc(t,U0.MinusSign)),t,U0.Group,U0.Decimal,e,!0).replace(new RegExp("%","g"),jc(t,U0.PercentSign))}(TW(e),r,o)}catch(i){throw Vl()}}}return n.\u0275fac=function(e){return new(e||n)(Re(pu,16))},n.\u0275pipe=jn({name:"percent",type:n,pure:!0,standalone:!0}),n})(),hg=(()=>{class n{constructor(e,o="USD"){this._locale=e,this._defaultCurrencyCode=o}transform(e,o=this._defaultCurrencyCode,r="symbol",i,a){if(!LW(e))return null;a=a||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let s=o||this._defaultCurrencyCode;"code"!==r&&(s="symbol"===r||"symbol-narrow"===r?function dre(n,t,e="en"){const o=function sre(n){return es(n)[d0.Currencies]}(e)[n]||PB[n]||[],r=o[1];return"narrow"===t&&"string"==typeof r?r:o[0]||n}(s,"symbol"===r?"wide":"narrow",a):r);try{return function Lre(n,t,e,o,r){const a=CW(mW(t,Ts.Currency),jc(t,U0.MinusSign));return a.minFrac=function fre(n){let t;const e=PB[n];return e&&(t=e[2]),"number"==typeof t?t:ure}(o),a.maxFrac=a.minFrac,yW(n,a,t,U0.CurrencyGroup,U0.CurrencyDecimal,r).replace(RB,e).replace(RB,"").trim()}(TW(e),a,s,o,i)}catch(c){throw Vl()}}}return n.\u0275fac=function(e){return new(e||n)(Re(pu,16),Re(foe,16))},n.\u0275pipe=jn({name:"currency",type:n,pure:!0,standalone:!0}),n})();function LW(n){return!(null==n||""===n||n!=n)}function TW(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}let Sn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({}),n})();const VB="browser",oie="server";function RW(n){return n===oie}let sie=(()=>{class n{}return n.\u0275prov=et({token:n,providedIn:"root",factory:()=>new cie(Te(Xr),window)}),n})();class cie{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function lie(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const o=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=o.currentNode;for(;r;){const i=r.shadowRoot;if(i){const a=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(a)return a}r=o.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),o=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(o-i[0],r-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=$B(this.window.history)||$B(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $B(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class GB{}class kie extends $oe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class EW extends kie{static makeCurrent(){!function Voe(n){MW||(MW=n)}(new EW)}onAndCancel(t,e,o){return t.addEventListener(e,o,!1),()=>{t.removeEventListener(e,o,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function Eie(){return R3=R3||document.querySelector("base"),R3?R3.getAttribute("href"):null}();return null==e?null:function Iie(n){f4=f4||document.createElement("a"),f4.setAttribute("href",n);const t=f4.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){R3=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return kB(document.cookie,t)}}let f4,R3=null;const e9=new Qt("TRANSITION_ID"),Bie=[{provide:Gy,useFactory:function Nie(n,t,e){return()=>{e.get(Zy).donePromise.then(()=>{const o=rd(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let i=0;i{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const h4=new Qt("EventManagerPlugins");let M4=(()=>{class n{constructor(e,o){this._zone=o,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,o,r){return this._findPluginFor(o).addEventListener(e,o,r)}addGlobalEventListener(e,o,r){return this._findPluginFor(o).addGlobalEventListener(e,o,r)}getZone(){return this._zone}_findPluginFor(e){const o=this._eventNameToPlugin.get(e);if(o)return o;const r=this._plugins;for(let i=0;i{class n{constructor(){this._stylesSet=new Set}addStyles(e){const o=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),o.add(r))}),this.onStylesAdded(o)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),S3=(()=>{class n extends n9{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,o,r){e.forEach(i=>{const a=this._doc.createElement("style");a.textContent=i,r.push(o.appendChild(a))})}addHost(e){const o=[];this._addStylesToHost(this._stylesSet,e,o),this._hostNodes.set(e,o)}removeHost(e){const o=this._hostNodes.get(e);o&&o.forEach(o9),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((o,r)=>{this._addStylesToHost(e,r,o)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(o9))}}return n.\u0275fac=function(e){return new(e||n)(Te(Xr))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();function o9(n){rd().remove(n)}const IW={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},NW=/%COMP%/g;function BW(n,t){return t.flat(100).map(e=>e.replace(NW,n))}function a9(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let FW=(()=>{class n{constructor(e,o,r){this.eventManager=e,this.sharedStylesHost=o,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new YW(e)}createRenderer(e,o){if(!e||!o)return this.defaultRenderer;switch(o.encapsulation){case ca.Emulated:{let r=this.rendererByCompId.get(o.id);return r||(r=new $ie(this.eventManager,this.sharedStylesHost,o,this.appId),this.rendererByCompId.set(o.id,r)),r.applyToHost(e),r}case ca.ShadowDom:return new Gie(this.eventManager,this.sharedStylesHost,e,o);default:if(!this.rendererByCompId.has(o.id)){const r=BW(o.id,o.styles);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(o.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(Te(M4),Te(S3),Te(P3))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();class YW{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(IW[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(c9(t)?t.content:t).appendChild(e)}insertBefore(t,e,o){t&&(c9(t)?t.content:t).insertBefore(e,o)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let o="string"==typeof t?document.querySelector(t):t;if(!o)throw new Error(`The selector "${t}" did not match any elements`);return e||(o.textContent=""),o}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,o,r){if(r){e=r+":"+e;const i=IW[r];i?t.setAttributeNS(i,e,o):t.setAttribute(e,o)}else t.setAttribute(e,o)}removeAttribute(t,e,o){if(o){const r=IW[o];r?t.removeAttributeNS(r,e):t.removeAttribute(`${o}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,o,r){r&(ha.DashCase|ha.Important)?t.style.setProperty(e,o,r&ha.Important?"important":""):t.style[e]=o}removeStyle(t,e,o){o&ha.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,o){t[e]=o}setValue(t,e){t.nodeValue=e}listen(t,e,o){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,a9(o)):this.eventManager.addEventListener(t,e,a9(o))}}function c9(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class $ie extends YW{constructor(t,e,o,r){super(t),this.component=o;const i=BW(r+"-"+o.id,o.styles);e.addStyles(i),this.contentAttr=function jie(n){return"_ngcontent-%COMP%".replace(NW,n)}(r+"-"+o.id),this.hostAttr=function Uie(n){return"_nghost-%COMP%".replace(NW,n)}(r+"-"+o.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const o=super.createElement(t,e);return super.setAttribute(o,this.contentAttr,""),o}}class Gie extends YW{constructor(t,e,o,r){super(t),this.sharedStylesHost=e,this.hostEl=o,this.shadowRoot=o.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=BW(r.id,r.styles);for(let a=0;a{class n extends t9{constructor(e){super(e)}supports(e){return!0}addEventListener(e,o,r){return e.addEventListener(o,r,!1),()=>this.removeEventListener(e,o,r)}removeEventListener(e,o,r){return e.removeEventListener(o,r)}}return n.\u0275fac=function(e){return new(e||n)(Te(Xr))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const l9=["alt","control","meta","shift"],Kie={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Jie={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Qie=(()=>{class n extends t9{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,o,r){const i=n.parseEventName(o),a=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>rd().onAndCancel(e,i.domEventName,a))}static parseEventName(e){const o=e.toLowerCase().split("."),r=o.shift();if(0===o.length||"keydown"!==r&&"keyup"!==r)return null;const i=n._normalizeKey(o.pop());let a="",s=o.indexOf("code");if(s>-1&&(o.splice(s,1),a="code."),l9.forEach(p=>{const d=o.indexOf(p);d>-1&&(o.splice(d,1),a+=p+".")}),a+=i,0!=o.length||0===i.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(e,o){let r=Kie[e.key]||e.key,i="";return o.indexOf("code.")>-1&&(r=e.code,i="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),l9.forEach(a=>{a!==r&&(0,Jie[a])(e)&&(i+=a+".")}),i+=r,i===o)}static eventCallback(e,o,r){return i=>{n.matchEventFullKeyCode(i,e)&&r.runGuarded(()=>o(i))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(Te(Xr))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const d9=[{provide:ug,useValue:VB},{provide:U7,useValue:function eae(){EW.makeCurrent()},multi:!0},{provide:Xr,useFactory:function nae(){return function pq(n){Em=n}(document),document},deps:[]}],oae=oB(Xoe,"browser",d9),u9=new Qt(""),f9=[{provide:Ky,useClass:class Fie{addToWindow(t){vn.getAngularTestability=(o,r=!0)=>{const i=t.findTestabilityInTree(o,r);if(null==i)throw new Error("Could not find testability for element.");return i},vn.getAllAngularTestabilities=()=>t.getAllTestabilities(),vn.getAllAngularRootElements=()=>t.getAllRootElements(),vn.frameworkStabilizers||(vn.frameworkStabilizers=[]),vn.frameworkStabilizers.push(o=>{const r=vn.getAllAngularTestabilities();let i=r.length,a=!1;const s=function(c){a=a||c,i--,0==i&&o(a)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(t,e,o){return null==e?null:t.getTestability(e)??(o?rd().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:Q7,useClass:iW,deps:[To,aW,Ky]},{provide:iW,useClass:iW,deps:[To,aW,Ky]}],h9=[{provide:Lo,useValue:"root"},{provide:_2,useFactory:function tae(){return new _2},deps:[]},{provide:h4,useClass:Zie,multi:!0,deps:[Xr,To,ug]},{provide:h4,useClass:Qie,multi:!0,deps:[Xr]},{provide:FW,useClass:FW,deps:[M4,S3,P3]},{provide:Gm,useExisting:FW},{provide:n9,useExisting:S3},{provide:S3,useClass:S3,deps:[Xr]},{provide:M4,useClass:M4,deps:[h4,To]},{provide:GB,useClass:Yie,deps:[]},[]];let rae=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:P3,useValue:e.appId},{provide:e9,useExisting:P3},Bie]}}}return n.\u0275fac=function(e){return new(e||n)(Te(u9,12))},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({providers:[...h9,...f9],imports:[Sn,joe]}),n})(),M9=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(Te(Xr))},n.\u0275prov=et({token:n,factory:function(e){let o=null;return o=e?new e:function aae(){return new M9(Te(Xr))}(),o},providedIn:"root"}),n})();typeof window<"u"&&window;let b4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:function(e){let o=null;return o=e?new(e||n):Te(O9),o},providedIn:"root"}),n})(),O9=(()=>{class n extends b4{constructor(e){super(),this._doc=e}sanitize(e,o){if(null==o)return null;switch(e){case mo.NONE:return o;case mo.HTML:return Dc(o,"HTML")?Za(o):jA(this._doc,String(o)).toString();case mo.STYLE:return Dc(o,"Style")?Za(o):o;case mo.SCRIPT:if(Dc(o,"Script"))return Za(o);throw new Error("unsafe value used in a script context");case mo.URL:return Dc(o,"URL")?Za(o):kb(String(o));case mo.RESOURCE_URL:if(Dc(o,"ResourceURL"))return Za(o);throw new Error(`unsafe value used in a resource URL context (see ${Wi})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Wi})`)}}bypassSecurityTrustHtml(e){return function Db(n){return new dq(n)}(e)}bypassSecurityTrustStyle(e){return function Mq(n){return new uq(n)}(e)}bypassSecurityTrustScript(e){return function bq(n){return new NA(n)}(e)}bypassSecurityTrustUrl(e){return function gq(n){return new BA(n)}(e)}bypassSecurityTrustResourceUrl(e){return function Oq(n){return new fq(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(Te(Xr))},n.\u0275prov=et({token:n,factory:function(e){let o=null;return o=e?new e:function fae(n){return new O9(n.get(Xr))}(Te(Qo)),o},providedIn:"root"}),n})();function be(...n){return $n(n,vi(n))}function x2(n,t){return z(t)?On(n,t,1):On(n,1)}function ht(n,t){return _t((e,o)=>{let r=0;e.subscribe($(o,i=>n.call(t,i,r++)&&o.next(i)))})}class g4{}class jW{}class fi{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const o=e.indexOf(":");if(o>0){const r=e.slice(0,o),i=r.toLowerCase(),a=e.slice(o+1).trim();this.maybeSetNormalizedName(r,i),this.headers.has(i)?this.headers.get(i).push(a):this.headers.set(i,[a])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let o=t[e];const r=e.toLowerCase();"string"==typeof o&&(o=[o]),o.length>0&&(this.headers.set(r,o),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof fi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new fi;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof fi?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let o=t.value;if("string"==typeof o&&(o=[o]),0===o.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...o),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===i.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class hae{encodeKey(t){return m9(t)}encodeValue(t){return m9(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const bae=/%(\d[a-f0-9])/gi,gae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function m9(n){return encodeURIComponent(n).replace(bae,(t,e)=>gae[e]??t)}function O4(n){return`${n}`}class Rs{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new hae,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Mae(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const i=r.indexOf("="),[a,s]=-1==i?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,i)),t.decodeValue(r.slice(i+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const o=t.fromObject[e],r=Array.isArray(o)?o.map(O4):[O4(o)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(o=>{const r=t[o];Array.isArray(r)?r.forEach(i=>{e.push({param:o,value:i,op:"a"})}):e.push({param:o,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(o=>e+"="+this.encoder.encodeValue(o)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Rs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(O4(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let o=this.map.get(t.param)||[];const r=o.indexOf(O4(t.value));-1!==r&&o.splice(r,1),o.length>0?this.map.set(t.param,o):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Ii{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function _9(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function z9(n){return typeof Blob<"u"&&n instanceof Blob}function v9(n){return typeof FormData<"u"&&n instanceof FormData}class Gl{constructor(t,e,o,r){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function mae(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==o?o:null,i=r):i=o,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new fi),this.context||(this.context=new Ii),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":su.set(h,t.setHeaders[h]),c)),t.setParams&&(p=Object.keys(t.setParams).reduce((u,h)=>u.set(h,t.setParams[h]),p)),new Gl(e,o,i,{params:p,headers:c,context:d,reportProgress:s,responseType:r,withCredentials:a})}}var $r=(()=>(($r=$r||{})[$r.Sent=0]="Sent",$r[$r.UploadProgress=1]="UploadProgress",$r[$r.ResponseHeader=2]="ResponseHeader",$r[$r.DownloadProgress=3]="DownloadProgress",$r[$r.Response=4]="Response",$r[$r.User=5]="User",$r))();class UW{constructor(t,e=200,o="OK"){this.headers=t.headers||new fi,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||o,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class VW extends UW{constructor(t={}){super(t),this.type=$r.ResponseHeader}clone(t={}){return new VW({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Wt extends UW{constructor(t={}){super(t),this.type=$r.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Wt({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class $W extends UW{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function GW(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let q0=(()=>{class n{constructor(e){this.handler=e}request(e,o,r={}){let i;if(e instanceof Gl)i=e;else{let c,p;c=r.headers instanceof fi?r.headers:new fi(r.headers),r.params&&(p=r.params instanceof Rs?r.params:new Rs({fromObject:r.params})),i=new Gl(e,o,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:p,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=be(i).pipe(x2(c=>this.handler.handle(c)));if(e instanceof Gl||"events"===r.observe)return a;const s=a.pipe(ht(c=>c instanceof Wt));switch(r.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(j(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(j(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(j(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(j(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,o={}){return this.request("DELETE",e,o)}get(e,o={}){return this.request("GET",e,o)}head(e,o={}){return this.request("HEAD",e,o)}jsonp(e,o){return this.request("JSONP",e,{params:(new Rs).append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,o={}){return this.request("OPTIONS",e,o)}patch(e,o,r={}){return this.request("PATCH",e,GW(r,o))}post(e,o,r={}){return this.request("POST",e,GW(r,o))}put(e,o,r={}){return this.request("PUT",e,GW(r,o))}}return n.\u0275fac=function(e){return new(e||n)(Te(g4))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();function A9(n,t){return t(n)}function zae(n,t){return(e,o)=>t.intercept(e,{handle:r=>n(r,o)})}const m4=new Qt("HTTP_INTERCEPTORS"),D3=new Qt("HTTP_INTERCEPTOR_FNS");function Aae(){let n=null;return(t,e)=>(null===n&&(n=(c0(m4,{optional:!0})??[]).reduceRight(zae,A9)),n(t,e))}let y9=(()=>{class n extends g4{constructor(e,o){super(),this.backend=e,this.injector=o,this.chain=null}handle(e){if(null===this.chain){const o=Array.from(new Set(this.injector.get(D3)));this.chain=o.reduceRight((r,i)=>function vae(n,t,e){return(o,r)=>e.runInContext(()=>t(o,i=>n(i,r)))}(r,i,this.injector),A9)}return this.chain(e,o=>this.backend.handle(o))}}return n.\u0275fac=function(e){return new(e||n)(Te(jW),Te(pc))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const Pae=/^\)\]\}',?\n/;let w9=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new V(o=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((M,g)=>r.setRequestHeader(M,g.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const M=e.detectContentTypeHeader();null!==M&&r.setRequestHeader("Content-Type",M)}if(e.responseType){const M=e.responseType.toLowerCase();r.responseType="json"!==M?M:"text"}const i=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const M=r.statusText||"OK",g=new fi(r.getAllResponseHeaders()),v=function xae(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new VW({headers:g,status:r.status,statusText:M,url:v}),a},c=()=>{let{headers:M,status:g,statusText:v,url:A}=s(),y=null;204!==g&&(y=typeof r.response>"u"?r.responseText:r.response),0===g&&(g=y?200:0);let q=g>=200&&g<300;if("json"===e.responseType&&"string"==typeof y){const L=y;y=y.replace(Pae,"");try{y=""!==y?JSON.parse(y):null}catch(D){y=L,q&&(q=!1,y={error:D,text:y})}}q?(o.next(new Wt({body:y,headers:M,status:g,statusText:v,url:A||void 0})),o.complete()):o.error(new $W({error:y,headers:M,status:g,statusText:v,url:A||void 0}))},p=M=>{const{url:g}=s(),v=new $W({error:M,status:r.status||0,statusText:r.statusText||"Unknown Error",url:g||void 0});o.error(v)};let d=!1;const u=M=>{d||(o.next(s()),d=!0);let g={type:$r.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(g.total=M.total),"text"===e.responseType&&r.responseText&&(g.partialText=r.responseText),o.next(g)},h=M=>{let g={type:$r.UploadProgress,loaded:M.loaded};M.lengthComputable&&(g.total=M.total),o.next(g)};return r.addEventListener("load",c),r.addEventListener("error",p),r.addEventListener("timeout",p),r.addEventListener("abort",p),e.reportProgress&&(r.addEventListener("progress",u),null!==i&&r.upload&&r.upload.addEventListener("progress",h)),r.send(i),o.next({type:$r.Sent}),()=>{r.removeEventListener("error",p),r.removeEventListener("abort",p),r.removeEventListener("load",c),r.removeEventListener("timeout",p),e.reportProgress&&(r.removeEventListener("progress",u),null!==i&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(Te(GB))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const ZW=new Qt("XSRF_ENABLED"),P9="XSRF-TOKEN",x9=new Qt("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>P9}),q9="X-XSRF-TOKEN",W9=new Qt("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>q9});class L9{}let qae=(()=>{class n{constructor(e,o,r){this.doc=e,this.platform=o,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=kB(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(Te(Xr),Te(ug),Te(x9))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();function Wae(n,t){const e=n.url.toLowerCase();if(!c0(ZW)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const o=c0(L9).getToken(),r=c0(W9);return null!=o&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,o)})),t(n)}var xr=(()=>((xr=xr||{})[xr.Interceptors=0]="Interceptors",xr[xr.LegacyInterceptors=1]="LegacyInterceptors",xr[xr.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",xr[xr.NoXsrfProtection=3]="NoXsrfProtection",xr[xr.JsonpSupport=4]="JsonpSupport",xr[xr.RequestsMadeViaParent=5]="RequestsMadeViaParent",xr))();function Mg(n,t){return{\u0275kind:n,\u0275providers:t}}function Lae(...n){const t=[q0,w9,y9,{provide:g4,useExisting:y9},{provide:jW,useExisting:w9},{provide:D3,useValue:Wae,multi:!0},{provide:ZW,useValue:!0},{provide:L9,useClass:qae}];for(const e of n)t.push(...e.\u0275providers);return function Rq(n){return{\u0275providers:n}}(t)}const T9=new Qt("LEGACY_INTERCEPTOR_FN");function Rae({cookieName:n,headerName:t}){const e=[];return void 0!==n&&e.push({provide:x9,useValue:n}),void 0!==t&&e.push({provide:W9,useValue:t}),Mg(xr.CustomXsrfConfiguration,e)}let Sae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({providers:[Lae(Mg(xr.LegacyInterceptors,[{provide:T9,useFactory:Aae},{provide:D3,useExisting:T9,multi:!0}]),Rae({cookieName:P9,headerName:q9}))]}),n})();const KW={now:()=>(KW.delegate||Date).now(),delegate:void 0};class R9 extends I{constructor(t=1/0,e=1/0,o=KW){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=o,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:o,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:a}=this;e||(o.push(t),!r&&o.push(i.now()+a)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:o,_buffer:r}=this,i=r.slice();for(let a=0;a{let r=null,i=0,a=!1;const s=()=>a&&!r&&o.complete();e.subscribe($(o,c=>{r?.unsubscribe();let p=0;const d=i++;k0(n(c,d)).subscribe(r=$(o,u=>o.next(t?t(c,u,d,p++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}const _4={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return _4.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return _4.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let JW;function Hae(n,t,e){let o=e;return function kae(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,i)=>!("*"===r||!function Iae(n,t){if(!JW){const e=Element.prototype;JW=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&JW.call(n,t)}(n,r)||(o=i,0))),o}class jae{constructor(t,e){this.componentFactory=e.get(Pi).resolveComponentFactory(t)}create(t){return new Uae(this.componentFactory,t)}}class Uae{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new R9(1),this.events=this.eventEmitters.pipe(hi(o=>Ia(...o))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:o})=>o)),this.ngZone=this.injector.get(To),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=_4.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function Nae(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Qo.create({providers:[],parent:this.injector}),o=function Yae(n,t){const e=n.childNodes,o=t.map(()=>[]);let r=-1;t.some((i,a)=>"*"===i&&(r=a,!0));for(let i=0,a=e.length;i{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:o,templateName:r})=>t.instance[o].pipe(j(a=>({name:r,value:a}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=_4.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const o=this.inputChanges[t];if(o)return void(o.currentValue=e);const r=this.unchangedInputs.has(t),i=r?void 0:this.getInputValue(t);this.inputChanges[t]=new $M(i,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Vae extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function bg(n,t){const e=function Fae(n,t){return t.get(Pi).resolveComponentFactory(n).inputs}(n,t.injector),o=t.strategyFactory||new jae(n,t.injector),r=function Bae(n){const t={};return n.forEach(({propName:e,templateName:o})=>{t[function Dae(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(o)]=e}),t}(e);class i extends Vae{get ngElementStrategy(){if(!this._ngElementStrategy){const s=this._ngElementStrategy=o.create(this.injector||t.injector);e.forEach(({propName:c})=>{if(!this.hasOwnProperty(c))return;const p=this[c];delete this[c],s.setInputValue(c,p)})}return this._ngElementStrategy}constructor(s){super(),this.injector=s}attributeChangedCallback(s,c,p,d){this.ngElementStrategy.setInputValue(r[s],p)}connectedCallback(){let s=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),s=!0),this.ngElementStrategy.connect(this),s||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(s=>{const c=new CustomEvent(s.name,{detail:s.value});this.dispatchEvent(c)})}}return i.observedAttributes=Object.keys(r),e.forEach(({propName:a})=>{Object.defineProperty(i.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(s){this.ngElementStrategy.setInputValue(a,s)},configurable:!0,enumerable:!0})}),i}class No extends I{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:o}=this;if(t)throw e;return this._throwIfClosed(),o}next(t){super.next(this._value=t)}}const k3=S(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:$ae}=Array,{getPrototypeOf:Gae,prototype:Zae,keys:Kae}=Object;function S9(n){if(1===n.length){const t=n[0];if($ae(t))return{args:t,keys:null};if(function Jae(n){return n&&"object"==typeof n&&Gae(n)===Zae}(t)){const e=Kae(t);return{args:e.map(o=>t[o]),keys:e}}}return{args:n,keys:null}}const{isArray:Qae}=Array;function QW(n){return j(t=>function ese(n,t){return Qae(t)?n(...t):n(t)}(n,t))}function D9(n,t){return n.reduce((e,o,r)=>(e[o]=t[r],e),{})}function eL(...n){const t=vi(n),e=oi(n),{args:o,keys:r}=S9(n);if(0===o.length)return $n([],t);const i=new V(function tse(n,t,e=W){return o=>{k9(t,()=>{const{length:r}=n,i=new Array(r);let a=r,s=r;for(let c=0;c{const p=$n(n[c],t);let d=!1;p.subscribe($(o,u=>{i[c]=u,d||(d=!0,s--),s||o.next(e(i.slice()))},()=>{--a||o.complete()}))},o)},o)}}(o,t,r?a=>D9(r,a):W));return e?i.pipe(QW(e)):i}function k9(n,t,e){n?c1(e,n,t):t()}function gg(...n){return function nse(){return nn(1)}()($n(n,vi(n)))}function E3(n){return new V(t=>{k0(n()).subscribe(t)})}function lh(n,t){const e=z(n)?n:()=>n,o=r=>r.error(e());return new V(t?r=>t.schedule(o,0,r):o)}function tL(){return _t((n,t)=>{let e=null;n._refCount++;const o=$(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,i=e;e=null,r&&(!i||r===i)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(o),o.closed||(e=n.connect())})}class nL extends V{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Nt(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new B;const e=this.getSubject();t.add(this.source.subscribe($(e,void 0,()=>{this._teardown(),e.complete()},o=>{this._teardown(),e.error(o)},()=>this._teardown()))),t.closed&&(this._connection=null,t=B.EMPTY)}return t}refCount(){return tL()(this)}}function Zl(n){return n<=0?()=>h1:_t((t,e)=>{let o=0;t.subscribe($(e,r=>{++o<=n&&(e.next(r),n<=o&&e.complete())}))})}function z4(...n){const t=vi(n);return _t((e,o)=>{(t?gg(n,e,t):gg(n,e)).subscribe(o)})}function I3(n){return _t((t,e)=>{let o=!1;t.subscribe($(e,r=>{o=!0,e.next(r)},()=>{o||e.next(n),e.complete()}))})}function E9(n=ose){return _t((t,e)=>{let o=!1;t.subscribe($(e,r=>{o=!0,e.next(r)},()=>o?e.complete():e.error(n())))})}function ose(){return new k3}function ad(n,t){const e=arguments.length>=2;return o=>o.pipe(n?ht((r,i)=>n(r,i,o)):W,Zl(1),e?I3(t):E9(()=>new k3))}function jo(n,t,e){const o=z(n)||t||e?{next:n,error:t,complete:e}:n;return o?_t((r,i)=>{var a;null===(a=o.subscribe)||void 0===a||a.call(o);let s=!0;r.subscribe($(i,c=>{var p;null===(p=o.next)||void 0===p||p.call(o,c),i.next(c)},()=>{var c;s=!1,null===(c=o.complete)||void 0===c||c.call(o),i.complete()},c=>{var p;s=!1,null===(p=o.error)||void 0===p||p.call(o,c),i.error(c)},()=>{var c,p;s&&(null===(c=o.unsubscribe)||void 0===c||c.call(o)),null===(p=o.finalize)||void 0===p||p.call(o)}))}):W}function hu(n){return _t((t,e)=>{let i,o=null,r=!1;o=t.subscribe($(e,void 0,void 0,a=>{i=k0(n(a,hu(n)(t))),o?(o.unsubscribe(),o=null,i.subscribe(e)):r=!0})),r&&(o.unsubscribe(),o=null,i.subscribe(e))})}function I9(n,t){return _t(function rse(n,t,e,o,r){return(i,a)=>{let s=e,c=t,p=0;i.subscribe($(a,d=>{const u=p++;c=s?n(c,d,u):(s=!0,d),o&&a.next(c)},r&&(()=>{s&&a.next(c),a.complete()})))}}(n,t,arguments.length>=2,!0))}function oL(n){return n<=0?()=>h1:_t((t,e)=>{let o=[];t.subscribe($(e,r=>{o.push(r),n{for(const r of o)e.next(r);e.complete()},void 0,()=>{o=null}))})}function N9(n,t){const e=arguments.length>=2;return o=>o.pipe(n?ht((r,i)=>n(r,i,o)):W,oL(1),e?I3(t):E9(()=>new k3))}function B9(n){return j(()=>n)}function q2(n){return _t((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const A1="primary",N3=Symbol("RouteTitle");class ase{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Og(n){return new ase(n)}function sse(n,t,e){const o=e.path.split("/");if(o.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||o.lengtho[i]===r)}return n===t}function Y9(n){return Array.prototype.concat.apply([],n)}function H9(n){return n.length>0?n[n.length-1]:null}function Ni(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function W2(n){return W6(n)?n:g3(n)?$n(Promise.resolve(n)):be(n)}const v4=!1,lse={exact:function U9(n,t,e){if(!dh(n.segments,t.segments)||!A4(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const o in t.children)if(!n.children[o]||!U9(n.children[o],t.children[o],e))return!1;return!0},subset:V9},X9={exact:function pse(n,t){return sd(n,t)},subset:function dse(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>F9(n[e],t[e]))},ignored:()=>!0};function j9(n,t,e){return lse[e.paths](n.root,t.root,e.matrixParams)&&X9[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function V9(n,t,e){return $9(n,t,t.segments,e)}function $9(n,t,e,o){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!dh(r,e)||t.hasChildren()||!A4(r,e,o))}if(n.segments.length===e.length){if(!dh(n.segments,e)||!A4(n.segments,e,o))return!1;for(const r in t.children)if(!n.children[r]||!V9(n.children[r],t.children[r],o))return!1;return!0}{const r=e.slice(0,n.segments.length),i=e.slice(n.segments.length);return!!(dh(n.segments,r)&&A4(n.segments,r,o)&&n.children[A1])&&$9(n.children[A1],t,i,o)}}function A4(n,t,e){return t.every((o,r)=>X9[e](n[r].parameters,o.parameters))}class ph{constructor(t=new H1([],{}),e={},o=null){this.root=t,this.queryParams=e,this.fragment=o}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Og(this.queryParams)),this._queryParamMap}toString(){return hse.serialize(this)}}class H1{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ni(e,(o,r)=>o.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return y4(this)}}class B3{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Og(this.parameters)),this._parameterMap}toString(){return K9(this)}}function dh(n,t){return n.length===t.length&&n.every((e,o)=>e.path===t[o].path)}let F3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:function(){return new rL},providedIn:"root"}),n})();class rL{parse(t){const e=new Ase(t);return new ph(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Y3(t.root,!0)}`,o=function gse(n){const t=Object.keys(n).map(e=>{const o=n[e];return Array.isArray(o)?o.map(r=>`${C4(e)}=${C4(r)}`).join("&"):`${C4(e)}=${C4(o)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${o}${"string"==typeof t.fragment?`#${function Mse(n){return encodeURI(n)}(t.fragment)}`:""}`}}const hse=new rL;function y4(n){return n.segments.map(t=>K9(t)).join("/")}function Y3(n,t){if(!n.hasChildren())return y4(n);if(t){const e=n.children[A1]?Y3(n.children[A1],!1):"",o=[];return Ni(n.children,(r,i)=>{i!==A1&&o.push(`${i}:${Y3(r,!1)}`)}),o.length>0?`${e}(${o.join("//")})`:e}{const e=function fse(n,t){let e=[];return Ni(n.children,(o,r)=>{r===A1&&(e=e.concat(t(o,r)))}),Ni(n.children,(o,r)=>{r!==A1&&(e=e.concat(t(o,r)))}),e}(n,(o,r)=>r===A1?[Y3(n.children[A1],!1)]:[`${r}:${Y3(o,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[A1]?`${y4(n)}/${e[0]}`:`${y4(n)}/(${e.join("//")})`}}function G9(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function C4(n){return G9(n).replace(/%3B/gi,";")}function iL(n){return G9(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function w4(n){return decodeURIComponent(n)}function Z9(n){return w4(n.replace(/\+/g,"%20"))}function K9(n){return`${iL(n.path)}${function bse(n){return Object.keys(n).map(t=>`;${iL(t)}=${iL(n[t])}`).join("")}(n.parameters)}`}const Ose=/^[^\/()?;=#]+/;function P4(n){const t=n.match(Ose);return t?t[0]:""}const mse=/^[^=?&#]+/,zse=/^[^&#]+/;class Ase{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new H1([],{}):new H1([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(o[A1]=new H1(t,e)),o}parseSegment(){const t=P4(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new xt(4009,v4);return this.capture(t),new B3(w4(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=P4(this.remaining);if(!e)return;this.capture(e);let o="";if(this.consumeOptional("=")){const r=P4(this.remaining);r&&(o=r,this.capture(o))}t[w4(e)]=w4(o)}parseQueryParam(t){const e=function _se(n){const t=n.match(mse);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let o="";if(this.consumeOptional("=")){const a=function vse(n){const t=n.match(zse);return t?t[0]:""}(this.remaining);a&&(o=a,this.capture(o))}const r=Z9(e),i=Z9(o);if(t.hasOwnProperty(r)){let a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const o=P4(this.remaining),r=this.remaining[o.length];if("/"!==r&&")"!==r&&";"!==r)throw new xt(4010,v4);let i;o.indexOf(":")>-1?(i=o.slice(0,o.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=A1);const a=this.parseChildren();e[i]=1===Object.keys(a).length?a[A1]:new H1([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new xt(4011,v4)}}function aL(n){return n.segments.length>0?new H1([],{[A1]:n}):n}function x4(n){const t={};for(const o of Object.keys(n.children)){const i=x4(n.children[o]);(i.segments.length>0||i.hasChildren())&&(t[o]=i)}return function yse(n){if(1===n.numberOfChildren&&n.children[A1]){const t=n.children[A1];return new H1(n.segments.concat(t.segments),t.children)}return n}(new H1(n.segments,t))}function uh(n){return n instanceof ph}const sL=!1;function Pse(n,t,e,o,r){if(0===e.length)return mg(t.root,t.root,t.root,o,r);const i=function eF(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Q9(!0,0,n);let t=0,e=!1;const o=n.reduce((r,i,a)=>{if("object"==typeof i&&null!=i){if(i.outlets){const s={};return Ni(i.outlets,(c,p)=>{s[p]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(i.segmentPath)return[...r,i.segmentPath]}return"string"!=typeof i?[...r,i]:0===a?(i.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?t++:""!=s&&r.push(s))}),r):[...r,i]},[]);return new Q9(e,t,o)}(e);return i.toRoot()?mg(t.root,t.root,new H1([],{}),o,r):function a(c){const p=function qse(n,t,e,o){if(n.isAbsolute)return new _g(t.root,!0,0);if(-1===o)return new _g(e,e===t.root,0);return function tF(n,t,e){let o=n,r=t,i=e;for(;i>r;){if(i-=r,o=o.parent,!o)throw new xt(4005,sL&&"Invalid number of '../'");r=o.segments.length}return new _g(o,!1,r-i)}(e,o+(H3(n.commands[0])?0:1),n.numberOfDoubleDots)}(i,t,n.snapshot?._urlSegment,c),d=p.processChildren?zg(p.segmentGroup,p.index,i.commands):cL(p.segmentGroup,p.index,i.commands);return mg(t.root,p.segmentGroup,d,o,r)}(n.snapshot?._lastPathIndex)}function H3(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function X3(n){return"object"==typeof n&&null!=n&&n.outlets}function mg(n,t,e,o,r){let a,i={};o&&Ni(o,(c,p)=>{i[p]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),a=n===t?e:J9(n,t,e);const s=aL(x4(a));return new ph(s,i,r)}function J9(n,t,e){const o={};return Ni(n.children,(r,i)=>{o[i]=r===t?e:J9(r,t,e)}),new H1(n.segments,o)}class Q9{constructor(t,e,o){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=o,t&&o.length>0&&H3(o[0]))throw new xt(4003,sL&&"Root segment cannot have matrix parameters");const r=o.find(X3);if(r&&r!==H9(o))throw new xt(4004,sL&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class _g{constructor(t,e,o){this.segmentGroup=t,this.processChildren=e,this.index=o}}function cL(n,t,e){if(n||(n=new H1([],{})),0===n.segments.length&&n.hasChildren())return zg(n,t,e);const o=function Lse(n,t,e){let o=0,r=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return i;const a=n.segments[r],s=e[o];if(X3(s))break;const c=`${s}`,p=o0&&void 0===c)break;if(c&&p&&"object"==typeof p&&void 0===p.outlets){if(!oF(c,p,a))return i;o+=2}else{if(!oF(c,{},a))return i;o++}r++}return{match:!0,pathIndex:r,commandIndex:o}}(n,t,e),r=e.slice(o.commandIndex);if(o.match&&o.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(r[a]=cL(n.children[a],t,i))}),Ni(n.children,(i,a)=>{void 0===o[a]&&(r[a]=i)}),new H1(n.segments,r))}}function lL(n,t,e){const o=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[o]=lL(new H1([],{}),0,e))}),t}function nF(n){const t={};return Ni(n,(e,o)=>t[o]=`${e}`),t}function oF(n,t,e){return n==e.path&&sd(t,e.parameters)}const j3="imperative";class cd{constructor(t,e){this.id=t,this.url=e}}class pL extends cd{constructor(t,e,o="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=o,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class L2 extends cd{constructor(t,e,o){super(t,e),this.urlAfterRedirects=o,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class q4 extends cd{constructor(t,e,o,r){super(t,e),this.reason=o,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class rF extends cd{constructor(t,e,o,r){super(t,e),this.reason=o,this.code=r,this.type=16}}class iF extends cd{constructor(t,e,o,r){super(t,e),this.error=o,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Rse extends cd{constructor(t,e,o,r){super(t,e),this.urlAfterRedirects=o,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sse extends cd{constructor(t,e,o,r){super(t,e),this.urlAfterRedirects=o,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dse extends cd{constructor(t,e,o,r,i){super(t,e),this.urlAfterRedirects=o,this.state=r,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class kse extends cd{constructor(t,e,o,r){super(t,e),this.urlAfterRedirects=o,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ese extends cd{constructor(t,e,o,r){super(t,e),this.urlAfterRedirects=o,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ise{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Nse{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Bse{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fse{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yse{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hse{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aF{constructor(t,e,o){this.routerEvent=t,this.position=e,this.anchor=o,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let jse=(()=>{class n{createUrlTree(e,o,r,i,a,s){return Pse(e||o.root,r,i,a,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),Use=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:function(t){return jse.\u0275fac(t)},providedIn:"root"}),n})();class sF{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=dL(t,this._root);return e?e.children.map(o=>o.value):[]}firstChild(t){const e=dL(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=uL(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return uL(t,this._root).map(e=>e.value)}}function dL(n,t){if(n===t.value)return t;for(const e of t.children){const o=dL(n,e);if(o)return o}return null}function uL(n,t){if(n===t.value)return[t];for(const e of t.children){const o=uL(n,e);if(o.length)return o.unshift(t),o}return[]}class Mu{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function vg(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class cF extends sF{constructor(t,e){super(t),this.snapshot=e,fL(this,t)}toString(){return this.snapshot.toString()}}function lF(n,t){const e=function Vse(n,t){const a=new W4([],{},{},"",{},A1,t,null,n.root,-1,{});return new dF("",new Mu(a,[]))}(n,t),o=new No([new B3("",{})]),r=new No({}),i=new No({}),a=new No({}),s=new No(""),c=new fh(o,r,a,s,i,A1,t,e.root);return c.snapshot=e.root,new cF(new Mu(c,[]),e)}class fh{constructor(t,e,o,r,i,a,s,c){this.url=t,this.params=e,this.queryParams=o,this.fragment=r,this.data=i,this.outlet=a,this.component=s,this.title=this.data?.pipe(j(p=>p[N3]))??be(void 0),this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(j(t=>Og(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(j(t=>Og(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pF(n,t="emptyOnly"){const e=n.pathFromRoot;let o=0;if("always"!==t)for(o=e.length-1;o>=1;){const r=e[o],i=e[o-1];if(r.routeConfig&&""===r.routeConfig.path)o--;else{if(i.component)break;o--}}return function $se(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(o))}class W4{get title(){return this.data?.[N3]}constructor(t,e,o,r,i,a,s,c,p,d,u){this.url=t,this.params=e,this.queryParams=o,this.fragment=r,this.data=i,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=p,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Og(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Og(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(o=>o.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dF extends sF{constructor(t,e){super(e),this.url=t,fL(this,e)}toString(){return uF(this._root)}}function fL(n,t){t.value._routerState=n,t.children.forEach(e=>fL(n,e))}function uF(n){const t=n.children.length>0?` { ${n.children.map(uF).join(", ")} } `:"";return`${n.value}${t}`}function hL(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,sd(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),sd(t.params,e.params)||n.params.next(e.params),function cse(n,t){if(n.length!==t.length)return!1;for(let e=0;esd(e.parameters,t[o].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||ML(n.parent,t.parent))}function U3(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const o=e.value;o._futureSnapshot=t.value;const r=function Zse(n,t,e){return t.children.map(o=>{for(const r of e.children)if(n.shouldReuseRoute(o.value,r.value.snapshot))return U3(n,o,r);return U3(n,o)})}(n,t,e);return new Mu(o,r)}{if(n.shouldAttach(t.value)){const i=n.retrieve(t.value);if(null!==i){const a=i.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>U3(n,s)),a}}const o=function Kse(n){return new fh(new No(n.url),new No(n.params),new No(n.queryParams),new No(n.fragment),new No(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(i=>U3(n,i));return new Mu(o,r)}}const bL="ngNavigationCancelingError";function fF(n,t){const{redirectTo:e,navigationBehaviorOptions:o}=uh(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=hF(!1,0,t);return r.url=e,r.navigationBehaviorOptions=o,r}function hF(n,t,e){const o=new Error("NavigationCancelingError: "+(n||""));return o[bL]=!0,o.cancellationCode=t,e&&(o.url=e),o}function MF(n){return bF(n)&&uh(n.url)}function bF(n){return n&&n[bL]}class Jse{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new V3,this.attachRef=null}}let V3=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,o){const r=this.getOrCreateContext(e);r.outlet=o,this.contexts.set(e,r)}onChildOutletDestroyed(e){const o=this.getContext(e);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let o=this.getContext(e);return o||(o=new Jse,this.contexts.set(e,o)),o}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const L4=!1;let gL=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=A1,this.activateEvents=new G1,this.deactivateEvents=new G1,this.attachEvents=new G1,this.detachEvents=new G1,this.parentContexts=c0(V3),this.location=c0(uc),this.changeDetector=c0(ns),this.environmentInjector=c0(pc)}ngOnChanges(e){if(e.name){const{firstChange:o,previousValue:r}=e.name;if(o)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new xt(4012,L4);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new xt(4012,L4);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new xt(4012,L4);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,o){this.activated=e,this._activatedRoute=o,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,o){if(this.isActivated)throw new xt(4013,L4);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new Qse(e,s,r.injector);if(o&&function ece(n){return!!n.resolveComponentFactory}(o)){const p=o.resolveComponentFactory(a);this.activated=r.createComponent(p,r.length,c)}else this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:o??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=b0({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Yo]}),n})();class Qse{constructor(t,e,o){this.route=t,this.childContexts=e,this.parent=o}get(t,e){return t===fh?this.route:t===V3?this.childContexts:this.parent.get(t,e)}}let OL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["ng-component"]],standalone:!0,features:[wo],decls:1,vars:0,template:function(e,o){1&e&&de(0,"router-outlet")},dependencies:[gL],encapsulation:2}),n})();function gF(n,t){return n.providers&&!n._injector&&(n._injector=jy(n.providers,t,`Route: ${n.path}`)),n._injector??t}function _L(n){const t=n.children&&n.children.map(_L),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==A1&&(e.component=OL),e}function Vc(n){return n.outlet||A1}function OF(n,t){const e=n.filter(o=>Vc(o)===t);return e.push(...n.filter(o=>Vc(o)!==t)),e}function $3(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class ice{constructor(t,e,o,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=o,this.forwardEvent=r}activate(t){const e=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,o,t),hL(this.futureState.root),this.activateChildRoutes(e,o,t)}deactivateChildRoutes(t,e,o){const r=vg(e);t.children.forEach(i=>{const a=i.value.outlet;this.deactivateRoutes(i,r[a],o),delete r[a]}),Ni(r,(i,a)=>{this.deactivateRouteAndItsChildren(i,o)})}deactivateRoutes(t,e,o){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const a=o.getContext(r.outlet);a&&this.deactivateChildRoutes(t,e,a.children)}else this.deactivateChildRoutes(t,e,o);else i&&this.deactivateRouteAndItsChildren(e,o)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const o=e.getContext(t.value.outlet),r=o&&t.value.component?o.children:e,i=vg(t);for(const a of Object.keys(i))this.deactivateRouteAndItsChildren(i[a],r);if(o&&o.outlet){const a=o.outlet.detach(),s=o.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const o=e.getContext(t.value.outlet),r=o&&t.value.component?o.children:e,i=vg(t);for(const a of Object.keys(i))this.deactivateRouteAndItsChildren(i[a],r);o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}activateChildRoutes(t,e,o){const r=vg(e);t.children.forEach(i=>{this.activateRoutes(i,r[i.value.outlet],o),this.forwardEvent(new Hse(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Fse(t.value.snapshot))}activateRoutes(t,e,o){const r=t.value,i=e?e.value:null;if(hL(r),r===i)if(r.component){const a=o.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,o);else if(r.component){const a=o.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),hL(s.route.value),this.activateChildRoutes(t,null,a.children)}else{const s=$3(r.snapshot),c=s?.get(Pi)??null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,o)}}class mF{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class T4{constructor(t,e){this.component=t,this.route=e}}function ace(n,t,e){const o=n._root;return G3(o,t?t._root:null,e,[o.value])}function Ag(n,t){const e=Symbol(),o=t.get(n,e);return o===e?"function"!=typeof n||function kM(n){return null!==Id(n)}(n)?t.get(n):n:o}function G3(n,t,e,o,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=vg(t);return n.children.forEach(a=>{(function cce(n,t,e,o,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=n.value,a=t?t.value:null,s=e?e.getContext(n.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){const c=function lce(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!dh(n.url,t.url);case"pathParamsOrQueryParamsChange":return!dh(n.url,t.url)||!sd(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ML(n,t)||!sd(n.queryParams,t.queryParams);default:return!ML(n,t)}}(a,i,i.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new mF(o)):(i.data=a.data,i._resolvedData=a._resolvedData),G3(n,t,i.component?s?s.children:null:e,o,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new T4(s.outlet.component,a))}else a&&Z3(t,s,r),r.canActivateChecks.push(new mF(o)),G3(n,null,i.component?s?s.children:null:e,o,r)})(a,i[a.value.outlet],e,o.concat([a.value]),r),delete i[a.value.outlet]}),Ni(i,(a,s)=>Z3(a,e.getContext(s),r)),r}function Z3(n,t,e){const o=vg(n),r=n.value;Ni(o,(i,a)=>{Z3(i,r.component?t?t.children.getContext(a):null:t,e)}),e.canDeactivateChecks.push(new T4(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function K3(n){return"function"==typeof n}function zL(n){return n instanceof k3||"EmptyError"===n?.name}const R4=Symbol("INITIAL_VALUE");function yg(){return hi(n=>eL(n.map(t=>t.pipe(Zl(1),z4(R4)))).pipe(j(t=>{for(const e of t)if(!0!==e){if(e===R4)return R4;if(!1===e||e instanceof ph)return e}return!0}),ht(t=>t!==R4),Zl(1)))}function _F(n){return function F(...n){return U(n)}(jo(t=>{if(uh(t))throw fF(0,t)}),j(t=>!0===t))}const vL={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zF(n,t,e,o,r){const i=AL(n,t,e);return i.matched?function wce(n,t,e,o){const r=t.canMatch;return r&&0!==r.length?be(r.map(a=>{const s=Ag(a,n);return W2(function Mce(n){return n&&K3(n.canMatch)}(s)?s.canMatch(t,e):n.runInContext(()=>s(t,e)))})).pipe(yg(),_F()):be(!0)}(o=gF(t,o),t,e).pipe(j(a=>!0===a?i:{...vL})):be(i)}function AL(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...vL}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||sse)(e,n,t);if(!r)return{...vL};const i={};Ni(r.posParams,(s,c)=>{i[c]=s.path});const a=r.consumed.length>0?{...i,...r.consumed[r.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function S4(n,t,e,o){if(e.length>0&&function qce(n,t,e){return e.some(o=>D4(n,t,o)&&Vc(o)!==A1)}(n,e,o)){const i=new H1(t,function xce(n,t,e,o){const r={};r[A1]=o,o._sourceSegment=n,o._segmentIndexShift=t.length;for(const i of e)if(""===i.path&&Vc(i)!==A1){const a=new H1([],{});a._sourceSegment=n,a._segmentIndexShift=t.length,r[Vc(i)]=a}return r}(n,t,o,new H1(e,n.children)));return i._sourceSegment=n,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===e.length&&function Wce(n,t,e){return e.some(o=>D4(n,t,o))}(n,e,o)){const i=new H1(n.segments,function Pce(n,t,e,o,r){const i={};for(const a of o)if(D4(n,e,a)&&!r[Vc(a)]){const s=new H1([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,i[Vc(a)]=s}return{...r,...i}}(n,t,e,o,n.children));return i._sourceSegment=n,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:e}}const r=new H1(n.segments,n.children);return r._sourceSegment=n,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:e}}function D4(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function vF(n,t,e,o){return!!(Vc(n)===o||o!==A1&&D4(t,e,n))&&("**"===n.path||AL(t,n,e).matched)}function AF(n,t,e){return 0===t.length&&!n.children[e]}const k4=!1;class E4{constructor(t){this.segmentGroup=t||null}}class yF{constructor(t){this.urlTree=t}}function J3(n){return lh(new E4(n))}function CF(n){return lh(new yF(n))}class Sce{constructor(t,e,o,r,i){this.injector=t,this.configLoader=e,this.urlSerializer=o,this.urlTree=r,this.config=i,this.allowRedirects=!0}apply(){const t=S4(this.urlTree.root,[],[],this.config).segmentGroup,e=new H1(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,A1).pipe(j(i=>this.createUrlTree(x4(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(hu(i=>{if(i instanceof yF)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof E4?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,A1).pipe(j(r=>this.createUrlTree(x4(r),t.queryParams,t.fragment))).pipe(hu(r=>{throw r instanceof E4?this.noMatchError(r):r}))}noMatchError(t){return new xt(4002,k4)}createUrlTree(t,e,o){const r=aL(t);return new ph(r,e,o)}expandSegmentGroup(t,e,o,r){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(t,e,o).pipe(j(i=>new H1([],i))):this.expandSegment(t,o,e,o.segments,r,!0)}expandChildren(t,e,o){const r=[];for(const i of Object.keys(o.children))"primary"===i?r.unshift(i):r.push(i);return $n(r).pipe(x2(i=>{const a=o.children[i],s=OF(e,i);return this.expandSegmentGroup(t,s,a,i).pipe(j(c=>({segment:c,outlet:i})))}),I9((i,a)=>(i[a.outlet]=a.segment,i),{}),N9())}expandSegment(t,e,o,r,i,a){return $n(o).pipe(x2(s=>this.expandSegmentAgainstRoute(t,e,o,s,r,i,a).pipe(hu(p=>{if(p instanceof E4)return be(null);throw p}))),ad(s=>!!s),hu((s,c)=>{if(zL(s))return AF(e,r,i)?be(new H1([],{})):J3(e);throw s}))}expandSegmentAgainstRoute(t,e,o,r,i,a,s){return vF(r,e,i,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,o,r,i,a):J3(e):J3(e)}expandSegmentAgainstRouteUsingRedirect(t,e,o,r,i,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,o,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,o,r,i,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,o,r){const i=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?CF(i):this.lineralizeSegments(o,i).pipe(On(a=>{const s=new H1(a,{});return this.expandSegment(t,s,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,o,r,i,a){const{matched:s,consumedSegments:c,remainingSegments:p,positionalParamSegments:d}=AL(e,r,i);if(!s)return J3(e);const u=this.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?CF(u):this.lineralizeSegments(r,u).pipe(On(h=>this.expandSegment(t,e,o,h.concat(p),a,!1)))}matchSegmentAgainstRoute(t,e,o,r,i){return"**"===o.path?(t=gF(o,t),o.loadChildren?(o._loadedRoutes?be({routes:o._loadedRoutes,injector:o._loadedInjector}):this.configLoader.loadChildren(t,o)).pipe(j(s=>(o._loadedRoutes=s.routes,o._loadedInjector=s.injector,new H1(r,{})))):be(new H1(r,{}))):zF(e,o,r,t).pipe(hi(({matched:a,consumedSegments:s,remainingSegments:c})=>a?this.getChildConfig(t=o._injector??t,o,r).pipe(On(d=>{const u=d.injector??t,h=d.routes,{segmentGroup:M,slicedSegments:g}=S4(e,s,c,h),v=new H1(M.segments,M.children);if(0===g.length&&v.hasChildren())return this.expandChildren(u,h,v).pipe(j(L=>new H1(s,L)));if(0===h.length&&0===g.length)return be(new H1(s,{}));const A=Vc(o)===i;return this.expandSegment(u,v,h,g,A?A1:i,!0).pipe(j(q=>new H1(s.concat(q.segments),q.children)))})):J3(e)))}getChildConfig(t,e,o){return e.children?be({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?be({routes:e._loadedRoutes,injector:e._loadedInjector}):function Cce(n,t,e,o){const r=t.canLoad;return void 0===r||0===r.length?be(!0):be(r.map(a=>{const s=Ag(a,n);return W2(function dce(n){return n&&K3(n.canLoad)}(s)?s.canLoad(t,e):n.runInContext(()=>s(t,e)))})).pipe(yg(),_F())}(t,e,o).pipe(On(r=>r?this.configLoader.loadChildren(t,e).pipe(jo(i=>{e._loadedRoutes=i.routes,e._loadedInjector=i.injector})):function Tce(n){return lh(hF(k4,3))}())):be({routes:[],injector:t})}lineralizeSegments(t,e){let o=[],r=e.root;for(;;){if(o=o.concat(r.segments),0===r.numberOfChildren)return be(o);if(r.numberOfChildren>1||!r.children[A1])return t.redirectTo,lh(new xt(4e3,k4));r=r.children[A1]}}applyRedirectCommands(t,e,o){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,o)}applyRedirectCreateUrlTree(t,e,o,r){const i=this.createSegmentGroup(t,e.root,o,r);return new ph(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const o={};return Ni(t,(r,i)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);o[i]=e[s]}else o[i]=r}),o}createSegmentGroup(t,e,o,r){const i=this.createSegments(t,e.segments,o,r);let a={};return Ni(e.children,(s,c)=>{a[c]=this.createSegmentGroup(t,s,o,r)}),new H1(i,a)}createSegments(t,e,o,r){return e.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,r):this.findOrReturn(i,o))}findPosParam(t,e,o){const r=o[e.path.substring(1)];if(!r)throw new xt(4001,k4);return r}findOrReturn(t,e){let o=0;for(const r of e){if(r.path===t.path)return e.splice(o),r;o++}return t}}class kce{}class Nce{constructor(t,e,o,r,i,a,s){this.injector=t,this.rootComponentType=e,this.config=o,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const t=S4(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,A1).pipe(j(e=>{if(null===e)return null;const o=new W4([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},A1,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Mu(o,e),i=new dF(this.url,r);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const e=t.value,o=pF(e,this.paramsInheritanceStrategy);e.params=Object.freeze(o.params),e.data=Object.freeze(o.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,o,r){return 0===o.segments.length&&o.hasChildren()?this.processChildren(t,e,o):this.processSegment(t,e,o,o.segments,r)}processChildren(t,e,o){return $n(Object.keys(o.children)).pipe(x2(r=>{const i=o.children[r],a=OF(e,r);return this.processSegmentGroup(t,a,i,r)}),I9((r,i)=>r&&i?(r.push(...i),r):null),function ise(n,t=!1){return _t((e,o)=>{let r=0;e.subscribe($(o,i=>{const a=n(i,r++);(a||t)&&o.next(i),!a&&o.complete()}))})}(r=>null!==r),I3(null),N9(),j(r=>{if(null===r)return null;const i=PF(r);return function Bce(n){n.sort((t,e)=>t.value.outlet===A1?-1:e.value.outlet===A1?1:t.value.outlet.localeCompare(e.value.outlet))}(i),i}))}processSegment(t,e,o,r,i){return $n(e).pipe(x2(a=>this.processSegmentAgainstRoute(a._injector??t,a,o,r,i)),ad(a=>!!a),hu(a=>{if(zL(a))return AF(o,r,i)?be([]):be(null);throw a}))}processSegmentAgainstRoute(t,e,o,r,i){if(e.redirectTo||!vF(e,o,r,i))return be(null);let a;if("**"===e.path){const s=r.length>0?H9(r).parameters:{},c=qF(o)+r.length;a=be({snapshot:new W4(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WF(e),Vc(e),e.component??e._loadedComponent??null,e,xF(o),c,LF(e)),consumedSegments:[],remainingSegments:[]})}else a=zF(o,e,r,t).pipe(j(({matched:s,consumedSegments:c,remainingSegments:p,parameters:d})=>{if(!s)return null;const u=qF(o)+c.length;return{snapshot:new W4(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WF(e),Vc(e),e.component??e._loadedComponent??null,e,xF(o),u,LF(e)),consumedSegments:c,remainingSegments:p}}));return a.pipe(hi(s=>{if(null===s)return be(null);const{snapshot:c,consumedSegments:p,remainingSegments:d}=s;t=e._injector??t;const u=e._loadedInjector??t,h=function Fce(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:M,slicedSegments:g}=S4(o,p,d,h.filter(A=>void 0===A.redirectTo));if(0===g.length&&M.hasChildren())return this.processChildren(u,h,M).pipe(j(A=>null===A?null:[new Mu(c,A)]));if(0===h.length&&0===g.length)return be([new Mu(c,[])]);const v=Vc(e)===i;return this.processSegment(u,h,M,g,v?A1:i).pipe(j(A=>null===A?null:[new Mu(c,A)]))}))}}function Yce(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function PF(n){const t=[],e=new Set;for(const o of n){if(!Yce(o)){t.push(o);continue}const r=t.find(i=>o.value.routeConfig===i.value.routeConfig);void 0!==r?(r.children.push(...o.children),e.add(r)):t.push(o)}for(const o of e){const r=PF(o.children);t.push(new Mu(o.value,r))}return t.filter(o=>!e.has(o))}function xF(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function qF(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function WF(n){return n.data||{}}function LF(n){return n.resolve||{}}function TF(n){return"string"==typeof n.title||null===n.title}function yL(n){return hi(t=>{const e=n(t);return e?$n(e).pipe(j(()=>t)):be(t)})}const Cg=new Qt("ROUTES");let CL=(()=>{class n{constructor(e,o){this.injector=e,this.compiler=o,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return be(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const o=W2(e.loadComponent()).pipe(j(SF),jo(i=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=i}),q2(()=>{this.componentLoaders.delete(e)})),r=new nL(o,()=>new I).pipe(tL());return this.componentLoaders.set(e,r),r}loadChildren(e,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return be({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);const i=this.loadModuleFactoryOrRoutes(o.loadChildren).pipe(j(s=>{this.onLoadEndListener&&this.onLoadEndListener(o);let c,p,d=!1;Array.isArray(s)?p=s:(c=s.create(e).injector,p=Y9(c.get(Cg,[],h0.Self|h0.Optional)));return{routes:p.map(_L),injector:c}}),q2(()=>{this.childrenLoaders.delete(o)})),a=new nL(i,()=>new I).pipe(tL());return this.childrenLoaders.set(o,a),a}loadModuleFactoryOrRoutes(e){return W2(e()).pipe(j(SF),On(r=>r instanceof n7||Array.isArray(r)?be(r):$n(this.compiler.compileModuleAsync(r))))}}return n.\u0275fac=function(e){return new(e||n)(Te(Qo),Te($7))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function SF(n){return function Kce(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let N4=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new I,this.configLoader=c0(CL),this.environmentInjector=c0(pc),this.urlSerializer=c0(F3),this.rootContexts=c0(V3),this.navigationId=0,this.afterPreactivation=()=>be(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Nse(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Ise(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const o=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:o})}setupNavigations(e){return this.transitions=new No({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:j3,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ht(o=>0!==o.id),j(o=>({...o,extractedUrl:e.urlHandlingStrategy.extract(o.rawUrl)})),hi(o=>{let r=!1,i=!1;return be(o).pipe(jo(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),hi(a=>{const s=e.browserUrlTree.toString(),c=!e.navigated||a.extractedUrl.toString()!==s||s!==e.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new rF(a.id,e.serializeUrl(o.rawUrl),d,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),h1}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return DF(a.source)&&(e.browserUrlTree=a.extractedUrl),be(a).pipe(hi(d=>{const u=this.transitions?.getValue();return this.events.next(new pL(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),u!==this.transitions?.getValue()?h1:Promise.resolve(d)}),function Dce(n,t,e,o){return hi(r=>function Rce(n,t,e,o,r){return new Sce(n,t,e,o,r).apply()}(n,t,e,r.extractedUrl,o).pipe(j(i=>({...r,urlAfterRedirects:i}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),jo(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},o.urlAfterRedirects=d.urlAfterRedirects}),function Xce(n,t,e,o,r){return On(i=>function Ice(n,t,e,o,r,i,a="emptyOnly"){return new Nce(n,t,e,o,r,a,i).recognize().pipe(hi(s=>null===s?function Ece(n){return new V(t=>t.error(n))}(new kce):be(s)))}(n,t,e,i.urlAfterRedirects,o.serialize(i.urlAfterRedirects),o,r).pipe(j(a=>({...i,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),jo(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);e.setBrowserUrl(h,d)}e.browserUrlTree=d.urlAfterRedirects}const u=new Rse(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}));if(c&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:d,extractedUrl:u,source:h,restoredState:M,extras:g}=a,v=new pL(d,this.urlSerializer.serialize(u),h,M);this.events.next(v);const A=lF(u,this.rootComponentType).snapshot;return be(o={...a,targetSnapshot:A,urlAfterRedirects:u,extras:{...g,skipLocationChange:!1,replaceUrl:!1}})}{const d="";return this.events.next(new rF(a.id,e.serializeUrl(o.extractedUrl),d,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),h1}}),jo(a=>{const s=new Sse(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),j(a=>o={...a,guards:ace(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function gce(n,t){return On(e=>{const{targetSnapshot:o,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:a}}=e;return 0===a.length&&0===i.length?be({...e,guardsResult:!0}):function Oce(n,t,e,o){return $n(n).pipe(On(r=>function yce(n,t,e,o,r){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?be(i.map(s=>{const c=$3(t)??r,p=Ag(s,c);return W2(function hce(n){return n&&K3(n.canDeactivate)}(p)?p.canDeactivate(n,t,e,o):c.runInContext(()=>p(n,t,e,o))).pipe(ad())})).pipe(yg()):be(!0)}(r.component,r.route,e,t,o)),ad(r=>!0!==r,!0))}(a,o,r,n).pipe(On(s=>s&&function pce(n){return"boolean"==typeof n}(s)?function mce(n,t,e,o){return $n(t).pipe(x2(r=>gg(function zce(n,t){return null!==n&&t&&t(new Bse(n)),be(!0)}(r.route.parent,o),function _ce(n,t){return null!==n&&t&&t(new Yse(n)),be(!0)}(r.route,o),function Ace(n,t,e){const o=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(a=>function sce(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(a)).filter(a=>null!==a).map(a=>E3(()=>be(a.guards.map(c=>{const p=$3(a.node)??e,d=Ag(c,p);return W2(function fce(n){return n&&K3(n.canActivateChild)}(d)?d.canActivateChild(o,n):p.runInContext(()=>d(o,n))).pipe(ad())})).pipe(yg())));return be(i).pipe(yg())}(n,r.path,e),function vce(n,t,e){const o=t.routeConfig?t.routeConfig.canActivate:null;if(!o||0===o.length)return be(!0);const r=o.map(i=>E3(()=>{const a=$3(t)??e,s=Ag(i,a);return W2(function uce(n){return n&&K3(n.canActivate)}(s)?s.canActivate(t,n):a.runInContext(()=>s(t,n))).pipe(ad())}));return be(r).pipe(yg())}(n,r.route,e))),ad(r=>!0!==r,!0))}(o,i,n,t):be(s)),j(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),jo(a=>{if(o.guardsResult=a.guardsResult,uh(a.guardsResult))throw fF(0,a.guardsResult);const s=new Dse(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),ht(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),yL(a=>{if(a.guards.canActivateChecks.length)return be(a).pipe(jo(s=>{const c=new kse(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),hi(s=>{let c=!1;return be(s).pipe(function jce(n,t){return On(e=>{const{targetSnapshot:o,guards:{canActivateChecks:r}}=e;if(!r.length)return be(e);let i=0;return $n(r).pipe(x2(a=>function Uce(n,t,e,o){const r=n.routeConfig,i=n._resolve;return void 0!==r?.title&&!TF(r)&&(i[N3]=r.title),function Vce(n,t,e,o){const r=function $ce(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return be({});const i={};return $n(r).pipe(On(a=>function Gce(n,t,e,o){const r=$3(t)??o,i=Ag(n,r);return W2(i.resolve?i.resolve(t,e):r.runInContext(()=>i(t,e)))}(n[a],t,e,o).pipe(ad(),jo(s=>{i[a]=s}))),oL(1),B9(i),hu(a=>zL(a)?h1:lh(a)))}(i,n,t,o).pipe(j(a=>(n._resolvedData=a,n.data=pF(n,e).resolve,r&&TF(r)&&(n.data[N3]=r.title),null)))}(a.route,o,n,t)),jo(()=>i++),oL(1),On(a=>i===r.length?be(e):h1))})}(e.paramsInheritanceStrategy,this.environmentInjector),jo({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),jo(s=>{const c=new Ese(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),yL(a=>{const s=c=>{const p=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(c.routeConfig).pipe(jo(d=>{c.component=d}),j(()=>{})));for(const d of c.children)p.push(...s(d));return p};return eL(s(a.targetSnapshot.root)).pipe(I3(),Zl(1))}),yL(()=>this.afterPreactivation()),j(a=>{const s=function Gse(n,t,e){const o=U3(n,t._root,e?e._root:void 0);return new cF(o,t)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o={...a,targetRouterState:s}}),jo(a=>{e.currentUrlTree=a.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),e.routerState=a.targetRouterState,"deferred"===e.urlUpdateStrategy&&(a.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,a),e.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>j(o=>(new ice(t,o.targetRouterState,o.currentRouterState,e).activate(n),o)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),jo({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new L2(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),q2(()=>{r||i||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),hu(a=>{if(i=!0,bF(a)){MF(a)||(e.navigated=!0,e.restoreHistory(o,!0));const s=new q4(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),MF(a)){const c=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),p={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||DF(o.source)};e.scheduleNavigation(c,j3,null,p,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{e.restoreHistory(o,!0);const s=new iF(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);this.events.next(s);try{o.resolve(e.errorHandler(a))}catch(c){o.reject(c)}}return h1}))}))}cancelNavigationTransition(e,o,r){const i=new q4(e.id,this.urlSerializer.serialize(e.extractedUrl),o,r);this.events.next(i),e.resolve(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function DF(n){return n!==j3}let kF=(()=>{class n{buildTitle(e){let o,r=e.root;for(;void 0!==r;)o=this.getResolvedTitleForRoute(r)??o,r=r.children.find(i=>i.outlet===A1);return o}getResolvedTitleForRoute(e){return e.data[N3]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:function(){return c0(Jce)},providedIn:"root"}),n})(),Jce=(()=>{class n extends kF{constructor(e){super(),this.title=e}updateTitle(e){const o=this.buildTitle(e);void 0!==o&&this.title.setTitle(o)}}return n.\u0275fac=function(e){return new(e||n)(Te(M9))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:function(){return c0(ele)},providedIn:"root"}),n})();class Qce{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let ele=(()=>{class n extends Qce{}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const B4=new Qt("",{providedIn:"root",factory:()=>({})});let nle=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:function(){return c0(ole)},providedIn:"root"}),n})(),ole=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,o){return e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function rle(n){throw n}function ile(n,t,e){return t.parse("/")}const ale={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},sle={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ss=(()=>{class n{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=c0(doe),this.isNgZoneEnabled=!1,this.options=c0(B4,{optional:!0})||{},this.errorHandler=this.options.errorHandler||rle,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ile,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=c0(nle),this.routeReuseStrategy=c0(wL),this.urlCreationStrategy=c0(Use),this.titleStrategy=c0(kF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Y9(c0(Cg,{optional:!0})??[]),this.navigationTransitions=c0(N4),this.urlSerializer=c0(F3),this.location=c0(OW),this.isNgZoneEnabled=c0(To)instanceof To&&To.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ph,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lF(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),j3,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const o="popstate"===e.type?"popstate":"hashchange";"popstate"===o&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,o,e.state)},0)}))}navigateToSyncWithBrowser(e,o,r){const i={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(i.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,o,a,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(_L),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,o={}){const{relativeTo:r,queryParams:i,fragment:a,queryParamsHandling:s,preserveFragment:c}=o,p=c?this.currentUrlTree.fragment:a;let d=null;switch(s){case"merge":d={...this.currentUrlTree.queryParams,...i};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,d,p??null)}navigateByUrl(e,o={skipLocationChange:!1}){const r=uh(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(i,j3,null,o)}navigate(e,o={skipLocationChange:!1}){return function cle(n){for(let t=0;t{const i=e[r];return null!=i&&(o[r]=i),o},{})}scheduleNavigation(e,o,r,i,a){if(this.disposed)return Promise.resolve(!1);let s,c,p,d;return a?(s=a.resolve,c=a.reject,p=a.promise):p=new Promise((u,h)=>{s=u,c=h}),d="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:d,source:o,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:i,resolve:s,reject:c,promise:p,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),p.catch(u=>Promise.reject(u))}setBrowserUrl(e,o){const r=this.urlSerializer.serialize(e),i={...o.extras.state,...this.generateNgRouterState(o.id,o.targetPageId)};this.location.isCurrentPathEqualTo(r)||o.extras.replaceUrl?this.location.replaceState(r,"",i):this.location.go(r,"",i)}restoreHistory(e,o=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===r?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(o&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,o){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:o}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),T2=(()=>{class n{constructor(e,o,r,i,a,s){this.router=e,this.route=o,this.tabIndexAttribute=r,this.renderer=i,this.el=a,this.locationStrategy=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new I;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(p=>{p instanceof L2&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=fg(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=fg(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=fg(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,o,r,i,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||o||r||i||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function xs(n,t,e){return function Tq(n,t){return"src"===t&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===t&&("base"===n||"link"===n)?UA:Tn}(t,e)(n)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,o){const r=this.renderer,i=this.el.nativeElement;null!==o?r.setAttribute(i,e,o):r.removeAttribute(i,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(Re(Ss),Re(fh),function sc(n){return function bm(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const o=e.length;let r=0;for(;r{class n{get isActive(){return this._isActive}constructor(e,o,r,i,a){this.router=e,this.element=o,this.renderer=r,this.cdr=i,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new G1,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof L2&&this.update()})}ngAfterContentInit(){be(this.links.changes,be(null)).pipe(nn()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=$n(e).pipe(nn()).subscribe(o=>{this._isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(e){const o=Array.isArray(e)?e:e.split(" ");this.classes=o.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(o=>{e?this.renderer.addClass(this.element.nativeElement,o):this.renderer.removeClass(this.element.nativeElement,o)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const o=function lle(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,o)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(Ss),Re(fn),Re(P1),Re(ns),Re(T2,8))},n.\u0275dir=b0({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,o,r){if(1&e&&function v7(n,t,e,o){const r=f1();if(r.firstCreatePass){const i=pr();y7(r,new _7(t,e,o),i.index),function Xne(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}A7(r,mt(),e)}(r,T2,5),2&e){let i;Ws(i=Ls())&&(o.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Yo]}),n})();class IF{}let ple=(()=>{class n{constructor(e,o,r,i,a){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ht(e=>e instanceof L2),x2(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,o){const r=[];for(const i of o){i.providers&&!i._injector&&(i._injector=jy(i.providers,e,`Route: ${i.path}`));const a=i._injector??e,s=i._loadedInjector??a;i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent?r.push(this.preloadConfig(a,i)):(i.children||i._loadedRoutes)&&r.push(this.processRoutes(s,i.children??i._loadedRoutes))}return $n(r).pipe(nn())}preloadConfig(e,o){return this.preloadingStrategy.preload(o,()=>{let r;r=o.loadChildren&&void 0===o.canLoad?this.loader.loadChildren(e,o):be(null);const i=r.pipe(On(a=>null===a?be(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return o.loadComponent&&!o._loadedComponent?$n([i,this.loader.loadComponent(o)]).pipe(nn()):i})}}return n.\u0275fac=function(e){return new(e||n)(Te(Ss),Te($7),Te(pc),Te(IF),Te(CL))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const PL=new Qt("");let NF=(()=>{class n{constructor(e,o,r,i,a={}){this.urlSerializer=e,this.transitions=o,this.viewportScroller=r,this.zone=i,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof pL?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L2&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof aF&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new aF(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(e){!function Cy(){throw new Error("invalid")}()},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})();const wg=!1;function hh(n,t){return{\u0275kind:n,\u0275providers:t}}const xL=new Qt("",{providedIn:"root",factory:()=>!1});function FF(){const n=c0(Qo);return t=>{const e=n.get(w2);if(t!==e.components[0])return;const o=n.get(Ss),r=n.get(YF);1===n.get(qL)&&o.initialNavigation(),n.get(HF,null,h0.Optional)?.setUpPreloading(),n.get(PL,null,h0.Optional)?.init(),o.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const YF=new Qt(wg?"bootstrap done indicator":"",{factory:()=>new I}),qL=new Qt(wg?"initial navigation":"",{providedIn:"root",factory:()=>1});function hle(){let n=[];return n=wg?[{provide:a1,multi:!0,useFactory:()=>{const t=c0(Ss);return()=>t.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function Xse(n){if(!("type"in n))return`Unknown Router Event: ${n.constructor.name}`;switch(n.type){case 14:return`ActivationEnd(path: '${n.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${n.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${n.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${n.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state}, shouldActivate: ${n.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 2:return`NavigationCancel(id: ${n.id}, url: '${n.url}')`;case 16:return`NavigationSkipped(id: ${n.id}, url: '${n.url}')`;case 1:return`NavigationEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${n.id}, url: '${n.url}', error: ${n.error})`;case 0:return`NavigationStart(id: ${n.id}, url: '${n.url}')`;case 6:return`ResolveEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 5:return`ResolveStart(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 10:return`RouteConfigLoadEnd(path: ${n.route.path})`;case 9:return`RouteConfigLoadStart(path: ${n.route.path})`;case 4:return`RoutesRecognized(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 15:return`Scroll(anchor: '${n.anchor}', position: '${n.position?`${n.position[0]}, ${n.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],hh(1,n)}const HF=new Qt(wg?"router preloader":"");function Mle(n){return hh(0,[{provide:HF,useExisting:ple},{provide:IF,useExisting:n}])}const e_=!1,XF=new Qt(e_?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),ble=[OW,{provide:F3,useClass:rL},Ss,V3,{provide:fh,useFactory:function BF(n){return n.routerState.root},deps:[Ss]},CL,e_?{provide:xL,useValue:!0}:[]];function gle(){return new tB("Router",Ss)}let t_=(()=>{class n{constructor(e){}static forRoot(e,o){return{ngModule:n,providers:[ble,e_&&o?.enableTracing?hle().\u0275providers:[],{provide:Cg,multi:!0,useValue:e},{provide:XF,useFactory:zle,deps:[[Ss,new Gp,new f2]]},{provide:B4,useValue:o||{}},o?.useHash?{provide:ch,useClass:Joe}:{provide:ch,useClass:CB},{provide:PL,useFactory:()=>{const n=c0(sie),t=c0(To),e=c0(B4),o=c0(N4),r=c0(F3);return e.scrollOffset&&n.setOffset(e.scrollOffset),new NF(r,o,n,t,e)}},o?.preloadingStrategy?Mle(o.preloadingStrategy).\u0275providers:[],{provide:tB,multi:!0,useFactory:gle},o?.initialNavigation?vle(o):[],[{provide:jF,useFactory:FF},{provide:V7,multi:!0,useExisting:jF}]]}}static forChild(e){return{ngModule:n,providers:[{provide:Cg,multi:!0,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)(Te(XF,8))},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({imports:[OL]}),n})();function zle(n){if(e_&&n)throw new xt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function vle(n){return["disabled"===n.initialNavigation?hh(3,[{provide:Gy,multi:!0,useFactory:()=>{const t=c0(Ss);return()=>{t.setUpLocationChangeListener()}}},{provide:qL,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?hh(2,[{provide:qL,useValue:0},{provide:Gy,multi:!0,deps:[Qo],useFactory:t=>{const e=t.get(Zoe,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const i=t.get(Ss),a=t.get(YF);(function o(r){t.get(Ss).events.pipe(ht(a=>a instanceof L2||a instanceof q4||a instanceof iF),j(a=>a instanceof L2||a instanceof q4&&(0===a.code||1===a.code)&&null),ht(a=>null!==a),Zl(1)).subscribe(()=>{r()})})(()=>{r(!0)}),t.get(N4).afterPreactivation=()=>(r(!0),a.closed?be(void 0):a),i.initialNavigation()}))}}]).\u0275providers:[]]}const jF=new Qt(e_?"Router Initializer":""),Xe={production:!0,version:"alpha",nftLiveVersion:!1,chainAPIURL:"https://ai.storecloud.org/chain",cloudAPIURL:"https://ai.storecloud.org/cloud",permanentStorageAPIBaseURL:"https://ai.storecloud.org/ibyte/",cloudUsageStatsAPIBaseURL:"https://ai.storecloud.org/vm-stats/",publicOracleAPIBaseURL:"https://oracle.ai.storecloud.org",cloudVMAPIBaseURL:"https://ai.storecloud.org/compute",transactionHistoryAPI:"https://ai.storecloud.org/transactions",cloudIdAPIURL:"https://ai.storecloud.org/cloud-id",storePriceUSD:.039,one$STOREEqualToOneByte:125e5,one$STOREEqualsToOneBit:1e8,platformFee:.025,permanentStorageRoyalty:.02,maxViewsForNFT:1e4,bandwidthViewCheckEnabled:!0,headerVersion:1,wallet:{chainId:11155111,magicPublicKey:"pk_live_0F0FCC1A56E1C5DE",magicTestMode:!1,etherscanAPIKey:"3EKGS2TU4WXRTBHKB3DQNFX87GIWXE5IHN",etherscanAPI_URL:"https://api-sepolia.etherscan.io/api",cloudflareEthAPIURL:"https://ether.storecloud.org/v1/sepolia",etherscanURL:"https://sepolia.etherscan.io/",storeWalletAddress:"0x54Df911a1e08988fD05408ee22E19178B7590C70"},ipfs:{main_url:"https://ipfs.storecloud.org",astore_url:"https://astore.storecloud.org",bstore_url:"https://bstore.storecloud.org",cstore_url:"https://cstore.storecloud.org",dstore_url:"https://dstore.storecloud.org",estore_url:"https://estore.storecloud.org"},baserow:{key:"kFZpXCdyw66xw9brps8gcpiVZDrsMWfB",oracleKey:"pzk1QGB6XMpHKDQudeA3ffiXABwhNqKk",tableURL:"https://api.baserow.io/api/database/rows/table/96260/?user_field_names=true"},contract:JSON.parse('{"address":"0x7276596B06e5208a477f89567c63949335B93C00","abi":[{"type":"constructor","payable":false,"inputs":[]},{"type":"event","anonymous":false,"name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"approved","indexed":true},{"type":"uint256","name":"tokenId","indexed":true}]},{"type":"event","anonymous":false,"name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"operator","indexed":true},{"type":"bool","name":"approved","indexed":false}]},{"type":"event","anonymous":false,"name":"MintedNFTSuccess","inputs":[{"type":"uint256","name":"tokenId","indexed":true},{"type":"address","name":"owner","indexed":false},{"type":"string","name":"cloudId","indexed":false},{"type":"string","name":"cloud","indexed":false},{"type":"string","name":"cost","indexed":false}]},{"type":"event","anonymous":false,"name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"tokenId","indexed":true}]},{"type":"function","name":"approve","constant":false,"payable":false,"inputs":[{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]},{"type":"function","name":"balanceOf","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"owner"}],"outputs":[{"type":"uint256"}]},{"type":"function","name":"getAllMintedNFTs","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple[]","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"cloudId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getApproved","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"address"}]},{"type":"function","name":"getCurrentNFT","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint256"}]},{"type":"function","name":"getLatestIdToMintedNFT","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"cloudId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getListedMintedNFTForId","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"tuple","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"cloudId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getMyMintedNFTs","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple[]","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"cloudId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"isApprovedForAll","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"owner"},{"type":"address","name":"operator"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"mintNFT","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"string","name":"CLOUD"},{"type":"string","name":"COST"},{"type":"string","name":"CLOUDID"}],"outputs":[{"type":"uint256"}]},{"type":"function","name":"name","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"string"}]},{"type":"function","name":"ownerOf","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"address"}]},{"type":"function","name":"safeTransferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]},{"type":"function","name":"safeTransferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"},{"type":"bytes","name":"data"}],"outputs":[]},{"type":"function","name":"setApprovalForAll","constant":false,"payable":false,"inputs":[{"type":"address","name":"operator"},{"type":"bool","name":"approved"}],"outputs":[]},{"type":"function","name":"supportsInterface","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"bytes4","name":"interfaceId"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"symbol","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"string"}]},{"type":"function","name":"tokenURI","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"string"}]},{"type":"function","name":"transferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]}]}'),externalURL:{website:"https://storecloud.org/",explorer_app:"https://explore.storecloud.org",oracle_app:"https://test.oracle.storecloud.org/",developer_app:"https://test.developer.storecloud.org/",governor_app:"https://test.governor.storecloud.org/",cloud_app:"https://test.cloud.storecloud.org/",research:"https://storecloud.org/research",monetary:"https://storecloud.org/monetary",cloud:"https://storecloud.org/research/store-cloud",governance:"https://storecloud.org/governance",twitter:"https://x.com/thestorecloud",telegram:"https://t.me/thestorecloud",linkedin:"https://www.linkedin.com/company/storecloud",requestToBuy:"https://storecloud.org/buystore",requestToEquity:"https://storecloud.org/equity",protocolPlan:"https://docsend.com/view/acyqugqpbw4dzqhk",commingSoon:"https://storecloud.org/coming-soon",blog:"https://storecloud.org/blog",brand:"https://storecloud.org/brand",analytics_app:"https://poweredby.storecloud.org",memes:"https://storecloud.org/memes",onePager:"https://docsend.com/view/c7h3jzf6qg9ya35y",press:"https://storecloud.org/press",about:"https://storecloud.org/about",subscribe:"https://storecloud.org/subscribe",privacyPolicy:"https://storecloud.org/privacy-policy",demo:"https://storecloud.org/demo"},analyticsKeys:{cloud:"",developer:"",explorer:"18a0be5e-d179-4c50-95da-76a9e18bac75",governor:"",oracle:"",website:"a81bd636-c124-4125-94fa-92459ab421e4"},permanentStorage:{baseSize:{store:{meta:7611,table:4114},ethereum:{meta:7942,table:4010}}},mailerLite:{groupId:"111909496907892706"}};function hc(n){return _t((t,e)=>{k0(n).subscribe($(e,()=>e.complete(),At)),!e.closed&&t.subscribe(e)})}const Cle=Wl,Ple=Symbol("__destroy"),UF=Symbol("__decoratorApplied");function VF(n){return"string"==typeof n?Symbol(`__destroy__${n}`):Ple}function $F(n,t){n[t]||(n[t]=new I)}function GF(n,t){n[t]&&(n[t].next(),n[t].complete(),n[t]=null)}function ZF(n){n instanceof B&&n.unsubscribe()}function KF(n,t){return function(){if(n&&n.call(this),GF(this,VF()),t.arrayName&&function qle(n){Array.isArray(n)&&n.forEach(ZF)}(this[t.arrayName]),t.checkProperties)for(const e in this)t.blackList?.includes(e)||ZF(this[e])}}function p0(n={}){return t=>{!function wle(n){return!!n[Cle]}(t)?function Wle(n,t){n.prototype.ngOnDestroy=KF(n.prototype.ngOnDestroy,t)}(t,n):function Lle(n,t){const e=n.\u0275pipe;e.onDestroy=KF(e.onDestroy,t)}(t,n),function xle(n){n.prototype[UF]=!0}(t)}}const JF=7,QF=Symbol("CheckerHasBeenSet");function eY(n){const t=vn.Zone;return t&&"function"==typeof t.root?.run?t.root.run(n):n()}const WL=!1;function ot(n,t){return e=>{const o=VF(t);"string"==typeof t?function Dle(n,t,e){const o=n[t];if(WL&&"function"!=typeof o)throw new Error(`${n.constructor.name} is using untilDestroyed but doesn't implement ${t}`);$F(n,e),n[t]=function(){o.apply(this,arguments),GF(this,e),n[t]=o}}(n,t,o):(WL&&function kle(n){const t=Object.getPrototypeOf(n);if(!(UF in t))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(n),$F(n,o));const r=n[o];return WL&&function Tle(n,t){n[QF]||function Rle(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process)}()||(eY(()=>$n(Promise.resolve()).pipe(On(()=>{let e;try{e=wi(n)}catch{e=null}const o=e?.lView;if(null==o)return h1;const r=o[JF]||(o[JF]=[]),i=new I;return r.push(function(){eY(()=>{i.next(),i.complete()})}),i}),On(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(function Sle(n){return`\n The ${n.constructor.name} still has subscriptions that haven't been unsubscribed.\n This may happen if the class extends another class decorated with @UntilDestroy().\n The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().\n Let's look at the following example:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {}\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n }\n }\n The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy()\n on the ConcreteComponent, but not on the BaseDirective.\n One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {\n ngOnDestroy(): void {}\n }\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n super.ngOnDestroy();\n }\n }\n `}(n))})),n[QF]=!0)}(n,r),e.pipe(hc(r))}}var ld=G(7489);class Ele extends B{constructor(t,e){super()}schedule(t,e=0){return this}}const F4={setInterval(n,t,...e){const{delegate:o}=F4;return o?.setInterval?o.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=F4;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class n_{constructor(t,e=n_.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,o){return new this.schedulerActionCtor(this,t).schedule(o,e)}}n_.now=KW.now;const o_=new class Nle extends n_{constructor(t,e=n_.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let o;this._active=!0;do{if(o=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,o){for(;t=e.shift();)t.unsubscribe();throw o}}}(class Ile extends Ele{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var o;if(this.closed)return this;this.state=t;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,e)),this.pending=!0,this.delay=e,this.id=null!==(o=this.id)&&void 0!==o?o:this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,o=0){return F4.setInterval(t.flush.bind(t,this),o)}recycleAsyncId(t,e,o=0){if(null!=o&&this.delay===o&&!1===this.pending)return e;null!=e&&F4.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const o=this._execute(t,e);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,o=!1;try{this.work(t)}catch(i){o=!0,r=i||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:o}=e;this.work=this.state=this.scheduler=null,this.pending=!1,C(o,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}),Ble=o_;function tY(n,t){return t?e=>gg(t.pipe(Zl(1),function Fle(){return _t((n,t)=>{n.subscribe($(t,At))})}()),e.pipe(tY(n))):On((e,o)=>k0(n(e,o)).pipe(Zl(1),B9(e)))}function r_(n=0,t,e=Ble){let o=-1;return null!=t&&(Sr(t)?e=t:o=t),new V(r=>{let i=function Yle(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;i<0&&(i=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=o?this.schedule(void 0,o):r.complete())},i)})}function Gr(n,t=o_){const e=r_(n,t);return tY(()=>e)}var LL=function(n,t){return(LL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])})(n,t)};function R1(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}LL(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var n,t,TL=12,Mh=TL+"px sans-serif",Zle=function Gle(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=a*e.length;else for(var c=0;c"u"&&typeof self<"u"?bh.worker=!0:typeof navigator>"u"?(bh.node=!0,bh.svgSupported=!0):function dpe(n,t){var e=t.browser,o=n.match(/Firefox\/([\d.]+)/),r=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);o&&(e.firefox=!0,e.version=o[1]),r&&(e.ie=!0,e.version=r[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}(navigator.userAgent,bh);const j1=bh;var upe=".",gh="___EC__COMPONENT__CONTAINER___",hY="___EC__EXTENDED_CLASS___";function ud(n){var t={main:"",sub:""};if(n){var e=n.split(upe);t.main=e[0]||"",t.sub=e[1]||""}return t}function NL(n,t){n.$constructor=n,n.extend=function(e){var r,o=this;return function Mpe(n){return S1(n)&&/^class\s/.test(Function.prototype.toString.call(n))}(o)?r=function(i){function a(){return i.apply(this,arguments)||this}return R1(a,i),a}(o):(r=function(){(e.$constructor||o).apply(this,arguments)},function tpe(n,t){var e=n.prototype;function o(){}for(var r in o.prototype=t.prototype,n.prototype=new o,e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);n.prototype.constructor=n,n.superClass=t}(r,this)),Xt(r.prototype,e),r[hY]=!0,r.extend=this.extend,r.superCall=Ope,r.superApply=mpe,r.superClass=o,r}}function MY(n,t){n.extend=t.extend}var bpe=Math.round(10*Math.random());function Ope(n,t){for(var e=[],o=2;o=0||i&&zo(i,c)<0)){var p=o.getShallow(c,t);null!=p&&(a[n[s][0]]=p)}}return a}}var zpe=c_([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),vpe=function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return zpe(this,t,e)},n}(),BL=function(n,t){return(BL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])})(n,t)};function Ao(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}BL(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var mY=function n(t){this.value=t},Cpe=function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new mY(t);return this.insertEntry(e),e},n.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.prototype.remove=function(t){var e=t.prev,o=t.next;e?e.next=o:this.head=o,o?o.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),wpe=function(){function n(t){this._list=new Cpe,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var o=this._list,r=this._map,i=null;if(null==r[t]){var a=o.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var c=o.head;o.remove(c),delete r[c.key],i=c.value,this._lastRemovedEntry=c}s?s.value=e:s=new mY(e),s.key=t,o.insertEntry(s),r[t]=s}return i},n.prototype.get=function(t){var e=this._map[t],o=this._list;if(null!=e)return e!==o.tail&&(o.remove(e),o.insertEntry(e)),e.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const l_=wpe;var FL=new l_(50);function Ppe(n){if("string"==typeof n){var t=FL.get(n);return t&&t.image}return n}function _Y(n,t,e,o,r){if(n){if("string"==typeof n){if(t&&t.__zrImageSrc===n||!e)return t;var i=FL.get(n),a={hostEl:e,cb:o,cbPayload:r};return i?!K4(t=i.image)&&i.pending.push(a):((t=bu.loadImage(n,zY,zY)).__zrImageSrc=n,FL.put(n,t.__cachedImgObj={image:t,pending:[a]})),t}return n}return t}function zY(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tg&&(g=L,g1.set(d_,vg&&(g=D,g1.set(d_,0,y=o.x&&t<=o.x+o.width&&e>=o.y&&e<=o.y+o.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return 0===this.width||0===this.height},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},n.applyTransform=function(t,e,o){if(o){if(o[1]<1e-5&&o[1]>-1e-5&&o[2]<1e-5&&o[2]>-1e-5){var r=o[0],i=o[3],s=o[5];return t.x=e.x*r+o[4],t.y=e.y*i+s,t.width=e.width*r,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Oh.x=_h.x=e.x,Oh.y=zh.y=e.y,mh.x=zh.x=e.x+e.width,mh.y=_h.y=e.y+e.height,Oh.transform(o),zh.transform(o),mh.transform(o),_h.transform(o),t.x=J4(Oh.x,mh.x,_h.x,zh.x),t.y=J4(Oh.y,mh.y,_h.y,zh.y);var c=Q4(Oh.x,mh.x,_h.x,zh.x),p=Q4(Oh.y,mh.y,_h.y,zh.y);t.width=c-t.x,t.height=p-t.y}else t!==e&&n.copy(t,e)},n}();const eo=Wpe;var AY={};function bc(n,t){var e=AY[t=t||Mh];e||(e=AY[t]=new l_(500));var o=e.get(n);return null==o&&(o=bu.measureText(n,t).width,e.put(n,o)),o}function yY(n,t,e,o){var r=bc(n,t),i=VL(t),a=u_(0,r,e),s=Lg(0,i,o);return new eo(a,s,r,i)}function UL(n,t,e,o){var r=((n||"")+"").split("\n");if(1===r.length)return yY(r[0],t,e,o);for(var a=new eo(0,0,0,0),s=0;s=0?parseFloat(n)/100*t:parseFloat(n):n}function CY(n,t,e){var o=t.position||"inside",r=null!=t.distance?t.distance:5,i=e.height,a=e.width,s=i/2,c=e.x,p=e.y,d="left",u="top";if(o instanceof Array)c+=S2(o[0],e.width),p+=S2(o[1],e.height),d=null,u=null;else switch(o){case"left":c-=r,p+=s,d="right",u="middle";break;case"right":c+=r+a,p+=s,u="middle";break;case"top":c+=a/2,p-=r,d="center",u="bottom";break;case"bottom":c+=a/2,p+=i+r,d="center";break;case"inside":c+=a/2,p+=s,d="center",u="middle";break;case"insideLeft":c+=r,p+=s,u="middle";break;case"insideRight":c+=a-r,p+=s,d="right",u="middle";break;case"insideTop":c+=a/2,p+=r,d="center";break;case"insideBottom":c+=a/2,p+=i-r,d="center",u="bottom";break;case"insideTopLeft":c+=r,p+=r;break;case"insideTopRight":c+=a-r,p+=r,d="right";break;case"insideBottomLeft":c+=r,p+=i-r,u="bottom";break;case"insideBottomRight":c+=a-r,p+=i-r,d="right",u="bottom"}return(n=n||{}).x=c,n.y=p,n.align=d,n.verticalAlign=u,n}var $L=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Lpe(n,t,e,o,r){if(!t)return"";var i=(n+"").split("\n");r=wY(t,e,o,r);for(var a=0,s=i.length;a=a;c++)s-=a;var p=bc(e,t);return p>s&&(e="",p=0),s=n-p,r.ellipsis=e,r.ellipsisWidth=p,r.contentWidth=s,r.containerWidth=n,r}function PY(n,t){var e=t.containerWidth,o=t.font,r=t.contentWidth;if(!e)return"";var i=bc(n,o);if(i<=e)return n;for(var a=0;;a++){if(i<=r||a>=t.maxIterations){n+=t.ellipsis;break}var s=0===a?Tpe(n,r,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(n.length*r/i):0;i=bc(n=n.substr(0,s),o)}return""===n&&(n=t.placeholder),n}function Tpe(n,t,e,o){for(var r=0,i=0,a=n.length;i0&&g+o.accumWidth>o.width&&(d=t.split("\n"),p=!0),o.accumWidth=g}else{var v=qY(t,c,o.width,o.breakAll,o.accumWidth);o.accumWidth=v.accumWidth+M,u=v.linesWidths,d=v.lines}}else d=t.split("\n");for(var A=0;A=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(n)||!!Ipe[n]}function qY(n,t,e,o,r){for(var i=[],a=[],s="",c="",p=0,d=0,u=0;ue:r+d+M>e)?d?(s||c)&&(g?(s||(s=c,c="",d=p=0),i.push(s),a.push(d-p),c+=h,s="",d=p+=M):(c&&(s+=c,c="",p=0),i.push(s),a.push(d),s=h,d=M)):g?(i.push(c),a.push(p),c=h,p=M):(i.push(h),a.push(M)):(d+=M,g?(c+=h,p+=M):(c&&(s+=c,c="",p=0),s+=h))}else c&&(s+=c,d+=p),i.push(s),a.push(d),s="",c="",p=0,d=0}return!i.length&&!s&&(s=n,c="",p=0),c&&(s+=c),s&&(i.push(s),a.push(d)),1===i.length&&(d+=r),{accumWidth:d,lines:i,linesWidths:a}}function Tg(n,t){return null==n&&(n=0),null==t&&(t=0),[n,t]}function Bpe(n){return[n[0],n[1]]}function WY(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function Fpe(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function ZL(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n}function KL(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}var JL=KL,Rg=function jpe(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])};function QL(n,t,e,o){return n[0]=t[0]+o*(e[0]-t[0]),n[1]=t[1]+o*(e[1]-t[1]),n}function $c(n,t,e){var o=t[0],r=t[1];return n[0]=e[0]*o+e[2]*r+e[4],n[1]=e[1]*o+e[3]*r+e[5],n}function Sg(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n}function Dg(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n}var LY=YL,TY=5e-5;function vh(n){return n>TY||n<-TY}var Ah=[],kg=[],eT=[1,0,0,1,0,0],tT=Math.abs,Upe=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.prototype.needLocalTransform=function(){return vh(this.rotation)||vh(this.x)||vh(this.y)||vh(this.scaleX-1)||vh(this.scaleY-1)||vh(this.skewX)||vh(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),o=this.transform;e||t?(o=o||[1,0,0,1,0,0],e?this.getLocalTransform(o):LY(o),t&&(e?Wg(o,t,o):function vY(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}(o,t)),this.transform=o,this._resolveGlobalScaleRatio(o)):o&&LY(o)},n.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Ah);var o=Ah[0]<0?-1:1,r=Ah[1]<0?-1:1,i=((Ah[0]-o)*e+o)/Ah[0]||0,a=((Ah[1]-r)*e+r)/Ah[1]||0;t[0]*=i,t[1]*=i,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],jL(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},n.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],o=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);o=Math.sqrt(o)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=o,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Wg(kg,t.invTransform,e),e=kg);var o=this.originX,r=this.originY;(o||r)&&(eT[4]=o,eT[5]=r,Wg(kg,e,eT),kg[4]-=o,kg[5]-=r,e=kg),this.setLocalTransform(e)}},n.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},n.prototype.transformCoordToLocal=function(t,e){var o=[t,e],r=this.invTransform;return r&&$c(o,o,r),o},n.prototype.transformCoordToGlobal=function(t,e){var o=[t,e],r=this.transform;return r&&$c(o,o,r),o},n.prototype.getLineScale=function(){var t=this.transform;return t&&tT(t[0]-1)>1e-10&&tT(t[3]-1)>1e-10?Math.sqrt(tT(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){!function Vpe(n,t){for(var e=0;e-nC&&nnC||n<-nC}function Mi(n,t,e,o,r){var i=1-r;return i*i*(i*n+3*r*t)+r*r*(r*o+3*i*e)}function EY(n,t,e,o,r){var i=1-r;return 3*(((t-n)*i+2*(e-t)*r)*i+(o-e)*r*r)}function rC(n,t,e,o,r,i){var a=o+3*(t-e)-n,s=3*(e-2*t+n),c=3*(t-n),p=n-r,d=s*s-3*a*c,u=s*c-9*a*p,h=c*c-3*s*p,M=0;if(k2(d)&&k2(u))k2(s)?i[0]=0:(g=-c/s)>=0&&g<=1&&(i[M++]=g);else{var v=u*u-4*d*h;if(k2(v)){var A=u/d,y=-A/2;(g=-s/a+A)>=0&&g<=1&&(i[M++]=g),y>=0&&y<=1&&(i[M++]=y)}else if(v>0){var q=D2(v),L=d*s+1.5*a*(-u+q),D=d*s+1.5*a*(-u-q);(g=(-s-((L=L<0?-tC(-L,oC):tC(L,oC))+(D=D<0?-tC(-D,oC):tC(D,oC))))/(3*a))>=0&&g<=1&&(i[M++]=g)}else{var X=(2*d*s-3*a*u)/(2*D2(d*d*d)),H=Math.acos(X)/3,re=D2(d),ee=Math.cos(H),g=(-s-2*re*ee)/(3*a),le=(y=(-s+re*(ee+DY*Math.sin(H)))/(3*a),(-s+re*(ee-DY*Math.sin(H)))/(3*a));g>=0&&g<=1&&(i[M++]=g),y>=0&&y<=1&&(i[M++]=y),le>=0&&le<=1&&(i[M++]=le)}}return M}function IY(n,t,e,o,r){var i=6*e-12*t+6*n,a=9*t+3*o-3*n-9*e,s=3*t-3*n,c=0;if(k2(a))kY(i)&&(p=-s/i)>=0&&p<=1&&(r[c++]=p);else{var d=i*i-4*a*s;if(k2(d))r[0]=-i/(2*a);else if(d>0){var p,u=D2(d),h=(-i-u)/(2*a);(p=(-i+u)/(2*a))>=0&&p<=1&&(r[c++]=p),h>=0&&h<=1&&(r[c++]=h)}}return c}function iC(n,t,e,o,r,i){var a=(t-n)*r+n,s=(e-t)*r+t,c=(o-e)*r+e,p=(s-a)*r+a,d=(c-s)*r+s,u=(d-p)*r+p;i[0]=n,i[1]=a,i[2]=p,i[3]=u,i[4]=u,i[5]=d,i[6]=c,i[7]=o}function Gpe(n,t,e,o,r,i,a,s,c){for(var p=n,d=t,u=0,h=1/c,M=1;M<=c;M++){var g=M*h,v=Mi(n,e,r,a,g),A=Mi(t,o,i,s,g),y=v-p,q=A-d;u+=Math.sqrt(y*y+q*q),p=v,d=A}return u}function ma(n,t,e,o){var r=1-o;return r*(r*n+2*o*t)+o*o*e}function NY(n,t,e,o){return 2*((1-o)*(t-n)+o*(e-t))}function BY(n,t,e){var o=n+e-2*t;return 0===o?.5:(n-t)/o}function aC(n,t,e,o,r){var i=(t-n)*o+n,a=(e-t)*o+t,s=(a-i)*o+i;r[0]=n,r[1]=i,r[2]=s,r[3]=s,r[4]=a,r[5]=e}function Jpe(n,t,e,o,r,i,a){for(var s=n,c=t,p=0,d=1/a,u=1;u<=a;u++){var h=u*d,M=ma(n,e,r,h),g=ma(t,o,i,h),v=M-s,A=g-c;p+=Math.sqrt(v*v+A*A),s=M,c=g}return p}var Qpe=/cubic-bezier\(([0-9,\.e ]+)\)/;function FY(n){var t=n&&Qpe.exec(n);if(t){var e=t[1].split(","),o=+dd(e[0]),r=+dd(e[1]),i=+dd(e[2]),a=+dd(e[3]);if(isNaN(o+r+i+a))return;var s=[];return function(c){return c<=0?0:c>=1?1:rC(0,o,i,1,c,s)&&Mi(0,r,a,1,s[0])}}}var ede=function(){function n(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ks,this.ondestroy=t.ondestroy||ks,this.onrestart=t.onrestart||ks,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var o=this._life,r=t-this._startTime-this._pausedTime,i=r/o;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,s=a?a(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;this._startTime=t-r%o,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=S1(t)?t:RY[t]||FY(t)},n}();const tde=ede;var YY={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Kl(n){return(n=Math.round(n))<0?0:n>255?255:n}function h_(n){return n<0?0:n>1?1:n}function oT(n){var t=n;return t.length&&"%"===t.charAt(t.length-1)?Kl(parseFloat(t)/100*255):Kl(parseInt(t,10))}function yh(n){var t=n;return t.length&&"%"===t.charAt(t.length-1)?h_(parseFloat(t)/100):h_(parseFloat(t))}function rT(n,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?n+(t-n)*e*6:2*e<1?t:3*e<2?n+(t-n)*(2/3-e)*6:n}function E2(n,t,e){return n+(t-n)*e}function Zc(n,t,e,o,r){return n[0]=t,n[1]=e,n[2]=o,n[3]=r,n}function iT(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var HY=new l_(20),sC=null;function Ig(n,t){sC&&iT(sC,t),sC=HY.put(n,sC||t.slice())}function Kc(n,t){if(n){t=t||[];var e=HY.get(n);if(e)return iT(t,e);var o=(n+="").replace(/ /g,"").toLowerCase();if(o in YY)return iT(t,YY[o]),Ig(n,t),t;var i,r=o.length;if("#"===o.charAt(0))return 4===r||5===r?(i=parseInt(o.slice(1,4),16))>=0&&i<=4095?(Zc(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===r?parseInt(o.slice(4),16)/15:1),Ig(n,t),t):void Zc(t,0,0,0,1):7===r||9===r?(i=parseInt(o.slice(1,7),16))>=0&&i<=16777215?(Zc(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===r?parseInt(o.slice(7),16)/255:1),Ig(n,t),t):void Zc(t,0,0,0,1):void 0;var a=o.indexOf("("),s=o.indexOf(")");if(-1!==a&&s+1===r){var c=o.substr(0,a),p=o.substr(a+1,s-(a+1)).split(","),d=1;switch(c){case"rgba":if(4!==p.length)return 3===p.length?Zc(t,+p[0],+p[1],+p[2],1):Zc(t,0,0,0,1);d=yh(p.pop());case"rgb":return p.length>=3?(Zc(t,oT(p[0]),oT(p[1]),oT(p[2]),3===p.length?d:yh(p[3])),Ig(n,t),t):void Zc(t,0,0,0,1);case"hsla":return 4!==p.length?void Zc(t,0,0,0,1):(p[3]=yh(p[3]),aT(p,t),Ig(n,t),t);case"hsl":return 3!==p.length?void Zc(t,0,0,0,1):(aT(p,t),Ig(n,t),t);default:return}}Zc(t,0,0,0,1)}}function aT(n,t){var e=(parseFloat(n[0])%360+360)%360/360,o=yh(n[1]),r=yh(n[2]),i=r<=.5?r*(o+1):r+o-r*o,a=2*r-i;return Zc(t=t||[],Kl(255*rT(a,i,e+1/3)),Kl(255*rT(a,i,e)),Kl(255*rT(a,i,e-1/3)),1),4===n.length&&(t[3]=n[3]),t}function XY(n,t){var e=Kc(n);if(e){for(var o=0;o<3;o++)e[o]=t<0?e[o]*(1-t)|0:(255-e[o])*t+e[o]|0,e[o]>255?e[o]=255:e[o]<0&&(e[o]=0);return Ch(e,4===e.length?"rgba":"rgb")}}function Ch(n,t){if(n&&n.length){var e=n[0]+","+n[1]+","+n[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(e+=","+n[3]),t+"("+e+")"}}function cC(n,t){var e=Kc(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}Math,j1.hasGlobalWindow&&S1(window.btoa);var sT=Array.prototype.slice;function Ou(n,t,e){return(t-n)*e+n}function cT(n,t,e,o){for(var r=t.length,i=0;io?t:n,i=Math.min(e,o),a=r[i-1]||{color:[0,0,0,0],offset:0},s=i;sa)o.length=a;else for(var c=i;c=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,o){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,s=6,c=e;if(Ds(e)){var p=function ude(n){return Ds(n&&n[0])?2:1}(e);s=p,(1===p&&!vo(e[0])||2===p&&!vo(e[0][0]))&&(a=!0)}else if(vo(e)&&!V4(e))s=0;else if(S0(e))if(isNaN(+e)){var d=Kc(e);d&&(c=d,s=3)}else s=0;else if(U4(e)){var u=Xt({},c);u.colorStops=e1(e.colorStops,function(M){return{offset:M.offset,color:Kc(M.color)}}),function sde(n){return"linear"===n.type}(e)?s=lT:function cde(n){return"radial"===n.type}(e)&&(s=pT),c=u}0===i?this.valType=s:(s!==this.valType||6===s)&&(a=!0),this.discrete=this.discrete||a;var h={time:t,value:c,rawValue:e,percent:0};return o&&(h.easing=o,h.easingFunc=S1(o)?o:RY[o]||FY(o)),r.push(h),h},n.prototype.prepare=function(t,e){var o=this.keyframes;this._needsSort&&o.sort(function(v,A){return v.time-A.time});for(var r=this.valType,i=o.length,a=o[i-1],s=this.discrete,c=MC(r),p=ZY(r),d=0;d=0&&!(a[d].percent<=e);d--);d=h(d,s-2)}else{for(d=u;de);d++);d=h(d-1,s-2)}g=a[d+1],M=a[d]}if(M&&g){this._lastFr=d,this._lastFrP=e;var A=g.percent-M.percent,y=0===A?1:h((e-M.percent)/A,1);g.easingFunc&&(y=g.easingFunc(y));var q=o?this._additiveValue:p?g_:t[c];if((MC(i)||p)&&!q&&(q=this._additiveValue=[]),this.discrete)t[c]=y<1?M.rawValue:g.rawValue;else if(MC(i))i===hC?cT(q,M[r],g[r],y):function lde(n,t,e,o){for(var r=t.length,i=r&&t[0].length,a=0;a0&&c.addKeyframe(0,dC(p),r),this._trackKeys.push(s)}c.addKeyframe(t,dC(e[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,o=0;o0)){this._started=1;for(var e=this,o=[],r=this._maxTime||0,i=0;i1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();const dT=hde;var Mde=function(){function n(t){t&&(this._$eventProcessor=t)}return n.prototype.on=function(t,e,o,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=o,o=e,e=null),!o||!t)return this;var a=this._$eventProcessor;null!=e&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s=0:o.inside,A=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,q=void 0,L=void 0;v&&this.canBeInsideText()?(q=o.insideStroke,(null==(y=o.insideFill)||"auto"===y)&&(y=this.getInsideTextFill()),(null==q||"auto"===q)&&(q=this.getInsideTextStroke(y),L=!0)):(q=o.outsideStroke,(null==(y=o.outsideFill)||"auto"===y)&&(y=this.getOutsideFill()),(null==q||"auto"===q)&&(q=this.getOutsideStroke(y),L=!0)),((y=y||"#000")!==A.fill||q!==A.stroke||L!==A.autoStroke||a!==A.align||s!==A.verticalAlign)&&(c=!0,A.fill=y,A.stroke=q,A.autoStroke=L,A.align=a,A.verticalAlign=s,e.setDefaultTextStyle(A)),e.__dirty|=gc,c&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?hT:fT},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),o="string"==typeof e&&Kc(e);o||(o=[255,255,255,1]);for(var r=o[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)o[a]=o[a]*r+(i?0:255)*(1-r);return o[3]=1,Ch(o,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Xt(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(V0(t))for(var r=Uo(t),i=0;i0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(MT,!1,t)},n.prototype.useState=function(t,e,o,r){var i=t===MT;if(this.hasState()||!i){var s=this.currentStates,c=this.stateTransition;if(!(zo(s,t)>=0)||!e&&1!==s.length){var p;if(this.stateProxy&&!i&&(p=this.stateProxy(t)),p||(p=this.states&&this.states[t]),!p&&!i)return void DL("State "+t+" not exists.");i||this.saveCurrentToNormalState(p);var d=!!(p&&p.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,p,this._normalState,e,!o&&!this.__inHover&&c&&c.duration>0,c);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,o,d),h&&h.useState(t,e,o,d),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gc),p}}},n.prototype.useStates=function(t,e,o){if(t.length){var r=[],i=this.currentStates,a=t.length,s=a===i.length;if(s)for(var c=0;c0,g);var v=this._textContent,A=this._textGuide;v&&v.useStates(t,e,h),A&&A.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gc)}else this.clearStates()},n.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var o=this.currentStates.slice();o.splice(e,1),this.useStates(o)}},n.prototype.replaceState=function(t,e,o){var r=this.currentStates.slice(),i=zo(r,t),a=zo(r,e)>=0;i>=0?a?r.splice(i,1):r[i]=e:o&&!a&&r.push(e),this.useStates(r)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var o,e={},r=0;r=0&&i.splice(a,1)}),this.animators.push(t),o&&o.animation.addAnimator(t),o&&o.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var o=this.animators,r=o.length,i=[],a=0;a0&&e.during&&i[0].during(function(g,v){e.during(v)});for(var h=0;h0||r.force&&!a.length){var X,ee=void 0,le=void 0,he=void 0;if(s)for(le={},h&&(ee={}),D=0;D1e-4)return s[0]=n-e,s[1]=t-o,c[0]=n+e,void(c[1]=t+o);if(OC[0]=yT(r)*e+n,OC[1]=AT(r)*o+t,mC[0]=yT(i)*e+n,mC[1]=AT(i)*o+t,p(s,OC,mC),d(c,OC,mC),(r%=Ph)<0&&(r+=Ph),(i%=Ph)<0&&(i+=Ph),r>i&&!a?i+=Ph:rr&&(_C[0]=yT(M)*e+n,_C[1]=AT(M)*o+t,p(s,_C,s),d(c,_C,c))}var to={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xh=[],qh=[],Md=[],I2=[],bd=[],gd=[],CT=Math.min,wT=Math.max,Wh=Math.cos,Lh=Math.sin,mu=Math.abs,PT=Math.PI,N2=2*PT,xT=typeof Float32Array<"u",__=[];function qT(n){return Math.round(n/PT*1e8)/1e8%2*PT}var Wde=function(){function n(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(t,e,o){(o=o||0)>0&&(this._ux=mu(o/bC/t)||0,this._uy=mu(o/bC/e)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(to.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},n.prototype.lineTo=function(t,e){var o=mu(t-this._xi),r=mu(e-this._yi),i=o>this._ux||r>this._uy;if(this.addData(to.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=o*o+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(t,e,o,r,i,a){return this._drawPendingPt(),this.addData(to.C,t,e,o,r,i,a),this._ctx&&this._ctx.bezierCurveTo(t,e,o,r,i,a),this._xi=i,this._yi=a,this},n.prototype.quadraticCurveTo=function(t,e,o,r){return this._drawPendingPt(),this.addData(to.Q,t,e,o,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,o,r),this._xi=o,this._yi=r,this},n.prototype.arc=function(t,e,o,r,i,a){return this._drawPendingPt(),__[0]=r,__[1]=i,function qde(n,t){var e=qT(n[0]);e<0&&(e+=N2);var r=n[1];r+=e-n[0],!t&&r-e>=N2?r=e+N2:t&&e-r>=N2?r=e-N2:!t&&e>r?r=e+(N2-qT(e-r)):t&&ed.length&&(this._expandData(),d=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},n.prototype.getBoundingRect=function(){Md[0]=Md[1]=bd[0]=bd[1]=Number.MAX_VALUE,I2[0]=I2[1]=gd[0]=gd[1]=-Number.MAX_VALUE;var a,t=this.data,e=0,o=0,r=0,i=0;for(a=0;ao||mu(L)>r||h===e-1)&&(v=Math.sqrt(q*q+L*L),i=A,a=y);break;case to.C:var D=t[h++],X=t[h++],y=(A=t[h++],t[h++]),H=t[h++],re=t[h++];v=Gpe(i,a,D,X,A,y,H,re,10),i=H,a=re;break;case to.Q:v=Jpe(i,a,D=t[h++],X=t[h++],A=t[h++],y=t[h++],10),i=A,a=y;break;case to.A:var ee=t[h++],le=t[h++],he=t[h++],Me=t[h++],me=t[h++],xe=t[h++],Ve=xe+me;h+=1,h++,g&&(s=Wh(me)*he+ee,c=Lh(me)*Me+le),v=wT(he,Me)*CT(N2,Math.abs(xe)),i=Wh(Ve)*he+ee,a=Lh(Ve)*Me+le;break;case to.R:s=i=t[h++],c=a=t[h++],v=2*t[h++]+2*t[h++];break;case to.Z:var q=s-i;L=c-a,v=Math.sqrt(q*q+L*L),i=s,a=c}v>=0&&(p[u++]=v,d+=v)}return this._pathLen=d,d},n.prototype.rebuildPath=function(t,e){var s,c,p,d,u,h,g,q,D,X,o=this.data,r=this._ux,i=this._uy,a=this._len,M=e<1,A=0,y=0,L=0;if(!M||(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,q=e*this._pathLen))e:for(var H=0;H0&&(t.lineTo(D,X),L=0),re){case to.M:s=p=o[H++],c=d=o[H++],t.moveTo(p,d);break;case to.L:u=o[H++],h=o[H++];var le=mu(u-p),he=mu(h-d);if(le>r||he>i){if(M){if(A+(Me=g[y++])>q){t.lineTo(p*(1-(me=(q-A)/Me))+u*me,d*(1-me)+h*me);break e}A+=Me}t.lineTo(u,h),p=u,d=h,L=0}else{var xe=le*le+he*he;xe>L&&(D=u,X=h,L=xe)}break;case to.C:var Ve=o[H++],st=o[H++],rt=o[H++],Ut=o[H++],qe=o[H++],ke=o[H++];if(M){if(A+(Me=g[y++])>q){iC(p,Ve,rt,qe,me=(q-A)/Me,xh),iC(d,st,Ut,ke,me,qh),t.bezierCurveTo(xh[1],qh[1],xh[2],qh[2],xh[3],qh[3]);break e}A+=Me}t.bezierCurveTo(Ve,st,rt,Ut,qe,ke),p=qe,d=ke;break;case to.Q:if(Ve=o[H++],st=o[H++],rt=o[H++],Ut=o[H++],M){if(A+(Me=g[y++])>q){aC(p,Ve,rt,me=(q-A)/Me,xh),aC(d,st,Ut,me,qh),t.quadraticCurveTo(xh[1],qh[1],xh[2],qh[2]);break e}A+=Me}t.quadraticCurveTo(Ve,st,rt,Ut),p=rt,d=Ut;break;case to.A:var Ze=o[H++],vt=o[H++],Mt=o[H++],kt=o[H++],Gt=o[H++],I0=o[H++],p1=o[H++],En=!o[H++],In=Mt>kt?Mt:kt,ro=mu(Mt-kt)>.001,sn=Gt+I0,W0=!1;if(M&&(A+(Me=g[y++])>q&&(sn=Gt+I0*(q-A)/Me,W0=!0),A+=Me),ro&&t.ellipse?t.ellipse(Ze,vt,Mt,kt,p1,Gt,sn,En):t.arc(Ze,vt,In,Gt,sn,En),W0)break e;ee&&(s=Wh(Gt)*Mt+Ze,c=Lh(Gt)*kt+vt),p=Wh(sn)*Mt+Ze,d=Lh(sn)*kt+vt;break;case to.R:s=p=o[H],c=d=o[H+1],u=o[H++],h=o[H++];var $0=o[H++],mr=o[H++];if(M){if(A+(Me=g[y++])>q){var Mo=q-A;t.moveTo(u,h),t.lineTo(u+CT(Mo,$0),h),(Mo-=$0)>0&&t.lineTo(u+$0,h+CT(Mo,mr)),(Mo-=mr)>0&&t.lineTo(u+wT($0-Mo,0),h+mr),(Mo-=$0)>0&&t.lineTo(u,h+wT(mr-Mo,0));break e}A+=Me}t.rect(u,h,$0,mr);break;case to.Z:if(M){var Me;if(A+(Me=g[y++])>q){var me;t.lineTo(p*(1-(me=(q-A)/Me))+s*me,d*(1-me)+c*me);break e}A+=Me}t.closePath(),p=s,d=c}}},n.prototype.clone=function(){var t=new n,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},n.CMD=to,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),n}();const B2=Wde;function Fg(n,t,e,o,r,i,a){if(0===r)return!1;var c,s=r;if(a>t+s&&a>o+s||an+s&&i>e+s||it+u&&d>o+u&&d>i+u&&d>s+u||dn+u&&p>e+u&&p>r+u&&p>a+u||p=0&&At+p&&c>o+p&&c>i+p||cn+p&&s>e+p&&s>r+p||s=0&&Me||d+pr&&(r+=z_);var h=Math.atan2(c,s);return h<0&&(h+=z_),h>=o&&h<=r||h+z_>=o&&h+z_<=r}function Th(n,t,e,o,r,i){if(i>t&&i>o||ir?s:0}var F2=B2.CMD,Rh=2*Math.PI,Sde=1e-4,rs=[-1,-1,-1],Jc=[-1,-1];function kde(){var n=Jc[0];Jc[0]=Jc[1],Jc[1]=n}function Ede(n,t,e,o,r,i,a,s,c,p){if(p>t&&p>o&&p>i&&p>s||p1&&kde(),M=Mi(t,o,i,s,Jc[0]),h>1&&(g=Mi(t,o,i,s,Jc[1]))),u+=2===h?At&&s>o&&s>i||s=0&&p<=1&&(r[c++]=p);else{var d=a*a-4*i*s;if(k2(d))(p=-a/(2*i))>=0&&p<=1&&(r[c++]=p);else if(d>0){var p,u=D2(d),h=(-a-u)/(2*i);(p=(-a+u)/(2*i))>=0&&p<=1&&(r[c++]=p),h>=0&&h<=1&&(r[c++]=h)}}return c}(t,o,i,s,rs);if(0===c)return 0;var p=BY(t,o,i);if(p>=0&&p<=1){for(var d=0,u=ma(t,o,i,p),h=0;he||s<-e)return 0;var c=Math.sqrt(e*e-s*s);rs[0]=-c,rs[1]=c;var p=Math.abs(o-r);if(p<1e-4)return 0;if(p>=Rh-1e-4){o=0,r=Rh;var d=i?1:-1;return a>=rs[0]+n&&a<=rs[1]+n?d:0}if(o>r){var u=o;o=r,r=u}o<0&&(o+=Rh,r+=Rh);for(var h=0,M=0;M<2;M++){var g=rs[M];if(g+n>a){var v=Math.atan2(s,g);d=i?1:-1,v<0&&(v=Rh+v),(v>=o&&v<=r||v+Rh>=o&&v+Rh<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(d=-d),h+=d)}}return h}function iH(n,t,e,o,r){for(var h,M,i=n.data,a=n.len(),s=0,c=0,p=0,d=0,u=0,g=0;g1&&(e||(s+=Th(c,p,d,u,o,r))),A&&(d=c=i[g],u=p=i[g+1]),v){case F2.M:c=d=i[g++],p=u=i[g++];break;case F2.L:if(e){if(Fg(c,p,i[g],i[g+1],t,o,r))return!0}else s+=Th(c,p,i[g],i[g+1],o,r)||0;c=i[g++],p=i[g++];break;case F2.C:if(e){if(Lde(c,p,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],t,o,r))return!0}else s+=Ede(c,p,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],o,r)||0;c=i[g++],p=i[g++];break;case F2.Q:if(e){if(Tde(c,p,i[g++],i[g++],i[g],i[g+1],t,o,r))return!0}else s+=Ide(c,p,i[g++],i[g++],i[g],i[g+1],o,r)||0;c=i[g++],p=i[g++];break;case F2.A:var y=i[g++],q=i[g++],L=i[g++],D=i[g++],X=i[g++],H=i[g++];g+=1;var re=!!(1-i[g++]);h=Math.cos(X)*L+y,M=Math.sin(X)*D+q,A?(d=h,u=M):s+=Th(c,p,h,M,o,r);var ee=(o-y)*D/L+y;if(e){if(Rde(y,q,D,X,X+H,re,t,ee,r))return!0}else s+=Nde(y,q,D,X,X+H,re,ee,r);c=Math.cos(X+H)*L+y,p=Math.sin(X+H)*D+q;break;case F2.R:if(d=c=i[g++],u=p=i[g++],h=d+i[g++],M=u+i[g++],e){if(Fg(d,u,h,u,t,o,r)||Fg(h,u,h,M,t,o,r)||Fg(h,M,d,M,t,o,r)||Fg(d,M,d,u,t,o,r))return!0}else s+=Th(h,u,h,M,o,r),s+=Th(d,M,d,u,o,r);break;case F2.Z:if(e){if(Fg(c,p,d,u,t,o,r))return!0}else s+=Th(c,p,d,u,o,r);c=d,p=u}}return!e&&!function Dde(n,t){return Math.abs(n-t).5?fT:o>.2?"#eee":hT}if(e)return hT}return fT},t.prototype.getInsideTextStroke=function(e){var o=this.style.fill;if(S0(o)){var r=this.__zr;if(!(!r||!r.isDarkMode())==cC(e,0)<.4)return o}},t.prototype.buildPath=function(e,o,r){},t.prototype.pathUpdated=function(){this.__dirty&=~Ng},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new B2(!1)},t.prototype.hasStroke=function(){var e=this.style,o=e.stroke;return!(null==o||"none"===o||!(e.lineWidth>0))},t.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},t.prototype.getBoundingRect=function(){var e=this._rect,o=this.style,r=!e;if(r){var i=!1;this.path||(i=!0,this.createPathProxy());var a=this.path;(i||this.__dirty&Ng)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||r){s.copy(e);var c=o.strokeNoScale?this.getLineScale():1,p=o.lineWidth;this.hasFill()||(p=Math.max(p,this.strokeContainThreshold??4)),c>1e-10&&(s.width+=p/c,s.height+=p/c,s.x-=p/c/2,s.y-=p/c/2)}return s}return e},t.prototype.contain=function(e,o){var r=this.transformCoordToLocal(e,o),i=this.getBoundingRect(),a=this.style;if(i.contain(e=r[0],o=r[1])){var s=this.path;if(this.hasStroke()){var c=a.lineWidth,p=a.strokeNoScale?this.getLineScale():1;if(p>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),function Fde(n,t,e,o){return iH(n,t,!0,e,o)}(s,c/p,e,o)))return!0}if(this.hasFill())return function Bde(n,t,e){return iH(n,0,!1,t,e)}(s,e,o)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ng,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,o){"shape"===e?this.setShape(o):n.prototype.attrKV.call(this,e,o)},t.prototype.setShape=function(e,o){var r=this.shape;return r||(r=this.shape={}),"string"==typeof e?r[e]=o:Xt(r,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ng)},t.prototype.createStyle=function(e){return $4(aH,e)},t.prototype._innerSaveToNormal=function(e){n.prototype._innerSaveToNormal.call(this,e);var o=this._normalState;e.shape&&!o.shape&&(o.shape=Xt({},this.shape))},t.prototype._applyStateObj=function(e,o,r,i,a,s){n.prototype._applyStateObj.call(this,e,o,r,i,a,s);var p,c=!(o&&i);if(o&&o.shape?a?i?p=o.shape:(p=Xt({},r.shape),Xt(p,o.shape)):(p=Xt({},i?this.shape:r.shape),Xt(p,o.shape)):c&&(p=r.shape),p)if(a){this.shape=Xt({},this.shape);for(var d={},u=Uo(p),h=0;h0},t.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},t.prototype.createStyle=function(e){return $4(Xde,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var o=e.text;null!=o?o+="":o="";var r=UL(o,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;r.x-=i/2,r.y-=i/2,r.width+=i,r.height+=i}this._rect=r}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(m_);sH.prototype.type="tspan";const LT=sH;var jde=Qn({x:0,y:0},wh),Ude={style:Qn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gC.style)},cH=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ao(t,n),t.prototype.createStyle=function(e){return $4(jde,e)},t.prototype._getSize=function(e){var o=this.style,r=o[e];if(null!=r)return r;var i=function Vde(n){return!!(n&&"string"!=typeof n&&n.width&&n.height)}(o.image)?o.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",s=o[a];return null==s?i[e]:i[e]/i[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ude},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new eo(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(m_);cH.prototype.type="image";const Sh=cH;var Yg=Math.round;function lH(n,t,e){if(t){var o=t.x1,r=t.x2,i=t.y1,a=t.y2;n.x1=o,n.x2=r,n.y1=i,n.y2=a;var s=e&&e.lineWidth;return s&&(Yg(2*o)===Yg(2*r)&&(n.x1=n.x2=Dh(o,s,!0)),Yg(2*i)===Yg(2*a)&&(n.y1=n.y2=Dh(i,s,!0))),n}}function pH(n,t,e){if(t){var o=t.x,r=t.y,i=t.width,a=t.height;n.x=o,n.y=r,n.width=i,n.height=a;var s=e&&e.lineWidth;return s&&(n.x=Dh(o,s,!0),n.y=Dh(r,s,!0),n.width=Math.max(Dh(o+i,s,!1)-n.x,0===i?0:1),n.height=Math.max(Dh(r+a,s,!1)-n.y,0===a?0:1)),n}}function Dh(n,t,e){if(!t)return n;var o=Yg(2*n);return(o+Yg(t))%2==0?o/2:(o+(e?1:-1))/2}var Gde=function n(){this.x=0,this.y=0,this.width=0,this.height=0},Zde={},dH=function(n){function t(e){return n.call(this,e)||this}return Ao(t,n),t.prototype.getDefaultShape=function(){return new Gde},t.prototype.buildPath=function(e,o){var r,i,a,s;if(this.subPixelOptimize){var c=pH(Zde,o,this.style);r=c.x,i=c.y,a=c.width,s=c.height,c.r=o.r,o=c}else r=o.x,i=o.y,a=o.width,s=o.height;o.r?function $de(n,t){var s,c,p,d,u,e=t.x,o=t.y,r=t.width,i=t.height,a=t.r;r<0&&(e+=r,r=-r),i<0&&(o+=i,i=-i),"number"==typeof a?s=c=p=d=a:a instanceof Array?1===a.length?s=c=p=d=a[0]:2===a.length?(s=p=a[0],c=d=a[1]):3===a.length?(s=a[0],c=d=a[1],p=a[2]):(s=a[0],c=a[1],p=a[2],d=a[3]):s=c=p=d=0,s+c>r&&(s*=r/(u=s+c),c*=r/u),p+d>r&&(p*=r/(u=p+d),d*=r/u),c+p>i&&(c*=i/(u=c+p),p*=i/u),s+d>i&&(s*=i/(u=s+d),d*=i/u),n.moveTo(e+s,o),n.lineTo(e+r-c,o),0!==c&&n.arc(e+r-c,o+c,c,-Math.PI/2,0),n.lineTo(e+r,o+i-p),0!==p&&n.arc(e+r-p,o+i-p,p,0,Math.PI/2),n.lineTo(e+d,o+i),0!==d&&n.arc(e+d,o+i-d,d,Math.PI/2,Math.PI),n.lineTo(e,o+s),0!==s&&n.arc(e+s,o+s,s,Math.PI,1.5*Math.PI)}(e,o):e.rect(r,i,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Po);dH.prototype.type="rect";const Bi=dH;var uH={fill:"#000"},Kde={style:Qn({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},gC.style)},hH=function(n){function t(e){var o=n.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=uH,o.attr(e),o}return Ao(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;eM&&p){var g=Math.floor(M/s);u=u.slice(0,g)}if(n&&i&&null!=d)for(var v=wY(d,r,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),A=0;A0,me=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),xe=a.calculatedLineHeight,Ve=0;Ves&&GL(e,n.substring(s,p),t,a),GL(e,c[2],t,a,c[1]),s=$L.lastIndex}sr){X>0?(q.tokens=q.tokens.slice(0,X),A(q,D,L),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break e}var me=re.width,xe=null==me||"auto"===me;if("string"==typeof me&&"%"===me.charAt(me.length-1))H.percentWidth=me,d.push(H),H.contentWidth=bc(H.text,he);else{if(xe){var Ve=re.backgroundColor,st=Ve&&Ve.image;st&&K4(st=Ppe(st))&&(H.width=Math.max(H.width,st.width*Me/st.height))}var rt=g&&null!=o?o-D:null;null!=rt&&rt=0&&"right"===(Ve=H[xe]).align;)this._placeToken(Ve,e,ee,y,me,"right",L),le-=Ve.width,me-=Ve.width,xe--;for(Me+=(i-(Me-A)-(q-me)-le)/2;he<=xe;)this._placeToken(Ve=H[he],e,ee,y,Me+Ve.width/2,"center",L),Me+=Ve.width,he++;y+=ee}},t.prototype._placeToken=function(e,o,r,i,a,s,c){var p=o.rich[e.styleName]||{};p.text=e.text;var d=e.verticalAlign,u=i+r/2;"top"===d?u=i+e.height/2:"bottom"===d&&(u=i+r-e.height/2),!e.isLineHolder&&TT(p)&&this._renderBackground(p,o,"right"===s?a-e.width:"center"===s?a-e.width/2:a,u-e.height/2,e.width,e.height);var M=!!p.backgroundColor,g=e.textPadding;g&&(a=_H(a,s,g),u-=e.height/2-g[0]-e.innerHeight/2);var v=this._getOrCreateChild(LT),A=v.createStyle();v.useStyle(A);var y=this._defaultStyle,q=!1,L=0,D=mH("fill"in p?p.fill:"fill"in o?o.fill:(q=!0,y.fill)),X=OH("stroke"in p?p.stroke:"stroke"in o?o.stroke:M||c||y.autoStroke&&!q?null:(L=2,y.stroke)),H=p.textShadowBlur>0||o.textShadowBlur>0;A.text=e.text,A.x=a,A.y=u,H&&(A.shadowBlur=p.textShadowBlur||o.textShadowBlur||0,A.shadowColor=p.textShadowColor||o.textShadowColor||"transparent",A.shadowOffsetX=p.textShadowOffsetX||o.textShadowOffsetX||0,A.shadowOffsetY=p.textShadowOffsetY||o.textShadowOffsetY||0),A.textAlign=s,A.textBaseline="middle",A.font=e.font||Mh,A.opacity=a_(p.opacity,o.opacity,1),bH(A,p),X&&(A.lineWidth=a_(p.lineWidth,o.lineWidth,L),A.lineDash=qn(p.lineDash,o.lineDash),A.lineDashOffset=o.lineDashOffset||0,A.stroke=X),D&&(A.fill=D);var re=e.contentWidth,ee=e.contentHeight;v.setBoundingRect(new eo(u_(A.x,re,A.textAlign),Lg(A.y,ee,A.textBaseline),re,ee))},t.prototype._renderBackground=function(e,o,r,i,a,s){var v,A,q,c=e.backgroundColor,p=e.borderWidth,d=e.borderColor,u=c&&c.image,h=c&&!u,M=e.borderRadius,g=this;if(h||e.lineHeight||p&&d){(v=this._getOrCreateChild(Bi)).useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=r,y.y=i,y.width=a,y.height=s,y.r=M,v.dirtyShape()}if(h)(q=v.style).fill=c||null,q.fillOpacity=qn(e.fillOpacity,1);else if(u){(A=this._getOrCreateChild(Sh)).onload=function(){g.dirtyStyle()};var L=A.style;L.image=c.image,L.x=r,L.y=i,L.width=a,L.height=s}p&&d&&((q=v.style).lineWidth=p,q.stroke=d,q.strokeOpacity=qn(e.strokeOpacity,1),q.lineDash=e.borderDash,q.lineDashOffset=e.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(q.strokeFirst=!0,q.lineWidth*=2));var D=(v||A).style;D.shadowBlur=e.shadowBlur||0,D.shadowColor=e.shadowColor||"transparent",D.shadowOffsetX=e.shadowOffsetX||0,D.shadowOffsetY=e.shadowOffsetY||0,D.opacity=a_(e.opacity,o.opacity,1)},t.makeFont=function(e){var o="";return function tue(n){return null!=n.fontSize||n.fontFamily||n.fontWeight}(e)&&(o=[e.fontStyle,e.fontWeight,eue(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),o&&dd(o)||e.textFont||e.font},t}(m_),Jde={left:!0,right:1,center:1},Qde={top:1,bottom:1,middle:1},MH=["fontStyle","fontWeight","fontSize","fontFamily"];function eue(n){return"string"!=typeof n||-1===n.indexOf("px")&&-1===n.indexOf("rem")&&-1===n.indexOf("em")?isNaN(+n)?TL+"px":n+"px":n}function bH(n,t){for(var e=0;e0){if(n<=r)return a;if(n>=i)return s}else{if(n>=r)return a;if(n<=i)return s}else{if(n===r)return a;if(n===i)return s}return(n-r)/c*p+a}function Vo(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return S0(n)?function oue(n){return n.replace(/^\s+|\s+$/g,"")}(n).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):null==n?NaN:+n}function Kr(n,t,e){return null==t&&(t=10),t=Math.min(Math.max(0,t),AH),n=(+n).toFixed(t),e?n:+n}function _u(n){if(n=+n,isNaN(n))return 0;if(n>1e-14)for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(n*t)/t===n)return e;return function rue(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),o=e>0?+t.slice(e+1):0,r=e>0?e:t.length,i=t.indexOf(".");return Math.max(0,(i<0?0:r-1-i)-o)}(n)}function aue(n,t){var e=Math.max(_u(n),_u(t)),o=n+t;return e>AH?o:Kr(o,e)}function CH(n){var t=2*Math.PI;return(n%t+t)%t}function vC(n){return n>-vH&&n=10&&t++,t}function wH(n,t){var e=ST(n),o=Math.pow(10,e),r=n/o;return n=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*o,e>=-20?+n.toFixed(e<0?-e:0):n}function Y2(n){var t=parseFloat(n);return t==n&&(0!==t||!S0(n)||n.indexOf("x")<=0)?t:NaN}function PH(){return Math.round(9*Math.random())}function xH(n,t){return 0===t?n:xH(t,n%t)}function qH(n,t){return null==n?t:null==t?n:n*t/xH(n,t)}function WH(n,t,e){return(t-n)*e+n}var LH="series\0",TH="\0_ec_\0";function za(n){return n instanceof Array?n:null==n?[]:[n]}function DT(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var o=0,r=e.length;o=0,i=!1;if(n instanceof Po){var a=IH(n),s=r&&a.selectFill||a.normalFill,c=r&&a.selectStroke||a.normalStroke;if(Hg(s)||Hg(c)){var p=(o=o||{}).style||{};"inherit"===p.fill?(i=!0,o=Xt({},o),(p=Xt({},p)).fill=s):!Hg(p.fill)&&Hg(s)?(i=!0,o=Xt({},o),(p=Xt({},p)).fill=BH(s)):!Hg(p.stroke)&&Hg(c)&&(i||(o=Xt({},o),p=Xt({},p)),p.stroke=BH(c)),o.style=p}}return o&&null==o.z2&&(i||(o=Xt({},o)),o.z2=n.z2+(n.z2EmphasisLift??Cue)),o}(this,0,t,e);if("blur"===n)return function Tue(n,t,e){var o=zo(n.currentStates,t)>=0,r=n.style.opacity,i=o?null:function que(n,t,e,o){for(var r=n.style,i={},a=0;a0){var c={dataIndex:s,seriesIndex:e.seriesIndex};null!=a&&(c.dataType=a),t.push(c)}})}),t}function UT(n,t,e){tX(n,!0),vu(n,Rue),function Fue(n,t,e){var o=Do(n);null!=t?(o.focus=t,o.blurScope=e):o.focus&&(o.focus=null)}(n,t,e)}function LC(n,t,e,o){o?function Bue(n){tX(n,!1)}(n):UT(n,t,e)}var eX=["emphasis","blur","select"],Yue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function VT(n,t,e,o){e=e||"itemStyle";for(var r=0;r1){var d=c.shift();1===c.length&&(o[s]=c[0]),this._update&&this._update(d,a)}else 1===p?(o[s]=null,this._update&&this._update(c,a)):this._remove&&this._remove(a)}this._performRestAdd(i,o)},n.prototype._executeMultiple=function(){var e=this._new,o={},r={},i=[],a=[];this._initIndexMap(this._old,o,i,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s1&&1===h)this._updateManyToOne&&this._updateManyToOne(d,p),r[c]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(d,p),r[c]=null;else if(1===u&&1===h)this._update&&this._update(d,p),r[c]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(d,p),r[c]=null;else if(u>1)for(var M=0;M1)for(var s=0;sv&&(v=L)}M[0]=g,M[1]=v}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(a){for(var s=0;sr?-this._resultLT:0},n}(),NC="undefined",y2e=typeof Uint32Array===NC?Array:Uint32Array,C2e=typeof Uint16Array===NC?Array:Uint16Array,LX=typeof Int32Array===NC?Array:Int32Array,TX=typeof Float64Array===NC?Array:Float64Array,RX={float:TX,int:LX,ordinal:Array,number:Array,time:TX};function q_(n){return n>65535?y2e:C2e}function w2e(n){var t=n.constructor;return t===Array?n.slice():new t(n)}function SX(n,t,e,o,r){var i=RX[e||"float"];if(r){var a=n[t],s=a&&a.length;if(s!==o){for(var c=new i(o),p=0;pA[1]&&(A[1]=v)}return this._rawCount=this._count=c,{start:s,end:c}},n.prototype._initDataFromProvider=function(t,e,o){for(var r=this._provider,i=this._chunks,a=this._dimensions,s=a.length,c=this._rawExtent,p=e1(a,function(q){return q.property}),d=0;dy[1]&&(y[1]=A)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,o=e[t];if(null!=o&&ot))return a;i=a-1}}return-1},n.prototype.indicesOfNearest=function(t,e,o){var i=this._chunks[t],a=[];if(!i)return a;null==o&&(o=1/0);for(var s=1/0,c=-1,p=0,d=0,u=this.count();d=0&&c<0)&&(s=g,c=M,p=0),M===c&&(a[p++]=d))}return a.length=p,a},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var r=this._count;if((o=e.constructor)===Array){t=new o(r);for(var i=0;i=u&&q<=h||isNaN(q))&&(c[p++]=v),v++;g=!0}else if(2===i){A=M[r[0]];var L=M[r[1]],D=t[r[1]][0],X=t[r[1]][1];for(y=0;y=u&&q<=h||isNaN(q))&&(H>=D&&H<=X||isNaN(H))&&(c[p++]=v),v++}g=!0}}if(!g)if(1===i)for(y=0;y=u&&q<=h||isNaN(q))&&(c[p++]=re)}else for(y=0;yt[he][1])&&(ee=!1)}ee&&(c[p++]=e.getRawIndex(y))}return py[1]&&(y[1]=A)}}},n.prototype.lttbDownSample=function(t,e){var d,u,h,o=this.clone([t],!0),i=o._chunks[t],a=this.count(),s=0,c=Math.floor(1/e),p=this.getRawIndex(0),M=new(q_(this._rawCount))(Math.min(2*(Math.ceil(a/c)+2),a));M[s++]=p;for(var g=1;gd&&(d=u,h=D)}Me>0&&Med-g&&(s.length=c=d-g);for(var v=0;vu[1]&&(u[1]=y),h[M++]=q}return i._count=M,i._indices=h,i._updateGetRawIdx(),i},n.prototype.each=function(t,e){if(this._count)for(var o=t.length,r=this._chunks,i=0,a=this.count();ic&&(c=u)}return this._extent[t]=a=[s,c],a},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var o=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function t(e,o,r,i){return IC(e[i],this._dimensions[i])}sR={arrayRows:t,objectRows:function(e,o,r,i){return IC(e[o],this._dimensions[i])},keyedColumns:t,original:function(e,o,r,i){var a=e&&(null==e.value?e:e.value);return IC(a instanceof Array?a[i]:a,this._dimensions[i])},typedArray:function(e,o,r,i){return e[i]}}}(),n}();const cR=P2e;var x2e=Jr(),q2e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},DX=function(){function n(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=IX(this.source)))},n.prototype.getSourceDimensionIndex=function(t){return qn(this._dimNameMap.get(t),-1)},n.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},n.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=_X(this.source),o=!NX(t),r="",i=[],a=0,s=0;a30}var FX,BC,L_,T_,lR,FC,pR,W_=V0,X2=e1,W2e=typeof Int32Array>"u"?Array:Int32Array,T2e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],R2e=["_approximateExtent"],S2e=function(){function n(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var o,r=!1;kX(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,o=t),o=o||["x","y"];for(var i={},a=[],s={},c=!1,p={},d=0;d=e)){var r=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,a=this._idList;if(r.getSource().sourceFormat===el&&!r.pure)for(var p=[],d=t;d0},n.prototype.ensureUniqueItemVisual=function(t,e){var o=this._itemVisuals,r=o[t];r||(r=o[t]={});var i=r[e];return null==i&&(f0(i=this.getVisual(e))?i=i.slice():W_(i)&&(i=Xt({},i)),r[e]=i),i},n.prototype.setItemVisual=function(t,e,o){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,W_(e)?Xt(r,e):r[e]=o},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){W_(t)?Xt(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,o){this._itemLayouts[t]=o?Xt(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){(function(n,t,e,o){if(o){var r=Do(o);r.dataIndex=e,r.dataType=t,r.seriesIndex=n,"group"===o.type&&o.traverse(function(i){var a=Do(i);a.seriesIndex=n,a.dataIndex=e,a.dataType=t})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){We(this._graphicEls,function(o,r){o&&t&&t.call(e,o,r)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:X2(this.dimensions,this._getDimInfo,this),this.hostModel)),lR(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var o=this[t];S1(o)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=o.apply(this,arguments);return e.apply(this,[r].concat(EL(arguments)))})},n.internalField=(FX=function(t){var e=t._invertedIndicesMap;We(e,function(o,r){var i=t._dimInfos[r],a=i.ordinalMeta,s=t._store;if(a){o=e[r]=new W2e(a.categories.length);for(var c=0;c1&&(c+="__ec__"+d),r[e]=c}})),n}();const YX=S2e;function dR(n,t){eR(n)||(n=nR(n));var e=(t=t||{}).coordDimensions||[],o=t.dimensionsDefine||n.dimensionsDefine||[],r=X1(),i=[],a=function k2e(n,t,e,o){var r=Math.max(n.dimensionsDetectedCount||1,t.length,e.length,o||0);return We(t,function(i){var a;V0(i)&&(a=i.dimsDef)&&(r=Math.max(r,a.length))}),r}(n,e,o,t.dimensionsCount),s=t.canOmitUnusedDimensions&&NX(a),c=o===n.dimensionsDefine,p=c?IX(n):EX(o),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(n,a));for(var u=X1(d),h=new LX(a),M=0;M0&&(o.name=r+(i-1)),i++,t.set(r,i)}}(i),new DX({source:n,dimensions:i,fullDimensionCount:a,dimensionOmitted:s})}function E2e(n,t,e){if(e||t.hasKey(n)){for(var o=0;t.hasKey(n+o);)o++;n+=o}return t.set(n,!0),n}var uR={},I2e=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(t,e){var o=[];We(uR,function(r,i){var a=r.create(t,e);o=o.concat(a||[])}),this._coordinateSystems=o},n.prototype.update=function(t,e){We(this._coordinateSystems,function(o){o.update&&o.update(t,e)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(t,e){uR[t]=e},n.get=function(t){return uR[t]},n}();const fR=I2e;var N2e=function n(t){this.coordSysDims=[],this.axisMap=X1(),this.categoryAxisMap=X1(),this.coordSysName=t},F2e={cartesian2d:function(n,t,e,o){var r=n.getReferringComponents("xAxis",Ql).models[0],i=n.getReferringComponents("yAxis",Ql).models[0];t.coordSysDims=["x","y"],e.set("x",r),e.set("y",i),Vg(r)&&(o.set("x",r),t.firstCategoryDimIndex=0),Vg(i)&&(o.set("y",i),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,o){var r=n.getReferringComponents("singleAxis",Ql).models[0];t.coordSysDims=["single"],e.set("single",r),Vg(r)&&(o.set("single",r),t.firstCategoryDimIndex=0)},polar:function(n,t,e,o){var r=n.getReferringComponents("polar",Ql).models[0],i=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",a),Vg(i)&&(o.set("radius",i),t.firstCategoryDimIndex=0),Vg(a)&&(o.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,o){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,o){var r=n.ecModel,i=r.getComponent("parallel",n.get("parallelIndex")),a=t.coordSysDims=i.dimensions.slice();We(i.parallelAxisIndex,function(s,c){var p=r.getComponent("parallelAxis",s),d=a[c];e.set(d,p),Vg(p)&&(o.set(d,p),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=c))})}};function Vg(n){return"category"===n.get("type")}function R_(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}const Z2e=function V2e(n,t,e){e=e||{};var r,o=t.getSourceManager(),i=!1;n?(i=!0,r=nR(n)):i=(r=o.getSource()).sourceFormat===el;var a=function B2e(n){var t=n.get("coordinateSystem"),e=new N2e(t),o=F2e[t];if(o)return o(n,e,e.axisMap,e.categoryAxisMap),e}(t),s=function j2e(n,t){var r,e=n.get("coordinateSystem"),o=fR.get(e);return t&&t.coordSysDims&&(r=e1(t.coordSysDims,function(i){var a={name:i},s=t.axisMap.get(i);if(s){var c=s.get("type");a.type=function M2e(n){return"category"===n?"ordinal":"time"===n?"time":"float"}(c)}return a})),r||(r=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),r}(t,a),c=e.useEncodeDefaulter,p=S1(c)?c:c?Zr(r2e,s,t):null,u=dR(r,{coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!i}),h=function U2e(n,t,e){var o,r;return e&&We(n,function(i,a){var c=e.categoryAxisMap.get(i.coordDim);c&&(null==o&&(o=a),i.ordinalMeta=c.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),null!=i.otherDims.itemName&&(r=!0)}),!r&&null!=o&&(n[o].otherDims.itemName=0),o}(u.dimensions,e.createInvertedIndices,a),M=i?null:o.getSharedDataStore(u),g=function Y2e(n,t,e){var i,a,s,o=(e=e||{}).byIndex,r=e.stackedCoordDimension;!function H2e(n){return!kX(n.schema)}(t)?(i=(a=t.schema).dimensions,s=t.store):i=t;var p,d,u,h,c=!(!n||!n.get("stack"));if(We(i,function(q,L){S0(q)&&(i[L]=q={name:q}),c&&!q.isExtraCoord&&(!o&&!p&&q.ordinalMeta&&(p=q),!d&&"ordinal"!==q.type&&"time"!==q.type&&(!r||r===q.coordDim)&&(d=q))}),d&&!o&&!p&&(o=!0),d){u="__\0ecstackresult_"+n.id,h="__\0ecstackedover_"+n.id,p&&(p.createInvertedIndices=!0);var M=d.coordDim,g=d.type,v=0;We(i,function(q){q.coordDim===M&&v++});var A={name:u,coordDim:M,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};a?(s&&(A.storeDimIndex=s.ensureCalculationDimension(h,g),y.storeDimIndex=s.ensureCalculationDimension(u,g)),a.appendCalculationDimension(A),a.appendCalculationDimension(y)):(i.push(A),i.push(y))}return{stackedDimension:d&&d.name,stackedByDimension:p&&p.name,isStackedByIndex:o,stackedOverDimension:h,stackResultDimension:u}}(t,{schema:u,store:M}),v=new YX(u,t);v.setCalculationInfo(g);var A=null!=h&&function $2e(n){if(n.sourceFormat===el){var t=function G2e(n){for(var t=0;t>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[c]+":0",r[p]+":0",o[1-c]+":auto",r[1-p]+":auto",""].join("!important;"),n.appendChild(a),e.push(a)}return e}(t,i),s=function rfe(n,t,e){for(var o=e?"invTrans":"trans",r=t[o],i=t.srcCoords,a=[],s=[],c=!0,p=0;p<4;p++){var d=n[p].getBoundingClientRect(),u=2*p,h=d.left,M=d.top;a.push(h,M),c=c&&i&&h===i[u]&&M===i[u+1],s.push(n[p].offsetLeft,n[p].offsetTop)}return c&&r?r:(t.srcCoords=a,t[o]=e?HX(s,a):HX(a,s))}(a,i,r);if(s)return s(n,e,o),!0}return!1}function jX(n){return"CANVAS"===n.nodeName.toUpperCase()}var ife=/([&<>"'])/g,afe={"&":"&","<":"<",">":">",'"':""","'":"'"};function tl(n){return null==n?"":(n+"").replace(ife,function(t,e){return afe[e]})}var HC="ZH",gR="EN",S_=gR,XC={},OR={},UX=j1.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(HC)>-1?HC:S_;function VX(n,t){n=n.toUpperCase(),OR[n]=new va(t),XC[n]=t}VX(gR,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),VX(HC,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var mR=1e3,_R=60*mR,D_=60*_R,nl=24*D_,$X=365*nl,k_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},jC="{yyyy}-{MM}-{dd}",GX={year:"{yyyy}",month:"{yyyy}-{MM}",day:jC,hour:jC+" "+k_.hour,minute:jC+" "+k_.minute,second:jC+" "+k_.second,millisecond:k_.none},zR=["year","month","day","hour","minute","second","millisecond"],ZX=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Yh(n,t){return"0000".substr(0,t-(n+="").length)+n}function $g(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function ufe(n){return n===$g(n)}function UC(n,t,e,o){var r=zu(n),i=r[vR(e)](),a=r[Gg(e)]()+1,s=Math.floor((a-1)/3)+1,c=r[VC(e)](),p=r["get"+(e?"UTC":"")+"Day"](),d=r[E_(e)](),u=(d-1)%12+1,h=r[$C(e)](),M=r[GC(e)](),g=r[ZC(e)](),v=o instanceof va?o:function pfe(n){return OR[n]}(o||UX)||function dfe(){return OR[S_]}(),A=v.getModel("time"),y=A.get("month"),q=A.get("monthAbbr"),L=A.get("dayOfWeek"),D=A.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,q[a-1]).replace(/{MM}/g,Yh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Yh(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,L[p]).replace(/{ee}/g,D[p]).replace(/{e}/g,p+"").replace(/{HH}/g,Yh(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,Yh(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Yh(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Yh(M,2)).replace(/{s}/g,M+"").replace(/{SSS}/g,Yh(g,3)).replace(/{S}/g,g+"")}function KX(n,t){var e=zu(n),o=e[Gg(t)]()+1,r=e[VC(t)](),i=e[E_(t)](),a=e[$C(t)](),s=e[GC(t)](),p=0===e[ZC(t)](),d=p&&0===s,u=d&&0===a,h=u&&0===i,M=h&&1===r;return M&&1===o?"year":M?"month":h?"day":u?"hour":d?"minute":p?"second":"millisecond"}function JX(n,t,e){var o=vo(n)?zu(n):n;switch(t=t||KX(n,e)){case"year":return o[vR(e)]();case"half-year":return o[Gg(e)]()>=6?1:0;case"quarter":return Math.floor((o[Gg(e)]()+1)/4);case"month":return o[Gg(e)]();case"day":return o[VC(e)]();case"half-day":return o[E_(e)]()/24;case"hour":return o[E_(e)]();case"minute":return o[$C(e)]();case"second":return o[GC(e)]();case"millisecond":return o[ZC(e)]()}}function vR(n){return n?"getUTCFullYear":"getFullYear"}function Gg(n){return n?"getUTCMonth":"getMonth"}function VC(n){return n?"getUTCDate":"getDate"}function E_(n){return n?"getUTCHours":"getHours"}function $C(n){return n?"getUTCMinutes":"getMinutes"}function GC(n){return n?"getUTCSeconds":"getSeconds"}function ZC(n){return n?"getUTCMilliseconds":"getMilliseconds"}function Mfe(n){return n?"setUTCFullYear":"setFullYear"}function QX(n){return n?"setUTCMonth":"setMonth"}function ej(n){return n?"setUTCDate":"setDate"}function tj(n){return n?"setUTCHours":"setHours"}function nj(n){return n?"setUTCMinutes":"setMinutes"}function oj(n){return n?"setUTCSeconds":"setSeconds"}function rj(n){return n?"setUTCMilliseconds":"setMilliseconds"}function ij(n){if(!function lue(n){return!isNaN(Y2(n))}(n))return S0(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function aj(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,o){return o.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var KC=pY;function AR(n,t,e){function r(d){return d&&dd(d)?d:"-"}function i(d){return!(null==d||isNaN(d)||!isFinite(d))}var a="time"===t,s=n instanceof Date;if(a||s){var c=a?zu(n):n;if(!isNaN(+c))return UC(c,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(s)return"-"}if("ordinal"===t)return kL(n)?r(n):vo(n)&&i(n)?n+"":"-";var p=Y2(n);return i(p)?ij(p):kL(n)?r(n):"boolean"==typeof n?n+"":"-"}var sj=["a","b","c","d","e","f","g"],yR=function(n,t){return"{"+n+(t??"")+"}"};function cj(n,t,e){f0(t)||(t=[t]);var o=t.length;if(!o)return"";for(var r=t[0].$vars||[],i=0;io||c.newline?(i=0,M=v,a+=s+e,s=d.height):s=Math.max(s,d.height)}else{var A=d.height+(h?-h.y+d.y:0);(g=a+A)>r||c.newline?(i+=s+e,a=0,g=A,s=d.width):s=Math.max(s,d.width)}c.newline||(c.x=i,c.y=a,c.markRedraw(),"horizontal"===n?i=M+e:a=g+e)})}var I_=CR;function jh(n,t,e){e=KC(e||0);var o=t.width,r=t.height,i=Vo(n.left,o),a=Vo(n.top,r),s=Vo(n.right,o),c=Vo(n.bottom,r),p=Vo(n.width,o),d=Vo(n.height,r),u=e[2]+e[0],h=e[1]+e[3],M=n.aspect;switch(isNaN(p)&&(p=o-s-h-i),isNaN(d)&&(d=r-c-u-a),null!=M&&(isNaN(p)&&isNaN(d)&&(M>o/r?p=.8*o:d=.8*r),isNaN(p)&&(p=M*d),isNaN(d)&&(d=p/M)),isNaN(i)&&(i=o-s-p-h),isNaN(a)&&(a=r-c-d-u),n.left||n.right){case"center":i=o/2-p/2-e[3];break;case"right":i=o-p-h}switch(n.top||n.bottom){case"middle":case"center":a=r/2-d/2-e[0];break;case"bottom":a=r-d-u}i=i||0,a=a||0,isNaN(p)&&(p=o-h-i-(s||0)),isNaN(d)&&(d=r-u-a-(c||0));var g=new eo(i+e[3],a+e[0],p,d);return g.margin=e,g}function N_(n){var t=n.layoutMode||n.constructor.layoutMode;return V0(t)?t:t?{type:t}:null}function Zg(n,t,e){var o=e&&e.ignoreSize;!f0(o)&&(o=[o,o]);var r=a(Xh[0],0),i=a(Xh[1],1);function a(d,u){var h={},M=0,g={},v=0;if(JC(d,function(L){g[L]=n[L]}),JC(d,function(L){s(t,L)&&(h[L]=g[L]=t[L]),c(h,L)&&M++,c(g,L)&&v++}),o[u])return c(t,d[1])?g[d[2]]=null:c(t,d[2])&&(g[d[1]]=null),g;if(2===v||!M)return g;if(M>=2)return h;for(var y=0;y=0;c--)s=Un(s,r[c],!0);o.defaultOption=s}return o.defaultOption},t.prototype.getReferringComponents=function(e,o){var i=e+"Id";return C_(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(i,!0)},o)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((e=t.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",void(e.componentIndex=0)),t;var e}(va);MY(Kg,va),G4(Kg),function J2e(n){var t={};n.registerSubTypeDefaulter=function(e,o){var r=ud(e);t[r.main]=o},n.determineSubType=function(e,o){var r=o.type;if(!r){var i=ud(e).main;n.hasSubTypes(e)&&t[i]&&(r=t[i](o))}return r}}(Kg),function Q2e(n,t){function o(i,a){return i[a]||(i[a]={predecessor:[],successor:[]}),i[a]}n.topologicalTravel=function(i,a,s,c){if(i.length){var p=function e(i){var a={},s=[];return We(i,function(c){var p=o(a,c),u=function r(i,a){var s=[];return We(i,function(c){zo(a,c)>=0&&s.push(c)}),s}(p.originalDeps=t(c),i);p.entryCount=u.length,0===p.entryCount&&s.push(c),We(u,function(h){zo(p.predecessor,h)<0&&p.predecessor.push(h);var M=o(a,h);zo(M.successor,h)<0&&M.successor.push(c)})}),{graph:a,noEntryList:s}}(a),d=p.graph,u=p.noEntryList,h={};for(We(i,function(q){h[q]=!0});u.length;){var M=u.pop(),g=d[M],v=!!h[M];v&&(s.call(c,M,g.originalDeps.slice()),delete h[M]),We(g.successor,v?y:A)}We(h,function(){throw new Error("")})}function A(q){d[q].entryCount--,0===d[q].entryCount&&u.push(q)}function y(q){h[q]=!0,A(q)}}}(Kg,function _fe(n){var t=[];return We(Kg.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=e1(t,function(e){return ud(e).main}),"dataset"!==n&&zo(t,"dataset")<=0&&t.unshift("dataset"),t});const $o=Kg;var pj=Jr(),wR=(Jr(),function(){function n(){}return n.prototype.getColorFromPalette=function(t,e,o){var r=za(this.get("color",!0)),i=this.get("colorLayer",!0);return function dj(n,t,e,o,r,i,a){var s=t(i=i||n),c=s.paletteIdx||0,p=s.paletteNameMap=s.paletteNameMap||{};if(p.hasOwnProperty(r))return p[r];var d=null!=a&&o?function vfe(n,t){for(var e=n.length,o=0;ot)return n[o];return n[e-1]}(o,a):e;if((d=d||e)&&d.length){var u=d[c];return r&&(p[r]=u),s.paletteIdx=(c+1)%d.length,u}}(this,pj,r,i,t,e,o)},n.prototype.clearColorPalette=function(){!function Afe(n,t){t(n).paletteIdx=0,t(n).paletteNameMap={}}(this,pj)},n}());var yfe=/\{@(.+?)\}/g,Cfe=function(){function n(){}return n.prototype.getDataParams=function(t,e){var o=this.getData(e),r=this.getRawValue(t,e),i=o.getRawIndex(t),a=o.getName(t),s=o.getRawDataItem(t),c=o.getItemVisual(t,"style"),p=c&&c[o.getItemVisual(t,"drawType")||"fill"],d=c&&c.stroke,u=this.mainType,h="series"===u,M=o.userOutput&&o.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:i,data:s,dataType:e,value:r,color:p,borderColor:d,dimensionNames:M?M.fullDimensions:null,encode:M?M.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(t,e,o,r,i,a){e=e||"normal";var s=this.getData(o),c=this.getDataParams(t,o);return a&&(c.value=a.interpolatedValue),null!=r&&f0(c.value)&&(c.value=c.value[r]),i||(i=s.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),S1(i)?(c.status=e,c.dimensionIndex=r,i(c)):S0(i)?cj(i,c).replace(yfe,function(u,h){var M=h.length,g=h;"["===g.charAt(0)&&"]"===g.charAt(M-1)&&(g=+g.slice(1,M-1));var v=jg(s,t,g);if(a&&f0(a.interpolatedValue)){var A=s.getDimensionIndex(g);A>=0&&(v=a.interpolatedValue[A])}return null!=v?v+"":""}):void 0},n.prototype.getRawValue=function(t,e){return jg(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,o){},n}();function uj(n){var t,e;return V0(n)?n.type&&(e=n):t=n,{text:t,frag:e}}function B_(n){return new wfe(n)}var wfe=function(){function n(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var i,e=this._upstream,o=t&&t.skip;if(this._dirty&&e){var r=this.context;r.data=r.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(i=this._plan(this.context));var u,a=d(this._modBy),s=this._modDataCount||0,c=d(t&&t.modBy),p=t&&t.modDataCount||0;function d(q){return!(q>=1)&&(q=1),q}(a!==c||s!==p)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,u=this._doReset(o)),this._modBy=c,this._modDataCount=p;var h=t&&t.step;if(this._dueEnd=e?e._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var M=this._dueIndex,g=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!o&&(u||M1&&o>0?s:a}};return i;function a(){return t=n?null:c9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var r,i,t=this._sourceHost,e=this._getUpstreamSourceManagers(),o=!!e.length;if(e5(t)){var a=t,s=void 0,c=void 0,p=void 0;if(o){var d=e[0];d.prepareSource(),s=(p=d.getSource()).data,c=p.sourceFormat,i=[d._getVersionSign()]}else c=Mc(s=a.get("data",!0))?Au:el,i=[];var u=this._getSourceMetaRawOption()||{},h=p&&p.metaRawOption||{},M=qn(u.seriesLayoutBy,h.seriesLayoutBy)||null,g=qn(u.sourceHeader,h.sourceHeader),v=qn(u.dimensions,h.dimensions);r=M!==h.seriesLayoutBy||!!g!=!!h.sourceHeader||v?[tR(s,{seriesLayoutBy:M,sourceHeader:g,dimensions:v},c)]:[]}else{var y=t;if(o){var q=this._applyTransform(e);r=q.sourceList,i=q.upstreamSignList}else r=[tR(y.get("source",!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},n.prototype._applyTransform=function(t){var e=this._sourceHost,o=e.get("transform",!0),r=e.get("fromTransformResult",!0);null!=r&&1!==t.length&&Mj("");var a,s=[],c=[];return We(t,function(p){p.prepareSource();var d=p.getSource(r||0);null!=r&&!d&&Mj(""),s.push(d),c.push(p._getVersionSign())}),o?a=function Sfe(n,t,e){var o=za(n),r=o.length;r||is("");for(var a=0,s=r;a1||e>0&&!n.noHeader;return We(n.blocks,function(r){var i=mj(r);i>=t&&(t=i+ +(o&&(!i||xR(r)&&!r.noHeader)))}),t}return 0}function Nfe(n,t,e,o){var r=t.noHeader,i=function Ffe(n){return{html:Efe[n],richText:Ife[n]}}(mj(t)),a=[],s=t.blocks||[];gu(!s||f0(s)),s=s||[];var c=n.orderMode;if(t.sortBlocks&&c){s=s.slice();var p={valueAsc:"asc",valueDesc:"desc"};if(xg(p,c)){var d=new v2e(p[c],null);s.sort(function(g,v){return d.evaluate(g.sortParam,v.sortParam)})}else"seriesDesc"===c&&s.reverse()}We(s,function(g,v){var A=t.valueFormatter,y=Oj(g)(A?Xt(Xt({},n),{valueFormatter:A}):n,g,v>0?i.html:0,o);null!=y&&a.push(y)});var u="richText"===n.renderMode?a.join(i.richText):qR(a.join(""),r?e:i.html);if(r)return u;var h=AR(t.header,"ordinal",n.useUTC),M=gj(o,n.renderMode).nameStyle;return"richText"===n.renderMode?zj(n,h,M)+i.richText+u:qR('
'+tl(h)+"
"+u,e)}function Bfe(n,t,e,o){var r=n.renderMode,i=t.noName,a=t.noValue,s=!t.markerType,c=t.name,p=n.useUTC,d=t.valueFormatter||n.valueFormatter||function(D){return e1(D=f0(D)?D:[D],function(X,H){return AR(X,f0(M)?M[H]:M,p)})};if(!i||!a){var u=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),h=i?"":AR(c,"ordinal",p),M=t.valueType,g=a?[]:d(t.value),v=!s||!i,A=!s&&i,y=gj(o,r),q=y.nameStyle,L=y.valueStyle;return"richText"===r?(s?"":u)+(i?"":zj(n,h,q))+(a?"":function Xfe(n,t,e,o,r){var i=[r];return e&&i.push({padding:[0,0,0,o?10:20],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(f0(t)?t.join(" "):t,i)}(n,g,v,A,L)):qR((s?"":u)+(i?"":function Yfe(n,t,e){return''+tl(n)+""}(h,!s,q))+(a?"":function Hfe(n,t,e,o){return''+e1(n=f0(n)?n:[n],function(a){return tl(a)}).join("  ")+""}(g,v,A,L)),e)}}function _j(n,t,e,o,r,i){if(n)return Oj(n)({useUTC:r,renderMode:e,orderMode:o,markupStyleCreator:t,valueFormatter:n.valueFormatter},n,0,i)}function qR(n,t){return'
'+n+'
'}function zj(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function vj(n,t){return n.get("padding")??("richText"===t?[8,10]:10)}var WR=function(){function n(){this.richTextStyles={},this._nextStyleNameId=PH()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,o){var r="richText"===o?this._generateStyleName():null,i=function bfe(n,t){var e=S0(n)?{color:n,extraCssText:t}:n||{},o=e.color,r=e.type;t=e.extraCssText;var i=e.renderMode||"html";return o?"html"===i?"subItem"===r?'':'':{renderMode:i,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}({color:e,type:t,renderMode:o,markerId:r});return S0(i)?i:(this.richTextStyles[r]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(t,e){var o={};f0(e)?We(e,function(i){return Xt(o,i)}):Xt(o,e);var r=this._generateStyleName();return this.richTextStyles[r]=o,"{"+r+"|"+t+"}"},n}();var j2=Jr();function t5(n,t){return n.getName(t)||n.getId(t)}var n5=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return R1(t,n),t.prototype.init=function(e,o,r){this.seriesIndex=this.componentIndex,this.dataTask=B_({count:Zfe,reset:Kfe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r),(j2(this).sourceManager=new kfe(this)).prepareSource();var a=this.getInitialData(e,r);yj(a,this),this.dataTask.context.data=a,j2(this).dataBeforeProcessed=a,Aj(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(e,o){var r=N_(this),i=r?QC(e):{},a=this.subType;$o.hasClass(a)&&(a+="Series"),Un(e,o.getTheme().get(this.subType)),Un(e,this.getDefaultOption()),DT(e,"label",["show"]),this.fillDataTextStyle(e.data),r&&Zg(e,i,r)},t.prototype.mergeOption=function(e,o){e=Un(this.option,e,!0),this.fillDataTextStyle(e.data);var r=N_(this);r&&Zg(this.option,e,r);var i=j2(this).sourceManager;i.dirty(),i.prepareSource();var a=this.getInitialData(e,o);yj(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,j2(this).dataBeforeProcessed=a,Aj(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!Mc(e))for(var o=["show"],r=0;r1||c&&!a){var g=function Vfe(n,t,e,o,r){var i=t.getData(),a=R2(n,function(u,h,M){var g=i.getDimensionInfo(M);return u||g&&!1!==g.tooltip&&null!=g.displayName},!1),s=[],c=[],p=[];function d(u,h){var M=i.getDimensionInfo(h);!M||!1===M.otherDims.tooltip||(a?p.push(F_("nameValue",{markerType:"subItem",markerColor:r,name:M.displayName,value:u,valueType:M.type})):(s.push(u),c.push(M.type)))}return o.length?We(o,function(u){d(jg(i,e,u),u)}):We(n,d),{inlineValues:s,inlineValueTypes:c,blocks:p}}(s,t,e,i,p);d=g.inlineValues,u=g.inlineValueTypes,h=g.blocks,M=g.inlineValues[0]}else if(a){var v=r.getDimensionInfo(i[0]);M=d=jg(r,e,i[0]),u=v.type}else M=d=c?s[0]:s;var A=kT(t),y=A&&t.name||"",q=r.getName(e),L=o?y:q;return F_("section",{header:y,noHeader:o||!A,sortParam:M,blocks:[F_("nameValue",{markerType:"item",markerColor:p,name:L,noName:!dd(L),value:d,valueType:u})].concat(h||[])})}({series:this,dataIndex:e,multipleSeries:o})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(j1.node&&(!e||!e.ssr))return!1;var o=this.getShallow("animation");return o&&this.getData().count()>this.getShallow("animationThreshold")&&(o=!1),!!o},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,o,r){var i=this.ecModel,a=wR.prototype.getColorFromPalette.call(this,e,o,r);return a||(a=i.getColorFromPalette(e,o,r)),a},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,o){this._innerSelect(this.getData(o),e)},t.prototype.unselect=function(e,o){var r=this.option.selectedMap;if(r){var i=this.option.selectedMode,a=this.getData(o);if("series"===i||"all"===r)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s=0&&r.push(a)}return r},t.prototype.isSelected=function(e,o){var r=this.option.selectedMap;if(!r)return!1;var i=this.getData(o);return("all"===r||r[t5(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,o){var r,i,a=this.option,s=a.selectedMode,c=o.length;if(s&&c)if("series"===s)a.selectedMap="all";else if("multiple"===s){V0(a.selectedMap)||(a.selectedMap={});for(var p=a.selectedMap,d=0;d0&&this._innerSelect(e,o)}},t.registerClass=function(e){return $o.registerClass(e)},t.protoInitialize=((e=t.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",void(e.visualDrawType="fill")),t;var e}($o);function Aj(n){var t=n.name;kT(n)||(n.name=function Gfe(n){var t=n.getRawData(),e=t.mapDimensionsAll("seriesName"),o=[];return We(e,function(r){var i=t.getDimensionInfo(r);i.displayName&&o.push(i.displayName)}),o.join(" ")}(n)||t)}function Zfe(n){return n.model.getRawData().count()}function Kfe(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),Jfe}function Jfe(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function yj(n,t){We(function spe(n,t){for(var e=new n.constructor(n.length+t.length),o=0;o1&&(a*=RR(g),s*=RR(g));var v=(r===i?-1:1)*RR((a*a*(s*s)-a*a*(M*M)-s*s*(h*h))/(a*a*(M*M)+s*s*(h*h)))||0,A=v*a*M/s,y=v*-s*h/a,q=(n+e)/2+r5(u)*A-o5(u)*y,L=(t+o)/2+o5(u)*A+r5(u)*y,D=qj([1,0],[(h-A)/a,(M-y)/s]),X=[(h-A)/a,(M-y)/s],H=[(-1*h-A)/a,(-1*M-y)/s],re=qj(X,H);if(SR(X,H)<=-1&&(re=Y_),SR(X,H)>=1&&(re=0),re<0){var ee=Math.round(re/Y_*1e6)/1e6;re=2*Y_+ee%2*Y_}d.addData(p,q,L,a,s,D,re,u,i)}var ahe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,she=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Lj=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ao(t,n),t.prototype.applyTransform=function(e){},t}(Po);function Tj(n){return null!=n.setData}function Rj(n,t){var e=function che(n){var t=new B2;if(!n)return t;var a,e=0,o=0,r=e,i=o,s=B2.CMD,c=n.match(ahe);if(!c)return t;for(var p=0;p=0&&(r.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,o){var r=zo(this._children,e);return r>=0&&this.replaceAt(o,r),this},t.prototype.replaceAt=function(e,o){var r=this._children,i=r[o];if(e&&e!==this&&e.parent!==this&&e!==i){r[o]=e,i.parent=null;var a=this.__zr;a&&i.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var o=this.__zr;o&&o!==e.__zr&&e.addSelfToZr(o),o&&o.refresh()},t.prototype.remove=function(e){var o=this.__zr,r=this._children,i=zo(r,e);return i<0||(r.splice(i,1),e.parent=null,o&&e.removeSelfFromZr(o),o&&o.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,o=this.__zr,r=0;rVe*Ve+st*st&&(ee=he,le=Me),{cx:ee,cy:le,x0:-d,y0:-u,x1:ee*(r/X-1),y1:le*(r/X-1)}}var ghe=function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Nj=function(n){function t(e){return n.call(this,e)||this}return Ao(t,n),t.prototype.getDefaultShape=function(){return new ghe},t.prototype.buildPath=function(e,o){!function bhe(n,t){var e,o=X_(t.r,0),r=X_(t.r0||0,0),i=o>0;if(i||r>0){if(i||(o=r,r=0),r>o){var s=o;o=r,r=s}var c=t.startAngle,p=t.endAngle;if(!isNaN(c)&&!isNaN(p)){var d=t.cx,u=t.cy,h=!!t.clockwise,M=Ij(p-c),g=M>DR&&M%DR;if(g>tp&&(M=g),o>tp)if(M>DR-tp)n.moveTo(d+o*eO(c),u+o*Vh(c)),n.arc(d,u,o,c,p,!h),r>tp&&(n.moveTo(d+r*eO(p),u+r*Vh(p)),n.arc(d,u,r,p,c,h));else{var v=void 0,A=void 0,y=void 0,q=void 0,L=void 0,D=void 0,X=void 0,H=void 0,re=void 0,ee=void 0,le=void 0,he=void 0,Me=void 0,me=void 0,xe=void 0,Ve=void 0,st=o*eO(c),rt=o*Vh(c),Ut=r*eO(p),qe=r*Vh(p),ke=M>tp;if(ke){var Ze=t.cornerRadius;Ze&&(e=function Mhe(n){var t;if(f0(n)){var e=n.length;if(!e)return n;t=1===e?[n[0],n[0],0,0]:2===e?[n[0],n[0],n[1],n[1]]:3===e?n.concat(n[2]):n}else t=[n,n,n,n];return t}(Ze),v=e[0],A=e[1],y=e[2],q=e[3]);var vt=Ij(o-r)/2;if(L=md(vt,y),D=md(vt,q),X=md(vt,v),H=md(vt,A),le=re=X_(L,D),he=ee=X_(X,H),(re>tp||ee>tp)&&(Me=o*eO(p),me=o*Vh(p),xe=r*eO(c),Ve=r*Vh(c),Mtp){var ro=md(y,le),sn=md(q,le),W0=i5(xe,Ve,st,rt,o,ro,h),$0=i5(Me,me,Ut,qe,o,sn,h);n.moveTo(d+W0.cx+W0.x0,u+W0.cy+W0.y0),le0&&n.arc(d+W0.cx,u+W0.cy,ro,Aa(W0.y0,W0.x0),Aa(W0.y1,W0.x1),!h),n.arc(d,u,o,Aa(W0.cy+W0.y1,W0.cx+W0.x1),Aa($0.cy+$0.y1,$0.cx+$0.x1),!h),sn>0&&n.arc(d+$0.cx,u+$0.cy,sn,Aa($0.y1,$0.x1),Aa($0.y0,$0.x0),!h))}else n.moveTo(d+st,u+rt),n.arc(d,u,o,c,p,!h);else n.moveTo(d+st,u+rt);r>tp&&ke?he>tp?(ro=md(v,he),W0=i5(Ut,qe,Me,me,r,-(sn=md(A,he)),h),$0=i5(st,rt,xe,Ve,r,-ro,h),n.lineTo(d+W0.cx+W0.x0,u+W0.cy+W0.y0),he0&&n.arc(d+W0.cx,u+W0.cy,sn,Aa(W0.y0,W0.x0),Aa(W0.y1,W0.x1),!h),n.arc(d,u,r,Aa(W0.cy+W0.y1,W0.cx+W0.x1),Aa($0.cy+$0.y1,$0.cx+$0.x1),h),ro>0&&n.arc(d+$0.cx,u+$0.cy,ro,Aa($0.y1,$0.x1),Aa($0.y0,$0.x0),!h))):(n.lineTo(d+Ut,u+qe),n.arc(d,u,r,p,c,h)):n.lineTo(d+Ut,u+qe)}else n.moveTo(d,u);n.closePath()}}}(e,o)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Po);Nj.prototype.type="sector";const j_=Nj;var Ohe=function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Bj=function(n){function t(e){return n.call(this,e)||this}return Ao(t,n),t.prototype.getDefaultShape=function(){return new Ohe},t.prototype.buildPath=function(e,o){var r=o.cx,i=o.cy,a=2*Math.PI;e.moveTo(r+o.r,i),e.arc(r,i,o.r,0,a,!1),e.moveTo(r+o.r0,i),e.arc(r,i,o.r0,0,a,!0)},t}(Po);Bj.prototype.type="ring";const Fj=Bj;function Yj(n,t,e){var o=t.smooth,r=t.points;if(r&&r.length>=2){if(o){var i=function mhe(n,t,e,o){var c,p,d,u,r=[],i=[],a=[],s=[];if(o){d=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,M=n.length;hGh[1]){if(s=!1,i)return s;var d=Math.abs(Gh[0]-$h[1]),u=Math.abs($h[0]-Gh[1]);Math.min(d,u)>r.len()&&g1.scale(r,p,d0){var g={duration:d.duration,delay:d.delay||0,easing:d.easing,done:i,force:!!i||!!a,setToFinal:!p,scope:n,during:a};s?t.animateFrom(e,g):t.animateTo(e,g)}else t.stopAnimation(),!s&&t.attr(e),a&&a(1),i&&i()}function _d(n,t,e,o,r,i){ER("update",n,t,e,o,r,i)}function U2(n,t,e,o,r,i){ER("enter",n,t,e,o,r,i)}function U_(n){if(!n.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function iU(n){return!n.isGroup}function aU(n,t,e){if(n&&t){var i=function o(a){var s={};return a.traverse(function(c){iU(c)&&c.anid&&(s[c.anid]=c)}),s}(n);t.traverse(function(a){if(iU(a)&&a.anid){var s=i[a.anid];if(s){var c=r(a);a.attr(r(s)),_d(a,c,e,Do(a).dataIndex)}}})}function r(a){var s={x:a.x,y:a.y,rotation:a.rotation};return function Xhe(n){return null!=n.shape}(a)&&(s.shape=Xt({},a.shape)),s}}function jhe(n,t){return e1(n,function(e){var o=e[0];o=d5(o,t.x),o=u5(o,t.x+t.width);var r=e[1];return r=d5(r,t.y),[o,r=u5(r,t.y+t.height)]})}function Uhe(n,t){var e=d5(n.x,t.x),o=u5(n.x+n.width,t.x+t.width),r=d5(n.y,t.y),i=u5(n.y+n.height,t.y+t.height);if(o>=e&&i>=r)return{x:e,y:r,width:o-e,height:i-r}}function FR(n,t,e){var o=Xt({rectHover:!0},t),r=o.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return 0===n.indexOf("image://")?(r.image=n.slice(8),Qn(r,e),new Sh(o)):NR(n.replace("path://",""),o,e,"center")}function Vhe(n,t,e,o,r){for(var i=0,a=r[r.length-1];i=-1e-6}(h))return!1;var M=n-r,g=t-i,v=YR(M,g,c,p)/h;if(v<0||v>1)return!1;var A=YR(M,g,d,u)/h;return!(A<0||A>1)}function YR(n,t,e,o){return n*o-e*t}function HR(n){var t=n.itemTooltipOption,e=n.componentModel,o=n.itemName,r=S0(t)?{formatter:t}:t,i=e.mainType,a=e.componentIndex,s={componentType:i,name:o,$vars:["name"]};s[i+"Index"]=a;var c=n.formatterParamsExtra;c&&We(Uo(c),function(d){xg(s,d)||(s[d]=c[d],s.$vars.push(d))});var p=Do(n.el);p.componentMainType=i,p.componentIndex=a,p.tooltipConfig={name:o,option:Qn({content:o,formatterParams:s},r)}}function cU(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function XR(n,t){if(n)if(f0(n))for(var e=0;e-1&&(p.style.stroke=p.style.fill,p.style.fill="#fff",p.style.lineWidth=2),o},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Jg);const iMe=rMe;function pU(n,t){var e=n.mapDimensionsAll("defaultedLabel"),o=e.length;if(1===o){var r=jg(n,t,e[0]);return null!=r?r+"":null}if(o){for(var i=[],a=0;a0?+A:1;xe.scaleX=this._sizeX*Ve,xe.scaleY=this._sizeY*Ve,this.setSymbolScale(1),LC(this,h,M,g)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,o,r){var i=this.childAt(0),a=Do(this).dataIndex,s=r&&r.animation;if(this.silent=i.silent=!0,r&&r.fadeLabel){var c=i.getTextContent();c&&p5(c,{style:{opacity:0}},o,{dataIndex:a,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();p5(i,{style:{opacity:0},scaleX:0,scaleY:0},o,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,o){return function oMe(n){return f0(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}(e.getItemVisual(o,"symbolSize"))},t}(as);function cMe(n,t){this.parent.drift(n,t)}const UR=sMe;function VR(n,t,e,o){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(o.isIgnore&&o.isIgnore(e))&&!(o.clipShape&&!o.clipShape.contain(t[0],t[1]))&&"none"!==n.getItemVisual(e,"symbol")}function dU(n){return null!=n&&!V0(n)&&(n={isIgnore:n}),n||{}}function uU(n){var t=n.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:SC(t),cursorStyle:t.get("cursor")}}var lMe=function(){function n(t){this.group=new as,this._SymbolCtor=t||UR}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=dU(e);var o=this.group,r=t.hostModel,i=this._data,a=this._SymbolCtor,s=e.disableAnimation,c=uU(t),p={disableAnimation:s},d=e.getSymbolPoint||function(u){return t.getItemLayout(u)};i||o.removeAll(),t.diff(i).add(function(u){var h=d(u);if(VR(t,h,u,e)){var M=new a(t,u,c,p);M.setPosition(h),t.setItemGraphicEl(u,M),o.add(M)}}).update(function(u,h){var M=i.getItemGraphicEl(h),g=d(u);if(VR(t,g,u,e)){var v=t.getItemVisual(u,"symbol")||"circle",A=M&&M.getSymbolType&&M.getSymbolType();if(!M||A&&A!==v)o.remove(M),(M=new a(t,u,c,p)).setPosition(g);else{M.updateData(t,u,c,p);var y={x:g[0],y:g[1]};s?M.attr(y):_d(M,y,r)}o.add(M),t.setItemGraphicEl(u,M)}else o.remove(M)}).remove(function(u){var h=i.getItemGraphicEl(u);h&&h.fadeOut(function(){o.remove(h)},r)}).execute(),this._getSymbolPoint=d,this._data=t},n.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(o,r){var i=t._getSymbolPoint(r);o.setPosition(i),o.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=uU(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,o){function r(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=dU(o);for(var i=t.start;i0?e=o[0]:o[1]<0&&(e=o[1]),e}(r,e),a=o.dim,s=r.dim,c=t.mapDimension(s),p=t.mapDimension(a),d="x"===s||"radius"===s?1:0,u=e1(n.dimensions,function(g){return t.mapDimension(g)}),h=!1,M=t.getCalculationInfo("stackResultDimension");return R_(t,u[0])&&(h=!0,u[0]=M),R_(t,u[1])&&(h=!0,u[1]=M),{dataDimsForPoint:u,valueStart:i,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:c,baseDim:p,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function hU(n,t,e,o){var r=NaN;n.stacked&&(r=e.get(e.getCalculationInfo("stackedOverDimension"),o)),isNaN(r)&&(r=n.valueStart);var i=n.baseDataOffset,a=[];return a[i]=e.get(n.baseDim,o),a[1-i]=r,t.dataToPoint(a)}var MU=typeof Float32Array<"u",uMe=MU?Float32Array:Array;function nO(n){return f0(n)?MU?new Float32Array(n):n:new uMe(n)}var V2=Math.min,$2=Math.max;function Zh(n,t){return isNaN(n)||isNaN(t)}function $R(n,t,e,o,r,i,a,s,c){for(var p,d,u,h,M,g,v=e,A=0;A=r||v<0)break;if(Zh(y,q)){if(c){v+=i;continue}break}if(v===e)n[i>0?"moveTo":"lineTo"](y,q),u=y,h=q;else{var L=y-p,D=q-d;if(L*L+D*D<.5){v+=i;continue}if(a>0){for(var X=v+i,H=t[2*X],re=t[2*X+1];H===y&&re===q&&A=o||Zh(H,re))M=y,g=q;else{he=H-p,Me=re-d;var Ve=y-p,st=H-y,rt=q-d,Ut=re-q,qe=void 0,ke=void 0;if("x"===s){var Ze=he>0?1:-1;M=y-Ze*(qe=Math.abs(Ve))*a,g=q,me=y+Ze*(ke=Math.abs(st))*a,xe=q}else if("y"===s){var vt=Me>0?1:-1;M=y,g=q-vt*(qe=Math.abs(rt))*a,me=y,xe=q+vt*(ke=Math.abs(Ut))*a}else qe=Math.sqrt(Ve*Ve+rt*rt),M=y-he*a*(1-(le=(ke=Math.sqrt(st*st+Ut*Ut))/(ke+qe))),g=q-Me*a*(1-le),xe=q+Me*a*le,me=V2(me=y+he*a*le,$2(H,y)),xe=V2(xe,$2(re,q)),me=$2(me,V2(H,y)),g=q-(Me=(xe=$2(xe,V2(re,q)))-q)*qe/ke,M=V2(M=y-(he=me-y)*qe/ke,$2(p,y)),g=V2(g,$2(d,q)),me=y+(he=y-(M=$2(M,V2(p,y))))*ke/qe,xe=q+(Me=q-(g=$2(g,V2(d,q))))*ke/qe}n.bezierCurveTo(u,h,M,g,y,q),u=me,h=xe}else n.lineTo(y,q)}p=y,d=q,v+=i}return A}var bU=function n(){this.smooth=0,this.smoothConstraint=!0},MMe=function(n){function t(e){var o=n.call(this,e)||this;return o.type="ec-polyline",o}return R1(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bU},t.prototype.buildPath=function(e,o){var r=o.points,i=0,a=r.length/2;if(o.connectNulls){for(;a>0&&Zh(r[2*a-2],r[2*a-1]);a--);for(;i=0){var D=p?(g-c)*L+c:(M-s)*L+s;return p?[e,D]:[D,e]}s=M,c=g;break;case a.C:M=i[u++],g=i[u++],v=i[u++],A=i[u++],y=i[u++],q=i[u++];var X=p?rC(s,M,v,y,e,d):rC(c,g,A,q,e,d);if(X>0)for(var H=0;H=0)return D=p?Mi(c,g,A,q,re):Mi(s,M,v,y,re),p?[e,D]:[D,e]}s=y,c=q}}},t}(Po),bMe=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return R1(t,n),t}(bU),gMe=function(n){function t(e){var o=n.call(this,e)||this;return o.type="ec-polygon",o}return R1(t,n),t.prototype.getDefaultShape=function(){return new bMe},t.prototype.buildPath=function(e,o){var r=o.points,i=o.stackedOnPoints,a=0,s=r.length/2,c=o.smoothMonotone;if(o.connectNulls){for(;s>0&&Zh(r[2*s-2],r[2*s-1]);s--);for(;ao)return!1;return!0}(i,t))){var a=t.mapDimension(i.dim),s={};return We(i.getViewLabels(),function(c){var p=i.scale.getRawOrdinalNumber(c.tickValue);s[p]=1}),function(c){return!s.hasOwnProperty(t.get(a,c))}}}}(e,c,a),he=this._data;he&&he.eachItemGraphicEl(function(p1,En){p1.__temp&&(s.remove(p1),he.setItemGraphicEl(En,null))}),re||g.remove(),s.add(y);var me,Me=!h&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&(null!=(me=a.getArea()).width?(me.x-=.1,me.y-=.1,me.width+=.2,me.height+=.2):me.r0&&(me.r0-=.5,me.r+=.5)),this._clipShapeForSymbol=me;var xe=function CMe(n,t,e){var o=n.getVisual("visualMeta");if(o&&o.length&&n.count()&&"cartesian2d"===t.type){for(var r,i,a=o.length-1;a>=0;a--){var s=n.getDimensionInfo(o[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){i=o[a];break}}if(i){var c=t.getAxis(r),p=e1(i.stops,function(L){return{coord:c.toGlobalCoord(c.dataToCoord(L.value)),color:L.color}}),d=p.length,u=i.outerColors.slice();d&&p[0].coord>p[d-1].coord&&(p.reverse(),u.reverse());var h=function yMe(n,t){var r,i,e=[],o=n.length;function a(d,u,h){var M=d.coord,v=function rde(n,t,e){if(t&&t.length&&n>=0&&n<=1){var o=n*(t.length-1),r=Math.floor(o),i=Math.ceil(o),a=Kc(t[r]),s=Kc(t[i]),c=o-r,p=Ch([Kl(E2(a[0],s[0],c)),Kl(E2(a[1],s[1],c)),Kl(E2(a[2],s[2],c)),h_(E2(a[3],s[3],c))],"rgba");return e?{color:p,leftIndex:r,rightIndex:i,value:o}:p}}((h-M)/(u.coord-M),[d.color,u.color]);return{coord:h,color:v}}for(var s=0;st){i?e.push(a(i,c,t)):r&&e.push(a(r,c,0),a(r,c,t));break}r&&(e.push(a(r,c,0)),r=null),e.push(c),i=c}}return e}(p,"x"===r?e.getWidth():e.getHeight()),M=h.length;if(!M&&d)return p[0].coord<0?u[1]?u[1]:p[d-1].color:u[0]?u[0]:p[0].color;var v=h[0].coord-10,A=h[M-1].coord+10,y=A-v;if(y<.001)return"transparent";We(h,function(L){L.offset=(L.coord-v)/y}),h.push({offset:M?h[M-1].offset:.5,color:u[1]||"transparent"}),h.unshift({offset:M?h[0].offset:.5,color:u[0]||"transparent"});var q=new Kj(0,0,0,0,h,!0);return q[r]=v,q[r+"2"]=A,q}}}(c,a,r)||c.getVisual("style")[c.getVisual("drawType")];if(v&&M.type===a.type&&Me===this._step){L&&!A?A=this._newPolygon(u,H):A&&!L&&(y.remove(A),A=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Hh(xe));var Ve=y.getClipPath();Ve?U2(Ve,{shape:ZR(this,a,!1,e).shape},e):y.setClipPath(ZR(this,a,!0,e)),re&&g.updateData(c,{isIgnore:le,clipShape:me,disableAnimation:!0,getSymbolPoint:function(p1){return[u[2*p1],u[2*p1+1]]}}),(!AU(this._stackedOnPoints,H)||!AU(this._points,u))&&(q?this._doUpdateAnimation(c,H,a,r,Me,D,ee):(Me&&(u=G2(u,a,Me,ee),H&&(H=G2(H,a,Me,ee))),v.setShape({points:u}),A&&A.setShape({points:u,stackedOnPoints:H})))}else re&&g.updateData(c,{isIgnore:le,clipShape:me,disableAnimation:!0,getSymbolPoint:function(p1){return[u[2*p1],u[2*p1+1]]}}),q&&this._initSymbolLabelAnimation(c,a,me),Me&&(u=G2(u,a,Me,ee),H&&(H=G2(H,a,Me,ee))),v=this._newPolyline(u),L?A=this._newPolygon(u,H):A&&(y.remove(A),A=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Hh(xe)),y.setClipPath(ZR(this,a,!0,e));var rt=e.getModel("emphasis"),Ut=rt.get("focus"),qe=rt.get("blurScope"),ke=rt.get("disabled");v.useStyle(Qn(p.getLineStyle(),{fill:"none",stroke:xe,lineJoin:"bevel"})),VT(v,e,"lineStyle"),v.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(v.getState("emphasis").style.lineWidth=+v.style.lineWidth+1),Do(v).seriesIndex=e.seriesIndex,LC(v,Ut,qe,ke);var vt=wU(e.get("smooth")),Mt=e.get("smoothMonotone");if(v.setShape({smooth:vt,smoothMonotone:Mt,connectNulls:ee}),A){var kt=c.getCalculationInfo("stackedOnSeries"),Gt=0;A.useStyle(Qn(d.getAreaStyle(),{fill:xe,opacity:.7,lineJoin:"bevel",decal:c.getVisual("style").decal})),kt&&(Gt=wU(kt.get("smooth"))),A.setShape({smooth:vt,stackedOnSmooth:Gt,smoothMonotone:Mt,connectNulls:ee}),VT(A,e,"areaStyle"),Do(A).seriesIndex=e.seriesIndex,LC(A,Ut,qe,ke)}var I0=function(p1){i._changePolyState(p1)};c.eachItemGraphicEl(function(p1){p1&&(p1.onHoverStateChange=I0)}),this._polyline.onHoverStateChange=I0,this._data=c,this._coordSys=a,this._stackedOnPoints=H,this._points=u,this._step=Me,this._valueOrigin=D,e.get("triggerLineEvent")&&(this.packEventData(e,v),A&&this.packEventData(e,A))},t.prototype.packEventData=function(e,o){Do(o).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,o,r,i){var a=e.getData(),s=kh(a,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&null!=s&&s>=0){var c=a.getLayout("points"),p=a.getItemGraphicEl(s);if(!p){var d=c[2*s],u=c[2*s+1];if(isNaN(d)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,u))return;var h=e.get("zlevel")||0,M=e.get("z")||0;(p=new UR(a,s)).x=d,p.y=u,p.setZ(h,M);var g=p.getSymbolPath().getTextContent();g&&(g.zlevel=h,g.z=M,g.z2=this._polyline.z2+1),p.__temp=!0,a.setItemGraphicEl(s,p),p.stopSymbolAnimation(!0),this.group.add(p)}p.highlight()}else Cu.prototype.highlight.call(this,e,o,r,i)},t.prototype.downplay=function(e,o,r,i){var a=e.getData(),s=kh(a,i);if(this._changePolyState("normal"),null!=s&&s>=0){var c=a.getItemGraphicEl(s);c&&(c.__temp?(a.setItemGraphicEl(s,null),this.group.remove(c)):c.downplay())}else Cu.prototype.downplay.call(this,e,o,r,i)},t.prototype._changePolyState=function(e){var o=this._polygon;jH(this._polyline,e),o&&jH(o,e)},t.prototype._newPolyline=function(e){var o=this._polyline;return o&&this._lineGroup.remove(o),o=new MMe({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(o),this._polyline=o,o},t.prototype._newPolygon=function(e,o){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new gMe({shape:{points:e,stackedOnPoints:o},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,o,r){var i,a,s=o.getBaseAxis(),c=s.inverse;"cartesian2d"===o.type?(i=s.isHorizontal(),a=!1):"polar"===o.type&&(i="angle"===s.dim,a=!0);var p=e.hostModel,d=p.get("animationDuration");S1(d)&&(d=d(null));var u=p.get("animationDelay")||0,h=S1(u)?u(null):u;e.eachItemGraphicEl(function(M,g){var v=M;if(v){var y=void 0,q=void 0,L=void 0;if(r)if(a){var D=r,X=o.pointToCoord([M.x,M.y]);i?(y=D.startAngle,q=D.endAngle,L=-X[1]/180*Math.PI):(y=D.r0,q=D.r,L=X[0])}else i?(y=r.x,q=r.x+r.width,L=M.x):(y=r.y+r.height,q=r.y,L=M.y);var re=q===y?0:(L-y)/(q-y);c&&(re=1-re);var ee=S1(u)?u(g):d*re+h,le=v.getSymbolPath(),he=le.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:ee}),he&&he.animateFrom({style:{opacity:0}},{duration:300,delay:ee}),le.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,o,r){var i=e.getModel("endLabel");if(xU(e)){var a=e.getData(),s=this._polyline,c=a.getLayout("points");if(!c)return s.removeTextContent(),void(this._endLabel=null);var p=this._endLabel;p||((p=this._endLabel=new _a({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var d=function qMe(n){for(var t=n.length/2;t>0&&xMe(n[2*t-2],n[2*t-1]);t--);return t-1}(c);d>=0&&(RC(s,SC(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:d,defaultText:function(u,h,M){return null!=M?function aMe(n,t){var e=n.mapDimensionsAll("defaultedLabel");if(!f0(t))return t+"";for(var o=[],r=0;r=0&&o.push(t[i])}return o.join(" ")}(a,M):pU(a,u)},enableTextSetter:!0},function LMe(n,t){var e=t.getBaseAxis(),o=e.isHorizontal(),r=e.inverse,i=o?r?"right":"left":"center",a=o?"middle":r?"top":"bottom";return{normal:{align:n.get("align")||i,verticalAlign:n.get("verticalAlign")||a}}}(i,o)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,o,r,i,a,s,c){var p=this._endLabel,d=this._polyline;if(p){e<1&&null==i.originalX&&(i.originalX=p.x,i.originalY=p.y);var u=r.getLayout("points"),h=r.hostModel,M=h.get("connectNulls"),g=s.get("precision"),v=s.get("distance")||0,A=c.getBaseAxis(),y=A.isHorizontal(),q=A.inverse,L=o.shape,D=q?y?L.x:L.y+L.height:y?L.x+L.width:L.y,X=(y?v:0)*(q?-1:1),H=(y?0:-v)*(q?-1:1),re=y?"x":"y",ee=function WMe(n,t,e){for(var i,a,o=n.length/2,r="x"===e?0:1,s=0,c=-1,p=0;p=t||i>=t&&a<=t){c=p;break}s=p,i=a}return{range:[s,c],t:(t-i)/(a-i)}}(u,D,re),le=ee.range,he=le[1]-le[0],Me=void 0;if(he>=1){if(he>1&&!M){var me=PU(u,le[0]);p.attr({x:me[0]+X,y:me[1]+H}),a&&(Me=h.getRawValue(le[0]))}else{(me=d.getPointOn(D,re))&&p.attr({x:me[0]+X,y:me[1]+H});var xe=h.getRawValue(le[0]),Ve=h.getRawValue(le[1]);a&&(Me=function Aue(n,t,e,o,r){var i=null==t||"auto"===t;if(null==o)return o;if(vo(o))return Kr(a=WH(e||0,o,r),i?Math.max(_u(e||0),_u(o)):t);if(S0(o))return r<1?e:o;for(var s=[],c=e,p=o,d=Math.max(c?c.length:0,p.length),u=0;u0?le[0]:0;me=PU(u,st),a&&(Me=h.getRawValue(st)),p.attr({x:me[0]+X,y:me[1]+H})}a&&DC(p).setLabelText(Me)}},t.prototype._doUpdateAnimation=function(e,o,r,i,a,s,c){var p=this._polyline,d=this._polygon,u=e.hostModel,h=function hMe(n,t,e,o,r,i,a,s){for(var c=function fMe(n,t){var e=[];return t.diff(n).add(function(o){e.push({cmd:"+",idx:o})}).update(function(o,r){e.push({cmd:"=",idx:r,idx1:o})}).remove(function(o){e.push({cmd:"-",idx:o})}).execute(),e}(n,t),p=[],d=[],u=[],h=[],M=[],g=[],v=[],A=fU(r,t,a),y=n.getLayout("points")||[],q=t.getLayout("points")||[],L=0;L3e3||d&&CU(g,A)>3e3)return p.stopAnimation(),p.setShape({points:v}),void(d&&(d.stopAnimation(),d.setShape({points:v,stackedOnPoints:A})));p.shape.__points=h.current,p.shape.points=M;var y={shape:{points:v}};h.current!==M&&(y.shape.__points=h.next),p.stopAnimation(),_d(p,y,u),d&&(d.setShape({points:M,stackedOnPoints:g}),d.stopAnimation(),_d(d,{shape:{stackedOnPoints:A}},u),p.shape.points!==d.shape.points&&(d.shape.points=p.shape.points));for(var q=[],L=h.status,D=0;Dt&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;e10&&"cartesian2d"===a.type&&i){var c=a.getBaseAxis(),p=a.getOtherAxis(c),d=c.getExtent(),u=o.getDevicePixelRatio(),h=Math.abs(d[1]-d[0])*(u||1),M=Math.round(s/h);if(isFinite(M)&&M>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(p.dim),1/M));var g=void 0;S0(i)?g=DMe[i]:S1(i)&&(g=i),g&&t.setData(r.downSample(r.mapDimension(p.dim),1/M,g,kMe))}}}}}("line"))}function KR(n,t){return"all"===n||f0(n)&&zo(n,t)>=0||n===t}function JR(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[$_(n)]}function QR(n){return!!n.get(["handle","show"])}function $_(n){return n.type+"||"+n.id}var eS=function(){function n(){this.group=new as,this.uid=YC("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,o,r){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,o,r){},n.prototype.updateLayout=function(t,e,o,r){},n.prototype.updateVisual=function(t,e,o,r){},n.prototype.toggleBlurSeries=function(t,e,o){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n}();NL(eS),G4(eS);const wu=eS;var qU={},jMe=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return R1(t,n),t.prototype.render=function(e,o,r,i){this.axisPointerClass&&function HMe(n){var t=JR(n);if(t){var e=t.axisPointerModel,o=t.axis.scale,r=e.option,i=e.get("status"),a=e.get("value");null!=a&&(a=o.parse(a));var s=QR(e);null==i&&(r.status=s?"show":"hide");var c=o.getExtent().slice();c[0]>c[1]&&c.reverse(),(null==a||a>c[1])&&(a=c[1]),a=0){var a="touchend"!==o?t.targetTouches[0]:t.changedTouches[0];a&&nS(n,a,t,e)}else{nS(n,t,t,e);var i=function $Me(n){var t=n.wheelDelta;if(t)return t;var e=n.deltaX,o=n.deltaY;return null==e||null==o?t:3*Math.abs(0!==o?o:e)*(o>0?-1:o<0?1:e>0?-1:1)}(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&UMe.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function ZMe(n,t,e,o){n.removeEventListener(t,e,o)}var TU=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0},h5="\0__throttleOriginMethod",RU="\0__throttleRate",SU="\0__throttleType";function DU(n,t,e){var o,s,c,p,d,r=0,i=0,a=null;function u(){i=(new Date).getTime(),a=null,n.apply(c,p||[])}t=t||0;var h=function(){for(var M=[],g=0;g=0?u():a=setTimeout(u,-s),r=o};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(M){d=M},h}function kU(n,t,e,o){var r=n[t];if(r){var i=r[h5]||r;if(r[RU]!==e||r[SU]!==o){if(null==e||!o)return n[t]=i;(r=n[t]=DU(i,e,"debounce"===o))[h5]=i,r[SU]=o,r[RU]=e}return r}}function rS(n,t){var e=n[t];e&&e[h5]&&(e.clear&&e.clear(),n[t]=e[h5])}var Kh=Jr(),EU=Dn,iS=Bo,KMe=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,o,r){var i=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=o,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var s=this._group,c=this._handle;if(!a||"hide"===a)return s&&s.hide(),void(c&&c.hide());s&&s.show(),c&&c.show();var p={};this.makeElOption(p,i,t,e,o);var d=p.graphicKey;d!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=d;var u=this._moveAnimation=this.determineAnimation(t,e);if(s){var h=Zr(IU,e,u);this.updatePointerEl(s,p,h),this.updateLabelEl(s,p,h,e)}else s=this._group=new as,this.createPointerEl(s,p,t,e),this.createLabelEl(s,p,t,e),o.getZr().add(s);FU(s,e,!0),this._renderHandle(i)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var o=e.get("animation"),r=t.axis,i="category"===r.type,a=e.get("snap");if(!a&&!i)return!1;if("auto"===o||null==o){var s=this.animationThreshold;if(i&&r.getBandWidth()>s)return!0;if(a){var c=JR(t).seriesDataCount,p=r.getExtent();return Math.abs(p[0]-p[1])/c>s}return!1}return!0===o},n.prototype.makeElOption=function(t,e,o,r,i){},n.prototype.createPointerEl=function(t,e,o,r){var i=e.pointer;if(i){var a=Kh(t).pointerEl=new N[i.type](EU(e.pointer));t.add(a)}},n.prototype.createLabelEl=function(t,e,o,r){if(e.label){var i=Kh(t).labelEl=new _a(EU(e.label));t.add(i),BU(i,r)}},n.prototype.updatePointerEl=function(t,e,o){var r=Kh(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),o(r,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,o,r){var i=Kh(t).labelEl;i&&(i.setStyle(e.label.style),o(i,{x:e.label.x,y:e.label.y}),BU(i,r))},n.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var s,e=this._axisPointerModel,o=this._api.getZr(),r=this._handle,i=e.getModel("handle"),a=e.get("status");if(!i.get("show")||!a||"hide"===a)return r&&o.remove(r),void(this._handle=null);this._handle||(s=!0,r=this._handle=FR(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(p){TU(p.event)},onmousedown:iS(this._onHandleDragMove,this,0,0),drift:iS(this._onHandleDragMove,this),ondragend:iS(this._onHandleDragEnd,this)}),o.add(r)),FU(r,e,!1),r.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=i.get("size");f0(c)||(c=[c,c]),r.scaleX=c[0]/2,r.scaleY=c[1]/2,kU(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},n.prototype._moveHandleToValue=function(t,e){IU(this._axisPointerModel,!e&&this._moveAnimation,this._handle,aS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var o=this._handle;if(o){this._dragging=!0;var r=this.updateHandleTransform(aS(o),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,o.stopAnimation(),o.attr(aS(r)),Kh(o).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,o=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:o.axis.dim,axisIndex:o.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),o=this._group,r=this._handle;e&&o&&(this._lastGraphicKey=null,o&&e.remove(o),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),rS(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,o){return{x:t[o=o||0],y:t[1-o],width:e[o],height:e[1-o]}},n}();function IU(n,t,e,o){NU(Kh(e).lastProp,o)||(Kh(e).lastProp=o,t?_d(e,o,n):(e.stopAnimation(),e.attr(o)))}function NU(n,t){if(V0(n)&&V0(t)){var e=!0;return We(t,function(o,r){e=e&&NU(n[r],o)}),!!e}return n===t}function BU(n,t){n[t.get(["label","show"])?"show":"hide"]()}function aS(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function FU(n,t,e){var o=t.get("z"),r=t.get("zlevel");n&&n.traverse(function(i){"group"!==i.type&&(null!=o&&(i.z=o),null!=r&&(i.zlevel=r),i.silent=e)})}const JMe=KMe;var YU=function(){function n(t){this._setting=t||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(t){return this._setting[t]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var o=this._extent;isNaN(t)||(o[0]=t),isNaN(e)||(o[1]=e)},n.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n}();G4(YU);const Pu=YU;var QMe=0,ebe=function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++QMe}return n.createByAxisModel=function(t){var e=t.option,o=e.data,r=o&&e1(o,tbe);return new n({categories:r,needCollect:!r,deduplication:!1!==e.dedplication})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,o=this._needCollect;if(!S0(t)&&!o)return t;if(o&&!this._deduplication)return this.categories[e=this.categories.length]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(o?(this.categories[e=this.categories.length]=t,r.set(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=X1(this.categories))},n}();function tbe(n){return V0(n)&&null!=n.value?n.value:n+""}const sS=ebe;function cS(n){return"interval"===n.type||"log"===n.type}function lS(n){var t=Math.pow(10,ST(n)),e=n/t;return e?2===e?e=3:3===e?e=5:e*=2:e=1,Kr(e*t)}function HU(n){return _u(n)+2}function XU(n,t,e){n[t]=Math.max(Math.min(n[t],e[1]),e[0])}function M5(n,t){return n>=t[0]&&n<=t[1]}function b5(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function g5(n,t){return n*(t[1]-t[0])+t[0]}var jU=function(n){function t(e){var o=n.call(this,e)||this;o.type="ordinal";var r=o.getSetting("ordinalMeta");return r||(r=new sS({})),f0(r)&&(r=new sS({categories:e1(r,function(i){return V0(i)?i.value:i})})),o._ordinalMeta=r,o._extent=o.getSetting("extent")||[0,r.categories.length-1],o}return R1(t,n),t.prototype.parse=function(e){return null==e?NaN:S0(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return M5(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return b5(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(g5(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],o=this._extent,r=o[0];r<=o[1];)e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var o=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,c=Math.min(s,o.length);a=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Pu);Pu.registerClass(jU);const UU=jU;var Jh=Kr,VU=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return R1(t,n),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return M5(e,this._extent)},t.prototype.normalize=function(e){return b5(e,this._extent)},t.prototype.scale=function(e){return g5(e,this._extent)},t.prototype.setExtent=function(e,o){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(o)||(r[1]=parseFloat(o))},t.prototype.unionExtent=function(e){var o=this._extent;e[0]o[1]&&(o[1]=e[1]),this.setExtent(o[0],o[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=HU(e)},t.prototype.getTicks=function(e){var o=this._interval,r=this._extent,i=this._niceExtent,a=this._intervalPrecision,s=[];if(!o)return s;r[0]1e4)return[];var d=s.length?s[s.length-1].value:i[1];return r[1]>d&&s.push(e?{value:Jh(d+o,a)}:{value:r[1]}),s},t.prototype.getMinorTicks=function(e){for(var o=this.getTicks(!0),r=[],i=this.getExtent(),a=1;ai[0]&&Mo&&(a=r.interval=o);var s=r.intervalPrecision=HU(a);return function obe(n,t){!isFinite(n[0])&&(n[0]=t[0]),!isFinite(n[1])&&(n[1]=t[1]),XU(n,0,t),XU(n,1,t),n[0]>n[1]&&(n[0]=n[1])}(r.niceTickExtent=[Kr(Math.ceil(n[0]/a)*a,s),Kr(Math.floor(n[1]/a)*a,s)],n),r}(i,e,o,r);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var r=Math.abs(o[0]);e.fixMax||(o[1]+=r/2),o[0]-=r/2}else o[1]=1;isFinite(o[1]-o[0])||(o[0]=0,o[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var a=this._interval;e.fixMin||(o[0]=Jh(Math.floor(o[0]/a)*a)),e.fixMax||(o[1]=Jh(Math.ceil(o[1]/a)*a))},t.prototype.setNiceExtent=function(e,o){this._niceExtent=[e,o]},t.type="interval",t}(Pu);Pu.registerClass(VU);const G_=VU;var pS="__ec_stack_";function dS(n){return n.get("stack")||pS+n.seriesIndex}function uS(n){return n.dim+n.index}function GU(n){var t=function rbe(n){var t={};We(n,function(c){var d=c.coordinateSystem.getBaseAxis();if("time"===d.type||"value"===d.type)for(var u=c.getData(),h=d.dim+"_"+d.index,M=u.getDimensionIndex(u.mapDimension(d.dim)),g=u.getStore(),v=0,A=g.count();v0&&(i=null===i?s:Math.min(i,s))}e[o]=i}}return e}(n),e=[];return We(n,function(o){var s,i=o.coordinateSystem.getBaseAxis(),a=i.getExtent();if("category"===i.type)s=i.getBandWidth();else if("value"===i.type||"time"===i.type){var p=t[i.dim+"_"+i.index],d=Math.abs(a[1]-a[0]),u=i.scale.getExtent(),h=Math.abs(u[1]-u[0]);s=p?d/h*p:d}else{var M=o.getData();s=Math.abs(a[1]-a[0])/M.count()}var g=Vo(o.get("barWidth"),s),v=Vo(o.get("barMaxWidth"),s),A=Vo(o.get("barMinWidth")||(function JU(n){return n.pipelineContext&&n.pipelineContext.large}(o)?.5:1),s),y=o.get("barGap"),q=o.get("barCategoryGap");e.push({bandWidth:s,barWidth:g,barMaxWidth:v,barMinWidth:A,barGap:y,barCategoryGap:q,axisKey:uS(i),stackId:dS(o)})}),function ZU(n){var t={};We(n,function(o,r){var i=o.axisKey,a=o.bandWidth,s=t[i]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=s.stacks;t[i]=s;var p=o.stackId;c[p]||s.autoWidthCount++,c[p]=c[p]||{width:0,maxWidth:0};var d=o.barWidth;d&&!c[p].width&&(c[p].width=d,d=Math.min(s.remainedWidth,d),s.remainedWidth-=d);var u=o.barMaxWidth;u&&(c[p].maxWidth=u);var h=o.barMinWidth;h&&(c[p].minWidth=h);var M=o.barGap;null!=M&&(s.gap=M);var g=o.barCategoryGap;null!=g&&(s.categoryGap=g)});var e={};return We(t,function(o,r){e[r]={};var i=o.stacks,a=o.bandWidth,s=o.categoryGap;if(null==s){var c=Uo(i).length;s=Math.max(35-4*c,15)+"%"}var p=Vo(s,a),d=Vo(o.gap,1),u=o.remainedWidth,h=o.autoWidthCount,M=(u-p)/(h+(h-1)*d);M=Math.max(M,0),We(i,function(y){var q=y.maxWidth,L=y.minWidth;if(y.width){var D=y.width;q&&(D=Math.min(D,q)),L&&(D=Math.max(D,L)),y.width=D,u-=D+d*D,h--}else D=M,q&&qD&&(D=L),D!==M&&(y.width=D,u-=D+d*D,h--)}),M=(u-p)/(h+(h-1)*d),M=Math.max(M,0);var v,g=0;We(i,function(y,q){y.width||(y.width=M),v=y,g+=y.width*(1+d)}),v&&(g-=v.width*d);var A=-g/2;We(i,function(y,q){e[r][q]=e[r][q]||{bandWidth:a,offset:A,width:y.width},A+=y.width*(1+d)})}),e}(e)}var QU=function(n){function t(e){var o=n.call(this,e)||this;return o.type="time",o}return R1(t,n),t.prototype.getLabel=function(e){var o=this.getSetting("useUTC");return UC(e.value,GX[function ffe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}($g(this._minLevelUnit))]||GX.second,o,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,o,r){var i=this.getSetting("useUTC");return function hfe(n,t,e,o,r){var i=null;if(S0(e))i=e;else if(S1(e))i=e(n.value,t,{level:n.level});else{var a=Xt({},k_);if(n.level>0)for(var s=0;s=0;--s)if(c[p]){i=c[p];break}i=i||a.none}if(f0(i)){var u=null==n.level?0:n.level>=0?n.level:i.length+n.level;i=i[u=Math.min(u,i.length-1)]}}return UC(new Date(n.value),i,r,o)}(e,o,r,this.getSetting("locale"),i)},t.prototype.getTicks=function(){var o=this._extent,r=[];if(!this._interval)return r;r.push({value:o[0],level:0});var i=this.getSetting("useUTC"),a=function hbe(n,t,e,o){var i=ZX,a=0;function s(he,Me,me,xe,Ve,st,rt){for(var Ut=new Date(Me),qe=Me,ke=Ut[xe]();qe1&&0===st&&me.unshift({value:me[0].value-qe})}}for(st=0;st=o[0]&&q<=o[1]&&u++)}var L=(o[1]-o[0])/t;if(u>1.5*L&&h>L/1.5||(p.push(A),u>L||n===i[M]))break}d=[]}}var D=os(e1(p,function(he){return os(he,function(Me){return Me.value>=o[0]&&Me.value<=o[1]&&!Me.notAdd})}),function(he){return he.length>0}),X=[],H=D.length-1;for(M=0;Mr&&(this._approxInterval=r);var s=O5.length,c=Math.min(function(n,t,e,o){for(;e>>1;n[r][1]16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function pbe(n){return(n/=30*nl)>6?6:n>3?3:n>2?2:1}function dbe(n){return(n/=D_)>12?12:n>6?6:n>3.5?4:n>2?2:1}function eV(n,t){return(n/=t?_R:mR)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function ube(n){return wH(n,!0)}function fbe(n,t,e){var o=new Date(n);switch($g(t)){case"year":case"month":o[QX(e)](0);case"day":o[ej(e)](1);case"hour":o[tj(e)](0);case"minute":o[nj(e)](0);case"second":o[oj(e)](0),o[rj(e)](0)}return o.getTime()}Pu.registerClass(QU);const Mbe=QU;var tV=Pu.prototype,Z_=G_.prototype,bbe=Kr,gbe=Math.floor,Obe=Math.ceil,m5=Math.pow,op=Math.log,fS=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new G_,e._interval=0,e}return R1(t,n),t.prototype.getTicks=function(e){var r=this._extent,i=this._originalScale.getExtent();return e1(Z_.getTicks.call(this,e),function(s){var c=s.value,p=Kr(m5(this.base,c));return p=c===r[0]&&this._fixMin?_5(p,i[0]):p,{value:p=c===r[1]&&this._fixMax?_5(p,i[1]):p}},this)},t.prototype.setExtent=function(e,o){var r=op(this.base);e=op(Math.max(0,e))/r,o=op(Math.max(0,o))/r,Z_.setExtent.call(this,e,o)},t.prototype.getExtent=function(){var e=this.base,o=tV.getExtent.call(this);o[0]=m5(e,o[0]),o[1]=m5(e,o[1]);var i=this._originalScale.getExtent();return this._fixMin&&(o[0]=_5(o[0],i[0])),this._fixMax&&(o[1]=_5(o[1],i[1])),o},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var o=this.base;e[0]=op(e[0])/op(o),e[1]=op(e[1])/op(o),tV.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,o){this.unionExtent(e.getApproximateExtent(o))},t.prototype.calcNiceTicks=function(e){e=e||10;var o=this._extent,r=o[1]-o[0];if(!(r===1/0||r<=0)){var i=function cue(n){return Math.pow(10,ST(n))}(r);for(e/r*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Kr(Obe(o[0]/i)*i),Kr(gbe(o[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Z_.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return M5(e=op(e)/op(this.base),this._extent)},t.prototype.normalize=function(e){return b5(e=op(e)/op(this.base),this._extent)},t.prototype.scale=function(e){return e=g5(e,this._extent),m5(this.base,e)},t.type="log",t}(Pu),nV=fS.prototype;function _5(n,t){return bbe(n,_u(t))}nV.getMinorTicks=Z_.getMinorTicks,nV.getLabel=Z_.getLabel,Pu.registerClass(fS);const mbe=fS;var _be=function(){function n(t,e,o){this._prepareParams(t,e,o)}return n.prototype._prepareParams=function(t,e,o){o[1]0&&c>0&&!p&&(s=0),s<0&&c<0&&!d&&(c=0));var h=this._determinedMin,M=this._determinedMax;return null!=h&&(s=h,p=!0),null!=M&&(c=M,d=!0),{min:s,max:c,minFixed:p,maxFixed:d,isBlank:u}},n.prototype.modifyDataMinMax=function(t,e){this[vbe[t]]=e},n.prototype.setDeterminedMinMax=function(t,e){this[zbe[t]]=e},n.prototype.freeze=function(){this.frozen=!0},n}(),zbe={min:"_determinedMin",max:"_determinedMax"},vbe={min:"_dataMin",max:"_dataMax"};function z5(n,t){return null==t?null:V4(t)?NaN:n.parse(t)}function oV(n,t){var e=n.type,o=function Abe(n,t,e){var o=n.rawExtentInfo;return o||(o=new _be(n,t,e),n.rawExtentInfo=o,o)}(n,t,n.getExtent()).calculate();n.setBlank(o.isBlank);var r=o.min,i=o.max,a=t.ecModel;if(a&&"time"===e){var s=function $U(n,t){var e=[];return t.eachSeriesByType(n,function(o){(function KU(n){return n.coordinateSystem&&"cartesian2d"===n.coordinateSystem.type})(o)&&e.push(o)}),e}("bar",a),c=!1;if(We(s,function(u){c=c||u.getBaseAxis()===t.axis}),c){var p=GU(s),d=function ybe(n,t,e,o){var r=e.axis.getExtent(),i=r[1]-r[0],a=function ibe(n,t,e){if(n&&t){var o=n[uS(t)];return null!=o&&null!=e?o[dS(e)]:o}}(o,e.axis);if(void 0===a)return{min:n,max:t};var s=1/0;We(a,function(M){s=Math.min(M.offset,s)});var c=-1/0;We(a,function(M){c=Math.max(M.offset+M.width,c)}),s=Math.abs(s),c=Math.abs(c);var p=s+c,d=t-n,h=d/(1-(s+c)/i)-d;return{min:n-=h*(s/p),max:t+=h*(c/p)}}(r,i,t,p);r=d.min,i=d.max}}return{extent:[r,i],fixMin:o.minFixed,fixMax:o.maxFixed}}function rV(n,t){var e=t,o=oV(n,e),r=o.extent,i=e.get("splitNumber");n instanceof mbe&&(n.base=e.get("logBase"));var a=n.type,s=e.get("interval"),c="interval"===a||"time"===a;n.setExtent(r[0],r[1]),n.calcNiceExtent({splitNumber:i,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:c?e.get("minInterval"):null,maxInterval:c?e.get("maxInterval"):null}),null!=s&&n.setInterval&&n.setInterval(s)}function K_(n){var o,t=n.getLabelModel().get("formatter"),e="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(o=t,function(r,i){return n.scale.getFormattedLabel(r,i,o)}):S0(t)?function(o){return function(r){var i=n.scale.getLabel(r);return o.replace("{value}",i??"")}}(t):S1(t)?function(o){return function(r,i){return null!=e&&(i=r.value-e),o(hS(n,r),i,null!=r.level?{level:r.level}:null)}}(t):function(o){return n.scale.getLabel(o)}}function hS(n,t){return"category"===n.type?n.scale.getLabel(t):t.value}function xbe(n,t){var e=t*Math.PI/180,o=n.width,r=n.height,i=o*Math.abs(Math.cos(e))+Math.abs(r*Math.sin(e)),a=o*Math.abs(Math.sin(e))+Math.abs(r*Math.cos(e));return new eo(n.x,n.y,i,a)}function MS(n){return n.get("interval")??"auto"}function iV(n){return"category"===n.type&&0===MS(n.getLabelModel())}var Z2=Math.PI,Qh=function(){function n(t,e){this.group=new as,this.opt=e,this.axisModel=t,Qn(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var o=new as({x:e.position[0],y:e.position[1],rotation:e.rotation});o.updateTransform(),this._transformGroup=o}return n.prototype.hasBuilder=function(t){return!!cV[t]},n.prototype.add=function(t){cV[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,e,o){var i,a,r=CH(e-t);return vC(r)?(a=o>0?"top":"bottom",i="center"):vC(r-Z2)?(a=o>0?"bottom":"top",i="center"):(a="middle",i=r>0&&r0?"right":"left":o>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:a}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n}(),cV={axisLine:function(n,t,e,o){var r=t.get(["axisLine","show"]);if("auto"===r&&n.handleAutoShown&&(r=n.handleAutoShown("axisLine")),r){var i=t.axis.getExtent(),a=o.transform,s=[i[0],0],c=[i[1],0],p=s[0]>c[0];a&&($c(s,s,a),$c(c,c,a));var d=Xt({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new Uh({shape:{x1:s[0],y1:s[1],x2:c[0],y2:c[1]},style:d,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});V_(u.shape,u.style.lineWidth),u.anid="line",e.add(u);var h=t.get(["axisLine","symbol"]);if(null!=h){var M=t.get(["axisLine","symbolSize"]);S0(h)&&(h=[h,h]),(S0(M)||vo(M))&&(M=[M,M]);var g=lU(t.get(["axisLine","symbolOffset"])||0,M),v=M[0],A=M[1];We([{rotate:n.rotation+Math.PI/2,offset:g[0],r:0},{rotate:n.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-c[0])*(s[0]-c[0])+(s[1]-c[1])*(s[1]-c[1]))}],function(y,q){if("none"!==h[q]&&null!=h[q]){var L=tO(h[q],-v/2,-A/2,v,A,d.stroke,!0),D=y.r+y.offset,X=p?c:s;L.attr({rotation:y.rotate,x:X[0]+D*Math.cos(n.rotation),y:X[1]-D*Math.sin(n.rotation),silent:!0,z2:11}),e.add(L)}})}}},axisTickLabel:function(n,t,e,o){var r=function Sbe(n,t,e,o){var r=e.axis,i=e.getModel("axisTick"),a=i.get("show");if("auto"===a&&o.handleAutoShown&&(a=o.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=i.getModel("lineStyle"),c=o.tickDirection*i.get("length"),d=dV(r.getTicksCoords(),t.transform,c,Qn(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;up[1]?-1:1,u=["start"===i?p[0]-d*c:"end"===i?p[1]+d*c:(p[0]+p[1])/2,pV(i)?n.labelOffset+a*c:0],M=t.get("nameRotate");null!=M&&(M=M*Z2/180),pV(i)?h=Qh.innerTextLayout(n.rotation,M??n.rotation,a):(h=function Tbe(n,t,e,o){var i,a,r=CH(e-n),s=o[0]>o[1],c="start"===t&&!s||"start"!==t&&s;return vC(r-Z2/2)?(a=c?"bottom":"top",i="center"):vC(r-1.5*Z2)?(a=c?"top":"bottom",i="center"):(a="middle",i=r<1.5*Z2&&r>Z2/2?c?"left":"right":c?"right":"left"),{rotation:r,textAlign:i,textVerticalAlign:a}}(n.rotation,i,M||0,p),null!=(g=n.axisNameAvailableWidth)&&(g=Math.abs(g/Math.sin(h.rotation)),!isFinite(g)&&(g=null)));var v=s.getFont(),A=t.get("nameTruncate",!0)||{},y=A.ellipsis,q=i_(n.nameTruncateMaxWidth,A.maxWidth,g),L=new _a({x:u[0],y:u[1],rotation:h.rotation,silent:Qh.isLabelSilent(t),style:H2(s,{text:r,font:v,overflow:"truncate",width:q,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(HR({el:L,componentModel:t,itemName:r}),L.__fullText=r,L.anid="name",t.get("triggerEvent")){var D=Qh.makeAxisEventDataBase(t);D.targetType="axisName",D.name=r,Do(L).eventData=D}o.add(L),L.updateTransform(),e.add(L),L.decomposeTransform()}}};function rl(n){n&&(n.ignore=!0)}function lV(n,t){var e=n&&n.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(e&&o){var r=YL([]);return XL(r,r,-n.rotation),e.applyTransform(Wg([],r,n.getLocalTransform())),o.applyTransform(Wg([],r,t.getLocalTransform())),e.intersect(o)}}function pV(n){return"middle"===n||"center"===n}function dV(n,t,e,o,r){for(var i=[],a=[],s=[],c=0;c=0)&&p({type:"updateAxisPointer",currTrigger:s,x:c&&c.offsetX,y:c&&c.offsetY})})},t.prototype.remove=function(e,o){gS("axisPointer",o)},t.prototype.dispose=function(e,o){gS("axisPointer",o)},t.type="axisPointer",t}(wu);const ege=Qbe;function zV(n,t){var r,e=[],o=n.seriesIndex;if(null==o||!(r=t.getSeriesByIndex(o)))return{point:[]};var i=r.getData(),a=kh(i,n);if(null==a||a<0||f0(a))return{point:[]};var s=i.getItemGraphicEl(a),c=r.coordinateSystem;if(r.getTooltipPosition)e=r.getTooltipPosition(a)||[];else if(c&&c.dataToPoint)if(n.isStacked){var p=c.getBaseAxis(),u=c.getOtherAxis(p).dim,M="x"===u||"radius"===u?1:0,g=i.mapDimension(p.dim),v=[];v[M]=i.get(g,a),v[1-M]=i.get(i.getCalculationInfo("stackResultDimension"),a),e=c.dataToPoint(v)||[]}else e=c.dataToPoint(i.getValues(e1(c.dimensions,function(y){return i.mapDimension(y)}),a))||[];else if(s){var A=s.getBoundingRect().clone();A.applyTransform(s.transform),e=[A.x+A.width/2,A.y+A.height/2]}return{point:e,el:s}}var vV=Jr();function tge(n,t,e){var o=n.currTrigger,r=[n.x,n.y],i=n,a=n.dispatchAction||Bo(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){v5(r)&&(r=zV({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var c=v5(r),p=i.axesInfo,d=s.axesInfo,u="leave"===o||v5(r),h={},M={},g={list:[],map:{}},v={showPointer:Zr(oge,M),showTooltip:Zr(rge,g)};We(s.coordSysMap,function(y,q){var L=c||y.containPoint(r);We(s.coordSysAxesInfo[q],function(D,X){var H=D.axis,re=function cge(n,t){for(var e=0;e<(n||[]).length;e++){var o=n[e];if(t.axis.dim===o.axisDim&&t.axis.model.componentIndex===o.axisIndex)return o}}(p,D);if(!u&&L&&(!p||re)){var ee=re&&re.value;null==ee&&!c&&(ee=H.pointToData(r)),null!=ee&&AV(D,ee,v,!1,h)}})});var A={};return We(d,function(y,q){var L=y.linkGroup;L&&!M[q]&&We(L.axesInfo,function(D,X){var H=M[X];if(D!==y&&H){var re=H.value;L.mapper&&(re=y.axis.scale.parse(L.mapper(re,yV(D),yV(y)))),A[y.key]=re}})}),We(A,function(y,q){AV(d[q],y,v,!0,h)}),function ige(n,t,e){var o=e.axesInfo=[];We(t,function(r,i){var a=r.axisPointerModel.option,s=n[i];s?(!r.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!r.useHandle&&(a.status="hide"),"show"===a.status&&o.push({axisDim:r.axis.dim,axisIndex:r.axis.model.componentIndex,value:a.value})})}(M,d,h),function age(n,t,e,o){if(!v5(t)&&n.list.length){var r=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:n.list})}else o({type:"hideTip"})}(g,r,n,a),function sge(n,t,e){var o=e.getZr(),r="axisPointerLastHighlights",i=vV(o)[r]||{},a=vV(o)[r]={};We(n,function(p,d){var u=p.axisPointerModel.option;"show"===u.status&&We(u.seriesDataIndices,function(h){a[h.seriesIndex+" | "+h.dataIndex]=h})});var s=[],c=[];We(i,function(p,d){!a[d]&&c.push(p)}),We(a,function(p,d){!i[d]&&s.push(p)}),c.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(d,0,e),h}}function AV(n,t,e,o,r){var i=n.axis;if(!i.scale.isBlank()&&i.containData(t)){if(!n.involveSeries)return void e.showPointer(n,t);var a=function nge(n,t){var e=t.axis,o=e.dim,r=n,i=[],a=Number.MAX_VALUE,s=-1;return We(t.seriesModels,function(c,p){var u,h,d=c.getData().mapDimensionsAll(o);if(c.getAxisTooltipData){var M=c.getAxisTooltipData(d,n,e);h=M.dataIndices,u=M.nestestValue}else{if(!(h=c.getData().indicesOfNearest(d[0],n,"category"===e.type?.5:null)).length)return;u=c.getData().get(d[0],h[0])}if(null!=u&&isFinite(u)){var g=n-u,v=Math.abs(g);v<=a&&((v=0&&s<0)&&(a=v,s=g,r=u,i.length=0),We(h,function(A){i.push({seriesIndex:c.seriesIndex,dataIndexInside:A,dataIndex:c.getData().getRawIndex(A)})}))}}),{payloadBatch:i,snapToValue:r}}(t,n),s=a.payloadBatch,c=a.snapToValue;s[0]&&null==r.seriesIndex&&Xt(r,s[0]),!o&&n.snap&&i.containData(c)&&null!=c&&(t=c),e.showPointer(n,t,s),e.showTooltip(n,a,c)}}function oge(n,t,e,o){n[t.key]={value:e,payloadBatch:o}}function rge(n,t,e,o){var r=e.payloadBatch,i=t.axis,a=i.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var c=t.coordSys.model,p=$_(c),d=n.map[p];d||(d=n.map[p]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},n.list.push(d)),d.dataByAxis.push({axisDim:i.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:o,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function yV(n){var t=n.axis.model,e={},o=e.axisDim=n.axis.dim;return e.axisIndex=e[o+"AxisIndex"]=t.componentIndex,e.axisName=e[o+"AxisName"]=t.name,e.axisId=e[o+"AxisId"]=t.id,e}function v5(n){return!n||null==n[0]||isNaN(n[0])||null==n[1]||isNaN(n[1])}function CV(n){WU.registerAxisPointerClass("CartesianAxisPointer",jbe),n.registerComponentModel(Vbe),n.registerComponentView(ege),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!f0(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function IMe(n,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function NMe(n,t,e){var o=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),i=r.get("link",!0)||[],a=[];We(e.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var c=$_(s.model),p=n.coordSysAxesInfo[c]={};n.coordSysMap[c]=s;var u=s.model.getModel("tooltip",o);if(We(s.getAxes(),Zr(v,!1,null)),s.getTooltipAxes&&o&&u.get("show")){var h="axis"===u.get("trigger"),M="cross"===u.get(["axisPointer","type"]),g=s.getTooltipAxes(u.get(["axisPointer","axis"]));(h||M)&&We(g.baseAxes,Zr(v,!M||"cross",h)),M&&We(g.otherAxes,Zr(v,"cross",!1))}}function v(A,y,q){var L=q.model.getModel("axisPointer",r),D=L.get("show");if(D&&("auto"!==D||A||QR(L))){null==y&&(y=L.get("triggerTooltip")),L=A?function BMe(n,t,e,o,r,i){var a=t.getModel("axisPointer"),c={};We(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(h){c[h]=Dn(a.get(h))}),c.snap="category"!==n.type&&!!i,"cross"===a.get("type")&&(c.type="line");var p=c.label||(c.label={});if(null==p.show&&(p.show=!1),"cross"===r){var d=a.get(["label","show"]);if(p.show=d??!0,!i){var u=c.lineStyle=a.get("crossStyle");u&&Qn(p,u.textStyle)}}return n.model.getModel("axisPointer",new va(c,e,o))}(q,u,r,t,A,y):L;var X=L.get("snap"),H=$_(q.model),re=y||X||"category"===q.type,ee=n.axesInfo[H]={key:H,axis:q,coordSys:s,axisPointerModel:L,triggerTooltip:y,involveSeries:re,snap:X,useHandle:QR(L),seriesModels:[],linkGroup:null};p[H]=ee,n.seriesInvolved=n.seriesInvolved||re;var le=function YMe(n,t){for(var e=t.model,o=t.dim,r=0;r1&&o&&o.length>1){var i=wV(o)/wV(r);!isFinite(i)&&(i=1),t.pinchScale=i;var a=function uge(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}(o);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:n[0].target,event:t}}}}},PV="silent";function hge(){TU(this.event)}var Mge=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.handler=null,e}return Ao(t,n),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(hd),J_=function n(t,e){this.x=t,this.y=e},bge=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],mS=new eo(0,0,0,0),xV=function(n){function t(e,o,r,i,a){var s=n.call(this)||this;return s._hovered=new J_(0,0),s.storage=e,s.painter=o,s.painterRoot=i,s._pointerSize=a,r=r||new Mge,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new pge(s),s}return Ao(t,n),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(We(bge,function(o){e.on&&e.on(o,this[o],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var o=e.zrX,r=e.zrY,i=WV(this,o,r),a=this._hovered,s=a.target;s&&!s.__zr&&(s=(a=this.findHover(a.x,a.y)).target);var c=this._hovered=i?new J_(o,r):this.findHover(o,r),p=c.target,d=this.proxy;d.setCursor&&d.setCursor(p?p.cursor:"default"),s&&p!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(c,"mousemove",e),p&&p!==s&&this.dispatchToElement(c,"mouseover",e)},t.prototype.mouseout=function(e){var o=e.zrEventControl;"only_globalout"!==o&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==o&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new J_(0,0)},t.prototype.dispatch=function(e,o){var r=this[e];r&&r.call(this,o)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var o=this.proxy;o.setCursor&&o.setCursor(e)},t.prototype.dispatchToElement=function(e,o,r){var i=(e=e||{}).target;if(!i||!i.silent){for(var a="on"+o,s=function fge(n,t,e){return{type:n,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:hge}}(o,e,r);i&&(i[a]&&(s.cancelBubble=!!i[a].call(i,s)),i.trigger(o,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(o,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){"function"==typeof c[a]&&c[a].call(c,s),c.trigger&&c.trigger(o,s)}))}},t.prototype.findHover=function(e,o,r){var i=this.storage.getDisplayList(),a=new J_(e,o);if(qV(i,a,e,o,r),this._pointerSize&&!a.target){for(var s=[],c=this._pointerSize,p=c/2,d=new eo(e-p,o-p,c,c),u=i.length-1;u>=0;u--){var h=i[u];h!==r&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(mS.copy(h.getBoundingRect()),h.transform&&mS.applyTransform(h.transform),mS.intersect(d)&&s.push(h))}if(s.length)for(var g=Math.PI/12,v=2*Math.PI,A=0;A=0;i--){var a=n[i],s=void 0;if(a!==r&&!a.ignore&&(s=gge(a,e,o))&&(!t.topTarget&&(t.topTarget=a),s!==PV)){t.target=a;break}}}function WV(n,t,e){var o=n.painter;return t<0||t>o.getWidth()||e<0||e>o.getHeight()}We(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){xV.prototype[n]=function(t){var i,a,e=t.zrX,o=t.zrY,r=WV(this,e,o);if(("mouseup"!==n||!r)&&(a=(i=this.findHover(e,o)).target),"mousedown"===n)this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if("mouseup"===n)this._upEl=a;else if("click"===n){if(this._downEl!==this._upEl||!this._downPoint||JL(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,n,t)}});const Oge=xV;var LV=32,Q_=7;function RV(n,t,e,o){var r=t+1;if(r===e)return 1;if(o(n[r++],n[t])<0){for(;r=0;)r++;return r-t}function SV(n,t,e,o,r){for(o===t&&o++;o>>1])<0?s=c:a=c+1;var p=o-a;switch(p){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;p>0;)n[a+p]=n[a+p-1],p--}n[a]=i}}function _S(n,t,e,o,r,i){var a=0,s=0,c=1;if(i(n,t[e+r])>0){for(s=o-r;c0;)a=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),a+=r,c+=r}else{for(s=r+1;cs&&(c=s);var p=a;a=r-c,c=r-p}for(a++;a>>1);i(n,t[e+d])>0?a=d+1:c=d}return c}function zS(n,t,e,o,r,i){var a=0,s=0,c=1;if(i(n,t[e+r])<0){for(s=r+1;cs&&(c=s);var p=a;a=r-c,c=r-p}else{for(s=o-r;c=0;)a=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),a+=r,c+=r}for(a++;a>>1);i(n,t[e+d])<0?c=d:a=d+1}return c}function A5(n,t,e,o){e||(e=0),o||(o=n.length);var r=o-e;if(!(r<2)){var i=0;if(r=Q_||he>=Q_);if(Me)break;ee<0&&(ee=0),ee+=2}if((e=ee)<1&&(e=1),1===y){for(D=0;D=0;D--)n[le+D]=n[ee+D];if(0===y){xe=!0;break}}if(n[re--]=p[H--],1==--L){xe=!0;break}if(0!=(me=L-_S(n[X],p,0,L,L-1,t))){for(L-=me,le=1+(re-=me),ee=1+(H-=me),D=0;D=Q_||me>=Q_);if(xe)break;he<0&&(he=0),he+=2}if((e=he)<1&&(e=1),1===L){for(le=1+(re-=y),ee=1+(X-=y),D=y-1;D>=0;D--)n[le+D]=n[ee+D];n[re]=p[H]}else{if(0===L)throw new Error;for(ee=re-(L-1),D=0;D=0;D--)n[le+D]=n[ee+D];n[re]=p[H]}else for(ee=re-(L-1),D=0;D1;){var A=c-2;if(A>=1&&s[A-1]<=s[A]+s[A+1]||A>=2&&s[A-2]<=s[A]+s[A-1])s[A-1]s[A+1])break;M(A)}},forceMergeRuns:function h(){for(;c>1;){var A=c-2;A>0&&s[A-1]=LV;)t|=1&n,n>>=1;return n+t}(r);do{if((i=RV(n,e,o,t))s&&(c=s),SV(n,e,e+c,e+i,t),i=c}a.pushRun(e,i),a.mergeRuns(),r-=i,e+=i}while(0!==r);a.forceMergeRuns()}}var DV=!1;function vS(){DV||(DV=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function kV(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var vge=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=kV}return n.prototype.traverse=function(t,e){for(var o=0;o0&&(d.__clipPaths=[]),isNaN(d.z)&&(vS(),d.z=0),isNaN(d.z2)&&(vS(),d.z2=0),isNaN(d.zlevel)&&(vS(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,o);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,o);var M=t.getTextContent();M&&this._updateAndAddDisplayable(M,e,o)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,o=t.length;e=0&&this._roots.splice(r,1)}},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Age=vge;var EV;EV=j1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const AS=EV;function rO(){return(new Date).getTime()}var yge=function(n){function t(e){var o=n.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,o.stage=(e=e||{}).stage||{},o}return Ao(t,n),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var o=e.getClip();o&&this.addClip(o)},t.prototype.removeClip=function(e){if(e.animation){var o=e.prev,r=e.next;o?o.next=r:this._head=r,r?r.prev=o:this._tail=o,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var o=e.getClip();o&&this.removeClip(o),e.animation=null},t.prototype.update=function(e){for(var o=rO()-this._pausedTime,r=o-this._time,i=this._head;i;){var a=i.next;i.step(o,r)&&(i.ondestroy(),this.removeClip(i)),i=a}this._time=o,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,AS(function o(){e._running&&(AS(o),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=rO(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=rO(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=rO()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var o=e.next;e.prev=e.next=e.animation=null,e=o}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,o){o=o||{},this.start();var r=new dT(e,o.loop);return this.addAnimator(r),r},t}(hd);const Cge=yge;var yS=j1.domSupported,CS=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:e1(n,function(r){var i=r.replace("mouse","pointer");return e.hasOwnProperty(i)?i:r})}}(),IV={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},NV=!1;function wS(n){var t=n.pointerType;return"pen"===t||"touch"===t}function PS(n){n&&(n.zrByTouch=!0)}function BV(n,t){for(var e=t,o=!1;e&&9!==e.nodeType&&!(o=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return o}var qge=function n(t,e){this.stopPropagation=ks,this.stopImmediatePropagation=ks,this.preventDefault=ks,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},rp={mousedown:function(n){n=ol(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=ol(this.dom,n);var t=this.__mayPointerCapture;t&&(n.zrX!==t[0]||n.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=ol(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){BV(this,(n=ol(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){NV=!0,n=ol(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){NV||(n=ol(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){PS(n=ol(this.dom,n)),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),rp.mousemove.call(this,n),rp.mousedown.call(this,n)},touchmove:function(n){PS(n=ol(this.dom,n)),this.handler.processGesture(n,"change"),rp.mousemove.call(this,n)},touchend:function(n){PS(n=ol(this.dom,n)),this.handler.processGesture(n,"end"),rp.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<300&&rp.click.call(this,n)},pointerdown:function(n){rp.mousedown.call(this,n)},pointermove:function(n){wS(n)||rp.mousemove.call(this,n)},pointerup:function(n){rp.mouseup.call(this,n)},pointerout:function(n){wS(n)||rp.mouseout.call(this,n)}};We(["click","dblclick","contextmenu"],function(n){rp[n]=function(t){t=ol(this.dom,t),this.trigger(n,t)}});var xS={pointermove:function(n){wS(n)||xS.mousemove.call(this,n)},pointerup:function(n){xS.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function y5(n,t,e,o){n.mounted[t]=e,n.listenerOpts[t]=o,function GMe(n,t,e,o){n.addEventListener(t,e,o)}(n.domTarget,t,e,o)}function qS(n){var t=n.mounted;for(var e in t)t.hasOwnProperty(e)&&ZMe(n.domTarget,e,t[e],n.listenerOpts[e]);n.mounted={}}var FV=function n(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Tge=function(n){function t(e,o){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=o,r._localHandlerScope=new FV(e,rp),yS&&(r._globalHandlerScope=new FV(document,xS)),function Wge(n,t){var e=t.domHandlers;j1.pointerEventsSupported?We(CS.pointer,function(o){y5(t,o,function(r){e[o].call(n,r)})}):(j1.touchEventsSupported&&We(CS.touch,function(o){y5(t,o,function(r){e[o].call(n,r),function Pge(n){n.touching=!0,null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}(t)})}),We(CS.mouse,function(o){y5(t,o,function(r){r=oS(r),t.touching||e[o].call(n,r)})}))}(r,r._localHandlerScope),r}return Ao(t,n),t.prototype.dispose=function(){qS(this._localHandlerScope),yS&&qS(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,yS&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var o=this._globalHandlerScope;e?function Lge(n,t){function e(o){y5(t,o,function r(i){i=oS(i),BV(n,i.target)||(i=function xge(n,t){return ol(n.dom,new qge(n,t),!0)}(n,i),t.domHandlers[o].call(n,i))},{capture:!0})}j1.pointerEventsSupported?We(IV.pointer,e):j1.touchEventsSupported||We(IV.mouse,e)}(this,o):qS(o)}},t}(hd);const Rge=Tge;var C5={},eM={},kge=function(){function n(t,e,o){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,o=o||{},this.dom=e,this.id=t;var i=new Age,a=o.renderer||"canvas";C5[a]||(a=Uo(C5)[0]),o.useDirtyRect=null!=o.useDirtyRect&&o.useDirtyRect;var s=new C5[a](e,i,o,t),c=o.ssr||s.ssrOnly;this.storage=i,this.painter=s;var M,p=j1.node||j1.worker||c?null:new Rge(s.getViewportRoot(),s.root),d=o.useCoarsePointer;(null==d||"auto"===d?j1.touchEventsSupported:!!d)&&(M=qn(o.pointerSize,44)),this.handler=new Oge(i,s,p,s.root,M),this.animation=new Cge({stage:{update:c?null:function(){return r._flush(!0)}}}),c||this.animation.start()}return n.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},n.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},n.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function Dge(n){if(!n)return!1;if("string"==typeof n)return cC(n,1)<.4;if(n.colorStops){for(var t=n.colorStops,e=0,o=t.length,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},n.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},n.prototype.on=function(t,e,o){return this.handler.on(t,e,o),this},n.prototype.off=function(t,e){this.handler.off(t,e)},n.prototype.trigger=function(t,e){this.handler.trigger(t,e)},n.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=0;c--)i[c]&&!y_(i[c])?s=!0:(i[c]=null,!s&&a--);i.length=a,e[r]=i}}),delete e[jV],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,o){var r=this._componentsMap.get(e);if(r){var i=r[o||0];if(i)return i;if(null==o)for(var a=0;a=t:"max"===e?n<=t:n===t})(o[p],i,c)||(r=!1)}}),r}const Jge=Vge;var ip=We,tz=V0,QV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function LS(n){var t=n&&n.itemStyle;if(t)for(var e=0,o=QV.length;e=0;A--){var y=n[A];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,M)),g>=0){var q=y.data.getByRawIndex(y.stackResultDimension,g);if("all"===c||"positive"===c&&q>0||"negative"===c&&q<0||"samesign"===c&&h>=0&&q>0||"samesign"===c&&h<=0&&q<0){h=aue(h,q),v=q;break}}}return o[0]=h,o[1]=v,o})})}var a$=Jr(),s$={itemStyle:c_(pX,!0),lineStyle:c_(lX,!0)},cOe={lineStyle:"stroke",itemStyle:"fill"};function c$(n,t){return n.visualStyleMapper||s$[t]||(console.warn("Unknown style type '"+t+"'."),s$.itemStyle)}function l$(n,t){return n.visualDrawType||cOe[t]||(console.warn("Unknown style type '"+t+"'."),"fill")}var lOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),o=n.visualStyleAccessPath||"itemStyle",r=n.getModel(o),a=c$(n,o)(r),s=r.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var c=l$(n,o),p=a[c],d=S1(p)?p:null;if(!a[c]||d||"auto"===a.fill||"auto"===a.stroke){var h=n.getColorFromPalette(n.name,null,t.getSeriesCount());a[c]||(a[c]=h,e.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||S1(a.fill)?h:a.fill,a.stroke="auto"===a.stroke||S1(a.stroke)?h:a.stroke}if(e.setVisual("style",a),e.setVisual("drawType",c),!t.isSeriesFiltered(n)&&d)return e.setVisual("colorFromPalette",!1),{dataEach:function(M,g){var v=n.getDataParams(g),A=Xt({},a);A[c]=d(v),M.setItemVisual(g,"style",A)}}}},rz=new va,pOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.ignoreStyleOnData&&!t.isSeriesFiltered(n)){var e=n.getData(),o=n.visualStyleAccessPath||"itemStyle",r=c$(n,o),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var c=a.getRawDataItem(s);if(c&&c[o]){rz.option=c[o];var p=r(rz);Xt(a.ensureUniqueItemVisual(s,"style"),p),rz.option.decal&&(a.setItemVisual(s,"decal",rz.option.decal),rz.option.decal.dirty=!0),i in p&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},dOe={performRawSeries:!0,overallReset:function(n){var t=X1();n.eachSeries(function(e){var o=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+o,i=t.get(r);i||t.set(r,i={}),a$(e).scope=i}}),n.eachSeries(function(e){if(!e.isColorBySeries()&&!n.isSeriesFiltered(e)){var o=e.getRawData(),r={},i=e.getData(),a=a$(e).scope,c=l$(e,e.visualStyleAccessPath||"itemStyle");i.each(function(p){var d=i.getRawIndex(p);r[d]=p}),o.each(function(p){var d=r[p];if(i.getItemVisual(d,"colorFromPalette")){var h=i.ensureUniqueItemVisual(d,"style"),M=o.getName(p)||p+"",g=o.count();h[c]=e.getColorFromPalette(M,a,g)}})}})}},P5=Math.PI,fOe=function(){function n(t,e,o,r){this._stageTaskMap=X1(),this.ecInstance=t,this.api=e,o=this._dataProcessorHandlers=o.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=o.concat(r)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(o){var r=o.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var o=this._pipelineMap.get(t.__pipeline.id),r=o.context,a=!e&&o.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>o.blockIndex?o.step:null,s=r&&r.modDataCount;return{step:a,modBy:null!=s?Math.ceil(s/a):null,modDataCount:s}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var o=this._pipelineMap.get(t.uid),i=t.getData().count(),a=o.progressiveEnabled&&e.incrementalPrepareRender&&i>=o.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),c="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=o.context={progressiveRender:a,modDataCount:c,large:s}},n.prototype.restorePipelines=function(t){var e=this,o=e._pipelineMap=X1();t.eachSeries(function(r){var i=r.getProgressive(),a=r.uid;o.set(a,{id:a,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:i&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(r,r.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),o=this.api;We(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{});gu(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,o),r.overallReset&&this._createOverallStageTask(r,i,e,o)},this)},n.prototype.prepareView=function(t,e,o,r){var i=t.renderTask,a=i.context;a.model=e,a.ecModel=o,a.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,o){this._performStageTasks(this._visualHandlers,t,e,o)},n.prototype._performStageTasks=function(t,e,o,r){r=r||{};var i=!1,a=this;function s(c,p){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(p.__pipeline.id))}We(t,function(c,p){if(!r.visualType||r.visualType===c.visualType){var d=a._stageTaskMap.get(c.uid),u=d.seriesTaskMap,h=d.overallTask;if(h){var M,g=h.agentStubMap;g.each(function(A){s(r,A)&&(A.dirty(),M=!0)}),M&&h.dirty(),a.updatePayload(h,o);var v=a.getPerformArgs(h,r.block);g.each(function(A){A.perform(v)}),h.perform(v)&&(i=!0)}else u&&u.each(function(A,y){s(r,A)&&A.dirty();var q=a.getPerformArgs(A,r.block);q.skip=!c.performRawSeries&&e.isSeriesFiltered(A.context.model),a.updatePayload(A,o),A.perform(q)&&(i=!0)})}}),this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(o){e=o.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},n.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,o,r){var i=this,a=e.seriesTaskMap,s=e.seriesTaskMap=X1(),c=t.seriesType,p=t.getTargetSeries;function d(u){var h=u.uid,M=s.set(h,a&&a.get(h)||B_({plan:OOe,reset:mOe,count:zOe}));M.context={model:u,ecModel:o,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(u,M)}t.createOnAllSeries?o.eachRawSeries(d):c?o.eachRawSeriesByType(c,d):p&&p(o,r).each(d)},n.prototype._createOverallStageTask=function(t,e,o,r){var i=this,a=e.overallTask=e.overallTask||B_({reset:hOe});a.context={ecModel:o,api:r,overallReset:t.overallReset,scheduler:i};var s=a.agentStubMap,c=a.agentStubMap=X1(),p=t.seriesType,d=t.getTargetSeries,u=!0,h=!1;function g(v){var A=v.uid,y=c.set(A,s&&s.get(A)||(h=!0,B_({reset:MOe,onDirty:gOe})));y.context={model:v,overallProgress:u},y.agent=a,y.__block=u,i._pipe(v,y)}gu(!t.createOnAllSeries,""),p?o.eachRawSeriesByType(p,g):d?d(o,r).each(g):(u=!1,We(o.getSeries(),g)),h&&a.dirty()},n.prototype._pipe=function(t,e){var r=this._pipelineMap.get(t.uid);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},n.wrapStageHandler=function(t,e){return S1(t)&&(t={overallReset:t,seriesType:vOe(t)}),t.uid=YC("stageHandler"),e&&(t.visualType=e),t},n}();function hOe(n){n.overallReset(n.ecModel,n.api,n.payload)}function MOe(n){return n.overallProgress&&bOe}function bOe(){this.agent.dirty(),this.getDownstream().dirty()}function gOe(){this.agent&&this.agent.dirty()}function OOe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function mOe(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=za(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?e1(t,function(e,o){return p$(o)}):_Oe}var _Oe=p$(0);function p$(n){return function(t,e){var o=e.data,r=e.resetDefines[n];if(r&&r.dataEach)for(var i=t.start;i0&&M===p.length-h.length){var g=p.slice(0,M);"data"!==g&&(e.mainType=g,e[h.toLowerCase()]=c,d=!0)}}s.hasOwnProperty(p)&&(o[p]=c,d=!0),d||(r[p]=c)})}return{cptQuery:e,dataQuery:o,otherQuery:r}},n.prototype.filter=function(t,e){var o=this.eventInfo;if(!o)return!0;var r=o.targetEl,i=o.packedEvent,a=o.model,s=o.view;if(!a||!s)return!0;var c=e.cptQuery,p=e.dataQuery;return d(c,a,"mainType")&&d(c,a,"subType")&&d(c,a,"index","componentIndex")&&d(c,a,"name")&&d(c,a,"id")&&d(p,i,"name")&&d(p,i,"dataIndex")&&d(p,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,i));function d(u,h,M,g){return null==u[M]||h[g||M]===u[M]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),RS=["symbol","symbolSize","symbolRotate","symbolOffset"],O$=RS.concat(["symbolKeepAspect"]),wOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var o={},r={},i=!1,a=0;a=0&&tM(c)?c:.5,n.createRadialGradient(a,s,0,a,s,c)}(n,t,e):function kOe(n,t,e){var o=null==t.x?0:t.x,r=null==t.x2?1:t.x2,i=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(o=o*e.width+e.x,r=r*e.width+e.x,i=i*e.height+e.y,a=a*e.height+e.y),o=tM(o)?o:0,r=tM(r)?r:1,i=tM(i)?i:0,a=tM(a)?a:0,n.createLinearGradient(o,i,r,a)}(n,t,e),r=t.colorStops,i=0;i0&&function NOe(n,t){return n&&"solid"!==n&&t>0?"dashed"===n?[4*t,2*t]:"dotted"===n?[t]:vo(n)?[n]:f0(n)?n:null:null}(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(e){var r=t.strokeNoScale&&n.getLineScale?n.getLineScale():1;r&&1!==r&&(e=e1(e,function(i){return i/r}),o/=r)}return[e,o]}var BOe=new B2(!0);function T5(n){var t=n.stroke;return!(null==t||"none"===t||!(n.lineWidth>0))}function _$(n){return"string"==typeof n&&"none"!==n}function R5(n){var t=n.fill;return null!=t&&"none"!==t}function z$(n,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function v$(n,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function DS(n,t,e){var o=_Y(t.image,t.__image,e);if(K4(o)){var r=n.createPattern(o,t.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*cpe),i.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(i)}return r}}var A$=["shadowBlur","shadowOffsetX","shadowOffsetY"],y$=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function C$(n,t,e,o,r){var i=!1;if(!o&&t===(e=e||{}))return!1;if(o||t.opacity!==e.opacity){Fs(n,r),i=!0;var a=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(a)?wh.opacity:a}(o||t.blend!==e.blend)&&(i||(Fs(n,r),i=!0),n.globalCompositeOperation=t.blend||wh.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,o,r){if(!this[Ca]){if(this._disposed)return;var i,a,s;if(V0(o)&&(r=o.lazyUpdate,i=o.silent,a=o.replaceMerge,s=o.transition,o=o.notMerge),this[Ca]=!0,!this._model||o){var c=new Jge(this._api),p=this._theme,d=this._model=new KV;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,p,this._locale,c)}this._model.setOption(e,{replaceMerge:a},$S);var u={seriesTransition:s,optionChanged:!0};if(r)this[Ys]={silent:i,updateParams:u},this[Ca]=!1,this.getZr().wakeUp();else{try{sO(this),K2.update.call(this,null,u)}catch(h){throw this[Ys]=null,this[Ca]=!1,h}this._ssr||this._zr.flush(),this[Ys]=null,this[Ca]=!1,cz.call(this,i),lz.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||j1.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return this._zr.painter.getRenderedCanvas({backgroundColor:(e=e||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return this._zr.painter.renderToString({useViewBox:(e=e||{}).useViewBox})},t.prototype.getSvgDataURL=function(){if(j1.svgSupported){var e=this._zr;return We(e.storage.getDisplayList(),function(r){r.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var r=this._model,i=[],a=this;We((e=e||{}).excludeComponents,function(c){r.eachComponent({mainType:c},function(p){var d=a._componentsMap[p.__viewId];d.group.ignore||(i.push(d),d.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return We(i,function(c){c.group.ignore=!1}),s}},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var o="svg"===e.type,r=this.group,i=Math.min,a=Math.max,s=1/0;if(B5[r]){var c=s,p=s,d=-s,u=-s,h=[],M=e&&e.pixelRatio||this.getDevicePixelRatio();We(oM,function(L,D){if(L.group===r){var X=o?L.getZr().painter.getSvgDom().innerHTML:L.renderToCanvas(Dn(e)),H=L.getDom().getBoundingClientRect();c=i(H.left,c),p=i(H.top,p),d=a(H.right,d),u=a(H.bottom,u),h.push({dom:X,left:H.left,top:H.top})}});var g=(d*=M)-(c*=M),v=(u*=M)-(p*=M),A=bu.createCanvas(),y=YV(A,{renderer:o?"svg":"canvas"});if(y.resize({width:g,height:v}),o){var q="";return We(h,function(L){q+=''+L.dom+""}),y.painter.getSvgRoot().innerHTML=q,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new Bi({shape:{x:0,y:0,width:g,height:v},style:{fill:e.connectedBackgroundColor}})),We(h,function(L){var D=new Sh({style:{x:L.left*M-c,y:L.top*M-p,image:L.dom}});y.add(D)}),y.refreshImmediately(),A.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,o){return YS(this,"convertToPixel",e,o)},t.prototype.convertFromPixel=function(e,o){return YS(this,"convertFromPixel",e,o)},t.prototype.containPixel=function(e,o){var i;if(!this._disposed)return We(ET(this._model,e),function(s,c){c.indexOf("Models")>=0&&We(s,function(p){var d=p.coordinateSystem;if(d&&d.containPoint)i=i||!!d.containPoint(o);else if("seriesModels"===c){var u=this._chartsMap[p.__viewId];u&&u.containPoint&&(i=i||u.containPoint(o,p))}},this)},this),!!i},t.prototype.getVisual=function(e,o){var i=ET(this._model,e,{defaultMainType:"series"}),s=i.seriesModel.getData(),c=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return null!=c?function xOe(n,t,e){switch(e){case"color":return n.getItemVisual(t,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,e)}}(s,c,o):function qOe(n,t){switch(t){case"color":return n.getVisual("style")[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t)}}(s,o)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;We(Mme,function(o){var r=function(i){var c,a=e.getModel(),s=i.target;if("globalout"===o?c={}:s&&az(s,function(g){var v=Do(g);if(v&&null!=v.dataIndex){var A=v.dataModel||a.getSeriesByIndex(v.seriesIndex);return c=A&&A.getDataParams(v.dataIndex,v.dataType)||{},!0}if(v.eventData)return c=Xt({},v.eventData),!0},!0),c){var d=c.componentType,u=c.componentIndex;("markLine"===d||"markPoint"===d||"markArea"===d)&&(d="series",u=c.seriesIndex);var h=d&&null!=u&&a.getComponent(d,u),M=h&&e["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];c.event=i,c.type=o,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:c,model:h,view:M},e.trigger(o,c)}};r.zrEventfulCallAtLast=!0,e._zr.on(o,r,e)}),We(pz,function(o,r){e._messageCenter.on(r,function(i){this.trigger(r,i)},e)}),We(["selectchanged"],function(o){e._messageCenter.on(o,function(r){this.trigger(o,r)},e)}),function LOe(n,t,e){n.on("selectchanged",function(o){var r=e.getModel();o.isFromClick?(aO("map","selectchanged",t,r,o),aO("pie","selectchanged",t,r,o)):"select"===o.fromAction?(aO("map","selected",t,r,o),aO("pie","selected",t,r,o)):"unselect"===o.fromAction&&(aO("map","unselected",t,r,o),aO("pie","unselected",t,r,o))})}(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&DH(this.getDom(),ZS,"");var o=this,r=o._api,i=o._model;We(o._componentsViews,function(a){a.dispose(i,r)}),We(o._chartsViews,function(a){a.dispose(i,r)}),o._zr.dispose(),o._dom=o._model=o._chartsMap=o._componentsMap=o._chartsViews=o._componentsViews=o._scheduler=o._api=o._zr=o._throttledZrFlush=o._theme=o._coordSysMgr=o._messageCenter=null,delete oM[o.id]}},t.prototype.resize=function(e){if(!this[Ca]){if(this._disposed)return;this._zr.resize(e);var o=this._model;if(this._loadingFX&&this._loadingFX.resize(),o){var r=o.resetOption("media"),i=e&&e.silent;this[Ys]&&(null==i&&(i=this[Ys].silent),r=!0,this[Ys]=null),this[Ca]=!0;try{r&&sO(this),K2.update.call(this,{type:"resize",animation:Xt({duration:0},e&&e.animation)})}catch(a){throw this[Ca]=!1,a}this[Ca]=!1,cz.call(this,i),lz.call(this,i)}}},t.prototype.showLoading=function(e,o){if(!this._disposed&&(V0(e)&&(o=e,e=""),e=e||"default",this.hideLoading(),GS[e])){var r=GS[e](this._api,o),i=this._zr;this._loadingFX=r,i.add(r)}},t.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var o=Xt({},e);return o.type=pz[e.type],o},t.prototype.dispatchAction=function(e,o){if(!this._disposed&&(V0(o)||(o={silent:!!o}),I5[e.type]&&this._model)){if(this[Ca])return void this._pendingActions.push(e);var r=o.silent;XS.call(this,e,r);var i=o.flush;i?this._zr.flush():!1!==i&&j1.browser.weChat&&this._throttledZrFlush(),cz.call(this,r),lz.call(this,r)}},t.prototype.updateLabelLayout=function(){ap.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(!this._disposed){var o=e.seriesIndex;this.getModel().getSeriesByIndex(o).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(u){u.clearColorPalette(),u.eachSeries(function(h){h.clearColorPalette()})}function r(u){for(var h=[],M=u.currentStates,g=0;g0?{duration:v,delay:M.get("delay"),easing:M.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(U_(y))return;if(y instanceof Po&&function Xue(n){var t=IH(n);t.normalFill=n.style.fill,t.normalStroke=n.style.stroke;var e=n.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}(y),y.__dirty){var q=y.prevStates;q&&y.useStates(q)}if(g){y.stateTransition=A;var L=y.getTextContent(),D=y.getTextGuideLine();L&&(L.stateTransition=A),D&&(D.stateTransition=A)}y.__dirty&&r(y)}})}sO=function(u){var h=u._scheduler;h.restorePipelines(u._model),h.prepareStageTasks(),FS(u,!0),FS(u,!1),h.plan()},FS=function(u,h){for(var M=u._model,g=u._scheduler,v=h?u._componentsViews:u._chartsViews,A=h?u._componentsMap:u._chartsMap,y=u._zr,q=u._api,L=0;Lh.get("hoverLayerThreshold")&&!j1.node&&!j1.worker&&h.eachSeries(function(A){if(!A.preventUsingHoverLayer){var y=u._chartsMap[A.__viewId];y.__alive&&y.eachRendered(function(q){q.states.emphasis&&(q.states.emphasis.hoverLayer=!0)})}})}(u,h),ap.trigger("series:afterupdate",h,M,v)},al=function(u){u[NS]=!0,u.getZr().wakeUp()},eG=function(u){u[NS]&&(u.getZr().storage.traverse(function(h){U_(h)||r(h)}),u[NS]=!1)},J$=function(u){return new(function(h){function M(){return null!==h&&h.apply(this,arguments)||this}return R1(M,h),M.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},M.prototype.getComponentByElement=function(g){for(;g;){var v=g.__ecComponentInfo;if(null!=v)return u._model.getComponent(v.mainType,v.index);g=g.parent}},M.prototype.enterEmphasis=function(g,v){qC(g,v),al(u)},M.prototype.leaveEmphasis=function(g,v){WC(g,v),al(u)},M.prototype.enterBlur=function(g){(function Sue(n){vu(n,FT)})(g),al(u)},M.prototype.leaveBlur=function(g){$H(g),al(u)},M.prototype.enterSelect=function(g){GH(g),al(u)},M.prototype.leaveSelect=function(g){ZH(g),al(u)},M.prototype.getModel=function(){return u.getModel()},M.prototype.getViewOfComponentModel=function(g){return u.getViewOfComponentModel(g)},M.prototype.getViewOfSeriesModel=function(g){return u.getViewOfSeriesModel(g)},M}(JV))(u)},Q$=function(u){function h(M,g){for(var v=0;v=0)){aG.push(e);var i=f$.wrapStageHandler(e,r);i.__prio=t,i.__raw=e,n.push(i)}}function sG(n,t){GS[n]=t}rM(2e3,lOe),rM(4500,pOe),rM(4500,dOe),rM(2e3,wOe),rM(4500,POe),rM(7e3,function KOe(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var o=e.getData();o.hasItemVisual()&&o.each(function(a){var s=o.getItemVisual(a,"decal");s&&(o.ensureUniqueItemVisual(a,"style").decal=ES(s,t))});var r=o.getVisual("decal");r&&(o.getVisual("style").decal=ES(r,t))}})}),rG(i$),iG(900,function aOe(n){var t=X1();n.eachSeries(function(e){var o=e.get("stack");if(o){var r=t.get(o)||t.set(o,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(sOe)}),sG("default",function uOe(n,t){Qn(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new as,o=new Bi({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(o);var a,r=new _a({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Bi({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(i),t.showSpinner&&((a=new kR({shape:{startAngle:-P5/2,endAngle:-P5/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*P5/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*P5/2}).delay(300).start("circularInOut"),e.add(a)),e.resize=function(){var s=r.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,p=(n.getWidth()-2*c-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:c),d=n.getHeight()/2;t.showSpinner&&a.setShape({cx:p,cy:d}),i.setShape({x:p-c,y:d-c,width:2*c,height:2*c}),o.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}),cO({type:Eh,event:Eh,update:Eh},ks),cO({type:wC,event:wC,update:wC},ks),cO({type:w_,event:w_,update:w_},ks),cO({type:PC,event:PC,update:PC},ks),cO({type:P_,event:P_,update:P_},ks),oG("light",AOe),oG("dark",yOe);var cG=[],Cme={registerPreprocessor:rG,registerProcessor:iG,registerPostInit:function mme(n){KS("afterinit",n)},registerPostUpdate:function _me(n){KS("afterupdate",n)},registerUpdateLifecycle:KS,registerAction:cO,registerCoordinateSystem:function zme(n,t){fR.register(n,t)},registerLayout:function vme(n,t){JS(N5,n,t,1e3,"layout")},registerVisual:rM,registerTransform:function Rfe(n){var t=(n=Dn(n)).type;t||is("");var o=t.split(":");2!==o.length&&is("");var r=!1;"echarts"===o[0]&&(t=o[1],r=!0),n.__isBuiltIn=r,hj.set(t,n)},registerLoading:sG,registerMap:function Ame(n,t,e){var o=function eme(n){return I$[n]}("registerMap");o&&o(n,t,e)},registerImpl:function QOe(n,t){I$[n]=t},PRIORITY:ume,ComponentModel:$o,ComponentView:wu,SeriesModel:Jg,ChartView:Cu,registerComponentModel:function(n){$o.registerClass(n)},registerComponentView:function(n){wu.registerClass(n)},registerSeriesModel:function(n){Jg.registerClass(n)},registerChartView:function(n){Cu.registerClass(n)},registerSubTypeDefaulter:function(n,t){$o.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){!function Ege(n,t){C5[n]=t}(n,t)}};function J2(n){f0(n)?We(n,function(t){J2(t)}):zo(cG,n)>=0||(cG.push(n),S1(n)&&(n={install:n}),n.install(Cme))}var wme=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return R1(t,n),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}($o);const Pme=wme;function lG(n){var t=n.get("confine");return null!=t?!!t:"richText"===n.get("renderMode")}function pG(n){if(j1.domSupported)for(var t=document.documentElement.style,e=0,o=n.length;e-1?(s+="top:50%",c+="translateY(-50%) rotate("+(p="left"===i?-225:-45)+"deg)"):(s+="left:50%",c+="translateX(-50%) rotate("+(p="top"===i?225:45)+"deg)");var d=p*Math.PI/180,u=a+r,h=u*Math.abs(Math.cos(d))+u*Math.abs(Math.sin(d)),g=t+" solid "+r+"px;";return'
'}(o,r,i)),S0(t))a.innerHTML=t+s;else if(t){a.innerHTML="",f0(t)||(t=[t]);for(var c=0;c=0?this._tryShow(i,a):"leave"===r&&this._hide(a))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,o=this._ecModel,r=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(e,o,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,o,r,i){if(i.from!==this.uid&&!j1.node&&r.getDom()){var a=gG(i,r);this._ticket="";var s=i.dataByCoordSys,c=function Ume(n,t,e){var o=IT(n).queryOptionMap,r=o.keys()[0];if(r&&"series"!==r){var c,a=C_(t,r,o.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(e.getViewOfComponentModel(a).group.traverse(function(p){var d=Do(p).tooltipConfig;if(d&&d.name===n.name)return c=p,!0}),c))return{componentMainType:r,componentIndex:a.componentIndex,el:c}}}(i,o,r);if(c){var p=c.el.getBoundingRect().clone();p.applyTransform(c.el.transform),this._tryShow({offsetX:p.x+p.width/2,offsetY:p.y+p.height/2,target:c.el,position:i.position,positionDefault:"bottom"},a)}else if(i.tooltip&&null!=i.x&&null!=i.y){var d=Fme;d.x=i.x,d.y=i.y,d.update(),Do(d).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:d},a)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},a);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,o,r,i))return;var u=zV(i,o),h=u.point[0],M=u.point[1];null!=h&&null!=M&&this._tryShow({offsetX:h,offsetY:M,target:u.el,position:i.position,positionDefault:"bottom"},a)}else null!=i.x&&null!=i.y&&(r.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:r.getZr().findHover(i.x,i.y).target},a))}},t.prototype.manuallyHideTip=function(e,o,r,i){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(gG(i,r))},t.prototype._manuallyAxisShowTip=function(e,o,r,i){var a=i.seriesIndex,s=i.dataIndex,c=o.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=s&&null!=c){var p=o.getSeriesByIndex(a);if(p&&"axis"===dz([p.getData().getItemModel(s),p,(p.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:i.position}),!0}},t.prototype._tryShow=function(e,o){var r=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,e);else if(r){var s,c;this._lastDataByCoordSys=null,az(r,function(p){return null!=Do(p).dataIndex?(s=p,!0):null!=Do(p).tooltipConfig?(c=p,!0):void 0},!0),s?this._showSeriesItemTooltip(e,s,o):c?this._showComponentItemTooltip(e,c,o):this._hide(o)}else this._lastDataByCoordSys=null,this._hide(o)}},t.prototype._showOrMove=function(e,o){var r=e.get("showDelay");o=Bo(o,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(o,r):o()},t.prototype._showAxisTooltip=function(e,o){var r=this._ecModel,i=this._tooltipModel,a=[o.offsetX,o.offsetY],s=dz([o.tooltipOption],i),c=this._renderMode,p=[],d=F_("section",{blocks:[],noHeader:!0}),u=[],h=new WR;We(e,function(q){We(q.dataByAxis,function(L){var D=r.getComponent(L.axisDim+"Axis",L.axisIndex),X=L.value;if(D&&null!=X){var H=fV(X,D.axis,r,L.seriesDataIndices,L.valueLabelOpt),re=F_("section",{header:H,noHeader:!dd(H),sortBlocks:!0,blocks:[]});d.blocks.push(re),We(L.seriesDataIndices,function(ee){var le=r.getSeriesByIndex(ee.seriesIndex),he=ee.dataIndexInside,Me=le.getDataParams(he);if(!(Me.dataIndex<0)){Me.axisDim=L.axisDim,Me.axisIndex=L.axisIndex,Me.axisType=L.axisType,Me.axisId=L.axisId,Me.axisValue=hS(D.axis,{value:X}),Me.axisValueLabel=H,Me.marker=h.makeTooltipMarker("item",Hh(Me.color),c);var me=uj(le.formatTooltip(he,!0,null)),xe=me.frag;if(xe){var Ve=dz([le],i).get("valueFormatter");re.blocks.push(Ve?Xt({valueFormatter:Ve},xe):xe)}me.text&&u.push(me.text),p.push(Me)}})}})}),d.blocks.reverse(),u.reverse();var M=o.position,g=s.get("order"),v=_j(d,h,c,g,r.get("useUTC"),s.get("textStyle"));v&&u.unshift(v);var y=u.join("richText"===c?"\n\n":"
");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,p)?this._updatePosition(s,M,a[0],a[1],this._tooltipContent,p):this._showTooltipContent(s,y,p,Math.random()+"",a[0],a[1],M,null,h)})},t.prototype._showSeriesItemTooltip=function(e,o,r){var i=this._ecModel,a=Do(o),s=a.seriesIndex,c=i.getSeriesByIndex(s),p=a.dataModel||c,d=a.dataIndex,u=a.dataType,h=p.getData(u),M=this._renderMode,g=e.positionDefault,v=dz([h.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),A=v.get("trigger");if(null==A||"item"===A){var y=p.getDataParams(d,u),q=new WR;y.marker=q.makeTooltipMarker("item",Hh(y.color),M);var L=uj(p.formatTooltip(d,!1,u)),D=v.get("order"),X=v.get("valueFormatter"),H=L.frag,re=H?_j(X?Xt({valueFormatter:X},H):H,q,M,D,i.get("useUTC"),v.get("textStyle")):L.text,ee="item_"+p.name+"_"+d;this._showOrMove(v,function(){this._showTooltipContent(v,re,y,ee,e.offsetX,e.offsetY,e.position,e.target,q)}),r({type:"showTip",dataIndexInside:d,dataIndex:h.getRawIndex(d),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,o,r){var i=Do(o),s=i.tooltipConfig.option||{};S0(s)&&(s={content:s,formatter:s});var p=[s],d=this._ecModel.getComponent(i.componentMainType,i.componentIndex);d&&p.push(d),p.push({formatter:s.content});var u=e.positionDefault,h=dz(p,this._tooltipModel,u?{position:u}:null),M=h.get("content"),g=Math.random()+"",v=new WR;this._showOrMove(h,function(){var A=Dn(h.get("formatterParams")||{});this._showTooltipContent(h,M,A,g,e.offsetX,e.offsetY,e.position,o,v)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,o,r,i,a,s,c,p,d){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var h=e.get("formatter");c=c||e.get("position");var M=o,v=this._getNearestPoint([a,s],r,e.get("trigger"),e.get("borderColor")).color;if(h)if(S0(h)){var A=e.ecModel.get("useUTC"),y=f0(r)?r[0]:r;M=h,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(M=UC(y.axisValue,M,A)),M=cj(M,r,!0)}else if(S1(h)){var L=Bo(function(D,X){D===this._ticket&&(u.setContent(X,d,e,v,c),this._updatePosition(e,c,a,s,u,r,p))},this);this._ticket=i,M=h(r,i,L)}else M=h;u.setContent(M,d,e,v,c),u.show(e,v),this._updatePosition(e,c,a,s,u,r,p)}},t.prototype._getNearestPoint=function(e,o,r,i){return"axis"===r||f0(o)?{color:i||("html"===this._renderMode?"#fff":"none")}:f0(o)?void 0:{color:i||o.color||o.borderColor}},t.prototype._updatePosition=function(e,o,r,i,a,s,c){var p=this._api.getWidth(),d=this._api.getHeight();o=o||e.get("position");var u=a.getSize(),h=e.get("align"),M=e.get("verticalAlign"),g=c&&c.getBoundingRect().clone();if(c&&g.applyTransform(c.transform),S1(o)&&(o=o([r,i],s,a.el,g,{viewSize:[p,d],contentSize:u.slice()})),f0(o))r=Vo(o[0],p),i=Vo(o[1],d);else if(V0(o)){var v=o;v.width=u[0],v.height=u[1];var A=jh(v,{width:p,height:d});r=A.x,i=A.y,h=null,M=null}else if(S0(o)&&c){var y=function jme(n,t,e,o){var r=e[0],i=e[1],a=Math.ceil(Math.SQRT2*o)+8,s=0,c=0,p=t.width,d=t.height;switch(n){case"inside":s=t.x+p/2-r/2,c=t.y+d/2-i/2;break;case"top":s=t.x+p/2-r/2,c=t.y-i-a;break;case"bottom":s=t.x+p/2-r/2,c=t.y+d+a;break;case"left":s=t.x-r-a,c=t.y+d/2-i/2;break;case"right":s=t.x+p+a,c=t.y+d/2-i/2}return[s,c]}(o,g,u,e.get("borderWidth"));r=y[0],i=y[1]}else y=function Hme(n,t,e,o,r,i,a){var s=e.getSize(),c=s[0],p=s[1];return null!=i&&(n+c+i+2>o?n-=c+i:n+=i),null!=a&&(t+p+a>r?t-=p+a:t+=a),[n,t]}(r,i,a,p,d,h?null:20,M?null:20),r=y[0],i=y[1];h&&(r-=OG(h)?u[0]/2:"right"===h?u[0]:0),M&&(i-=OG(M)?u[1]/2:"bottom"===M?u[1]:0),lG(e)&&(y=function Xme(n,t,e,o,r){var i=e.getSize(),a=i[0],s=i[1];return n=Math.min(n+a,o)-a,t=Math.min(t+s,r)-s,[n=Math.max(n,0),t=Math.max(t,0)]}(r,i,a,p,d),r=y[0],i=y[1]),a.moveTo(r,i)},t.prototype._updateContentNotChangedOnAxis=function(e,o){var r=this._lastDataByCoordSys,i=this._cbParamsList,a=!!r&&r.length===e.length;return a&&We(r,function(s,c){var p=s.dataByAxis||[],u=(e[c]||{}).dataByAxis||[];(a=a&&p.length===u.length)&&We(p,function(h,M){var g=u[M]||{},v=h.seriesDataIndices||[],A=g.seriesDataIndices||[];(a=a&&h.value===g.value&&h.axisType===g.axisType&&h.axisId===g.axisId&&v.length===A.length)&&We(v,function(y,q){var L=A[q];a=a&&y.seriesIndex===L.seriesIndex&&y.dataIndex===L.dataIndex}),i&&We(h.seriesDataIndices,function(y){var q=y.seriesIndex,L=o[q],D=i[q];L&&D&&D.data!==L.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=o,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,o){j1.node||!o.getDom()||(rS(this,"_updatePosition"),this._tooltipContent.dispose(),gS("itemTooltip",o))},t.type="tooltip",t}(wu);function dz(n,t,e){var r,o=t.ecModel;e?(r=new va(e,o,o),r=new va(t.option,r,o)):r=t;for(var i=n.length-1;i>=0;i--){var a=n[i];a&&(a instanceof va&&(a=a.get("tooltip",!0)),S0(a)&&(a={formatter:a}),a&&(r=new va(a,r,o)))}return r}function gG(n,t){return n.dispatchAction||Bo(t.dispatchAction,t)}function OG(n){return"center"===n||"middle"===n}const Vme=Yme;function uz(n){J2(CV),n.registerComponentModel(Pme),n.registerComponentView(Vme),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ks),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ks)}var $me=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return R1(t,n),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}($o);const Gme=$me;var Zme=function(){function n(){}return n.prototype.getNeedCrossZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n}(),eD=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return R1(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ql).models[0]},t.type="cartesian2dAxis",t}($o);pd(eD,Zme);var mG={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kme=Un({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mG),tD=Un({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},mG);const e3e={category:Kme,value:tD,time:Un({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},tD),log:Qn({logBase:10},tD)};var t3e={value:1,category:1,time:1,log:1};function _G(n,t,e,o){We(t3e,function(r,i){var a=Un(Un({},e3e[i],!0),o,!0),s=function(c){function p(){var d=null!==c&&c.apply(this,arguments)||this;return d.type=t+"Axis."+i,d}return R1(p,c),p.prototype.mergeDefaultAndTheme=function(d,u){var h=N_(this),M=h?QC(d):{};Un(d,u.getTheme().get(i+"Axis")),Un(d,this.getDefaultOption()),d.type=zG(d),h&&Zg(d,M,h)},p.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=sS.createByAxisModel(this))},p.prototype.getCategories=function(d){var u=this.option;if("category"===u.type)return d?u.data:this.__ordinalMeta.categories},p.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},p.type=t+"Axis."+i,p.defaultOption=a,p}(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",zG)}function zG(n){return n.type||(n.data?"category":"value")}var n3e=function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return e1(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),os(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n}(),nD=["x","y"];function vG(n){return"interval"===n.type||"time"===n.type}var r3e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=nD,e}return R1(t,n),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,o=this.getAxis("y").scale;if(vG(e)&&vG(o)){var r=e.getExtent(),i=o.getExtent(),a=this.dataToPoint([r[0],i[0]]),s=this.dataToPoint([r[1],i[1]]),c=r[1]-r[0],p=i[1]-i[0];if(c&&p){var d=(s[0]-a[0])/c,u=(s[1]-a[1])/p,g=this._transform=[d,0,0,u,a[0]-r[0]*d,a[1]-i[0]*u];this._invTransform=jL([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var o=this.getAxis("x"),r=this.getAxis("y");return o.contain(o.toLocalCoord(e[0]))&&r.contain(r.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,o){var r=this.dataToPoint(e),i=this.dataToPoint(o),a=this.getArea(),s=new eo(r[0],r[1],i[0]-r[0],i[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,o,r){r=r||[];var i=e[0],a=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=a&&isFinite(a))return $c(r,e,this._transform);var s=this.getAxis("x"),c=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(i,o)),r[1]=c.toGlobalCoord(c.dataToCoord(a,o)),r},t.prototype.clampData=function(e,o){var r=this.getAxis("x").scale,i=this.getAxis("y").scale,a=r.getExtent(),s=i.getExtent(),c=r.parse(e[0]),p=i.parse(e[1]);return(o=o||[])[0]=Math.min(Math.max(Math.min(a[0],a[1]),c),Math.max(a[0],a[1])),o[1]=Math.min(Math.max(Math.min(s[0],s[1]),p),Math.max(s[0],s[1])),o},t.prototype.pointToData=function(e,o){var r=[];if(this._invTransform)return $c(r,e,this._invTransform);var i=this.getAxis("x"),a=this.getAxis("y");return r[0]=i.coordToData(i.toLocalCoord(e[0]),o),r[1]=a.coordToData(a.toLocalCoord(e[1]),o),r},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1]),i=Math.min(o[0],o[1]),a=Math.max(e[0],e[1])-r,s=Math.max(o[0],o[1])-i;return new eo(r,i,a,s)},t}(n3e);const i3e=r3e;var fz=Jr();function AG(n,t){var i,a,e=yG(n,"labels"),o=MS(t);return CG(e,o)||(S1(o)?i=xG(n,o):(a="auto"===o?function d3e(n){return fz(n).autoInterval??(fz(n).autoInterval=n.calculateCategoryInterval())}(n):o,i=PG(n,a)),wG(e,o,{labels:i,labelCategoryInterval:a}))}function yG(n,t){return fz(n)[t]||(fz(n)[t]=[])}function CG(n,t){for(var e=0;e1&&d/c>2&&(p=Math.round(Math.ceil(p/c)*c));var u=iV(n),h=a.get("showMinLabel")||u,M=a.get("showMaxLabel")||u;h&&p!==i[0]&&v(i[0]);for(var g=p;g<=i[1];g+=c)v(g);function v(A){var y={value:A};s.push(e?A:{formattedLabel:o(y),rawLabel:r.getLabel(y),tickValue:A})}return M&&g-c!==i[1]&&v(i[1]),s}function xG(n,t,e){var o=n.scale,r=K_(n),i=[];return We(o.getTicks(),function(a){var s=o.getLabel(a),c=a.value;t(a.value,s)&&i.push(e?c:{formattedLabel:r(a),rawLabel:s,tickValue:c})}),i}var qG=[0,1],h3e=function(){function n(t,e,o){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=o||[0,0]}return n.prototype.contain=function(t){var e=this._extent,o=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=o&&t<=r},n.prototype.containData=function(t){return this.scale.contain(t)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(t){return function iue(n,t){var e=Math.log,o=Math.LN10,r=Math.floor(e(n[1]-n[0])/o),i=Math.round(e(Math.abs(t[1]-t[0]))/o),a=Math.min(Math.max(-r+i,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(t,e){var o=this._extent;o[0]=t,o[1]=e},n.prototype.dataToCoord=function(t,e){var o=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&WG(o=o.slice(),r.count()),RT(t,qG,o,e)},n.prototype.coordToData=function(t,e){var o=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&WG(o=o.slice(),r.count());var i=RT(t,o,qG,e);return this.scale.scale(i)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=e1(function s3e(n,t){return"category"===n.type?function l3e(n,t){var i,a,e=yG(n,"ticks"),o=MS(t),r=CG(e,o);if(r)return r;if((!t.get("show")||n.scale.isBlank())&&(i=[]),S1(o))i=xG(n,o,!0);else if("auto"===o){var s=AG(n,n.getLabelModel());a=s.labelCategoryInterval,i=e1(s.labels,function(c){return c.tickValue})}else i=PG(n,a=o,!0);return wG(e,o,{ticks:i,tickCategoryInterval:a})}(n,t):{ticks:e1(n.scale.getTicks(),function(e){return e.value})}}(this,e).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function M3e(n,t,e,o){var r=t.length;if(n.onBand&&!e&&r){var a,i=n.getExtent();if(1===r)t[0].coord=i[0],a=t[1]={coord:i[0]};else{var p=(t[r-1].coord-t[0].coord)/(t[r-1].tickValue-t[0].tickValue);We(t,function(M){M.coord-=p/2});var d=n.scale.getExtent();t.push(a={coord:t[r-1].coord+p*(1+d[1]-t[r-1].tickValue)})}var u=i[0]>i[1];h(t[0].coord,i[0])&&(o?t[0].coord=i[0]:t.shift()),o&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],a.coord)&&(o?a.coord=i[1]:t.pop()),o&&h(a.coord,i[1])&&t.push({coord:i[1]})}function h(M,g){return M=Kr(M),g=Kr(g),u?M>g:M0&&e<100||(e=5),e1(this.scale.getMinorTicks(e),function(i){return e1(i,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this)},n.prototype.getViewLabels=function(){return function a3e(n){return"category"===n.type?function c3e(n){var t=n.getLabelModel(),e=AG(n,t);return!t.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}(n):function p3e(n){var t=n.scale.getTicks(),e=K_(n);return{labels:e1(t,function(o,r){return{level:o.level,formattedLabel:e(o,r),rawLabel:n.scale.getLabel(o),tickValue:o.value}})}}(n)}(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),o=e[1]-e[0]+(this.onBand?1:0);0===o&&(o=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/o},n.prototype.calculateCategoryInterval=function(){return function u3e(n){var t=function f3e(n){var t=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(n),e=K_(n),o=(t.axisRotate-t.labelRotate)/180*Math.PI,r=n.scale,i=r.getExtent(),a=r.count();if(i[1]-i[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var c=i[0],p=n.dataToCoord(c+1)-n.dataToCoord(c),d=Math.abs(p*Math.cos(o)),u=Math.abs(p*Math.sin(o)),h=0,M=0;c<=i[1];c+=s){var v,A=UL(e({value:c}),t.font,"center","top");v=1.3*A.height,h=Math.max(h,1.3*A.width,7),M=Math.max(M,v,7)}var y=h/d,q=M/u;isNaN(y)&&(y=1/0),isNaN(q)&&(q=1/0);var L=Math.max(0,Math.floor(Math.min(y,q))),D=fz(n.model),X=n.getExtent(),H=D.lastAutoInterval,re=D.lastTickCount;return null!=H&&null!=re&&Math.abs(H-L)<=1&&Math.abs(re-a)<=1&&H>L&&D.axisExtent0===X[0]&&D.axisExtent1===X[1]?L=H:(D.lastTickCount=a,D.lastAutoInterval=L,D.axisExtent0=X[0],D.axisExtent1=X[1]),L}(this)},n}();function WG(n,t){var r=(n[1]-n[0])/t/2;n[0]+=r,n[1]-=r}var b3e=function(n){function t(e,o,r,i,a){var s=n.call(this,e,o,r)||this;return s.index=0,s.type=i||"value",s.position=a||"bottom",s}return R1(t,n),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),e&&o[0]>o[1]&&o.reverse(),o},t.prototype.pointToData=function(e,o){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),o)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(h3e);const g3e=b3e;var oD=Math.log,m3e=function(){function n(t,e,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nD,this._initCartesian(t,e,o),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var o=this._axesMap;function r(a){var s,c=Uo(a),p=c.length;if(p){for(var d=[],u=p-1;u>=0;u--){var M=a[+c[u]],g=M.model,v=M.scale;cS(v)&&g.get("alignTicks")&&null==g.get("interval")?d.push(M):(rV(v,g),cS(v)&&(s=M))}d.length&&(s||rV((s=d.pop()).scale,s.model),We(d,function(A){!function O3e(n,t,e){var o=G_.prototype,r=o.getTicks.call(e),i=o.getTicks.call(e,!0),a=r.length-1,s=o.getInterval.call(e),c=oV(n,t),p=c.extent,d=c.fixMin,u=c.fixMax;if("log"===n.type){var h=oD(n.base);p=[oD(p[0])/h,oD(p[1])/h]}n.setExtent(p[0],p[1]),n.calcNiceExtent({splitNumber:a,fixMin:d,fixMax:u});var M=o.getExtent.call(n);d&&(p[0]=M[0]),u&&(p[1]=M[1]);var g=o.getInterval.call(n),v=p[0],A=p[1];if(d&&u)g=(A-v)/a;else if(d)for(A=p[0]+g*a;Ap[0]&&isFinite(v)&&isFinite(p[0]);)g=lS(g),v=p[1]-g*a;else{n.getTicks().length-1>a&&(g=lS(g));var q=g*a;(v=Kr((A=Math.ceil(p[1]/g)*g)-q))<0&&p[0]>=0?(v=0,A=Kr(q)):A>0&&p[1]<=0&&(A=0,v=-Kr(q))}var L=(r[0].value-i[0].value)/s,D=(r[a].value-i[a].value)/s;o.setExtent.call(n,v+g*L,A+g*D),o.setInterval.call(n,g),(L||D)&&o.setNiceExtent.call(n,v+g,A-g)}(A.scale,A.model,s.scale)}))}}this._updateScale(t,this.model),r(o.x),r(o.y);var i={};We(o.x,function(a){LG(o,"y",a,i)}),We(o.y,function(a){LG(o,"x",a,i)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,o){var r=t.getBoxLayoutParams(),i=!o&&t.get("containLabel"),a=jh(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;function c(){We(s,function(p){var d=p.isHorizontal(),u=d?[0,a.width]:[0,a.height],h=p.inverse?1:0;p.setExtent(u[h],u[1-h]),function _3e(n,t){var e=n.getExtent(),o=e[0]+e[1];n.toGlobalCoord="x"===n.dim?function(r){return r+t}:function(r){return o-r+t},n.toLocalCoord="x"===n.dim?function(r){return r-t}:function(r){return o-r+t}}(p,d?a.x:a.y)})}c(),i&&(We(s,function(p){if(!p.model.get(["axisLabel","inside"])){var d=function Pbe(n){var e=n.scale;if(n.model.get(["axisLabel","show"])&&!e.isBlank()){var o,r,i=e.getExtent();r=e instanceof UU?e.count():(o=e.getTicks()).length;var c,a=n.getLabelModel(),s=K_(n),p=1;r>40&&(p=Math.ceil(r/40));for(var d=0;d0&&o>0||e<0&&o<0)}(n)}const z3e=m3e;var iD=Jr(),y3e=["axisLine","axisTickLabel","axisName"],C3e=["splitArea","splitLine","minorSplitLine"],RG=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return R1(t,n),t.prototype.render=function(e,o,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new as,this.group.add(this._axisGroup),e.get("show")){var s=e.getCoordSysModel(),c=bS(s,e),p=new uV(e,Xt({handleAutoShown:function(u){for(var h=s.coordinateSystem.getCartesians(),M=0;MF5?performance.now():Date.now(),kG=n=>{Y5[n]=void 0,lO[n]&&(lO[n]=void 0),F5&&(aD||performance.clearMeasures(n),performance.clearMarks(n))},EG=n=>{if(F5){if(aD&&W3e){const t=new PerformanceObserver(e=>{lO[n]=e.getEntries().find(o=>o.name===n),t.disconnect()});t.observe({entryTypes:["measure"]})}performance.mark(n)}Y5[n]=sD()},IG=(n,t)=>{try{const e=Y5[n];return F5?(t||performance.mark(`${n}-end`),performance.measure(n,n,t||`${n}-end`),aD?lO[n]?lO[n]:e?{duration:sD()-e,startTime:e,entryType:"measure",name:n}:{}:performance.getEntriesByName(n).pop()||{}):e?{duration:sD()-e,startTime:e,entryType:"measure",name:n}:{}}catch{return{}}finally{kG(n),kG(t||`${n}-end`)}},L3e=function(n,t,e,o){return{circle:n,progress:t,"progress-dark":e,pulse:o}};function T3e(n,t){if(1&n&&de(0,"span",1),2&n){const e=ce();T("ngClass",function d7(n,t,e,o,r,i,a){return M7(mt(),dr(),n,t,e,o,r,i,a)}(4,L3e,"circle"===e.appearance,"progress"===e.animation,"progress-dark"===e.animation,"pulse"===e.animation))("ngStyle",e.theme),Fc("aria-label",e.ariaLabel)("aria-valuetext",e.loadingText)}}const NG=new Qt("ngx-skeleton-loader.config");let tr=(()=>{class n{constructor(e){const{appearance:o="line",animation:r="progress",theme:i=null,loadingText:a="Loading...",count:s=1,ariaLabel:c="loading"}=e||{};this.appearance=o,this.animation=r,this.theme=i,this.loadingText=a,this.count=s,this.items=[],this.ariaLabel=c}ngOnInit(){EG("NgxSkeletonLoader:Rendered"),EG("NgxSkeletonLoader:Loaded"),this.validateInputValues()}validateInputValues(){/^\d+$/.test(`${this.count}`)||(this.count=1),this.items.length=this.count;-1===["progress","progress-dark","pulse","false"].indexOf(String(this.animation))&&(this.animation="progress"),-1===["circle","line",""].indexOf(String(this.appearance))&&(this.appearance="")}ngOnChanges(e){["count","animation","appearance"].find(o=>e[o]&&(e[o].isFirstChange()||e[o].previousValue===e[o].currentValue))||this.validateInputValues()}ngAfterViewInit(){IG("NgxSkeletonLoader:Rendered")}ngOnDestroy(){IG("NgxSkeletonLoader:Loaded")}}return n.\u0275fac=function(e){return new(e||n)(Re(NG,8))},n.\u0275cmp=Rt({type:n,selectors:[["ngx-skeleton-loader"]],inputs:{count:"count",loadingText:"loadingText",appearance:"appearance",animation:"animation",ariaLabel:"ariaLabel",theme:"theme"},features:[Yo],decls:1,vars:1,consts:[["class","skeleton-loader","aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",1,"skeleton-loader",3,"ngClass","ngStyle"]],template:function(e,o){1&e&&J(0,T3e,1,9,"span",0),2&e&&T("ngForOf",o.items)},dependencies:[Xo,Io,Jn],styles:['.skeleton-loader[_ngcontent-%COMP%]{box-sizing:border-box;overflow:hidden;position:relative;background:#eff1f6 no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.skeleton-loader[_ngcontent-%COMP%]:after, .skeleton-loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.circle[_ngcontent-%COMP%]{width:40px;height:40px;margin:5px;border-radius:50%}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{transform:translate(0)}.skeleton-loader.progress[_ngcontent-%COMP%]:after, .skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:after, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{-webkit-animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.skeleton-loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.skeleton-loader.pulse[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;-webkit-animation-delay:.5s;animation-delay:.5s}@media (prefers-reduced-motion: reduce){.skeleton-loader.pulse[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.progress[_ngcontent-%COMP%]{-webkit-animation:none;animation:none}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{background-image:none}}@-webkit-keyframes _ngcontent-%COMP%_progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@keyframes _ngcontent-%COMP%_progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@-webkit-keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0}),n})(),sp=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:NG,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({imports:[[Sn]]}),n})();function BG(n,t,e){var o=bu.createCanvas(),r=t.getWidth(),i=t.getHeight(),a=o.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=i+"px",o.setAttribute("data-zr-dom-id",n)),o.width=r*e,o.height=i*e,o}var R3e=function(n){function t(e,o,r){var a,i=n.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,r=r||bC,"string"==typeof e?a=BG(e,o,r):V0(e)&&(e=(a=e).id),i.id=e,i.dom=a;var s=a.style;return s&&(fY(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=o,i.dpr=r,i}return Ao(t,n),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=BG("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,o,r,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var A,a=[],s=this.maxRepaintRectCount,c=!1,p=new eo(0,0,0,0);function d(q){if(q.isFinite()&&!q.isZero())if(0===a.length)(L=new eo(0,0,0,0)).copy(q),a.push(L);else{for(var D=!1,X=1/0,H=0,re=0;re=s)}}for(var u=this.__startIndex;u15)break}Ve.prevElClipPaths&&y.restore()};if(q)if(0===q.length)ee=A.__endIndex;else for(var he=M.dpr,Me=0;Me0&&t>r[0]){for(c=0;ct);c++);s=o[r[c]]}if(r.splice(c+1,0,t),o[t]=e,!e.virtual)if(s){var p=s.dom;p.nextSibling?a.insertBefore(e.dom,p.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}},n.prototype.eachLayer=function(t,e){for(var o=this._zlevelList,r=0;r0?.01:0),this._needsManuallyCompositing),d.__builtin__||DL("ZLevel "+p+" has been used by unkown layer "+d.id),d!==i&&(d.__used=!0,d.__startIndex!==c&&(d.__dirty=!0),d.__startIndex=c,d.__drawIndex=d.incremental?-1:c,e(c),i=d),r.__dirty&gc&&!r.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=c))}e(c),this.eachBuiltinLayer(function(u,h){!u.__used&&u.getElementCount()>0&&(u.__dirty=!0,u.__startIndex=u.__endIndex=u.__drawIndex=0),u.__dirty&&u.__drawIndex<0&&(u.__drawIndex=u.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,We(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var o=this._layerConfig;o[t]?Un(o[t],e,!0):o[t]=e;for(var r=0;rMath.abs(o-t.clientWidth)>2&&(o=t.clientWidth,!0)),j(r=>t.clientWidth))}static getHeightSensor(t,e=2e3){let o=t.clientHeight;return lD(e).pipe(ht(r=>Math.abs(o-t.clientHeight)>2&&(o=t.clientHeight,!0)),j(r=>t.clientWidth))}}let Mz=(()=>{class n{constructor(e){this._el=e,this.extentions=[],this.isResizable=!0,this.defaultWidth=400,this.defaultHeight=400,this.periodicityInMiliSeconds=2e3,this.theme="",this.chartInit=new G1}ngOnInit(){J2([...this.extentions,N3e]),this._echartsInstance=function Ome(n,t,e){var o=!(e&&e.ssr);if(o){var r=function nG(n){return oM[function zue(n,t){return n.getAttribute?n.getAttribute(t):n[t]}(n,ZS)]}(n);if(r)return r}var i=new E5(n,t,e);return i.id="ec_"+bme++,oM[i.id]=i,o&&DH(n,ZS,i.id),Q$(i),ap.trigger("afterinit",i),i}(this._el.nativeElement,this.theme,{width:this._el.nativeElement.clientWidth===this.defaultWidth?400:void 0,height:0===this._el.nativeElement.clientHeight?this.defaultHeight:void 0}),this.chartInit.emit(this._echartsInstance),this._setParams(),this.isResizable&&this._addResizbleFunctionality()}ngOnChanges(e){e.options&&!e.options.firstChange&&this._setParams(),e.isResizable&&!e.isResizable.firstChange&&(this.isResizable?this._addResizbleFunctionality():null!=this._subscription&&this._subscription.unsubscribe())}_addResizbleFunctionality(){null!=this._subscription&&this._subscription.unsubscribe(),this._subscription=B3e.getWidthSensor(this._el.nativeElement).subscribe(()=>{null!=this._echartsInstance&&this._echartsInstance.resize()})}_setParams(){null!=this._echartsInstance&&null!=this.options&&this._echartsInstance.setOption(this.options,!0)}ngOnDestroy(){null!=this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(Re(fn))},n.\u0275dir=b0({type:n,selectors:[["","echarts",""]],inputs:{options:"options",extentions:"extentions",isResizable:"isResizable",defaultWidth:"defaultWidth",defaultHeight:"defaultHeight",periodicityInMiliSeconds:"periodicityInMiliSeconds",theme:"theme"},outputs:{chartInit:"chartInit"},features:[Yo]}),n})(),F3e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({}),n})();function Y3e(n,t){1&n&&(Ye(0),l(1," "),He())}const H3e=function(){return{display:"block",padding:"0"}},X3e=function(n){return{"margin-top":"0px","margin-bottom":"10px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":n}};function j3e(n,t){if(1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",4),l(2,"\n")),2&n){const e=ce();P(1),T("ngStyle",Et(2,H3e))("theme",Ht(3,X3e,(null==e.chart?null:e.chart.height)>20?"10px":"5px"))}}const U3e=function(n,t){return{"height.px":n,padding:t}},V3e=function(n,t){return{"height.px":n,opacity:t}};let pO=class Uk{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.loading=!0,this._data=null,this.echartsExtentions=[f5,uz,hz]}onChartInit(t){this._chart=t}drawChart(t){this.chart?.dummy&&(t=this.fillDummyData(t)),this.chart?.sort&&(t=ld.orderBy(t,"x","asc"));const e=[{data:t?.map(o=>o.y),name:this.chart?.yAxisName,type:"line",smooth:!0,symbol:"none",lineStyle:{color:this.chart?.lineColor,width:this.chart?.lineWidth},areaStyle:this.chart?.areaStyleColor?{color:this.chart?.areaStyleColor,opacity:.3}:null}];this._chart&&this._chart?.destroy();try{this.options={textStyle:{color:"#888888",fontSize:12,fontFamily:'"Montserrat", sans-serif'},xAxis:{type:this.chart?.xType||"category",name:this.chart?.xAxisName,data:t?.map(o=>o.x),axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1}},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1},splitLine:{show:!1}},tooltip:{triggerOn:"mousemove",trigger:"axis",show:!0,appendToBody:!0,backgroundColor:"#fff",formatter:o=>this.formatTooltip(o),textStyle:{fontSize:11}},grid:{show:!1,left:0,right:0,top:0,bottom:0},series:e,animation:!0},be(!0).pipe(Gr(600)).subscribe(()=>this.loading=!1)}catch(o){throw new Error(o)}}formatTooltip(t){let e="";for(let o=0;o${t[o]?.axisValue}\n
${t[o].seriesName}: ${this.chart?.yAxisTooltipSymbol??""}${t[o].value?.toLocaleString()}`;return e}subscribeToData(t){t?.pipe(ot(this)).subscribe(e=>{this.drawChart(e)})}fillDummyData(t){const r=new Date;for(let i=0;i<14;i++){const a=new Date(r);a.setDate(a.getDate()-(i+1)),Math.floor(6*Math.random()),t.unshift({x:a?.toISOString()?.split("T")[0],y:0})}return t}get pChart(){return this._chart}static#e=this.\u0275fac=function(e){return new(e||Uk)};static#t=this.\u0275cmp=Rt({type:Uk,selectors:[["storecloud-shared-chart"]],inputs:{chart:"chart",data:"data"},decls:10,vars:18,consts:[[3,"ngStyle"],["echarts","",3,"id","options","extentions","isResizable","defaultHeight","ngStyle","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),m(2,"div",1),yt("chartinit",function(i){return o.onChartInit(i)}),_(),l(3,"\n "),J(4,Y3e,2,0,"ng-container",2),l(5,"\n"),_(),l(6,"\n\n"),J(7,j3e,3,5,"ng-template",null,3,$t),l(9,"\n")),2&e){const r=gt(8);let i;xn("content pr-0 ",null!=o.chart&&o.chart.showYAxisLabel&&!o.loading?"pl-2":"",""),T("ngStyle",wr(12,U3e,o.loading?(null==o.chart?null:o.chart.loadingHeight)||(null==o.chart?null:o.chart.height):(null==o.chart?null:o.chart.height)||70,null==o.chart||null==o.chart.cssStyle?null:o.chart.cssStyle.padding)),P(2),co("id",null!==(i=null==o.chart?null:o.chart.id)&&void 0!==i?i:"chart_1"),T("options",o.options)("extentions",o.echartsExtentions)("isResizable",!0)("defaultHeight",(null==o.chart?null:o.chart.height)||70)("ngStyle",wr(15,V3e,(null==o.chart?null:o.chart.height)||70,o.loading?0:1)),P(2),T("ngIf",!o.loading)("ngIfElse",r)}},dependencies:[Q0,Jn,tr,Mz],styles:["ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-50%;left:50%;transform:translate(-50%,-50%)}.content[_ngcontent-%COMP%]{padding:0}"]})};pO=$e([p0({checkProperties:!0})],pO);var X5=2*Math.PI,YG=Math.PI/180;function HG(n,t){return jh(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function XG(n,t){var e=HG(n,t),o=n.get("center"),r=n.get("radius");f0(r)||(r=[0,r]);var d,u,i=Vo(e.width,t.getWidth()),a=Vo(e.height,t.getHeight()),s=Math.min(i,a),c=Vo(r[0],s/2),p=Vo(r[1],s/2),h=n.coordinateSystem;if(h){var M=h.dataToPoint(o);d=M[0]||0,u=M[1]||0}else f0(o)||(o=[o,o]),d=Vo(o[0],i)+e.x,u=Vo(o[1],a)+e.y;return{cx:d,cy:u,r0:c,r:p}}function $3e(n,t,e){t.eachSeriesByType(n,function(o){var r=o.getData(),i=r.mapDimension("value"),a=HG(o,e),s=XG(o,e),c=s.cx,p=s.cy,d=s.r,u=s.r0,h=-o.get("startAngle")*YG,M=o.get("minAngle")*YG,g=0;r.each(i,function(he){!isNaN(he)&&g++});var v=r.getSum(i),A=Math.PI/(v||g)*2,y=o.get("clockwise"),q=o.get("roseType"),L=o.get("stillShowZeroSum"),D=r.getDataExtent(i);D[0]=0;var X=X5,H=0,re=h,ee=y?1:-1;if(r.setLayout({viewRect:a,r:d}),r.each(i,function(he,Me){var me;if(isNaN(he))r.setItemLayout(Me,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:c,cy:p,r0:u,r:q?NaN:d});else{(me="area"!==q?0===v&&L?A:he*A:X5/g)0){t=t/180*Math.PI,lp.fromArray(n[0]),lo.fromArray(n[1]),Mr.fromArray(n[2]),g1.sub(zd,lp,lo),g1.sub(vd,Mr,lo);var e=zd.len(),o=vd.len();if(!(e<.001||o<.001)){zd.scale(1/e),vd.scale(1/o);var r=zd.dot(vd);if(Math.cos(t)1&&g1.copy(cs,Mr),cs.toArray(n[1])}}}}function t_e(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,lp.fromArray(n[0]),lo.fromArray(n[1]),Mr.fromArray(n[2]),g1.sub(zd,lo,lp),g1.sub(vd,Mr,lo);var o=zd.len(),r=vd.len();if(!(o<.001||r<.001)&&(zd.scale(1/o),vd.scale(1/r),zd.dot(t)=c)g1.copy(cs,Mr);else{cs.scaleAndAdd(vd,s/Math.tan(Math.PI/2-d));var u=Mr.x!==lo.x?(cs.x-lo.x)/(Mr.x-lo.x):(cs.y-lo.y)/(Mr.y-lo.y);if(isNaN(u))return;u<0?g1.copy(cs,lo):u>1&&g1.copy(cs,Mr)}cs.toArray(n[1])}}}function VG(n,t,e,o){var r="normal"===e,i=r?n:n.ensureState(e);i.ignore=t;var a=o.get("smooth");a&&!0===a&&(a=.3),i.shape=i.shape||{},a>0&&(i.shape.smooth=a);var s=o.getModel("lineStyle").getLineStyle();r?n.useStyle(s):i.style=s}function n_e(n,t){var e=t.smooth,o=t.points;if(o)if(n.moveTo(o[0][0],o[0][1]),e>0&&o.length>=3){var r=JL(o[0],o[1]),i=JL(o[1],o[2]);if(!r||!i)return n.lineTo(o[1][0],o[1][1]),void n.lineTo(o[2][0],o[2][1]);var a=Math.min(r,i)*e,s=QL([],o[1],o[0],a/r),c=QL([],o[1],o[2],a/i),p=QL([],s,c,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],p[0],p[1]),n.bezierCurveTo(c[0],c[1],c[0],c[1],o[2][0],o[2][1])}else for(var d=1;d0&&i&&H(-u/a,0,a);var q,L,A=n[0],y=n[a-1];return D(),q<0&&re(-q,.8),L<0&&re(L,.8),D(),X(q,L,1),X(L,q,-1),D(),q<0&&ee(-q),L<0&&ee(L),p}function D(){q=A.rect[t]-o,L=r-y.rect[t]-y.rect[e]}function X(le,he,Me){if(le<0){var me=Math.min(he,-le);if(me>0){H(me*Me,0,a);var xe=me+le;xe<0&&re(-xe*Me,1)}else re(-le*Me,1)}}function H(le,he,Me){0!==le&&(p=!0);for(var me=he;me0)for(xe=0;xe0;xe--)H(-Me[xe-1]*rt,xe,a)}}function ee(le){var he=le<0?-1:1;le=Math.abs(le);for(var Me=Math.ceil(le/(a-1)),me=0;me0?H(Me,0,me+1):H(-Me,a-me-1,a),(le-=Me)<=0)return}}(n,"y","height",t,e,o)})(n,c,c+a)&&function u(v){for(var A={list:[],maxY:0},y={list:[],maxY:0},q=0;qe?y:A,X=Math.abs(L.label.y-e);if(X>=D.maxY){var H=L.label.x-t-L.len2*r,re=o+L.len,ee=Math.abs(H)n.unconstrainedWidth?null:M:null)}var v=o.getBoundingRect();i.width=v.width,i.height=v.height+((o.style.margin||0)+2.1),i.y-=(i.height-u)/2}}}function pD(n){return"center"===n.position}function V5(n,t,e){var o=n.get("borderRadius");if(null==o)return e?{cornerRadius:0}:null;f0(o)||(o=[o,o,o,o]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:e1(o,function(i){return S2(i,r)})}}var c_e=function(n){function t(e,o,r){var i=n.call(this)||this;i.z2=2;var a=new _a;return i.setTextContent(a),i.updateData(e,o,r,!0),i}return R1(t,n),t.prototype.updateData=function(e,o,r,i){var a=this,s=e.hostModel,c=e.getItemModel(o),p=c.getModel("emphasis"),d=e.getItemLayout(o),u=Xt(V5(c.getModel("itemStyle"),d,!0),d);if(isNaN(u.startAngle))a.setShape(u);else{if(i){a.setShape(u);var h=s.getShallow("animationType");s.ecModel.ssr?(U2(a,{scaleX:0,scaleY:0},s,{dataIndex:o,isFrom:!0}),a.originX=u.cx,a.originY=u.cy):"scale"===h?(a.shape.r=d.r0,U2(a,{shape:{r:d.r}},s,o)):null!=r?(a.setShape({startAngle:r,endAngle:r}),U2(a,{shape:{startAngle:d.startAngle,endAngle:d.endAngle}},s,o)):(a.shape.endAngle=d.startAngle,_d(a,{shape:{endAngle:d.endAngle}},s,o))}else tU(a),_d(a,{shape:u},s,o);a.useStyle(e.getItemVisual(o,"style")),VT(a,c);var M=(d.startAngle+d.endAngle)/2,g=s.get("selectedOffset"),v=Math.cos(M)*g,A=Math.sin(M)*g,y=c.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,e,o),a.ensureState("emphasis").shape=Xt({r:d.r+(p.get("scale")&&p.get("scaleSize")||0)},V5(p.getModel("itemStyle"),d)),Xt(a.ensureState("select"),{x:v,y:A,shape:V5(c.getModel(["select","itemStyle"]),d)}),Xt(a.ensureState("blur"),{shape:V5(c.getModel(["blur","itemStyle"]),d)});var q=a.getTextGuideLine(),L=a.getTextContent();q&&Xt(q.ensureState("select"),{x:v,y:A}),Xt(L.ensureState("select"),{x:v,y:A}),LC(this,p.get("focus"),p.get("blurScope"),p.get("disabled"))}},t.prototype._updateLabel=function(e,o,r){var i=this,a=o.getItemModel(r),s=a.getModel("labelLine"),c=o.getItemVisual(r,"style"),p=c&&c.fill,d=c&&c.opacity;RC(i,SC(a),{labelFetcher:o.hostModel,labelDataIndex:r,inheritColor:p,defaultOpacity:d,defaultText:e.getFormattedLabel(r,"normal")||o.getName(r)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var h=e.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var M=this.getTextGuideLine();M||(M=new a5,this.setTextGuideLine(M)),function o_e(n,t,e){var o=n.getTextGuideLine(),r=n.getTextContent();if(r){for(var i=t.normal,a=i.get("show"),s=r.ignore,c=0;c0){for(var d=a.getItemLayout(0),u=1;isNaN(d&&d.startAngle)&&u0?"right":"left":Mt>0?"left":"right"}var mi=Math.PI,Wr=0,ti=me.get("rotate");if(vo(ti))Wr=ti*(mi/180);else if("center"===xe)Wr=0;else if("radial"===ti||!0===ti)Wr=Mt<0?-vt+mi:-vt;else if("tangential"===ti&&"outside"!==xe&&"outer"!==xe){var hs=Math.atan2(Mt,kt);hs<0&&(hs=2*mi+hs),kt>0&&(hs=mi+hs),Wr=hs-mi}if(i=!!Wr,le.x=Gt,le.y=I0,le.rotation=Wr,le.setStyle({verticalAlign:"middle"}),In){le.setStyle({align:En});var ea=le.states.select;ea&&(ea.x+=le.x,ea.y+=le.y)}else{var Lr=le.getBoundingRect().clone();Lr.applyTransform(le.getComputedTransform());var Js=(le.style.margin||0)+2.1;Lr.y-=Js/2,Lr.height+=Js,e.push({label:le,labelLine:he,position:xe,len:ke,len2:Ze,minTurnAngle:qe.get("minTurnAngle"),maxSurfaceAngle:qe.get("maxSurfaceAngle"),surfaceNormal:new g1(Mt,kt),linePoints:p1,textAlign:En,labelDistance:Ve,labelAlignTo:st,edgeDistance:rt,bleedMargin:Ut,rect:Lr,unconstrainedWidth:Lr.width,labelStyleWidth:le.style.width})}re.setTextConfig({inside:In})}}),!i&&n.get("avoidLabelOverlap")&&function a_e(n,t,e,o,r,i,a,s){for(var c=[],p=[],d=Number.MAX_VALUE,u=-Number.MAX_VALUE,h=0;h=i.r0}},t.type="pie",t}(Cu);const p_e=l_e;var u_e=function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},n.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},n.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},n}();const f_e=u_e;var h_e=Jr(),M_e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return R1(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new f_e(Bo(this.getData,this),Bo(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return function d_e(n,t,e){t=f0(t)&&{coordDimensions:t}||Xt({encodeDefine:n.getEncode()},t);var o=n.getSource(),r=dR(o,t).dimensions,i=new YX(r,n);return i.initData(o,e),i}(this,{coordDimensions:["value"],encodeDefaulter:Zr(i2e,this)})},t.prototype.getDataParams=function(e){var o=this.getData(),r=h_e(o),i=r.seats;if(!i){var a=[];o.each(o.mapDimension("value"),function(c){a.push(c)}),i=r.seats=function yH(n,t){var e=R2(n,function(M,g){return M+(isNaN(g)?0:g)},0);if(0===e)return[];for(var o=Math.pow(10,t),r=e1(n,function(M){return(isNaN(M)?0:M)/e*o*100}),i=100*o,a=e1(r,function(M){return Math.floor(M)}),s=R2(a,function(M,g){return M+g},0),c=e1(r,function(M,g){return M-a[g]});sp&&(p=c[u],d=u);++a[d],c[d]=0,++s}return e1(a,function(M){return M/o})}(a,o.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){DT(e,"labelLine",["show"]);var o=e.labelLine,r=e.emphasis.labelLine;o.show=o.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Jg);const b_e=M_e;function O_e(n){n.registerChartView(p_e),n.registerSeriesModel(b_e),function WOe(n,t){function e(o,r){var i=[];return o.eachComponent({mainType:"series",subType:n,query:r},function(a){i.push(a.seriesIndex)}),i}We([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(o){t(o[0],function(r,i,a){r=Xt({},r),a.dispatchAction(Xt(r,{type:o[1],seriesIndex:e(i,r)}))})})}("pie",n.registerAction),n.registerLayout(Zr($3e,"pie")),n.registerProcessor(function G3e(n){return{seriesType:n,reset:function(t,e){var o=e.findComponents({mainType:"legend"});if(o&&o.length){var r=t.getData();r.filterSelf(function(i){for(var a=r.getName(i),s=0;s=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}($o);const dD=__e;var dO=Zr,uD=We,$5=as,v_e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return R1(t,n),t.prototype.init=function(){this.group.add(this._contentGroup=new $5),this.group.add(this._selectorGroup=new $5),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,o,r){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),s=e.get("orient");(!a||"auto"===a)&&(a="right"===e.get("left")&&"vertical"===s?"right":"left");var c=e.get("selector",!0),p=e.get("selectorPosition",!0);c&&(!p||"auto"===p)&&(p="horizontal"===s?"end":"start"),this.renderInner(a,e,o,r,c,s,p);var d=e.getBoxLayoutParams(),u={width:r.getWidth(),height:r.getHeight()},h=e.get("padding"),M=jh(d,u,h),g=this.layoutInner(e,a,M,i,c,p),v=jh(Qn({width:g.width,height:g.height},d),u,h);this.group.x=v.x-g.x,this.group.y=v.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function z_e(n,t){var e=KC(t.get("padding")),o=t.getItemStyle(["color","opacity"]);return o.fill=t.get("backgroundColor"),new Bi({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1})}(g,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,o,r,i,a,s,c){var p=this.getContentGroup(),d=X1(),u=o.get("selectedMode"),h=[];r.eachRawSeries(function(M){!M.get("legendHoverLink")&&h.push(M.id)}),uD(o.getData(),function(M,g){var v=M.get("name");if(!this.newlineDisabled&&(""===v||"\n"===v)){var A=new $5;return A.newline=!0,void p.add(A)}var y=r.getSeriesByName(v)[0];if(!d.get(v))if(y){var q=y.getData(),L=q.getVisual("legendLineStyle")||{},D=q.getVisual("legendIcon"),X=q.getVisual("style");this._createItem(y,v,g,M,o,e,L,X,D,u,i).on("click",dO(ZG,v,null,i,h)).on("mouseover",dO(fD,y.name,null,i,h)).on("mouseout",dO(hD,y.name,null,i,h)),d.set(v,!0)}else r.eachRawSeries(function(re){if(!d.get(v)&&re.legendVisualProvider){var ee=re.legendVisualProvider;if(!ee.containName(v))return;var le=ee.indexOfName(v),he=ee.getItemVisual(le,"style"),Me=ee.getItemVisual(le,"legendIcon"),me=Kc(he.fill);me&&0===me[3]&&(me[3]=.2,he=Xt(Xt({},he),{fill:Ch(me,"rgba")})),this._createItem(re,v,g,M,o,e,{},he,Me,u,i).on("click",dO(ZG,null,v,i,h)).on("mouseover",dO(fD,null,v,i,h)).on("mouseout",dO(hD,null,v,i,h)),d.set(v,!0)}},this)},this),a&&this._createSelector(a,o,i,s,c)},t.prototype._createSelector=function(e,o,r,i,a){var s=this.getSelectorGroup();uD(e,function(p){var d=p.type,u=new _a({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:"all"===d?"legendAllSelect":"legendInverseSelect"})}});s.add(u),RC(u,{normal:o.getModel("selectorLabel"),emphasis:o.getModel(["emphasis","selectorLabel"])},{defaultText:p.title}),UT(u)})},t.prototype._createItem=function(e,o,r,i,a,s,c,p,d,u,h){var M=e.visualDrawType,g=a.get("itemWidth"),v=a.get("itemHeight"),A=a.isSelected(o),y=i.get("symbolRotate"),q=i.get("symbolKeepAspect"),L=i.get("icon"),D=function A_e(n,t,e,o,r,i,a){function s(A,y){"auto"===A.lineWidth&&(A.lineWidth=y.lineWidth>0?2:0),uD(A,function(q,L){"inherit"===A[L]&&(A[L]=y[L])})}var c=t.getModel("itemStyle"),p=c.getItemStyle(),d=0===n.lastIndexOf("empty",0)?"fill":"stroke",u=c.getShallow("decal");p.decal=u&&"inherit"!==u?ES(u,a):o.decal,"inherit"===p.fill&&(p.fill=o[r]),"inherit"===p.stroke&&(p.stroke=o[d]),"inherit"===p.opacity&&(p.opacity=("fill"===r?o:e).opacity),s(p,o);var h=t.getModel("lineStyle"),M=h.getLineStyle();if(s(M,e),"auto"===p.fill&&(p.fill=o.fill),"auto"===p.stroke&&(p.stroke=o.fill),"auto"===M.stroke&&(M.stroke=o.fill),!i){var g=t.get("inactiveBorderWidth");p.lineWidth="auto"===g?o.lineWidth>0&&p[d]?2:0:p.lineWidth,p.fill=t.get("inactiveColor"),p.stroke=t.get("inactiveBorderColor"),M.stroke=h.get("inactiveColor"),M.lineWidth=h.get("inactiveWidth")}return{itemStyle:p,lineStyle:M}}(d=L||d||"roundRect",i,c,p,M,A,h),X=new $5,H=i.getModel("textStyle");if(!S1(e.getLegendIcon)||L&&"inherit"!==L){var re="inherit"===L&&e.getData().getVisual("symbol")?"inherit"===y?e.getData().getVisual("symbolRotate"):y:0;X.add(function y_e(n){var t=n.icon||"roundRect",e=tO(t,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return e.setStyle(n.itemStyle),e.rotation=(n.iconRotate||0)*Math.PI/180,e.setOrigin([n.itemWidth/2,n.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}({itemWidth:g,itemHeight:v,icon:d,iconRotate:re,itemStyle:D.itemStyle,lineStyle:D.lineStyle,symbolKeepAspect:q}))}else X.add(e.getLegendIcon({itemWidth:g,itemHeight:v,icon:d,iconRotate:y,itemStyle:D.itemStyle,lineStyle:D.lineStyle,symbolKeepAspect:q}));var ee="left"===s?g+5:-5,le=s,he=a.get("formatter"),Me=o;S0(he)&&he?Me=he.replace("{name}",o??""):S1(he)&&(Me=he(o));var me=i.get("inactiveColor");X.add(new _a({style:H2(H,{text:Me,x:ee,y:v/2,fill:A?H.getTextColor():me,align:le,verticalAlign:"middle"})}));var xe=new Bi({shape:X.getBoundingRect(),invisible:!0}),Ve=i.getModel("tooltip");return Ve.get("show")&&HR({el:xe,componentModel:a,itemName:o,itemTooltipOption:Ve.option}),X.add(xe),X.eachChild(function(st){st.silent=!0}),xe.silent=!u,this.getContentGroup().add(X),UT(X),X.__legendDataIndex=r,X},t.prototype.layoutInner=function(e,o,r,i,a,s){var c=this.getContentGroup(),p=this.getSelectorGroup();I_(e.get("orient"),c,e.get("itemGap"),r.width,r.height);var d=c.getBoundingRect(),u=[-d.x,-d.y];if(p.markRedraw(),c.markRedraw(),a){I_("horizontal",p,e.get("selectorItemGap",!0));var h=p.getBoundingRect(),M=[-h.x,-h.y],g=e.get("selectorButtonGap",!0),v=e.getOrient().index,A=0===v?"width":"height",y=0===v?"height":"width",q=0===v?"y":"x";"end"===s?M[v]+=d[A]+g:u[v]+=h[A]+g,M[1-v]+=d[y]/2-h[y]/2,p.x=M[0],p.y=M[1],c.x=u[0],c.y=u[1];var L={x:0,y:0};return L[A]=d[A]+g+h[A],L[y]=Math.max(d[y],h[y]),L[q]=Math.min(0,h[q]+M[1-v]),L}return c.x=u[0],c.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(wu);function ZG(n,t,e,o){hD(n,t,e,o),e.dispatchAction({type:"legendToggleSelect",name:n??t}),fD(n,t,e,o)}function KG(n){for(var e,t=n.getZr().storage.getDisplayList(),o=0,r=t.length;or[a],A=[-M.x,-M.y];o||(A[i]=d[p]);var y=[0,0],q=[-g.x,-g.y],L=qn(e.get("pageButtonGap",!0),e.get("itemGap",!0));v&&("end"===e.get("pageButtonPosition",!0)?q[i]+=r[a]-g[a]:y[i]+=g[a]+L),q[1-i]+=M[s]/2-g[s]/2,d.setPosition(A),u.setPosition(y),h.setPosition(q);var X={x:0,y:0};if(X[a]=v?r[a]:M[a],X[s]=Math.max(M[s],g[s]),X[c]=Math.min(0,g[c]+q[1-i]),u.__rectSize=r[a],v){var H={x:0,y:0};H[a]=Math.max(r[a]-g[a]-L,0),H[s]=X[s],u.setClipPath(new Bi({shape:H})),u.__rectSize=H[a]}else h.eachChild(function(ee){ee.attr({invisible:!0,silent:!0})});var re=this._getPageInfo(e);return null!=re.pageIndex&&_d(d,{x:re.contentPosition[0],y:re.contentPosition[1]},v?e:null),this._updatePageInfoView(e,re),X},t.prototype._pageGo=function(e,o,r){var i=this._getPageInfo(o)[e];null!=i&&r.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:o.id})},t.prototype._updatePageInfoView=function(e,o){var r=this._controllerGroup;We(["pagePrev","pageNext"],function(d){var h=null!=o[d+"DataIndex"],M=r.childOfName(d);M&&(M.setStyle("fill",e.get(h?"pageIconColor":"pageIconInactiveColor",!0)),M.cursor=h?"pointer":"default")});var i=r.childOfName("pageText"),a=e.get("pageFormatter"),s=o.pageIndex,c=null!=s?s+1:0,p=o.pageCount;i&&a&&i.setStyle("text",S0(a)?a.replace("{current}",null==c?"":c+"").replace("{total}",null==p?"":p+""):a({current:c,total:p}))},t.prototype._getPageInfo=function(e){var o=e.get("scrollDataIndex",!0),r=this.getContentGroup(),i=this._containerGroup.__rectSize,a=e.getOrient().index,s=MD[a],c=bD[a],p=this._findTargetItemIndex(o),d=r.children(),u=d[p],h=d.length,M=h?1:0,g={contentPosition:[r.x,r.y],pageCount:M,pageIndex:M-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return g;var v=D(u);g.contentPosition[a]=-v.s;for(var A=p+1,y=v,q=v,L=null;A<=h;++A)(!(L=D(d[A]))&&q.e>y.s+i||L&&!X(L,y.s))&&(y=q.i>y.i?q:L)&&(null==g.pageNextDataIndex&&(g.pageNextDataIndex=y.i),++g.pageCount),q=L;for(A=p-1,y=v,q=v,L=null;A>=-1;--A)(!(L=D(d[A]))||!X(q,L.s))&&y.i=re&&H.s<=re+i}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(a,s){var c=a.__legendDataIndex;null==i&&null!=c&&(i=s),c===e&&(o=s)}),o??i):0;var o,i},t.type="legend.scroll",t}(JG);const W_e=q_e;function T_e(n){J2(QG),n.registerComponentModel(x_e),n.registerComponentView(W_e),function L_e(n){n.registerAction("legendScroll","legendscroll",function(t,e){var o=t.scrollDataIndex;null!=o&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(r){r.setScrollDataIndex(o)})})}(n)}function G5(n){J2(QG),J2(T_e)}var R_e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return R1(t,n),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}($o),S_e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return R1(t,n),t.prototype.render=function(e,o,r){if(this.group.removeAll(),e.get("show")){var i=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),c=e.get("textAlign"),p=qn(e.get("textBaseline"),e.get("textVerticalAlign")),d=new _a({style:H2(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),u=d.getBoundingRect(),h=e.get("subtext"),M=new _a({style:H2(s,{text:h,fill:s.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),v=e.get("sublink"),A=e.get("triggerEvent",!0);d.silent=!g&&!A,M.silent=!v&&!A,g&&d.on("click",function(){lj(g,"_"+e.get("target"))}),v&&M.on("click",function(){lj(v,"_"+e.get("subtarget"))}),Do(d).eventData=Do(M).eventData=A?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(d),h&&i.add(M);var y=i.getBoundingRect(),q=e.getBoxLayoutParams();q.width=y.width,q.height=y.height;var L=jh(q,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));c||("middle"===(c=e.get("left")||e.get("right"))&&(c="center"),"right"===c?L.x+=L.width:"center"===c&&(L.x+=L.width/2)),p||("center"===(p=e.get("top")||e.get("bottom"))&&(p="middle"),"bottom"===p?L.y+=L.height:"middle"===p&&(L.y+=L.height/2),p=p||"top"),i.x=L.x,i.y=L.y,i.markRedraw();var D={align:c,verticalAlign:p};d.setStyle(D),M.setStyle(D),y=i.getBoundingRect();var X=L.margin,H=e.getItemStyle(["color","opacity"]);H.fill=e.get("backgroundColor");var re=new Bi({shape:{x:y.x-X[3],y:y.y-X[0],width:y.width+X[1]+X[3],height:y.height+X[0]+X[2],r:e.get("borderRadius")},style:H,subPixelOptimize:!0,silent:!0});i.add(re)}},t.type="title",t}(wu);function nZ(n){n.registerComponentModel(R_e),n.registerComponentView(S_e)}var no,ef=(()=>(function(n){n.All="All Proposals",n.InProgress="In Progress",n.Completed="Completed",n.Approved="Approved",n.Rejected="Rejected"}(ef||(ef={})),ef))();!function(n){let t;var r;let e,o;(r=t=n.State||(n.State={})).Requested="requested",r.Block_Created="block_created",r.Block_Sent="block_sent",r.Node_Validated="node_validated",r.Block_Added="block_added",r.Network_Updated="network_updated",r.Completed="completed",function(r){r.Pending="pending",r.Success="success",r.Failed="failed",r.Dropped="dropped"}(e=n.Status||(n.Status={})),function(r){r.Settlement="settlement",r.Stored="stored",r.Minted="minted",r.DevRoyalty="dev-royalty",r.BanwidthFunded="bandwidth-funded"}(o=n.Type||(n.Type={}))}(no||(no={}));var lt,Qr=(()=>(function(n){n.AllTime="All-Time",n.YTD="YTD",n.D30="30D",n.D7="7D",n.D1="1D"}(Qr||(Qr={})),Qr))();!function(n){let t;var u;let e,o,r,i,a,s,c,p,d;(u=t=n.Type||(n.Type={})).Storage="storage",u.Compute="compute",u.Bandwidth="bandwidth",u.IP="ip",u.GPU="gpu",function(u){u.US_EAST="us-east",u.US_WEST="us-west",u.US_WG_MP="us-wg-mp",u.GLOBAL="global"}(e=n.Region||(n.Region={})),function(u){u.Permanent="permanent",u.Tier1="tier-1",u.Tier2="tier-2",u.Tier3="tier-3",u.GeneralPurpose="general-purpose",u.ComputeOptimized="compute-optimized",u.MemoryOptimized="memory-optimized",u._10g="10g",u.DataTransfer="data-transfer",u._1g="1g"}(o=n.SubType||(n.SubType={})),function(u){u.Disk="Disk",u.Instance="Instance",u.Network="Network"}(r=n.OrionType||(n.OrionType={})),function(u){u.SSD="SSD",u.Standard="Standard",u.HighCPU="High CPU",u.IPAddress="IP Address",u.DataTransfer="Data Transfer",u.PrivateIPAddress="Private IP Address",u.PrivateDataTransfer="Private Data Transfer"}(i=n.OrionSubType||(n.OrionSubType={})),function(u){u.Orion="Orion"}(a=n.Cloud||(n.Cloud={})),function(u){u.RATIO="ratio",u.PERCENT="percent",u.BYTES="bytes",u.STORE="store",u.BITS="bits",u.USD="usd",u.USDC="usdc",u.BTC="btc",u.SATS="sats",u.ETH="eth",u.WEI="wei",u.GWEI="gwei",u.SETH="seth",u.OP="op",u.MATIC="matic",u.ARB="arb"}(s=n.Unit||(n.Unit={})),function(u){u.IPPerSec="ip/sec",u.IPPerHour="ip/hour",u.IPPerMonth="ip/month",u.IP="ip",u.GB="gb",u.GBPerSec="gb/sec",u.GBPerHour="gb/hour",u.GBPerMonth="gb/month",u.RamPerSec="ram/sec",u.Bytes="bytes",u.BytesPerSec="bytes/sec",u.BytesPerHour="bytes/hour",u.BytesPerMonth="bytes/month"}(c=n.Measurement||(n.Measurement={})),function(u){u.Hourly="hourly",u.Minutely="minutely",u.Secondly="secondly",u.Weekly="weekly",u.Monthly="monthly",u.Yearly="yearly"}(p=n.CostType||(n.CostType={})),function(u){u.BUY="buy",u.SELL="sell",u.MARGIN="margin",u.DevEnvdowment="dev-endowment",u.PoweredByEndowment="powered-by-endowment",u.CloudReserveEndowment="cloud-reserve-endowment",u.AssociationEndowment="association-endowment",u.VoterDAOEndowment="voter-dao-endowment"}(d=n.Option||(n.Option={})),n.AllowedCurrenciesDecimalPlacesMapping={[n.Unit.STORE]:8,[n.Unit.BITS]:0,[n.Unit.BTC]:8,[n.Unit.SATS]:0,[n.Unit.ETH]:18,[n.Unit.WEI]:0,[n.Unit.GWEI]:0,[n.Unit.SETH]:18,[n.Unit.USD]:8,[n.Unit.USDC]:8,[n.Unit.OP]:18,[n.Unit.MATIC]:18,[n.Unit.ARB]:18},n.AvailableNetworks=[{name:s.SETH,icon:"network_icon/ethereum-eth",symbol:s.SETH},{name:s.GWEI,icon:"network_icon/ethereum-eth",symbol:s.GWEI},{name:s.WEI,icon:"network_icon/ethereum-eth",symbol:s.WEI},{name:s.STORE,icon:"store-logo-only",symbol:s.STORE},{name:s.BITS,icon:"store-logo-only",symbol:s.BITS},{name:s.ETH,icon:"network_icon/ethereum",symbol:s.ETH},{name:s.USDC,icon:"network_icon/usd-coin",symbol:s.USDC},{name:s.OP,icon:"network_icon/optimism",symbol:s.OP},{name:s.MATIC,icon:"network_icon/polygon-matic",symbol:s.MATIC},{name:s.ARB,icon:"network_icon/arbitrum-eth",symbol:s.ARB},{name:"us dollar",symbol:s.USD},{name:s.BTC,icon:"network_icon/bitcoin",symbol:s.BTC},{name:s.SATS,icon:"network_icon/bitcoin",symbol:s.SATS}]}(lt||(lt={}));var rn=(()=>(function(n){n.STORE="store",n.Ethereum="ethereum"}(rn||(rn={})),rn))(),bi=(()=>(function(n){n.STORE="store",n.Ethereum="ethereum",n.Sepolia="sepolia"}(bi||(bi={})),bi))();const D_e=[{name:"Sepolia",network:bi.Sepolia,icon:"network_icon/ethereum-eth",symbol:lt.Unit.ETH,disabled:!1},{name:"STORE",network:bi.STORE,icon:"store-logo-only",symbol:lt.Unit.STORE,disabled:!1},{name:"Etherum",network:bi.Ethereum,icon:"network_icon/ethereum-eth",symbol:lt.Unit.ETH,disabled:!1},{name:"USDC",icon:"network_icon/usd-coin",network:bi.Ethereum,symbol:lt.Unit.USD,disabled:!1},{name:"Optimism",network:bi.Ethereum,icon:"network_icon/optimism",symbol:lt.Unit.ETH,disabled:!1},{name:"Matic",network:bi.Ethereum,icon:"network_icon/polygon-matic",symbol:lt.Unit.ETH,disabled:!1},{name:"Arbitrum",network:bi.Ethereum,icon:"network_icon/arbitrum-eth",symbol:lt.Unit.ETH,disabled:!1},{name:"$USD (Card)",network:bi.Ethereum,symbol:lt.Unit.USD,disabled:!1}];var uO=(()=>(function(n){n[n.Explore=0]="Explore",n[n.Website=1]="Website",n[n.Oracle=2]="Oracle"}(uO||(uO={})),uO))(),Z5=(()=>(function(n){n.Pending="pending",n.ReadyToProcess="rd-process",n.InQueue="in-queue",n.Completed="completed",n.Removed="removed"}(Z5||(Z5={})),Z5))(),Oz=(()=>(function(n){n.Pending="pending",n.Processing="processing",n.Completed="completed"}(Oz||(Oz={})),Oz))(),sM=(()=>(function(n){n.Composition="composition",n.Recording="recording"}(sM||(sM={})),sM))(),pp=(()=>(function(n){n.MechanicalRoyalties="mechanicalRoyalties",n.PerformanceRoyalties="performanceRoyalties",n.SyncRoyalties="syncRoyalties",n.ReproductionRoyalties="reproductionRoyalties",n.Identical="identical"}(pp||(pp={})),pp))();const k_e=function(n,t){return{"width.rem":n,display:t}};function E_e(n,t){if(1&n&&de(0,"img",1),2&n){const e=ce();xn("icon icon-size-",e.size,""),Yc("src","https://explore.storecloud.org/assets/lucide_icon/",e.icon,".svg",Tn),T("ngStyle",wr(5,k_e,(e.size||10)/10,e.display))}}let br=class Vk{constructor(){this.icon=null,this.size=18,this.display="block"}static#e=this.\u0275fac=function(e){return new(e||Vk)};static#t=this.\u0275cmp=Rt({type:Vk,selectors:[["storecloud-icon"]],inputs:{icon:"icon",size:"size",display:"display"},standalone:!0,features:[wo],decls:2,vars:1,consts:[[3,"class","src","ngStyle",4,"ngIf"],[3,"src","ngStyle"]],template:function(e,o){1&e&&(J(0,E_e,1,8,"img",0),l(1,"\n")),2&e&&T("ngIf",o.icon)},dependencies:[Sn,Q0,Jn],styles:["img[_ngcontent-%COMP%]{display:block}"]})};function Oc(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function cM(n){return n instanceof Oc(n).Element||n instanceof Element}function sl(n){return n instanceof Oc(n).HTMLElement||n instanceof HTMLElement}function gD(n){return!(typeof ShadowRoot>"u")&&(n instanceof Oc(n).ShadowRoot||n instanceof ShadowRoot)}br=$e([p0({checkProperties:!0})],br);var lM=Math.max,K5=Math.min,fO=Math.round;function OD(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function oZ(){return!/^((?!chrome|android).)*safari/i.test(OD())}function hO(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var o=n.getBoundingClientRect(),r=1,i=1;t&&sl(n)&&(r=n.offsetWidth>0&&fO(o.width)/n.offsetWidth||1,i=n.offsetHeight>0&&fO(o.height)/n.offsetHeight||1);var s=(cM(n)?Oc(n):window).visualViewport,c=!oZ()&&e,p=(o.left+(c&&s?s.offsetLeft:0))/r,d=(o.top+(c&&s?s.offsetTop:0))/i,u=o.width/r,h=o.height/i;return{width:u,height:h,top:d,right:p+u,bottom:d+h,left:p,x:p,y:d}}function mD(n){var t=Oc(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ad(n){return n?(n.nodeName||"").toLowerCase():null}function tf(n){return((cM(n)?n.ownerDocument:n.document)||window.document).documentElement}function _D(n){return hO(tf(n)).left+mD(n).scrollLeft}function Wu(n){return Oc(n).getComputedStyle(n)}function zD(n){var t=Wu(n);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function F_e(n,t,e){void 0===e&&(e=!1);var o=sl(t),r=sl(t)&&function B_e(n){var t=n.getBoundingClientRect(),e=fO(t.width)/n.offsetWidth||1,o=fO(t.height)/n.offsetHeight||1;return 1!==e||1!==o}(t),i=tf(t),a=hO(n,r,e),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!e)&&(("body"!==Ad(t)||zD(i))&&(s=function N_e(n){return n!==Oc(n)&&sl(n)?function I_e(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):mD(n)}(t)),sl(t)?((c=hO(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=_D(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function vD(n){var t=hO(n),e=n.offsetWidth,o=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:o}}function J5(n){return"html"===Ad(n)?n:n.assignedSlot||n.parentNode||(gD(n)?n.host:null)||tf(n)}function rZ(n){return["html","body","#document"].indexOf(Ad(n))>=0?n.ownerDocument.body:sl(n)&&zD(n)?n:rZ(J5(n))}function mz(n,t){var e;void 0===t&&(t=[]);var o=rZ(n),r=o===(null==(e=n.ownerDocument)?void 0:e.body),i=Oc(o),a=r?[i].concat(i.visualViewport||[],zD(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(mz(J5(a)))}function Y_e(n){return["table","td","th"].indexOf(Ad(n))>=0}function iZ(n){return sl(n)&&"fixed"!==Wu(n).position?n.offsetParent:null}function _z(n){for(var t=Oc(n),e=iZ(n);e&&Y_e(e)&&"static"===Wu(e).position;)e=iZ(e);return e&&("html"===Ad(e)||"body"===Ad(e)&&"static"===Wu(e).position)?t:e||function H_e(n){var t=/firefox/i.test(OD());if(/Trident/i.test(OD())&&sl(n)&&"fixed"===Wu(n).position)return null;var r=J5(n);for(gD(r)&&(r=r.host);sl(r)&&["html","body"].indexOf(Ad(r))<0;){var i=Wu(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(n)||t}var Hs="top",cl="bottom",ll="right",Xs="left",AD="auto",zz=[Hs,cl,ll,Xs],MO="start",vz="end",X_e="clippingParents",aZ="viewport",Az="popper",j_e="reference",sZ=zz.reduce(function(n,t){return n.concat([t+"-"+MO,t+"-"+vz])},[]),cZ=[].concat(zz,[AD]).reduce(function(n,t){return n.concat([t,t+"-"+MO,t+"-"+vz])},[]),tze=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function nze(n){var t=new Map,e=new Set,o=[];function r(i){e.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(s){if(!e.has(s)){var c=t.get(s);c&&r(c)}}),o.push(i)}return n.forEach(function(i){t.set(i.name,i)}),n.forEach(function(i){e.has(i.name)||r(i)}),o}function rze(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}var lZ={placement:"bottom",modifiers:[],strategy:"absolute"};function pZ(){for(var n=arguments.length,t=new Array(n),e=0;e=0?"x":"y"}function dZ(n){var c,t=n.reference,e=n.element,o=n.placement,r=o?yd(o):null,i=o?bO(o):null,a=t.x+t.width/2-e.width/2,s=t.y+t.height/2-e.height/2;switch(r){case Hs:c={x:a,y:t.y-e.height};break;case cl:c={x:a,y:t.y+t.height};break;case ll:c={x:t.x+t.width,y:s};break;case Xs:c={x:t.x-e.width,y:s};break;default:c={x:t.x,y:t.y}}var p=r?yD(r):null;if(null!=p){var d="y"===p?"height":"width";switch(i){case MO:c[p]=c[p]-(t[d]/2-e[d]/2);break;case vz:c[p]=c[p]+(t[d]/2-e[d]/2)}}return c}const pze={name:"popperOffsets",enabled:!0,phase:"read",fn:function lze(n){var t=n.state;t.modifiersData[n.name]=dZ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var dze={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uZ(n){var t,e=n.popper,o=n.popperRect,r=n.placement,i=n.variation,a=n.offsets,s=n.position,c=n.gpuAcceleration,p=n.adaptive,d=n.roundOffsets,u=n.isFixed,h=a.x,M=void 0===h?0:h,g=a.y,v=void 0===g?0:g,A="function"==typeof d?d({x:M,y:v}):{x:M,y:v};M=A.x,v=A.y;var y=a.hasOwnProperty("x"),q=a.hasOwnProperty("y"),L=Xs,D=Hs,X=window;if(p){var H=_z(e),re="clientHeight",ee="clientWidth";H===Oc(e)&&"static"!==Wu(H=tf(e)).position&&"absolute"===s&&(re="scrollHeight",ee="scrollWidth"),(r===Hs||(r===Xs||r===ll)&&i===vz)&&(D=cl,v-=(u&&H===X&&X.visualViewport?X.visualViewport.height:H[re])-o.height,v*=c?1:-1),r!==Xs&&(r!==Hs&&r!==cl||i!==vz)||(L=ll,M-=(u&&H===X&&X.visualViewport?X.visualViewport.width:H[ee])-o.width,M*=c?1:-1)}var xe,Me=Object.assign({position:s},p&&dze),me=!0===d?function uze(n,t){var o=n.y,r=t.devicePixelRatio||1;return{x:fO(n.x*r)/r||0,y:fO(o*r)/r||0}}({x:M,y:v},Oc(e)):{x:M,y:v};return M=me.x,v=me.y,Object.assign({},Me,c?((xe={})[D]=q?"0":"",xe[L]=y?"0":"",xe.transform=(X.devicePixelRatio||1)<=1?"translate("+M+"px, "+v+"px)":"translate3d("+M+"px, "+v+"px, 0)",xe):((t={})[D]=q?v+"px":"",t[L]=y?M+"px":"",t.transform="",t))}const hze={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function fze(n){var t=n.state,e=n.options,o=e.gpuAcceleration,r=void 0===o||o,i=e.adaptive,a=void 0===i||i,s=e.roundOffsets,c=void 0===s||s,d={placement:yd(t.placement),variation:bO(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,uZ(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,uZ(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},fZ={name:"applyStyles",enabled:!0,phase:"write",fn:function Mze(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var o=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!sl(i)||!Ad(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var s=r[a];!1===s?i.removeAttribute(a):i.setAttribute(a,!0===s?"":s)}))})},effect:function bze(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:e[o]).reduce(function(c,p){return c[p]="",c},{});!sl(r)||!Ad(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]},mze={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function Oze(n){var t=n.state,o=n.name,r=n.options.offset,i=void 0===r?[0,0]:r,a=cZ.reduce(function(d,u){return d[u]=function gze(n,t,e){var o=yd(n),r=[Xs,Hs].indexOf(o)>=0?-1:1,i="function"==typeof e?e(Object.assign({},t,{placement:n})):e,a=i[0],s=i[1];return a=a||0,s=(s||0)*r,[Xs,ll].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(u,t.rects,i),d},{}),s=a[t.placement],p=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s.x,t.modifiersData.popperOffsets.y+=p),t.modifiersData[o]=a}};var _ze={left:"right",right:"left",bottom:"top",top:"bottom"};function ew(n){return n.replace(/left|right|bottom|top/g,function(t){return _ze[t]})}var zze={start:"end",end:"start"};function hZ(n){return n.replace(/start|end/g,function(t){return zze[t]})}function MZ(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&gD(e)){var o=t;do{if(o&&n.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function CD(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function bZ(n,t,e){return t===aZ?CD(function vze(n,t){var e=Oc(n),o=tf(n),r=e.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;var p=oZ();(p||!p&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s+_D(n),y:c}}(n,e)):cM(t)?function yze(n,t){var e=hO(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}(t,e):CD(function Aze(n){var t,e=tf(n),o=mD(n),r=null==(t=n.ownerDocument)?void 0:t.body,i=lM(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=lM(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+_D(n),c=-o.scrollTop;return"rtl"===Wu(r||e).direction&&(s+=lM(e.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(tf(n)))}function OZ(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function mZ(n,t){return t.reduce(function(e,o){return e[o]=n,e},{})}function yz(n,t){void 0===t&&(t={});var o=t.placement,r=void 0===o?n.placement:o,i=t.strategy,a=void 0===i?n.strategy:i,s=t.boundary,c=void 0===s?X_e:s,p=t.rootBoundary,d=void 0===p?aZ:p,u=t.elementContext,h=void 0===u?Az:u,M=t.altBoundary,g=void 0!==M&&M,v=t.padding,A=void 0===v?0:v,y=OZ("number"!=typeof A?A:mZ(A,zz)),L=n.rects.popper,D=n.elements[g?h===Az?j_e:Az:h],X=function wze(n,t,e,o){var r="clippingParents"===t?function Cze(n){var t=mz(J5(n)),o=["absolute","fixed"].indexOf(Wu(n).position)>=0&&sl(n)?_z(n):n;return cM(o)?t.filter(function(r){return cM(r)&&MZ(r,o)&&"body"!==Ad(r)}):[]}(n):[].concat(t),i=[].concat(r,[e]),s=i.reduce(function(c,p){var d=bZ(n,p,o);return c.top=lM(d.top,c.top),c.right=K5(d.right,c.right),c.bottom=K5(d.bottom,c.bottom),c.left=lM(d.left,c.left),c},bZ(n,i[0],o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(cM(D)?D:D.contextElement||tf(n.elements.popper),c,d,a),H=hO(n.elements.reference),re=dZ({reference:H,element:L,strategy:"absolute",placement:r}),ee=CD(Object.assign({},L,re)),le=h===Az?ee:H,he={top:X.top-le.top+y.top,bottom:le.bottom-X.bottom+y.bottom,left:X.left-le.left+y.left,right:le.right-X.right+y.right},Me=n.modifiersData.offset;if(h===Az&&Me){var me=Me[r];Object.keys(he).forEach(function(xe){var Ve=[ll,cl].indexOf(xe)>=0?1:-1,st=[Hs,cl].indexOf(xe)>=0?"y":"x";he[xe]+=me[st]*Ve})}return he}const Wze={name:"flip",enabled:!0,phase:"main",fn:function qze(n){var t=n.state,e=n.options,o=n.name;if(!t.modifiersData[o]._skip){for(var r=e.mainAxis,i=void 0===r||r,a=e.altAxis,s=void 0===a||a,c=e.fallbackPlacements,p=e.padding,d=e.boundary,u=e.rootBoundary,h=e.altBoundary,M=e.flipVariations,g=void 0===M||M,v=e.allowedAutoPlacements,A=t.options.placement,y=yd(A),L=c||(y!==A&&g?function xze(n){if(yd(n)===AD)return[];var t=ew(n);return[hZ(n),t,hZ(t)]}(A):[ew(A)]),D=[A].concat(L).reduce(function(Gt,I0){return Gt.concat(yd(I0)===AD?function Pze(n,t){void 0===t&&(t={});var r=t.boundary,i=t.rootBoundary,a=t.padding,s=t.flipVariations,c=t.allowedAutoPlacements,p=void 0===c?cZ:c,d=bO(t.placement),u=d?s?sZ:sZ.filter(function(g){return bO(g)===d}):zz,h=u.filter(function(g){return p.indexOf(g)>=0});0===h.length&&(h=u);var M=h.reduce(function(g,v){return g[v]=yz(n,{placement:v,boundary:r,rootBoundary:i,padding:a})[yd(v)],g},{});return Object.keys(M).sort(function(g,v){return M[g]-M[v]})}(t,{placement:I0,boundary:d,rootBoundary:u,padding:p,flipVariations:g,allowedAutoPlacements:v}):I0)},[]),X=t.rects.reference,H=t.rects.popper,re=new Map,ee=!0,le=D[0],he=0;he=0,st=Ve?"width":"height",rt=yz(t,{placement:Me,boundary:d,rootBoundary:u,altBoundary:h,padding:p}),Ut=Ve?xe?ll:Xs:xe?cl:Hs;X[st]>H[st]&&(Ut=ew(Ut));var qe=ew(Ut),ke=[];if(i&&ke.push(rt[me]<=0),s&&ke.push(rt[Ut]<=0,rt[qe]<=0),ke.every(function(Gt){return Gt})){le=Me,ee=!1;break}re.set(Me,ke)}if(ee)for(var vt=function(I0){var p1=D.find(function(En){var In=re.get(En);if(In)return In.slice(0,I0).every(function(ro){return ro})});if(p1)return le=p1,"break"},Mt=g?3:1;Mt>0&&"break"!==vt(Mt);Mt--);t.placement!==le&&(t.modifiersData[o]._skip=!0,t.placement=le,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Cz(n,t,e){return lM(n,K5(t,e))}const Sze={name:"preventOverflow",enabled:!0,phase:"main",fn:function Rze(n){var t=n.state,e=n.options,o=n.name,r=e.mainAxis,i=void 0===r||r,a=e.altAxis,s=void 0!==a&&a,h=e.tether,M=void 0===h||h,g=e.tetherOffset,v=void 0===g?0:g,A=yz(t,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=yd(t.placement),q=bO(t.placement),L=!q,D=yD(y),X=function Lze(n){return"x"===n?"y":"x"}(D),H=t.modifiersData.popperOffsets,re=t.rects.reference,ee=t.rects.popper,le="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,he="number"==typeof le?{mainAxis:le,altAxis:le}:Object.assign({mainAxis:0,altAxis:0},le),Me=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,me={x:0,y:0};if(H){if(i){var xe,Ve="y"===D?Hs:Xs,st="y"===D?cl:ll,rt="y"===D?"height":"width",Ut=H[D],qe=Ut+A[Ve],ke=Ut-A[st],Ze=M?-ee[rt]/2:0,vt=q===MO?re[rt]:ee[rt],Mt=q===MO?-ee[rt]:-re[rt],kt=t.elements.arrow,Gt=M&&kt?vD(kt):{width:0,height:0},I0=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},p1=I0[Ve],En=I0[st],In=Cz(0,re[rt],Gt[rt]),ro=L?re[rt]/2-Ze-In-p1-he.mainAxis:vt-In-p1-he.mainAxis,sn=L?-re[rt]/2+Ze+In+En+he.mainAxis:Mt+In+En+he.mainAxis,W0=t.elements.arrow&&_z(t.elements.arrow),mr=null!=(xe=Me?.[D])?xe:0,mi=Ut+sn-mr,Wr=Cz(M?K5(qe,Ut+ro-mr-(W0?"y"===D?W0.clientTop||0:W0.clientLeft||0:0)):qe,Ut,M?lM(ke,mi):ke);H[D]=Wr,me[D]=Wr-Ut}if(s){var ti,Sa=H[X],Lr="y"===X?"height":"width",Js=Sa+A["x"===D?Hs:Xs],ea=Sa-A["x"===D?cl:ll],mp=-1!==[Hs,Xs].indexOf(y),ta=null!=(ti=Me?.[X])?ti:0,xM=mp?Js:Sa-re[Lr]-ee[Lr]-ta+he.altAxis,qM=mp?Sa+re[Lr]+ee[Lr]-ta-he.altAxis:ea,WM=M&&mp?function Tze(n,t,e){var o=Cz(n,t,e);return o>e?e:o}(xM,Sa,qM):Cz(M?xM:Js,Sa,M?qM:ea);H[X]=WM,me[X]=WM-Sa}t.modifiersData[o]=me}},requiresIfExists:["offset"]};const Ize={name:"arrow",enabled:!0,phase:"main",fn:function kze(n){var t,e=n.state,o=n.name,r=n.options,i=e.elements.arrow,a=e.modifiersData.popperOffsets,s=yd(e.placement),c=yD(s),d=[Xs,ll].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(t,e){return OZ("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:mZ(t,zz))}(r.padding,e),h=vD(i),M="y"===c?Hs:Xs,g="y"===c?cl:ll,v=e.rects.reference[d]+e.rects.reference[c]-a[c]-e.rects.popper[d],A=a[c]-e.rects.reference[c],y=_z(i),q=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,H=q/2-h[d]/2+(v/2-A/2),re=Cz(u[M],H,q-h[d]-u[g]);e.modifiersData[o]=((t={})[c]=re,t.centerOffset=re-H,t)}},effect:function Eze(n){var t=n.state,o=n.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||MZ(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _Z(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function zZ(n){return[Hs,ll,cl,Xs].some(function(t){return n[t]>=0})}var Bze=[cze,pze,hze,fZ,mze,Wze,Sze,Ize,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Nze(n){var t=n.state,e=n.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=yz(t,{elementContext:"reference"}),s=yz(t,{altBoundary:!0}),c=_Z(a,o),p=_Z(s,r,i),d=zZ(c),u=zZ(p);t.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}],Fze=aze({defaultModifiers:Bze}),Yze="tippy-box",vZ="tippy-content",AZ="tippy-backdrop",yZ="tippy-arrow",CZ="tippy-svg-arrow",nf={passive:!0,capture:!0},wZ=function(){return document.body};function wD(n,t,e){return Array.isArray(n)?n[t]??(Array.isArray(e)?e[t]:e):n}function PD(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function PZ(n,t){return"function"==typeof n?n.apply(void 0,t):n}function xZ(n,t){return 0===t?n:function(o){clearTimeout(e),e=setTimeout(function(){n(o)},t)};var e}function rf(n){return[].concat(n)}function qZ(n,t){-1===n.indexOf(t)&&n.push(t)}function gO(n){return[].slice.call(n)}function LZ(n){return Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t},{})}function pM(){return document.createElement("div")}function tw(n){return["Element","Fragment"].some(function(t){return PD(n,t)})}function WD(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function wz(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function LD(n,t,e){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[o](r,e)})}function SZ(n,t){for(var e=t;e;){var o;if(n.contains(e))return!0;e=null==e.getRootNode||null==(o=e.getRootNode())?void 0:o.host}return!1}var Cd={isTouch:!1},DZ=0;function Gze(){Cd.isTouch||(Cd.isTouch=!0,window.performance&&document.addEventListener("mousemove",kZ))}function kZ(){var n=performance.now();n-DZ<20&&(Cd.isTouch=!1,document.removeEventListener("mousemove",kZ)),DZ=n}function Zze(){var n=document.activeElement;(function TZ(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var Qze=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,js=Object.assign({appendTo:wZ,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),ove=Object.keys(js);function FZ(n){var e=(n.plugins||[]).reduce(function(o,r){var s,i=r.name;return i&&(o[i]=void 0!==n[i]?n[i]:null!=(s=js[i])?s:r.defaultValue),o},{});return Object.assign({},n,e)}function YZ(n,t){var e=Object.assign({},t,{content:PZ(t.content,[n])},t.ignoreAttributes?{}:function ive(n,t){return(t?Object.keys(FZ(Object.assign({},js,{plugins:t}))):ove).reduce(function(r,i){var a=(n.getAttribute("data-tippy-"+i)||"").trim();if(!a)return r;if("content"===i)r[i]=a;else try{r[i]=JSON.parse(a)}catch{r[i]=a}return r},{})}(n,t.plugins));return e.aria=Object.assign({},js.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}var ave=function(){return"innerHTML"};function TD(n,t){n[ave()]=t}function HZ(n){var t=pM();return!0===n?t.className=yZ:(t.className=CZ,tw(n)?t.appendChild(n):TD(t,n)),t}function XZ(n,t){tw(t.content)?(TD(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?TD(n,t.content):n.textContent=t.content)}function nw(n){var t=n.firstElementChild,e=gO(t.children);return{box:t,content:e.find(function(o){return o.classList.contains(vZ)}),arrow:e.find(function(o){return o.classList.contains(yZ)||o.classList.contains(CZ)}),backdrop:e.find(function(o){return o.classList.contains(AZ)})}}function jZ(n){var t=pM(),e=pM();e.className=Yze,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var o=pM();function r(i,a){var s=nw(t),c=s.box,p=s.content,d=s.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),"string"==typeof a.animation?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth="number"==typeof a.maxWidth?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&XZ(p,n.props),a.arrow?d?i.arrow!==a.arrow&&(c.removeChild(d),c.appendChild(HZ(a.arrow))):c.appendChild(HZ(a.arrow)):d&&c.removeChild(d)}return o.className=vZ,o.setAttribute("data-state","hidden"),XZ(o,n.props),t.appendChild(e),e.appendChild(o),r(n.props,n.props),{popper:t,onUpdate:r}}jZ.$$tippy=!0;var sve=1,ow=[],rw=[];function cve(n,t){var o,r,i,d,u,h,v,e=YZ(n,Object.assign({},js,FZ(LZ(t)))),a=!1,s=!1,c=!1,p=!1,M=[],g=xZ(Mo,e.interactiveDebounce),A=sve++,q=function jze(n){return n.filter(function(t,e){return n.indexOf(t)===e})}(e.plugins),D={id:A,reference:n,popper:pM(),popperInstance:null,props:e,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:q,clearDelayTimeouts:function xM(){clearTimeout(o),clearTimeout(r),cancelAnimationFrame(i)},setProps:function qM(ct){if(!D.state.isDestroyed){qe("onBeforeUpdate",[D,ct]),$0();var z0=D.props,n1=YZ(n,Object.assign({},z0,LZ(ct),{ignoreAttributes:!0}));D.props=n1,W0(),z0.interactiveDebounce!==n1.interactiveDebounce&&(vt(),g=xZ(Mo,n1.interactiveDebounce)),z0.triggerTarget&&!n1.triggerTarget?rf(z0.triggerTarget).forEach(function(Nn){Nn.removeAttribute("aria-expanded")}):n1.triggerTarget&&n.removeAttribute("aria-expanded"),Ze(),Ut(),re&&re(z0,n1),D.popperInstance&&(Qi(),Lr().forEach(function(Nn){requestAnimationFrame(Nn._tippy.popperInstance.forceUpdate)})),qe("onAfterUpdate",[D,ct])}},setContent:function WM(ct){D.setProps({content:ct})},show:function KP(){var ct=D.state.isVisible,z0=D.state.isDestroyed,n1=!D.state.isEnabled,Nn=Cd.isTouch&&!D.props.touch,Mn=wD(D.props.duration,0,js.duration);if(!(ct||z0||n1||Nn||xe().hasAttribute("disabled")||(qe("onShow",[D],!1),!1===D.props.onShow(D)))){if(D.state.isVisible=!0,me()&&(H.style.visibility="visible"),Ut(),I0(),D.state.isMounted||(H.style.transition="none"),me()){var na=st();WD([na.box,na.content],0)}h=function(){var ka;if(D.state.isVisible&&!p){if(p=!0,H.style.transition=D.props.moveTransition,me()&&D.props.animation){var Pv=st(),GO=Pv.box,Yu=Pv.content;WD([GO,Yu],Mn),wz([GO,Yu],"visible")}ke(),Ze(),qZ(rw,D),null==(ka=D.popperInstance)||ka.forceUpdate(),qe("onMount",[D]),D.props.animation&&me()&&function In(ct,z0){ro(ct,z0)}(Mn,function(){D.state.isShown=!0,qe("onShown",[D])})}},function Sa(){var z0,ct=D.props.appendTo,n1=xe();(z0=D.props.interactive&&ct===wZ||"parent"===ct?n1.parentNode:PZ(ct,[n1])).contains(H)||z0.appendChild(H),D.state.isMounted=!0,Qi()}()}},hide:function JP(){var ct=!D.state.isVisible,z0=D.state.isDestroyed,n1=!D.state.isEnabled,Nn=wD(D.props.duration,1,js.duration);if(!(ct||z0||n1)&&(qe("onHide",[D],!1),!1!==D.props.onHide(D))){if(D.state.isVisible=!1,D.state.isShown=!1,p=!1,a=!1,me()&&(H.style.visibility="hidden"),vt(),p1(),Ut(!0),me()){var Mn=st(),na=Mn.box,Da=Mn.content;D.props.animation&&(WD([na,Da],Nn),wz([na,Da],"hidden"))}ke(),Ze(),D.props.animation?me()&&function En(ct,z0){ro(ct,function(){!D.state.isVisible&&H.parentNode&&H.parentNode.contains(H)&&z0()})}(Nn,D.unmount):D.unmount()}},hideWithInteractivity:function QP(ct){Ve().addEventListener("mousemove",g),qZ(ow,g),g(ct)},enable:function mp(){D.state.isEnabled=!0},disable:function ta(){D.hide(),D.state.isEnabled=!1},unmount:function ex(){D.state.isVisible&&D.hide(),D.state.isMounted&&(hs(),Lr().forEach(function(ct){ct._tippy.unmount()}),H.parentNode&&H.parentNode.removeChild(H),rw=rw.filter(function(ct){return ct!==D}),D.state.isMounted=!1,qe("onHidden",[D]))},destroy:function tx(){D.state.isDestroyed||(D.clearDelayTimeouts(),D.unmount(),$0(),delete n._tippy,D.state.isDestroyed=!0,qe("onDestroy",[D]))}};if(!e.render)return D;var X=e.render(D),H=X.popper,re=X.onUpdate;H.setAttribute("data-tippy-root",""),H.id="tippy-"+D.id,D.popper=H,n._tippy=D,H._tippy=D;var ee=q.map(function(ct){return ct.fn(D)}),le=n.hasAttribute("aria-expanded");return W0(),Ze(),Ut(),qe("onCreate",[D]),e.showOnCreate&&Js(),H.addEventListener("mouseenter",function(){D.props.interactive&&D.state.isVisible&&D.clearDelayTimeouts()}),H.addEventListener("mouseleave",function(){D.props.interactive&&D.props.trigger.indexOf("mouseenter")>=0&&Ve().addEventListener("mousemove",g)}),D;function he(){var ct=D.props.touch;return Array.isArray(ct)?ct:[ct,0]}function Me(){return"hold"===he()[0]}function me(){var ct;return!(null==(ct=D.props.render)||!ct.$$tippy)}function xe(){return v||n}function Ve(){var ct=xe().parentNode;return ct?function RZ(n){var t,o=rf(n)[0];return null!=o&&null!=(t=o.ownerDocument)&&t.body?o.ownerDocument:document}(ct):document}function st(){return nw(H)}function rt(ct){return D.state.isMounted&&!D.state.isVisible||Cd.isTouch||d&&"focus"===d.type?0:wD(D.props.delay,ct?0:1,js.delay)}function Ut(ct){void 0===ct&&(ct=!1),H.style.pointerEvents=D.props.interactive&&!ct?"":"none",H.style.zIndex=""+D.props.zIndex}function qe(ct,z0,n1){var Nn;void 0===n1&&(n1=!0),ee.forEach(function(Mn){Mn[ct]&&Mn[ct].apply(Mn,z0)}),n1&&(Nn=D.props)[ct].apply(Nn,z0)}function ke(){var ct=D.props.aria;if(ct.content){var z0="aria-"+ct.content,n1=H.id;rf(D.props.triggerTarget||n).forEach(function(Mn){var na=Mn.getAttribute(z0);if(D.state.isVisible)Mn.setAttribute(z0,na?na+" "+n1:n1);else{var Da=na&&na.replace(n1,"").trim();Da?Mn.setAttribute(z0,Da):Mn.removeAttribute(z0)}})}}function Ze(){!le&&D.props.aria.expanded&&rf(D.props.triggerTarget||n).forEach(function(z0){D.props.interactive?z0.setAttribute("aria-expanded",D.state.isVisible&&z0===xe()?"true":"false"):z0.removeAttribute("aria-expanded")})}function vt(){Ve().removeEventListener("mousemove",g),ow=ow.filter(function(ct){return ct!==g})}function Mt(ct){if(!Cd.isTouch||!c&&"mousedown"!==ct.type){var z0=ct.composedPath&&ct.composedPath()[0]||ct.target;if(!D.props.interactive||!SZ(H,z0)){if(rf(D.props.triggerTarget||n).some(function(n1){return SZ(n1,z0)})){if(Cd.isTouch||D.state.isVisible&&D.props.trigger.indexOf("click")>=0)return}else qe("onClickOutside",[D,ct]);!0===D.props.hideOnClick&&(D.clearDelayTimeouts(),D.hide(),s=!0,setTimeout(function(){s=!1}),D.state.isMounted||p1())}}}function kt(){c=!0}function Gt(){c=!1}function I0(){var ct=Ve();ct.addEventListener("mousedown",Mt,!0),ct.addEventListener("touchend",Mt,nf),ct.addEventListener("touchstart",Gt,nf),ct.addEventListener("touchmove",kt,nf)}function p1(){var ct=Ve();ct.removeEventListener("mousedown",Mt,!0),ct.removeEventListener("touchend",Mt,nf),ct.removeEventListener("touchstart",Gt,nf),ct.removeEventListener("touchmove",kt,nf)}function ro(ct,z0){var n1=st().box;function Nn(Mn){Mn.target===n1&&(LD(n1,"remove",Nn),z0())}if(0===ct)return z0();LD(n1,"remove",u),LD(n1,"add",Nn),u=Nn}function sn(ct,z0,n1){void 0===n1&&(n1=!1),rf(D.props.triggerTarget||n).forEach(function(Mn){Mn.addEventListener(ct,z0,n1),M.push({node:Mn,eventType:ct,handler:z0,options:n1})})}function W0(){Me()&&(sn("touchstart",mr,{passive:!0}),sn("touchend",mi,{passive:!0})),function Xze(n){return n.split(/\s+/).filter(Boolean)}(D.props.trigger).forEach(function(ct){if("manual"!==ct)switch(sn(ct,mr),ct){case"mouseenter":sn("mouseleave",mi);break;case"focus":sn(Qze?"focusout":"blur",Wr);break;case"focusin":sn("focusout",Wr)}})}function $0(){M.forEach(function(ct){ct.node.removeEventListener(ct.eventType,ct.handler,ct.options)}),M=[]}function mr(ct){var z0,n1=!1;if(D.state.isEnabled&&!ti(ct)&&!s){var Nn="focus"===(null==(z0=d)?void 0:z0.type);d=ct,v=ct.currentTarget,Ze(),!D.state.isVisible&&function qD(n){return PD(n,"MouseEvent")}(ct)&&ow.forEach(function(Mn){return Mn(ct)}),"click"===ct.type&&(D.props.trigger.indexOf("mouseenter")<0||a)&&!1!==D.props.hideOnClick&&D.state.isVisible?n1=!0:Js(ct),"click"===ct.type&&(a=!n1),n1&&!Nn&&ea(ct)}}function Mo(ct){var z0=ct.target,n1=xe().contains(z0)||H.contains(z0);"mousemove"===ct.type&&n1||function $ze(n,t){var e=t.clientX,o=t.clientY;return n.every(function(r){var i=r.popperRect,a=r.popperState,c=r.props.interactiveBorder,p=function WZ(n){return n.split("-")[0]}(a.placement),d=a.modifiersData.offset;return!d||i.top-o+("bottom"===p?d.top.y:0)>c||o-i.bottom-("top"===p?d.bottom.y:0)>c||i.left-e+("right"===p?d.left.x:0)>c||e-i.right-("left"===p?d.right.x:0)>c})}(Lr().concat(H).map(function(Mn){var na,Fu=null==(na=Mn._tippy.popperInstance)?void 0:na.state;return Fu?{popperRect:Mn.getBoundingClientRect(),popperState:Fu,props:e}:null}).filter(Boolean),ct)&&(vt(),ea(ct))}function mi(ct){if(!(ti(ct)||D.props.trigger.indexOf("click")>=0&&a)){if(D.props.interactive)return void D.hideWithInteractivity(ct);ea(ct)}}function Wr(ct){D.props.trigger.indexOf("focusin")<0&&ct.target!==xe()||D.props.interactive&&ct.relatedTarget&&H.contains(ct.relatedTarget)||ea(ct)}function ti(ct){return!!Cd.isTouch&&Me()!==ct.type.indexOf("touch")>=0}function Qi(){hs();var ct=D.props,z0=ct.popperOptions,n1=ct.placement,Nn=ct.offset,Mn=ct.getReferenceClientRect,na=ct.moveTransition,Da=me()?nw(H).arrow:null,Fu=Mn?{getBoundingClientRect:Mn,contextElement:Mn.contextElement||xe()}:n,ka=[{name:"offset",options:{offset:Nn}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!na}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(GO){var Yu=GO.state;if(me()){var xv=st().box;["placement","reference-hidden","escaped"].forEach(function(ZO){"placement"===ZO?xv.setAttribute("data-placement",Yu.placement):Yu.attributes.popper["data-popper-"+ZO]?xv.setAttribute("data-"+ZO,""):xv.removeAttribute("data-"+ZO)}),Yu.attributes.popper={}}}}];me()&&Da&&ka.push({name:"arrow",options:{element:Da,padding:3}}),ka.push.apply(ka,z0?.modifiers||[]),D.popperInstance=Fze(Fu,H,Object.assign({},z0,{placement:n1,onFirstUpdate:h,modifiers:ka}))}function hs(){D.popperInstance&&(D.popperInstance.destroy(),D.popperInstance=null)}function Lr(){return gO(H.querySelectorAll("[data-tippy-root]"))}function Js(ct){D.clearDelayTimeouts(),ct&&qe("onTrigger",[D,ct]),I0();var z0=rt(!0),n1=he(),Mn=n1[1];Cd.isTouch&&"hold"===n1[0]&&Mn&&(z0=Mn),z0?o=setTimeout(function(){D.show()},z0):D.show()}function ea(ct){if(D.clearDelayTimeouts(),qe("onUntrigger",[D,ct]),D.state.isVisible){if(!(D.props.trigger.indexOf("mouseenter")>=0&&D.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ct.type)>=0&&a)){var z0=rt(!1);z0?r=setTimeout(function(){D.state.isVisible&&D.hide()},z0):i=requestAnimationFrame(function(){D.hide()})}}else p1()}}function af(n,t){void 0===t&&(t={});var e=js.plugins.concat(t.plugins||[]);!function Kze(){document.addEventListener("touchstart",Gze,nf),window.addEventListener("blur",Zze)}();var o=Object.assign({},t,{plugins:e}),s=function Vze(n){return tw(n)?[n]:function Uze(n){return PD(n,"NodeList")}(n)?gO(n):Array.isArray(n)?n:gO(document.querySelectorAll(n))}(n).reduce(function(c,p){var d=p&&cve(p,o);return d&&c.push(d),c},[]);return tw(n)?s[0]:s}af.defaultProps=js,af.setDefaultProps=function(t){Object.keys(t).forEach(function(o){js[o]=t[o]})},af.currentInput=Cd,Object.assign({},fZ,{effect:function(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow)}}),af.setDefaultProps({render:jZ});const bve=af,gve=["addListener","removeListener"],Ove=["addEventListener","removeEventListener"],mve=["on","off"];function dp(n,t,e,o){if(z(e)&&(o=e,e=void 0),o)return dp(n,t,e).pipe(QW(o));const[r,i]=function vve(n){return z(n.addEventListener)&&z(n.removeEventListener)}(n)?Ove.map(a=>s=>n[a](t,s,e)):function _ve(n){return z(n.addListener)&&z(n.removeListener)}(n)?gve.map($Z(n,t)):function zve(n){return z(n.on)&&z(n.off)}(n)?mve.map($Z(n,t)):[];if(!r&&tn(n))return On(a=>dp(a,t,e))(k0(n));if(!r)throw new TypeError("Invalid event target");return new V(a=>{const s=(...c)=>a.next(1i(s)})}function $Z(n,t){return e=>o=>n[e](t,o)}function aw(n){return n instanceof Xc}function xz(n){return"function"==typeof n}function qz(n){return"string"==typeof n}let Cve=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["dynamic-view"]],inputs:{content:"content"},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(e,o){1&e&&de(0,"div",0),2&e&&T("innerHTML",o.content,Kf)},encapsulation:2}),n})();class wve{constructor(t){this.args=t,this.wrapper=null,this.args.vcr?(this.viewRef=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{}),this.viewRef.detectChanges()):(this.viewRef=this.args.tpl.createEmbeddedView(this.args.context||{}),this.viewRef.detectChanges(),this.args.appRef.attachView(this.viewRef))}detectChanges(){this.viewRef.detectChanges()}getElement(){const t=this.viewRef.rootNodes;return 1===t.length&&t[0]===Node.ELEMENT_NODE?this.element=t[0]:(this.element=document.createElement("div"),this.element.append(...t)),this.element}destroy(){1!==this.viewRef.rootNodes[0]&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.viewRef),this.viewRef.destroy(),this.viewRef=null}}class Pve{constructor(t){this.value=t}getElement(){return this.value}detectChanges(){}destroy(){}}class xve{constructor(t){if(this.options=t,t.vcr)this.compRef=t.vcr.createComponent(t.component,{index:t.vcr.length,injector:t.injector||t.vcr.injector});else{const e=t.resolver.resolveComponentFactory(t.component);this.compRef=e.create(t.injector),t.appRef.attachView(this.compRef.hostView)}}get ref(){return this.compRef}setInput(t,e){return this.compRef.instance[t]=e,this}setInputs(t){return Object.keys(t).forEach(e=>{this.compRef.instance[e]=t[e]}),this}detectChanges(){return this.compRef.hostView.detectChanges(),this}appendTo(t){return t.appendChild(this.getElement()),this}removeFrom(t){return t.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.compRef.location.nativeElement}destroy(){this.compRef.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.compRef.hostView),this.compRef=null}}let SD=(()=>{class n{constructor(e,o,r){this.resolver=e,this.injector=o,this.appRef=r}createComponent(e,o={}){return new xve({component:e,vcr:o.vcr,injector:o.injector||this.injector,appRef:this.appRef,resolver:this.resolver})}createTemplate(e,o={}){return new wve({vcr:o.vcr,appRef:this.appRef,tpl:e,context:o.context})}createView(e,o={}){if(aw(e))return this.createTemplate(e,o);if(xz(e))return this.createComponent(e,o);if(qz(e))return new Pve(e);throw"Type of content is not supported"}}return n.\u0275fac=function(e){return new(e||n)(Te(Pi),Te(Qo),Te(w2))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qve=(()=>{class n{constructor(e,o,r){this.defaultTpl=e,this.vcr=o,this.viewService=r}ngOnInit(){this.resolveContentType()}ngOnChanges(e){e.view&&!e.view.isFirstChange()&&this.resolveContentType()}resolveContentType(){this.viewRef?.destroy(),qz(this.view)?(this.viewRef=this.viewService.createComponent(Cve,{vcr:this.vcr,injector:this.injector}),this.viewRef.setInput("content",this.view).detectChanges()):this.viewRef=this.viewService.createView(this.view||this.defaultTpl,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context})}ngOnDestroy(){this.viewRef?.destroy()}}return n.\u0275fac=function(e){return new(e||n)(Re(Xc),Re(uc),Re(SD))},n.\u0275dir=b0({type:n,selectors:[["","dynamicView",""]],inputs:{view:["dynamicView","view"],injector:["dynamicViewInjector","injector"],context:["dynamicViewContext","context"]},features:[Yo]}),n})(),GZ=!1,ZZ=!1;function KZ(n,t={root:null,threshold:.3}){const e=eK(n);return new V(o=>{if(!GZ)return o.next(),void o.complete();const r=new IntersectionObserver(i=>{i[i.length-1].isIntersecting&&(o.next(),o.complete())},t);return r.observe(e),()=>r.disconnect()})}function JZ(n){const t=eK(n);return QZ(t).pipe(function yve(n,t=o_){return function Ave(n){return _t((t,e)=>{let o=!1,r=null,i=null,a=!1;const s=()=>{if(i?.unsubscribe(),i=null,o){o=!1;const p=r;r=null,e.next(p)}a&&e.complete()},c=()=>{i=null,a&&e.complete()};t.subscribe($(e,p=>{o=!0,r=p,i||k0(n(p)).subscribe(i=$(e,s,c))},()=>{a=!0,(!o||!i||i.closed)&&e.complete()}))})}(()=>r_(n,t))}(150),j(()=>function Wve(n){const t=n.offsetWidth;return t>n.parentElement.offsetWidth||t{if(!ZZ)return t.next(),void t.complete();const e=new ResizeObserver(()=>t.next(!0));return e.observe(n),()=>e.disconnect()})}(n)}function DD(n){const t={},e=["useTextContent","variations","useHostWidth","defaultVariation","beforeRender","lazy","variation","isEnabled","className","onlyTextOverflow","data","content","context","hideOnEscape","customHost","injector","preserveView","vcr","popperWidth"],o=["onShow","onHidden","onCreate"];return Object.keys(n).forEach(r=>{!e.includes(r)&&!o.includes(r)&&(t[r]=n[r])}),t}function eK(n){return n instanceof fn?n.nativeElement:n}typeof window<"u"&&(GZ="IntersectionObserver"in window,ZZ="ResizeObserver"in window);const tK=new Qt("Tippy config",{providedIn:"root",factory:()=>({})}),kve=new Qt("TIPPY_REF");let up=(()=>{class n{constructor(e,o,r,i,a,s,c){this.platformId=e,this.globalConfig=o,this.injector=r,this.viewService=i,this.vcr=a,this.zone=s,this.hostRef=c,this.onlyTextOverflow=!1,this.useHostWidth=!1,this.hideOnEscape=!1,this.detectChangesComponent=!0,this.visible=new G1,this.isVisible=!1,this.destroyed=new I,this.enabled=!0,this.variationDefined=!1,this.visibleInternal=new I}ngOnChanges(e){if(RW(this.platformId))return;let r,o=Object.keys(e).reduce((i,a)=>("isVisible"===a||(i[a]=e[a].currentValue),i),{});kD("variation",e)?(r=e.variation.currentValue,this.variationDefined=!0):this.variationDefined||(r=this.globalConfig.defaultVariation,this.variationDefined=!0),r&&(o={...this.globalConfig.variations[r],...o}),kD("isEnabled",e)&&(this.enabled=e.isEnabled.currentValue,this.setStatus()),kD("isVisible",e)&&(this.isVisible?this.show():this.hide()),this.setProps({...this.props,...o})}ngOnInit(){this.useHostWidth&&(this.props.maxWidth=this.hostWidth)}ngAfterViewInit(){RW(this.platformId)||this.zone.runOutsideAngular(()=>{this.lazy?this.onlyTextOverflow?KZ(this.host).pipe(hi(()=>JZ(this.host)),hc(this.destroyed)).subscribe(e=>{this.checkOverflow(e)}):KZ(this.host).pipe(hc(this.destroyed)).subscribe(()=>{this.createInstance()}):this.onlyTextOverflow?JZ(this.host).pipe(hc(this.destroyed)).subscribe(e=>{this.checkOverflow(e)}):this.createInstance()})}ngOnDestroy(){this.destroyed.next(),this.instance?.destroy(),this.destroyView()}destroyView(){this.viewOptions$=null,this.viewRef?.destroy(),this.viewRef=null}show(){this.instance?.show()}hide(){this.instance?.hide()}enable(){this.instance?.enable()}disable(){this.instance?.disable()}setProps(e){this.props=e,this.instance?.setProps(DD(e))}setStatus(){this.enabled?this.instance?.enable():this.instance?.disable()}get host(){return this.customHost||this.hostRef.nativeElement}get hostWidth(){return this.host.getBoundingClientRect().width}createInstance(){!this.content&&!nK(this.useTextContent)||this.zone.runOutsideAngular(()=>{this.instance=bve(this.host,{allowHTML:!0,appendTo:document.body,...DD(this.globalConfig),...DD(this.props),onMount:e=>{this.isVisible=!0,this.visibleInternal.next(this.isVisible),this.visible.observed&&this.zone.run(()=>this.visible.next(this.isVisible)),this.useHostWidth&&this.listenToHostResize(),this.globalConfig.onMount?.(e)},onCreate:e=>{if(e.popper.classList.add(`tippy-variation-${this.variation||this.globalConfig.defaultVariation}`),this.className)for(const o of function Tve(n){return(function Sve(n){return"string"==typeof n}(n)?n.split(" "):n).map(e=>e?.trim()).filter(Boolean)}(this.className))e.popper.classList.add(o);this.globalConfig.onCreate?.(e),!0===this.isVisible&&e.show()},onShow:e=>{e.reference.setAttribute("data-tippy-open",""),this.zone.run(()=>{const o=this.resolveContent(e);qz(o)&&(e.setProps({allowHTML:!1}),o?.trim()?this.enable():this.disable()),e.setContent(o),this.hideOnEscape&&this.handleEscapeButton()}),this.useHostWidth?this.setInstanceWidth(e,this.hostWidth):this.popperWidth&&this.setInstanceWidth(e,this.popperWidth),this.globalConfig.onShow?.(e)},onHide(e){e.reference.removeAttribute("data-tippy-open")},onHidden:e=>{this.destroyView(),this.isVisible=!1,this.visibleInternal.next(this.isVisible),this.visible.observed&&this.zone.run(()=>this.visible.next(this.isVisible)),this.globalConfig.onHidden?.(e)}}),this.setStatus(),this.setProps(this.props),"contextMenu"===this.variation&&this.handleContextMenu()})}resolveContent(e){!this.viewOptions$&&!qz(this.content)&&(xz(this.content)?(this.instance.data=this.data,this.viewOptions$={injector:Qo.create({providers:[{provide:kve,useValue:this.instance}],parent:this.injector})}):aw(this.content)&&(this.viewOptions$={context:{$implicit:this.hide.bind(this),data:this.data}})),this.viewRef=this.viewService.createView(this.content,{vcr:this.vcr,...this.viewOptions$}),this.detectChangesComponent&&xz(this.content)&&this.viewRef.detectChanges();let o=this.viewRef.getElement();return nK(this.useTextContent)&&(o=e.reference.textContent),qz(o)&&this.globalConfig.beforeRender&&(o=this.globalConfig.beforeRender(o)),o}handleContextMenu(){dp(this.host,"contextmenu").pipe(hc(this.destroyed)).subscribe(e=>{e.preventDefault(),this.instance.setProps({getReferenceClientRect:()=>({width:0,height:0,top:e.clientY,bottom:e.clientY,left:e.clientX,right:e.clientX})}),this.instance.show()})}handleEscapeButton(){this.zone.runOutsideAngular(()=>{dp(document.body,"keydown").pipe(ht(({code:e})=>"Escape"===e),hc(Ia(this.destroyed,this.visibleInternal.pipe(ht(e=>!e))))).subscribe(()=>this.hide())})}checkOverflow(e){e?this.instance?this.instance.enable():this.createInstance():this.instance?.disable()}listenToHostResize(){QZ(this.host).pipe(hc(Ia(this.destroyed,this.visibleInternal))).subscribe(()=>{this.setInstanceWidth(this.instance,this.hostWidth)})}setInstanceWidth(e,o){const r=function Rve(n){return function Dve(n){return null==n}(n)?"":"string"==typeof n?n:`${n}px`}(o);e.popper.style.width=r,e.popper.style.maxWidth=r,e.popper.firstElementChild.style.maxWidth=r}}return n.\u0275fac=function(e){return new(e||n)(Re(ug),Re(tK),Re(Qo),Re(SD),Re(uc),Re(To),Re(fn))},n.\u0275dir=b0({type:n,selectors:[["","tippy",""]],inputs:{appendTo:"appendTo",delay:"delay",duration:"duration",hideOnClick:"hideOnClick",interactive:"interactive",interactiveBorder:"interactiveBorder",maxWidth:"maxWidth",offset:"offset",placement:"placement",popperOptions:"popperOptions",showOnCreate:"showOnCreate",trigger:"trigger",triggerTarget:"triggerTarget",zIndex:"zIndex",animation:"animation",useTextContent:"useTextContent",lazy:"lazy",variation:"variation",isEnabled:"isEnabled",className:"className",onlyTextOverflow:"onlyTextOverflow",data:"data",useHostWidth:"useHostWidth",hideOnEscape:"hideOnEscape",detectChangesComponent:"detectChangesComponent",popperWidth:"popperWidth",content:["tippy","content"],customHost:["tippyHost","customHost"],isVisible:"isVisible"},outputs:{visible:"visible"},exportAs:["tippy"],standalone:!0,features:[Yo]}),n})();function kD(n,t){return n in t}function nK(n){return null!=n&&"false"!=`${n}`}const sw={theme:null,arrow:!1,animation:"scale",trigger:"mouseenter",offset:[0,5]};function cw(n={}){return{provide:tK,useValue:n}}function Eve(n,t){if(1&n&&(m(0,"storecloud-icon",3),l(1,"\n "),_()),2&n){const e=ce(2);T("icon","teal"===e.theme?"help-circle":"help-circle-white")("size",e.size)}}function Ive(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"span",1),l(3,"\n "),J(4,Eve,2,2,"storecloud-icon",2),l(5,"\n "),_(),l(6,"\n"),He()),2&n){const e=ce();P(2),co("tippy",e.tooltip),T("placement",e.placement),P(2),T("ngIf",e.tooltip)}}let Yi=class $k{constructor(){this.tooltip=null,this.placement="auto",this.theme="teal",this.size=12}static#e=this.\u0275fac=function(e){return new(e||$k)};static#t=this.\u0275cmp=Rt({type:$k,selectors:[["storecloud-tooltip"]],inputs:{tooltip:"tooltip",placement:"placement",theme:"theme",size:"size"},standalone:!0,features:[F1([cw({defaultVariation:"tooltip",variations:{tooltip:{...sw,theme:"light",arrow:!0}}})]),wo],decls:2,vars:1,consts:[[4,"ngIf"],[3,"tippy","placement"],[3,"icon","size",4,"ngIf"],[3,"icon","size"]],template:function(e,o){1&e&&(J(0,Ive,7,3,"ng-container",0),l(1,"\n")),2&e&&T("ngIf",o.tooltip)},dependencies:[Sn,Q0,up,br],styles:["app-icon[_ngcontent-%COMP%]{display:flex}"]})};function Nve(n,t){if(1&n&&(m(0,"span",10),l(1),_()),2&n){const e=ce();P(1),t0(null==e.chart?null:e.chart.subTitle)}}function Bve(n,t){1&n&&(Ye(0),l(1," "),He())}Yi=$e([p0({checkProperties:!0})],Yi);const Fve=function(){return{display:"block",padding:"0px"}},Yve=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function Hve(n,t){1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",11),l(2,"\n")),2&n&&(P(1),T("ngStyle",Et(2,Fve))("theme",Et(3,Yve)))}const Xve=function(n){return{heading:!0,"has-subtitle":n}},jve=function(n){return{opacity:n}};let lw=class Gk{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.tabs=Object.values(Qr),this.loading=!0,this.color=["#06B1A9","#073433","#CAFFFF","#818181","#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],this.mediaQueryForChart=[{query:{maxWidth:500},option:{textStyle:{fontSize:10},tooltip:{textStyle:{fontSize:10}},series:{label:{fontSize:10}},legend:{textStyle:{fontSize:10}}}}],this._data=null,this.echartsExtentions=[O_e,uz,G5,nZ,hz]}drawChart(t){try{this.options={color:this.color,textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},title:[{text:t?.title?.subText,subtext:t?.title?.text,padding:0,left:"75%",top:"40%",itemGap:5,textAlign:"center",textStyle:{color:"#111111",fontFamily:"Montserrat",fontWeight:"bolder",fontSize:18},subtextStyle:{fontSize:10,color:"#888888"}},{text:t?.subTitle?.text,subtext:t?.subTitle?.subText,padding:[0,0,0,0],textAlign:"left",top:"5%",itemGap:5,textStyle:{fontWeight:"normal",fontSize:11,color:"#888888"},subtextStyle:{fontSize:16,color:"#111111",fontWeight:"bolder"}}],tooltip:{show:!0},legend:{orient:"vertical",top:"middle",textAlign:"left",left:"0",icon:"circle",itemGap:10,itemWidth:10,formatter:function(e){const o=t?.data?.find(r=>r.name===e)?.value;return`${e} (${o})`},textStyle:{fontSize:12,color:"#111111"}},series:[{type:"pie",radius:["70%","90%"],center:["75%","50%"],avoidLabelOverlap:!0,itemStyle:{borderWidth:2,borderColor:"#ffffff"},label:{show:!1},labelLine:{show:!1},data:t?.data}],media:this.mediaQueryForChart},be(!0).pipe(Gr(300)).subscribe(()=>this.loading=!1)}catch(e){throw this.loading=!1,new Error(e)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let o=0;o${r?.toDateString()}\n
${t[o].seriesName}: ${t[o].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(ot(this)).subscribe(e=>{if(e?.data?.length>3){const r=JSON.parse(JSON.stringify(e?.data?.slice(0,3))),i=JSON.parse(JSON.stringify(e?.data?.slice(3,e?.data?.length)));r.push({name:"Others",value:i?.map(a=>parseFloat(a.value?.toString()??"0")).reduce((a,s)=>a+s)}),e.data=r}this.drawChart(e)})}static#e=this.\u0275fac=function(e){return new(e||Gk)};static#t=this.\u0275cmp=Rt({type:Gk,selectors:[["storecloud-shared-chart-pie-doughnut"]],inputs:{chart:"chart",data:"data"},decls:26,vars:16,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","chart-pie-doughnut-container"],["echarts","",1,"chart-pie-doughnut",3,"id","options","ngStyle","defaultHeight","extentions","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),m(2,"div",1),l(3,"\n "),m(4,"p",2),l(5,"\n "),m(6,"span",3),l(7),de(8,"storecloud-tooltip",4),l(9,"\n "),_(),l(10,"\n "),J(11,Nve,2,1,"span",5),l(12,"\n "),_(),l(13,"\n "),_(),l(14,"\n\n "),m(15,"div",6),l(16,"\n "),m(17,"div",7),yt("chartinit",function(i){return o.onChartInit(i)}),_(),l(18,"\n "),J(19,Bve,2,0,"ng-container",8),l(20,"\n "),_(),l(21,"\n"),_(),l(22,"\n\n"),J(23,Hve,3,4,"ng-template",null,9,$t),l(25,"\n")),2&e){const r=gt(24);let i;P(2),T("ngClass",Ht(12,Xve,null==o.chart?null:o.chart.showTabs)),P(5),Ct("\n ",null==o.chart?null:o.chart.title,"\n "),P(1),T("tooltip",null==o.chart?null:o.chart.tooltip),P(3),T("ngIf",null==o.chart?null:o.chart.subTitle),P(6),co("id",null!==(i=null==o.chart?null:o.chart.id)&&void 0!==i?i:"chart_pie-douhnut"),T("options",o.options)("ngStyle",Ht(14,jve,o.loading?0:1))("defaultHeight",(null==o.chart?null:o.chart.height)||150)("extentions",o.echartsExtentions)("isResizable",!0),P(2),T("ngIf",!o.loading)("ngIfElse",r)}},dependencies:[Io,Q0,Jn,tr,Mz,Yi],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{margin-top:10px;height:130px;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}.chart-pie-doughnut-container[_ngcontent-%COMP%]{height:160px;margin-top:4px}@media screen and (max-width: 550px){.chart-pie-doughnut-container[_ngcontent-%COMP%]{height:150px}}.chart-pie-doughnut[_ngcontent-%COMP%]{height:140px}"]})};lw=$e([p0({checkProperties:!0})],lw);let sf=(()=>{class n{constructor(e,o){this.changeDetectorRef=e,this.ngZone=o,this.timer=null}transform(e,o){if(this.removeTimer(),!e)return null;let r;r=Math.abs(Date.now()-parseInt(e?.toString()))typeof window<"u"?window.setTimeout(()=>{this.ngZone.run(()=>this.changeDetectorRef.markForCheck())},s):null);const c=Math.round(Math.abs(a/60)),p=Math.round(Math.abs(c/60)),d=Math.round(Math.abs(p/24)),h=(Math.round(Math.abs(d/30.416)),Math.round(Math.abs(d/365)));return Number.isNaN(a)?"":a<=1?o?"1 sec":"1s":a<=59?a+(o?" secs":"s"):c<=1?o?"1 minute":"1min":c<=59?c+(o?" minutes":"min"):p<=1?o?"1 hour":"1h":p<=24?p+(o?" hours":"h"):d<=1?o?"1 day":"1d":d<=345?d+(o?" days":"d"):d<=545?o?"1 year":"1y":h+(o?" years":"y")}ngOnDestroy(){this.removeTimer()}removeTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=null)}getSecondsUntilUpdate(e){return e<60?2:e<3600?30:e<86400?300:3600}static#e=this.\u0275fac=function(o){return new(o||n)(Re(ns,16),Re(To,16))};static#t=this.\u0275pipe=jn({name:"timeAgo",type:n,pure:!1})}return n})(),oK=(()=>{class n{transform(e,o){return o=o||32,e=e?.toString()?.replace("https://","")?.replace("http://","")?.replace("www",""),e&&e?.length>o?e?.slice(0,o)+"...":e}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275pipe=jn({name:"trim",type:n,pure:!1})}return n})(),rK=(()=>{class n{transform(e,o){let r;const i=["K","M","B","T","P","E"],a=e<0;return Number.isNaN(e)||e<1e3&&e>=0||!this.isNumeric(e)||e<0&&e>-1e3?(!o||this.isNumeric(e),this.toFixed(e,o)):a?(e*=-1,r=Math.floor(Math.log(e)/Math.log(1e3)),this.toFixed(-1*e/Math.pow(1e3,r),o)+i[r-1]):(r=Math.floor(Math.log(e)/Math.log(1e3)),this.toFixed(e/Math.pow(1e3,r),o)+i[r-1])}toFixed(e,o){try{return o?.force?e?.toFixed(o?.count):e?.toFixed(o?.count)?.replace(/[.,]00$/,"")}catch(r){return console.error(r),e}}isNumeric(e){return e<0&&(e*=-1),!!/^-{0,1}\d+$/.test(e)||!!/^\d+\.\d+$/.test(e)}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275pipe=jn({name:"shortNumber",type:n,pure:!0})}return n})(),iK=(()=>{class n{transform(e,o){e.value=o}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275pipe=jn({name:"replaceValue",type:n,pure:!1})}return n})(),aK=(()=>{class n{transform(e){return this.formatBytes(parseInt(e))}formatBytes(e){if(0===e)return"0 Bytes";const s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275pipe=jn({name:"formatBytes",type:n,pure:!1})}return n})();var dM=1e6,Wz="[big.js] ",uM=Wz+"Invalid ",pw=uM+"decimal places",Kve=uM+"rounding mode",cK=Wz+"Division by zero",po={},wd=void 0,Jve=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function fM(n,t,e,o){var r=n.c;if(e===wd&&(e=n.constructor.RM),0!==e&&1!==e&&2!==e&&3!==e)throw Error(Kve);if(t<1)o=3===e&&(o||!!r[0])||0===t&&(1===e&&r[0]>=5||2===e&&(r[0]>5||5===r[0]&&(o||r[1]!==wd))),r.length=1,o?(n.e=n.e-t+1,r[0]=1):r[0]=n.e=0;else if(t=5||2===e&&(r[t]>5||5===r[t]&&(o||r[t+1]!==wd||1&r[t-1]))||3===e&&(o||!!r[0]),r.length=t,o)for(;++r[--t]>9;)if(r[t]=0,0===t){++n.e,r.unshift(1);break}for(t=r.length;!r[--t];)r.pop()}return n}function OO(n,t,e){var o=n.e,r=n.c.join(""),i=r.length;if(t)r=r.charAt(0)+(i>1?"."+r.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)r="0"+r;r="0."+r}else if(o>0)if(++o>i)for(o-=i;o--;)r+="0";else o1&&(r=r.charAt(0)+"."+r.slice(1));return n.s<0&&e?"-"+r:r}po.abs=function(){var n=new this.constructor(this);return n.s=1,n},po.cmp=function(n){var t,e=this,o=e.c,r=(n=new e.constructor(n)).c,i=e.s,a=n.s,s=e.e,c=n.e;if(!o[0]||!r[0])return o[0]?i:r[0]?-a:0;if(i!=a)return i;if(t=i<0,s!=c)return s>c^t?1:-1;for(a=(s=o.length)<(c=r.length)?s:c,i=-1;++ir[i]^t?1:-1;return s==c?0:s>c^t?1:-1},po.div=function(n){var t=this,e=t.constructor,o=t.c,r=(n=new e(n)).c,i=t.s==n.s?1:-1,a=e.DP;if(a!==~~a||a<0||a>dM)throw Error(pw);if(!r[0])throw Error(cK);if(!o[0])return n.s=i,n.c=[n.e=0],n;var s,c,p,d,u,h=r.slice(),M=s=r.length,g=o.length,v=o.slice(0,s),A=v.length,y=n,q=y.c=[],L=0,D=a+(y.e=t.e-n.e)+1;for(y.s=i,i=D<0?0:D,h.unshift(0);A++A?1:-1;else for(u=-1,d=0;++uv[u]?1:-1;break}if(!(d<0))break;for(c=A==s?r:h;A;){if(v[--A]D&&fM(y,D,e.RM,v[0]!==wd),y},po.eq=function(n){return 0===this.cmp(n)},po.gt=function(n){return this.cmp(n)>0},po.gte=function(n){return this.cmp(n)>-1},po.lt=function(n){return this.cmp(n)<0},po.lte=function(n){return this.cmp(n)<1},po.minus=po.sub=function(n){var t,e,o,r,i=this,a=i.constructor,s=i.s,c=(n=new a(n)).s;if(s!=c)return n.s=-c,i.plus(n);var p=i.c.slice(),d=i.e,u=n.c,h=n.e;if(!p[0]||!u[0])return u[0]?n.s=-c:p[0]?n=new a(i):n.s=1,n;if(s=d-h){for((r=s<0)?(s=-s,o=p):(h=d,o=u),o.reverse(),c=s;c--;)o.push(0);o.reverse()}else for(e=((r=p.length0)for(;c--;)p[t++]=0;for(c=t;e>s;){if(p[--e]0?(c=a,o=p):(t=-t,o=s),o.reverse();t--;)o.push(0);o.reverse()}for(s.length-p.length<0&&(o=p,p=s,s=o),t=p.length,e=0;t;s[t]%=10)e=(s[--t]=s[t]+p[t]+e)/10|0;for(e&&(s.unshift(e),++c),t=s.length;0===s[--t];)s.pop();return n.c=s,n.e=c,n},po.pow=function(n){var t=this,e=new t.constructor("1"),o=e,r=n<0;if(n!==~~n||n<-1e6||n>1e6)throw Error(uM+"exponent");for(r&&(n=-n);1&n&&(o=o.times(t)),n>>=1;)t=t.times(t);return r?e.div(o):o},po.prec=function(n,t){if(n!==~~n||n<1||n>dM)throw Error(uM+"precision");return fM(new this.constructor(this),n,t)},po.round=function(n,t){if(n===wd)n=0;else if(n!==~~n||n<-dM||n>dM)throw Error(pw);return fM(new this.constructor(this),n+this.e+1,t)},po.sqrt=function(){var n,t,e,o=this,r=o.constructor,i=o.s,a=o.e,s=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(Wz+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),n=new r(((i=Math.sqrt(t))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+a)):n=new r(i+""),a=n.e+(r.DP+=4);do{n=s.times((e=n).plus(o.div(e)))}while(e.c.slice(0,a).join("")!==n.c.slice(0,a).join(""));return fM(n,(r.DP-=4)+n.e+1,r.RM)},po.times=po.mul=function(n){var t,e=this,r=e.c,i=(n=new(0,e.constructor)(n)).c,a=r.length,s=i.length,c=e.e,p=n.e;if(n.s=e.s==n.s?1:-1,!r[0]||!i[0])return n.c=[n.e=0],n;for(n.e=c+p,ac;)s=t[p]+i[c]*r[p-c-1]+s,t[p--]=s%10,s=s/10|0;t[p]=s}for(s?++n.e:t.shift(),c=t.length;!t[--c];)t.pop();return n.c=t,n},po.toExponential=function(n,t){var e=this,o=e.c[0];if(n!==wd){if(n!==~~n||n<0||n>dM)throw Error(pw);for(e=fM(new e.constructor(e),++n,t);e.c.lengthdM)throw Error(pw);for(n=n+(e=fM(new e.constructor(e),n+e.e+1,t)).e+1;e.c.length=t.PE,!!n.c[0])},po.toNumber=function(){var n=Number(OO(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(n.toString()))throw Error(Wz+"Imprecise conversion");return n},po.toPrecision=function(n,t){var e=this,o=e.constructor,r=e.c[0];if(n!==wd){if(n!==~~n||n<1||n>dM)throw Error(uM+"precision");for(e=fM(new o(e),n,t);e.c.length=o.PE,!!r)},po.valueOf=function(){var n=this,t=n.constructor;if(!0===t.strict)throw Error(Wz+"valueOf disallowed");return OO(n,n.e<=t.NE||n.e>=t.PE,!0)};var eAe=function lK(){function n(t){var e=this;if(!(e instanceof n))return t===wd?lK():new n(t);if(t instanceof n)e.s=t.s,e.e=t.e,e.c=t.c.slice();else{if("string"!=typeof t){if(!0===n.strict&&"bigint"!=typeof t)throw TypeError(uM+"value");t=0===t&&1/t<0?"-0":String(t)}!function Qve(n,t){var e,o,r;if(!Jve.test(t))throw Error(uM+"number");for(n.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(e=t.indexOf("."))>-1&&(t=t.replace(".","")),(o=t.search(/e/i))>0?(e<0&&(e=o),e+=+t.slice(o+1),t=t.substring(0,o)):e<0&&(e=t.length),r=t.length,o=0;o0&&"0"==t.charAt(--r););for(n.e=e-o-1,n.c=[],e=0;o<=r;)n.c[e++]=+t.charAt(o++)}}(e,t)}e.constructor=n}return n.prototype=po,n.DP=20,n.RM=1,n.NE=-7,n.PE=21,n.strict=false,n.roundDown=0,n.roundHalfUp=1,n.roundHalfEven=2,n.roundUp=3,n}();const t1=eAe;let Lz=(()=>{class n{constructor(){this.supportedNetworks=lt.AvailableNetworks}transform(e){const o=this.supportedNetworks.find(a=>a.symbol===e);let r=o?o?.name:e;return e===lt.Unit.BITS||(r=e===lt.Unit.USD?"US Dollar":e===lt.Unit.SATS||e===lt.Unit.WEI||e===lt.Unit.GWEI?e.toLocaleLowerCase():e===lt.Unit.PERCENT?"%":e===lt.Unit.SETH?"sETH":e.toUpperCase()),{name:r,icon:o?o?.icon:""}}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275pipe=jn({name:"denomination",type:n,pure:!1})}return n})(),dw=(()=>{class n{constructor(e){this.denominationPipe=e}transform(e,o){const r=lt.AllowedCurrenciesDecimalPlacesMapping[e?.unit],i=e?.value?e.value[e.unit]:"0",a="number"==typeof r?parseFloat(i).toLocaleString("en-US",{minimumFractionDigits:o??r,maximumFractionDigits:o??r}):i,s=this.denominationPipe.transform(e?.unit);switch(e?.unit){case lt.Unit.PERCENT:return{type:"html",value:this.makeBeforeDecimalBold(t1(a).mul(100)?.toString()),symbol:"%"};case lt.Unit.USD:return{type:"html",preSymbol:"$",value:this.makeBeforeDecimalBold(a)};case lt.Unit.STORE:return{valueIcon:"store-logo-only",valueIconSize:14,type:"html",value:this.makeBeforeDecimalBold(a),symbol:"STORE"};case lt.Unit.BITS:return{valueIcon:"store-logo-only",value:a,type:"string",symbol:parseFloat(a??"0")>1?" bits":"bit"};default:return{type:"html",value:this.makeBeforeDecimalBold(a),valueIcon:s.icon,valueIconSize:14,symbol:s?.name}}}makeBeforeDecimalBold(e){let o=e?.split(".");return 1===o.length?`${e}`:`${o[0]}.${o[1]}`}static#e=this.\u0275fac=function(o){return new(o||n)(Re(Lz,16))};static#t=this.\u0275pipe=jn({name:"oracleFormatValue",type:n,pure:!1})}return n})(),pK=(()=>{class n{transform(e){return"dynamic-proof-of-stake"===e?"Dynamic Proof-Of-Stake (DyPoS)":e?.toString().replace("-"," ").replace(/(^|\s)\S/g,r=>r.toUpperCase())}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275pipe=jn({name:"transformValue",type:n,pure:!1})}return n})();const tAe=G(1158);let mO=(()=>{class n{constructor(e){this.timeAgoPipe=e}transform(e,o){if(!e)return null;const r=tAe(e).tz("GMT"),i=this.timeAgoPipe.transform(new Date(r).valueOf(),!0);return`${r.format("DD/MM/YYYY h:mm A z")} ${o?"":`(${i} ago)`} `?.toUpperCase()}static#e=this.\u0275fac=function(o){return new(o||n)(Re(sf,16))};static#t=this.\u0275pipe=jn({name:"dateFormat",type:n,pure:!1})}return n})();function nAe(n,t){if(1&n&&(m(0,"span",11),l(1),_()),2&n){const e=ce();P(1),t0(null==e.chart?null:e.chart.subTitle)}}const oAe=function(n){return{current:n}};function rAe(n,t){if(1&n){const e=b1();m(0,"li",14),yt("click",function(){const i=R0(e).$implicit,a=ce(2);return a.activeTab=i,v0(a.tabChange(i))}),l(1),_()}if(2&n){const e=t.$implicit,o=ce(2);T("ngClass",Ht(2,oAe,e===o.activeTab)),P(1),Ct("\n ",e,"\n ")}}function iAe(n,t){if(1&n&&(m(0,"ul",12),l(1,"\n "),J(2,rAe,2,4,"li",13),l(3,"\n "),_()),2&n){const e=ce();P(2),T("ngForOf",e.tabs)}}function aAe(n,t){1&n&&(Ye(0),l(1," "),He())}const sAe=function(){return{display:"block",padding:"0px"}},cAe=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function lAe(n,t){1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",15),l(2,"\n")),2&n&&(P(1),T("ngStyle",Et(2,sAe))("theme",Et(3,cAe)))}const pAe=function(n){return{heading:!0,"has-subtitle":n}},dAe=function(n){return{opacity:n}};let uw=class Zk{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(t){this.dateFormatPipe=t,this.chart=null,this.tabEvent=new G1,this.tabs=Object.values(Qr),this.loading=!0,this.activeTab=Qr.D1,this.color=["#06B1A9","#073433","#CAFFFF","#818181","#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],this.mediaQueryForChart=[{query:{maxWidth:500},option:{textStyle:{fontSize:10},tooltip:{textStyle:{fontSize:10}},series:{label:{fontSize:10}},legend:{textStyle:{fontSize:10}}}}],this._data=null,this.echartsExtentions=[f5,nZ,uz,G5,hz]}ngAfterViewInit(){this.tabChange(this.activeTab)}tabChange(t){const e=new Date;let o=new Date;switch(t){case Qr.D1:o.setDate(e.getDate()-1);break;case Qr.D7:o.setDate(e.getDate()-7);break;case Qr.D30:o.setDate(e.getDate()-30);break;case Qr.YTD:o=new Date((new Date).getFullYear(),0,1)}this.tabEvent.emit({from:t===Qr.AllTime?void 0:o?.getTime(),till:t===Qr.AllTime?void 0:e?.getTime()})}drawChart(t){const e=[];t?.series?.forEach(i=>{e.push({name:i.name,type:"line",stack:"Total",symbol:"none",emphasis:{focus:"series"},areaStyle:{},data:i?.data?.map(a=>[new Date(a.date).valueOf(),parseFloat(a.value?.toString())])})});const o=t?.series?.[0]?.data.sort((i,a)=>new Date(a.date).getTime()-new Date(i.date).getTime())[0],r=this.dateFormatPipe.transform(o?.date);try{this.options={color:this.color,textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},title:[{text:`Last updated: ${r}`,top:"bottom",textStyle:{fontSize:10,fontWeight:"normal",color:"#707070"}}],tooltip:{trigger:"axis",triggerOn:"click|mousemove",hideDelay:500,axisPointer:{type:"line"},formatter:function(i){const a=i[0].value?.[0];let s="";for(let c=0;c',s+=""+i[c].seriesName+": "+uAe(i[c].value?.[1],2)+"
";return`Date: ${new Date(a)?.toLocaleString()}
${s}`}},legend:{show:!0,orient:"horizontal",x:"left",icon:"circle",itemGap:40,itemWidth:10,textStyle:{fontSize:12,color:"#707070",lineHeight:18,padding:[0,0,0,10]}},grid:{top:"20%",left:"0px",right:"0px",bottom:"20%"},xAxis:[{type:"time",boundaryGap:!1,axisLabel:{show:!1},axisLine:{show:!1,lineStyle:{color:"transparent"}},splitArea:{show:!1},splitLine:{show:!0,lineStyle:{color:"#111111",type:"dashed",opacity:.1}}}],yAxis:[{show:!1,type:"value"}],series:e,media:this.mediaQueryForChart},be(!0).pipe(Gr(300)).subscribe(()=>this.loading=!1)}catch(i){throw this.loading=!1,new Error(i)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let o=0;o${r?.toDateString()}\n
${t[o].seriesName}: ${t[o].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(ot(this)).subscribe(e=>{e?.series?.forEach(o=>{o.data=ld.orderBy(o.data,"date","asc")}),this.drawChart(e)})}static#e=this.\u0275fac=function(e){return new(e||Zk)(Re(mO))};static#t=this.\u0275cmp=Rt({type:Zk,selectors:[["storecloud-shared-chart-area-line"]],inputs:{chart:"chart",data:"data"},outputs:{tabEvent:"tabEvent"},features:[F1([mO,sf])],decls:28,vars:17,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],["class","tabs-list",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","chart-area-line-container"],["echarts","",1,"chart-area-line",3,"id","options","extentions","defaultHeight","ngStyle","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],[1,"tabs-list"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),m(2,"div",1),l(3,"\n "),m(4,"p",2),l(5,"\n "),m(6,"span",3),l(7),de(8,"storecloud-tooltip",4),l(9,"\n "),_(),l(10,"\n "),J(11,nAe,2,1,"span",5),l(12,"\n "),_(),l(13,"\n "),J(14,iAe,4,1,"ul",6),l(15,"\n "),_(),l(16,"\n\n "),m(17,"div",7),l(18,"\n "),m(19,"div",8),yt("chartinit",function(i){return o.onChartInit(i)}),_(),l(20,"\n "),J(21,aAe,2,0,"ng-container",9),l(22,"\n "),_(),l(23,"\n"),_(),l(24,"\n\n"),J(25,lAe,3,4,"ng-template",null,10,$t),l(27,"\n")),2&e){const r=gt(26);let i;P(2),T("ngClass",Ht(13,pAe,null==o.chart?null:o.chart.showTabs)),P(5),Ct("\n ",null==o.chart?null:o.chart.title,"\n "),P(1),T("tooltip",null==o.chart?null:o.chart.tooltip),P(3),T("ngIf",null==o.chart?null:o.chart.subTitle),P(3),T("ngIf",null==o.chart?null:o.chart.showTabs),P(5),co("id",null!==(i=null==o.chart?null:o.chart.id)&&void 0!==i?i:"chart_area-line"),T("options",o.options)("extentions",o.echartsExtentions)("defaultHeight",(null==o.chart?null:o.chart.height)||150)("ngStyle",Ht(15,dAe,o.loading?0:1))("isResizable",!0),P(2),T("ngIf",!o.loading)("ngIfElse",r)}},dependencies:[Io,Xo,Q0,Jn,tr,Mz,Yi],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}.chart-area-line-container[_ngcontent-%COMP%]{height:160px}.chart-area-line[_ngcontent-%COMP%]{height:150px}"]})};function uAe(n,t=2){if(!+n)return"0 Bytes";const o=t<0?0:t,i=Math.floor(Math.log(n)/Math.log(1e3));return`${parseFloat((n/Math.pow(1e3,i)).toFixed(o))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}`}function fAe(n,t){1&n&&(Ye(0),l(1," "),He())}uw=$e([p0({checkProperties:!0})],uw);const hAe=function(){return{display:"block",padding:"0"}},MAe=function(){return{"margin-top":"0px","margin-bottom":"10px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"8px"}};function bAe(n,t){1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",4),l(2,"\n")),2&n&&(P(1),T("ngStyle",Et(2,hAe))("theme",Et(3,MAe)))}const gAe=function(n){return{height:"100%",padding:n}},OAe=function(n){return{height:"100%",opacity:n}};let fw=class Kk{set data(t){this.drawChart(t)}constructor(){this.chart=null,this.loading=!0,this.__chart=null,this.echartsExtentions=[f5,uz,G5,hz]}onChartInit(t){this._chart=t}drawChart(t){this._chart&&this._chart.destroy();try{this.options=t,t&&be(!0).pipe(Gr(600)).subscribe(()=>this.loading=!1)}catch(e){throw new Error(e)}}get pChart(){return this._chart}static#e=this.\u0275fac=function(e){return new(e||Kk)};static#t=this.\u0275cmp=Rt({type:Kk,selectors:[["storecloud-shared-chart-dynamic"]],inputs:{chart:"chart",data:"data"},decls:10,vars:14,consts:[[3,"ngStyle"],["id","dynamicChart","echarts","",3,"extentions","isResizable","options","ngStyle","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),m(2,"div",1),yt("chartinit",function(i){return o.onChartInit(i)}),_(),l(3,"\n "),J(4,fAe,2,0,"ng-container",2),l(5,"\n"),_(),l(6,"\n\n"),J(7,bAe,3,4,"ng-template",null,3,$t),l(9,"\n")),2&e){const r=gt(8);xn("content p-0 pr-0 ",null!=o.chart&&o.chart.showYAxisLabel&&!o.loading?"pl-2":"",""),T("ngStyle",Ht(10,gAe,null==o.chart||null==o.chart.cssStyle?null:o.chart.cssStyle.padding)),P(2),T("extentions",o.echartsExtentions)("isResizable",!0)("options",o.options)("ngStyle",Ht(12,OAe,o.loading?0:1)),P(2),T("ngIf",!o.loading)("ngIfElse",r)}},dependencies:[Q0,Jn,tr,Mz],styles:["ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-50%;left:50%;transform:translate(-50%,-50%)}"]})};function mAe(n,t){if(1&n&&de(0,"storecloud-tooltip",15),2&n){const e=ce();T("tooltip",null==e.stats$?null:e.stats$.tooltip)}}function _Ae(n,t){1&n&&(Ye(0),l(1,"\n "),He())}function zAe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,_Ae,2,0,"ng-container",4),l(3,"\n "),He()),2&n){const e=ce(),o=gt(25),r=gt(28);P(2),T("ngIf",null!=(null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfThen",o)("ngIfElse",r)}}function vAe(n,t){1&n&&(Ye(0),l(1,"\n "),He())}fw=$e([p0({checkProperties:!0})],fw);const AAe=function(n){return{items$:n}};function yAe(n,t){if(1&n&&(l(0,"\n "),m(1,"div"),l(2,"\n "),Ye(3,16),l(4,"\n "),He(),l(5,"\n "),_(),l(6,"\n")),2&n){const e=ce(),o=gt(34);P(1),xn("content grid-",(null==e.stats$||null==e.stats$.items$?null:e.stats$.items$.length)||e.loadingCount,""),P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(5,AAe,null==e.stats$?null:e.stats$.items$))}}const CAe=function(n){return{items:n}};function wAe(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,16),l(3,"\n "),He()),2&n){const e=t.ngIf;ce(2);const o=gt(37);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,CAe,e))}}function PAe(n,t){if(1&n&&(l(0,"\n "),m(1,"div"),l(2,"\n "),J(3,wAe,4,4,"ng-container",17),l(4,"\n "),_(),l(5,"\n")),2&n){const e=ce(),o=gt(43);P(1),xn("content grid-",(null==e.stats$||null==e.stats$.items?null:e.stats$.items.length)||e.loadingCount,""),P(2),T("ngIf",null==e.stats$?null:e.stats$.items)("ngIfElse",o)}}const hw=function(n){return{item:n}};function xAe(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,16),l(3,"\n "),He()),2&n){const e=t.ngIf;ce(2);const o=gt(31);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,hw,e))}}function qAe(n,t){if(1&n&&(l(0,"\n "),J(1,xAe,4,4,"ng-container",17),pt(2,"async"),l(3,"\n")),2&n){const e=ce(),o=gt(46);P(1),T("ngIf",a0(2,2,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfElse",o)}}function WAe(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,16),l(3,"\n "),He()),2&n){const e=t.ngIf;ce(2);const o=gt(31);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,hw,e))}}function LAe(n,t){if(1&n&&(l(0,"\n "),J(1,WAe,4,4,"ng-container",17),l(2,"\n")),2&n){const e=ce(),o=gt(46);P(1),T("ngIf",null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item)("ngIfElse",o)}}function TAe(n,t){if(1&n&&(l(0,"\n "),m(1,"p",18),l(2,"\n "),de(3,"storecloud-shared-value-formatter",19),l(4,"\n "),_(),l(5,"\n")),2&n){const e=t.item;P(3),T("item",e)("cssClass","heading-text-black "+(null==e?null:e.cssClass))("loadingWidth",100)("iconSize",25)}}function RAe(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,16),l(3,"\n "),He()),2&n){const e=t.ngIf;ce(3);const o=gt(40);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,hw,e))}}function SAe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,RAe,4,4,"ng-container",17),pt(3,"async"),l(4,"\n "),He()),2&n){const e=t.$implicit;ce(2);const o=gt(43);P(2),T("ngIf",a0(3,2,e))("ngIfElse",o)}}function DAe(n,t){if(1&n&&(l(0,"\n "),J(1,SAe,5,4,"ng-container",20),l(2,"\n")),2&n){const e=t.items$;P(1),T("ngForOf",e)}}function kAe(n,t){if(1&n&&(Ye(0),l(1,"\n\n "),g0(2,16),l(3,"\n "),He()),2&n){const e=t.$implicit;ce(2);const o=gt(40);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,hw,e))}}function EAe(n,t){if(1&n&&(l(0,"\n\n "),J(1,kAe,4,4,"ng-container",20),l(2,"\n")),2&n){const e=t.items;P(1),T("ngForOf",e)}}function IAe(n,t){if(1&n&&de(0,"storecloud-icon",26),2&n){const e=ce().item;T("icon",null==e?null:e.icon)}}function NAe(n,t){if(1&n&&(l(0,"\n "),m(1,"div",21),l(2,"\n "),m(3,"div",22),l(4,"\n "),J(5,IAe,1,1,"storecloud-icon",23),l(6,"\n "),de(7,"storecloud-shared-value-formatter",24),l(8,"\n "),_(),l(9,"\n "),m(10,"p",25),l(11),_(),l(12,"\n "),_(),l(13,"\n")),2&n){const e=t.item;P(5),T("ngIf",null==e?null:e.icon),P(2),T("item",e),P(3),xn("text-light d-flex ",null!=e&&e.inlineTooltip?"inlineTooltip":"",""),T("tippy",null!=e&&e.inlineTooltip?null==e?null:e.tooltip:null),P(1),Ct("\n ",null==e?null:e.label,"\n ")}}const BAe=function(){return{display:"contents"}},FAe=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"36px"}};function YAe(n,t){if(1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",27),l(2,"\n")),2&n){const e=ce();P(1),co("count",e.loadingCount),T("ngStyle",Et(3,BAe))("theme",Et(4,FAe))}}const HAe=function(){return{display:"flex",width:"100px","justify-self":"flex-end"}},XAe=function(){return{"margin-top":"0px","margin-bottom":"0px"}};function jAe(n,t){1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",28),l(2,"\n")),2&n&&(P(1),T("ngStyle",Et(2,HAe))("theme",Et(3,XAe)))}const UAe=function(n){return{card:n}},VAe=function(n){return{heading:!0,"has-subtitle":n}};let Tz=class Jk{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3}trackByFuntion(t,e){return e?.blockId??e?.transactionId??t?.id}static#e=this.\u0275fac=function(e){return new(e||Jk)};static#t=this.\u0275cmp=Rt({type:Jk,selectors:[["storecloud-shared-stats-card-with-icon-number"]],inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount"},decls:48,vars:12,consts:[[3,"ngClass"],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["items$Draw",""],["itemsDraw",""],["subTitleItem$",""],["subTitleItem",""],["subTitleValueFormatt",""],["itemTemp",""],["valueFormatt",""],["valueFormatTemp",""],["loader3",""],["loader1",""],[3,"tooltip"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[1,"heading-text-black"],[1,"d-flex-justify-end",3,"item","cssClass","loadingWidth","iconSize"],[4,"ngFor","ngForOf"],[1,"data-div"],[1,"icon-text"],["class","mb-minus-1 icon-16-size",3,"icon",4,"ngIf"],[3,"item"],["placement","bottom",3,"tippy"],[1,"mb-minus-1","icon-16-size",3,"icon"],["animation","progress",3,"count","ngStyle","theme"],["count","1","animation","progress",1,"value-loader-custom-height-black",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),Ye(2),l(3,"\n "),m(4,"div",0),l(5,"\n "),m(6,"p",1),l(7),J(8,mAe,1,1,"storecloud-tooltip",2),l(9,"\n "),_(),l(10,"\n "),J(11,zAe,4,3,"ng-container",3),l(12,"\n "),_(),l(13,"\n "),J(14,vAe,2,0,"ng-container",4),l(15,"\n "),He(),l(16,"\n"),_(),l(17,"\n\n"),J(18,yAe,7,7,"ng-template",null,5,$t),l(20,"\n\n"),J(21,PAe,6,5,"ng-template",null,6,$t),l(23,"\n\n"),J(24,qAe,4,4,"ng-template",null,7,$t),l(26,"\n"),J(27,LAe,3,2,"ng-template",null,8,$t),l(29,"\n\n"),J(30,TAe,6,4,"ng-template",null,9,$t),l(32,"\n"),J(33,DAe,3,1,"ng-template",null,10,$t),l(35,"\n"),J(36,EAe,3,1,"ng-template",null,11,$t),l(38,"\n\n"),J(39,NAe,14,7,"ng-template",null,12,$t),l(41,"\n\n"),J(42,YAe,3,5,"ng-template",null,13,$t),l(44,"\n\n"),J(45,jAe,3,4,"ng-template",null,14,$t),l(47,"\n")),2&e){const r=gt(19),i=gt(22);T("ngClass",Ht(8,UAe,!o.disableCardClass)),P(4),T("ngClass",Ht(10,VAe,null==o.stats$||null==o.stats$.subTitle?null:o.stats$.subTitle.enable)),P(3),Ct("\n ",null==o.stats$?null:o.stats$.title," "),P(1),T("ngIf",null==o.stats$?null:o.stats$.tooltip),P(3),T("ngIf",null==o.stats$||null==o.stats$.subTitle?null:o.stats$.subTitle.enable),P(3),T("ngIf",null!=(null==o.stats$?null:o.stats$.items$))("ngIfThen",r)("ngIfElse",i)}},styles:[".card[_ngcontent-%COMP%]{display:grid} .value-loader-custom-height-black .loader{height:2.6rem!important}@media screen and (max-width: 1024px){ .value-loader-custom-height-black .loader{height:2.4rem!important}}@media screen and (max-width: 525px){ .value-loader-custom-height-black .loader{height:1.8rem!important}}"]})};function $Ae(n,t){if(1&n&&(m(0,"span"),l(1),_()),2&n){const e=ce(2);P(1),t0(null==e.number$?null:e.number$.symbol)}}function GAe(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"p",5),l(3,"\n "),m(4,"span"),l(5),pt(6,"number"),_(),l(7," "),J(8,$Ae,2,1,"span",6),l(9,"\n "),_(),l(10,"\n "),He()),2&n){const e=t.ngIf,o=ce();P(5),Ct(" ",a0(6,2,e),""),P(3),T("ngIf",null==o.number$?null:o.number$.symbol)}}Tz=$e([p0({checkProperties:!0})],Tz);const ZAe=function(){return{display:"contents"}},KAe=function(){return{"margin-top":"10px","margin-bottom":"10px",height:"30px",width:"60px","margin-left":"auto","margin-right":"auto","border-radius":"10px"}};function JAe(n,t){1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",7),l(2,"\n")),2&n&&(P(1),T("ngStyle",Et(2,ZAe))("theme",Et(3,KAe)))}let ED=class Qk{constructor(){this.disableCardClass=!1,this.number$=null}static#e=this.\u0275fac=function(e){return new(e||Qk)};static#t=this.\u0275cmp=Rt({type:Qk,selectors:[["storecloud-shared-number-card"]],inputs:{disableCardClass:"disableCardClass",number$:"number$"},decls:15,vars:5,consts:[[1,"card"],[1,"content","block-content"],[1,"text-light"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-teal-big"],[4,"ngIf"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),m(2,"div",1),l(3,"\n "),m(4,"p",2),l(5),_(),l(6,"\n "),J(7,GAe,11,4,"ng-container",3),pt(8,"async"),l(9,"\n "),_(),l(10,"\n"),_(),l(11,"\n"),J(12,JAe,3,4,"ng-template",null,4,$t),l(14,"\n")),2&e){const r=gt(13);P(5),t0(null==o.number$?null:o.number$.title),P(2),T("ngIf",a0(8,3,null==o.number$?null:o.number$.value))("ngIfElse",r)}},dependencies:[Q0,Jn,tr,Oa,$l]})};ED=$e([p0({checkProperties:!0})],ED);const QAe=["scrollToSection"];function eye(n,t){if(1&n&&de(0,"storecloud-tooltip",12),2&n){const e=ce();T("tooltip",null==e.stats$?null:e.stats$.tooltip)}}function tye(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"p",14),l(3,"\n "),m(4,"span",15),l(5),_(),l(6,"\n "),de(7,"storecloud-shared-value-formatter",16),l(8,"\n "),_(),l(9,"\n "),He()),2&n){const e=t.ngIf;P(5),Ct("",null==e?null:e.label," "),P(2),T("item",e)("cssClass","text-black")("iconSize",14)}}function nye(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,tye,10,4,"ng-container",13),pt(3,"async"),l(4,"\n "),He()),2&n){const e=ce(),o=gt(32);P(2),T("ngIf",a0(3,2,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfElse",o)}}function oye(n,t){1&n&&(Ye(0),l(1,"\n "),He())}const dK=function(n){return{item:n}};function rye(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,18),l(3,"\n "),He()),2&n){const e=t.ngIf;ce(3);const o=gt(26);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,dK,e))}}function iye(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,rye,4,4,"ng-container",13),pt(3,"async"),l(4,"\n "),He()),2&n){const e=t.$implicit;ce(2);const o=gt(35);P(2),T("ngIf",a0(3,2,e))("ngIfElse",o)}}function aye(n,t){if(1&n&&(l(0,"\n "),m(1,"div"),l(2,"\n "),J(3,iye,5,4,"ng-container",17),l(4,"\n "),_(),l(5,"\n")),2&n){const e=ce();P(1),xn("content grid-",(null==e.stats$||null==e.stats$.items$?null:e.stats$.items$.length)||e.loadingCount,""),P(2),T("ngForOf",null==e.stats$?null:e.stats$.items$)}}function sye(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,18),l(3,"\n "),He()),2&n){const e=t.$implicit;ce(2);const o=gt(26);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,dK,e))}}function cye(n,t){if(1&n&&(l(0,"\n "),m(1,"div"),l(2,"\n "),J(3,sye,4,4,"ng-container",17),l(4,"\n "),_(),l(5,"\n")),2&n){const e=ce();P(1),xn("content grid-",(null==e.stats$||null==e.stats$.items?null:e.stats$.items.length)||e.loadingCount,""),P(2),T("ngForOf",null==e.stats$?null:e.stats$.items)}}function lye(n,t){if(1&n&&de(0,"storecloud-icon",23),2&n){const e=ce(2).item;T("icon",null==e?null:e.icon)("size",14)}}function pye(n,t){if(1&n&&de(0,"storecloud-tooltip",12),2&n){const e=ce(2).item;T("tooltip",null==e?null:e.tooltip)}}function dye(n,t){if(1&n&&(m(0,"p",21),l(1,"\n "),J(2,lye,1,2,"storecloud-icon",22),l(3),J(4,pye,1,1,"storecloud-tooltip",3),l(5,"\n "),_()),2&n){const e=ce().item;xn("text-light d-flex g-2 ",null!=e&&e.inlineTooltip?"inlineTooltip":"",""),T("tippy",null!=e&&e.inlineTooltip?null==e?null:e.tooltip:null),P(2),T("ngIf",null==e?null:e.icon),P(1),Ct("\n ",null==e?null:e.label,"\n "),P(1),T("ngIf",(null==e?null:e.tooltip)&&!(null!=e&&e.inlineTooltip))}}function uye(n,t){if(1&n&&de(0,"storecloud-shared-value-formatter",24),2&n){const e=ce().item;T("item",null==e?null:e.subItems)("cssClass",null==e||null==e.subItems?null:e.subItems.cssClass)}}function fye(n,t){if(1&n&&de(0,"storecloud-shared-value-formatter",24),2&n){const e=ce().item;T("item",null==e||null==e.subItems?null:e.subItems.subItems)("cssClass",null==e||null==e.subItems||null==e.subItems.subItems?null:e.subItems.subItems.cssClass)}}const hye=function(n){return{"data-div":!0,"flex-column":n}},Mye=function(n){return{"d-100":!0,"flex-col":n}};function bye(n,t){if(1&n&&(l(0,"\n "),m(1,"div",0),l(2,"\n "),J(3,dye,6,7,"p",19),l(4,"\n "),m(5,"div",0),l(6,"\n "),de(7,"storecloud-shared-value-formatter",16),l(8,"\n "),J(9,uye,1,2,"storecloud-shared-value-formatter",20),l(10,"\n "),J(11,fye,1,2,"storecloud-shared-value-formatter",20),l(12,"\n "),_(),l(13,"\n "),_(),l(14,"\n")),2&n){const e=t.item;P(1),T("ngClass",Ht(8,hye,"select"===(null==e?null:e.type))),P(2),T("ngIf",null==e?null:e.label),P(2),T("ngClass",Ht(10,Mye,null==e?null:e.inlineSubItems)),P(2),T("item",e)("cssClass","text-black "+(null==e?null:e.cssClass))("iconSize",14),P(2),T("ngIf",null==e?null:e.subItems),P(2),T("ngIf",null==e||null==e.subItems?null:e.subItems.subItems)}}const ID=function(){return{display:"contents"}},gye=function(){return{"margin-top":"10px","margin-bottom":"0px"}};function Oye(n,t){if(1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",25),l(2,"\n")),2&n){const e=ce();P(1),co("count",e.loadingCount),T("ngStyle",Et(3,ID))("theme",Et(4,gye))}}const mye=function(){return{"margin-top":"0px","margin-bottom":"0px"}};function _ye(n,t){1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",26),l(2,"\n")),2&n&&(P(1),T("ngStyle",Et(2,ID))("theme",Et(3,mye)))}const zye=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"35px"}};function vye(n,t){1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",26),l(2,"\n")),2&n&&(P(1),T("ngStyle",Et(2,ID))("theme",Et(3,zye)))}const Aye=function(n,t){return{card:n,"flex-col-between":t}},yye=function(n){return{heading:!0,"has-subtitle":n}};let cf=class eE{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3,this.scrollToSection=void 0}static#e=this.\u0275fac=function(e){return new(e||eE)};static#t=this.\u0275cmp=Rt({type:eE,selectors:[["storecloud-shared-stats-card-normal"]],viewQuery:function(e,o){if(1&e&&fc(QAe,5),2&e){let r;Ws(r=Ls())&&(o.scrollToSection=r.first)}},inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount"},decls:37,vars:13,consts:[[3,"ngClass"],["scrollToSection",""],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["items$Draw",""],["itemsDraw",""],["valueFormatt",""],["loader3",""],["loader1",""],["itemLoader",""],[3,"tooltip"],[4,"ngIf","ngIfElse"],[1,"d-flex"],[1,"text-light"],[3,"item","cssClass","iconSize"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","tippy",4,"ngIf"],[3,"item","cssClass",4,"ngIf"],[3,"tippy"],["class","mr-minus-10",3,"icon","size",4,"ngIf"],[1,"mr-minus-10",3,"icon","size"],[3,"item","cssClass"],["animation","progress",3,"count","ngStyle","theme"],["count","1","animation","progress",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0,1),l(2,"\n "),Ye(3),l(4,"\n "),m(5,"div",0),l(6,"\n "),m(7,"p",2),l(8),J(9,eye,1,1,"storecloud-tooltip",3),l(10,"\n "),_(),l(11,"\n "),J(12,nye,5,4,"ng-container",4),l(13,"\n "),_(),l(14,"\n "),J(15,oye,2,0,"ng-container",5),l(16,"\n "),He(),l(17,"\n"),_(),l(18,"\n"),J(19,aye,6,4,"ng-template",null,6,$t),l(21,"\n\n"),J(22,cye,6,4,"ng-template",null,7,$t),l(24,"\n\n"),J(25,bye,15,12,"ng-template",null,8,$t),l(27,"\n"),J(28,Oye,3,5,"ng-template",null,9,$t),l(30,"\n\n"),J(31,_ye,3,4,"ng-template",null,10,$t),l(33,"\n\n"),J(34,vye,3,4,"ng-template",null,11,$t),l(36,"\n")),2&e){const r=gt(20),i=gt(23);T("ngClass",wr(8,Aye,!o.disableCardClass,!o.disableCardClass)),P(5),T("ngClass",Ht(11,yye,null==o.stats$||null==o.stats$.subTitle?null:o.stats$.subTitle.enable)),P(3),Ct("\n ",null==o.stats$?null:o.stats$.title,"\n "),P(1),T("ngIf",null==o.stats$?null:o.stats$.tooltip),P(3),T("ngIf",null==o.stats$||null==o.stats$.subTitle?null:o.stats$.subTitle.enable),P(3),T("ngIf",null!=(null==o.stats$?null:o.stats$.items$))("ngIfThen",r)("ngIfElse",i)}},styles:[".mr-minus-10[_ngcontent-%COMP%]{margin-right:-10px}"]})};function Cye(n,t){if(1&n&&(m(0,"span",11),l(1),_()),2&n){const e=ce();P(1),t0(null==e.chart?null:e.chart.subTitle)}}cf=$e([p0({checkProperties:!0})],cf);const wye=function(n){return{current:n}};function Pye(n,t){if(1&n){const e=b1();m(0,"li",14),yt("click",function(){const i=R0(e).$implicit,a=ce(2);return a.activeTab=i,v0(a.tabChange(i))}),l(1),_()}if(2&n){const e=t.$implicit,o=ce(2);T("ngClass",Ht(2,wye,e===o.activeTab)),P(1),Ct("\n ",e,"\n ")}}function xye(n,t){if(1&n&&(m(0,"ul",12),l(1,"\n "),J(2,Pye,2,4,"li",13),l(3,"\n "),_()),2&n){const e=ce();P(2),T("ngForOf",e.tabs)}}function qye(n,t){1&n&&(Ye(0),l(1," "),He())}const Wye=function(){return{display:"block",padding:"0px"}},Lye=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function Tye(n,t){1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",15),l(2,"\n")),2&n&&(P(1),T("ngStyle",Et(2,Wye))("theme",Et(3,Lye)))}const Rye=function(n){return{heading:!0,"has-subtitle":n}},Sye=function(n){return{opacity:n}};let Mw=class tE{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.tabEvent=new G1,this.tabs=Object.values(Qr),this.loading=!0,this.activeTab=Qr.AllTime,this._data=null,this.echartsExtentions=[f5,uz,G5,hz]}tabChange(t){const e=new Date;let o=new Date;switch(t){case Qr.D1:o.setDate(e.getDate()-1);break;case Qr.D7:o.setDate(e.getDate()-7);break;case Qr.D30:o.setDate(e.getDate()-30);break;case Qr.YTD:o=new Date((new Date).getFullYear(),0,1)}this.tabEvent.emit({from:t===Qr.AllTime?void 0:o?.getTime(),till:t===Qr.AllTime?void 0:e?.getTime()})}drawChart(t){this.chart?.dummy&&(t=this.fillDummyData(t)),t?.map(r=>{const i=r?.x?.split("-").map(a=>(parseInt(a)<10?"0":"")+ +a).join("-");return r.x=new Date(i)?.getTime(),r});const e=[{data:(t=ld.orderBy(t,"x","asc"))?.map(r=>[r?.x,r?.y]),name:this.chart?.yAxisName,type:"line",smooth:!0,symbol:"none",lineStyle:{color:this.chart?.lineColor??"#1db0a9",width:this.chart?.lineWidth??2.5},areaStyle:this.chart?.areaStyleColor?{color:this.chart?.areaStyleColor,opacity:.3}:null}],o=this.getMaxNumberFromArray(t?.map(r=>r?.y));try{this.options={textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},xAxis:{type:this.chart?.xType||"category",axisTick:{show:!1},axisLabel:{show:this.chart?.showXAxisLabel,textStyle:{fontSize:11},formatter:"{MMM} {dd}"},axisLine:{show:!1},splitNumber:this.chart?.maxTick?.x||3},yAxis:{type:"value",axisLabel:{show:this.chart?.showYAxisLabel,textStyle:{fontSize:11},formatter:function(r,i){return uK(r,0)}},axisLine:{show:!1},splitNumber:this.chart?.maxTick?.y||2,splitLine:{show:this.chart?.showYAxisLabel}},tooltip:{triggerOn:"mousemove",trigger:"axis",show:!0,appendToBody:!0,backgroundColor:"#fff",formatter:r=>this.formatTooltip(r),textStyle:{fontSize:12}},grid:{show:!1,left:o>0?1.5*o:0,right:10,top:10,bottom:10,z:9,containLabel:!0},series:e},be(!0).pipe(Gr(300)).subscribe(()=>this.loading=!1)}catch(r){throw this.loading=!1,new Error(r)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let o=0;o${r?.toDateString()}\n
${t[o].seriesName}: ${t[o].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(ot(this)).subscribe(e=>{this.drawChart(e)})}fillDummyData(t){if(t?.length<13){const e=14-t?.length,o=ld.maxBy(t,"y")?.y||1,r=ld.minBy(t,"y")?.y||1,i=ld.minBy(t,"x")?.x||(new Date)?.toISOString();for(let a=0;a(parseInt(d)<10?"0":"")+ +d).join("-"),c=new Date(s);c.setDate(c.getDate()-(a+1)),Math.floor(Math.random()*(o-r)),t.unshift({x:c?.toISOString()?.split("T")[0],y:0})}}return t}getMaxNumberFromArray(t){const e=ld.max(t);return(e?uK(e,0):"")?.length}static#e=this.\u0275fac=function(e){return new(e||tE)};static#t=this.\u0275cmp=Rt({type:tE,selectors:[["storecloud-shared-chart-card"]],inputs:{chart:"chart",data:"data"},outputs:{tabEvent:"tabEvent"},decls:28,vars:17,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],["class","tabs-list transactions-chart",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","ch-chart"],["echarts","",1,"ch-chart",3,"id","options","ngStyle","defaultHeight","extentions","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],[1,"tabs-list","transactions-chart"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),m(2,"div",1),l(3,"\n "),m(4,"p",2),l(5,"\n "),m(6,"span",3),l(7),de(8,"storecloud-tooltip",4),l(9,"\n "),_(),l(10,"\n "),J(11,Cye,2,1,"span",5),l(12,"\n "),_(),l(13,"\n "),J(14,xye,4,1,"ul",6),l(15,"\n "),_(),l(16,"\n\n "),m(17,"div",7),l(18,"\n "),m(19,"div",8),yt("chartinit",function(i){return o.onChartInit(i)}),_(),l(20,"\n "),J(21,qye,2,0,"ng-container",9),l(22,"\n "),_(),l(23,"\n"),_(),l(24,"\n\n"),J(25,Tye,3,4,"ng-template",null,10,$t),l(27,"\n")),2&e){const r=gt(26);let i;P(2),T("ngClass",Ht(13,Rye,null==o.chart?null:o.chart.showTabs)),P(5),Ct("\n ",null==o.chart?null:o.chart.title,"\n "),P(1),T("tooltip",null==o.chart?null:o.chart.tooltip),P(3),T("ngIf",null==o.chart?null:o.chart.subTitle),P(3),T("ngIf",null==o.chart?null:o.chart.showTabs),P(5),co("id",null!==(i=null==o.chart?null:o.chart.id)&&void 0!==i?i:"chart_1"),T("options",o.options)("ngStyle",Ht(15,Sye,o.loading?0:1))("defaultHeight",(null==o.chart?null:o.chart.height)||175)("extentions",o.echartsExtentions)("isResizable",!0),P(2),T("ngIf",!o.loading)("ngIfElse",r)}},dependencies:[Io,Xo,Q0,Jn,tr,Mz,Yi],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}"]})};function uK(n,t){const r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}].slice().reverse().find(function(i){return n>=i.value});return r?(n/r.value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+r.symbol:"0"}function Dye(n,t){if(1&n&&(Ye(0),m(1,"span"),l(2),_(),He()),2&n){const e=ce(2);P(1),xn("mr-minus-2 ",null==e.item?null:e.item.preSymbolCssClass,""),P(1),t0(null==e.item?null:e.item.preSymbol)}}function kye(n,t){if(1&n&&de(0,"storecloud-icon",10),2&n){const e=ce(2);T("icon",null==e.item?null:e.item.valueIcon)("size",e.iconSize||16)}}function Eye(n,t){if(1&n&&(m(0,"span"),l(1),_()),2&n){const e=ce(2);Hc(null==e.item?null:e.item.symbolCssClass),P(1),Ct(" ",null==e.item?null:e.item.symbol,"")}}Mw=$e([p0({checkProperties:!0})],Mw);const fK=function(n){return{link:n}};function Iye(n,t){if(1&n&&(m(0,"a",11),l(1,"\n "),Ye(2,12),l(3," "),He(),l(4,"\n"),_()),2&n){const e=ce(2),o=gt(9);T("ngClass",Ht(3,fK,null==e.item?null:e.item.link))("routerLink",null==e.item?null:e.item.link),P(2),T("ngTemplateOutlet",o)}}function Nye(n,t){if(1&n&&(m(0,"a",13),l(1,"\n "),Ye(2,12),l(3," "),He(),l(4,"\n"),_()),2&n){const e=ce(2),o=gt(9);T("href",null==e.item?null:e.item.link,Tn)("ngClass",Ht(4,fK,null==e.item?null:e.item.link))("target",null!=e.item&&e.item.openInExistingTab?"_self":"_blank"),P(2),T("ngTemplateOutlet",o)}}function Bye(n,t){if(1&n&&(m(0,"span"),l(1),_()),2&n){const e=ce(2);xn("align-self-end ",null==e.item?null:e.item.symbolCssClass,""),P(1),t0(null==e.item?null:e.item.symbol)}}function Fye(n,t){if(1&n&&(m(0,"span",14),l(1,"\n "),de(2,"storecloud-icon",15),l(3,"\n"),_()),2&n){const e=ce(2);P(2),co("copyToClipboard",null==e.item?null:e.item.value),T("icon","copy")("size",14)}}function Yye(n,t){if(1&n&&(m(0,"span"),l(1,"\n "),J(2,Dye,3,4,"ng-container",1),l(3,"\n "),J(4,kye,1,2,"storecloud-icon",5),l(5,"\n "),J(6,Eye,2,4,"span",0),l(7,"\n "),m(8,"div",6),l(9,"\n "),J(10,Iye,5,5,"a",7),l(11,"\n"),J(12,Nye,5,6,"a",8),l(13,"\n"),J(14,Bye,2,4,"span",0),l(15,"\n"),J(16,Fye,4,3,"span",9),l(17,"\n "),_(),l(18,"\n"),_()),2&n){const e=ce();xn("d-flex-icon ",e.cssClass,""),P(2),T("ngIf",null==e.item?null:e.item.preSymbol),P(2),T("ngIf",null==e.item?null:e.item.valueIcon),P(2),T("ngIf","before"===(null==e.item?null:e.item.symbolPosition)),P(4),T("ngIf",!(null!=e.item&&e.item.externalLink)||!1===(null==e.item?null:e.item.externalLink)),P(2),T("ngIf",null==e.item?null:e.item.externalLink),P(2),T("ngIf","after"===(null==e.item?null:e.item.symbolPosition)),P(2),T("ngIf",null==e.item?null:e.item.copy)}}function Hye(n,t){if(1&n&&(Ye(0),l(1,"\n "),de(2,"storecloud-shared-block-status-with-time",16),l(3,"\n"),He()),2&n){const e=ce();P(2),T("item",null==e.item?null:e.item.value)}}function Xye(n,t){if(1&n&&(Ye(0),l(1,"\n "),de(2,"storecloud-shared-block-status",17),l(3,"\n"),He()),2&n){const e=ce();P(2),T("cssClass",e.cssClass)("item",null==e.item?null:e.item.value)}}function jye(n,t){1&n&&(Ye(0),l(1,"\n "),m(2,"select"),l(3,"\n "),m(4,"option",18),l(5,"$0.00"),_(),l(6,"\n "),_(),l(7,"\n"),He())}const hK=function(n){return{valueItem:n}};function Uye(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,19),l(3,"\n "),He()),2&n){const e=ce(2),o=gt(12);P(2),T("ngTemplateOutletContext",Ht(2,hK,e.item))("ngTemplateOutlet",o)}}function Vye(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,19),pt(3,"replaceValue"),l(4,"\n "),He()),2&n){const e=t.ngIf,o=ce(3),r=gt(12);P(2),T("ngTemplateOutletContext",Ht(5,hK,_o(3,2,o.item,null==e?null:e.value)))("ngTemplateOutlet",r)}}function $ye(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,Vye,5,7,"ng-container",20),pt(3,"async"),l(4,"\n "),He()),2&n){const e=ce(2),o=gt(15);P(2),T("ngIf",a0(3,2,null==e.item?null:e.item.value$))("ngIfElse",o)}}function Gye(n,t){if(1&n&&(l(0,"\n "),J(1,Uye,4,4,"ng-container",1),l(2,"\n "),J(3,$ye,5,4,"ng-container",1),l(4,"\n")),2&n){const e=ce();P(1),T("ngIf",null!=(null==e.item?null:e.item.value)),P(2),T("ngIf",null!=(null==e.item?null:e.item.value$))}}function Zye(n,t){if(1&n&&(Ye(0),l(1),He()),2&n){const e=ce().valueItem;P(1),t0(null==e?null:e.value)}}function Kye(n,t){if(1&n&&(Ye(0),l(1),pt(2,"number"),pt(3,"number"),He()),2&n){const e=ce().valueItem;P(1),t0((null==e?null:e.value)>=1?_o(2,1,(null==e?null:e.value)||0,"1.0-2"):_o(3,4,(null==e?null:e.value)||0,"1.0-8"))}}function Jye(n,t){if(1&n&&(Ye(0),l(1),pt(2,"number"),pt(3,"number"),He()),2&n){const e=ce().valueItem;P(1),t0((null==e?null:e.value)>0?_o(2,1,(null==e?null:e.value)||0,"1.0-0"):_o(3,4,(null==e?null:e.value)||0,"8.0-0"))}}function Qye(n,t){if(1&n&&(Ye(0),l(1),pt(2,"shortNumber"),He()),2&n){const e=ce().valueItem,o=ce();P(1),t0(_o(2,1,(null==e?null:e.value)||0,null==o.item?null:o.item.decimal))}}function e4e(n,t){if(1&n&&(Ye(0),l(1),pt(2,"currency"),pt(3,"currency"),He()),2&n){const e=ce().valueItem;P(1),t0((null==e?null:e.value)>=1?ga(2,1,(null==e?null:e.value)||0,"USD","symbol","2.8-8"):ga(3,6,(null==e?null:e.value)||0,"USD","symbol","2.8-8"))}}function t4e(n,t){if(1&n&&(Ye(0),l(1),pt(2,"number"),pt(3,"number"),He()),2&n){const e=ce().valueItem;P(1),t0((null==e?null:e.value)>=0?_o(2,1,null==e?null:e.value,"2.8-8"):_o(3,4,(null==e?null:e.value)||0,"2.8-8"))}}function n4e(n,t){if(1&n&&(Ye(0),l(1),pt(2,"percent"),He()),2&n){const e=ce().valueItem;let o;P(1),t0(_o(2,1,null!==(o=null==e?null:e.value)&&void 0!==o?o:0,"1.1-2"))}}function o4e(n,t){if(1&n&&(Ye(0,22),l(1,"\n "),m(2,"div",23),l(3,"\n "),m(4,"span",24),l(5),pt(6,"trim"),_(),l(7,"\n "),m(8,"span",25),l(9),pt(10,"trim"),_(),l(11,"\n "),_(),l(12,"\n "),He()),2&n){const e=ce().valueItem;co("copyToClipboard",null==e?null:e.value),P(4),T("tippy",null==e?null:e.value),P(1),Ct("\n ",_o(6,4,null==e?null:e.value,null==e?null:e.trimSize),"\n "),P(4),Ct("\n ",_o(10,7,null==e?null:e.value,(null==e?null:e.trimSizeMobile)||24),"\n ")}}function r4e(n,t){if(1&n&&(Ye(0),l(1),pt(2,"timeAgo"),He()),2&n){const e=ce().valueItem;P(1),t0(a0(2,1,null==e?null:e.value))}}function i4e(n,t){if(1&n&&(Ye(0),l(1),pt(2,"date"),He()),2&n){const e=ce().valueItem;P(1),t0(_o(2,1,null==e?null:e.value,"MMM-dd-yyyy h:mm:ss a z"))}}function a4e(n,t){if(1&n&&(Ye(0),l(1),pt(2,"date"),He()),2&n){const e=ce().valueItem;P(1),t0(_o(2,1,null==e?null:e.value,"MM/dd/yy"))}}function s4e(n,t){if(1&n&&(Ye(0),l(1),pt(2,"date"),He()),2&n){const e=ce().valueItem;P(1),t0(_o(2,1,null==e?null:e.value,"MMMM y"))}}function c4e(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"span"),l(3),_(),l(4,"\n "),He()),2&n){const e=ce(2);P(2),xn("status ",null==e.item?null:e.item.value,""),P(1),t0(null==e.item?null:e.item.value)}}function l4e(n,t){if(1&n&&(Ye(0),l(1,"\n "),de(2,"div",26),l(3,"\n "),He()),2&n){const e=ce().valueItem;P(2),T("innerHTML",null==e?null:e.value,Kf)}}function p4e(n,t){if(1&n&&(l(0,"\n "),J(1,Zye,2,1,"ng-container",1),l(2,"\n "),J(3,Kye,4,7,"ng-container",1),l(4,"\n "),J(5,Jye,4,7,"ng-container",1),l(6,"\n "),J(7,Qye,3,4,"ng-container",1),l(8,"\n\n "),J(9,e4e,4,11,"ng-container",1),l(10,"\n "),J(11,t4e,4,7,"ng-container",1),l(12,"\n "),J(13,n4e,3,4,"ng-container",1),l(14,"\n "),J(15,o4e,13,10,"ng-container",21),l(16,"\n "),J(17,r4e,3,3,"ng-container",1),l(18,"\n "),J(19,i4e,3,4,"ng-container",1),l(20,"\n "),J(21,a4e,3,4,"ng-container",1),l(22,"\n "),J(23,s4e,3,4,"ng-container",1),l(24,"\n "),J(25,c4e,5,4,"ng-container",1),l(26,"\n "),J(27,l4e,4,1,"ng-container",1),l(28,"\n")),2&n){const e=t.valueItem,o=ce();P(1),T("ngIf","string"===(null==e?null:e.type)),P(2),T("ngIf","number"===(null==e?null:e.type)),P(2),T("ngIf","bit"===(null==e?null:e.type)),P(2),T("ngIf","short-number"===(null==e?null:e.type)),P(2),T("ngIf","currency"===(null==e?null:e.type)),P(2),T("ngIf","store-currency"===(null==e?null:e.type)),P(2),T("ngIf","percent"===(null==e?null:e.type)),P(2),T("ngIf","hash"===(null==e?null:e.type)),P(2),T("ngIf","time"===(null==e?null:e.type)),P(2),T("ngIf","date-time"===(null==e?null:e.type)),P(2),T("ngIf","short-date"===(null==e?null:e.type)),P(2),T("ngIf","long-date"===(null==e?null:e.type)),P(2),T("ngIf","status"===(null==o.item?null:o.item.type)),P(2),T("ngIf","html"===(null==e?null:e.type))}}const d4e=function(n){return{display:"flex",width:n}},u4e=function(n){return{"margin-top":"0px","margin-bottom":"0px",height:"16px",width:n}};function f4e(n,t){if(1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",27),l(2,"\n")),2&n){const e=ce();P(1),T("ngStyle",Ht(2,d4e,e.loadingWidth+"px"))("theme",Ht(4,u4e,e.loadingWidth+"px"))}}let Hi=class nE{set item(t){t&&!t?.symbolPosition&&(t.symbolPosition="after"),this._item=t,this.changeRef.detectChanges()}get item(){return this._item}constructor(t){this.changeRef=t,this.cssClass="text-black",this.loadingWidth=30,this.iconSize=8,this._item=null}ngAfterContentChecked(){this.changeRef.detectChanges()}static#e=this.\u0275fac=function(e){return new(e||nE)(Re(ns))};static#t=this.\u0275cmp=Rt({type:nE,selectors:[["storecloud-shared-value-formatter"]],inputs:{item:"item",cssClass:"cssClass",loadingWidth:"loadingWidth",iconSize:"iconSize"},decls:17,vars:4,consts:[[3,"class",4,"ngIf"],[4,"ngIf"],["itemElement",""],["showValue",""],["loader1",""],["class","icon-burnt ",3,"icon","size",4,"ngIf"],[1,"d-flex-icon"],["routerLinkActive","",3,"ngClass","routerLink",4,"ngIf"],[3,"href","ngClass","target",4,"ngIf"],["class","copy-button",4,"ngIf"],[1,"icon-burnt",3,"icon","size"],["routerLinkActive","",3,"ngClass","routerLink"],[3,"ngTemplateOutlet"],[3,"href","ngClass","target"],[1,"copy-button"],[3,"icon","size","copyToClipboard"],[3,"item"],[3,"cssClass","item"],["value","Select"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"copyToClipboard",4,"ngIf"],[3,"copyToClipboard"],[1,"d-flex","g-1"],[1,"desktop-hash",3,"tippy"],[1,"mobile-hash"],[3,"innerHTML"],["animation","progress","count","1",1,"value-loader",3,"ngStyle","theme"]],template:function(e,o){1&e&&(J(0,Yye,19,10,"span",0),l(1,"\n\n"),J(2,Hye,4,1,"ng-container",1),l(3,"\n"),J(4,Xye,4,2,"ng-container",1),l(5,"\n"),J(6,jye,8,0,"ng-container",1),l(7,"\n\n"),J(8,Gye,5,2,"ng-template",null,2,$t),l(10,"\n\n"),J(11,p4e,29,14,"ng-template",null,3,$t),l(13,"\n\n"),J(14,f4e,3,6,"ng-template",null,4,$t),l(16,"\n")),2&e&&(T("ngIf","select"!==(null==o.item?null:o.item.type)&&"block-status"!==(null==o.item?null:o.item.type)&&"progress-status"!==(null==o.item?null:o.item.type)),P(2),T("ngIf","progress-status"===(null==o.item?null:o.item.type)),P(2),T("ngIf","block-status"===(null==o.item?null:o.item.type)),P(2),T("ngIf","select"===(null==o.item?null:o.item.type)))},styles:["[_ngcontent-%COMP%]:export{bg-gradient:linear-gradient(to right,#1e1e20,#38415d);teal:#1db0a9;explorer-bg:linear-gradient(to right,#1e1e20,#38415d);explorer-teal:#1db0a9;developer-bg:linear-gradient(to top,#3375a7,#2b3a98);developer-teal:#1db0a9;governor-bg:linear-gradient(to top,#9d51b8,#4b2d83);governor-teal:#1db0a9;cloud-bg:linear-gradient(to top,#24272f,#222);cloud-teal:#1db0a9}span.burn-text-bold[_ngcontent-%COMP%]{font-size:3rem;font-weight:600;color:#111}.mobile-hash[_ngcontent-%COMP%]{display:none}.copy-button[_ngcontent-%COMP%]{border:none;background:none;cursor:pointer}.flex-usd[_ngcontent-%COMP%]{justify-content:flex-end}.d-flex-column[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.mr-minus-2[_ngcontent-%COMP%]{margin-right:-2.5px}.mr-minus-2.mr-2[_ngcontent-%COMP%]{margin-right:5px}.mr-minus-2.mr-1[_ngcontent-%COMP%]{margin-right:2.5px}.mr-minus-0[_ngcontent-%COMP%]{margin-right:0}.ml-minus-2[_ngcontent-%COMP%]{margin-left:-2.5px}.align-self-end[_ngcontent-%COMP%]{align-self:flex-end}select[_ngcontent-%COMP%]{padding:5px 7.5px;color:#111;border-radius:7.5px;border:0;border:1px solid #cddcdc;font-weight:600;font-family:Montserrat,sans-serif;outline:none;width:22vw} .heading-text-black .value-loader .loader{height:2.6rem!important} .text-black .value-loader .loader{height:1.4rem!important}@media screen and (max-width: 1024px){ .heading-text-black .value-loader .loader{height:2.4rem!important}}@media screen and (max-width: 525px){ .heading-text-black .value-loader .loader{height:1.8rem!important}}@media screen and (max-width: 1420px) and (min-width: 1301px){ .icon-burnt .icon-size-14{width:1.2rem!important}}@media screen and (max-width: 1320px) and (min-width: 1201px){ .icon-burnt .icon-size-14{width:1rem!important}}@media screen and (max-width: 850px){.desktop-hash[_ngcontent-%COMP%]{display:none}.mobile-hash[_ngcontent-%COMP%]{display:contents}}@media screen and (max-width: 525px){select[_ngcontent-%COMP%]{width:40vw}}"]})};function MK(n,t,e,o,r,i,a){try{var s=n[i](a),c=s.value}catch(p){return void e(p)}s.done?t(c):Promise.resolve(c).then(o,r)}function Dt(n){return function(){var t=this,e=arguments;return new Promise(function(o,r){var i=n.apply(t,e);function a(c){MK(i,o,r,a,s,"next",c)}function s(c){MK(i,o,r,a,s,"throw",c)}a(void 0)})}}function nr(n,t){const e="object"==typeof t;return new Promise((o,r)=>{const i=new Z0({next:a=>{o(a),i.unsubscribe()},error:r,complete:()=>{e?o(t.defaultValue):r(new k3)}});n.subscribe(i)})}function h4e(n,t){1&n&&(l(0,"\n "),Di(),m(1,"svg",3),l(2,"\n "),de(3,"polyline",4),l(4,"\n "),_(),l(5,"\n"))}Hi=$e([p0({checkProperties:!0})],Hi);const M4e=function(n){return{"first-page":!0,highlighted:n}},bK=function(n){return{highlighted:n}},b4e=function(n){return{"last-page":!0,highlighted:n}};let lf=class oE{constructor(){this.pageSize=[{value:8,label:"8 items per page"}]}previousPage(){this.tableService&&(this.tableService.page=(this.tableService?.page||0)-1)}nextPage(){this.tableService&&(this.tableService.page=(this.tableService?.page||0)+1)}lastPage(){var t=this;return Dt(function*(){if(t.tableService&&t.total$){const e=yield nr(t.total$);t.tableService.page=e}})()}firstPage(){this.tableService&&(this.tableService.page=1)}static#e=this.\u0275fac=function(e){return new(e||oE)};static#t=this.\u0275cmp=Rt({type:oE,selectors:[["storecloud-shared-table-pagination"]],inputs:{tableService:"tableService",total$:"total$"},decls:41,vars:25,consts:[[1,"pagination-container"],[3,"ngClass","click"],[1,"icon",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"chevron-left"],["points","15 18 9 12 15 6"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["points","9 18 15 12 9 6"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),m(2,"p",1),yt("click",function(){return o.firstPage()}),l(3,"\n First\n "),_(),l(4,"\n "),m(5,"p",2),yt("click",function(){return o.previousPage()}),l(6,"\n "),Di(),m(7,"svg",3),l(8,"\n "),de(9,"polyline",4),l(10,"\n "),_(),l(11,"\n "),_(),l(12,"\n "),rc(),m(13,"p"),l(14,"\n Page "),m(15,"span"),l(16),_(),l(17," of\n "),m(18,"span"),l(19),pt(20,"number"),pt(21,"async"),_(),l(22,"\n "),_(),l(23,"\n "),m(24,"p",2),yt("click",function(){return o.nextPage()}),pt(25,"async"),pt(26,"async"),l(27,"\n "),Di(),m(28,"svg",5),l(29,"\n "),de(30,"polyline",6),l(31,"\n "),_(),l(32,"\n "),_(),l(33,"\n "),rc(),m(34,"p",1),yt("click",function(){return o.lastPage()}),pt(35,"async"),l(36,"\n Last\n "),_(),l(37,"\n"),_(),l(38,"\n\n"),J(39,h4e,6,0,"ng-template"),l(40,"\n")),2&e){let r;P(2),T("ngClass",Ht(17,M4e,(null==o.tableService?null:o.tableService.page)>1)),P(3),T("ngClass",Ht(19,bK,(null==o.tableService?null:o.tableService.page)>1)),P(11),t0(null!==(r=null==o.tableService?null:o.tableService.page)&&void 0!==r?r:1),P(3),t0(_o(20,6,a0(21,9,o.total$)||1,"1.0-0")),P(5),T("ngClass",Ht(21,bK,a0(25,11,o.total$)>1&&(null==o.tableService?null:o.tableService.page){class n{static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275cmp=Rt({type:n,selectors:[["storecloud-spinner"]],inputs:{cssClass:"cssClass"},standalone:!0,features:[wo],decls:2,vars:3,template:function(o,r){1&o&&(de(0,"div"),l(1,"\n")),2&o&&xn("spinner ",r.cssClass,"")},styles:[".spinner[_ngcontent-%COMP%]{height:48px;width:48px;color:#1db0a9;position:relative;display:inline-block;border:2px solid;border-radius:50%;border-top-color:transparent;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.spinner.w-22[_ngcontent-%COMP%]{width:22px;height:22px}.spinner.w-100-p[_ngcontent-%COMP%]{width:100%;height:100%}.spinner.b-4[_ngcontent-%COMP%]{border-width:4px}@media screen and (max-width: 525px){.spinner[_ngcontent-%COMP%]{height:12px;width:12px}}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return n})();var A4e=G(2977);const y4e=30;const OK=new Qt("JazziconConfig"),ND="http://www.w3.org/2000/svg";let mK=(()=>{class n{constructor(e,o){this.config=e,this.rendererFactory=o,this.renderer=this.rendererFactory.createRenderer(null,null)}generateIdenticon(e,o={}){const r=o?.diameter||this.config.diameter,i=o?.shapeCount||this.config.shapeCount,a=o?.colors||this.config.colors;this.generator=new A4e(e);const s=function C4e(n,t){const e=30*t.random()-y4e/2;return n.map(r=>function w4e(n,t){const e=function x4e(n){let{r:t,g:e,b:o}=function P4e(n){return n=n.replace("#",""),{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16)}}(n);t/=255,e/=255,o/=255;const r=Math.min(t,e,o),i=Math.max(t,e,o),a=i-r;let s=0,c=0,p=0;return s=0==a?0:i==t?(e-o)/a%6:i==e?(o-t)/a+2:(t-e)/a+4,s=Math.round(60*s),s<0&&(s+=360),p=(i+r)/2,c=0==a?0:a/(1-Math.abs(2*p-1)),c=+(100*c).toFixed(1),p=+(100*p).toFixed(1),{h:s,s:c,l:p}}(n);let o=e.h;return o=(o+t)%360,o=o<0?360+o:o,e.h=o,function q4e(n){let{h:t,s:e,l:o}=n;e/=100,o/=100;const r=(1-Math.abs(2*o-1))*e,i=r*(1-Math.abs(t/60%2-1)),a=o-r/2;let s=0,c=0,p=0;0<=t&&t<60?(s=r,c=i,p=0):60<=t&&t<120?(s=i,c=r,p=0):120<=t&&t<180?(s=0,c=r,p=i):180<=t&&t<240?(s=0,c=i,p=r):240<=t&&t<300?(s=i,c=0,p=r):300<=t&&t<360&&(s=r,c=0,p=i);let d=Math.round(255*(s+a)).toString(16),u=Math.round(255*(c+a)).toString(16),h=Math.round(255*(p+a)).toString(16);return 1==d.length&&(d="0"+d),1==u.length&&(u="0"+u),1==h.length&&(h="0"+h),"#"+d+u+h}(e)}(r,e))}(a.slice(),this.generator),p=this.paperGen(r,this.genColor(s)).container,d=this.renderer.createElement("svg",ND);this.renderer.setAttribute(d,"xlmns",ND),this.renderer.setAttribute(d,"x","0"),this.renderer.setAttribute(d,"y","0"),this.renderer.setAttribute(d,"width",String(r)),this.renderer.setAttribute(d,"height",String(r));for(let u=0;u{class n{constructor(e,o,r){this.elementRef=e,this.renderer=o,this.jazziconService=r}ngOnChanges(e){this.initJazzicon()}initJazzicon(){const e=this.jazziconService.generateIdenticon(this.seed,{colors:this.colors,diameter:this.diameter,shapeCount:this.shapeCount});this.jazzDomElement&&this.renderer.removeChild(this.elementRef.nativeElement,this.jazzDomElement),this.renderer.appendChild(this.elementRef.nativeElement,e),this.jazzDomElement=e}}return n.\u0275fac=function(e){return new(e||n)(Re(fn),Re(P1),Re(mK))},n.\u0275cmp=Rt({type:n,selectors:[["ngx-jazzicon"]],inputs:{colors:"colors",diameter:"diameter",seed:"seed",shapeCount:"shapeCount"},features:[Yo],decls:0,vars:0,template:function(e,o){},styles:[".jazzicon-container{border-radius:50px;overflow:hidden;padding:0;margin:0;display:inline-block}\n"],encapsulation:2,changeDetection:0}),n})();const W4e={diameter:100,shapeCount:4,colors:["#01888C","#FC7500","#034F5D","#F73F01","#FC1960","#C7144C","#F3C100","#1598F2","#2465E1","#F19E02"]};let BD=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[mK,{provide:OK,useValue:{...W4e,...e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({imports:[[Sn]]}),n})();const _O=function(){return{"width.px":17}};function L4e(n,t){1&n&&de(0,"img",7),2&n&&(Yc("src","https://explore.storecloud.org/assets/lucide_icon/",ce(2).idleIcon,".svg",Tn),T("ngStyle",Et(2,_O)))}function T4e(n,t){1&n&&de(0,"img",7),2&n&&T("src",ce(2).idleIconSrc,Tn)("ngStyle",Et(2,_O))}function R4e(n,t){1&n&&de(0,"ng-temaplate",8),2&n&&(ce(2),T("ngTemplateOutlet",gt(9)))}function S4e(n,t){1&n&&de(0,"img",7),2&n&&(Yc("src","https://explore.storecloud.org/assets/lucide_icon/",ce(2).idleIcon,".svg",Tn),T("ngStyle",Et(2,_O)))}function D4e(n,t){1&n&&de(0,"img",7),2&n&&T("src",ce(2).idleIconSrc,Tn)("ngStyle",Et(2,_O))}function k4e(n,t){if(1&n&&(Ye(0),l(1,"\n "),de(2,"ngx-jazzicon",9),l(3,"\n "),He()),2&n){const e=ce(2);P(2),T("seed",e.customIcon)("diameter",15)}}function E4e(n,t){if(1&n){const e=b1();m(0,"button",3),yt("click",function(){return R0(e),v0(ce().click())}),l(1,"\n "),J(2,L4e,1,3,"img",4),l(3,"\n "),J(4,T4e,1,3,"img",4),l(5,"\n "),J(6,R4e,1,1,"ng-temaplate",5),l(7),J(8,S4e,1,3,"img",4),l(9,"\n "),J(10,D4e,1,3,"img",4),l(11),J(12,k4e,4,2,"ng-container",6),l(13,"\n"),_()}if(2&n){const e=ce();xn("",e.cssClass," btn-idle"),T("disabled",e._disabled),P(2),T("ngIf",e.idleIcon&&"before"===e.idleIconPlace),P(2),T("ngIf",e.idleIconSrc&&"before"===e.idleIconPlace),P(2),T("ngIf",e.countText),P(1),Ct("\n ",e.idleText,"\n\n "),P(1),T("ngIf",e.idleIcon&&"after"===e.idleIconPlace),P(2),T("ngIf",e.idleIconSrc&&"after"===e.idleIconPlace),P(1),Ct("\n ",e.idleTextAfter,"\n "),P(1),T("ngIf",e.customIcon)}}function I4e(n,t){if(1&n&&(m(0,"button",10),l(1,"\n "),de(2,"span",11),l(3),_()),2&n){const e=ce();xn("",e.cssClass," btn-loading"),T("disabled",!0),P(3),Ct(" ",null==e.currentState?null:e.currentState.title,"\n")}}function N4e(n,t){if(1&n&&(m(0,"button",10),l(1,"\n "),de(2,"img",12),l(3),_()),2&n){const e=ce();xn("",e.cssClass," btn-success"),T("disabled",!0),P(2),T("ngStyle",Et(6,_O)),P(1),Ct("\n ",null==e.currentState?null:e.currentState.title,"\n")}}function B4e(n,t){if(1&n&&(m(0,"button",10),l(1,"\n "),de(2,"img",13),l(3),_()),2&n){const e=ce();xn("",e.cssClass," btn-error"),T("disabled",e._disabled),P(2),T("ngStyle",Et(6,_O)),P(1),Ct("\n ",null==e.currentState?null:e.currentState.title,"\n")}}function F4e(n,t){if(1&n&&(l(0,"\n "),m(1,"div",14),l(2,"\n "),m(3,"div",15),l(4),_(),l(5,"\n "),_(),l(6,"\n")),2&n){const e=ce();P(4),t0(e.countText)}}let ls=(()=>{class n{set customIcon(e){this._customIcon=e}get customIcon(){return this._customIcon}constructor(){this.idleText="Save",this.idleTextAfter="",this.idleIcon=null,this.idleIconPlace="before",this.idleIconSrc=null,this.countText="",this.loadingText="Processing...",this.successText="Done",this.errorText="Error",this.buttonKey=null,this.cssClass="btn-primary",this.StateType=pl,this.clickEvent=new G1,this.initEvent=new G1,this.disabled=!1,this.states=[{type:pl.Idle,title:this.idleText??"Save"},{type:pl.Loading,title:this.loadingText??"Processing..."},{type:pl.Success,title:this.successText??"Done"},{type:pl.Error,title:this.errorText??"Error"}],this.currentState=this.states[0],this.initEvent.emit(this)}click(){this.clickEvent.emit(this)}showIdle(){this.currentState=this.states?.find(e=>e.type===pl.Idle)}showLoading(){this.currentState=this.states?.find(e=>e.type===pl.Loading)}showSuccess(){this.currentState=this.states?.find(e=>e.type===pl.Success),setTimeout(()=>{this.showIdle()},3e3)}showError(e){this.currentState=this.states?.find(o=>o.type===pl.Error),setTimeout(()=>{this.showIdle()},3e3)}get _disabled(){return this.disabled??!1}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275cmp=Rt({type:n,selectors:[["storecloud-loading-button"]],inputs:{idleText:"idleText",idleTextAfter:"idleTextAfter",idleIcon:"idleIcon",idleIconPlace:"idleIconPlace",idleIconSrc:"idleIconSrc",countText:"countText",loadingText:"loadingText",successText:"successText",errorText:"errorText",buttonKey:"buttonKey",cssClass:"cssClass",customIcon:"customIcon",disabled:"disabled"},outputs:{clickEvent:"clickEvent",initEvent:"initEvent"},decls:10,vars:4,consts:[["type","button",3,"class","disabled","click",4,"ngIf"],[3,"class","disabled",4,"ngIf"],["countIcon",""],["type","button",3,"disabled","click"],["class","icon",3,"src","ngStyle",4,"ngIf"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngIf"],[1,"icon",3,"src","ngStyle"],[3,"ngTemplateOutlet"],[3,"seed","diameter"],[3,"disabled"],[1,"spinner"],["src","https://explore.storecloud.org/assets/lucide_icon/check-circle_animated_once_white.svg",1,"icon",3,"ngStyle"],["src","https://explore.storecloud.org/assets/lucide_icon/alert-circle.svg",1,"icon",3,"ngStyle"],[1,"d-flex","heading-with-count"],[1,"box","text-black-light","bold"]],template:function(o,r){1&o&&(J(0,E4e,14,12,"button",0),l(1,"\n\n"),J(2,I4e,4,5,"button",1),l(3,"\n\n"),J(4,N4e,4,7,"button",1),l(5,"\n\n"),J(6,B4e,4,7,"button",1),l(7,"\n\n"),J(8,F4e,7,1,"ng-template",null,2,$t)),2&o&&(T("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Idle),P(2),T("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Loading),P(2),T("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Success),P(2),T("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Error))},dependencies:[Q0,So,Jn,_K],styles:["[_ngcontent-%COMP%]:export{bg-gradient:linear-gradient(to right,#1e1e20,#38415d);teal:#1db0a9;explorer-bg:linear-gradient(to right,#1e1e20,#38415d);explorer-teal:#1db0a9;developer-bg:linear-gradient(to top,#3375a7,#2b3a98);developer-teal:#1db0a9;governor-bg:linear-gradient(to top,#9d51b8,#4b2d83);governor-teal:#1db0a9;cloud-bg:linear-gradient(to top,#24272f,#222);cloud-teal:#1db0a9}button[_ngcontent-%COMP%]{font-family:inherit}button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{transition:color .5s,transform .2s,background-color .2s}button[_ngcontent-%COMP%]:active, .button[_ngcontent-%COMP%]:active{transform:translateY(1.5px)}.heading-with-count[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:10px;background-color:#fff;border-radius:50%;color:#111;width:20px;max-height:20px}.heading-with-count[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:600}button[_ngcontent-%COMP%]:disabled{cursor:default!important;pointer-events:none}button[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:10px;align-items:center;margin-right:1px;width:max-content}button.h-33px[_ngcontent-%COMP%]{height:39px!important}@media screen and (max-width: 1420px){button.h-33px[_ngcontent-%COMP%]{height:34px!important}}@media screen and (max-width: 1200px){button.h-33px[_ngcontent-%COMP%]{height:30px!important}}button.g-1[_ngcontent-%COMP%]{gap:5px}button.w-100[_ngcontent-%COMP%]{width:100%}button.w-max[_ngcontent-%COMP%]{width:max-content!important}.button-container[_ngcontent-%COMP%]{padding:10px 15px 0}.button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:0;outline:none;cursor:pointer;width:100%;color:#1db0a9;background-color:#1db0a926;padding:10px 0;font-size:1.2rem;font-weight:600;border-radius:4px;transition:all .2s ease}.button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#1db0a933;box-shadow:0 1px 5px #1db0a9}.button-container[_ngcontent-%COMP%] button.no-border[_ngcontent-%COMP%]{border:2px solid #1db0a9}.btn-primary[_ngcontent-%COMP%]{outline:none;border:2px solid #1db0a9;color:#fff;background-color:#1db0a9;padding:6.7px 15px;font-size:1.4rem;font-weight:600;border-radius:50px;height:100%;cursor:pointer}.btn-primary.no-border[_ngcontent-%COMP%]{border:2px solid #1db0a9}@media screen and (max-width: 1540px){.btn-primary[_ngcontent-%COMP%]{padding:7.5px 10px}}@media screen and (max-width: 1540px) and (max-width: 1420px){.btn-primary[_ngcontent-%COMP%]{padding:7px 15px;font-size:1.1rem}.btn-primary.h-33px[_ngcontent-%COMP%]{height:37px}}@media screen and (max-width: 1540px) and (max-width: 1320px){.btn-primary[_ngcontent-%COMP%]{padding:7.5px 10px}}@media screen and (max-width: 1540px) and (max-width: 1200px){.btn-primary[_ngcontent-%COMP%]{padding:8.5px 10px}}@media screen and (max-width: 1540px) and (max-width: 670px){.btn-primary[_ngcontent-%COMP%]{padding:5.5px 10px}}@media screen and (max-width: 1540px) and (max-width: 550px){.btn-primary[_ngcontent-%COMP%]{padding:5px 10px}}.btn-primary[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #1db0a9}.btn-primary.light[_ngcontent-%COMP%]{background-color:transparent}.btn-primary.dark-blue[_ngcontent-%COMP%]{border:2px solid #1a4386;background-color:#1a4386}.btn-primary.dark-blue[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #1a4386}.btn-primary.dark-black[_ngcontent-%COMP%]{border:2px solid #111111;background-color:#111}.btn-primary.dark-black[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #111}.btn-primary.dark-red[_ngcontent-%COMP%]{border:2px solid #a94169;background-color:#a94169}.btn-primary.dark-red[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #a94169}.btn-primary.light-green[_ngcontent-%COMP%]{border:2px solid #8dae4c;background-color:#8dae4c}.btn-primary.light-green[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #8dae4c}.btn-primary.light-sky-blue[_ngcontent-%COMP%]{border:2px solid #437e8c;background-color:#437e8c}.btn-primary.light-sky-blue[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #437e8c}.btn-primary.dark-green[_ngcontent-%COMP%]{border:2px solid #5fa271;background-color:#5fa271}.btn-primary.dark-green[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #5fa271}.btn-primary.dark-purple[_ngcontent-%COMP%]{border:2px solid #9888d3;background-color:#9888d3}.btn-primary.dark-purple[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #9888d3}.btn-primary.mid-blue[_ngcontent-%COMP%]{border:2px solid #424bc5;background-color:#424bc5}.btn-primary.mid-blue[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #424bc5}.btn-primary.mid-camel[_ngcontent-%COMP%]{border:2px solid #c4a670;background-color:#c4a670}.btn-primary.mid-camel[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #c4a670}.btn-primary.white[_ngcontent-%COMP%]{border:2px solid #fff;color:#fff;background-color:transparent}.btn-primary[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}.btn-primary-steal[_ngcontent-%COMP%]{outline:none;border:2px solid var(--bg-gradient);color:#fff;background:var(--bg-gradient);width:100px;height:35px;font-size:1.6rem;font-weight:600;border-radius:50px;cursor:pointer}.btn-primary-steal.no-border[_ngcontent-%COMP%]{border:2px solid var(--bg-gradient)}.btn-primary-steal[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px var(--bg-gradient)}.btn-primary-steal.light[_ngcontent-%COMP%]{background:transparent}.btn-primary-steal[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}@media screen and (max-width: 550px){.btn-primary-steal[_ngcontent-%COMP%]{width:75px;height:25px}}.btn-primary-gray[_ngcontent-%COMP%]{outline:none;border:0;color:#fff;border:1px solid #f6f8fa;background-color:transparent;padding:4.2px 10px;font-size:1.4rem;font-weight:600;border-radius:50px;cursor:pointer}.btn-primary-gray.no-border[_ngcontent-%COMP%]{border:2px solid transparent}@media screen and (max-width: 1420px){.btn-primary-gray[_ngcontent-%COMP%]{padding:3px 10px}}@media screen and (max-width: 1320px){.btn-primary-gray[_ngcontent-%COMP%]{padding:5px 10px}}@media screen and (max-width: 1220px){.btn-primary-gray[_ngcontent-%COMP%]{padding:6px 10px}}@media screen and (max-width: 670px){.btn-primary-gray[_ngcontent-%COMP%]{font-size:1.2rem!important;padding:4px 10px}}@media screen and (max-width: 550px){.btn-primary-gray[_ngcontent-%COMP%]{padding:2px 10px}}.btn-primary-gray[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #f6f8fa}.btn-primary-gray.light[_ngcontent-%COMP%]{background-color:transparent}.btn-primary-gray[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}.btn-primary-gray.light-bold[_ngcontent-%COMP%]{font-weight:500}.btn-primary.edit-btn[_ngcontent-%COMP%]{padding:5px 27.5px;font-size:1.1rem}.small-btn[_ngcontent-%COMP%]{padding:0 10px!important;font-size:1.1rem!important}.btn-primary.add-btn[_ngcontent-%COMP%]{padding:6.5px 32.5px;font-size:1.4rem}.btn-connect[_ngcontent-%COMP%]{color:#fff;border:2px solid #fff}.btn-primary.submit[_ngcontent-%COMP%], .btn-secondary.submit[_ngcontent-%COMP%]{padding:5px 20px;font-size:1.1rem}@media screen and (max-width: 1540px){.btn-primary.buy-btn[_ngcontent-%COMP%], .btn-secondary.offer-btn[_ngcontent-%COMP%]{padding:5px 10px;font-size:1.2rem}}@media screen and (max-width: 1540px) and (max-width: 768px){.btn-primary.buy-btn[_ngcontent-%COMP%]{padding:6px 18px}}@media screen and (max-width: 1540px) and (max-width: 524px){.btn-primary.buy-btn[_ngcontent-%COMP%]{padding:6px 15px;font-size:1.1rem!important;width:83px!important}.btn-secondary.offer-btn[_ngcontent-%COMP%]{width:95px!important;font-size:1.1rem!important}}.btn-secondary[_ngcontent-%COMP%]{outline:none;border:0;color:#1db0a9;background-color:#fff;border:2px solid #1db0a9;padding:5px 15px;font-size:1.4rem;font-weight:600;border-radius:50px;cursor:pointer}.btn-secondary[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #1db0a9}.btn-secondary.no-border[_ngcontent-%COMP%]{border:2px solid #1db0a9}.btn-secondary.delete-btn[_ngcontent-%COMP%]{padding:5px 20px;font-size:1.1rem}.btn-secondary.close-btn[_ngcontent-%COMP%]{padding:5px 23px;font-size:1.1rem}.btn-secondary.add-btn[_ngcontent-%COMP%]{padding:5px 27.5px;font-size:1.1rem}.btn-secondary.add-btn[_ngcontent-%COMP%]:disabled{border:2px solid #888;color:#888;opacity:.6}.btn-primary.purple[_ngcontent-%COMP%]{background-color:#ae5dcf;margin-left:0;margin-top:0;border:2px solid #fff}.btn-primary.purple[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #ae5dcf}.btn-primary.purple.no-border[_ngcontent-%COMP%]{border:2px solid #ae5dcf}@media screen and (max-width: 370px){.btn-primary.purple[_ngcontent-%COMP%]{font-size:1.1rem}}.btn-primary.navy-btn[_ngcontent-%COMP%]{background-color:#2969a6;margin-left:0;margin-top:0;height:36px;width:-moz-fit-content;width:fit-content;border:2px solid #fff}.btn-primary.navy-btn.h-38[_ngcontent-%COMP%]{height:38.5px;text-wrap:nowrap}.btn-primary.navy-btn.no-border[_ngcontent-%COMP%]{border:2px solid #2969a6}.btn-primary.navy-btn[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #2969a6}@media screen and (max-width: 1420px){.btn-primary.navy-btn[_ngcontent-%COMP%]{font-size:1.1rem;height:33px}}@media screen and (max-width: 370px){.btn-primary.navy-btn[_ngcontent-%COMP%]{font-size:1.1rem}}.btn.turquoise[_ngcontent-%COMP%]{color:#4ac1ba;font-size:1.4rem;border:none;background-color:transparent;cursor:pointer}.btn.turquoise.no-border[_ngcontent-%COMP%]{border:2px solid #4ac1ba}.spinner[_ngcontent-%COMP%]{display:block;width:17px;height:17px;min-width:17px;min-height:17px;max-width:20px;border-radius:50%;border:2px solid #fff;animation:_ngcontent-%COMP%_spinner-bulqg1 .8s infinite linear alternate,spinner-oaa3wk 1.6s infinite linear}.btn-primary[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{border:2px solid #fff}.btn-error[_ngcontent-%COMP%]{background-color:#ee5552!important;border:2px solid #ee5552}.btn-success[_ngcontent-%COMP%]{background-color:#47bc5d!important;border:2px solid #47bc5d}.btn-loading[_ngcontent-%COMP%]{width:150px}@media screen and (max-width: 1540px){button[_ngcontent-%COMP%]{font-size:1.3rem}button.btn-primary-steal[_ngcontent-%COMP%]{font-size:1.5rem}}@media screen and (max-width: 1540px) and (max-width: 550px){button.btn-primary-steal[_ngcontent-%COMP%]{font-size:1.4rem}}@media screen and (max-width: 1420px) and (min-width: 1201px){button[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 1320px){button[_ngcontent-%COMP%], .btn.turquoise[_ngcontent-%COMP%]{font-size:1.4rem}}@media screen and (max-width: 670px){.btn-primary[_ngcontent-%COMP%]{font-size:1.2rem!important;border:1px solid #1db0a9}}@media screen and (max-width: 550px){button[_ngcontent-%COMP%]{font-size:1.2rem;gap:5px}button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12px!important}.btn-connect[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.btn-primary-gray[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 525px){button[_ngcontent-%COMP%]{font-size:1.2rem;gap:5px}button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12px!important}.spinner[_ngcontent-%COMP%]{height:12px;width:12px;min-height:12px;min-width:12px}.btn-primary[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 360px){.btn-connect[_ngcontent-%COMP%]{font-size:1.2rem}}@keyframes _ngcontent-%COMP%_spinner-bulqg1{0%{clip-path:polygon(50% 50%,0 0,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%)}12.5%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 0%,100% 0%,100% 0%)}25%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 100%,100% 100%,100% 100%)}50%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 100%,50% 100%,0% 100%)}62.5%{clip-path:polygon(50% 50%,100% 0,100% 0%,100% 0%,100% 100%,50% 100%,0% 100%)}75%{clip-path:polygon(50% 50%,100% 100%,100% 100%,100% 100%,100% 100%,50% 100%,0% 100%)}to{clip-path:polygon(50% 50%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,0% 100%)}}@keyframes _ngcontent-%COMP%_spinner-oaa3wk{0%{transform:scaleY(1) rotate(0)}49.99%{transform:scaleY(1) rotate(135deg)}50%{transform:scaleY(-1) rotate(0)}to{transform:scaleY(-1) rotate(-135deg)}}"]})}return n})();var pl=(()=>(function(n){n[n.Idle=0]="Idle",n[n.Loading=1]="Loading",n[n.Success=2]="Success",n[n.Error=3]="Error"}(pl||(pl={})),pl))(),Lu=(()=>(function(n){n[n.Off=0]="Off",n[n.Error=1]="Error",n[n.Warning=2]="Warning",n[n.Info=3]="Info",n[n.Debug=4]="Debug"}(Lu||(Lu={})),Lu))();class zO{static#e=this.level=Lu.Debug;static#t=this.outputs=[];static enableProductionMode(){zO.level=Lu.Warning}constructor(t){this.source=t}debug(...t){this.log(console.log,Lu.Debug,t)}info(...t){this.log(console.info,Lu.Info,t)}warn(...t){this.log(console.warn,Lu.Warning,t)}error(...t){this.log(console.error,Lu.Error,t)}log(t,e,o){if(e<=zO.level){const r=this.source?["["+this.source+"]"].concat(o):o;t.apply(console,r),zO.outputs.forEach(i=>i.apply(i,[this.source,e,...o]))}}}const FD=new zO("HttpCacheService"),zK="httpCache";let Y4e=(()=>{class n{constructor(){this.cachedData={},this.storage=null,this.storage=sessionStorage,this.loadCacheData()}setCacheData(e,o,r){this.cachedData[e]={lastUpdated:r||new Date,data:o},FD.debug(`Cache set for key: "${e}"`),this.saveCacheData()}getCacheData(e){const o=this.cachedData[e];return o?(FD.debug(`Cache hit for key: "${e}"`),this.isOlderByAtLeastOneMinute(o?.lastUpdated)?(this.clearCache(e),null):o.data):null}getHttpCacheEntry(e){return this.cachedData[e]||null}clearCache(e){delete this.cachedData[e],FD.debug(`Cache cleared for key: "${e}"`),this.saveCacheData()}cleanCache(e){e?Object.entries(this.cachedData).forEach(([o,r])=>{e>=r.lastUpdated&&delete this.cachedData[o]}):this.cachedData={},this.saveCacheData()}saveCacheData(){this.storage&&this.storage.setItem(zK,JSON.stringify(this.cachedData))}loadCacheData(){const e=this.storage?this.storage.getItem(zK):null;this.cachedData=e?JSON.parse(e):{}}isOlderByAtLeastOneMinute(e){const o=new Date(e);return Math.abs((new Date).getTime()-o.getTime())/6e4>=10}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Xi=new class Oae{constructor(t){this.defaultValue=t}}(()=>!1);let H4e=(()=>{class n{constructor(e){this.cacheService=e}intercept(e,o){if(!this.isRequestCachable(e))return o.handle(e);const r=this.cacheService.getCacheData(e.urlWithParams);return r?be(new Wt(r)):o.handle(e).pipe(jo(i=>{i instanceof Wt&&this.cacheService.setCacheData(e.urlWithParams,i)}))}isRequestCachable(e){return"GET"===e.method&&!0===e.context.get(Xi)&&Xe.production}static#e=this.\u0275fac=function(o){return new(o||n)(Te(Y4e))};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac})}return n})(),gi=(()=>{class n{constructor(){this.rootUrl="http://localhost:3000"}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),wa=(()=>{class n{constructor(e,o){this.config=e,this.http=o,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}static#e=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac})}return n})();const j4e=new class X4e{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class YD{constructor(t,e,o,r,i){this.name=t,this.value=e,this.options=o,this.options=o||{},null==this.options.style&&(this.options.style=r),null==this.options.explode&&(this.options.explode=i)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(o=>this.serializeValue(o).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];null!=i&&(i=this.serializeValue(i).split(e).join(encodeURIComponent(e)),this.options.explode?o.push(`${r}=${i}`):(o.push(r),o.push(i)))}return o.join(e)}return String(t)}}class U4e extends YD{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let o="label"===this.options.style?".":"",r=this.options.explode?""===o?",":o:",",i=!1;return"matrix"===this.options.style&&(o=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(o=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),i=!0):(e=this.serializeValue(e,";"),i=!0))),e=o+(i?e:this.serializeValue(e,r)),(t=t.replace(`{${this.name}}`,e)).replace(`{${o}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var o="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(o=(o=o.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class V4e extends YD{constructor(t,e,o){super(t,e,o,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(o)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(e,this.serializeValue(o)))}else{const e=[];for(const o of Object.keys(this.value)){const r=this.value[o];null!=r&&(e.push(o),e.push(r))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class $4e extends YD{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class kn{constructor(t,e,o){this.rootUrl=t,this.operationPath=e,this.method=o,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,o){this._path.set(t,new U4e(t,e,o||{}))}query(t,e,o){this._query.set(t,new V4e(t,e,o||{}))}header(t,e,o){this._header.set(t,new $4e(t,e,o||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];i instanceof Array||(i=[i]);for(const a of i){const s=this.formDataValue(a);null!==s&&o.push([r,s])}}this._bodyContent=o.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const o=new FormData;if(null!=t)for(const r of Object.keys(t)){const i=t[r];if(i instanceof Array)for(const a of i){const s=this.formDataValue(a);null!==s&&o.append(r,s)}else{const a=this.formDataValue(i);null!==a&&o.set(r,a)}}this._bodyContent=o}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const o=this.rootUrl+e;let r=new Rs({encoder:j4e});for(const a of this._query.values())r=a.append(r);let i=new fi;t.accept&&(i=i.append("Accept",t.accept));for(const a of this._header.values())i=a.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set("Content-Type",this._bodyContentType)),new Gl(this.method.toUpperCase(),o,this._bodyContent,{params:r,headers:i,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let Ow=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.StoreCloudVmControllerGetResourceByTypeAndSubTypePath="/cloudspace-vm/dedicated/{type}/{subtype}/{unit}";getResourceByTypeAndSubType$Response(e,o){const r=new kn(this.rootUrl,n.StoreCloudVmControllerGetResourceByTypeAndSubTypePath,"get");return e&&(r.path("type",e.type,{}),r.path("subtype",e.subtype,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getResourceByTypeAndSubType(e,o){return this.getResourceByTypeAndSubType$Response(e,o).pipe(j(r=>r.body))}static#t=this.StoreCloudVmControllerGetResourceByTypePath="/cloudspace-vm/dedicated/{type}/{unit}";getResourceByType$Response(e,o){const r=new kn(this.rootUrl,n.StoreCloudVmControllerGetResourceByTypePath,"get");return e&&(r.path("type",e.type,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getResourceByType(e,o){return this.getResourceByType$Response(e,o).pipe(j(r=>r.body))}static#n=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#o=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),vK=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GasFeeControllerFindByNetworkPath="/gas-prices/{network}";findByNetwork$Response(e,o){const r=new kn(this.rootUrl,n.GasFeeControllerFindByNetworkPath,"get");return e&&r.path("network",e.network,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findByNetwork(e,o){return this.findByNetwork$Response(e,o).pipe(j(r=>r.body))}static#t=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#n=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),mw=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GenericApiDocControllerApiCountPath="/generic-api-docs/api/count";apiCount$Response(e,o){const r=new kn(this.rootUrl,n.GenericApiDocControllerApiCountPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}apiCount(e,o){return this.apiCount$Response(e,o).pipe(j(r=>r.body))}static#t=this.GenericApiDocControllerCountPath="/generic-api-docs/count";count$Response(e,o){const r=new kn(this.rootUrl,n.GenericApiDocControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#n=this.GenericApiDocControllerFindPath="/generic-api-docs";find$Response(e,o){const r=new kn(this.rootUrl,n.GenericApiDocControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#o=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#r=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),G4e=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GovernanceStoreCloudVmControllerGetGeneralResourcePath="/gov/cloudspace-vm/dedicated/{region}/{type}/{subtype}/{option}/{unit}";getGeneralResource$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceStoreCloudVmControllerGetGeneralResourcePath,"get");return e&&(r.path("region",e.region,{}),r.path("type",e.type,{}),r.path("subtype",e.subtype,{}),r.path("option",e.option,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getGeneralResource(e,o){return this.getGeneralResource$Response(e,o).pipe(j(r=>r.body))}static#t=this.GovernanceStoreCloudVmControllerGetGpuResourcePath="/gov/cloudspace-vm/dedicated/{region}/{type}/{option}/{unit}";getGPUResource$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceStoreCloudVmControllerGetGpuResourcePath,"get");return e&&(r.path("region",e.region,{}),r.path("type",e.type,{}),r.path("option",e.option,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getGPUResource(e,o){return this.getGPUResource$Response(e,o).pipe(j(r=>r.body))}static#n=this.GovernanceStoreCloudVmControllerRemoveAllPath="/gov/cloudspace-vm/remove-all";removeAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceStoreCloudVmControllerRemoveAllPath,"delete");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}removeAll(e,o){return this.removeAll$Response(e,o).pipe(j(r=>r.body))}static#o=this.GovernanceStoreCloudVmControllerUpdateAllPath="/gov/cloudspace-vm/update-all";updateAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceStoreCloudVmControllerUpdateAllPath,"post");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}updateAll(e,o){return this.updateAll$Response(e,o).pipe(j(r=>r.body))}static#r=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#i=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Z4e=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GovernanceGenericApiDocControllerCountPath="/gov/generic-api-docs/count";count$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceGenericApiDocControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#t=this.GovernanceGenericApiDocControllerUpdateAllPath="/gov/generic-api-docs/update-all";updateAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceGenericApiDocControllerUpdateAllPath,"post");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}updateAll(e,o){return this.updateAll$Response(e,o).pipe(j(r=>r.body))}static#n=this.GovernanceGenericApiDocControllerFindByIdPath="/gov/generic-api-docs/{id}";findById$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceGenericApiDocControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe(j(r=>r.body))}static#o=this.GovernanceGenericApiDocControllerFindPath="/gov/generic-api-docs";find$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceGenericApiDocControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#r=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#i=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),K4e=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GovernanceGenericVariableControllerRemoveAllPath="/gov/generic-variable/remove-all";removeAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceGenericVariableControllerRemoveAllPath,"delete");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}removeAll(e,o){return this.removeAll$Response(e,o).pipe(j(r=>r.body))}static#t=this.GovernanceGenericVariableControllerUpdateAllPath="/gov/generic-variable/update-all";updateAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceGenericVariableControllerUpdateAllPath,"post");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}updateAll(e,o){return this.updateAll$Response(e,o).pipe(j(r=>r.body))}static#n=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#o=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),J4e=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GovernanceSecurityAuctionBidControllerRemoveAllPath="/gov/security-auction/bids/remove-all";removeAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceSecurityAuctionBidControllerRemoveAllPath,"delete");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}removeAll(e,o){return this.removeAll$Response(e,o).pipe(j(r=>r.body))}static#t=this.GovernanceSecurityAuctionBidControllerUpdateAllPath="/gov/security-auction/bids/update-all";updateAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceSecurityAuctionBidControllerUpdateAllPath,"post");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}updateAll(e,o){return this.updateAll$Response(e,o).pipe(j(r=>r.body))}static#n=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#o=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Q4e=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GovernanceSecurityAuctionMetadataControllerRemoveAllPath="/gov/security-auction/metadata/remove-all";removeAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceSecurityAuctionMetadataControllerRemoveAllPath,"delete");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}removeAll(e,o){return this.removeAll$Response(e,o).pipe(j(r=>r.body))}static#t=this.GovernanceSecurityAuctionMetadataControllerUpdateAllPath="/gov/security-auction/metadata/update-all";updateAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceSecurityAuctionMetadataControllerUpdateAllPath,"post");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}updateAll(e,o){return this.updateAll$Response(e,o).pipe(j(r=>r.body))}static#n=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#o=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),eCe=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GovernanceSecurityAuctionStatControllerRemoveAllPath="/gov/security-auction/stats/remove-all";removeAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceSecurityAuctionStatControllerRemoveAllPath,"delete");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}removeAll(e,o){return this.removeAll$Response(e,o).pipe(j(r=>r.body))}static#t=this.GovernanceSecurityAuctionStatControllerUpdateAllPath="/gov/security-auction/stats/update-all";updateAll$Response(e,o){const r=new kn(this.rootUrl,n.GovernanceSecurityAuctionStatControllerUpdateAllPath,"post");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}updateAll(e,o){return this.updateAll$Response(e,o).pipe(j(r=>r.body))}static#n=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#o=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),tCe=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.HealthControllerHealthPath="/health";health$Response(e,o){const r=new kn(this.rootUrl,n.HealthControllerHealthPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}health(e,o){return this.health$Response(e,o).pipe(j(r=>r.body))}static#t=this.HealthControllerLivePath="/live";live$Response(e,o){const r=new kn(this.rootUrl,n.HealthControllerLivePath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}live(e,o){return this.live$Response(e,o).pipe(j(r=>r.body))}static#n=this.HealthControllerReadyPath="/ready";ready$Response(e,o){const r=new kn(this.rootUrl,n.HealthControllerReadyPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}ready(e,o){return this.ready$Response(e,o).pipe(j(r=>r.body))}static#o=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#r=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),nCe=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.PingControllerPingPath="/ping";ping$Response(e,o){const r=new kn(this.rootUrl,n.PingControllerPingPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}ping(e,o){return this.ping$Response(e,o).pipe(j(r=>r.body))}static#t=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#n=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),oCe=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.SecurityAuctionBidControllerGetSecurityAuctionBidPath="/security-auction/bids/{auctionNumber}/{id}/{unit}";getSecurityAuctionBid$Response(e,o){const r=new kn(this.rootUrl,n.SecurityAuctionBidControllerGetSecurityAuctionBidPath,"get");return e&&(r.path("auctionNumber",e.auctionNumber,{}),r.path("id",e.id,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getSecurityAuctionBid(e,o){return this.getSecurityAuctionBid$Response(e,o).pipe(j(r=>r.body))}static#t=this.SecurityAuctionBidControllerGetAllBidsByAuctionPath="/security-auction/bids/{auctionNumber}";getAllBidsByAuction$Response(e,o){const r=new kn(this.rootUrl,n.SecurityAuctionBidControllerGetAllBidsByAuctionPath,"get");return e&&r.path("auctionNumber",e.auctionNumber,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getAllBidsByAuction(e,o){return this.getAllBidsByAuction$Response(e,o).pipe(j(r=>r.body))}static#n=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#o=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),rCe=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.SecurityAuctionMetadataControllerGetSecurityAuctionMetadataPath="/security-auction/metadata/{name}";getSecurityAuctionMetadata$Response(e,o){const r=new kn(this.rootUrl,n.SecurityAuctionMetadataControllerGetSecurityAuctionMetadataPath,"get");return e&&r.path("name",e.name,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getSecurityAuctionMetadata(e,o){return this.getSecurityAuctionMetadata$Response(e,o).pipe(j(r=>r.body))}static#t=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#n=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),AK=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.SecurityAuctionStatControllerGetSecurityAuctionMetadataWithStatsPath="/security-auction/stats/{auctionNumber}/{name}/{unit}";getSecurityAuctionMetadataWithStats$Response(e,o){const r=new kn(this.rootUrl,n.SecurityAuctionStatControllerGetSecurityAuctionMetadataWithStatsPath,"get");return e&&(r.path("auctionNumber",e.auctionNumber,{}),r.path("name",e.name,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getSecurityAuctionMetadataWithStats(e,o){return this.getSecurityAuctionMetadataWithStats$Response(e,o).pipe(j(r=>r.body))}static#t=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#n=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),yK=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.TokenPriceControllerConvertPath="/token-prices/convert/{from}/{to}/{amount}";convert$Response(e,o){const r=new kn(this.rootUrl,n.TokenPriceControllerConvertPath,"get");return e&&(r.path("from",e.from,{}),r.path("to",e.to,{}),r.path("amount",e.amount,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}convert(e,o){return this.convert$Response(e,o).pipe(j(r=>r.body))}static#t=this.TokenPriceControllerGetTokenPriceByCurrencyPath="/token-prices/{ids}/{vs_currency}";getTokenPriceByCurrency$Response(e,o){const r=new kn(this.rootUrl,n.TokenPriceControllerGetTokenPriceByCurrencyPath,"get");return e&&(r.path("ids",e.ids,{}),r.path("vs_currency",e.vs_currency,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getTokenPriceByCurrency(e,o){return this.getTokenPriceByCurrency$Response(e,o).pipe(j(r=>r.body))}static#n=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#o=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),iCe=(()=>{class n extends wa{constructor(e,o){super(e,o)}static#e=this.GenericVariableControllerGetGenericVariableByBaseAndNamePath="/{baseURL}/{name}/{unit}";getGenericVariableByBaseAndName$Response(e,o){const r=new kn(this.rootUrl,n.GenericVariableControllerGetGenericVariableByBaseAndNamePath,"get");return e&&(r.path("baseURL",e.baseURL,{}),r.path("name",e.name,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getGenericVariableByBaseAndName(e,o){return this.getGenericVariableByBaseAndName$Response(e,o).pipe(j(r=>r.body))}static#t=this.\u0275fac=function(o){return new(o||n)(Te(gi),Te(q0))};static#n=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),vO=(()=>{class n{constructor(){this.rootUrl="http://localhost:3004"}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),HD=(()=>{class n{constructor(e,o){this.config=e,this.http=o,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}static#e=this.\u0275fac=function(o){return new(o||n)(Te(vO),Te(q0))};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac})}return n})();const sCe=new class aCe{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class XD{constructor(t,e,o,r,i){this.name=t,this.value=e,this.options=o,this.options=o||{},null==this.options.style&&(this.options.style=r),null==this.options.explode&&(this.options.explode=i)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(o=>this.serializeValue(o).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];null!=i&&(i=this.serializeValue(i).split(e).join(encodeURIComponent(e)),this.options.explode?o.push(`${r}=${i}`):(o.push(r),o.push(i)))}return o.join(e)}return String(t)}}class cCe extends XD{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let o="label"===this.options.style?".":"",r=this.options.explode?""===o?",":o:",",i=!1;return"matrix"===this.options.style&&(o=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(o=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),i=!0):(e=this.serializeValue(e,";"),i=!0))),e=o+(i?e:this.serializeValue(e,r)),(t=t.replace(`{${this.name}}`,e)).replace(`{${o}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var o="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(o=(o=o.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class lCe extends XD{constructor(t,e,o){super(t,e,o,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(o)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(e,this.serializeValue(o)))}else{const e=[];for(const o of Object.keys(this.value)){const r=this.value[o];null!=r&&(e.push(o),e.push(r))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class pCe extends XD{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class AO{constructor(t,e,o){this.rootUrl=t,this.operationPath=e,this.method=o,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,o){this._path.set(t,new cCe(t,e,o||{}))}query(t,e,o){this._query.set(t,new lCe(t,e,o||{}))}header(t,e,o){this._header.set(t,new pCe(t,e,o||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];i instanceof Array||(i=[i]);for(const a of i){const s=this.formDataValue(a);null!==s&&o.push([r,s])}}this._bodyContent=o.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const o=new FormData;if(null!=t)for(const r of Object.keys(t)){const i=t[r];if(i instanceof Array)for(const a of i){const s=this.formDataValue(a);null!==s&&o.append(r,s)}else{const a=this.formDataValue(i);null!==a&&o.set(r,a)}}this._bodyContent=o}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const o=this.rootUrl+e;let r=new Rs({encoder:sCe});for(const a of this._query.values())r=a.append(r);let i=new fi;t.accept&&(i=i.append("Accept",t.accept));for(const a of this._header.values())i=a.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set("Content-Type",this._bodyContentType)),new Gl(this.method.toUpperCase(),o,this._bodyContent,{params:r,headers:i,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let CK=(()=>{class n extends HD{constructor(e,o){super(e,o)}static#e=this.CloudVmCostControllerGetCostByTypeAndUnitPath="/cost/compute/{type}/{unit}";getCostByTypeAndUnit$Response(e,o){const r=new AO(this.rootUrl,n.CloudVmCostControllerGetCostByTypeAndUnitPath,"get");return e&&(r.path("type",e.type,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getCostByTypeAndUnit(e,o){return this.getCostByTypeAndUnit$Response(e,o).pipe(j(r=>r.body))}static#t=this.CloudVmCostControllerGetProductionCostByMeasurementAndUnitPath="/cost/production/{unit}/{costType}";getProductionCostByMeasurementAndUnit$Response(e,o){const r=new AO(this.rootUrl,n.CloudVmCostControllerGetProductionCostByMeasurementAndUnitPath,"get");return e&&(r.path("unit",e.unit,{}),r.path("costType",e.costType,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}getProductionCostByMeasurementAndUnit(e,o){return this.getProductionCostByMeasurementAndUnit$Response(e,o).pipe(j(r=>r.body))}static#n=this.\u0275fac=function(o){return new(o||n)(Te(vO),Te(q0))};static#o=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),dCe=(()=>{class n extends HD{constructor(e,o){super(e,o)}static#e=this.HealthControllerHealthPath="/health";health$Response(e,o){const r=new AO(this.rootUrl,n.HealthControllerHealthPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}health(e,o){return this.health$Response(e,o).pipe(j(r=>r.body))}static#t=this.HealthControllerLivePath="/live";live$Response(e,o){const r=new AO(this.rootUrl,n.HealthControllerLivePath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}live(e,o){return this.live$Response(e,o).pipe(j(r=>r.body))}static#n=this.HealthControllerReadyPath="/ready";ready$Response(e,o){const r=new AO(this.rootUrl,n.HealthControllerReadyPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}ready(e,o){return this.ready$Response(e,o).pipe(j(r=>r.body))}static#o=this.\u0275fac=function(o){return new(o||n)(Te(vO),Te(q0))};static#r=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),uCe=(()=>{class n extends HD{constructor(e,o){super(e,o)}static#e=this.PingControllerPingPath="/ping";ping$Response(e,o){const r=new AO(this.rootUrl,n.PingControllerPingPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}ping(e,o){return this.ping$Response(e,o).pipe(j(r=>r.body))}static#t=this.\u0275fac=function(o){return new(o||n)(Te(vO),Te(q0))};static#n=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const{isArray:fCe}=Array;const gCe=["*"],OCe=function(n,t){return{"border-color":n,"border-right-color":t}};function mCe(n,t){if(1&n&&(m(0,"div"),l(1,"\n "),de(2,"hot-toast-error",2),l(3,"\n "),_()),2&n){const e=ce(3);P(2),T("theme",e.theme)}}function _Ce(n,t){if(1&n&&(m(0,"div"),l(1,"\n "),de(2,"hot-toast-checkmark",2),l(3,"\n "),_()),2&n){const e=ce(3);P(2),T("theme",e.theme)}}function zCe(n,t){if(1&n&&(m(0,"div"),l(1,"\n "),de(2,"hot-toast-warning",2),l(3,"\n "),_()),2&n){const e=ce(3);P(2),T("theme",e.theme)}}function vCe(n,t){if(1&n&&(m(0,"div"),l(1,"\n "),de(2,"hot-toast-info",2),l(3,"\n "),_()),2&n){const e=ce(3);P(2),T("theme",e.theme)}}function ACe(n,t){if(1&n&&(m(0,"div",4),l(1,"\n "),m(2,"div",5),l(3,"\n "),J(4,mCe,4,1,"div",6),l(5,"\n "),J(6,_Ce,4,1,"div",6),l(7,"\n "),J(8,zCe,4,1,"div",6),l(9,"\n "),J(10,vCe,4,1,"div",6),l(11,"\n "),_(),l(12,"\n "),_()),2&n){const e=ce(2);P(2),T("ngSwitch",e.type),P(2),T("ngSwitchCase","error"),P(2),T("ngSwitchCase","success"),P(2),T("ngSwitchCase","warning"),P(2),T("ngSwitchCase","info")}}function yCe(n,t){if(1&n&&(m(0,"div",1),l(1,"\n "),de(2,"hot-toast-loader",2),l(3,"\n "),J(4,ACe,13,5,"div",3),l(5,"\n"),_()),2&n){const e=ce();P(2),T("theme",e.theme),P(2),T("ngIf","loading"!==e.type)}}const CCe=["hotToastBarBase"];function wCe(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"hot-toast-animated-icon",10),l(3),_(),l(4,"\n "),He()),2&n){const e=ce(2);P(2),T("iconTheme",e.toast.iconTheme),P(1),t0(e.toast.icon)}}function PCe(n,t){if(1&n&&(l(0,"\n "),m(1,"div"),l(2,"\n "),g0(3,11),l(4,"\n "),_(),l(5,"\n ")),2&n){const e=ce(2);P(3),T("dynamicView",e.toast.icon)}}function xCe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,wCe,5,2,"ng-container",4),l(3,"\n "),J(4,PCe,6,1,"ng-template",null,9,$t),l(6,"\n "),He()),2&n){const e=gt(5),o=ce();P(2),T("ngIf",o.isIconString)("ngIfElse",e)}}function qCe(n,t){if(1&n&&(l(0,"\n "),de(1,"hot-toast-indicator",12),l(2,"\n ")),2&n){const e=ce();P(1),T("theme",e.toast.iconTheme)("type",e.toast.type)}}function WCe(n,t){1&n&&g0(0)}function LCe(n,t){if(1&n){const e=b1();m(0,"button",13),yt("click",function(){return R0(e),v0(ce().close())}),_()}2&n&&T("ngStyle",ce().toast.closeStyle)}function TCe(n,t){if(1&n){const e=b1();m(0,"hot-toast",3),yt("height",function(r){const a=R0(e).$implicit;return v0(ce().updateHeight(r,a))})("beforeClosed",function(){const i=R0(e).$implicit;return v0(ce().beforeClosed(i))})("afterClosed",function(r){return R0(e),v0(ce().afterClosed(r))}),_()}if(2&n){const e=t.$implicit,o=t.index,r=ce();T("toast",e)("offset",r.calculateOffset(e.id,e.position))("toastRef",r.toastRefs[o])}}const wK={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3};class jD{constructor(t){this.toast=t,this._onClosed=new I}get data(){return this.toast.data}set dispose(t){this._dispose=t}getToast(){return this.toast}appendTo(t){const{dispose:e,updateMessage:o,updateToast:r,afterClosed:i}=t.addToast(this);return this.dispose=e,this.updateMessage=o,this.updateToast=r,this.afterClosed=function MCe(...n){return 1===(n=function hCe(n){return 1===n.length&&fCe(n[0])?n[0]:n}(n)).length?k0(n[0]):new V(function bCe(n){return t=>{let e=[];for(let o=0;e&&!t.closed&&o{if(e){for(let i=0;i{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme"},ngContentSelectors:gCe,decls:5,vars:2,consts:[[1,"hot-toast-animated-icon"]],template:function(e,o){1&e&&(function BI(n){const t=mt()[B0][Nr];if(!t.projection){const o=t.projection=Sc(n?n.length:1,null),r=o.slice();let i=t.child;for(;null!==i;){const a=n?L0e(i,n):0;null!==a&&(r[a]?r[a].projectionNext=i:o[a]=i,r[a]=i),i=i.next}}}(),m(0,"div",0),l(1,"\n "),function FI(n,t=0,e){const o=mt(),r=f1(),i=v2(r,Cn+n,16,null,e||null);null===i.projection&&(i.projection=t),Df(),32!=(32&i.flags)&&function oq(n,t,e){RA(t[De],0,t,e,yA(n,e,t),xA(e.parent||t[Nr],e,t))}(r,o,i)}(2),l(3,"\n"),_(),l(4,"\n")),2&e&&y2("color",null==o.iconTheme?null:o.iconTheme.primary)},encapsulation:2,changeDetection:0}),n})(),ECe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(e,o){1&e&&(de(0,"div",0),l(1,"\n")),2&e&&y2("--check-primary",null==o.theme?null:o.theme.primary)("--check-secondary",null==o.theme?null:o.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),ICe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(e,o){1&e&&(de(0,"div",0),l(1,"\n")),2&e&&y2("--error-primary",null==o.theme?null:o.theme.primary)("--error-secondary",null==o.theme?null:o.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),NCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon",3,"ngStyle"]],template:function(e,o){1&e&&(de(0,"div",0),l(1,"\n")),2&e&&T("ngStyle",wr(1,OCe,null==o.theme?null:o.theme.primary,null==o.theme?null:o.theme.secondary))},dependencies:[Jn],encapsulation:2,changeDetection:0}),n})(),BCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(e,o){1&e&&(de(0,"div",0),l(1,"\n")),2&e&&y2("--warn-primary",null==o.theme?null:o.theme.primary)("--warn-secondary",null==o.theme?null:o.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),FCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(e,o){1&e&&(de(0,"div",0),l(1,"\n")),2&e&&y2("--warn-primary",null==o.theme?null:o.theme.primary)("--warn-secondary",null==o.theme?null:o.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),YCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:2,vars:1,consts:[["class","hot-toast-indicator-wrapper",4,"ngIf"],[1,"hot-toast-indicator-wrapper"],[3,"theme"],["class","hot-toast-status-wrapper",4,"ngIf"],[1,"hot-toast-status-wrapper"],[3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(e,o){1&e&&(J(0,yCe,6,2,"div",0),l(1,"\n")),2&e&&T("ngIf","blank"!==o.type)},dependencies:[Q0,d4,YB,ECe,ICe,NCe,BCe,FCe],encapsulation:2,changeDetection:0}),n})(),xK=(()=>{class n{constructor(e,o,r){this.injector=e,this.renderer=o,this.ngZone=r,this.offset=0,this.height=new G1,this.beforeClosed=new G1,this.afterClosed=new G1,this.isManualClose=!1,this.unlisteners=[]}get containerPositionStyle(){const e=this.toast.position.includes("top"),o=e?{top:0}:{bottom:0},r=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return{transform:`translateY(${this.offset*(e?1:-1)}px)`,...o,...r}}get toastBarBaseStyles(){const e=this.toast.position.includes("top"),o=`hotToastEnterAnimation${e?"Negative":"Positive"} 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;return{...this.toast.style,animation:this.toast.autoClose?`${o}, hotToastExitAnimation${e?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) ${this.toast.duration}ms`:o}}get isIconString(){return"string"==typeof this.toast.icon}ngOnInit(){aw(this.toast.message)&&(this.context={$implicit:this.toastRef}),xz(this.toast.message)&&(this.toastComponentInjector=Qo.create({providers:[{provide:jD,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){const e=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(e.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(e,"animationstart",o=>{this.isExitAnimation(o)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(e,"animationend",o=>{this.isExitAnimation(o)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}close(){this.isManualClose=!0;((n,t)=>{this.toastBarBase.nativeElement.style.animation=t})(0,`hotToastExitAnimation${this.toast.position.includes("top")?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(e){return e.animationName.includes("hotToastExitAnimation")}setToastAttributes(){const e=this.toast.attributes;for(const[o,r]of Object.entries(e))this.renderer.setAttribute(this.toastBarBase.nativeElement,o,r)}}return n.\u0275fac=function(e){return new(e||n)(Re(Qo),Re(P1),Re(To))},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast"]],viewQuery:function(e,o){if(1&e&&fc(CCe,5),2&e){let r;Ws(r=Ls())&&(o.toastBarBase=r.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed"},decls:25,vars:14,consts:[[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["hotToastBarBase",""],["aria-hidden","true",1,"hot-toast-icon"],[4,"ngIf","ngIfElse"],["indicator",""],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],["type","button","class","hot-toast-close-btn","aria-label","Close",3,"ngStyle","click",4,"ngIf"],["iconTemplateOrComponent",""],[3,"iconTheme"],[3,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"ngStyle","click"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),m(2,"div",1,2),l(4,"\n "),m(5,"div",3),l(6,"\n "),J(7,xCe,7,2,"ng-container",4),l(8,"\n\n "),J(9,qCe,3,2,"ng-template",null,5,$t),l(11,"\n "),_(),l(12,"\n\n "),m(13,"div",6),l(14,"\n "),m(15,"div"),l(16,"\n "),J(17,WCe,1,0,"ng-container",7),l(18,"\n "),_(),l(19,"\n "),_(),l(20,"\n\n "),J(21,LCe,1,1,"button",8),l(22,"\n "),_(),l(23,"\n"),_(),l(24,"\n")),2&e){const r=gt(10);T("ngStyle",o.containerPositionStyle)("ngClass","hot-toast-theme-"+o.toast.theme),P(2),y2("--hot-toast-animation-state",o.isManualClose?"running":"paused"),T("ngStyle",o.toastBarBaseStyles)("ngClass",o.toast.className),Fc("aria-live",o.toast.ariaLive)("role",o.toast.role),P(5),T("ngIf",void 0!==o.toast.icon)("ngIfElse",r),P(10),T("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),P(4),T("ngIf",o.toast.dismissible)}},dependencies:[Io,Q0,Jn,qve,kCe,YCe],encapsulation:2,changeDetection:0}),n})(),HCe=(()=>{class n{constructor(e){this.cdr=e,this.toasts=[],this.toastRefs=[],this._onClosed=new I,this.onClosed$=this._onClosed.asObservable()}trackById(e,o){return o.id}calculateOffset(e,o){const r=this.toasts.filter(s=>s.visible&&s.position===o),i=r.findIndex(s=>s.id===e);return-1!==i?r.slice(...this.defaultConfig.reverseOrder?[i+1]:[0,i]).reduce((s,c)=>s+(c.height||0)+8,0):0}updateHeight(e,o){o.height=e,this.cdr.detectChanges()}addToast(e){this.toastRefs.push(e);const o=e.getToast();return this.toasts.push(e.getToast()),this.cdr.detectChanges(),{dispose:()=>{this.closeToast(o.id)},updateMessage:r=>{o.message=r,this.cdr.detectChanges()},updateToast:r=>{this.updateToasts(o,r),this.cdr.detectChanges()},afterClosed:this.getAfterClosed(o)}}closeToast(e){if(e){const o=this.hotToastComponentList.find(r=>r.toast.id===e);o&&o.close()}else this.hotToastComponentList.forEach(o=>o.close())}beforeClosed(e){e.visible=!1}afterClosed(e){this.toasts.findIndex(r=>r.id===e.id)>-1&&(this._onClosed.next(e),this.toasts=this.toasts.filter(r=>r.id!==e.id),this.toastRefs=this.toastRefs.filter(r=>r.getToast().id!==e.id),this.cdr.detectChanges())}hasToast(e){return this.toasts.findIndex(o=>o.id===e)>-1}getAfterClosed(e){return this.onClosed$.pipe(ht(o=>o.id===e.id))}updateToasts(e,o){this.toasts=this.toasts.map(r=>({...r,...r.id===e.id&&{...e,...o}}))}}return n.\u0275fac=function(e){return new(e||n)(Re(ns))},n.\u0275cmp=Rt({type:n,selectors:[["hot-toast-container"]],viewQuery:function(e,o){if(1&e&&fc(xK,5),2&e){let r;Ws(r=Ls())&&(o.hotToastComponentList=r)}},inputs:{defaultConfig:"defaultConfig"},decls:8,vars:2,consts:[[2,"position","fixed","z-index","9999","top","0","right","0","bottom","0","left","0","pointer-events","none"],[2,"position","relative","height","100%"],[3,"toast","offset","toastRef","height","beforeClosed","afterClosed",4,"ngFor","ngForOf","ngForTrackBy"],[3,"toast","offset","toastRef","height","beforeClosed","afterClosed"]],template:function(e,o){1&e&&(m(0,"div",0),l(1,"\n "),m(2,"div",1),l(3,"\n "),J(4,TCe,1,3,"hot-toast",2),l(5,"\n "),_(),l(6,"\n"),_(),l(7,"\n")),2&e&&(P(4),T("ngForOf",o.toasts)("ngForTrackBy",o.trackById))},dependencies:[Xo,xK],encapsulation:2,changeDetection:0}),n})();class qK{constructor(){this.reverseOrder=!1,this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}}class UCe{constructor(){this.storage="local",this.key="ngneat/hototast-${id}",this.count=1,this.enabled=!1}}let Tu=(()=>{class n{constructor(e,o,r){this._viewService=e,this.platformId=o,this._isInitialized=!1,this._defaultConfig=new qK,this._defaultPersistConfig=new UCe,r&&(this._defaultConfig={...this._defaultConfig,...r})}get defaultConfig(){return this._defaultConfig}set defaultConfig(e){this._defaultConfig={...this._defaultConfig,...e},this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultConfig)}show(e,o){return this.createToast(e||this._defaultConfig.blank.content,"blank",{...this._defaultConfig,...o})}error(e,o){return this.createToast(e||this._defaultConfig.error.content,"error",{...this._defaultConfig,...this._defaultConfig?.error,...o})}success(e,o){return this.createToast(e||this._defaultConfig.success.content,"success",{...this._defaultConfig,...this._defaultConfig?.success,...o})}loading(e,o){return this.createToast(e||this._defaultConfig.loading.content,"loading",{...this._defaultConfig,...this._defaultConfig?.loading,...o})}warning(e,o){return this.createToast(e||this._defaultConfig.warning.content,"warning",{...this._defaultConfig,...this._defaultConfig?.warning,...o})}info(e,o){return this.createToast(e||this._defaultConfig.info.content,"info",{...this._defaultConfig,...this._defaultConfig?.info,...o})}observe(e){return o=>{let r,i=0;const a=e.loading??this._defaultConfig.loading?.content,s=e.success??this._defaultConfig.success?.content,c=e.error??this._defaultConfig.error?.content;return E3(()=>(a&&(r=this.createLoadingToast(a),i=Date.now()),o.pipe(jo({...s&&{next:p=>{r=this.createOrUpdateToast(e,p,r,"success",0===i?i:Date.now()-i)}},...c&&{error:p=>{r=this.createOrUpdateToast(e,p,r,"error",0===i?i:Date.now()-i)}}}))))}}close(e){this._componentRef&&this._componentRef.ref.instance.closeToast(e)}init(){RW(this.platformId)||(this._componentRef=this._viewService.createComponent(HCe).setInput("defaultConfig",this._defaultConfig).appendTo(document.body))}createOrUpdateToast(e,o,r,i,a){let s=null,c={};if(({content:s,options:c}=this.getContentAndOptions(i,e[i]||(this._defaultConfig[i]?this._defaultConfig[i].content:""))),s=((n,t)=>(n=>"function"==typeof n)(n)?n(t):n)(s,o),r){r.updateMessage(s);const p={type:i,duration:a+wK[i],...c,...c.duration&&{duration:a+c.duration}};r.updateToast(p)}else this.createToast(s,i,c);return r}createToast(e,o,r,i){this._isInitialized||(this._isInitialized=!0,this.init());const a=Date.now(),s=r?.id??a.toString();if(!this.isDuplicate(s)&&(!r.persist?.enabled||r.persist?.enabled&&this.handleStorageValue(s,r))){const c={ariaLive:r?.ariaLive??"polite",createdAt:a,duration:r?.duration??wK[o],id:s,message:e,role:r?.role??"status",type:o,visible:!0,observableMessages:i??void 0,...r};return new jD(c).appendTo(this._componentRef.ref.instance)}}isDuplicate(e){return this._componentRef.ref.instance.hasToast(e)}handleStorageValue(e,o){let r=1;const i={...this._defaultPersistConfig,...o.persist},a="local"===i.storage?localStorage:sessionStorage,s=i.key.replace(/\${id}/g,e);let c=a.getItem(s);return c?(c=parseInt(c,10),r=c>0?c-1:c):r=i.count,a.setItem(s,r.toString()),r}getContentAndOptions(e,o){let r,i={...this._defaultConfig,...this._defaultConfig[e]};if("string"==typeof o||aw(o)||xz(o))r=o;else{let a;({content:r,...a}=o),i={...i,...a}}return{content:r,options:i}}createLoadingToast(e){let o=null,r={};return({content:o,options:r}=this.getContentAndOptions("loading",e)),this.loading(o,r)}}return n.\u0275fac=function(e){return new(e||n)(Te(SD),Te(ug),Te(qK,8))},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oi=class rx{constructor(t,e,o,r,i,a,s){this.http=t,this.securityAuctionStatsService=e,this.cloudVmCostControllerService=o,this.storeCloudVmService=r,this.tokenPriceService=i,this.hotToastService=a,this.oracleFormatValuePipe=s,this.totalValueLocked$=null,this.dyPos$=null,this.dyPosSurge$=null,this.security$=null,this.costOfCompute$=null,this.dDosProtection$=null,this.networkOperators$=null,this.cloudCapacity$=null,this.governanceResults=null,this.auctionEconomics=null,this.circulatingSupplyInfo$=null,this.totalSupplyInfo$=null,this.allocatedSupplyInfo$=null,this.storePrice={}}getStorePrice(){return be(0).pipe(Gr(500))}getChainTrendData(t,e){return this.http.get("/store-chain-api"+t+(e?.from&&e?.till?`?from=${e?.from}&till=${e?.till}`:""))}getChainTransactionById(t){return this.http.get("/store-chain-api/transaction/"+t)}getExchangeRate(t,e){return this.http.get(`https://api.coingecko.com/api/v3/simple/price?ids=${t}&vs_currencies=${e}`)}getEtherPrice(){var t=this;return Dt(function*(){const e=yield t.tokenPriceService.getTokenPriceByCurrency({ids:lt.Unit.USD,vs_currency:lt.Unit.ETH}).toPromise();return t1(e?.[lt.Unit.USD]??0)?.toNumber()})()}getAllTimeMarketCapFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vRdKLBsiJyE1O1eKuXUn_QnJfwOxnu_yLLpaOgd79zJfpvdMpbR2eDAZn5oBsF39CCaXewTG6biB0JX/pub?gid=0&single=true&output=csv",{responseType:"text",context:(new Ii).set(Xi,!0)}).pipe(j(t=>this.parseCSV(t)))}getAllocatedSupplyHistoryFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vTWQ-hIY86B-xRlAoLPOQc1L0-Dmb59AUtp-_declUDUtr2FEOGjQgDBGP9rJbmiqQcVocGRV1ugxEr/pub?gid=1834631508&single=true&output=csv",{responseType:"text",context:(new Ii).set(Xi,!0)}).pipe(j(t=>this.parseCSV(t)))}getTreasuryScheduleChartFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vTWQ-hIY86B-xRlAoLPOQc1L0-Dmb59AUtp-_declUDUtr2FEOGjQgDBGP9rJbmiqQcVocGRV1ugxEr/pub?gid=0&single=true&output=csv",{responseType:"text",context:(new Ii).set(Xi,!0)}).pipe(j(t=>this.parseCSV(t)))}postGenerateTransaction(t){return this.http.post("/store-chain-api/transactions",t).pipe(ot(this))}convertUSDIntoRates(t,e){e=e||this.storePrice;const o={};Object.keys(e).forEach(i=>{o[i]=t1(e[i]).times(t)});const r=t?t1(t).div(e[lt.Unit.USD]):t1(t);return{...o,store:r,usd:t1(t),bits:r.times(Xe.one$STOREEqualsToOneBit),bytes:r.times(Xe.one$STOREEqualsToOneBit).div(8)}}call(t,e,o){var r=this;return Dt(function*(){return e?.showLoading(),r.error=null,t.pipe(q2(()=>{o||e?.showSuccess()}),ot(r)).toPromise().catch(()=>{e?.showError()})})()}bindStats(){var t=this;return Dt(function*(){t.bindTotalValueLocked(),t.bindDyPos(),t.bindDyPosSurge(),t.bindSecurity(),t.bindCostOfCompute(),t.bindDDosProtection(),t.bindNetworkOperators(),t.bindCloudCapacity(),t.bindGovernanceResults(),t.bindAuctionEconomics(),t.bindTotalSupplyInfo$(),t.bindCirculatingSupplyInfo$(),t.bindAllocatedSupplyInfo$()})()}setStorePrice(){var t=this;return Dt(function*(){try{const e=["usd","store","bits","seth","usdc","op","matic","arb","eth","btc"],o=yield t.tokenPriceService.getTokenPriceByCurrency({ids:e?.toString(),vs_currency:lt.Unit.STORE},(new Ii).set(Xi,!0)).toPromise();o&&(t.storePrice=o)}catch{t.hotToastService.warning("Failed to fetch latest STORE price.")}})()}bindTotalValueLocked(){const t=this.getStorePrice().pipe(ot(this),j(r=>({label:"TREASURIES",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string"}))),e=this.getStorePrice().pipe(ot(this),j(r=>({label:"STAKED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string"}))),o=this.getStorePrice().pipe(ot(this),j(r=>({label:"TOTAL VALUE LOCKED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}})));this.totalValueLocked$={title:"TOTAL VALUE LOCKED",tooltip:"Description (in progress)",items$:[t,e,o]}}bindDyPos(){var t=this;return Dt(function*(){const e=t.securityAuctionStatsService.getSecurityAuctionMetadataWithStats({auctionNumber:"latest",name:"sb-final",unit:lt.Unit.PERCENT}).pipe(ot(t),j(i=>({label:"SECURITY BUDGET MET",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent"}))),o=t.securityAuctionStatsService.getSecurityAuctionMetadataWithStats({auctionNumber:"latest",name:"sb-max",unit:lt.Unit.PERCENT}).pipe(ot(t),j(i=>({label:"SECURITY BUDGET MAX",tooltip:"Description (in progress)",inlineTooltip:!0,value:.1,type:"percent"}))),r=t.securityAuctionStatsService.getSecurityAuctionMetadataWithStats({auctionNumber:"latest",name:"inflation-rate",unit:lt.Unit.PERCENT}).pipe(ot(t),j(i=>({label:"INFLATION RATE",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent"})));t.dyPos$={title:"PROTOCOL SECURITY",tooltip:"Description (in progress)",items$:[e,o,r]}})()}bindDyPosSurge(){const t=this.getStorePrice().pipe(ot(this),j(a=>({label:"\u{1f4c8} SURGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:"x"}))),e=this.getStorePrice().pipe(ot(this),j(a=>({label:"GROWTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"percent"}))),o=this.getStorePrice().pipe(ot(this),j(a=>({label:"REBALANCE",tooltip:"Description (in progress)",inlineTooltip:!0,value:`~${a?.toFixed(0)}`,type:"string",symbol:" Secs"}))),r=this.getStorePrice().pipe(ot(this),j(a=>({label:"FEES",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:"bits"}))),i=this.getStorePrice().pipe(ot(this),j(a=>({label:"\u{1f525} BURN",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:" bits"})));this.dyPosSurge$={title:"DyPoS SURGE",tooltip:"Description (in progress)",items$:[t,e,o,r,i]}}bindSecurity(){const t=this.getStorePrice().pipe(ot(this),j(r=>({label:"COST TO \u2154 ATTACK",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.USD,value:{[lt.Unit.USD]:r}},4),symbol:" MM"}))),e=this.getStorePrice().pipe(ot(this),j(r=>({label:"COST TO MINT $STORE",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.USD,value:{[lt.Unit.USD]:r}},4),symbol:" MM"}))),o=this.cloudVmCostControllerService.getProductionCostByMeasurementAndUnit({unit:lt.Unit.USD,costType:lt.CostType.Yearly}).pipe(ot(this),j(r=>({label:"PRODUCTION COST/YR",tooltip:"Description (in progress)",inlineTooltip:!0,preSymbol:"$",value:Math.round(r?.value??0)?.toLocaleString(),type:"string"})));this.security$={title:"PROTOCOL ECONOMICS",tooltip:"Description (in progress)",items$:[t,o,e]}}bindCostOfCompute(){const t=this.storeCloudVmService.getResourceByTypeAndSubType({type:lt.Type.Compute,subtype:lt.SubType.GeneralPurpose,unit:lt.Unit.BITS},(new Ii).set(Xi,!0)).pipe(ot(this),j(i=>({label:"CPU (1 CORE-SEC)",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.BITS,value:{[lt.Unit.BITS]:i.value}})}))),e=this.storeCloudVmService.getResourceByTypeAndSubType({type:lt.Type.Storage,subtype:lt.SubType.Tier1,unit:lt.Unit.BITS},(new Ii).set(Xi,!0)).pipe(ot(this),j(i=>({label:"STORAGE (1 GB-SEC)",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.BITS,value:{[lt.Unit.BITS]:i.value}})}))),o=this.storeCloudVmService.getResourceByTypeAndSubType({type:lt.Type.Storage,subtype:lt.SubType.Permanent,unit:lt.Unit.BITS},(new Ii).set(Xi,!0)).pipe(ot(this),j(i=>({label:"1 iBYTE EQUALS",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.BITS,value:{[lt.Unit.BITS]:i.value}})}))),r=this.storeCloudVmService.getResourceByTypeAndSubType({type:lt.Type.Storage,subtype:lt.SubType.Permanent,unit:lt.Unit.USD},(new Ii).set(Xi,!0)).pipe(ot(this),j(i=>({label:"COST PER iBYTE",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.USD,value:{[lt.Unit.USD]:i.value}})})));this.costOfCompute$={title:"STORE CLOUD VM",tooltip:"Description (in progress)",items$:[t,e,o,r]}}bindDDosProtection(){const t=this.getStorePrice().pipe(ot(this),j(i=>({label:"ACTUAL TPS",value:i,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),e=this.getStorePrice().pipe(ot(this),j(i=>({label:"TXN BURST",value:i,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),o=this.getStorePrice().pipe(ot(this),j(i=>({label:"RATE LIMIT/SEC",value:i,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),r=this.getStorePrice().pipe(ot(this),j(i=>({label:"MAX TPS(24-HOUR)",value:i,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbolPosition:"after",symbol:"(+0%)",symbolCssClass:"text-light"})));this.dDosProtection$={title:"STORE CHAIN DDoS PROTECTION",tooltip:"Description (in progress)",items$:[t,e,o,r]}}bindNetworkOperators(){const t=this.getStorePrice().pipe(ot(this),j(a=>({label:"MARKETS",tooltip:"Description (in progress)",inlineTooltip:!0,value:1,type:"number"}))),e=this.getStorePrice().pipe(ot(this),j(a=>({label:"CLOUD MINERS",tooltip:"Description (in progress)",inlineTooltip:!0,value:10,type:"number"}))),o=this.getStorePrice().pipe(ot(this),j(a=>({label:"BLOCK MINERS",tooltip:"Description (in progress)",inlineTooltip:!0,value:7,type:"number"}))),r=this.getStorePrice().pipe(ot(this),j(a=>({label:"VOTERS",value:82,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),i=this.getStorePrice().pipe(ot(this),j(a=>({label:"Status: Alpha",value:null,type:"string"})));this.networkOperators$={title:"NETWORK OPERATORS",tooltip:"Description (in progress)",subTitle:{enable:!0,item$:i},items$:[t,e,o,r]}}bindCloudCapacity(){const t=this.getStorePrice().pipe(ot(this),j(i=>({label:"DATA CENTERS",value:5,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),e=this.getStorePrice().pipe(ot(this),j(i=>({label:"COMPUTE",value:26400,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"vCPUS"}))),o=this.getStorePrice().pipe(ot(this),j(i=>({label:"MEMORY",value:240,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"TB"}))),r=this.getStorePrice().pipe(ot(this),j(i=>({label:"STORAGE",value:12e3,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"TB HHD"})));this.cloudCapacity$={title:"STORE CLOUD CAPACITY",tooltip:"Description (in progress)",items$:[t,e,o,r]}}bindGovernanceResults(){const t=be({label:"% TRUSTED",tooltip:"Description (in progress)",inlineTooltip:!0,value:"100%",type:"string"}),e=be({label:"BALLOTS APPROVED",tooltip:"Description (in progress)",inlineTooltip:!0,value:5,type:"number"}),o=be({label:"AVG. APPROVAL RATE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"76.95%",type:"string"}),r=be({label:"BALLOTS VETOED",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"number"});this.governanceResults={title:"GOVERNANCE RESULTS",tooltip:"Description (in progress)",items$:[t,e,o,r]}}bindAuctionEconomics(){const t=be({label:"NEXT AUCTION",tooltip:"Description (in progress)",inlineTooltip:!0,value:"TBD",type:"string"}),e=be({label:"SB GROWTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"}),o=be({label:"SB+",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"}),r=be({label:"LAST AUCTION SUBSCRIPTON",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"});this.auctionEconomics={title:"AUCTION ECONOMICS",tooltip:"Description (in progress)",items$:[t,e,o,r]}}parseCSV(t){for(var e=[],o=!1,r=0,i=0,a=0;a({label:"CIRCULATING SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}}))),e=this.getStorePrice().pipe(ot(this),j(r=>({label:"MARKET CAP/TVL",tooltip:"Description (in progress)",inlineTooltip:!0,value:"00.00",type:"string"}))),o=this.getStorePrice().pipe(ot(this),j(r=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}})));this.circulatingSupplyInfo$={title:"CIRCULATING SUPPLY",tooltip:"Description (in progress)",items$:[t,e,o]}}bindTotalSupplyInfo$(){const t=this.getStorePrice().pipe(ot(this),j(r=>({label:"TOTAL SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"0.0",symbol:"B",type:"string",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}}))),e=this.getStorePrice().pipe(ot(this),j(r=>({label:"FDV/TVL",tooltip:"Description (in progress)",inlineTooltip:!0,value:"00.00",type:"string"}))),o=this.getStorePrice().pipe(ot(this),j(r=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}})));this.totalSupplyInfo$={title:"TOTAL SUPPLY",tooltip:"Description (in progress)",items$:[t,e,o]}}bindAllocatedSupplyInfo$(){const t=this.getStorePrice().pipe(ot(this),j(o=>({label:"ALLOCATED SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}}))),e=this.getStorePrice().pipe(ot(this),j(o=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}})));this.allocatedSupplyInfo$={title:"ALLOCATED SUPPLY",tooltip:"Description (in progress)",items$:[t,e]}}static#e=this.\u0275fac=function(e){return new(e||rx)(Te(q0),Te(AK),Te(CK),Te(Ow),Te(yK),Te(Tu),Te(dw))};static#t=this.\u0275prov=et({token:rx,factory:rx.\u0275fac,providedIn:"root"})};Oi=$e([p0()],Oi);class _w{constructor(){this.refreshOnTransactionGenerate=new No({count:void 0,state:no.State.Completed}),this.scrollToTransactionBlocks=new No(!1),this.refreshOnTransactionGenerate$=this.refreshOnTransactionGenerate.asObservable(),this.scrollToTransactionBlocks$=this.scrollToTransactionBlocks.asObservable()}changeState(t){this.refreshOnTransactionGenerate.next(t)}scrollToTransactionBlocksSection(){this.scrollToTransactionBlocks.next(!0)}}function WK(n,t=o_){return _t((e,o)=>{let r=null,i=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const p=i;i=null,o.next(p)}};function c(){const p=a+n,d=t.now();if(d{i=p,a=t.now(),r||(r=t.schedule(c,n),o.add(r))},()=>{s(),o.complete()},void 0,()=>{i=r=null}))})}let UD=class{constructor(t,e,o,r){this.disableResetData=!1,this._loading$=new No(!0),this._search$=new I,this._data$=new No([]),this._numOfPages$=new No(0),this._state={page:1,pageSize:8,status:null,searchTerm:"",sortColumn:"",sortDirection:""},this.http=t,this.serviceAPIUrl=o,this.data=e,this.map=r,this.initSearch()}get data$(){return this._data$.asObservable()}get numOfPages$(){return this._numOfPages$.asObservable()}get loading$(){return this._loading$.asObservable()}get page(){return this._state.page}get pageSize(){return this._state.pageSize}get searchTerm(){return this._state.searchTerm}get status(){return this._state.status}set page(t){this._set({page:t})}set pageSize(t){this._set({pageSize:t})}set searchTerm(t){this._set({searchTerm:t})}set sortColumn(t){this._set({sortColumn:t})}set sortDirection(t){this._set({sortDirection:t})}set status(t){this._set({status:t})}set loading(t){this._loading$.next(t)}_set(t){Object.assign(this._state,t),this._search$.next()}_search(){var t=this;return Dt(function*(){return t.serviceAPIUrl?t.getAPIData():t.data?t.getLocalData():be({data:[],numOfPages:0})})()}getLocalData(){var t=this;return Dt(function*(){const{pageSize:e,page:o,status:r,sortColumn:i,sortDirection:a}=t._state;if(!t.data)return be({data:[],numOfPages:0});let s=yield nr(t.data);t.map&&(s=t.map(s));let c=t.sort(s,i,a);r&&"Any"!==r&&"All"!==r&&(c=c?.filter(d=>d?.status===r));const p=Math.ceil(c?.length/e);return c=c?.slice((o-1)*e,(o-1)*e+e),be({data:c,numOfPages:p})})()}getAPIData(){var t=this;return Dt(function*(){const{pageSize:e,page:o}=t._state,r=t.preparePagination(o,e),i=yield nr(t.http.get(t.serviceAPIUrl+r));return t.map&&(i.data=t.map(i?.data)),be(i)})()}preparePagination(t,e){return`?page=${t-1}&limit=${e}&time=desc`}sort(t,e,o){return""===o||""===e?t:[...t].sort((r,i)=>{const a=((n,t)=>nt?1:0)(r[e],i[e]);return"asc"===o?a:-a})}initSearch(){var t=this;(this.data||this.serviceAPIUrl)&&(this._search$.pipe(jo(()=>{this.disableResetData||(this._loading$.next(!0),this._data$.next([])),this._numOfPages$.next(0)}),WK(200),hi(Dt(function*(){return yield nr(yield t._search())})),jo(()=>{this.disableResetData||this._loading$.next(!1)}),q2(()=>{this.disableResetData||this._loading$.next(!1)})).subscribe(e=>{this._data$.next(e.data),this._numOfPages$.next(e.numOfPages)}),this._search$.next())}};UD=$e([p0({checkProperties:!0})],UD);let zw=class ix{constructor(t,e){this.http=t,this.stateService=e,this.totalTransactions$={title:"TOTAL TRANSACTIONS",tooltip:"Description (in progress)",subTitle:{enable:!0,item:null},items:null,available:{items:!0}},this.totalBlocks$={title:"TOTAL BLOCKS",tooltip:"Description (in progress)",subTitle:{enable:!0,item:null},items:null,available:{items:!0}},this.bindTotalTransactionsAndBlocks(),this.attachStateChange()}getChainDashboardStats(){return this.http.get("/store-chain-api/dashboard2").pipe(ot(this))}bindTotalTransactionsAndBlocks(){var t=this;return Dt(function*(){const e=yield nr(t.getChainDashboardStats());t.attachTotalTransactionsAndBlocks(e)})()}attachTotalTransactionsAndBlocks(t){const e={label:"Waiting",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.pendingTransactions,type:"short-number",icon:"clock"},o={label:"Confirming",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.confirmingTransactions,type:"short-number",icon:"box"},r={label:"Finalized",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.finalizedTransactions,type:"short-number",decimal:{count:2},icon:"check-circle"};this.totalTransactions$.subTitle={enable:!0,item:{label:"",value:t?.totalTransactions,type:"short-number",decimal:{count:2},cssClass:"d-flex g-1"}},this.totalTransactions$.items=[e,o,r];const a={label:"Confirming",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.confirmingBlocks,type:"short-number",icon:"box"},s={label:"Finalized",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.finalizedBlocks,type:"short-number",decimal:{count:2},icon:"check-circle"};this.totalBlocks$.subTitle={enable:!0,item:{label:"",value:t?.totalBlocks,type:"short-number",decimal:{count:2},cssClass:"d-flex g-1"}},this.totalBlocks$.items=[a,s]}attachStateChange(){this.stateService.refreshOnTransactionGenerate$.pipe(ot(this),hi(t=>this.chainTransactionStateChange(t))).subscribe()}chainTransactionStateChange(t){var e=this;return Dt(function*(){switch(t.state){case no.State.Requested:e.Requested(t);break;case no.State.Block_Added:e.Block_Added(t);break;case no.State.Network_Updated:yield e.Network_Updated(t)}})()}Requested(t){this.totalTransactions$.items&&(this.totalTransactions$.items[0].icon="clock_animated",this.totalTransactions$.items[0].value$=be({value:t?.count?.transaction})),this.totalTransactions$?.subTitle?.item&&(this.totalTransactions$.subTitle.item.valueIcon="box_animated")}Block_Added(t){this.totalTransactions$.items&&(this.totalTransactions$.items[0].icon="clock",this.totalTransactions$.items[0].value$=be({value:0}),this.totalTransactions$.items[1].icon="box_animated",this.totalTransactions$.items[1].value$=be({value:t?.count?.transaction})),this.totalBlocks$.items&&(this.totalBlocks$.items[0].icon="box_animated",this.totalBlocks$.items[0].value$=be({value:t?.count?.block})),this.totalBlocks$?.subTitle?.item&&(this.totalBlocks$.subTitle.item.valueIcon="box_animated")}Network_Updated(t){var e=this;return Dt(function*(){const o=yield nr(e.getChainDashboardStats());e.setNetworkUpdateValue(o)})()}setNetworkUpdateValue(t){var e=this;return Dt(function*(){e.totalTransactions$.items&&(e.totalTransactions$.items[0].icon="clock",e.totalTransactions$.items[0].value$=be({value:0}),e.totalTransactions$.items[1].icon="box",e.totalTransactions$.items[1].value$=be({value:0})),e.totalBlocks$.items&&(e.totalBlocks$.items[0].icon="box",e.totalBlocks$.items[0].value$=be({value:0})),e.attachTotalTransactionsAndBlocks(t),e.totalTransactions$.items&&(e.totalTransactions$.items[2].icon="check-circle_animated_once"),e.totalBlocks$.items&&(e.totalBlocks$.items[1].icon="check-circle_animated_once"),e.totalTransactions$?.subTitle?.item&&(e.totalTransactions$.subTitle.item.valueIcon="check-circle_animated_once"),e.totalBlocks$?.subTitle?.item&&(e.totalBlocks$.subTitle.item.valueIcon="check-circle_animated_once"),yield nr(be(0).pipe(Gr(1e3))),e.setSubTitleIcon()})()}setSubTitleIcon(){this.totalTransactions$?.subTitle?.item&&(this.totalTransactions$.subTitle.item.valueIcon=void 0),this.totalBlocks$?.subTitle?.item&&(this.totalBlocks$.subTitle.item.valueIcon=void 0)}static#e=this.\u0275fac=function(e){return new(e||ix)(Te(q0),Te(_w))};static#t=this.\u0275prov=et({token:ix,factory:ix.\u0275fac})};zw=$e([p0()],zw);class VD{constructor(t,e,o,r){var i=this;this.extraQuery=[],this.destroy$=new I,this._search$=new I,this._loading$=new No(!0),this._result$=new No([]),this._total$=new No(-1),this._state={page:1,pageSize:4,searchTerm:"",sortHeaders:[]},this.service$=t,this.fields=e,this.extraQuery=o,this.map=r,t?(this._search$.pipe(jo(Dt(function*(){i._loading$.next(!0),i._result$.next([]),i._total$.next(0)})),WK(100),hi(Dt(function*(){return yield(yield i._search()).toPromise()})),jo(()=>this._loading$.next(!1)),q2(()=>this._loading$.next(!1)),hc(this.destroy$)).subscribe(a=>{this._result$.next(a?.result??[]),this._total$.next(a?.total??-1)}),this._search$.next()):this._loading$.next(!0)}get result$(){return this._result$.asObservable()}get total$(){return this._total$.asObservable()}get loading$(){return this._loading$.asObservable()}get page(){return this._state.page}get pageSize(){return this._state.pageSize}get searchTerm(){return this._state.searchTerm}set page(t){this._set({page:t})}set pageSize(t){this._set({pageSize:t})}set searchTerm(t){this._set({searchTerm:t})}set sortHeaders(t){this._set({sortHeaders:t})}set loading(t){this._loading$.next(t)}load$(){this._search$.next()}getFilter(t){const{sortHeaders:e,pageSize:o,page:r,searchTerm:i}=this._state;let a={},s={"filter[offset]":"0","filter[limit]":o.toString(),"filter[skip]":((r-1)*o).toString()};return t&&(delete s["filter[limit]"],delete s["filter[skip]"]),i&&(s=this.generateFilterUsingColumns(s,this.fields,i),a=this.generateWhereUsingColumns(a,this.fields,i)),this.extraQuery&&(s=this.generateFilterExtraQuery(s),a=this.generateWhereExtraQuery(a)),e?.length>0?s=this.generateFilterOrder(s,e):s["filter[order]"]="createdOn DESC",{filter:s,where:a}}_set(t){Object.assign(this._state,t),this._search$.next()}_search(){var t=this;return Dt(function*(){const e=t.getFilter(),o=yield t.service$?.count({where:e?.where}).toPromise();let r=yield t.service$?.find({filter:e?.filter}).toPromise();return t.map&&(r=t.map(r)),be({result:r,total:o?.count??0})})()}generateFilterUsingColumns(t,e,o){for(let r=0;r{t["filter"+e.key]=e.value}),t}generateWhereExtraQuery(t){return this.extraQuery.forEach(e=>{t[e.key]=e.value}),t}generateFilterOrder(t,e){e=e.filter(o=>""!==o.direction);for(let o=0;o{class n{constructor(){this.rootUrl="http://localhost:3007"}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ru=(()=>{class n{constructor(e,o){this.config=e,this.http=o,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}static#e=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac})}return n})();const GCe=new class $Ce{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class $D{constructor(t,e,o,r,i){this.name=t,this.value=e,this.options=o,this.options=o||{},null==this.options.style&&(this.options.style=r),null==this.options.explode&&(this.options.explode=i)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(o=>this.serializeValue(o).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];null!=i&&(i=this.serializeValue(i).split(e).join(encodeURIComponent(e)),this.options.explode?o.push(`${r}=${i}`):(o.push(r),o.push(i)))}return o.join(e)}return String(t)}}class ZCe extends $D{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let o="label"===this.options.style?".":"",r=this.options.explode?""===o?",":o:",",i=!1;return"matrix"===this.options.style&&(o=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(o=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),i=!0):(e=this.serializeValue(e,";"),i=!0))),e=o+(i?e:this.serializeValue(e,r)),(t=t.replace(`{${this.name}}`,e)).replace(`{${o}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var o="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(o=(o=o.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class KCe extends $D{constructor(t,e,o){super(t,e,o,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(o)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(e,this.serializeValue(o)))}else{const e=[];for(const o of Object.keys(this.value)){const r=this.value[o];null!=r&&(e.push(o),e.push(r))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class JCe extends $D{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class oo{constructor(t,e,o){this.rootUrl=t,this.operationPath=e,this.method=o,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,o){this._path.set(t,new ZCe(t,e,o||{}))}query(t,e,o){this._query.set(t,new KCe(t,e,o||{}))}header(t,e,o){this._header.set(t,new JCe(t,e,o||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];i instanceof Array||(i=[i]);for(const a of i){const s=this.formDataValue(a);null!==s&&o.push([r,s])}}this._bodyContent=o.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const o=new FormData;if(null!=t)for(const r of Object.keys(t)){const i=t[r];if(i instanceof Array)for(const a of i){const s=this.formDataValue(a);null!==s&&o.append(r,s)}else{const a=this.formDataValue(i);null!==a&&o.set(r,a)}}this._bodyContent=o}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const o=this.rootUrl+e;let r=new Rs({encoder:GCe});for(const a of this._query.values())r=a.append(r);let i=new fi;t.accept&&(i=i.append("Accept",t.accept));for(const a of this._header.values())i=a.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set("Content-Type",this._bodyContentType)),new Gl(this.method.toUpperCase(),o,this._bodyContent,{params:r,headers:i,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let LK=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.NetworkBandwidthStatsControllerCountPath="/bandwidth/stats/count";count$Response(e,o){const r=new oo(this.rootUrl,n.NetworkBandwidthStatsControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#t=this.NetworkBandwidthStatsControllerFindLatestPath="/bandwidth/stats/latest";findLatest$Response(e,o){const r=new oo(this.rootUrl,n.NetworkBandwidthStatsControllerFindLatestPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findLatest(e,o){return this.findLatest$Response(e,o).pipe(j(r=>r.body))}static#n=this.NetworkBandwidthStatsControllerFindByIdPath="/bandwidth/stats/{id}";findById$Response(e,o){const r=new oo(this.rootUrl,n.NetworkBandwidthStatsControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe(j(r=>r.body))}static#o=this.NetworkBandwidthStatsControllerFindPath="/bandwidth/stats";find$Response(e,o){const r=new oo(this.rootUrl,n.NetworkBandwidthStatsControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#r=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#i=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),QCe=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.DiskDetailedStatsControllerNetworkBandwidthDetailedStatsPath="/detailed/stats/bandwidth/{filter}";networkBandwidthDetailedStats$Response(e,o){const r=new oo(this.rootUrl,n.DiskDetailedStatsControllerNetworkBandwidthDetailedStatsPath,"get");return e&&(r.path("filter",e.filter,{}),r.query("from",e.from,{}),r.query("to",e.to,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}networkBandwidthDetailedStats(e,o){return this.networkBandwidthDetailedStats$Response(e,o).pipe(j(r=>r.body))}static#t=this.DiskDetailedStatsControllerDiskDetailedStatsPath="/detailed/stats/disk/{filter}";diskDetailedStats$Response(e,o){const r=new oo(this.rootUrl,n.DiskDetailedStatsControllerDiskDetailedStatsPath,"get");return e&&(r.path("filter",e.filter,{}),r.query("from",e.from,{}),r.query("to",e.to,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}diskDetailedStats(e,o){return this.diskDetailedStats$Response(e,o).pipe(j(r=>r.body))}static#n=this.DiskDetailedStatsControllerInstanceDetailedStatsPath="/detailed/stats/instance/{filter}";instanceDetailedStats$Response(e,o){const r=new oo(this.rootUrl,n.DiskDetailedStatsControllerInstanceDetailedStatsPath,"get");return e&&(r.path("filter",e.filter,{}),r.query("from",e.from,{}),r.query("to",e.to,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}instanceDetailedStats(e,o){return this.instanceDetailedStats$Response(e,o).pipe(j(r=>r.body))}static#o=this.DiskDetailedStatsControllerNetworkIpAddressDetailedStatsPath="/detailed/stats/ip/{filter}";networkIpAddressDetailedStats$Response(e,o){const r=new oo(this.rootUrl,n.DiskDetailedStatsControllerNetworkIpAddressDetailedStatsPath,"get");return e&&(r.path("filter",e.filter,{}),r.query("from",e.from,{}),r.query("to",e.to,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}networkIpAddressDetailedStats(e,o){return this.networkIpAddressDetailedStats$Response(e,o).pipe(j(r=>r.body))}static#r=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#i=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),e5e=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.DeveloperControllerCountPath="/developers/count";count$Response(e,o){const r=new oo(this.rootUrl,n.DeveloperControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#t=this.DeveloperControllerFindByIdPath="/developers/{id}";findById$Response(e,o){const r=new oo(this.rootUrl,n.DeveloperControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe(j(r=>r.body))}static#n=this.DeveloperControllerFindPath="/developers";find$Response(e,o){const r=new oo(this.rootUrl,n.DeveloperControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#o=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#r=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),TK=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.DiskStatsControllerCountPath="/disk/stats/count";count$Response(e,o){const r=new oo(this.rootUrl,n.DiskStatsControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#t=this.DiskStatsControllerFindLatestPath="/disk/stats/latest";findLatest$Response(e,o){const r=new oo(this.rootUrl,n.DiskStatsControllerFindLatestPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findLatest(e,o){return this.findLatest$Response(e,o).pipe(j(r=>r.body))}static#n=this.DiskStatsControllerFindByIdPath="/disk/stats/{id}";findById$Response(e,o){const r=new oo(this.rootUrl,n.DiskStatsControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe(j(r=>r.body))}static#o=this.DiskStatsControllerFindPath="/disk/stats";find$Response(e,o){const r=new oo(this.rootUrl,n.DiskStatsControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#r=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#i=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),t5e=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.HealthControllerHealthPath="/health";health$Response(e,o){const r=new oo(this.rootUrl,n.HealthControllerHealthPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}health(e,o){return this.health$Response(e,o).pipe(j(r=>r.body))}static#t=this.HealthControllerLivePath="/live";live$Response(e,o){const r=new oo(this.rootUrl,n.HealthControllerLivePath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}live(e,o){return this.live$Response(e,o).pipe(j(r=>r.body))}static#n=this.HealthControllerReadyPath="/ready";ready$Response(e,o){const r=new oo(this.rootUrl,n.HealthControllerReadyPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}ready(e,o){return this.ready$Response(e,o).pipe(j(r=>r.body))}static#o=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#r=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),RK=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.InstanceStatsControllerCountPath="/instance/stats/count";count$Response(e,o){const r=new oo(this.rootUrl,n.InstanceStatsControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#t=this.InstanceStatsControllerFindLatestPath="/instance/stats/latest";findLatest$Response(e,o){const r=new oo(this.rootUrl,n.InstanceStatsControllerFindLatestPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findLatest(e,o){return this.findLatest$Response(e,o).pipe(j(r=>r.body))}static#n=this.InstanceStatsControllerFindByIdPath="/instance/stats/{id}";findById$Response(e,o){const r=new oo(this.rootUrl,n.InstanceStatsControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe(j(r=>r.body))}static#o=this.InstanceStatsControllerFindPath="/instance/stats";find$Response(e,o){const r=new oo(this.rootUrl,n.InstanceStatsControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#r=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#i=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),n5e=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.NetworkIpaddressStatsControllerCountPath="/ip/stats/count";count$Response(e,o){const r=new oo(this.rootUrl,n.NetworkIpaddressStatsControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#t=this.NetworkIpaddressStatsControllerFindLatestPath="/ip/stats/latest";findLatest$Response(e,o){const r=new oo(this.rootUrl,n.NetworkIpaddressStatsControllerFindLatestPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findLatest(e,o){return this.findLatest$Response(e,o).pipe(j(r=>r.body))}static#n=this.NetworkIpaddressStatsControllerFindByIdPath="/ip/stats/{id}";findById$Response(e,o){const r=new oo(this.rootUrl,n.NetworkIpaddressStatsControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe(j(r=>r.body))}static#o=this.NetworkIpaddressStatsControllerFindPath="/ip/stats";find$Response(e,o){const r=new oo(this.rootUrl,n.NetworkIpaddressStatsControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#r=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#i=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),o5e=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.MarketControllerCountPath="/markets/count";count$Response(e,o){const r=new oo(this.rootUrl,n.MarketControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#t=this.MarketControllerFindByIdPath="/markets/{id}";findById$Response(e,o){const r=new oo(this.rootUrl,n.MarketControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe(j(r=>r.body))}static#n=this.MarketControllerFindPath="/markets";find$Response(e,o){const r=new oo(this.rootUrl,n.MarketControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#o=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#r=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),r5e=(()=>{class n extends Ru{constructor(e,o){super(e,o)}static#e=this.PingControllerPingPath="/ping";ping$Response(e,o){const r=new oo(this.rootUrl,n.PingControllerPingPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}ping(e,o){return this.ping$Response(e,o).pipe(j(r=>r.body))}static#t=this.\u0275fac=function(o){return new(o||n)(Te(dl),Te(q0))};static#n=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),vw=class ax{constructor(t,e,o){this.instanceStats=t,this.diskStats=e,this.networkBandwidthStats=o,this.instanceAndMemoryChart$={title:"INSTANCES & MEMORY",tooltip:"Description (in progress)",id:"vm_chart_1",showTabs:!1,height:270,data:null,data$:null},this.diskAndSpaceChart$={title:"DISKS & STORAGE",tooltip:"Description (in progress)",id:"vm_chart_2",showTabs:!1,height:270,data:null,data$:null},this.ipAddressChart$={title:"IP ADDRESSES",tooltip:"Description (in progress)",id:"vm_chart_3",showTabs:!1,height:270,data:null,data$:null},this.networkUtilizationHistoryChart$={title:"STORE NETWORK UTILIZATION",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_4",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"},this.storageUtilizationHistoryChart$={title:"STORAGE UTILIZATION",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_5",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"},this.instanceAndMemoryHistoryChart$={title:"INSTANCES & MEMORY",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_6",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"}}bindInstanceAndMemoryChart(){this.instanceStats.findLatest(void 0,(new Ii).set(Xi,!0)).pipe(ot(this)).subscribe(t=>{const e={title:{text:"INSTANCES",subText:this.nFormatter(t?.map(o=>parseFloat(o.count?.toString()??"0")).reduce((o,r)=>o+r),0)?.toLocaleString()},subTitle:{text:"MEMORY",subText:this.formatBytes(t?.map(o=>parseFloat(o.memory?.toString()??"0")).reduce((o,r)=>o+r),2)?.toLocaleString()},data:t?.map(o=>({value:o?.count,name:o?.name}))};this.instanceAndMemoryChart$.data$=be(e)})}bindDiskAndSpaceChart(){this.diskStats.findLatest(void 0,(new Ii).set(Xi,!0)).pipe(ot(this)).subscribe(t=>{const e={title:{text:"DISKS",subText:this.nFormatter(t?.map(o=>parseFloat(o.count?.toString()??"0")).reduce((o,r)=>o+r),0)?.toLocaleString()},subTitle:{text:"STORAGE",subText:this.formatBytes(t?.map(o=>parseFloat(o.size?.toString()??"0")).reduce((o,r)=>o+r),2)?.toLocaleString()},data:t?.map(o=>({value:o?.count,name:o?.name}))};this.diskAndSpaceChart$.data$=be(e)})}bindIpAddressChart(){this.networkBandwidthStats.findLatest(void 0,(new Ii).set(Xi,!0)).pipe(ot(this)).subscribe(t=>{const e={title:{text:"IP ADDRESSES",subText:this.nFormatter(t?.map(o=>parseFloat(o.count?.toString()??"0")).reduce((o,r)=>o+r),0)?.toLocaleString()},subTitle:{text:"AVAILABLE",subText:this.nFormatter(t?.map(o=>parseFloat(o.count?.toString()??"0")).reduce((o,r)=>o+r),0)?.toLocaleString()},data:t?.map(o=>({value:o?.count,name:o?.name}))};this.ipAddressChart$.data$=be(e)})}bindNetworkUtilizationHistoryChart(t){this.networkBandwidthStats.find({filter:this.prepareDateFilter(t)},(new Ii).set(Xi,!0)).pipe(ot(this)).subscribe(e=>{const o=ld.groupBy(e,"date"),r=Object.keys(o),i=[];r?.forEach(s=>{i.push({date:s,value:o?.[s]?.map(c=>parseFloat(c.bandwidth?.toString()??"0")).reduce((c,p)=>c+p)})}),this.networkUtilizationHistoryChart$.data$=be({series:[{name:"Bandwidth Usage",data:i}]})})}bindStorageUtilizationHistoryChart(t){this.diskStats.find({filter:this.prepareDateFilter(t)},(new Ii).set(Xi,!0)).pipe(ot(this)).subscribe(e=>{const o=ld.groupBy(e,"date"),r=Object.keys(o),i=[];r?.forEach(s=>{i.push({date:s,value:o?.[s]?.map(c=>parseFloat(c.sizeUsage?.toString()??"0")).reduce((c,p)=>c+p)})}),this.storageUtilizationHistoryChart$.data$=be({series:[{name:"Storage Usage",data:i}]})})}bindInstanceAndMemoryHistoryChart(t){this.instanceStats.find({filter:this.prepareDateFilter(t)},(new Ii).set(Xi,!0)).pipe(ot(this)).subscribe(e=>{const o=ld.groupBy(e,"date"),r=Object.keys(o),i=[];r?.forEach(s=>{i.push({date:s,value:o?.[s]?.map(c=>parseFloat(c.memoryUsage?.toString()??"0")).reduce((c,p)=>c+p)})}),this.instanceAndMemoryHistoryChart$.data$=be({series:[{name:"Memory Usage",data:i}]})})}formatBytes(t,e=2){if(!+t)return"0 Bytes";const r=e<0?0:e,a=Math.floor(Math.log(t)/Math.log(1e3));return`${parseFloat((t/Math.pow(1e3,a)).toFixed(r))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}`}nFormatter(t,e){const i=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}].slice().reverse().find(function(a){return t>=a.value});return i?(t/i.value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+i.symbol:"0"}prepareDateFilter(t){const{from:e,till:o}=t??{from:void 0,till:void 0};let r={};return e&&o&&(r={"filter[where][date][between][0]":new Date(e).toISOString(),"filter[where][date][between][1]":new Date(o).toISOString()}),r}static#e=this.\u0275fac=function(e){return new(e||ax)(Te(RK),Te(TK),Te(LK))};static#t=this.\u0275prov=et({token:ax,factory:ax.\u0275fac})};vw=$e([p0()],vw);let GD=class sx{constructor(){this.transactionList$=null,this.trendChart$={title:"TRANSACTION HISTORY",type:"transaction",yAxisName:"# of Transactions",tooltip:"Description (in progress)"}}bindTransactionList(t){let r=[{key:"status",label:"Status",type:"progress-status",tooltip:"Description (in progress)",width:"90px"},{key:"from",label:"From",type:"hash",trimSize:12,trimSizeMobile:14,link:"/chain/transactions/account",tooltip:"Description (in progress)",width:"140px"},{key:"fromToIcon",label:"",type:"custom-col",width:"36px"},{key:"to",label:"To",type:"hash",trimSize:12,trimSizeMobile:14,link:"/chain/transactions/account",tooltip:"Description (in progress)",width:"140px"},{key:"amount",label:"STORE",type:"short-number",decimal:{count:8,force:!0},valueIcon:"store-logo-only",tooltip:"Description (in progress)",width:"160px"},{key:"feeSurge",label:"\u{1f4c8} Surge",type:"number",symbol:"x",cssClass:"no-space",tooltip:"Description (in progress)",width:"115px"},{key:"fee",label:"Blockspace Fee",valueIcon:"store-logo-only",type:"number",symbol:"000000 bits",tooltip:"Description (in progress)",width:"170px"},{key:"burntFeeWithPercent",label:"\u{1f525} Burnt Fee",type:"string",symbol:"(0.00%)",symbolCssClass:"text-light",tooltip:"Description (in progress)",width:"200px"},{key:"nonce",label:"Nonce",type:"number",tooltip:"Description (in progress)",width:"90px"},{key:"time",label:"Age",type:"time",tooltip:"Description (in progress)",width:"130px"},{key:"signature",label:"Signature",type:"hash",trimSize:12,trimSizeMobile:14,tooltip:"Description (in progress)",width:"140px"},{key:"transactionId",label:"Transaction ID",type:"hash",link:"/chain/transactions/detail",trimSize:12,trimSizeMobile:10,tooltip:"Description (in progress)",width:"180px"}];t?.status&&(r=r?.filter(i=>"status"!==i?.key)),this.transactionList$={title:"TRANSACTIONS",type:"transaction",columns:r,serviceAPIUrl:"/store-chain-api/transactions",map:i=>i?.map(a=>(a.feeSurge=0,a.burntFee=0,a.amount=a?.amount||1,a.nonce=a?.nonce||1,a.status={...a,txnTime:null},a.burntFeeWithPercent="000000 bits",a.fromToIcon={valueIcon:"left-right",valueIconSize:20,type:"string"},a))}}static#e=this.\u0275fac=function(e){return new(e||sx)};static#t=this.\u0275prov=et({token:sx,factory:sx.\u0275fac})};GD=$e([p0()],GD);var i5e=G(8538),y1=G.n(i5e);let SK=!1,DK=!1;const Aw={debug:1,default:2,info:2,warning:3,error:4,off:5};let kK=Aw.default,ZD=null;const EK=function s5e(){try{const n=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch{n.push(t)}}),n.length)throw new Error("missing "+n.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(n){return n.message}return null}();var yw=(()=>(function(n){n.DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF"}(yw||(yw={})),yw))(),ul=(()=>(function(n){n.UNKNOWN_ERROR="UNKNOWN_ERROR",n.NOT_IMPLEMENTED="NOT_IMPLEMENTED",n.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",n.NETWORK_ERROR="NETWORK_ERROR",n.SERVER_ERROR="SERVER_ERROR",n.TIMEOUT="TIMEOUT",n.BUFFER_OVERRUN="BUFFER_OVERRUN",n.NUMERIC_FAULT="NUMERIC_FAULT",n.MISSING_NEW="MISSING_NEW",n.INVALID_ARGUMENT="INVALID_ARGUMENT",n.MISSING_ARGUMENT="MISSING_ARGUMENT",n.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",n.CALL_EXCEPTION="CALL_EXCEPTION",n.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",n.NONCE_EXPIRED="NONCE_EXPIRED",n.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",n.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",n.TRANSACTION_REPLACED="TRANSACTION_REPLACED",n.ACTION_REJECTED="ACTION_REJECTED"}(ul||(ul={})),ul))();const IK="0123456789abcdef";let at=(()=>{class n{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,o){const r=e.toLowerCase();null==Aw[r]&&this.throwArgumentError("invalid log level name","logLevel",e),!(kK>Aw[r])&&console.log.apply(console,o)}debug(...e){this._log(n.levels.DEBUG,e)}info(...e){this._log(n.levels.INFO,e)}warn(...e){this._log(n.levels.WARNING,e)}makeError(e,o,r){if(DK)return this.makeError("censored error",o,{});o||(o=n.errors.UNKNOWN_ERROR),r||(r={});const i=[];Object.keys(r).forEach(p=>{const d=r[p];try{if(d instanceof Uint8Array){let u="";for(let h=0;h>4],u+=IK[15&d[h]];i.push(p+"=Uint8Array(0x"+u+")")}else i.push(p+"="+JSON.stringify(d))}catch{i.push(p+"="+JSON.stringify(r[p].toString()))}}),i.push(`code=${o}`),i.push(`version=${this.version}`);const a=e;let s="";switch(o){case ul.NUMERIC_FAULT:{s="NUMERIC_FAULT";const p=e;switch(p){case"overflow":case"underflow":case"division-by-zero":s+="-"+p;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case ul.CALL_EXCEPTION:case ul.INSUFFICIENT_FUNDS:case ul.MISSING_NEW:case ul.NONCE_EXPIRED:case ul.REPLACEMENT_UNDERPRICED:case ul.TRANSACTION_REPLACED:case ul.UNPREDICTABLE_GAS_LIMIT:s=o}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(e+=" ("+i.join(", ")+")");const c=new Error(e);return c.reason=a,c.code=o,Object.keys(r).forEach(function(p){c[p]=r[p]}),c}throwError(e,o,r){throw this.makeError(e,o,r)}throwArgumentError(e,o,r){return this.throwError(e,n.errors.INVALID_ARGUMENT,{argument:o,value:r})}assert(e,o,r,i){e||this.throwError(o,r,i)}assertArgument(e,o,r,i){e||this.throwArgumentError(o,r,i)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),EK&&this.throwError("platform missing String.prototype.normalize",n.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:EK})}checkSafeUint53(e,o){"number"==typeof e&&(null==o&&(o="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(o,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(o,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,o,r){r=r?": "+r:"",eo&&this.throwError("too many arguments"+r,n.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:o})}checkNew(e,o){(e===Object||null==e)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:o.name})}checkAbstract(e,o){e===o?this.throwError("cannot instantiate abstract class "+JSON.stringify(o.name)+" directly; use a sub-class",n.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:o.name})}static globalLogger(){return ZD||(ZD=new n("logger/5.7.0")),ZD}static setCensorship(e,o){if(!e&&o&&this.globalLogger().throwError("cannot permanently disable censorship",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),SK){if(!e)return;this.globalLogger().throwError("error censorship permanent",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}DK=!!e,SK=!!o}static setLogLevel(e){const o=Aw[e.toLowerCase()];null!=o?kK=o:n.globalLogger().warn("invalid log level - "+e)}static from(e){return new n(e)}}return n.errors=ul,n.levels=yw,n})();const gr=new at("bytes/5.7.0");function NK(n){return!!n.toHexString}function yO(n){return n.slice||(n.slice=function(){const t=Array.prototype.slice.call(arguments);return yO(new Uint8Array(Array.prototype.slice.apply(n,t)))}),n}function KD(n){return yo(n)&&!(n.length%2)||CO(n)}function BK(n){return"number"==typeof n&&n==n&&n%1==0}function CO(n){if(null==n)return!1;if(n.constructor===Uint8Array)return!0;if("string"==typeof n||!BK(n.length)||n.length<0)return!1;for(let t=0;t=256)return!1}return!0}function l1(n,t){if(t||(t={}),"number"==typeof n){gr.checkSafeUint53(n,"invalid arrayify value");const e=[];for(;n;)e.unshift(255&n),n=parseInt(String(n/256));return 0===e.length&&e.push(0),yO(new Uint8Array(e))}if(t.allowMissingPrefix&&"string"==typeof n&&"0x"!==n.substring(0,2)&&(n="0x"+n),NK(n)&&(n=n.toHexString()),yo(n)){let e=n.substring(2);e.length%2&&("left"===t.hexPad?e="0"+e:"right"===t.hexPad?e+="0":gr.throwArgumentError("hex data is odd-length","value",n));const o=[];for(let r=0;rl1(r)),e=t.reduce((r,i)=>r+i.length,0),o=new Uint8Array(e);return t.reduce((r,i)=>(o.set(i,r),r+i.length),0),yO(o)}function wO(n){let t=l1(n);if(0===t.length)return t;let e=0;for(;e>4]+JD[15&r]}return e}return gr.throwArgumentError("invalid hexlify value","value",n)}function hM(n){if("string"!=typeof n)n=s1(n);else if(!yo(n)||n.length%2)return null;return(n.length-2)/2}function Pa(n,t,e){return"string"!=typeof n?n=s1(n):(!yo(n)||n.length%2)&&gr.throwArgumentError("invalid hexData","value",n),t=2+2*t,null!=e?"0x"+n.substring(t,2+2*e):"0x"+n.substring(t)}function Us(n){let t="0x";return n.forEach(e=>{t+=s1(e).substring(2)}),t}function Sz(n){const t=function p5e(n){"string"!=typeof n&&(n=s1(n)),yo(n)||gr.throwArgumentError("invalid hex string","value",n),n=n.substring(2);let t=0;for(;t2*t+2&&gr.throwArgumentError("value out of range","value",arguments[1]);n.length<2*t+2;)n="0x0"+n.substring(2);return n}function Dz(n){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(KD(n)){let e=l1(n);64===e.length?(t.v=27+(e[32]>>7),e[32]&=127,t.r=s1(e.slice(0,32)),t.s=s1(e.slice(32,64))):65===e.length?(t.r=s1(e.slice(0,32)),t.s=s1(e.slice(32,64)),t.v=e[64]):gr.throwArgumentError("invalid signature string","signature",n),t.v<27&&(0===t.v||1===t.v?t.v+=27:gr.throwArgumentError("signature invalid v byte","signature",n)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(e[32]|=128),t._vs=s1(e.slice(32,64))}else{if(t.r=n.r,t.s=n.s,t.v=n.v,t.recoveryParam=n.recoveryParam,t._vs=n._vs,null!=t._vs){const r=function l5e(n,t){(n=l1(n)).length>t&&gr.throwArgumentError("value out of range","value",arguments[0]);const e=new Uint8Array(t);return e.set(n,t-n.length),yO(e)}(l1(t._vs),32);t._vs=s1(r);const i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&gr.throwArgumentError("signature recoveryParam mismatch _vs","signature",n),r[0]&=127;const a=s1(r);null==t.s?t.s=a:t.s!==a&&gr.throwArgumentError("signature v mismatch _vs","signature",n)}null==t.recoveryParam?null==t.v?gr.throwArgumentError("signature missing v and recoveryParam","signature",n):t.recoveryParam=0===t.v||1===t.v?t.v:1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==(0===t.v||1===t.v?t.v:1-t.v%2)&&gr.throwArgumentError("signature recoveryParam mismatch v","signature",n),null!=t.r&&yo(t.r)?t.r=or(t.r,32):gr.throwArgumentError("signature missing or invalid r","signature",n),null!=t.s&&yo(t.s)?t.s=or(t.s,32):gr.throwArgumentError("signature missing or invalid s","signature",n);const e=l1(t.s);e[0]>=128&&gr.throwArgumentError("signature s out of range","signature",n),t.recoveryParam&&(e[0]|=128);const o=s1(e);t._vs&&(yo(t._vs)||gr.throwArgumentError("signature invalid _vs","signature",n),t._vs=or(t._vs,32)),null==t._vs?t._vs=o:t._vs!==o&&gr.throwArgumentError("signature _vs mismatch v and s","signature",n)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}const FK="bignumber/5.7.0";var kz=y1().BN;const Su=new at(FK),QD={},YK=9007199254740991;let HK=!1;class e0{constructor(t,e){t!==QD&&Su.throwError("cannot call constructor directly; use BigNumber.from",at.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Vs(an(this).fromTwos(t))}toTwos(t){return Vs(an(this).toTwos(t))}abs(){return"-"===this._hex[0]?e0.from(this._hex.substring(1)):this}add(t){return Vs(an(this).add(an(t)))}sub(t){return Vs(an(this).sub(an(t)))}div(t){return e0.from(t).isZero()&&fl("division-by-zero","div"),Vs(an(this).div(an(t)))}mul(t){return Vs(an(this).mul(an(t)))}mod(t){const e=an(t);return e.isNeg()&&fl("division-by-zero","mod"),Vs(an(this).umod(e))}pow(t){const e=an(t);return e.isNeg()&&fl("negative-power","pow"),Vs(an(this).pow(e))}and(t){const e=an(t);return(this.isNegative()||e.isNeg())&&fl("unbound-bitwise-result","and"),Vs(an(this).and(e))}or(t){const e=an(t);return(this.isNegative()||e.isNeg())&&fl("unbound-bitwise-result","or"),Vs(an(this).or(e))}xor(t){const e=an(t);return(this.isNegative()||e.isNeg())&&fl("unbound-bitwise-result","xor"),Vs(an(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&fl("negative-width","mask"),Vs(an(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&fl("negative-width","shl"),Vs(an(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&fl("negative-width","shr"),Vs(an(this).shrn(t))}eq(t){return an(this).eq(an(t))}lt(t){return an(this).lt(an(t))}lte(t){return an(this).lte(an(t))}gt(t){return an(this).gt(an(t))}gte(t){return an(this).gte(an(t))}isNegative(){return"-"===this._hex[0]}isZero(){return an(this).isZero()}toNumber(){try{return an(this).toNumber()}catch{fl("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Su.throwError("this platform does not support BigInt",at.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?HK||(HK=!0,Su.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):Su.throwError(16===arguments[0]?"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()":"BigNumber.toString does not accept parameters",at.errors.UNEXPECTED_ARGUMENT,{})),an(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof e0)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e0(QD,Ez(t)):t.match(/^-?[0-9]+$/)?new e0(QD,Ez(new kz(t))):Su.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&fl("underflow","BigNumber.from",t),(t>=YK||t<=-YK)&&fl("overflow","BigNumber.from",t),e0.from(String(t));const e=t;if("bigint"==typeof e)return e0.from(e.toString());if(CO(e))return e0.from(s1(e));if(e)if(e.toHexString){const o=e.toHexString();if("string"==typeof o)return e0.from(o)}else{let o=e._hex;if(null==o&&"BigNumber"===e.type&&(o=e.hex),"string"==typeof o&&(yo(o)||"-"===o[0]&&yo(o.substring(1))))return e0.from(o)}return Su.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function Ez(n){if("string"!=typeof n)return Ez(n.toString(16));if("-"===n[0])return"-"===(n=n.substring(1))[0]&&Su.throwArgumentError("invalid hex","value",n),"0x00"===(n=Ez(n))?n:"-"+n;if("0x"!==n.substring(0,2)&&(n="0x"+n),"0x"===n)return"0x00";for(n.length%2&&(n="0x0"+n.substring(2));n.length>4&&"0x00"===n.substring(0,4);)n="0x"+n.substring(4);return n}function Vs(n){return e0.from(Ez(n))}function an(n){const t=e0.from(n).toHexString();return new kz("-"===t[0]?"-"+t.substring(3):t.substring(2),16)}function fl(n,t,e){const o={fault:n,operation:t};return null!=e&&(o.value=e),Su.throwError(n,at.errors.NUMERIC_FAULT,o)}const ps=new at(FK),Iz={},XK=e0.from(0),jK=e0.from(-1);function UK(n,t,e,o){const r={fault:t,operation:e};return void 0!==o&&(r.value=o),ps.throwError(n,at.errors.NUMERIC_FAULT,r)}let Nz="0";for(;Nz.length<256;)Nz+=Nz;function e8(n){if("number"!=typeof n)try{n=e0.from(n).toNumber()}catch{}return"number"==typeof n&&n>=0&&n<=256&&!(n%1)?"1"+Nz.substring(0,n):ps.throwArgumentError("invalid decimal size","decimals",n)}function Cw(n,t){null==t&&(t=0);const e=e8(t),o=(n=e0.from(n)).lt(XK);o&&(n=n.mul(jK));let r=n.mod(e).toString();for(;r.length2&&ps.throwArgumentError("too many decimal points","value",n);let i=r[0],a=r[1];for(i||(i="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>e.length-1&&UK("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==t[a]?c:(typeof t[a]!==s&&ps.throwArgumentError("invalid fixed format ("+a+" not "+s+")","format."+a,t[a]),t[a]);e=i("signed","boolean",e),o=i("width","number",o),r=i("decimals","number",r)}return o%8&&ps.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",o),r>80&&ps.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new PO(Iz,e,o,r)}}class ji{constructor(t,e,o,r){t!==Iz&&ps.throwError("cannot use FixedNumber constructor; use FixedNumber.from",at.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=e,this._value=o,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&ps.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=Pd(this._value,this.format.decimals),o=Pd(t._value,t.format.decimals);return ji.fromValue(e.add(o),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=Pd(this._value,this.format.decimals),o=Pd(t._value,t.format.decimals);return ji.fromValue(e.sub(o),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=Pd(this._value,this.format.decimals),o=Pd(t._value,t.format.decimals);return ji.fromValue(e.mul(o).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=Pd(this._value,this.format.decimals),o=Pd(t._value,t.format.decimals);return ji.fromValue(e.mul(this.format._multiplier).div(o),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=ji.from(t[0],this.format);const o=!t[1].match(/^(0*)$/);return this.isNegative()&&o&&(e=e.subUnsafe(VK.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=ji.from(t[0],this.format);const o=!t[1].match(/^(0*)$/);return!this.isNegative()&&o&&(e=e.addUnsafe(VK.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&ps.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const o=ji.from("1"+Nz.substring(0,t),this.format),r=f5e.toFormat(this.format);return this.mulUnsafe(o).addUnsafe(r).floor().divUnsafe(o)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&ps.throwArgumentError("invalid byte width","width",t),or(e0.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return ji.fromString(this._value,t)}static fromValue(t,e,o){return null==o&&null!=e&&!function d5e(n){return null!=n&&(e0.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&!!n.match(/^-?[0-9]+$/)||yo(n)||"bigint"==typeof n||CO(n))}(e)&&(o=e,e=null),null==e&&(e=0),null==o&&(o="fixed"),ji.fromString(Cw(t,e),PO.from(o))}static fromString(t,e){null==e&&(e="fixed");const o=PO.from(e),r=Pd(t,o.decimals);!o.signed&&r.lt(XK)&&UK("unsigned value cannot be negative","overflow","value",t);let i=null;o.signed?i=r.toTwos(o.width).toHexString():(i=r.toHexString(),i=or(i,o.width/8));const a=Cw(r,o.decimals);return new ji(Iz,i,a,o)}static fromBytes(t,e){null==e&&(e="fixed");const o=PO.from(e);if(l1(t).length>o.width/8)throw new Error("overflow");let r=e0.from(t);o.signed&&(r=r.fromTwos(o.width));const i=r.toTwos((o.signed?0:1)+o.width).toHexString(),a=Cw(r,o.decimals);return new ji(Iz,i,a,o)}static from(t,e){if("string"==typeof t)return ji.fromString(t,e);if(CO(t))return ji.fromBytes(t,e);try{return ji.fromValue(t,0,e)}catch(o){if(o.code!==at.errors.INVALID_ARGUMENT)throw o}return ps.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const VK=ji.from(1),f5e=ji.from("0.5"),$K=new at("units/5.7.0"),GK=["wei","kwei","mwei","gwei","szabo","finney","ether"];function ZK(n,t){if("string"==typeof t){const e=GK.indexOf(t);-1!==e&&(t=3*e)}return Cw(n,t??18)}function KK(n,t){if("string"!=typeof n&&$K.throwArgumentError("value must be a string","value",n),"string"==typeof t){const e=GK.indexOf(t);-1!==e&&(t=3*e)}return Pd(n,t??18)}function xO(n){return ZK(n,18)}var g5e=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})};const ww=new at("properties/5.7.0");function O1(n,t,e){Object.defineProperty(n,t,{enumerable:!0,value:e,writable:!1})}function Bz(n,t){for(let e=0;e<32;e++){if(n[t])return n[t];if(!n.prototype||"object"!=typeof n.prototype)break;n=Object.getPrototypeOf(n.prototype).constructor}return null}function Ui(n){return g5e(this,void 0,void 0,function*(){const t=Object.keys(n).map(o=>Promise.resolve(n[o]).then(i=>({key:o,value:i})));return(yield Promise.all(t)).reduce((o,r)=>(o[r.key]=r.value,o),{})})}function $s(n){const t={};for(const e in n)t[e]=n[e];return t}const m5e={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function JK(n){if(null==n||m5e[typeof n])return!0;if(Array.isArray(n)||"object"==typeof n){if(!Object.isFrozen(n))return!1;const t=Object.keys(n);for(let e=0;epf(t)));if("object"==typeof n){const t={};for(const e in n){const o=n[e];void 0!==o&&O1(t,e,pf(o))}return t}return ww.throwArgumentError("Cannot deepCopy "+typeof n,"object",n)}function pf(n){return _5e(n)}class z5e{constructor(t){for(const e in t)this[e]=pf(t[e])}}const Pw="abi/5.7.0",t8=new at(Pw);class Du{constructor(t,e,o,r){this.name=t,this.type=e,this.localName=o,this.dynamic=r}_throwError(t,e){t8.throwArgumentError(t,this.localName,e)}}class n8{constructor(t){O1(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return Us(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(fp(t._data))}writeBytes(t){let e=l1(t);const o=e.length%this.wordSize;return o&&(e=fp([e,this._padding.slice(o)])),this._writeData(e)}_getValue(t){let e=l1(e0.from(t));return e.length>this.wordSize&&t8.throwError("value out-of-bounds",at.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=fp([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class xw{constructor(t,e,o,r){O1(this,"_data",l1(t)),O1(this,"wordSize",e||32),O1(this,"_coerceFunc",o),O1(this,"allowLoose",r),this._offset=0}get data(){return s1(this._data)}get consumed(){return this._offset}static coerce(t,e){let o=t.match("^u?int([0-9]+)$");return o&&parseInt(o[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):xw.coerce(t,e)}_peekBytes(t,e,o){let r=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&o&&this._offset+e<=this._data.length?r=e:t8.throwError("data out-of-bounds",at.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(t){return new xw(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let o=this._peekBytes(0,t,!!e);return this._offset+=o.length,o.slice(0,t)}readValue(){return e0.from(this.readBytes(this.wordSize))}}var v5e=G(4237),A5e=G.n(v5e);function Vi(n){return"0x"+A5e().keccak_256(l1(n))}const xd=new at("rlp/5.7.0");function QK(n){const t=[];for(;n;)t.unshift(255&n),n>>=8;return t}function eJ(n,t,e){let o=0;for(let r=0;rt+1+o&&xd.throwError("child data too short",at.errors.BUFFER_OVERRUN,{})}return{consumed:1+o,result:r}}function oJ(n,t){if(0===n.length&&xd.throwError("data too short",at.errors.BUFFER_OVERRUN,{}),n[t]>=248){const e=n[t]-247;t+1+e>n.length&&xd.throwError("data short segment too short",at.errors.BUFFER_OVERRUN,{});const o=eJ(n,t+1,e);return t+1+e+o>n.length&&xd.throwError("data long segment too short",at.errors.BUFFER_OVERRUN,{}),nJ(n,t,t+1+e,e+o)}if(n[t]>=192){const e=n[t]-192;return t+1+e>n.length&&xd.throwError("data array too short",at.errors.BUFFER_OVERRUN,{}),nJ(n,t,t+1,e)}if(n[t]>=184){const e=n[t]-183;t+1+e>n.length&&xd.throwError("data array too short",at.errors.BUFFER_OVERRUN,{});const o=eJ(n,t+1,e);return t+1+e+o>n.length&&xd.throwError("data array too short",at.errors.BUFFER_OVERRUN,{}),{consumed:1+e+o,result:s1(n.slice(t+1+e,t+1+e+o))}}if(n[t]>=128){const e=n[t]-128;return t+1+e>n.length&&xd.throwError("data too short",at.errors.BUFFER_OVERRUN,{}),{consumed:1+e,result:s1(n.slice(t+1,t+1+e))}}return{consumed:1,result:s1(n[t])}}function o8(n){const t=l1(n),e=oJ(t,0);return e.consumed!==t.length&&xd.throwArgumentError("invalid rlp data","data",n),e.result}const df=new at("address/5.7.0");function rJ(n){yo(n,20)||df.throwArgumentError("invalid address","address",n);const t=(n=n.toLowerCase()).substring(2).split(""),e=new Uint8Array(40);for(let r=0;r<40;r++)e[r]=t[r].charCodeAt(0);const o=l1(Vi(e));for(let r=0;r<40;r+=2)o[r>>1]>>4>=8&&(t[r]=t[r].toUpperCase()),(15&o[r>>1])>=8&&(t[r+1]=t[r+1].toUpperCase());return"0x"+t.join("")}const r8={};for(let n=0;n<10;n++)r8[String(n)]=String(n);for(let n=0;n<26;n++)r8[String.fromCharCode(65+n)]=String(10+n);const iJ=Math.floor(function P5e(n){return Math.log10?Math.log10(n):Math.log(n)/Math.LN10}(9007199254740991));function $i(n){let t=null;if("string"!=typeof n&&df.throwArgumentError("invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==n.substring(0,2)&&(n="0x"+n),t=rJ(n),n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==n&&df.throwArgumentError("bad address checksum","address",n);else if(n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(n.substring(2,4)!==function aJ(n){let t=(n=(n=n.toUpperCase()).substring(4)+n.substring(0,2)+"00").split("").map(o=>r8[o]).join("");for(;t.length>=iJ;){let o=t.substring(0,iJ);t=parseInt(o,10)%97+t.substring(o.length)}let e=String(98-parseInt(t,10)%97);for(;e.length<2;)e="0"+e;return e}(n)&&df.throwArgumentError("bad icap checksum","address",n),t=function u5e(n){return new kz(n,36).toString(16)}(n.substring(4));t.length<40;)t="0"+t;t=rJ("0x"+t)}else df.throwArgumentError("invalid address","address",n);return t}class q5e extends Du{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=$i(e)}catch(o){this._throwError(o.message,e)}return t.writeValue(e)}decode(t){return $i(or(t.readValue().toHexString(),20))}}class W5e extends Du{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const qO=new at(Pw);function sJ(n,t,e){let o=null;if(Array.isArray(e))o=e;else if(e&&"object"==typeof e){let c={};o=t.map(p=>{const d=p.localName;return d||qO.throwError("cannot encode object for signature with missing names",at.errors.INVALID_ARGUMENT,{argument:"values",coder:p,value:e}),c[d]&&qO.throwError("cannot encode object for signature with duplicate names",at.errors.INVALID_ARGUMENT,{argument:"values",coder:p,value:e}),c[d]=!0,e[d]})}else qO.throwArgumentError("invalid tuple value","tuple",e);t.length!==o.length&&qO.throwArgumentError("types/value length mismatch","tuple",e);let r=new n8(n.wordSize),i=new n8(n.wordSize),a=[];t.forEach((c,p)=>{let d=o[p];if(c.dynamic){let u=i.length;c.encode(i,d);let h=r.writeUpdatableValue();a.push(M=>{h(M+u)})}else c.encode(r,d)}),a.forEach(c=>{c(r.length)});let s=n.appendWriter(r);return s+=n.appendWriter(i),s}function cJ(n,t){let e=[],o=n.subReader(0);t.forEach(i=>{let a=null;if(i.dynamic){let s=n.readValue(),c=o.subReader(s.toNumber());try{a=i.decode(c)}catch(p){if(p.code===at.errors.BUFFER_OVERRUN)throw p;a=p,a.baseType=i.name,a.name=i.localName,a.type=i.type}}else try{a=i.decode(n)}catch(s){if(s.code===at.errors.BUFFER_OVERRUN)throw s;a=s,a.baseType=i.name,a.name=i.localName,a.type=i.type}null!=a&&e.push(a)});const r=t.reduce((i,a)=>{const s=a.localName;return s&&(i[s]||(i[s]=0),i[s]++),i},{});t.forEach((i,a)=>{let s=i.localName;if(!s||1!==r[s]||("length"===s&&(s="_length"),null!=e[s]))return;const c=e[a];c instanceof Error?Object.defineProperty(e,s,{enumerable:!0,get:()=>{throw c}}):e[s]=c});for(let i=0;i{throw a}})}return Object.freeze(e)}class L5e extends Du{constructor(t,e,o){super("array",t.type+"["+(e>=0?e:"")+"]",o,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let o=0;ot._data.length&&qO.throwError("insufficient data length",at.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let o=[];for(let r=0;r(function(n){n.current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD"}(WO||(WO={})),WO))(),Gs=(()=>(function(n){n.UNEXPECTED_CONTINUE="unexpected continuation byte",n.BAD_PREFIX="bad codepoint prefix",n.OVERRUN="string overrun",n.MISSING_CONTINUE="missing continuation byte",n.OUT_OF_RANGE="out of UTF-8 range",n.UTF16_SURROGATE="UTF-16 surrogate",n.OVERLONG="overlong representation"}(Gs||(Gs={})),Gs))();function uJ(n,t,e,o,r){if(n===Gs.BAD_PREFIX||n===Gs.UNEXPECTED_CONTINUE){let i=0;for(let a=t+1;a>6==2;a++)i++;return i}return n===Gs.OVERRUN?e.length-t-1:0}const H5e=Object.freeze({error:function F5e(n,t,e,o,r){return dJ.throwArgumentError(`invalid codepoint at offset ${t}; ${n}`,"bytes",e)},ignore:uJ,replace:function Y5e(n,t,e,o,r){return n===Gs.OVERLONG?(o.push(r),0):(o.push(65533),uJ(n,t,e))}});function i8(n,t){null==t&&(t=H5e.error),n=l1(n);const e=[];let o=0;for(;o>7)){e.push(r);continue}let i=null,a=null;if(192==(224&r))i=1,a=127;else if(224==(240&r))i=2,a=2047;else{if(240!=(248&r)){o+=t(128==(192&r)?Gs.UNEXPECTED_CONTINUE:Gs.BAD_PREFIX,o-1,n,e);continue}i=3,a=65535}if(o-1+i>=n.length){o+=t(Gs.OVERRUN,o-1,n,e);continue}let s=r&(1<<8-i-1)-1;for(let c=0;c1114111){o+=t(Gs.OUT_OF_RANGE,o-1-i,n,e,s);continue}if(s>=55296&&s<=57343){o+=t(Gs.UTF16_SURROGATE,o-1-i,n,e,s);continue}if(s<=a){o+=t(Gs.OVERLONG,o-1-i,n,e,s);continue}e.push(s)}}return e}function qd(n,t=WO.current){t!=WO.current&&(dJ.checkNormalize(),n=n.normalize(t));let e=[];for(let o=0;o>6|192),e.push(63&r|128);else if(55296==(64512&r)){o++;const i=n.charCodeAt(o);if(o>=n.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const a=65536+((1023&r)<<10)+(1023&i);e.push(a>>18|240),e.push(a>>12&63|128),e.push(a>>6&63|128),e.push(63&a|128)}else e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)}return l1(e)}function Fz(n,t){return function X5e(n){return n.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))).join("")}(i8(n,t))}class U5e extends lJ{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,qd(e))}decode(t){return Fz(super.decode(t))}}class Ww extends Du{constructor(t,e){let o=!1;const r=[];t.forEach(a=>{a.dynamic&&(o=!0),r.push(a.type)}),super("tuple","tuple("+r.join(",")+")",e,o),this.coders=t}defaultValue(){const t=[];this.coders.forEach(o=>{t.push(o.defaultValue())});const e=this.coders.reduce((o,r)=>{const i=r.localName;return i&&(o[i]||(o[i]=0),o[i]++),o},{});return this.coders.forEach((o,r)=>{let i=o.localName;!i||1!==e[i]||("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[r]))}),Object.freeze(t)}encode(t,e){return sJ(t,this.coders,e)}decode(t){return t.coerce(this.name,cJ(t,this.coders))}}const hn=new at(Pw),MM={};let fJ={calldata:!0,memory:!0,storage:!0},V5e={calldata:!0,memory:!0};function Lw(n,t){if("bytes"===n||"string"===n){if(fJ[t])return!0}else if("address"===n){if("payable"===t)return!0}else if((n.indexOf("[")>=0||"tuple"===n)&&V5e[t])return!0;return(fJ[t]||"payable"===t)&&hn.throwArgumentError("invalid modifier","name",t),!1}function Tw(n,t){for(let e in t)O1(n,e,t[e])}const uo=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),G5e=new RegExp(/^(.*)\[([0-9]*)\]$/);class Gi{constructor(t,e){t!==MM&&hn.throwError("use fromString",at.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Tw(this,e);let o=this.type.match(G5e);Tw(this,o?{arrayLength:parseInt(o[2]||"-1"),arrayChildren:Gi.fromObject({type:o[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=uo.sighash),uo[t]||hn.throwArgumentError("invalid format type","format",t),t===uo.json){let o={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(o.indexed=this.indexed),this.components&&(o.components=this.components.map(r=>JSON.parse(r.format(t)))),JSON.stringify(o)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==uo.sighash&&(e+=this.type),e+="("+this.components.map(o=>o.format(t)).join(t===uo.full?", ":",")+")"):e+=this.type,t!==uo.sighash&&(!0===this.indexed&&(e+=" indexed"),t===uo.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?Gi.fromString(t,e):Gi.fromObject(t)}static fromObject(t){return Gi.isParamType(t)?t:new Gi(MM,{name:t.name||null,type:LO(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(Gi.fromObject):null})}static fromString(t,e){return function o(r){return Gi.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}(function $5e(n,t){let e=n;function o(s){hn.throwArgumentError(`unexpected character at position ${s}`,"param",n)}function r(s){let c={type:"",name:"",parent:s,state:{allowType:!0}};return t&&(c.indexed=!1),c}n=n.replace(/\s/g," ");let i={type:"",name:"",state:{allowType:!0}},a=i;for(let s=0;sthis._getCoder(o)),t.name);case"":return new D5e(t.name)}let e=t.type.match(Q5e);if(e){let o=parseInt(e[2]||"256");return(0===o||o>256||o%8!=0)&&Rw.throwArgumentError("invalid "+e[1]+" bit length","param",t),new N5e(o/8,"int"===e[1],t.name)}if(e=t.type.match(J5e),e){let o=parseInt(e[1]);return(0===o||o>32)&&Rw.throwArgumentError("invalid bytes length","param",t),new S5e(o,t.name)}return Rw.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new xw(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new n8(this._getWordSize())}getDefaultValue(t){const e=t.map(r=>this._getCoder(Gi.from(r)));return new Ww(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Rw.throwError("types/values length mismatch",at.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const o=t.map(a=>this._getCoder(Gi.from(a))),r=new Ww(o,"_"),i=this._getWriter();return r.encode(i,e),i.data}decode(t,e,o){const r=t.map(a=>this._getCoder(Gi.from(a)));return new Ww(r,"_").decode(this._getReader(l1(e),o))}};var Fo,TO=(()=>(function(n){n.BuyViews="buy-views"}(TO||(TO={})),TO))();!function(n){let t;var o;let e;(o=t=n.Color||(n.Color={})).White="White",o.Black="Black",o.Gold="Gold",o.Silver="Silver",function(o){o.Left="Left",o.Right="Right",o.Middle="Middle",o.Top="Top",o.Bottom="Bottom"}(e=n.Placement||(n.Placement={}))}(Fo||(Fo={}));let Sw=class cx{constructor(t){this.nftPayFormDummy={name:"Title in 100 characters or less",description:"Lorem Ipsum in 1,000 characters or less",supply:1,supplyIndex:1,mintPrice:1,incentive:{totalDiscountAmount:.0012734123805000002,storeStamp:{color:Fo.Color.Black,placement:Fo.Placement.Left,discountPercentage:.1,discount:.0006367061902500001},nftAddressStamp:{color:Fo.Color.Black,placement:Fo.Placement.Middle,discountPercentage:.05,discount:.00031835309512500006},supplyCountStamp:{color:Fo.Color.Silver,placement:Fo.Placement.Right,discountPercentage:.05,discount:.00031835309512500006}},image:"../../assets/nft/store-it.jpg",size:{metadata:558243,content:54e3},cloudIdViewsTracking:{maxViews:Xe.maxViewsForNFT,currentViews:0},fees:{storeCloudVMFee:0,storeChainVMFee:0,totalFees:0,platformFee:0,costOfCompute:0,permanentStorage:0,totalDiscountAmount:0},prices:{costOfCompute:0,permanentStorage:0,productionCostYearly:0,platformFeePercentage:Xe.platformFee,token:{}},id:"showcase",network:rn.STORE},this.whiteIncentive={totalDiscountAmount:.0012734123805000002,storeStamp:{color:Fo.Color.White,placement:Fo.Placement.Left,discountPercentage:.1,discount:.0006367061902500001},nftAddressStamp:{color:Fo.Color.White,placement:Fo.Placement.Middle,discountPercentage:.05,discount:.00031835309512500006},supplyCountStamp:{color:Fo.Color.Gold,placement:Fo.Placement.Right,discountPercentage:.05,discount:.00031835309512500006}},this.prepareDummyNFTList(t??4)}prepareDummyNFTList(t){const e=JSON.parse(JSON.stringify(Array(6).fill(this.nftPayFormDummy)));e[0].supply=1,e[0].mintPrice=5,e[0].image="../../assets/nft/nft-1.jpg",e[1].supply=3,e[1].mintPrice=4,e[1].image="../../assets/nft/nft-2.jpg",e[1].incentive=this.whiteIncentive,e[2].supply=1,e[2].mintPrice=3,e[2].image="../../assets/nft/nft-3.jpg",e[3].supply=10,e[3].mintPrice=2,e[3].image="../../assets/nft/nft-4.jpg",e[3].incentive=this.whiteIncentive,e[4].supply=1,e[4].mintPrice=1,e[4].image="../../assets/nft/nft-11.jpg",e[4].incentive=this.whiteIncentive,e[5].supply=1,e[5].mintPrice=.5,e[5].image="../../assets/nft/store-it.jpg",e[5].incentive=this.whiteIncentive,this.latestNFTStored=e?.slice(0,t);const o=JSON.parse(JSON.stringify(Array(6).fill(this.nftPayFormDummy)));o[0].supplyIndex=3,o[0].supply=5,o[0].mintPrice=5,o[0].lastSale=4,o[0].image="../../assets/nft/nft-5.jpg",o[1].supplyIndex=1,o[1].supply=1,o[1].mintPrice=4,o[1].lastSale=3,o[1].image="../../assets/nft/nft-6.jpg",o[1].incentive=this.whiteIncentive,o[2].supplyIndex=26,o[2].supply=40,o[2].mintPrice=3,o[2].lastSale=2,o[2].image="../../assets/nft/nft-7.jpg",o[3].supplyIndex=4,o[3].supply=10,o[3].mintPrice=2,o[3].lastSale=1,o[3].image="../../assets/nft/nft-8.jpg",o[3].incentive=this.whiteIncentive,o[4].supplyIndex=1,o[4].supply=1,o[4].mintPrice=1,o[4].image="../../assets/nft/nft-9.jpg",o[5].supplyIndex=1,o[5].supply=1,o[5].mintPrice=.5,o[5].image="../../assets/nft/nft-10.jpg",this.latestNFTTraded=o?.slice(0,t);for(let r=1;r0?e:{}}prepareAIAttributionOptions(t){const e={show:!1,name:"A.I. ATTRIBUTION",reverseFlex:!0,groupedItems:[]};if(t?.aiAssisted){const o=this.prepareAIAssistedEconomy(t?.aiAssisted)?.filter(r=>r);e.groupedItems=o}return e?.groupedItems?.length>0?e:{}}prepareHumanAttributionOptions(t){const e={show:!1,name:"HUMAN ATTRIBUTION",reverseFlex:!0,groupedItems:[]};if(t?.attribution){const o=this.prepareAttributionEconomy(t?.attribution)?.filter(r=>r);e.groupedItems=o}return e?.groupedItems?.length>0?e:{}}prepareAIAssistedEconomy(t){const e=[],o=[],r=[];let i=1;return t?.rows.forEach(a=>{a?.basicInfo?.name&&a?.basicInfo?.createdByAI&&(e.push(be({label:a.basicInfo.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),e.push(be({label:"% created by A.I.",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:a.basicInfo.createdByAI}))),a.economics?.address&&a.economics?.ownedByAI&&a.economics?.royaltyToAI&&(o.push(be({label:a.basicInfo.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),o.push(be({label:"Ethereum Address",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"hash",value:a.economics.address,link:`${Xe.wallet.etherscanURL}/address/${a.economics.address}`,cssClass:"text-black-light",externalLink:!0,copy:!0,trimSize:26,trimSizeMobile:25,hideBorderBottom:!0})),o.push(be({label:"% this I.P. is owned by A.I.",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:a.economics.ownedByAI,hideBorderBottom:!0})),o.push(be({label:"% royalties owed to this A.I.",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:a.economics.royaltyToAI}))),i+=1}),e?.length>0&&r.push({show:!0,name:"Basic Info",indent:1,items$:e,tooltip:"Detail"}),o?.length>0&&r.push({show:!0,name:"Economics",indent:1,items$:o,tooltip:"Detail"}),r}prepareAttributionEconomy(t){const e=[],o=[],r=[];let i=1;t.createdBy.forEach(u=>{u?.name&&u?.address&&u?.royalty&&(e.push(be({label:u.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),e.push(be({label:"Ethereum Address",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:u.address,link:`${Xe.wallet.etherscanURL}/address/${u.address}`,externalLink:!0,copy:!0,trimSize:26,trimSizeMobile:25,hideBorderBottom:!0})),e.push(be({label:"% Royalties Owed",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:u.royalty})),i+=1)});let a=1;t.whoOwnsIt.forEach(u=>{u?.name&&u?.address&&u?.royalty&&(o.push(be({label:u.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),o.push(be({label:"Ethereum Address",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:u.address,link:`${Xe.wallet.etherscanURL}/address/${u.address}`,externalLink:!0,copy:!0,trimSize:26,trimSizeMobile:25,hideBorderBottom:!0})),o.push(be({label:"% Royalties Owed",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:u.royalty})),a+=1)});let s=1;return t.whoIsInIt.forEach(u=>{u?.name&&u?.address&&u?.royalty&&(r.push(be({label:u.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),r.push(be({label:"Ethereum Address",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:u.address,link:`${Xe.wallet.etherscanURL}/address/${u.address}`,externalLink:!0,copy:!0,trimSize:26,trimSizeMobile:25,hideBorderBottom:!0})),r.push(be({label:"% Royalties Owed",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:u.royalty})),s+=1)}),[o?.length>0?{show:!0,name:"Who owns this data or I.P.",indent:1,items$:o,tooltip:"Detail"}:void 0,e?.length>0?{show:!0,name:"Who created this data or I.P.",indent:1,items$:e,tooltip:"Detail"}:void 0,r?.length>0?{show:!0,name:"Who is in this data or I.P.",indent:1,items$:r,tooltip:"Detail"}:void 0]}prepareIPRightEconomy(t){const e=[],o=[];if(t.creativeCommons&&e.push(be({label:this.permanentStorageEconomy.ipRights.creativeCommons.title,tooltip:this.permanentStorageEconomy.ipRights.creativeCommons.detail??"Description (in progress)",type:"string",cssClass:"text-black-light",value:"Enabled"})),t.nonExclusiveCommercialRights){const i=[];t.nonExclusiveCommercialRights.revenueLimit&&i.push(be({label:this.permanentStorageEconomy.ipRights.nonExclusiveCommercialRights.revenueLimit.title,tooltip:"Description (in progress)",type:"currency",cssClass:"text-black-light",value:t.nonExclusiveCommercialRights.revenueLimit})),t.nonExclusiveCommercialRights.venueLimit&&i.push(be({label:this.permanentStorageEconomy.ipRights.nonExclusiveCommercialRights.venueLimit.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.nonExclusiveCommercialRights.venueLimit})),t.nonExclusiveCommercialRights.periodLimit&&i.push(be({label:this.permanentStorageEconomy.ipRights.nonExclusiveCommercialRights.periodLimit.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.nonExclusiveCommercialRights.periodLimit})),t.nonExclusiveCommercialRights.hateSpeechTermination&&i.push(be({label:this.permanentStorageEconomy.ipRights.nonExclusiveCommercialRights.hateSpeechTermination?.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"Enabled"})),o.push({show:!0,name:this.permanentStorageEconomy.ipRights.nonExclusiveCommercialRights.title,indent:2,items$:i,tooltip:this.permanentStorageEconomy.ipRights.nonExclusiveCommercialRights.detail})}if(t.exclusiveCommercialRights){const i=[];t.exclusiveCommercialRights.revenueLimit&&i.push(be({label:this.permanentStorageEconomy.ipRights.exclusiveCommercialRights.revenueLimit.title,tooltip:"Description (in progress)",type:"currency",cssClass:"text-black-light",value:t.exclusiveCommercialRights.revenueLimit})),t.exclusiveCommercialRights.venueLimit&&i.push(be({label:this.permanentStorageEconomy.ipRights.exclusiveCommercialRights.venueLimit.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.exclusiveCommercialRights.venueLimit})),t.exclusiveCommercialRights.periodLimit&&i.push(be({label:this.permanentStorageEconomy.ipRights.exclusiveCommercialRights.periodLimit.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.exclusiveCommercialRights.periodLimit})),o.push({show:!0,name:this.permanentStorageEconomy.ipRights.exclusiveCommercialRights.title,indent:2,items$:i,tooltip:this.permanentStorageEconomy.ipRights.exclusiveCommercialRights.detail})}if(t.personUseOnly){const i=[];t.personUseOnly.displayRightsLimits&&i.push(be({label:this.permanentStorageEconomy.ipRights.personUseOnly.displayRightsLimits.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.personUseOnly.displayRightsLimits})),t.personUseOnly.hateSpeechTermination&&i.push(be({label:this.permanentStorageEconomy.ipRights.personUseOnly.hateSpeechTermination.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.personUseOnly.hateSpeechTermination})),o.push({show:!0,name:this.permanentStorageEconomy.ipRights.personUseOnly.title,indent:2,items$:i,tooltip:this.permanentStorageEconomy.ipRights.personUseOnly.detail})}return{show:!0,name:this.permanentStorageEconomy.ipRights.title,indent:1,items$:e,groupedItems:o,tooltip:this.permanentStorageEconomy.ipRights.detail}}preparePayPerViewEconomy(t){const o=[];if(t.payWall){const i=[];if(t.payWall.singleTicket){const a=this.sharedStatsService.convertUSDIntoRates(t.payWall.singleTicket);i.push(be({label:this.permanentStorageEconomy.payPerView.payWall.singleTicket.title,tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}))}if(t.payWall.threeDaysRental){const a=this.sharedStatsService.convertUSDIntoRates(t.payWall.threeDaysRental);i.push(be({label:this.permanentStorageEconomy.payPerView.payWall.threeDaysRental.title,tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}))}if(t.payWall.lifeTimeAccess){const a=this.sharedStatsService.convertUSDIntoRates(t.payWall.lifeTimeAccess);i.push(be({label:this.permanentStorageEconomy.payPerView.payWall.lifeTimeAccess.title,tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}))}o.push({show:!0,name:this.permanentStorageEconomy.payPerView.payWall.title,indent:2,items$:i})}return{show:!0,name:this.permanentStorageEconomy.payPerView.title,indent:1,items$:[],groupedItems:o,tooltip:this.permanentStorageEconomy.payPerView.detail}}prepareDistributionEconomy(t){const o=[];if(t.shareTo={facebook:!0,twitter:!0},t.fund={distributeTo:{facebookAmount:5,twitterAmount:5},amount:10},t.shareTo){const i=[];t.shareTo.facebook&&i.push(be({label:this.permanentStorageEconomy.distribution.shareTo.facebook.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",icon:"facebook",value:"Enabled"})),t.shareTo.twitter&&i.push(be({label:this.permanentStorageEconomy.distribution.shareTo.twitter.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",icon:"x",value:"Enabled"})),o.push({show:!0,name:this.permanentStorageEconomy.distribution.shareTo.title,indent:2,items$:i})}if(t.fund){const i=[];if(t.fund.amount){const a=this.sharedStatsService.convertUSDIntoRates(t.fund.amount);i.push(be({label:this.permanentStorageEconomy.distribution.fund.amount.title,tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}))}if(t.fund.distributeTo.facebookAmount){const a=this.sharedStatsService.convertUSDIntoRates(t.fund.distributeTo.facebookAmount);i.push(be({label:this.permanentStorageEconomy.distribution.fund.distributeTo.facebookAmount.title,tooltip:this.permanentStorageEconomy.distribution.fund.distributeTo.facebookAmount.detail??"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",icon:"facebook",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"string",preSymbol:" | ",value:"Per 1,000 Followers",cssClass:"text-black-light"}}}))}if(t.fund.distributeTo.twitterAmount){const a=this.sharedStatsService.convertUSDIntoRates(t.fund.distributeTo.twitterAmount);i.push(be({label:this.permanentStorageEconomy.distribution.fund.distributeTo.twitterAmount.title,tooltip:this.permanentStorageEconomy.distribution.fund.distributeTo.twitterAmount.detail??"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",icon:"x",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"string",preSymbol:" | ",value:"Per 1,000 Followers",cssClass:"text-black-light"}}}))}o.push({show:!0,name:this.permanentStorageEconomy.distribution.fund.title,indent:2,items$:i,tooltip:this.permanentStorageEconomy.distribution.fund.detail})}if(t.fundDistributionWithPayPerView){const i=[];t.fundDistributionWithPayPerView.percentageOfRevenue&&i.push(be({label:this.permanentStorageEconomy.distribution.fundDistributionWithPayPerView.percentageOfRevenue.title,tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:t.fundDistributionWithPayPerView.percentageOfRevenue/100})),o.push({show:!0,name:this.permanentStorageEconomy.distribution.fundDistributionWithPayPerView.title,indent:2,items$:i})}return{show:!0,name:this.permanentStorageEconomy.distribution.title,indent:1,items$:[],groupedItems:o,tooltip:this.permanentStorageEconomy.distribution.detail}}prepareRoyaltyEconomy(t){const e=[],o=[];if(t.owner={me:!1,otherOwners:[{title:"title",name:"Name",organization:"organization",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",percent:2},{title:"title",name:"Name",organization:"organization",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",percent:2}]},t.customContract={enable:!0,musicIndustry:{frequency:"Monthly",aiAssist:!0,[sM.Composition]:{enable:!0,permanentStorageAssociated:!0,[pp.MechanicalRoyalties]:{enable:!0,royaltyRows:[{name:"Name",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",cut:2}]},[pp.PerformanceRoyalties]:{enable:!0,royaltyRows:[{name:"Name",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",cut:2}]}},[sM.Recording]:{enable:!0,permanentStorageAssociated:!0,[pp.Identical]:{enable:!0,royaltyRows:[{name:"Name",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",cut:2}]}}}},e.push(be({label:this.permanentStorageEconomy.royalty.baseRoyatly.title,tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:Xe.permanentStorageRoyalty})),t.owner&&(t.owner.me&&e.push(be({label:this.permanentStorageEconomy.royalty.owner.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"Yes"})),t.owner.otherOwners)){let i="",a=!0;for(const s of t.owner.otherOwners)i+=this.prepareOwnerRow(s,a),a=!1;e.push(be({label:this.permanentStorageEconomy.royalty.owner.otherOwners.title,tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${i}
`}))}if(t.standardContract&&e.push(be({label:this.permanentStorageEconomy.royalty.standardContract.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"Yes"})),t?.customContract?.musicIndustry){let i=[],a=[];a.push(be({label:this.permanentStorageEconomy.royalty.customContract.musicIndustry.frequency.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.customContract.musicIndustry.frequency})),t.customContract.musicIndustry.composition&&a.concat(this.prepareCustomContract(sM.Composition,t.customContract.musicIndustry.composition,a)),t.customContract.musicIndustry.recording&&a.concat(this.prepareCustomContract(sM.Recording,t.customContract.musicIndustry.recording,a)),i.push({show:!0,name:this.permanentStorageEconomy.royalty.customContract.musicIndustry.title,indent:3,items$:a}),o.push({show:!0,name:this.permanentStorageEconomy.royalty.customContract.title,indent:2,groupedItems:i})}if(t.payOnEachSale&&e.push(be({label:this.permanentStorageEconomy.royalty.payOnEachSale.title,tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:(t.payOnEachSalePercentage??100)/100})),t.toOthers?.others&&t.toOthers?.others){let i="",a=!0;for(const s of t.toOthers?.others)i+=this.prepareOwnerRow(s,a),a=!1;e.push(be({label:this.permanentStorageEconomy.royalty.toOthers.title,tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${i}
`}))}return t.totalPercentage&&e.push(be({label:this.permanentStorageEconomy.royalty.totalPercentage.title,tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:(t.totalPercentage??100)/100})),{show:!0,name:this.permanentStorageEconomy.royalty.title,indent:1,items$:e,groupedItems:o,tooltip:this.permanentStorageEconomy.royalty.detail}}prepareIncentiveEconomy(t){const e=[];if(t.poweredByStoreStamp={color:"White",placement:"Left",discountPercentage:.1,discount:.1558963994359914},t.storeStamp){const i=this.sharedStatsService.convertUSDIntoRates(t.storeStamp.discount);e.push(be({label:'
\n Add a STORE icon to your NFT\n
',labelType:"html",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:i[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:i[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"percent",value:t.storeStamp.discountPercentage,cssClass:"text-light",preSymbol:"(",symbol:"Off)"}}}))}if(t.poweredByStoreStamp){const i=this.sharedStatsService.convertUSDIntoRates(t.poweredByStoreStamp.discount);e.push(be({label:'
\n Add to your NFT\n
',labelType:"html",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:i[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:i[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"percent",value:t.poweredByStoreStamp.discountPercentage,cssClass:"text-light",preSymbol:"(",symbol:"Off)"}}}))}if(t.nftAddressStamp){const i=this.sharedStatsService.convertUSDIntoRates(t.nftAddressStamp.discount);e.push(be({label:this.permanentStorageEconomy.incentive.nftAddressStamp.title,labelType:"html",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:i[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:i[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"percent",value:t.nftAddressStamp.discountPercentage,cssClass:"text-light",preSymbol:"(",symbol:"Off)"}}}))}if(t.supplyCountStamp){const i=this.sharedStatsService.convertUSDIntoRates(t.supplyCountStamp.discount);e.push(be({label:'Add limited supply number 1/1',labelType:"html",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:i[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:i[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"percent",value:t.supplyCountStamp.discountPercentage,cssClass:"text-light",preSymbol:"(",symbol:"Off)"}}}))}return{show:!0,name:this.permanentStorageEconomy.incentive.title,indent:1,items$:e,groupedItems:[],tooltip:this.permanentStorageEconomy.incentive.detail}}prepareOwnerRow(t,e){return`
\n
\n

${t.name}\n ${t.title}.${t?.organization??""}\n

\n

${t.percent}%

\n
\n

\n \n ${t.address}\n

\n
`}prepareCategoryRow(t,e){return`
\n
\n

${t.name}\n

\n

${t.cut}%

\n
\n

\n \n ${t.address}\n

\n
`}prepareCustomContract(t,e,o){let r="",i=!0;for(const a of[pp.Identical,pp.MechanicalRoyalties,pp.PerformanceRoyalties,pp.SyncRoyalties,pp.ReproductionRoyalties]){const s=e[a]?.royaltyRows;if(s)for(const c of s)r+=this.prepareCategoryRow(c,i),i=!1}return o.push(be({label:this.permanentStorageEconomy.royalty.customContract.musicIndustry[t].title,tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${r}
`})),o}}let OJ=(()=>{class n{constructor(){this.rootUrl="http://localhost:3003"}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),rwe=(()=>{class n{constructor(e,o){this.config=e,this.http=o,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}static#e=this.\u0275fac=function(o){return new(o||n)(Te(OJ),Te(q0))};static#t=this.\u0275prov=et({token:n,factory:n.\u0275fac})}return n})();const awe=new class iwe{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class s8{constructor(t,e,o,r,i){this.name=t,this.value=e,this.options=o,this.options=o||{},null==this.options.style&&(this.options.style=r),null==this.options.explode&&(this.options.explode=i)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(o=>this.serializeValue(o).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];null!=i&&(i=this.serializeValue(i).split(e).join(encodeURIComponent(e)),this.options.explode?o.push(`${r}=${i}`):(o.push(r),o.push(i)))}return o.join(e)}return String(t)}}class swe extends s8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let o="label"===this.options.style?".":"",r=this.options.explode?""===o?",":o:",",i=!1;return"matrix"===this.options.style&&(o=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(o=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),i=!0):(e=this.serializeValue(e,";"),i=!0))),e=o+(i?e:this.serializeValue(e,r)),(t=t.replace(`{${this.name}}`,e)).replace(`{${o}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var o="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(o=(o=o.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class cwe extends s8{constructor(t,e,o){super(t,e,o,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(o)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(e,this.serializeValue(o)))}else{const e=[];for(const o of Object.keys(this.value)){const r=this.value[o];null!=r&&(e.push(o),e.push(r))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class lwe extends s8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class c8{constructor(t,e,o){this.rootUrl=t,this.operationPath=e,this.method=o,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,o){this._path.set(t,new swe(t,e,o||{}))}query(t,e,o){this._query.set(t,new cwe(t,e,o||{}))}header(t,e,o){this._header.set(t,new lwe(t,e,o||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];i instanceof Array||(i=[i]);for(const a of i){const s=this.formDataValue(a);null!==s&&o.push([r,s])}}this._bodyContent=o.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const o=new FormData;if(null!=t)for(const r of Object.keys(t)){const i=t[r];if(i instanceof Array)for(const a of i){const s=this.formDataValue(a);null!==s&&o.append(r,s)}else{const a=this.formDataValue(i);null!==a&&o.set(r,a)}}this._bodyContent=o}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const o=this.rootUrl+e;let r=new Rs({encoder:awe});for(const a of this._query.values())r=a.append(r);let i=new fi;t.accept&&(i=i.append("Accept",t.accept));for(const a of this._header.values())i=a.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set("Content-Type",this._bodyContentType)),new Gl(this.method.toUpperCase(),o,this._bodyContent,{params:r,headers:i,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let l8=(()=>{class n extends rwe{constructor(e,o){super(e,o)}static#e=this.CloudIdTransactionsHistoryControllerCountPath="/cloud-id/transactions-history/count";count$Response(e,o){const r=new c8(this.rootUrl,n.CloudIdTransactionsHistoryControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}count(e,o){return this.count$Response(e,o).pipe(j(r=>r.body))}static#t=this.CloudIdTransactionsHistoryControllerFindByIdPath="/cloud-id/transactions-history/{id}";findById$Response(e,o){const r=new c8(this.rootUrl,n.CloudIdTransactionsHistoryControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe(j(r=>r.body))}static#n=this.CloudIdTransactionsHistoryControllerFindPath="/cloud-id/transactions-history";find$Response(e,o){const r=new c8(this.rootUrl,n.CloudIdTransactionsHistoryControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(ht(i=>i instanceof Wt),j(i=>i))}find(e,o){return this.find$Response(e,o).pipe(j(r=>r.body))}static#o=this.\u0275fac=function(o){return new(o||n)(Te(OJ),Te(q0))};static#r=this.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Vz=class lx extends GD{constructor(t,e,o){super(),this.http=t,this.sharedStatsService=e,this.cloudIdTransactionHistoryControllerService=o,this.nftDummy=new Sw(4),this.total$=null,this.formatBytes=new aK,this.baseRoyalty=100*Xe.permanentStorageRoyalty}getETH_TransactionByHashFromCloudflare(t){var e=this;return Dt(function*(){const o=new fi;o.append("Content-Type","application/json");const r=JSON.stringify({jsonrpc:"2.0",method:"eth_getTransactionByHash",params:[t],id:1}),i=yield nr(e.http.post(Xe.wallet.cloudflareEthAPIURL,r,{headers:o}));return i?.result?i?.result:null})()}getETH_BlockByNoFromCloudflare(t){var e=this;return Dt(function*(){const o=new fi;o.append("Content-Type","application/json");const r=JSON.stringify({jsonrpc:"2.0",method:"eth_getBlockByNumber",params:[t,!1],id:1}),i=yield nr(e.http.post(Xe.wallet.cloudflareEthAPIURL,r,{headers:o}));return i?.result?i?.result:null})()}getETH_TransactionReceiptByHashFromCloudflare(t){var e=this;return Dt(function*(){const o=new fi;o.append("Content-Type","application/json");const r=JSON.stringify({jsonrpc:"2.0",method:"eth_getTransactionReceipt",params:[t],id:1}),i=yield nr(e.http.post(Xe.wallet.cloudflareEthAPIURL,r,{headers:o}));return i?.result?i?.result:null})()}getETH_TransactionByHashFromEtherscan(t){var e=this;return Dt(function*(){const o=`${Xe.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getTransactionByHash&txhash=${t}&apikey=${Xe.wallet.etherscanAPIKey}`,r=yield nr(e.http.get(o));return r?.result?r?.result:yield e.getETH_TransactionByHashFromCloudflare(t)})()}getETH_BlockByNoFromEtherscan(t){var e=this;return Dt(function*(){const o=`${Xe.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getBlockByNumber&tag=${t}&boolean=false&apikey=${Xe.wallet.etherscanAPIKey}`,r=yield nr(e.http.get(o));return r?.result?r?.result:yield e.getETH_BlockByNoFromCloudflare(t)})()}getETH_TransactionReceiptByHashFromEtherscan(t){var e=this;return Dt(function*(){const o=`${Xe.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getTransactionReceipt&txhash=${t}&apikey=${Xe.wallet.etherscanAPIKey}`,r=yield nr(e.http.get(o));return r?.result?r?.result:yield e.getETH_TransactionReceiptByHashFromCloudflare(t)})()}bindSTORETransactionDetail(t,e,o){var r=this;return Dt(function*(){const i=e?.cloudId??e?.id,a={label:"Mint Price",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:e?.mintPrice||0,symbol:"STORE",subItems:{type:"currency",value:(e?.mintPrice||0)*t1(r.sharedStatsService.storePrice[lt.Unit.USD])?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},s={label:"Transaction Value",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:t?.amount||0,symbol:"STORE",subItems:{type:"bit",value:(t?.amount||0)*Xe.one$STOREEqualsToOneBit,preSymbol:"(",symbol:"bits)",cssClass:"text-black-light",subItems:{type:"currency",value:t?.amountInUSD||0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}},p={label:"\u{1f4c8} Surge",tooltip:"Description (in progress)",type:"number",value:t?.feeSurge||0,symbol:"x",cssClass:"text-black-light no-space-me"},d={label:"Blockspace Fee",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"bit",value:t?.fee??0,symbol:"bits",cssClass:"text-black-light"},u=r.sharedStatsService.convertUSDIntoRates(e?.fees?.storeCloudVMFee),h={label:"Cloudspace Fees",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"bit",value:Math.round(u[lt.Unit.BITS]?.toNumber()),symbol:"bits",cssClass:"text-black-light",subItems:{type:"currency",value:u[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},M={label:"\u{1f525} Burnt Fee",tooltip:"Description (in progress)",type:"bit",value:t?.burntFee??0,symbol:"bits",cssClass:"text-black-light",subItems:{type:"percent",value:t?.burntFeePercent,cssClass:"text-light",preSymbol:"(",symbol:"0.00%)"}},g={label:"From",tooltip:"Description (in progress)",type:"hash",value:t?.from,link:Xe.externalURL.explorer_app+"/chain/transactions/account/"+t?.from,externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",copy:!0,...o},v={label:"To",tooltip:"Description (in progress)",type:"hash",value:t?.to||"00000",cssClass:"text-black-light",link:`${Xe.externalURL.explorer_app}/chain/transactions/account/${t.to??"00000"}`,externalLink:!0,openInExistingTab:!0,copy:!0,...o},A={icon:"store-logo-only",label:"Block ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t?.blockId,link:Xe.externalURL.explorer_app+"/chain/blocks/detail/"+t?.blockId,externalLink:!0,openInExistingTab:!0},y={icon:"store-logo-only",label:"Transaction ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:t?.transactionId,link:Xe.externalURL.explorer_app+"/chain/transactions/detail/"+t?.transactionId,externalLink:!0,openInExistingTab:!0,...o},q={label:"Status",tooltip:"Description (in progress)",type:"string",cssClass:"text-black text-flex-icon",valueIcon:"store-logo-only",value:"Stored Forever",valueTooltip:"Description (in progress)",link:Xe.externalURL.explorer_app+"/cloud/infrastructure",externalLink:!0,openInExistingTab:!0},L={label:"Block Time",tooltip:"Description (in progress)",type:"string",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon",value:`${t?.blockTime} ms`},D={label:"Timestamp",tooltip:"Description (in progress)",type:"time",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon align-center",value:t?.time,subItems:{type:"date-time",value:t?.time,preSymbol:"(",symbol:")",cssClass:"text-black-light d-flex-end"}},X={label:"Nonce",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t?.nonce||0},H={label:"Signature",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:t?.hash,...o},re={label:"Forever Stored on",tooltip:"Description (in progress)",type:"string",link:Xe.externalURL.explorer_app+"/cloud/infrastructure",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Cloud"},ee={label:"Governed by",tooltip:"Description (in progress)",type:"string",link:Xe.externalURL.explorer_app+"/governance",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Governance"},le={label:"Incentivized by",tooltip:"Description (in progress)",type:"string",link:Xe.externalURL.explorer_app+"/monetary",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Monetary Policy"},he={label:"Cloud ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:`${Xe.externalURL.explorer_app}/${rn.STORE}/${i}`,link:`${Xe.externalURL.explorer_app}/${rn.STORE}/${i}`,externalLink:!0,openInExistingTab:!0},Me={label:"Forever NFT",tooltip:"Description (in progress)",type:"cloudId",cssClass:"text-black-light",value:e},me={label:"Cloud ID Size",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:r.formatBytes.transform(e?.size?.content+e?.size?.metadata)||"00.00 MB"},xe={icon:"store-logo-only",label:"Contract ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"1x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},st={label:"Total Supply",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:e?.supply||1},rt={label:"Serial Number",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light gold",preSymbol:`${e?.supplyIndex??1}/`,value:e?.supply||1,disabled:!(e?.supplyIndex>1)},Ut={disabled:!e?.incentive,label:"Incentives ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},qe={disabled:!e?.distribution,label:"Distribution ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},ke={disabled:!e?.royalty,label:"Royalties ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},Ze={disabled:!e?.payPerView,label:"Pay-Per-View ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},Gt=t1(h?.subItems?.value).add(a?.subItems?.value),p1={label:"Total Cost",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:r.sharedStatsService.convertUSDIntoRates(Gt?.toNumber())[lt.Unit.STORE]?.toNumber(),symbol:"STORE",subItems:{type:"currency",value:Gt?.toString(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},En=r.prepareIPFSData("showcase"===e?.id?"bafkreiatl6zspgmmh5f5u7znhi2zzxypewffmwaqxpd757i25i3ig6b7va":e.ipfsId),In={label:"Cloud ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:`${Xe.externalURL.explorer_app}/${rn.STORE}/${i}`,link:`${Xe.externalURL.explorer_app}/${rn.STORE}/${i}`,externalLink:!0,openInExistingTab:!0,copy:!0,trimSize:32,trimSizeMobile:20},ro={icon:"store-logo-only",label:"Cloud ID Owner",tooltip:"Description (in progress)",type:"hash",value:e.userAddress,cssClass:"text-black-light",externalLink:!1,copy:!0,...o},$0=r.sharedStatsService.convertUSDIntoRates(5621204618e-14),mr={label:"Production Cost",tooltip:"Description (in progress)",cssClass:"text-black-light",type:"bit",valueIcon:"store-logo-only",value:Math.round($0[lt.Unit.BITS]?.toNumber()),symbol:"bits",subItems:{type:"currency",value:$0[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},mi={label:"% of Production Cost",tooltip:"Description (in progress)",type:"short-number",symbol:"%",cssClass:"text-black-light",decimal:{force:!1,count:12},value:e?.prices?.productionCostYearly?t1($0[lt.Unit.USD]).div(e?.prices?.productionCostYearly??0)?.toNumber():0},Wr={label:"Maximum Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",value:e?.cloudIdViewsTracking?.maxViews??Xe.maxViewsForNFT,subItems:{type:"currency",value:0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},ti={label:"# of Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold "+(e?.cloudIdViewsTracking?.blocked?"red":""),value:e?.cloudIdViewsTracking?.currentViews,parentCssClass:"d-flex-justify-space-between",subItems:"showcase"!==i?{type:"string",cssClass:"btn-primary text-black-light bold white",value:"Buy Views",event:!0,eventType:TO.BuyViews}:{}},Qi={label:"Views Remaining",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold",value:(e?.cloudIdViewsTracking?.maxViews??Xe.maxViewsForNFT)-(e?.cloudIdViewsTracking?.currentViews??0)},hs=`${e.userAddress?.substring(0,10)}....${e.userAddress?.substring(e.userAddress?.length-10)}`,Sa={label:"Forever Storage Royalty",tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`${hs} (${r.baseRoyalty}%)`},Lr={label:"Bandwidth Royalty",tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${e.cloudIdTransactionWithRelations?.map(ta=>ta.from===e.userAddress?`${ta.from?.substring(0,10)}....${ta.from?.substring(ta.from?.length-10)} (2.5%)`:`${ta.from?.substring(0,10)}....${ta.from?.substring(ta.from?.length-10)} (2.5%)`)?.toString()?.replaceAll(",","")}
`};return{foreverNFT:Me,totalSupply$:st,serialNumber$:rt,mintPrice$:a,value$:s,type$:{label:"Transaction Type",tooltip:"Description (in progress)",type:"string",value:"Mint",cssClass:"text-black-light"},cloudSpaceFees$:h,status$:q,timeStamp$:D,blockTime$:L,feeSurge$:p,blockspaceFee$:d,burntFee$:M,from$:g,to$:v,nonce$:X,signature$:H,transId$:y,blockId$:A,contractId:xe,incentiveId:Ut,distributionId:qe,royaltiesId:ke,payPerViewId:Ze,tokenId$:{label:"Token ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"1x12345"},cloudID:he,appId:{label:"App ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"STORE Explore (1x12345)"},cloudIdSize:me,foreeverStoreOn:re,governedBy:ee,incentivizedBy:le,chain:{label:"Blockchain",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",value:"STORE",valueIcon:"store-logo-only"},cloud:{label:"Cloud",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",valueIcon:"store-logo-only",value:"STORE"},totalPrice$:p1,ipfsId:En,cloudId$:In,owner$:ro,redundancy$:{label:"Redundancy",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"5 copies in 5 locations (99.99999999%)"},bft$:{label:"BFT",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"3f + 1",link:"https://medium.com/codechain/why-n-3f-1-in-the-byzantine-fault-tolerance-system-c3ca6bab8fe9",externalLink:!0,withOutIdLink:!0,subItems:{type:"string",cssClass:"text-black-light",value:"Byzantine Fault Tolerant"}},costOfCompute:mr,productionCostPercentage:mi,maxViewsData$:Wr,viewsData$:ti,metaDataGroup:new Uz(r.sharedStatsService).prepareContractOptions(e),remainingViewsData$:Qi,forverStorageRoyalty$:Sa,bandwidthRoyalty$:Lr,aIandAttributionGroup:new Uz(r.sharedStatsService).prepareAIAttributionOptions(e),humanAttributionGroup:new Uz(r.sharedStatsService).prepareHumanAttributionOptions(e)}})()}bindETHTransactionDetail(t,e,o,r){var i=this;return Dt(function*(){const a={label:"Mint Price",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:o?.mintPrice||0,symbol:"STORE",subItems:{type:"currency",value:(o?.mintPrice||0)*t1(i.sharedStatsService.storePrice[lt.Unit.USD])?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},s=e0.from(e?.gasPrice).toNumber(),c=parseFloat(xO((s*e0.from(e.gasUsed).toNumber()).toString())),p={label:"Transaction Fee",tooltip:"Description (in progress)",type:"short-number",valueIcon:"network_icon/ethereum-eth",value:c||0,symbol:"Ether",decimal:{force:!1,count:14},subItems:{type:"currency",value:e?.usdExRate*c||0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},d={label:"Gas Price",tooltip:"Description (in progress)",valueIcon:"network_icon/ethereum-eth",type:"short-number",value:parseFloat(ZK(s,"gwei"))||0,symbol:"Gwei",cssClass:"text-black-light",decimal:{force:!1,count:8},subItems:{type:"short-number",value:parseFloat(xO(s))||0,cssClass:"text-light",preSymbol:"(",symbol:"Ether)",decimal:{force:!1,count:14}}},u=i.sharedStatsService.convertUSDIntoRates(o?.fees?.storeCloudVMFee??0),h={label:"Cloudspace Fees",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"bit",value:Math.round(u[lt.Unit.USD]?.toNumber())??0,symbol:"bits",cssClass:"text-black-light",subItems:{type:"currency",value:u[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},M={icon:"network_icon/ethereum-eth",label:"Cloud ID Owner",tooltip:"Description (in progress)",type:"hash",value:o.userAddress,link:`${Xe.wallet.etherscanURL}/address/${o.userAddress}`,cssClass:"text-black-light",externalLink:!0,copy:!0,...r},g={icon:"network_icon/ethereum-eth",label:"Block ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:e0.from(e?.blockNumber).toBigInt(),link:Xe.wallet.etherscanURL+"/block/"+e0.from(e?.blockNumber).toBigInt(),externalLink:!0},v={icon:"network_icon/ethereum-eth",label:"Transaction ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:e?.hash,link:`${Xe.wallet.etherscanURL}/tx/${e?.hash}`,externalLink:!0,...r},A={label:"Status",tooltip:"Description (in progress)",type:"string",cssClass:"text-black text-flex-icon",valueIcon:"store-logo-only",value:"Stored Forever",valueTooltip:"Description (in progress)",link:Xe.externalURL.explorer_app+"/cloud/infrastructure",externalLink:!0,openInExistingTab:!0},y={label:"Timestamp",tooltip:"Description (in progress)",type:"time",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon align-center",value:new Date(1e3*e?.timestamp),disabled:!e?.timestamp,subItems:{type:"date-time",value:new Date(1e3*e?.timestamp),preSymbol:"(",symbol:")",cssClass:"text-black-light d-flex-end"}},q={label:"Forever Stored on",tooltip:"Description (in progress)",type:"string",link:Xe.externalURL.explorer_app+"/cloud/infrastructure",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Cloud"},L={label:"Governed by",tooltip:"Description (in progress)",type:"string",link:Xe.externalURL.explorer_app+"/governance",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Governance"},D={label:"Incentivized by",tooltip:"Description (in progress)",type:"string",link:Xe.externalURL.explorer_app+"/monetary",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Monetary Policy"},X=i.prepareIPFSData(o.ipfsId,r),H={label:"Cloud ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:`${Xe.externalURL.explorer_app}/ethereum/${t}`,link:`${Xe.externalURL.explorer_app}/ethereum/${t}`,externalLink:!0,copy:!0,trimSize:32,trimSizeMobile:20},re={label:"Forever NFT",tooltip:"Description (in progress)",type:"cloudId",cssClass:"text-black-light",value:o},ee={label:"Cloud ID Size",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:i.formatBytes.transform(o?.size?.content+o?.size?.metadata)||"00.00 MB"},le={icon:"network_icon/ethereum-eth",label:"Contract ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:Xe.contract.address,externalLink:!0,link:`${Xe.wallet.etherscanURL}/address/${Xe.contract.address}`,...r},he={label:"Total Supply",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:o?.supply||1},Me={label:"Serial Number",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light gold",preSymbol:`${o?.supplyIndex??1}/`,value:o?.supply||1,disabled:!(o?.supplyIndex>1)},me={disabled:!o?.incentive,label:"Incentives ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},xe={disabled:!o?.distribution,label:"Distribution ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},Ve={disabled:!o?.royalty,label:"Royalties ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},st={disabled:!o?.payPerView,label:"Pay-Per-View ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},ke=t1(h?.subItems?.value).add(a?.subItems?.value).add(p?.subItems?.value).add(d?.subItems?.value),vt={label:"Total Cost",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:i.sharedStatsService.convertUSDIntoRates(ke?.toNumber())[lt.Unit.STORE]?.toNumber(),symbol:"STORE",subItems:{type:"currency",value:ke?.toString(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},Gt=i.sharedStatsService.convertUSDIntoRates(5621204618e-14),I0={label:"Production Cost",tooltip:"Description (in progress)",cssClass:"text-black-light",type:"bit",valueIcon:"store-logo-only",value:Math.round(Gt[lt.Unit.BITS]?.toNumber())??0,symbol:"bits",subItems:{type:"currency",value:Gt[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},p1=t1(Gt[lt.Unit.USD]).div(o?.prices?.productionCostYearly)?.toNumber(),En={label:"% of Production Cost",tooltip:"Description (in progress)",type:"short-number",cssClass:"text-black-light",symbol:"%",decimal:{force:!1,count:12},value:p1},In={label:"Maximum Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",value:o?.cloudIdViewsTracking?.maxViews??Xe.maxViewsForNFT,subItems:{type:"currency",value:0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},ro={label:"# of Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold "+(o?.cloudIdViewsTracking?.blocked?"red":""),value:o?.cloudIdViewsTracking?.currentViews,parentCssClass:"d-flex-justify-space-between",subItems:{type:"string",cssClass:"btn-primary light-radius text-black-light bold white",value:"Buy Views",event:!0,eventType:TO.BuyViews}},sn={label:"Views Remaining",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold",value:(o?.cloudIdViewsTracking?.maxViews??Xe.maxViewsForNFT)-(o?.cloudIdViewsTracking?.currentViews??0)},W0={label:"Token ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:e?.tokenId,link:`${Xe.wallet.etherscanURL}/token/${e?.to}?a=${e?.tokenId}`,openInExistingTab:!1,externalLink:!0},$0=`${o.userAddress?.substring(0,10)}....${o.userAddress?.substring(o.userAddress?.length-10)}`;return{foreverNFT:re,totalSupply$:he,serialNumber$:Me,mintPrice$:a,fee$:p,cloudSpaceFees$:h,status$:A,timeStamp$:y,gasPrice$:d,owner$:M,transId$:v,blockId$:g,contractId:le,incentiveId:me,distributionId:xe,royaltiesId:Ve,payPerViewId:st,cloudId$:H,ipfsId:X,appId:{label:"App ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"STORE Explore (1x00001)"},cloudIdSize:ee,foreeverStoreOn:q,governedBy:L,incentivizedBy:D,chain:{label:"Blockchain",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",value:"Ethereum",valueIcon:"network_icon/ethereum-eth"},cloud:{label:"Cloud",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",valueIcon:"store-logo-only",value:"STORE"},totalPrice$:vt,redundancy$:{label:"Redundancy",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"5 copies in 5 locations (99.99999999%)"},bft$:{label:"BFT",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"3f + 1",link:"https://medium.com/codechain/why-n-3f-1-in-the-byzantine-fault-tolerance-system-c3ca6bab8fe9",externalLink:!0,withOutIdLink:!0,subItems:{type:"string",cssClass:"text-black-light",value:"Byzantine Fault Tolerant"}},costOfCompute:I0,productionCostPercentage:En,maxViewsData$:In,viewsData$:ro,tokenId$:W0,remainingViewsData$:sn,forverStorageRoyalty$:{label:"Forever Storage Royalty",tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`${$0} (${i.baseRoyalty}%)`},bandwidthRoyalty$:{label:"Bandwidth Royalty",tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${o.cloudIdTransactionWithRelations?.map(ti=>`\n ${ti.from?.substring(0,10)}....${ti.from?.substring(ti.from?.length-10)} (2.5%)`)?.toString()?.replaceAll(",","")}
`},aIandAttributionGroup:new Uz(i.sharedStatsService).prepareAIAttributionOptions(o),humanAttributionGroup:new Uz(i.sharedStatsService).prepareHumanAttributionOptions(o)}})()}getEthTransactionById(t){var e=this;return Dt(function*(){const o=yield e.getETH_TransactionReceiptByHashFromEtherscan(t);if(!o)return{eth_txn:null,eth_txnRecpt:null};const r=yield e.getETH_TransactionByHashFromEtherscan(t);if(!r)return{eth_txn:null,eth_txnRecpt:null};const i=yield e.getETH_BlockByNoFromEtherscan(r?.blockNumber?.toString()),s=(yield e.sharedStatsService.getEtherPrice())||0,c=twe.decode(["string","string","string"],Pa(r?.input,4));return r&&(r.timestamp=e0.from(i?.timestamp).toNumber(),r.usdExRate=s,r.gasUsed=o?.gasUsed,r.data=c,r.logs=o?.logs,r.tokenId=e0.from(o?.logs?.[0]?.topics?.[3]).toNumber()),{eth_txn:r,eth_txnRecpt:o}})()}getMetaData(t,e,o){var r=this;return Dt(function*(){const i=yield r.getFromIPFS(e),a=yield r.bandwidthFundedData(t);return i.ipfsId=e,i.cloudId=t,i.userAddress=o,i.cloudIdTransactionWithRelations=a,{metadata:i,cloudId:t}})()}getFromIPFS(t){var e=this;return Dt(function*(){const o=`${Xe.ipfs.main_url}/${t}?x-ipfs-companion-no-redirect`;return yield nr(e.http.get(o))})()}prepareIPFSData(t,e={}){const o=(r,i)=>({type:"hash",cssClass:"text-black-light d-flex-column",preSymbolCssClass:"mr-minus-0",preSymbol:`IPFS Server ${r}: `,value:` ${i}/${t}`,link:`${i}/${t}`,externalLink:!0,copy:!0,trimSize:40,trimSizeMobile:36});return{label:"IPFS ID",tooltip:"Description (in progress)",direction:"column",...o(1,Xe.ipfs.astore_url),subItems:{...o(2,Xe.ipfs.bstore_url),subItems:{...o(3,Xe.ipfs.cstore_url),subItems:{...o(4,Xe.ipfs.dstore_url),subItems:{...o(5,Xe.ipfs.estore_url)}}}}}}bandwidthFundedData(t){var e=this;return Dt(function*(){return e.cloudIdTransactionHistoryControllerService.find({filter:{"filter[where][or][0][type]":no.Type.BanwidthFunded,"filter[where][cloudId]":t,"filter[fields][0]":"from"}}).toPromise()})()}static#e=this.\u0275fac=function(e){return new(e||lx)(Te(q0),Te(Oi),Te(l8))};static#t=this.\u0275prov=et({token:lx,factory:lx.\u0275fac})};Vz=$e([p0()],Vz);const $z=new V(At),dwe={connector:()=>new I};function mJ(n,t=dwe){const{connector:e}=t;return _t((o,r)=>{const i=e();k0(n(function pwe(n){return new V(t=>n.subscribe(t))}(i))).subscribe(r),r.add(o.subscribe(i))})}const p8="Service workers are disabled or not supported by this browser";class _J{constructor(t){if(this.serviceWorker=t,t){const o=dp(t,"controllerchange").pipe(j(()=>t.controller)),i=gg(E3(()=>be(t.controller)),o);this.worker=i.pipe(ht(d=>!!d)),this.registration=this.worker.pipe(hi(()=>t.getRegistration()));const p=dp(t,"message").pipe(j(d=>d.data)).pipe(ht(d=>d&&d.type)).pipe(function fwe(n){return n?t=>mJ(n)(t):t=>function uwe(n,t){const e=z(n)?n:()=>n;return z(t)?mJ(t,{connector:e}):o=>new nL(o,e)}(new I)(t)}());p.connect(),this.events=p}else this.worker=this.events=this.registration=function hwe(n){return E3(()=>lh(new Error(n)))}(p8)}postMessage(t,e){return this.worker.pipe(Zl(1),jo(o=>{o.postMessage({action:t,...e})})).toPromise().then(()=>{})}postMessageWithOperation(t,e,o){const r=this.waitForOperationCompleted(o),i=this.postMessage(t,e);return Promise.all([i,r]).then(([,a])=>a)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){let e;return e="string"==typeof t?o=>o.type===t:o=>t.includes(o.type),this.events.pipe(ht(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(Zl(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(ht(e=>e.nonce===t),Zl(1),j(e=>{if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Mwe=(()=>{class n{get isEnabled(){return this.sw.isEnabled}constructor(e){if(this.sw=e,!e.isEnabled)return this.versionUpdates=$z,this.available=$z,this.activated=$z,void(this.unrecoverable=$z);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe(ht(o=>"VERSION_READY"===o.type),j(o=>({type:"UPDATE_AVAILABLE",current:o.currentVersion,available:o.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(p8));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(p8));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}}return n.\u0275fac=function(e){return new(e||n)(Te(_J))},n.\u0275prov=et({token:n,factory:n.\u0275fac}),n})(),AJ=class px{constructor(t,e,o){if(this._swUpdate=t,this.toastService=e,console.log("%c Update service is running...","color: green; font-weight: 500;"),this._swUpdate?.isEnabled){console.log("%c Service worker enabled","color: orange; font-weight: 500;");const r=o?.isStable?.pipe(ad(s=>!0===s));gg(r,lD(216e5).pipe(z4(0))).pipe(ot(this)).subscribe(()=>{console.log("%c Checks for updates...","color: blue; font-weight: 500;"),this._swUpdate.checkForUpdate().then(()=>console.log("%c Finish checking for updates...","color: blue; font-weight: 500;"))})}else console.log("%c No service worker allow","color: red; font-weight: 500;")}subscribeForUpdates(){this._swUpdate?.available?.pipe(ot(this)).subscribe(t=>{this.showAppUpdateAlert()})}showAppUpdateAlert(){this.toastService.show(d8,{autoClose:!1,dismissible:!0,position:"bottom-right",className:"black-bg"}).afterClosed.subscribe(e=>{this._swUpdate.activateUpdate().then(()=>document.location.reload())})}static#e=this.\u0275fac=function(e){return new(e||px)(Te(Mwe),Te(Tu),Te(w2))};static#t=this.\u0275prov=et({token:px,factory:px.\u0275fac})};AJ=$e([p0()],AJ);let d8=class sE{constructor(t){this.toastRef=t}static#e=this.\u0275fac=function(e){return new(e||sE)(Re(jD,8))};static#t=this.\u0275cmp=Rt({type:sE,selectors:[["app-update-component"]],decls:7,vars:0,consts:[[3,"click"]],template:function(e,o){1&e&&(l(0,"\n "),m(1,"div"),l(2,"\n We've improved!\n "),m(3,"a",0),yt("click",function(){return o.toastRef.close({dismissedByAction:!0})}),l(4,"\n Click here to refresh."),_(),l(5,"\n "),_(),l(6,"\n "))},styles:[".black-bg[_ngcontent-%COMP%]{background:var(--bg-gradient, linear-gradient(to right, #1e1e20, #38415d))}div[_ngcontent-%COMP%]{font-size:1.4rem;color:#888;cursor:pointer}div[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1db0a9}"]})};d8=$e([p0({checkProperties:!0})],d8);let u8=class dx{constructor(t){this.sharedStatsService=t,this.storeDistributionList$=null,this.storeData$=null,this.storeEconomics$=null,this.allocatedSupplyChart$={title:"ALLOCATED SUPPLY",id:"chart_1",type:"cloud",showTabs:!1,height:50,cssStyle:{padding:"10px 0 0 15px"},showYAxisLabel:!1,showGrid:!0,dummy:!1,maxTick:{x:3,y:2},lineWidth:1.5,xAxisName:"Date",yAxisName:"Allocated Supply",areaStyleColor:"#1db0a9",lineColor:"#1db0a9",data:null,stats:{type:"string",value:"704.712",valueIcon:"store-logo-only",symbol:"MM",cssClass:"text-black",subItems:{type:"string",value:"$27.48",cssClass:"text-light",preSymbol:"(",symbol:"MM)"}}},this.emissionsAndInflationChart$={title:"EMISSIONS AND INFLATION",showTabs:!1,id:"chart_2",type:"cloud",height:50,cssStyle:{padding:"10px 0 0 15px"},showYAxisLabel:!1,showGrid:!0,dummy:!0,maxTick:{x:3,y:2},lineWidth:1.5,xAxisName:"Date",yAxisName:"Emissions and Inflation",areaStyleColor:"#1db0a9",lineColor:"#1db0a9",data:null,stats:{type:"string",value:"00.00",valueIcon:"store-logo-only",symbol:"MM",cssClass:"text-black",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}}},this.privateMarketCapChart$={title:"PRIVATE MARKET CAP",id:"chart_3",type:"cloud",showTabs:!1,height:50,cssStyle:{padding:"10px 0 0 15px"},showYAxisLabel:!1,showGrid:!0,dummy:!1,maxTick:{x:3,y:2},lineWidth:1.5,xAxisName:"Date",yAxisName:"Private Market Cap",areaStyleColor:"#1db0a9",lineColor:"#1db0a9",data:null,stats:{type:"currency",value:27.48,symbol:"MM",cssClass:"text-black",subItems:{valueIcon:"store-logo-only",type:"string",value:"704.712",cssClass:"text-light",preSymbol:"(",symbol:"MM)"}}},this.trasuryChartOptions={title:"PRIVATE MARKET CAP",cssStyle:{padding:"10px 0 0 15px"},showYAxisLabel:!1,data:null,options:null},this.mediaQueryForChart=[{query:{minWidth:1600},option:{textStyle:{fontSize:12},tooltip:{textStyle:{overflow:"truncate",fontSize:12}},grid:{show:!0,top:20,left:20,right:0,bottom:10},yAxis:{nameGap:"50",axisLabel:{fontSize:12},nameTextStyle:{fontSize:12}},xAxis:{axisLabel:{fontSize:12}},series:{symbolSize:12,label:{fontSize:12,fontWeight:"normal"}},legend:{textStyle:{rich:{hr:{width:"100%",fontSize:11,height:8}}}}}},{query:{minWidth:1024},option:{textStyle:{fontSize:11},tooltip:{textStyle:{overflow:"truncate",fontSize:11}},grid:{show:!0,top:20,left:20,right:0,bottom:60},yAxis:{nameGap:"50",axisLabel:{fontSize:11},nameTextStyle:{fontSize:11}},xAxis:{axisLabel:{fontSize:11}},series:{symbolSize:11,label:{fontSize:11,fontWeight:"normal"}},legend:{textStyle:{rich:{hr:{width:"100%",fontSize:11,height:8}}}}}},{query:{maxWidth:600},option:{textStyle:{fontSize:10},tooltip:{textStyle:{overflow:"truncate",fontSize:10}},grid:{show:!0,top:20,left:10,right:0,bottom:110},yAxis:{nameGap:"40",axisLabel:{fontSize:10},nameTextStyle:{fontSize:10}},xAxis:{axisLabel:{fontSize:10}},series:{symbolSize:10,label:{fontSize:10,fontWeight:"normal"}},legend:{left:"10",right:"10",orient:"vertical",textStyle:{rich:{hr:{width:"100%",fontSize:10,height:8}}}}}}],this.bindStoreData(),this.bindStoreDistributionList$List(),this.bindStoreEconomics()}getStoreDistributionList(){return be([{overall:"Founding inflationary rewards",supply:"60 MM"},{overall:"Test Network Staking Rewards (Governance, Compute, and Settlement test networks)",supply:"4 MM"},{overall:"Team (distributed over time but mostly by 2030)",supply:"199 MM"},{overall:"Ecosystem Fund (distributed across 100 years with annual predictability)",supply:"337 MM"},{overall:"Token Sales (sold as needed in private and invite-only public offerings)",supply:"400 MM"}]).pipe(Gr(600))}bindStoreDistributionList$List(){const t=this.getStoreDistributionList().pipe(ot(this));this.storeDistributionList$={title:"",type:"generic",pageSize:5,disablePagination:!0,columns:[{key:"overall",label:"Overall $STORE Distribution",type:"string"},{key:"supply",label:"Supply",type:"string",cssClass:"text-end",width:"100px"}],data$:t}}bindAllocatedSupplyChart(){this.sharedStatsService.getAllocatedSupplyHistoryFromGSheet()?.pipe(ot(this))?.subscribe(t=>{const e=t?.slice(2)?.map(o=>({x:o?.[0],y:parseInt(o?.[1]?.replace(/[^0-9.-]+/g,"")||0)}))?.filter(o=>o.y&&o.x);this.allocatedSupplyChart$.data=be(e)},t=>this.allocatedSupplyChart$.data=be([]))}bindEmissionsAndInflationChart(){this.emissionsAndInflationChart$.data=be([])}bindPrivateMarketCapChart(){this.sharedStatsService.getAllTimeMarketCapFromGSheet()?.pipe(ot(this))?.subscribe(t=>{const e=t?.slice(1)?.map(o=>({x:o?.[0],y:parseInt(o?.[5]?.replace(/[^0-9.-]+/g,""))}))?.filter(o=>o.y&&o.x);this.privateMarketCapChart$.data=be(e)},t=>this.privateMarketCapChart$.data=be([]))}bindStoreData(){var t=this;return Dt(function*(){t.storeData$={title:"NFT Detail",available:{items$:!0},items$:[be({label:"Name of Token",tooltip:"Description (in progress)",type:"string",value:"$STORE",cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"Type",tooltip:"Description (in progress)",type:"string",value:"Will begin as an ERC20 and then be native",cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"Allocated $STORE Supply",tooltip:"Description (in progress)",type:"number",value:704712370,cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"Authorized $STORE Supply",tooltip:"Description (in progress)",type:"number",value:1,symbol:"billion",cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"% Total Supply Sold-To-Date",tooltip:"Description (in progress)",type:"string",value:"26.94%",cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"% Remaining To-Be-Sold",tooltip:"Description (in progress)",type:"string",value:"13.06%",cssClass:"text-black-light",labelCssClass:"text-black-light"})]}})()}bindStoreEconomics(){var t=this;return Dt(function*(){t.storeEconomics$={title:"NFT Detail",available:{items$:!0},items$:[be({label:"Type",tooltip:"Description (in progress)",type:"string",value:"Protocol Fees, Staking,Voting, and Treasury Rewards",cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"Ongoing Emission Type",tooltip:"Description (in progress)",type:"string",value:"Inflationary",cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"Max Inflation Per Year",tooltip:"Description (in progress)",type:"string",value:"10-20 Million $STORE",cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"Inflation Schedule",tooltip:"Description (in progress)",type:"string",value:"Adjusts dynamically to algorithmically stabilize network security",cssClass:"text-black-light",labelCssClass:"text-black-light"}),be({label:"Emission Schedule",tooltip:"Description (in progress)",type:"string",value:"Will decrease yearly",cssClass:"text-black-light",labelCssClass:"text-black-light"})]}})()}bindTreasuryFirstChart(){this.sharedStatsService.getTreasuryScheduleChartFromGSheet()?.pipe(ot(this))?.subscribe(t=>{try{this.cleanRecordBeforePushingToChart(t)}catch{this.trasuryChartOptions.options={}}},t=>({}))}bindOptionsToChart(t,e){const o=e?.Date,r=[];t?.forEach(s=>{if(""!=s){const c=e?.[s];r.push({data:this.parseNumbers(c),type:"line",name:s,smooth:!0,symbol:"none",symbolSize:2,stack:"Total",areaStyle:{opacity:.5},emphasis:{focus:"series"},label:{normal:{}}})}});const a={textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},color:["#234294","#F4396F","#0071C6","#AF52C7","#12BC81"],xAxis:{type:"category",data:o?.map(s=>s?.replace(/\,/g,"-")),axisTick:{alignWithLabel:!0},axisLabel:{showMaxLabel:!1}},tooltip:{trigger:"axis",confine:!0},legend:{data:t,bottom:"0",itemGap:15,formatter:function(s){return"Rewards for the //First Incentivized Testnet"==s?"Rewards for //First Incentivized Testnet":s},legendStyle:{bottom:"0",itemGap:15,textStyle:{fontSize:12,color:"#6e7079e8",rich:{hr:{width:"100%",fontSize:10,height:15}}}}},calculable:!0,grid:{show:!0,top:20,left:30,right:20,bottom:60,containLabel:!0},yAxis:{type:"value",name:"Total Maximum Emissions And Inflation",nameLocation:"middle",nameGap:"60",nameTextStyle:{color:"#333",fontSize:14},max:function(s){return s.max+.2*s.max},axisLabel:{formatter:function(s,c){const p=[{divider:1e6,suffix:"M"},{divider:1e3,suffix:"k"}];for(let d=0;d=p[d].divider)return(s/p[d].divider).toLocaleString()+p[d].suffix;return s}}},series:r,media:this.mediaQueryForChart};this.trasuryChartOptions.options=a}cleanRecordBeforePushingToChart(t){let e=t?.[1];t=t?.slice(2);const o=[];e?.forEach(r=>{const i=e?.findIndex(s=>s===r),a=[];t?.forEach(s=>{a.push(s[i])}),o[r]=a}),e=e?.slice(1)?.slice(0,6),this.bindOptionsToChart(e,o)}parseNumbers(t){return t?.map(e=>parseFloat(e?.replace(/\,/g,"")?.replace(/\$/g,"")))}static#e=this.\u0275fac=function(e){return new(e||dx)(Te(Oi))};static#t=this.\u0275prov=et({token:dx,factory:dx.\u0275fac})};u8=$e([p0()],u8);let yJ=class ux{constructor(t,e){this.sharedStatsService=t,this.http=e,this.chainGovernorsList$=null,this.cloudGovernorsList$=null,this.chainGovernorsRequirement$=null,this.cloudGovernorsRequirement$=null,this.storeChainTechnicalDetails$=null,this.chainGovernorEconomicsAndGovernance$=null,this.cloudGovernorEconomicsAndGovernance$=null,this.chainGovernorAndCloudMinerSharedInfrasInfo$=null,this.otherInfraInfo$=null,this.trendChart$={title:"TRANSACTION HISTORY",type:"transaction",yAxisName:"# of Transactions",tooltip:"Description (in progress)"},this.bindChainGovernorsList(),this.bindCloudGovernorsList(),this.bindChainGovernorsRequirements(),this.bindCloudGovernorsRequirements(),this.bindStoreChainTechnicalDetails(),this.bindBlockMinerEconomicsAndGovernance(),this.bindCloudMinerEconomicsAndGovernance(),this.bindBlockMinerAndCloudMinerSharedInfrasInfo(),this.bindOtherInfraInfo()}getChainGovernorsList(){return this.http.get("/store-chain-api/governors").pipe(ot(this),j(t=>t?.data))}getCloudGovernorsList(){return this.http.get("/store-cloud-api/governors").pipe(ot(this),j(t=>t?.data))}bindChainGovernorsList(){this.chainGovernorsList$={title:"BLOCK MINERS",type:"chain-governor",pageSize:8,columns:[{key:"chainGovernorId",label:"Miner ID",type:"string",tooltip:"Block Miner ID",width:"140px"},{key:"chainGovernorKey",label:"Block Miner Key",type:"hash",trimSize:40,tooltip:"Block Miner Key"},{key:"transactionsProcessed",label:"TXNs Confirmed",type:"number",width:"200px"}],data$:this.getChainGovernorsList()}}bindCloudGovernorsList(){this.cloudGovernorsList$={title:"CLOUD MINERS",type:"cloud-governor",pageSize:8,columns:[{key:"cloudGovernorId",label:"Miner ID",type:"string",tooltip:"Cloud Miner ID",width:"140px"},{key:"cloudGovernorKey",label:"Cloud Miner Key",type:"hash",trimSize:40,trimSizeMobile:20,tooltip:"Cloud Miner Key"},{key:"transactionsProcessed",label:"TXNs Confirmed",type:"number",width:"200px"}],data$:this.getCloudGovernorsList()}}bindChainGovernorsRequirements(){const t=be({label:"TYPE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"PRIMARY",type:"string",inlineSubItems:!0,subItems:{value:"PROXY",type:"string",cssClass:"text-black",subItems:{value:"NGINIX",type:"string",cssClass:"text-black"}}}),e=be({label:"COMPUTE",tooltip:"Description (in progress)",inlineTooltip:!0,value:8,type:"number",symbol:"vCPUS",inlineSubItems:!0,subItems:{value:12,type:"number",symbol:"vCPUS",cssClass:"text-black",subItems:{value:8,type:"number",symbol:"vCPUS",cssClass:"text-black"}}}),o=be({label:"RAM",tooltip:"Description (in progress)",inlineTooltip:!0,value:8,type:"number",symbol:"GB",inlineSubItems:!0,subItems:{value:8,type:"number",symbol:"GB",cssClass:"text-black",subItems:{value:4,type:"number",symbol:"GB",cssClass:"text-black"}}}),r=be({label:"STORAGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:1,type:"number",symbol:"TB SSD",inlineSubItems:!0,subItems:{value:1,type:"number",symbol:"TB SSD",cssClass:"text-black",subItems:{value:.5,type:"number",symbol:"TB SSD",cssClass:"text-black"}}}),i=be({label:"BANDWIDTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"2x 1 GbE",type:"string",inlineSubItems:!0,subItems:{value:"2x 1 GbE",type:"string",cssClass:"text-black",subItems:{value:"2x 1 GbE",type:"string",cssClass:"text-black"}}}),a=be({label:"REPLICAS",tooltip:"Description (in progress)",inlineTooltip:!0,value:2,type:"string",inlineSubItems:!0,subItems:{value:5,type:"string",cssClass:"text-black",subItems:{value:2,type:"string",cssClass:"text-black"}}});this.chainGovernorsRequirement$={title:"BLOCK MINER INFRASTRUCTURE REQUIREMENTS",tooltip:"Description (in progress)",items$:[t,e,o,r,i,a]}}bindCloudGovernorsRequirements(){const t=be({label:"TYPE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"PRIMARY",type:"string",inlineSubItems:!0,subItems:{value:"PROXY",type:"string",cssClass:"text-black",subItems:{value:"NGINIX",type:"string",cssClass:"text-black"}}}),e=be({label:"COMPUTE",tooltip:"Description (in progress)",inlineTooltip:!0,value:8,type:"number",symbol:"vCPUS",inlineSubItems:!0,subItems:{value:16,type:"number",symbol:"vCPUS",cssClass:"text-black",subItems:{value:4,type:"number",symbol:"vCPUS",cssClass:"text-black"}}}),o=be({label:"RAM",tooltip:"Description (in progress)",inlineTooltip:!0,value:8,type:"number",symbol:"GB",inlineSubItems:!0,subItems:{value:16,type:"number",symbol:"GB",cssClass:"text-black",subItems:{value:4,type:"number",symbol:"GB",cssClass:"text-black"}}}),r=be({label:"STORAGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:1,type:"number",symbol:"TB SSD",inlineSubItems:!0,subItems:{value:1,type:"number",symbol:"TB SSD",cssClass:"text-black",subItems:{value:.5,type:"number",symbol:"TB SSD",cssClass:"text-black"}}}),i=be({label:"BANDWIDTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"2x 1 GbE",type:"string",inlineSubItems:!0,subItems:{value:"2x 1 GbE",type:"string",cssClass:"text-black",subItems:{value:"2x 1 GbE",type:"string",cssClass:"text-black"}}}),a=be({label:"REPLICAS",tooltip:"Description (in progress)",inlineTooltip:!0,value:2,type:"string",inlineSubItems:!0,subItems:{value:5,type:"string",cssClass:"text-black",subItems:{value:2,type:"string",cssClass:"text-black"}}});this.cloudGovernorsRequirement$={title:"CLOUD MINER INFRASTRUCTURE REQUIREMENTS",tooltip:"Description (in progress)",items$:[t,e,o,r,i,a]}}bindBlockMinerEconomicsAndGovernance(){const t=this.sharedStatsService.getStorePrice().pipe(ot(this),j(r=>({label:"EST. MONTHLY INFRA COSTS",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",type:"string",symbolPosition:"after",symbol:"($00.00)",symbolCssClass:"text-light"}))),e=this.sharedStatsService.getStorePrice().pipe(ot(this),j(r=>({label:"SHARE OF REVENUES",tooltip:"Description (in progress)",inlineTooltip:!0,value:"TO BE VOTED ON",type:"string"}))),o=this.sharedStatsService.getStorePrice().pipe(ot(this),j(r=>({label:"GOVERNANCE VOTES",tooltip:"Description (in progress)",inlineTooltip:!0,value:"NONE",type:"string"})));this.chainGovernorEconomicsAndGovernance$={title:"BLOCK MINER ECONOMICS AND GOVERNANCE",tooltip:"Description (in progress)",items$:[t,e,o]}}bindCloudMinerEconomicsAndGovernance(){const t=this.sharedStatsService.getStorePrice().pipe(ot(this),j(r=>({label:"EST. MONTHLY INFRA COSTS",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",type:"string",symbolPosition:"after",symbol:"($00.00)",symbolCssClass:"text-light"}))),e=this.sharedStatsService.getStorePrice().pipe(ot(this),j(r=>({label:"SHARE OF REVENUES",tooltip:"Description (in progress)",inlineTooltip:!0,value:"65% AT LAUNCH",type:"string"}))),o=this.sharedStatsService.getStorePrice().pipe(ot(this),j(r=>({label:"GOVERNANCE VOTES",tooltip:"Description (in progress)",inlineTooltip:!0,value:"1 AT LAUNCH",type:"string"})));this.cloudGovernorEconomicsAndGovernance$={title:"CLOUD MINER ECONOMICS AND GOVERNANCE",tooltip:"Description (in progress)",items$:[t,e,o]}}bindBlockMinerAndCloudMinerSharedInfrasInfo(){const t=this.sharedStatsService.getStorePrice().pipe(ot(this),j(s=>({label:"TYPE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"REPLICA",type:"string"}))),e=this.sharedStatsService.getStorePrice().pipe(ot(this),j(s=>({label:"COMPUTE",tooltip:"Description (in progress)",inlineTooltip:!0,value:64,symbol:"vCPUS",type:"string"}))),o=this.sharedStatsService.getStorePrice().pipe(ot(this),j(s=>({label:"RAM",tooltip:"Description (in progress)",inlineTooltip:!0,value:128,type:"number",symbol:"GB"}))),r=this.sharedStatsService.getStorePrice().pipe(ot(this),j(s=>({label:"STORAGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:4,type:"number",symbol:"TB SSD"}))),i=this.sharedStatsService.getStorePrice().pipe(ot(this),j(s=>({label:"BANDWIDTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"2x 40 GbE",type:"string"}))),a=this.sharedStatsService.getStorePrice().pipe(ot(this),j(s=>({label:"REPLICAS",tooltip:"Description (in progress)",inlineTooltip:!0,value:5,type:"string"})));this.chainGovernorAndCloudMinerSharedInfrasInfo$={title:"BLOCK MINER AND CLOUD MINER SHARED INFRASTRUCTURE REQUIREMENTS",tooltip:"Description (in progress)",items$:[t,e,o,r,i,a]}}bindOtherInfraInfo(){const t=this.sharedStatsService.getStorePrice().pipe(ot(this),j(e=>({label:"",tooltip:"Description (in progress)",inlineTooltip:!0,value:"Each miner has a primary instance and a proxy Instance. The proxy server sits next to the database replica. As STORE grows, through governance, miners vote to upgrade infrastructure , expand to new data centers, and add more nodes. As demand for STORE apps grow, it\u2019s likely that Edge miners emerge.",cssClass:"text-light infra-info-text",type:"string"})));this.otherInfraInfo$={title:"OTHER INFRASTRUCTURE INFORMATION",tooltip:"Description (in progress)",items$:[t]}}bindStoreChainTechnicalDetails(){const t=this.sharedStatsService.getStorePrice().pipe(ot(this),j(c=>({label:"MINIMUM BFT",tooltip:"Description (in progress)",inlineTooltip:!0,value:"N = 3F + 1",type:"string"}))),e=this.sharedStatsService.getStorePrice().pipe(ot(this),j(c=>({label:"MINER SIGNATURES REQUIRED",tooltip:"Description (in progress)",inlineTooltip:!0,value:"2/3+",type:"string"}))),o=this.sharedStatsService.getStorePrice().pipe(ot(this),j(c=>({label:"TIME-TO-FINALITY",tooltip:"Description (in progress)",inlineTooltip:!0,value:c,symbol:"ms",type:"number"}))),r=this.sharedStatsService.getStorePrice().pipe(ot(this),j(c=>({label:"LATENCY",tooltip:"Description (in progress)",inlineTooltip:!0,value:c,type:"number",symbol:"ms"}))),i=this.sharedStatsService.getStorePrice().pipe(ot(this),j(c=>({label:"TPS CAPACITY",tooltip:"Description (in progress)",inlineTooltip:!0,value:c,type:"number"}))),a=this.sharedStatsService.getStorePrice().pipe(ot(this),j(c=>({label:"DATABASE SIZE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0.000",symbol:"GB",type:"string"}))),s=this.sharedStatsService.getStorePrice().pipe(ot(this),j(c=>({label:"DATABASE COPIES",tooltip:"Description (in progress)",inlineTooltip:!0,value:5,type:"number",symbolPosition:"after",symbol:"(99.99999999%)",symbolCssClass:"text-light"})));this.storeChainTechnicalDetails$={title:"STORE CHAIN TECHNICAL DETAILS",tooltip:"Description (in progress)",items$:[t,e,o,r,i,a,s]}}static#e=this.\u0275fac=function(e){return new(e||ux)(Te(Oi),Te(q0))};static#t=this.\u0275prov=et({token:ux,factory:ux.\u0275fac})};function bwe(n,t){if(1&n&&de(0,"storecloud-tooltip",19),2&n){const e=ce(3);T("tooltip",null==e.table$?null:e.table$.tooltip)}}yJ=$e([p0()],yJ);const gwe=function(){return{class:"card-desktop"}};function Owe(n,t){if(1&n&&(m(0,"div",15),l(1,"\n "),m(2,"p",16),l(3),J(4,bwe,1,1,"storecloud-tooltip",17),l(5,"\n "),_(),l(6,"\n "),Ye(7,18),l(8,"\n "),He(),l(9,"\n "),_()),2&n){const e=ce(2),o=gt(47);P(3),Ct("\n ",null==e.table$?null:e.table$.title,"\n "),P(1),T("ngIf",null==e.table$?null:e.table$.tooltip),P(3),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Et(4,gwe))}}function mwe(n,t){if(1&n&&de(0,"storecloud-shared-table-pagination",20),2&n){const e=ce(2);T("tableService",e.tableService)("total$",e.total$)}}function _we(n,t){if(1&n&&(m(0,"div",12),l(1,"\n "),J(2,Owe,10,5,"div",13),l(3,"\n "),J(4,mwe,1,2,"storecloud-shared-table-pagination",14),l(5,"\n "),_()),2&n){const e=ce();P(2),T("ngIf",null==e.table$?null:e.table$.title),P(2),T("ngIf",!(null!=e.table$&&e.table$.disablePagination))}}function zwe(n,t){if(1&n&&(m(0,"storecloud-tooltip",19),l(1," "),_()),2&n){const e=ce(2).$implicit;T("tooltip",null==e?null:e.tooltip)}}function vwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"span"),l(3),J(4,zwe,2,1,"storecloud-tooltip",17),l(5,"\n "),_(),l(6,"\n "),He()),2&n){const e=ce().$implicit;P(3),Ct("",null==e?null:e.label,"\n "),P(1),T("ngIf",null==e?null:e.tooltip)}}function Awe(n,t){if(1&n&&(Ye(0),l(1),He()),2&n){const e=ce().$implicit;P(1),Ct("\n ",null==e?null:e.label,"\n ")}}const ywe=function(n){return{width:n}};function Cwe(n,t){if(1&n){const e=b1();m(0,"th",21),yt("sort",function(r){return R0(e),v0(ce().onSort(r))}),l(1,"\n "),J(2,vwe,7,2,"ng-container",8),l(3,"\n "),J(4,Awe,2,1,"ng-container",8),l(5,"\n "),_()}if(2&n){const e=t.$implicit;Hc(null==e?null:e.cssClass),co("sortable",null==e?null:e.key),T("ngStyle",Ht(7,ywe,(null==e?null:e.width)||"auto")),P(2),T("ngIf",null==e?null:e.tooltip),P(2),T("ngIf",!(null!=e&&e.tooltip))}}const wwe=function(n,t,e){return{height:n,stateCount:t,icon:e}},f8=function(n){return{setting:n}};function Pwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,18),l(3,"\n "),He()),2&n){const e=ce().$implicit,o=ce(),r=gt(41);P(2),T("ngTemplateOutlet",r)("ngTemplateOutletContext",Ht(6,f8,p7(2,wwe,null==o.table$?null:o.table$.loadingHeight,null==e?null:e.stateCount,null==e?null:e.icon)))}}function xwe(n,t){if(1&n&&de(0,"storecloud-shared-value-formatter",26),2&n){const e=ce().$implicit;T("item",e)("cssClass",null==e?null:e.cssClass)("iconSize",14)}}function qwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,xwe,1,3,"storecloud-shared-value-formatter",25),l(3,"\n "),He()),2&n){const e=t.$implicit;P(2),T("ngIf",e)}}function Wwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"td"),l(3,"\n "),m(4,"div",23),l(5,"\n "),m(6,"storecloud-shared-value-formatter",24),l(7,"\n "),_(),l(8,"\n "),J(9,qwe,4,1,"ng-container",22),l(10,"\n "),_(),l(11,"\n "),_(),l(12,"\n "),He()),2&n){const e=t.$implicit,o=ce(2).$implicit,r=ce();let i;P(2),lu("",null==e?null:e.cssClass," ",null==e?null:e.type,""),P(4),T("item",r.prepareItem(e,o[null==e?null:e.key]))("iconSize",null!==(i=null==o[null==e?null:e.key]?null:o[null==e?null:e.key].valueIconSize)&&void 0!==i?i:14),P(3),T("ngForOf",r.getAllSubItems(r.prepareItem(e,o[null==e?null:e.key])))}}function Lwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,Wwe,13,7,"ng-container",22),l(3,"\n "),He()),2&n){const e=ce(2);P(2),T("ngForOf",null==e.table$?null:e.table$.columns)}}function Twe(n,t){if(1&n&&(m(0,"tr"),l(1,"\n "),J(2,Pwe,4,8,"ng-container",8),l(3,"\n "),J(4,Lwe,4,1,"ng-container",8),l(5,"\n "),_()),2&n){const e=t.$implicit;P(2),T("ngIf",null==e?null:e.stateCount),P(2),T("ngIf",!(null!=e&&e.stateCount))}}const CJ=function(n){return{height:n}};function Rwe(n,t){if(1&n&&(m(0,"td",28),l(1,"\n "),g0(2,18),l(3,"\n "),_()),2&n){const e=ce(3),o=gt(44);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(4,f8,Ht(2,CJ,null==e.table$?null:e.table$.loadingHeight)))}}function Swe(n,t){if(1&n&&(m(0,"tr"),l(1,"\n "),J(2,Rwe,4,6,"td",27),l(3,"\n "),_()),2&n){const e=ce(2);P(2),T("ngForOf",null==e.table$?null:e.table$.columns)("ngForTrackBy",e.trackByFuntion)}}function Dwe(n,t){if(1&n&&(m(0,"tbody"),l(1,"\n "),J(2,Swe,4,2,"tr",22),l(3,"\n "),_()),2&n){const e=ce();P(2),T("ngForOf",e.convertPageSizeIntoArray(null==e.tableService?null:e.tableService.pageSize))}}function kwe(n,t){1&n&&(m(0,"tbody"),l(1,"\n "),m(2,"tr"),l(3,"\n "),m(4,"td",29),l(5,"No record exist"),_(),l(6,"\n "),_(),l(7,"\n "),_())}function Ewe(n,t){if(1&n&&(m(0,"div",34),l(1,"\n "),de(2,"storecloud-icon",35),l(3,"\n "),_()),2&n){const e=ce(2).setting;P(2),T("icon",null==e?null:e.icon)("size",18)}}function Iwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),Ye(2,18),l(3,"\n "),He(),l(4,"\n "),He()),2&n){const e=ce(3),o=gt(44);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(4,f8,Ht(2,CJ,null==e.table$?null:e.table$.loadingHeight)))}}function Nwe(n,t){if(1&n&&(m(0,"td",32),l(1,"\n "),J(2,Ewe,4,2,"div",33),l(3,"\n "),J(4,Iwe,5,6,"ng-container",8),l(5,"\n "),_()),2&n){const e=t.index;P(2),T("ngIf",0===e),P(2),T("ngIf",e>0)}}function Bwe(n,t){if(1&n&&(l(0,"\n "),Ye(1,30),l(2,"\n "),J(3,Nwe,6,2,"td",31),l(4,"\n "),He(),l(5,"\n")),2&n){const e=ce();P(3),T("ngForOf",null==e.table$?null:e.table$.columns)("ngForTrackBy",e.trackByFuntion)}}const Fwe=function(){return{display:"contents"}},Ywe=function(n){return{"margin-top":"5px","margin-bottom":"5px",height:n}};function Hwe(n,t){if(1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",36),l(2,"\n")),2&n){const e=t.setting;P(1),T("ngStyle",Et(2,Fwe))("theme",Ht(3,Ywe,((null==e?null:e.height)||29.5)+"px"))}}function Xwe(n,t){if(1&n&&(m(0,"storecloud-shared-table-status-filter",38),l(1,"\n "),_()),2&n){const e=ce().class,o=ce();Hc(e),T("tableService",o.tableService)("filter",null==o.table$?null:o.table$.filters)}}function jwe(n,t){if(1&n&&(l(0,"\n "),J(1,Xwe,2,5,"storecloud-shared-table-status-filter",37),l(2,"\n")),2&n){const e=ce();P(1),T("ngIf","status"===(null==e.table$||null==e.table$.filters?null:e.table$.filters.type))}}const Uwe=function(n){return{card:n}};let Wd=class cE{set refresh$(t){t.pipe(ot(this)).subscribe(e=>{if((e.state===no.State.Requested||e.state===no.State.Block_Added||e.state===no.State.Network_Updated)&&("block"===this.table$?.type||"transaction"===this.table$?.type)&&e?.count&&1===this.tableService?.page){const o=this.putIntoStateChangeLoading(this.table$?.type,e);this.result=o}this.tableService&&e.state===no.State.Completed&&(this.tableService.disableResetData=e?.disableLoading||!1,this.tableService.searchTerm="")})}set data$(t){t?.pipe(ot(this)).subscribe(e=>{this.result=e,this.tableService&&0===e.length&&(this.tableService.loading=!1)})}set table$(t){this._table$=t,this.tableService=new UD(this.http,t?.data$,t?.serviceAPIUrl,t?.map),this.tableService.pageSize=t?.pageSize||8,this.tableService.data$.pipe(ot(this)).subscribe(e=>{this.tableService&&(this.tableService.disableResetData=!1),this.result=e}),this.total$=this.tableService.numOfPages$.pipe(ot(this))}get table$(){return this._table$}constructor(t){this.http=t,this.tableCssClass=null,this.disabledCardClass=!1,this.total$=null,this._table$=null}trackByFuntion(t,e){return e?.from??e?.to??t?.id}prepareItem(t,e){return"progress-status"===t?.type||"block-status"===t?.type?{type:t?.type,value:e}:"custom-col"===t?.type?{...t,...e,link:t?.link||e?.link?t?.withOutIdLink?t?.valueLink?e?.value:t?.link||e?.link:`${t?.link||e?.link}/${e?.value}`:null}:{...t,value:e,link:t?.link?t?.withOutIdLink?t?.valueLink?e:t?.link:`${t?.link}/${e}`:null}}onSort({}){}convertPageSizeIntoArray(t){return Array(t??8).fill(!0)}getAllSubItems(t){return this.getAllSubItemsChildren(t)}getAllSubItemsChildren(t){const e=[],o=t?.subItems;if(e.push(o),o?.subItems){const r=this.getAllSubItemsChildren(o);e.push(...r)}return e}putIntoStateChangeLoading(t,e){let o=this.result||[];const r=o?.length||0;o=e?.state===no.State.Requested?o?.slice(0,r-(e?.count?.[t]&&e?.count?.[t]>r?r:e?.count?.[t]||0)):o?.filter(c=>!c?.stateCount);const a=e?.count?.[t]>r?r:e?.count?.[t];let s="box_animated";switch(e?.state){case no.State.Requested:s="block"===t?"box_animated":"clock_animated";break;case no.State.Block_Added:case no.State.Network_Updated:s="box_animated"}for(let c=0;c{class n{constructor(){this.cloudSpaceFee={store:0,usd:0}}set size(e){this.calculateGasFee(e)}calculateGasFee(e){const a=e/Xe.one$STOREEqualToOneByte,s=a*Xe.storePriceUSD;this.cloudSpaceFee.store=a||0,this.cloudSpaceFee.usd=s||0}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275cmp=Rt({type:n,selectors:[["storecloud-cloudspace-fee"]],inputs:{size:"size"},decls:29,vars:16,consts:[[1,"cloud-space-fee"],[1,"cloud-space-fee-heading"],[1,"icons",3,"icon","size"],[3,"tooltip","placement"],[1,"cloud-space-fee-desc"]],template:function(o,r){1&o&&(m(0,"div",0),l(1,"\n "),m(2,"div",1),l(3,"\n "),de(4,"storecloud-icon",2),l(5,"\n "),m(6,"h1"),l(7,"Cloudspace Fee"),_(),l(8,"\n "),de(9,"storecloud-tooltip",3),l(10,"\n "),_(),l(11,"\n "),m(12,"div",4),l(13,"\n "),de(14,"storecloud-icon",2),l(15,"\n "),m(16,"h2"),l(17),pt(18,"number"),_(),l(19,"\n "),m(20,"p"),l(21),pt(22,"currency"),_(),l(23,"\n "),m(24,"p"),l(25,"(+1.00x Mint Price)"),_(),l(26,"\n "),_(),l(27,"\n"),_(),l(28,"\n")),2&o&&(P(4),T("icon","store-logo-only")("size",14),P(5),T("tooltip","Description in Progress")("placement","top-start"),P(5),T("icon","store-logo-only")("size",14),P(3),t0(_o(18,8,(null==r.cloudSpaceFee?null:r.cloudSpaceFee.store)||0,"1.4-12")),P(4),Ct("(",ga(22,11,(null==r.cloudSpaceFee?null:r.cloudSpaceFee.usd)||0,"USD","symbol","1.4-12"),")"))},dependencies:[br,Yi,$l,hg],styles:[".cloud-space-fee[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%]{display:flex;align-items:center}.cloud-space-fee[_ngcontent-%COMP%]{padding:12px 35px;border-bottom:1px solid #dcebeb;gap:13px}@media screen and (max-width: 768px){.cloud-space-fee[_ngcontent-%COMP%]{padding:12px 20px}}.cloud-space-fee[_ngcontent-%COMP%] .gradient[_ngcontent-%COMP%]{height:8px;background:#1db0a9}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%]{gap:5px}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:600}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%]{gap:3px}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#888}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:#111}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem;padding-top:2px}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.17rem}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.1rem}}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8rem}}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%]{width:12px}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%]{width:10px}}"]})}return n})();function Vwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,10),l(3,"\n "),He()),2&n){ce();const e=gt(20);P(2),T("ngTemplateOutlet",e)}}const wJ=function(n){return{groupedItems:n}};function $we(n,t){if(1&n&&(Ye(0),l(1,"\n "),l(2,"\n "),Ye(3,12),l(4,"\n "),He(),l(5,"\n "),He()),2&n){const e=t.ngIf;ce(2);const o=gt(14);P(3),T("ngTemplateOutletContext",Ht(2,wJ,e))("ngTemplateOutlet",o)}}function Gwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,$we,6,4,"ng-container",11),l(3,"\n "),He()),2&n){const e=ce(),o=gt(26);P(2),T("ngIf",null==e.stats$?null:e.stats$.groupedItems)("ngIfElse",o)}}const Zwe=function(n){return{groupedItem:n}};function Kwe(n,t){if(1&n&&(Ye(0,12),l(1,"\n "),He()),2&n){const e=ce().$implicit;ce(2);const o=gt(17);T("ngTemplateOutletContext",Ht(2,Zwe,e))("ngTemplateOutlet",o)}}function Jwe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,Kwe,2,4,"ng-container",14),l(3,"\n "),He()),2&n){const e=t.$implicit;P(2),T("ngIf",null==e?null:e.name)}}function Qwe(n,t){if(1&n&&(l(0,"\n "),J(1,Jwe,4,1,"ng-container",13),l(2,"\n")),2&n){const e=t.groupedItems;P(1),T("ngForOf",e)}}function ePe(n,t){if(1&n&&de(0,"storecloud-tooltip",19),2&n){const e=ce().groupedItem;T("placement","top-end")("tooltip",null==e?null:e.tooltip)}}const PJ=function(n){return{item:n}};function tPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),Ye(2,12),l(3,"\n "),He(),l(4,"\n "),He()),2&n){const e=t.ngIf;ce(4);const o=gt(23);P(2),T("ngTemplateOutletContext",Ht(2,PJ,e))("ngTemplateOutlet",o)}}function nPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,tPe,5,4,"ng-container",11),pt(3,"async"),l(4,"\n "),He()),2&n){const e=t.$implicit;ce(3);const o=gt(26);P(2),T("ngIf",a0(3,2,e))("ngIfElse",o)}}function oPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),Ye(2,12),l(3,"\n "),He(),l(4,"\n "),He()),2&n){const e=ce(2).groupedItem;ce();const o=gt(14);P(2),T("ngTemplateOutletContext",Ht(2,wJ,null==e?null:e.groupedItems))("ngTemplateOutlet",o)}}function rPe(n,t){if(1&n&&(Ye(0),l(1,"\n\n\n "),J(2,nPe,5,4,"ng-container",13),l(3,"\n\n\n "),J(4,oPe,5,4,"ng-container",2),l(5,"\n "),He()),2&n){const e=ce().groupedItem;P(2),T("ngForOf",null==e?null:e.items$),P(2),T("ngIf",null==e?null:e.groupedItems)}}const iPe=function(){return{enable:!0}};function aPe(n,t){if(1&n){const e=b1();l(0,"\n\n "),m(1,"div",15),yt("click",function(){const i=R0(e).groupedItem;return v0(i.show=!(null!=i&&i.show))}),l(2,"\n "),m(3,"div",16),l(4,"\n "),m(5,"p",17),l(6),_(),l(7,"\n "),J(8,ePe,1,2,"storecloud-tooltip",18),l(9,"\n "),_(),l(10,"\n "),Ye(11,12),l(12,"\n "),He(),l(13,"\n "),_(),l(14,"\n\n "),m(15,"div"),l(16,"\n "),J(17,rPe,6,2,"ng-container",2),l(18,"\n "),_(),l(19,"\n")}if(2&n){const e=t.groupedItem,o=ce(),r=gt(32);P(1),lu("basic d-flex-g-14 b-0 clickable group-title-row data-div ",e.show?"active":""," ",e.indent?"indent-level-"+e.indent:"",""),P(5),t0(null==e?null:e.name),P(2),T("ngIf","basic"===o.type&&(null==e?null:e.tooltip)),P(3),T("ngTemplateOutletContext",Et(13,iPe))("ngTemplateOutlet",r),P(4),lu("bb-4 ",null!=e&&e.groupedItems&&null!=e&&e.show?"has-child-items":e.indent?"indent-level-"+e.indent:""," ",null!=e&&e.reverseFlex?"reverse-flex-basis":"",""),P(2),T("ngIf",e.show)}}function sPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),g0(2,12),l(3,"\n "),He()),2&n){const e=t.ngIf;ce(3);const o=gt(23);P(2),T("ngTemplateOutletContext",Ht(2,PJ,e))("ngTemplateOutlet",o)}}function cPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,sPe,4,4,"ng-container",11),pt(3,"async"),l(4,"\n "),He()),2&n){const e=t.$implicit;ce(2);const o=gt(26);P(2),T("ngIf",a0(3,2,e))("ngIfElse",o)}}function lPe(n,t){if(1&n&&(l(0),pt(1,"json"),J(2,cPe,5,4,"ng-container",13),l(3,"\n")),2&n){const e=ce();Ct("\n ",a0(1,2,null==e.stats$?null:e.stats$.items),"\n "),P(2),T("ngForOf",null==e.stats$?null:e.stats$.items$)}}function pPe(n,t){if(1&n&&de(0,"storecloud-tooltip",19),2&n){const e=ce(3).item;T("placement","top-end")("tooltip",null==e?null:e.tooltip)}}function dPe(n,t){if(1&n&&de(0,"storecloud-icon",24),2&n){const e=ce(3).item;T("icon",null==e?null:e.icon)("size",14)}}function uPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"span",25),l(3),_(),l(4,"\n "),He()),2&n){const e=ce(3).item;P(3),t0(null==e?null:e.preLabel)}}function fPe(n,t){if(1&n&&de(0,"storecloud-tooltip",19),2&n){const e=ce(3).item;T("placement","top-end")("tooltip",null==e?null:e.tooltip)}}function hPe(n,t){if(1&n&&(m(0,"p"),l(1,"\n "),J(2,pPe,1,2,"storecloud-tooltip",18),l(3,"\n "),J(4,dPe,1,2,"storecloud-icon",22),l(5,"\n "),J(6,uPe,5,1,"ng-container",2),l(7,"\n "),de(8,"span",23),l(9,"\n "),J(10,fPe,1,2,"storecloud-tooltip",18),l(11,"\n "),_()),2&n){const e=ce(2).item,o=ce();xn("",null!=e&&e.labelCssClass?null==e?null:e.labelCssClass:"text-black"," d-flex flex-basis-20"),P(2),T("ngIf","basic"===o.type&&(null==e?null:e.tooltip)),P(2),T("ngIf",null==e?null:e.icon),P(2),T("ngIf",null==e?null:e.preLabel),P(2),T("innerHTML",null==e?null:e.label,Kf),P(2),T("ngIf","nft-view"===o.type&&(null==e?null:e.tooltip))}}function MPe(n,t){if(1&n){const e=b1();m(0,"storecloud-shared-value-formatter",26),yt("click",function(){R0(e);const r=ce().$implicit;return v0(ce(4).clicked(r))}),_()}if(2&n){const e=ce().$implicit;T("cssClass",null==e?null:e.cssClass)("iconSize",14)("item",e)}}function bPe(n,t){if(1&n&&de(0,"storecloud-tooltip",19),2&n){const e=ce(4).item;T("placement","top-end")("tooltip",null==e?null:e.valueTooltip)}}function gPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,MPe,1,3,"storecloud-shared-value-formatter",27),l(3,"\n "),J(4,bPe,1,2,"storecloud-tooltip",18),l(5,"\n "),He()),2&n){const e=t.$implicit,o=ce(3).item;P(2),T("ngIf",e),P(2),T("ngIf",null==o?null:o.valueTooltip)}}function OPe(n,t){if(1&n){const e=b1();m(0,"div"),l(1,"\n "),m(2,"storecloud-shared-value-formatter",26),yt("click",function(){R0(e);const r=ce(2).item;return v0(ce().clicked(r))}),_(),l(3,"\n\n "),J(4,gPe,6,2,"ng-container",13),l(5,"\n "),_()}if(2&n){const e=ce(2).item,o=ce();lu("d-flex g-1-half flex-basis-80 ",null==e?null:e.parentCssClass," ","column"===(null==e?null:e.direction)?"d-flex-column":"",""),P(2),T("cssClass",(null==e?null:e.cssClass)||"text-black")("iconSize",14)("item",e),P(2),T("ngForOf",o.getAllSubItems(e))}}const mPe=function(n){return{nft:n}};function _Pe(n,t){if(1&n&&(m(0,"div",28),l(1,"\n "),g0(2,12),l(3,"\n "),_()),2&n){const e=ce(2).item;ce();const o=gt(29);P(2),T("ngTemplateOutletContext",Ht(2,mPe,null==e?null:e.value))("ngTemplateOutlet",o)}}function zPe(n,t){if(1&n&&(m(0,"div"),l(1,"\n "),m(2,"div"),l(3,"\n "),J(4,hPe,12,8,"p",20),l(5,"\n "),J(6,OPe,6,8,"div",20),l(7,"\n "),J(8,_Pe,4,4,"div",21),l(9,"\n "),_(),l(10,"\n "),_()),2&n){const e=ce().item,o=ce();bN("d-flex-g-14 ",o.type," ",o.enableBorderOnLast?"border-last":""," ",null!=e&&e.hideBorderBottom?"hide-bottom-border":"",""),P(2),xn("data-div ","cloudId"===(null==e?null:e.type)?"align-start":"",""),P(2),T("ngIf",!(null!=e&&e.hideLabel)),P(2),T("ngIf","cloudId"!==(null==e?null:e.type)&&(void 0!==(null==e?null:e.value)||null!==(null==e?null:e.value))),P(2),T("ngIf","cloudId"===(null==e?null:e.type))}}function vPe(n,t){if(1&n&&(l(0,"\n "),J(1,zPe,11,11,"div",20),l(2,"\n")),2&n){const e=t.item;P(1),T("ngIf",!(null!=e&&e.disabled))}}const APe=function(){return{display:"block",padding:"0 15px"}},yPe=function(){return{"margin-top":"8px",height:"25px"}};function CPe(n,t){if(1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",29),l(2,"\n")),2&n){const e=ce();P(1),co("count",e.loadingCount),T("ngStyle",Et(3,APe))("theme",Et(4,yPe))}}function wPe(n,t){if(1&n&&(m(0,"p",37),l(1),_()),2&n){const e=ce(2).nft;P(1),t0(null==e?null:e.description)}}function PPe(n,t){if(1&n&&(m(0,"div",34),l(1,"\n "),m(2,"p",35),l(3),_(),l(4,"\n "),J(5,wPe,2,1,"p",36),l(6,"\n "),_()),2&n){const e=ce().nft;P(3),t0(null==e?null:e.name),P(2),T("ngIf",null==e?null:e.description)}}function xPe(n,t){if(1&n&&(l(0,"\n "),m(1,"div",30),l(2,"\n "),m(3,"div",31),l(4,"\n "),de(5,"storecloud-permanent-storage-nft-stamp-image",32),l(6,"\n "),_(),l(7,"\n "),J(8,PPe,7,2,"div",33),l(9,"\n "),_(),l(10,"\n")),2&n){const e=t.nft;P(5),T("nft",e)("type","detail"),P(3),T("ngIf",(null==e?null:e.name)||(null==e?null:e.description))}}const qPe=function(n){return{stroke:n}};function WPe(n,t){if(1&n&&(l(0,"\n "),m(1,"div",38),l(2,"\n "),Di(),m(3,"svg",39),l(4,"\n "),de(5,"polyline",40),l(6,"\n "),_(),l(7,"\n "),_(),l(8,"\n")),2&n){const e=t.enable;P(1),T("ngStyle",Ht(1,qPe,e?"#1db0a9":"#888"))}}const LPe=function(n,t){return{card:n,"flex-col-between":t,"p-0":!0}};let bM=class lE{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3,this.type="basic",this.enableBorderOnLast=!1,this.subItemClicked=new G1}ngOnInit(){}getAllSubItems(t){return this.getAllSubItemsChildren(t)}getAllSubItemsChildren(t){const e=[],o=t?.subItems;if(e.push(o),o?.subItems){const r=this.getAllSubItemsChildren(o);e.push(...r)}return e}clicked(t){t?.event&&this.subItemClicked.emit(t)}static#e=this.\u0275fac=function(e){return new(e||lE)};static#t=this.\u0275cmp=Rt({type:lE,selectors:[["storecloud-shared-stats-card-detail"]],inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount",type:"type",enableBorderOnLast:"enableBorderOnLast"},outputs:{subItemClicked:"subItemClicked"},decls:35,vars:6,consts:[[3,"ngClass"],[1,"content","p-0"],[4,"ngIf"],["groupedItemTemp",""],["groupedItemRowsTemp",""],["singleTemplate",""],["itemTemplate",""],["loader3",""],["cloudId",""],["chevronDown",""],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutletContext","ngTemplateOutlet",4,"ngIf"],[3,"click"],[1,"d-flex","g-1","flex-basis-20"],[1,"text-black","teal"],[3,"placement","tooltip",4,"ngIf"],[3,"placement","tooltip"],[3,"class",4,"ngIf"],["class","d-flex g-1-half flex-basis-80",4,"ngIf"],[3,"icon","size",4,"ngIf"],[3,"innerHTML"],[3,"icon","size"],[1,"text-black-light","text-12px","p-8-10","badge"],[3,"cssClass","iconSize","item","click"],[3,"cssClass","iconSize","item","click",4,"ngIf"],[1,"d-flex","g-1-half","flex-basis-80"],["animation","progress",1,"loader-for-all",3,"ngStyle","theme","count"],[1,"cloudId-container"],[1,"cloudId-image","stats-card-detail-cloudId"],[3,"nft","type"],["class","cloudId-details",4,"ngIf"],[1,"cloudId-details"],[1,"title"],["class","desc",4,"ngIf"],[1,"desc"],[1,"chevron-down","flex-basis-80",3,"ngStyle"],["fill","none","height","24","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","viewBox","0 0 24 24","width","24","xmlns","http://www.w3.org/2000/svg"],["points","6 9 12 15 18 9"]],template:function(e,o){1&e&&(m(0,"div",0),l(1,"\n "),Ye(2),l(3,"\n "),m(4,"div",1),l(5,"\n "),J(6,Vwe,4,1,"ng-container",2),l(7,"\n "),J(8,Gwe,4,2,"ng-container",2),l(9,"\n "),_(),l(10,"\n "),He(),l(11,"\n"),_(),l(12,"\n\n"),J(13,Qwe,3,1,"ng-template",null,3,$t),l(15,"\n\n"),J(16,aPe,20,14,"ng-template",null,4,$t),l(18,"\n\n"),J(19,lPe,4,4,"ng-template",null,5,$t),l(21,"\n\n"),J(22,vPe,3,1,"ng-template",null,6,$t),l(24,"\n"),J(25,CPe,3,5,"ng-template",null,7,$t),l(27,"\n"),J(28,xPe,11,3,"ng-template",null,8,$t),l(30,"\n\n"),J(31,WPe,9,3,"ng-template",null,9,$t),l(33,"\n\n"),l(34,"\n")),2&e&&(T("ngClass",wr(3,LPe,!o.disableCardClass,!o.disableCardClass)),P(6),T("ngIf",null==o.stats$||null==o.stats$.available?null:o.stats$.available.items$),P(2),T("ngIf",null==o.stats$||null==o.stats$.available?null:o.stats$.available.groupedItems))},styles:[".data-div[_ngcontent-%COMP%]{flex-direction:row!important;width:100%}.data-div[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:20%;gap:5px;align-items:center}.data-div[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:80%;align-items:center}.data-div[_ngcontent-%COMP%] .d-flex-column[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:5px!important}.data-div.align-start[_ngcontent-%COMP%]{align-items:flex-start}.data-div.group-title-row[_ngcontent-%COMP%]{border-bottom:0px!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div[_ngcontent-%COMP%]{gap:40px}.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%]{border-top:1px solid #1db0a9!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:80%!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:20%!important}.reverse-flex-basis[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:40%!important}.reverse-flex-basis[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:60%!important}.cloudId-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 9fr;gap:20px}.cloudId-container[_ngcontent-%COMP%] .cloudId-image[_ngcontent-%COMP%]{display:flex;align-items:center;height:293px;width:293px;justify-content:center}.cloudId-container[_ngcontent-%COMP%] .cloudId-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #d0d0d0}.cloudId-container[_ngcontent-%COMP%] .cloudId-details[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;line-height:1.3;white-space:pre-line}.p-0[_ngcontent-%COMP%]{padding:0!important}.chevron-down[_ngcontent-%COMP%]{display:flex;margin-left:-3px;justify-content:flex-end}.bb-4[_ngcontent-%COMP%]:not(:last-child){border-bottom:3px solid #1db0a9}.bb-4.has-child-items[_ngcontent-%COMP%]{padding-left:20px;border-top:0px solid #1db0a9}.bb-4.has-child-items[_ngcontent-%COMP%] .has-child-items[_ngcontent-%COMP%]{padding-left:0}.bb-4.has-child-items[_ngcontent-%COMP%] .bb-4[_ngcontent-%COMP%]:not(:last-child){border-bottom:0px solid #1db0a9}.bb-4.indent-level-1[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #1db0a9}.bb-4[_ngcontent-%COMP%] .indent-level-2[_ngcontent-%COMP%]{padding-left:30px}.bb-4[_ngcontent-%COMP%] .indent-level-3[_ngcontent-%COMP%]{padding-left:40px}.clickable[_ngcontent-%COMP%]{padding:10px 15px}.clickable[_ngcontent-%COMP%] .chevron-down[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:hover{animation:up-down 2s;animation-iteration-count:infinite} .clickable.active .chevron-down svg{transition:transform .2s;transform:rotate(180deg)} .stats-card-detail-cloudId storecloud-permanent-storage-nft-stamp-image{display:contents} .stats-card-detail-cloudId storecloud-permanent-storage-nft-stamp-image .detail-image .default-img{border-radius:4px;width:100%;height:300px;display:block}@media screen and (max-width: 800px){.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:80%!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:20%!important}}@media screen and (max-width: 525px){.cloudId-container[_ngcontent-%COMP%]{grid-template-columns:1fr}.cloudId-container[_ngcontent-%COMP%] .cloudId-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:240px!important}.data-div[_ngcontent-%COMP%]{flex-direction:column!important}.data-div[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:100%!important}.data-div[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{margin-left:15px;flex-basis:100%!important}.data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:80%!important}.data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:20%!important} .loader-for-all .loader{height:44px!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div[_ngcontent-%COMP%]{gap:5px} .stats-card-detail-cloudId storecloud-permanent-storage-nft-stamp-image{display:contents} .stats-card-detail-cloudId storecloud-permanent-storage-nft-stamp-image .detail-image .default-img{border-radius:4px;width:100%!important;height:300px!important;display:block}.clickable.data-div[_ngcontent-%COMP%]{flex-direction:row!important}.chevron-down[_ngcontent-%COMP%]{justify-content:flex-end}}"]})};function TPe(n,t){if(1&n&&de(0,"storecloud-tooltip",14),2&n){const e=ce(3);T("tooltip",null==e.table$?null:e.table$.tooltip)}}function RPe(n,t){if(1&n&&(m(0,"div",11),l(1,"\n "),m(2,"p",12),l(3),J(4,TPe,1,1,"storecloud-tooltip",13),l(5,"\n "),_(),l(6,"\n "),_()),2&n){const e=ce(2);P(3),Ct("\n ",null==e.table$?null:e.table$.title,"\n "),P(1),T("ngIf",null==e.table$?null:e.table$.tooltip)}}function SPe(n,t){if(1&n&&de(0,"storecloud-shared-table-pagination",15),2&n){const e=ce(2);T("tableService",e.tableService)("total$",e.total$)}}function DPe(n,t){if(1&n&&(m(0,"div",8),l(1,"\n "),J(2,RPe,7,2,"div",9),l(3,"\n "),J(4,SPe,1,2,"storecloud-shared-table-pagination",10),l(5,"\n "),_()),2&n){const e=ce();P(2),T("ngIf",null==e.table$?null:e.table$.title),P(2),T("ngIf",!(null!=e.table$&&e.table$.disablePagination))}}function kPe(n,t){if(1&n&&(m(0,"storecloud-tooltip",14),l(1," "),_()),2&n){const e=ce(3).$implicit;T("tooltip",null==e?null:e.tooltip)}}function EPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),m(2,"span"),l(3),J(4,kPe,2,1,"storecloud-tooltip",13),l(5,"\n "),_(),l(6,"\n "),He()),2&n){const e=ce(2).$implicit;P(3),Ct("",null==e?null:e.label,"\n "),P(1),T("ngIf",null==e?null:e.tooltip)}}function IPe(n,t){if(1&n&&(Ye(0),l(1),He()),2&n){const e=ce(2).$implicit;P(1),Ct("\n ",null==e?null:e.label,"\n ")}}bM=$e([p0({checkProperties:!0})],bM);const NPe=function(n){return{width:n}};function BPe(n,t){if(1&n){const e=b1();m(0,"th",17),yt("sort",function(r){return R0(e),v0(ce(2).onSort(r))}),l(1,"\n "),J(2,EPe,7,2,"ng-container",6),l(3,"\n "),J(4,IPe,2,1,"ng-container",6),l(5,"\n "),_()}if(2&n){const e=ce().$implicit;Hc(null==e?null:e.cssClass),co("sortable",null==e?null:e.key),T("ngStyle",Ht(7,NPe,(null==e?null:e.width)||"auto")),P(2),T("ngIf",null==e?null:e.tooltip),P(2),T("ngIf",!(null!=e&&e.tooltip))}}function FPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,BPe,6,9,"th",16),l(3,"\n "),He()),2&n){const e=t.$implicit;P(2),T("ngIf",!(null!=e&&e.disabled))}}function YPe(n,t){if(1&n&&de(0,"storecloud-shared-value-formatter",22),2&n){const e=ce().$implicit;T("item",e)("cssClass",null==e?null:e.cssClass)("iconSize",14)}}function HPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,YPe,1,3,"storecloud-shared-value-formatter",21),l(3,"\n "),He()),2&n){const e=t.$implicit;P(2),T("ngIf",e)}}function XPe(n,t){if(1&n&&(m(0,"td"),l(1,"\n "),m(2,"div",19),l(3,"\n "),m(4,"storecloud-shared-value-formatter",20),l(5,"\n "),_(),l(6,"\n "),J(7,HPe,4,1,"ng-container",4),l(8,"\n "),_(),l(9,"\n "),_()),2&n){const e=ce().$implicit,o=ce().$implicit,r=ce();let i;lu("",null==e?null:e.cssClass," ",null==e?null:e.type,""),P(4),T("item",r.prepareItem(e,o[null==e?null:e.key]))("iconSize",null!==(i=null==o[null==e?null:e.key]?null:o[null==e?null:e.key].valueIconSize)&&void 0!==i?i:14),P(3),T("ngForOf",r.getAllSubItems(r.prepareItem(e,o[null==e?null:e.key])))}}function jPe(n,t){if(1&n&&(Ye(0),l(1,"\n "),J(2,XPe,10,7,"td",18),l(3,"\n "),He()),2&n){const e=t.$implicit;P(2),T("ngIf",!(null!=e&&e.disabled))}}function UPe(n,t){if(1&n&&(m(0,"tr"),l(1,"\n "),J(2,jPe,4,1,"ng-container",4),l(3,"\n "),_()),2&n){const e=ce();P(2),T("ngForOf",null==e.table$?null:e.table$.columns)}}const VPe=function(n){return{height:n}},$Pe=function(n){return{setting:n}};function GPe(n,t){if(1&n&&(m(0,"td",24),l(1,"\n "),g0(2,25),l(3,"\n "),_()),2&n){const e=ce(3),o=gt(38);P(2),T("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(4,$Pe,Ht(2,VPe,null==e.table$?null:e.table$.loadingHeight)))}}function ZPe(n,t){if(1&n&&(m(0,"tr"),l(1,"\n "),J(2,GPe,4,6,"td",23),l(3,"\n "),_()),2&n){const e=ce(2);P(2),T("ngForOf",null==e.table$?null:e.table$.columns)("ngForTrackBy",e.trackByFuntion)}}function KPe(n,t){if(1&n&&(m(0,"tbody"),l(1,"\n "),J(2,ZPe,4,2,"tr",4),l(3,"\n "),_()),2&n){const e=ce();P(2),T("ngForOf",e.convertPageSizeIntoArray(null==e.tableService?null:e.tableService.pageSize))}}function JPe(n,t){1&n&&(m(0,"tbody"),l(1,"\n "),m(2,"tr"),l(3,"\n "),m(4,"td",26),l(5,"No record exist"),_(),l(6,"\n "),_(),l(7,"\n "),_())}const QPe=function(){return{display:"contents"}},exe=function(n){return{"margin-top":"5px","margin-bottom":"5px",height:n}};function txe(n,t){if(1&n&&(l(0,"\n "),de(1,"ngx-skeleton-loader",27),l(2,"\n")),2&n){const e=t.setting;P(1),T("ngStyle",Et(2,QPe))("theme",Ht(3,exe,((null==e?null:e.height)||29.5)+"px"))}}const nxe=function(n){return{card:n}};let RO=class pE{set table$(t){this._table$=t,this.tableService=new VD(t?.serviceController,[],t?.extrafilter??[],t?.map),this.tableService.pageSize=t?.pageSize||8,this.total$=this.tableService.total$.pipe(j(e=>Math.ceil(e/(t?.pageSize||8))),ot(this)),this.result$=this.tableService.result$.pipe(ot(this))}get table$(){return this._table$}constructor(t){this.http=t,this.tableCssClass=null,this.disabledCardClass=!1,this.total$=null,this._table$=null}trackByFuntion(t,e){return e?.from??e?.to??t?.id}prepareItem(t,e){return"progress-status"===t?.type||"block-status"===t?.type?{type:t?.type,value:e}:"custom-col"===t?.type?{...t,...e,link:t?.link||e?.link?t?.withOutIdLink?t?.valueLink?e?.value:t?.link||e?.link:`${t?.link||e?.link}/${e?.value}`:null}:{...t,value:e,link:t?.link?t?.withOutIdLink?t?.valueLink?e:t?.link:`${t?.link}/${e}`:null}}onSort({}){}convertPageSizeIntoArray(t){return Array(t??8).fill(!0)}getAllSubItems(t){return this.getAllSubItemsChildren(t)}getAllSubItemsChildren(t){const e=[],o=t?.subItems;if(e.push(o),o?.subItems){const r=this.getAllSubItemsChildren(o);e.push(...r)}return e}static#e=this.\u0275fac=function(e){return new(e||pE)(Re(q0))};static#t=this.\u0275cmp=Rt({type:pE,selectors:[["storecloud-shared-table-card-api"]],inputs:{tableCssClass:"tableCssClass",disabledCardClass:"disabledCardClass",table$:"table$"},decls:40,vars:22,consts:[[3,"ngClass"],["class","heading flex",4,"ngIf"],[1,"content"],[1,"table-container"],[4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["loader",""],[1,"heading","flex"],["class","heading-tabs-div",4,"ngIf"],[3,"tableService","total$",4,"ngIf"],[1,"heading-tabs-div"],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[3,"tooltip"],[3,"tableService","total$"],["scope","col",3,"sortable","class","ngStyle","sort",4,"ngIf"],["scope","col",3,"sortable","ngStyle","sort"],[3,"class",4,"ngIf"],[1,"d-flex","g-1-half"],["cssClass","",3,"item","iconSize"],[3,"item","cssClass","iconSize",4,"ngIf"],[3,"item","cssClass","iconSize"],["class","pb-0 pt-1",4,"ngFor","ngForOf","ngForTrackBy"],[1,"pb-0","pt-1"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["colSpan","14",1,"align-center","grey"],["count","1","animation","progress",3,"ngStyle","theme"]],template:function(e,o){if(1&e&&(m(0,"div",0),l(1,"\n "),J(2,DPe,6,2,"div",1),l(3,"\n "),m(4,"div",2),l(5,"\n "),m(6,"div",3),l(7,"\n "),m(8,"table"),l(9,"\n "),m(10,"thead"),l(11,"\n "),m(12,"tr"),l(13,"\n "),l(14,"\n "),J(15,FPe,4,1,"ng-container",4),l(16,"\n\n "),_(),l(17,"\n "),_(),l(18,"\n "),m(19,"tbody"),l(20,"\n "),J(21,UPe,4,1,"tr",5),pt(22,"async"),l(23,"\n "),_(),l(24,"\n "),J(25,KPe,4,1,"tbody",6),pt(26,"async"),pt(27,"async"),l(28,"\n "),J(29,JPe,8,0,"tbody",6),pt(30,"async"),pt(31,"async"),l(32,"\n "),_(),l(33,"\n "),_(),l(34,"\n "),_(),l(35,"\n"),_(),l(36,"\n\n"),J(37,txe,3,5,"ng-template",null,7,$t),l(39,"\n")),2&e){let r,i;T("ngClass",Ht(20,nxe,!o.disabledCardClass)),P(2),T("ngIf",(null==o.table$?null:o.table$.title)||!(null!=o.table$&&o.table$.disablePagination)),P(6),Hc(o.tableCssClass),P(7),T("ngForOf",null==o.table$?null:o.table$.columns),P(6),T("ngForOf",a0(22,10,o.result$))("ngForTrackBy",o.trackByFuntion),P(4),T("ngIf",a0(26,12,null==o.tableService?null:o.tableService.loading$)&&((null==(r=a0(27,14,o.result$))?null:r.length)||0)<1),P(4),T("ngIf",0===(null==(i=a0(30,16,o.result$))?null:i.length)&&!1===a0(31,18,null==o.tableService?null:o.tableService.loading$))}},styles:["[_ngcontent-%COMP%]:export{bg-gradient:linear-gradient(to right,#1e1e20,#38415d);teal:#1db0a9;explorer-bg:linear-gradient(to right,#1e1e20,#38415d);explorer-teal:#1db0a9;developer-bg:linear-gradient(to top,#3375a7,#2b3a98);developer-teal:#1db0a9;governor-bg:linear-gradient(to top,#9d51b8,#4b2d83);governor-teal:#1db0a9;cloud-bg:linear-gradient(to top,#24272f,#222);cloud-teal:#1db0a9}.teal[_ngcontent-%COMP%]{color:#1db0a9}.heading-tabs-div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:40px}@media screen and (max-width: 1200px){.table-container[_ngcontent-%COMP%]{overflow-x:auto}}.table-container[_ngcontent-%COMP%] table.table-scroll[_ngcontent-%COMP%]{width:100%}@media screen and (max-width: 1200px){.table-container[_ngcontent-%COMP%] table.table-scroll[_ngcontent-%COMP%]{min-width:1300px}} table td .text-light{font-size:1.4rem!important}@media screen and (max-width: 1670px){ table td .text-light{font-size:1.3rem!important}}@media screen and (max-width: 1670px){ table td .text-light{font-size:1.2rem!important}}@media screen and (max-width: 1300px){ table td .text-light{font-size:1rem!important}}@media screen and (max-width: 1546px) and (max-width: 1200px){.table-container[_ngcontent-%COMP%]{overflow-x:scroll}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%] table.table-large[_ngcontent-%COMP%]{min-width:1545px}}@media screen and (max-width: 1546px) and (max-width: 1200px){.table-container[_ngcontent-%COMP%] table.table-large[_ngcontent-%COMP%]{min-width:1545px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-medium[_ngcontent-%COMP%]{min-width:1000px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-small[_ngcontent-%COMP%]{min-width:840px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-smaller[_ngcontent-%COMP%]{min-width:500px}}@media screen and (max-width: 470px){.card[_ngcontent-%COMP%] .heading.flex[_ngcontent-%COMP%]{align-items:center}}@media screen and (max-width: 1200px){.card[_ngcontent-%COMP%] .pb-2[_ngcontent-%COMP%]{padding-bottom:0!important}}.card.col-span-8.grid-2[_ngcontent-%COMP%]{display:none}"]})};RO=$e([p0({checkProperties:!0})],RO);let xJ=(()=>{class n{constructor(e,o){this._renderer=e,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,o){this._renderer.setProperty(this._elementRef.nativeElement,e,o)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(Re(P1),Re(fn))},n.\u0275dir=b0({type:n}),n})(),gM=(()=>{class n extends xJ{}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275dir=b0({type:n,features:[Pn]}),n})();const hp=new Qt("NgValueAccessor"),rxe={provide:hp,useExisting:Xn(()=>M8),multi:!0};let M8=(()=>{class n extends gM{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,o){1&e&&yt("change",function(i){return o.onChange(i.target.checked)})("blur",function(){return o.onTouched()})},features:[F1([rxe]),Pn]}),n})();const ixe={provide:hp,useExisting:Xn(()=>bf),multi:!0},sxe=new Qt("CompositionEventMode");let bf=(()=>{class n extends xJ{constructor(e,o,r){super(e,o),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function axe(){const n=rd()?rd().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(P1),Re(fn),Re(sxe,8))},n.\u0275dir=b0({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,o){1&e&&yt("input",function(i){return o._handleInput(i.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(i){return o._compositionEnd(i.target.value)})},features:[F1([ixe]),Pn]}),n})();const cxe=!1;function gf(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function qJ(n){return null!=n&&"number"==typeof n.length}const xa=new Qt("NgValidators"),Of=new Qt("NgAsyncValidators"),lxe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ds{static min(t){return function WJ(n){return t=>{if(gf(t.value)||gf(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(gf(t.value)||gf(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return TJ(t)}static requiredTrue(t){return function RJ(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function SJ(n){return gf(n.value)||lxe.test(n.value)?null:{email:!0}}(t)}static minLength(t){return DJ(t)}static maxLength(t){return kJ(t)}static pattern(t){return function EJ(n){if(!n)return Dw;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),o=>{if(gf(o.value))return null;const r=o.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return HJ(t)}static composeAsync(t){return XJ(t)}}function TJ(n){return gf(n.value)?{required:!0}:null}function DJ(n){return t=>gf(t.value)||!qJ(t.value)?null:t.value.lengthqJ(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function Dw(n){return null}function IJ(n){return null!=n}function NJ(n){const t=g3(n)?$n(n):n;if(cxe&&!W6(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new xt(-1101,e)}return t}function BJ(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function FJ(n,t){return t.map(e=>e(n))}function YJ(n){return n.map(t=>function pxe(n){return!n.validate}(t)?t:e=>t.validate(e))}function HJ(n){if(!n)return null;const t=n.filter(IJ);return 0==t.length?null:function(e){return BJ(FJ(e,t))}}function b8(n){return null!=n?HJ(YJ(n)):null}function XJ(n){if(!n)return null;const t=n.filter(IJ);return 0==t.length?null:function(e){return function oxe(...n){const t=oi(n),{args:e,keys:o}=S9(n),r=new V(i=>{const{length:a}=e;if(!a)return void i.complete();const s=new Array(a);let c=a,p=a;for(let d=0;d{u||(u=!0,p--),s[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(p||i.next(o?D9(o,s):s),i.complete())}))}});return t?r.pipe(QW(t)):r}(FJ(e,t).map(NJ)).pipe(j(BJ))}}function g8(n){return null!=n?XJ(YJ(n)):null}function jJ(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function UJ(n){return n._rawValidators}function VJ(n){return n._rawAsyncValidators}function O8(n){return n?Array.isArray(n)?n:[n]:[]}function kw(n,t){return Array.isArray(n)?n.includes(t):n===t}function $J(n,t){const e=O8(t);return O8(n).forEach(r=>{kw(e,r)||e.push(r)}),e}function GJ(n,t){return O8(t).filter(e=>!kw(n,e))}class ZJ{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=b8(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=g8(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class us extends ZJ{get formDirective(){return null}get path(){return null}}class mf extends ZJ{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class KJ{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let SO=(()=>{class n extends KJ{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(mf,2))},n.\u0275dir=b0({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,o){2&e&&su("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Pn]}),n})(),DO=(()=>{class n extends KJ{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(us,10))},n.\u0275dir=b0({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,o){2&e&&su("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Pn]}),n})();function JJ(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const z8=!1,Gz="VALID",Iw="INVALID",kO="PENDING",Zz="DISABLED";function v8(n){return(Nw(n)?n.validators:n)||null}function A8(n,t){return(Nw(t)?t.asyncValidators:n)||null}function Nw(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function QJ(n,t,e){const o=n.controls;if(!(t?Object.keys(o):o).length)throw new xt(1e3,z8?function hxe(n){return`\n There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!o[e])throw new xt(1001,z8?function Mxe(n,t){return`Cannot find form control ${JJ(n,t)}`}(t,e):"")}function eQ(n,t,e){n._forEachChild((o,r)=>{if(void 0===e[r])throw new xt(1002,z8?function bxe(n,t){return`Must supply a value for form control ${JJ(n,t)}`}(t,r):"")})}class Bw{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Gz}get invalid(){return this.status===Iw}get pending(){return this.status==kO}get disabled(){return this.status===Zz}get enabled(){return this.status!==Zz}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators($J(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators($J(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(GJ(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(GJ(t,this._rawAsyncValidators))}hasValidator(t){return kw(this._rawValidators,t)}hasAsyncValidator(t){return kw(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=kO,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Zz,this.errors=null,this._forEachChild(o=>{o.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Gz,this._forEachChild(o=>{o.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(o=>o(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gz||this.status===kO)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Zz:Gz}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=kO,this._hasOwnPendingAsyncValidator=!0;const e=NJ(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(o=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(o,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((o,r)=>o&&o._find(r),this)}getError(t,e){const o=e?this.get(e):this;return o&&o.errors?o.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new G1,this.statusChanges=new G1}_calculateStatus(){return this._allControlsDisabled()?Zz:this.errors?Iw:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kO)?kO:this._anyControlsHaveStatus(Iw)?Iw:Gz}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Nw(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function gxe(n){return Array.isArray(n)?b8(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function Oxe(n){return Array.isArray(n)?g8(n):n||null}(this._rawAsyncValidators)}}class mc extends Bw{constructor(t,e,o){super(v8(e),A8(o,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,o={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,o={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){eQ(this,!0,t),Object.keys(t).forEach(o=>{QJ(this,!0,o),this.controls[o].setValue(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(o=>{const r=this.controls[o];r&&r.patchValue(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((o,r)=>{o.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,o)=>(t[o]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,o)=>!!o._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const o=this.controls[e];o&&t(o,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,o]of Object.entries(this.controls))if(this.contains(e)&&t(o))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,o,r)=>((o.enabled||this.disabled)&&(e[r]=o.value),e))}_reduceChildren(t,e){let o=t;return this._forEachChild((r,i)=>{o=e(o,r,i)}),o}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class tQ extends mc{}const OM=new Qt("CallSetDisabledState",{providedIn:"root",factory:()=>Kz}),Kz="always";function Fw(n,t){return[...t.path,n]}function Jz(n,t,e=Kz){y8(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function _xe(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&nQ(n,t)})}(n,t),function vxe(n,t){const e=(o,r)=>{t.valueAccessor.writeValue(o),r&&t.viewToModelUpdate(o)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function zxe(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&nQ(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function mxe(n,t){if(t.valueAccessor.setDisabledState){const e=o=>{t.valueAccessor.setDisabledState(o)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Yw(n,t,e=!0){const o=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(o),t.valueAccessor.registerOnTouched(o)),Xw(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Hw(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function y8(n,t){const e=UJ(n);null!==t.validator?n.setValidators(jJ(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const o=VJ(n);null!==t.asyncValidator?n.setAsyncValidators(jJ(o,t.asyncValidator)):"function"==typeof o&&n.setAsyncValidators([o]);const r=()=>n.updateValueAndValidity();Hw(t._rawValidators,r),Hw(t._rawAsyncValidators,r)}function Xw(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=UJ(n);if(Array.isArray(r)&&r.length>0){const i=r.filter(a=>a!==t.validator);i.length!==r.length&&(e=!0,n.setValidators(i))}}if(null!==t.asyncValidator){const r=VJ(n);if(Array.isArray(r)&&r.length>0){const i=r.filter(a=>a!==t.asyncValidator);i.length!==r.length&&(e=!0,n.setAsyncValidators(i))}}}const o=()=>{};return Hw(t._rawValidators,o),Hw(t._rawAsyncValidators,o),e}function nQ(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function oQ(n,t){y8(n,t)}function w8(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function rQ(n,t){n._syncPendingControls(),t.forEach(e=>{const o=e.control;"submit"===o.updateOn&&o._pendingChange&&(e.viewToModelUpdate(o._pendingValue),o._pendingChange=!1)})}function P8(n,t){if(!t)return null;let e,o,r;return Array.isArray(t),t.forEach(i=>{i.constructor===bf?e=i:function Cxe(n){return Object.getPrototypeOf(n.constructor)===gM}(i)?o=i:r=i}),r||o||e||null}const Pxe={provide:us,useExisting:Xn(()=>ev)},Qz=(()=>Promise.resolve())();let ev=(()=>{class n extends us{constructor(e,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new G1,this.form=new mc({},b8(e),g8(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Qz.then(()=>{const o=this._findContainer(e.path);e.control=o.registerControl(e.name,e.control),Jz(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Qz.then(()=>{const o=this._findContainer(e.path);o&&o.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Qz.then(()=>{const o=this._findContainer(e.path),r=new mc({});oQ(r,e),o.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Qz.then(()=>{const o=this._findContainer(e.path);o&&o.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,o){Qz.then(()=>{this.form.get(e.path).setValue(o)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,rQ(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(Re(xa,10),Re(Of,10),Re(OM,8))},n.\u0275dir=b0({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,o){1&e&&yt("submit",function(i){return o.onSubmit(i)})("reset",function(){return o.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[F1([Pxe]),Pn]}),n})();function iQ(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function aQ(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const fo=class extends Bw{constructor(t=null,e,o){super(v8(e),A8(o,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Nw(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=aQ(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(o=>o(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){iQ(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){iQ(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){aQ(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};let sQ=(()=>{class n extends us{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Fw(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275dir=b0({type:n,features:[Pn]}),n})();const Wxe={provide:mf,useExisting:Xn(()=>jw)},lQ=(()=>Promise.resolve())();let jw=(()=>{class n extends mf{constructor(e,o,r,i,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new fo,this._registered=!1,this.update=new G1,this._parent=e,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=P8(0,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const o=e.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),w8(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Jz(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){lQ.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const o=e.isDisabled.currentValue,r=0!==o&&fg(o);lQ.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Fw(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(Re(us,9),Re(xa,10),Re(Of,10),Re(hp,10),Re(ns,8),Re(OM,8))},n.\u0275dir=b0({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[F1([Wxe]),Pn,Yo]}),n})(),tv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=b0({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const Lxe={provide:hp,useExisting:Xn(()=>x8),multi:!0};let x8=(()=>{class n extends gM{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=o=>{e(""==o?null:parseFloat(o))}}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,o){1&e&&yt("input",function(i){return o.onChange(i.target.value)})("blur",function(){return o.onTouched()})},features:[F1([Lxe]),Pn]}),n})(),pQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({}),n})();const q8=new Qt("NgModelWithFormControlWarning"),kxe={provide:us,useExisting:Xn(()=>EO)};let EO=(()=>{class n extends us{constructor(e,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new G1,this._setValidators(e),this._setAsyncValidators(o)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xw(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const o=this.form.get(e.path);return Jz(o,e,this.callSetDisabledState),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),o}getControl(e){return this.form.get(e.path)}removeControl(e){Yw(e.control||null,e,!1),function wxe(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,o){this.form.get(e.path).setValue(o)}onSubmit(e){return this.submitted=!0,rQ(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const o=e.control,r=this.form.get(e.path);o!==r&&(Yw(o||null,e),(n=>n instanceof fo)(r)&&(Jz(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const o=this.form.get(e.path);oQ(o,e),o.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const o=this.form.get(e.path);o&&function Axe(n,t){return Xw(n,t)}(o,e)&&o.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){y8(this.form,this),this._oldForm&&Xw(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(Re(xa,10),Re(Of,10),Re(OM,8))},n.\u0275dir=b0({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,o){1&e&&yt("submit",function(i){return o.onSubmit(i)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[F1([kxe]),Pn,Yo]}),n})();const Exe={provide:us,useExisting:Xn(()=>Uw)};let Uw=(()=>{class n extends sQ{constructor(e,o,r){super(),this._parent=e,this._setValidators(o),this._setAsyncValidators(r)}_checkParentType(){hQ(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(Re(us,13),Re(xa,10),Re(Of,10))},n.\u0275dir=b0({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[F1([Exe]),Pn]}),n})();const Ixe={provide:us,useExisting:Xn(()=>W8)};let W8=(()=>{class n extends us{constructor(e,o,r){super(),this._parent=e,this._setValidators(o),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Fw(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){hQ(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(Re(us,13),Re(xa,10),Re(Of,10))},n.\u0275dir=b0({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[F1([Ixe]),Pn]}),n})();function hQ(n){return!(n instanceof Uw||n instanceof EO||n instanceof W8)}const Nxe={provide:mf,useExisting:Xn(()=>nv)};let nv=(()=>{class n extends mf{set isDisabled(e){}constructor(e,o,r,i,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new G1,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=P8(0,i)}ngOnChanges(e){this._added||this._setUpControl(),w8(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Fw(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(Re(us,13),Re(xa,10),Re(Of,10),Re(hp,10),Re(q8,8))},n.\u0275dir=b0({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[F1([Nxe]),Pn,Yo]}),n})();const Bxe={provide:hp,useExisting:Xn(()=>L8),multi:!0};function MQ(n,t){return null==n?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let L8=(()=>{class n extends gM{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=MQ(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=o=>{this.value=this._getOptionValue(o),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const o of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(o),e))return o;return null}_getOptionValue(e){const o=function Fxe(n){return n.split(":")[0]}(e);return this._optionMap.has(o)?this._optionMap.get(o):e}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,o){1&e&&yt("change",function(i){return o.onChange(i.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[F1([Bxe]),Pn]}),n})(),bQ=(()=>{class n{constructor(e,o,r){this._element=e,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(MQ(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(Re(fn),Re(P1),Re(L8,9))},n.\u0275dir=b0({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const Yxe={provide:hp,useExisting:Xn(()=>T8),multi:!0};function gQ(n,t){return null==n?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let T8=(()=>{class n extends gM{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let o;if(this.value=e,Array.isArray(e)){const r=e.map(i=>this._getOptionId(i));o=(i,a)=>{i._setSelected(r.indexOf(a.toString())>-1)}}else o=(r,i)=>{r._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(e){this.onChange=o=>{const r=[],i=o.selectedOptions;if(void 0!==i){const a=i;for(let s=0;s{class n{constructor(e,o,r){this._element=e,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(gQ(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(gQ(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(Re(fn),Re(P1),Re(T8,9))},n.\u0275dir=b0({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();function mQ(n){return"number"==typeof n?n:parseInt(n,10)}let mM=(()=>{class n{constructor(){this._validator=Dw}ngOnChanges(e){if(this.inputName in e){const o=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):Dw,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=b0({type:n,features:[Yo]}),n})();const Uxe={provide:xa,useExisting:Xn(()=>_M),multi:!0};let _M=(()=>{class n extends mM{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=fg,this.createValidator=e=>TJ}enabled(e){return e}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,o){2&e&&Fc("required",o._enabled?"":null)},inputs:{required:"required"},features:[F1([Uxe]),Pn]}),n})();const Gxe={provide:xa,useExisting:Xn(()=>R8),multi:!0};let R8=(()=>{class n extends mM{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>mQ(e),this.createValidator=e=>DJ(e)}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,o){2&e&&Fc("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},features:[F1([Gxe]),Pn]}),n})();const Zxe={provide:xa,useExisting:Xn(()=>S8),multi:!0};let S8=(()=>{class n extends mM{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>mQ(e),this.createValidator=e=>kJ(e)}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=fr(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,o){2&e&&Fc("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[F1([Zxe]),Pn]}),n})(),wQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({imports:[pQ]}),n})();class PQ extends Bw{constructor(t,e,o){super(v8(e),A8(o,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,o={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:o.emitEvent})}removeAt(t,e={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,o={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){eQ(this,!1,t),t.forEach((o,r)=>{QJ(this,!1,r),this.at(r).setValue(o,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((o,r)=>{this.at(r)&&this.at(r).patchValue(o,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((o,r)=>{o.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,o)=>!!o._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,o)=>{t(e,o)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function xQ(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let qQ=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,o=null){const r=this._reduceControls(e);let i={};return xQ(o)?i=o:null!==o&&(i.validators=o.validator,i.asyncValidators=o.asyncValidator),new mc(r,i)}record(e,o=null){const r=this._reduceControls(e);return new tQ(r,o)}control(e,o,r){let i={};return this.useNonNullable?(xQ(o)?i=o:(i.validators=o,i.asyncValidators=r),new fo(e,{...i,nonNullable:!0})):new fo(e,o,r)}array(e,o,r){const i=e.map(a=>this._createControl(a));return new PQ(i,o,r)}_reduceControls(e){const o={};return Object.keys(e).forEach(r=>{o[r]=this._createControl(e[r])}),o}_createControl(e){return e instanceof fo||e instanceof Bw?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vw=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:OM,useValue:e.callSetDisabledState??Kz}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({imports:[wQ]}),n})(),ov=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:q8,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:OM,useValue:e.callSetDisabledState??Kz}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({imports:[wQ]}),n})();function $w(n,t,e,o){var a,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,o);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(r<3?a(i):r>3?a(t,e,i):a(t,e))||i);return r>3&&i&&Object.defineProperty(t,e,i),i}function LQ(n,t){return function(e,o){t(e,o,n)}}var Qxe=G(9093),eqe=G.n(Qxe);const k8=new Qt("COPY_TO_CLIPBOARD_HANDLER");let E8=(()=>{let n=class{constructor(e){this.globalOnCopy=e,this.options={}}copy(){eqe()(this.text,Object.assign({onCopy:e=>{var o;null===(o=this.globalOnCopy)||void 0===o||o.call(this,this.text,e)}},this.options))}};return n.\u0275fac=function(e){return new(e||n)(Re(k8,8))},n.\u0275dir=b0({type:n,selectors:[["","copyToClipboard",""]],hostBindings:function(e,o){1&e&&yt("click",function(){return o.copy()})},inputs:{options:["copyToClipboardOptions","options"],text:["copyToClipboard","text"]}}),$w([X7("copyToClipboard")],n.prototype,"text",void 0),$w([X7("copyToClipboardOptions")],n.prototype,"options",void 0),$w([poe("click")],n.prototype,"copy",null),n=$w([LQ(0,Gp()),LQ(0,Yf(k8))],n),n})(),I8=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=yn({type:n}),n.\u0275inj=Gn({}),n})();const tqe={asc:"desc",desc:"","":"asc"};let N8=(()=>{class n{constructor(){this.sortable="",this.direction="",this.sort=new G1}rotate(){this.direction=tqe[this.direction],this.sort.emit({column:this.sortable,direction:this.direction})}static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275dir=b0({type:n,selectors:[["th","sortable",""]],hostVars:4,hostBindings:function(o,r){1&o&&yt("click",function(){return r.rotate()}),2&o&&su("asc","asc"===r.direction)("desc","desc"===r.direction)},inputs:{sortable:"sortable",direction:"direction"},outputs:{sort:"sort"}})}return n})(),RQ=(()=>{class n{constructor(e){this.element=e,this.locale="en",this._value=null,this.valorChange=new G1,this.instant=!1}get value(){return this._value}set value(e){this._value=e,this.formatValue(e)}set valor(e){e||(e=0),this.formatValue(e?.toString())}input(e){e=e?.replace(/[^\d.]/gi,"");const o=new RegExp(`[^\\d${this.decimalMarker}-]`,"g");let[r,i]=e.replace(o,"").split(this.decimalMarker);r||(r=0),i||(i=0),this._value=i?r.concat(".",i):r,this.isLastCharacterDecimalSeparator(e)&&(this._value=e),this._onChange(this._value),this.instant&&this._onBlur()}_onBlur(){this.formatValue(this._value),this.valorChange.emit(parseFloat(this._value??""))}onFocus(){this.unFormatValue(this.element.nativeElement.value)}_onChange(e){}writeValue(e){this._value=e,this.formatValue(this._value)}registerOnChange(e){this._onChange=e}registerOnTouched(){}isLastCharacterDecimalSeparator(e){return isNaN(e[e.length-1])}unfValue(e){this.unFormatValue(e)}formatValue(e){if(null===e)return void(this.element.nativeElement.value="");if(this.isLastCharacterDecimalSeparator(e.toString()))return void(this.element.nativeElement.value=e);const[o,r]=SB(1000.99,this.locale).replace(/\d/g,"");this.decimalMarker=r;let[i,a]=e.toString().split(".");i||(i="0"),a||(a="00"),this.element.nativeElement.value=i.replace(/\B(?=(\d{3})+(?!\d))/g,o),a&&"00"!==a&&(this.element.nativeElement.value=this.element.nativeElement.value.concat(r,a))}unFormatValue(e){if(this.isLastCharacterDecimalSeparator(e))return;const o=new RegExp(`[^\\d${this.decimalMarker}-]`,"g");let[r,i]=e.replace(o,"").split(this.decimalMarker??"");r||(r="0"),i||(i="00"),this._value=i&&"00"!==i?r.concat(".",i):r,this.element.nativeElement.value=e?this._value:""}static#e=this.\u0275fac=function(o){return new(o||n)(Re(fn))};static#t=this.\u0275dir=b0({type:n,selectors:[["","localizedNumericInput",""]],hostBindings:function(o,r){1&o&&yt("input",function(a){return r.input(a.target.value)})("blur",function(){return r._onBlur()})("focus",function(){return r.onFocus()})},inputs:{value:"value",valor:"valor",objeto:"objeto",propiedad:"propiedad",instant:["formatOnInput","instant"]},outputs:{valorChange:"valorChange"},features:[F1([{provide:hp,useExisting:Xn(()=>n),multi:!0}])]})}return n})();var SQ=G(7530);const oqe=["backdrop"],rqe=["dialog"];function iqe(n,t){if(1&n&&de(0,"div",6),2&n){const e=ce(),o=gt(3);T("dialogDragEnabled",!0)("dialogDragTarget",o)("dragConstraint",e.config.dragConstraint)}}function aqe(n,t){if(1&n){const e=b1();m(0,"div",7),yt("click",function(){return R0(e),v0(ce().closeDialog())}),Di(),m(1,"svg",8),de(2,"path",9),_()()}}class Zs{}class B8 extends Zs{constructor(t={}){super(),this.beforeCloseGuards=[],this.mutate(t)}close(t){this.canClose(t).pipe(ht(Boolean)).subscribe({next:()=>this.onClose(t)})}beforeClose(t){this.beforeCloseGuards.push(t)}resetDrag(t){this.onReset(t)}canClose(t){return Ia(...this.beforeCloseGuards.map(o=>o(t)).filter(o=>void 0!==o&&!0!==o).map(o=>"boolean"==typeof o?be(o):$n(o).pipe(ht(r=>!r)))).pipe(I3(!0),ad())}mutate(t){Object.assign(this,t)}asDialogRef(){return this}}function Zw(n){return function sqe(n){return null==n}(n)?"":function cqe(n){return"string"==typeof n}(n)?n:`${n}px`}let DQ=(()=>{class n{constructor(){this.dialogDragEnabled=!1,this.host=c0(fn),this.zone=c0(To),this.delta={x:0,y:0},this.offset={x:0,y:0},this.enabled=!0,this.destroy$=new I}set dialogDragOffset(e){this.reset(e)}ngAfterViewInit(){this.enabled&&this.init()}ngOnChanges(){!this.enabled&&this.dialogDragEnabled&&this.dialogDragTarget&&(this.enabled=!0,this.handle?this.handle.style.setProperty("cursor","move"):this.enabled&&this.init()),this.dialogDragEnabled||(this.enabled=!1,this.handle&&this.handle.style.setProperty("cursor",""))}ngOnDestroy(){this.destroy$.next()}reset(e){const o={x:0,y:0};this.offset={...o,...e},this.delta={...o},this.translate()}setupEvents(){this.zone.runOutsideAngular(()=>{const e=dp(this.handle,"mousedown"),o=dp(document,"mousemove"),r=dp(document,"mouseup");e.pipe(ht(()=>this.enabled),j(a=>({startX:a.clientX,startY:a.clientY})),hi(({startX:a,startY:s})=>o.pipe(j(c=>{c.preventDefault(),this.delta={x:c.clientX-a,y:c.clientY-s},"constrain"===this.dragConstraint&&this.checkConstraint()}),hc(r))),hc(this.destroy$)).subscribe(()=>{0===this.delta.x&&0===this.delta.y||this.translate()}),r.pipe(ht(()=>this.enabled),ht(()=>0!==this.delta.x||0!==this.delta.y),hc(this.destroy$)).subscribe(()=>{"bounce"===this.dragConstraint&&(this.checkConstraint(),this.translate()),this.offset.x+=this.delta.x,this.offset.y+=this.delta.y,this.delta={x:0,y:0}})})}translate(){this.target&&this.zone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.target.style.setProperty("transform",`translate(${this.translateX}px, ${this.translateY}px)`)})})}get translateX(){return this.offset.x+this.delta.x}get translateY(){return this.offset.y+this.delta.y}init(){if(!this.dialogDragTarget)throw new Error("You need to specify the drag target");this.handle=this.dialogDragHandle instanceof Element?this.dialogDragHandle:"string"==typeof this.dialogDragHandle&&this.dialogDragHandle?document.querySelector(this.dialogDragHandle):this.host.nativeElement,this.handle&&this.enabled&&this.handle.style.setProperty("cursor","move"),this.target=this.dialogDragTarget instanceof HTMLElement?this.dialogDragTarget:document.querySelector(this.dialogDragTarget),this.setupEvents(),this.translate()}checkConstraint(){const{width:e,height:o}=this.target.getBoundingClientRect(),{innerWidth:r,innerHeight:i}=window,a=this.translateY>0?this.translateY+o/2:this.translateY-o/2,s=i/2,c=this.translateX>0?this.translateX+e/2:this.translateX-e/2,p=r/2;-s>a&&(this.delta.y=o/2-s-this.offset.y),sc&&(this.delta.x=e/2-p-this.offset.x),pc0(Xr)}),Y8=new Qt("config",{providedIn:"root",factory:()=>({})});const EQ=new Qt("Global dialog config token",{providedIn:"root",factory:()=>function kQ(){return{id:void 0,container:c0(F8).body,backdrop:!0,closeButton:!0,enableClose:!0,draggable:!1,dragConstraint:"none",resizable:!1,size:"md",windowClass:void 0,width:void 0,height:void 0,minHeight:void 0,maxHeight:void 0,data:void 0,vcr:void 0,sizes:{sm:{height:"auto",width:"400px"},md:{height:"auto",width:"560px"},lg:{height:"auto",width:"800px"},fullScreen:{height:"100%",width:"100%"}},onClose:void 0,onOpen:void 0}}()}),IQ=new Qt("Nodes inserted into the dialog");let lqe=(()=>{class n{constructor(){this.config=c0(Y8),this.dialogRef=c0(B8),this.size=this.config.sizes?.[this.config.size||"md"],this.styles={width:Zw(this.config.width||this.size?.width),height:Zw(this.config.height||this.size?.height),minHeight:Zw(this.config.minHeight||this.size?.minHeight),maxHeight:Zw(this.config.maxHeight||this.size?.maxHeight)},this.destroy$=new I,this.nodes=c0(IQ),this.document=c0(Xr),this.host=c0(fn).nativeElement,this.host.id=this.config.id,this.nodes.forEach(e=>this.host.appendChild(e)),this.config.windowClass&&this.config.windowClass.split(/\s/).filter(o=>o).forEach(o=>this.host.classList.add(o))}ngOnInit(){const e=this.config.backdrop?this.backdrop.nativeElement:this.document.body,o=this.dialogElement.nativeElement,r=dp(e,"click",{capture:!0}).pipe(ht(({target:i})=>!o.contains(i)));if(r.pipe(hc(this.destroy$)).subscribe(this.dialogRef.backdropClick$),this.config.enableClose&&Ia(dp(this.document.body,"keyup").pipe(ht(({key:i})=>"Escape"===i)),r).pipe(hc(this.destroy$)).subscribe(()=>this.closeDialog()),this.nodes.forEach(i=>o.appendChild(i)),this.config.zIndexGetter){const i=this.config.zIndexGetter().toString();e.style.setProperty("--dialog-backdrop-z-index",i)}}reset(e){this.config.draggable&&this.draggable.reset(e)}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.dialogRef=null,this.nodes=null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Rt({type:n,selectors:[["ngneat-dialog"]],viewQuery:function(e,o){if(1&e&&(fc(oqe,7),fc(rqe,7),fc(DQ,5)),2&e){let r;Ws(r=Ls())&&(o.backdrop=r.first),Ws(r=Ls())&&(o.dialogElement=r.first),Ws(r=Ls())&&(o.draggable=r.first)}},standalone:!0,features:[wo],decls:6,vars:8,consts:[[1,"ngneat-dialog-backdrop",3,"hidden"],["backdrop",""],["role","dialog",1,"ngneat-dialog-content",3,"ngStyle"],["dialog",""],["class","ngneat-drag-marker","dialogDraggable","",3,"dialogDragEnabled","dialogDragTarget","dragConstraint",4,"ngIf"],["class","ngneat-close-dialog",3,"click",4,"ngIf"],["dialogDraggable","",1,"ngneat-drag-marker",3,"dialogDragEnabled","dialogDragTarget","dragConstraint"],[1,"ngneat-close-dialog",3,"click"],["viewBox","0 0 329.26933 329","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0"]],template:function(e,o){1&e&&(m(0,"div",0,1)(2,"div",2,3),J(4,iqe,1,3,"div",4),J(5,aqe,3,0,"div",5),_()()),2&e&&(su("ngneat-dialog-backdrop-visible",o.config.backdrop),T("hidden",!o.config.backdrop),P(2),su("ngneat-dialog-resizable",o.config.resizable),T("ngStyle",o.styles),P(2),T("ngIf",o.config.draggable),P(1),T("ngIf",o.config.closeButton))},dependencies:[DQ,Sn,Q0,Jn],styles:[".ngneat-dialog-content{display:flex;flex-direction:column;overflow:hidden;position:relative;animation:dialog-open .4s cubic-bezier(.25,.8,.25,1);border-radius:var(--dialog-content-border-radius, 4px);box-sizing:border-box;box-shadow:var(--dialog-content-box-shadow, 0px 11px 19px rgba(15, 20, 58, .14));background:var(--dialog-content-bg, #fff);width:auto;max-width:100%;height:auto;max-height:100%}@keyframes dialog-open{0%{transform:translate(50px)}to{transform:none}}.ngneat-dialog-content.ngneat-dialog-resizable{resize:both}.ngneat-dialog-backdrop{position:fixed;display:flex;align-items:center;justify-content:center;inset:0;height:100%;width:100%;padding:30px;z-index:var(--dialog-backdrop-z-index, 1050);background-color:transparent;animation:dialog-open-backdrop .3s}.ngneat-dialog-backdrop.ngneat-dialog-backdrop-visible{background:var(--dialog-backdrop-bg, rgba(0, 0, 0, .32))}@keyframes dialog-open-backdrop{0%{opacity:0}to{opacity:1}}.ngneat-drag-marker{position:absolute;left:0;top:0;cursor:move;width:100%;height:10px}.ngneat-close-dialog{display:flex;align-items:center;justify-content:center;position:absolute;cursor:pointer;top:var(--dialog-close-btn-top, 6px);right:var(--dialog-close-btn-right, 10px);width:var(--dialog-close-btn-size, 30px);height:var(--dialog-close-btn-size, 30px);color:var(--dialog-close-btn-color, #5f6368);transition:all .2s ease-in-out;border-radius:50%}.ngneat-close-dialog svg{width:var(--dialog-close-svg-size, 12px);height:var(--dialog-close-svg-size, 12px)}.ngneat-close-dialog:hover{color:var(--dialog-close-btn-color-hover, #5f6368);background-color:var(--dialog-close-btn-bg-hover, #eee)}body.ngneat-dialog-hidden{overflow:hidden}\n"],encapsulation:2}),n})();const NQ="ngneat-dialog-hidden";let Ld=(()=>{class n{constructor(){this.appRef=c0(w2),this.injector=c0(pc),this.document=c0(F8),this.globalConfig=c0(EQ),this.dialogs=[],this.hasOpenDialogSub=new No(!1),this.hasOpenDialogs$=this.hasOpenDialogSub.asObservable()}hasOpenDialogs(){return this.dialogs.length>0}isOpen(e){return this.dialogs.some(o=>o.id===e)}closeAll(){this.dialogs.forEach(e=>e.close())}open(e,o={}){const r=this.mergeConfig(o);r.onOpen?.();const i=new B8({id:r.id,data:r.data,backdropClick$:new I});this.throwIfIDAlreadyExists(r.id);const a={config:r,dialogRef:i};return this.dialogs.push(i),this.hasOpenDialogSub.next(!0),1===this.dialogs.length&&this.document.body.classList.add(NQ),e instanceof Xc?this.openTemplate(e,a):"function"==typeof e?this.openComponent(e,a):function pqe(n){throw new TypeError(`Dialog must receive a Component or a TemplateRef, but this has been passed instead: ${n}`)}(e)}openTemplate(e,{config:o,dialogRef:r}){const i={$implicit:r,config:o},a=o.vcr?.createEmbeddedView(e,i)||e.createEmbeddedView(i);return this.attach({dialogRef:r,config:o,ref:e,view:a,attachToApp:!o.vcr})}openComponent(e,{config:o,dialogRef:r}){const i=_B(e,{elementInjector:Qo.create({providers:[{provide:Zs,useValue:r},{provide:Y8,useValue:o}],parent:o.vcr?.injector||this.injector}),environmentInjector:this.injector});return this.attach({dialogRef:r,config:o,ref:i,view:i.hostView,attachToApp:!0})}attach({dialogRef:e,config:o,ref:r,view:i,attachToApp:a}){const s=this.createDialog(o,e,i),c=o.container instanceof fn?o.container.nativeElement:o.container,p={after:new I};return e.mutate({id:o.id,data:o.data,ref:r,onClose:h=>{this.globalConfig.onClose?.(),this.dialogs=this.dialogs.filter(({id:M})=>e.id!==M),this.hasOpenDialogSub.next(this.hasOpenDialogs()),c.removeChild(s.location.nativeElement),this.appRef.detachView(s.hostView),this.appRef.detachView(i),s.destroy(),i.destroy(),e.backdropClick$.complete(),e.mutate({ref:null,onClose:null,afterClosed$:null,backdropClick$:null,beforeCloseGuards:null,onReset:null}),p.after.next(h),p.after.complete(),0===this.dialogs.length&&this.document.body.classList.remove(NQ)},afterClosed$:p.after.asObservable(),onReset:h=>{s.instance.reset(h)}}),c.appendChild(s.location.nativeElement),this.appRef.attachView(s.hostView),a&&this.appRef.attachView(i),e.asDialogRef()}createDialog(e,o,r){return _B(lqe,{elementInjector:Qo.create({providers:[{provide:B8,useValue:o},{provide:IQ,useValue:r.rootNodes},{provide:Y8,useValue:e}],parent:this.injector}),environmentInjector:this.injector})}mergeConfig(e){return{...this.globalConfig,id:`dialog-${Math.random().toString(36).substring(7)}`,...e,sizes:this.globalConfig?.sizes}}throwIfIDAlreadyExists(e){if(this.dialogs.find(o=>o.id===e))throw new Error(`Please, ID must be unique, but there is already a dialog created with this ID: ${e}`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=et({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rv="providers/5.7.2";var Mp=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})};const hl=new at("abstract-signer/5.7.0"),fqe=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],hqe=[at.errors.INSUFFICIENT_FUNDS,at.errors.NONCE_EXPIRED,at.errors.REPLACEMENT_UNDERPRICED];class H8{constructor(){hl.checkAbstract(new.target,H8),O1(this,"_isSigner",!0)}getBalance(t){return Mp(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return Mp(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return Mp(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const e=yield Ui(this.checkTransaction(t));return yield this.provider.estimateGas(e)})}call(t,e){return Mp(this,void 0,void 0,function*(){this._checkProvider("call");const o=yield Ui(this.checkTransaction(t));return yield this.provider.call(o,e)})}sendTransaction(t){return Mp(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),o=yield this.signTransaction(e);return yield this.provider.sendTransaction(o)})}getChainId(){return Mp(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Mp(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Mp(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return Mp(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(const o in t)-1===fqe.indexOf(o)&&hl.throwArgumentError("invalid transaction key: "+o,"transaction",t);const e=$s(t);return e.from=null==e.from?this.getAddress():Promise.all([Promise.resolve(e.from),this.getAddress()]).then(o=>(o[0].toLowerCase()!==o[1].toLowerCase()&&hl.throwArgumentError("from address mismatch","transaction",t),o[0])),e}populateTransaction(t){return Mp(this,void 0,void 0,function*(){const e=yield Ui(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(r=>Mp(this,void 0,void 0,function*(){if(null==r)return null;const i=yield this.resolveName(r);return null==i&&hl.throwArgumentError("provided ENS name resolves to null","tx.to",r),i})),e.to.catch(r=>{}));const o=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!o?(0===e.type||1===e.type)&&o&&hl.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):hl.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas)if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const r=yield this.getFeeData();if(null==e.type)if(null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)if(e.type=2,null!=e.gasPrice){const i=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=i,e.maxPriorityFeePerGas=i}else null==e.maxFeePerGas&&(e.maxFeePerGas=r.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=r.maxPriorityFeePerGas);else null!=r.gasPrice?(o&&hl.throwError("network does not support EIP-1559",at.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=r.gasPrice),e.type=0):hl.throwError("failed to get consistent fee data",at.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=r.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=r.maxPriorityFeePerGas))}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(r=>{if(hqe.indexOf(r.code)>=0)throw r;return hl.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",at.errors.UNPREDICTABLE_GAS_LIMIT,{error:r,tx:e})})),e.chainId=null==e.chainId?this.getChainId():Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(r=>(0!==r[1]&&r[0]!==r[1]&&hl.throwArgumentError("chainId address mismatch","transaction",t),r[0])),yield Ui(e)})}_checkProvider(t){this.provider||hl.throwError("missing provider",at.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!(!t||!t._isSigner)}}const FQ="hash/5.7.0";function YQ(n){return Vi(qd(n))}const rr=new at(FQ),HQ=new Uint8Array(32);HQ.fill(0);const bqe=e0.from(-1),XQ=e0.from(0),jQ=e0.from(1),gqe=e0.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),mqe=or(jQ.toHexString(),32),_qe=or(XQ.toHexString(),32),UQ={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},X8=["name","version","chainId","verifyingContract","salt"];function VQ(n){return function(t){return"string"!=typeof t&&rr.throwArgumentError(`invalid domain value for ${JSON.stringify(n)}`,`domain.${n}`,t),t}}const zqe={name:VQ("name"),version:VQ("version"),chainId:function(n){try{return e0.from(n).toString()}catch{}return rr.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",n)},verifyingContract:function(n){try{return $i(n).toLowerCase()}catch{}return rr.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",n)},salt:function(n){try{const t=l1(n);if(32!==t.length)throw new Error("bad length");return s1(t)}catch{}return rr.throwArgumentError('invalid domain value "salt"',"domain.salt",n)}};function j8(n){{const t=n.match(/^(u?)int(\d*)$/);if(t){const e=""===t[1],o=parseInt(t[2]||"256");(o%8!=0||o>256||t[2]&&t[2]!==String(o))&&rr.throwArgumentError("invalid numeric width","type",n);const r=gqe.mask(e?o-1:o),i=e?r.add(jQ).mul(bqe):XQ;return function(a){const s=e0.from(a);return(s.lt(i)||s.gt(r))&&rr.throwArgumentError(`value out-of-bounds for ${n}`,"value",a),or(s.toTwos(256).toHexString(),32)}}}{const t=n.match(/^bytes(\d+)$/);if(t){const e=parseInt(t[1]);return(0===e||e>32||t[1]!==String(e))&&rr.throwArgumentError("invalid bytes width","type",n),function(o){return l1(o).length!==e&&rr.throwArgumentError(`invalid length for ${n}`,"value",o),function Oqe(n){const t=l1(n),e=t.length%32;return e?Us([t,HQ.slice(e)]):s1(t)}(o)}}}switch(n){case"address":return function(t){return or($i(t),32)};case"bool":return function(t){return t?mqe:_qe};case"bytes":return function(t){return Vi(t)};case"string":return function(t){return YQ(t)}}return null}function $Q(n,t){return`${n}(${t.map(({name:e,type:o})=>o+" "+e).join(",")})`}class _c{constructor(t){O1(this,"types",Object.freeze(pf(t))),O1(this,"_encoderCache",{}),O1(this,"_types",{});const e={},o={},r={};Object.keys(t).forEach(s=>{e[s]={},o[s]=[],r[s]={}});for(const s in t){const c={};t[s].forEach(p=>{c[p.name]&&rr.throwArgumentError(`duplicate variable name ${JSON.stringify(p.name)} in ${JSON.stringify(s)}`,"types",t),c[p.name]=!0;const d=p.type.match(/^([^\x5b]*)(\x5b|$)/)[1];d===s&&rr.throwArgumentError(`circular type reference to ${JSON.stringify(d)}`,"types",t),!j8(d)&&(o[d]||rr.throwArgumentError(`unknown type ${JSON.stringify(d)}`,"types",t),o[d].push(s),e[s][d]=!0)})}const i=Object.keys(o).filter(s=>0===o[s].length);0===i.length?rr.throwArgumentError("missing primary type","types",t):i.length>1&&rr.throwArgumentError(`ambiguous primary types or unused types: ${i.map(s=>JSON.stringify(s)).join(", ")}`,"types",t),O1(this,"primaryType",i[0]),function a(s,c){c[s]&&rr.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",t),c[s]=!0,Object.keys(e[s]).forEach(p=>{o[p]&&(a(p,c),Object.keys(c).forEach(d=>{r[d][p]=!0}))}),delete c[s]}(this.primaryType,{});for(const s in r){const c=Object.keys(r[s]);c.sort(),this._types[s]=$Q(s,t[s])+c.map(p=>$Q(p,t[p])).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const r=j8(t);if(r)return r}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const r=e[1],i=this.getEncoder(r),a=parseInt(e[3]);return s=>{a>=0&&s.length!==a&&rr.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",s);let c=s.map(i);return this._types[r]&&(c=c.map(Vi)),Vi(Us(c))}}const o=this.types[t];if(o){const r=YQ(this._types[t]);return i=>{const a=o.map(({name:s,type:c})=>{const p=this.getEncoder(c)(i[s]);return this._types[c]?Vi(p):p});return a.unshift(r),Us(a)}}return rr.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||rr.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return Vi(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,o){if(j8(t))return o(t,e);const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const a=r[1],s=parseInt(r[3]);return s>=0&&e.length!==s&&rr.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(c=>this._visit(a,c,o))}const i=this.types[t];return i?i.reduce((a,{name:s,type:c})=>(a[s]=this._visit(c,e[s],o),a),{}):rr.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new _c(t)}static getPrimaryType(t){return _c.from(t).primaryType}static hashStruct(t,e,o){return _c.from(e).hashStruct(t,o)}static hashDomain(t){const e=[];for(const o in t){const r=UQ[o];r||rr.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(o)}`,"domain",t),e.push({name:o,type:r})}return e.sort((o,r)=>X8.indexOf(o.name)-X8.indexOf(r.name)),_c.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,o){return Us(["0x1901",_c.hashDomain(t),_c.from(e).hash(o)])}static hash(t,e,o){return Vi(_c.encode(t,e,o))}static resolveNames(t,e,o,r){return function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){t=$s(t);const i={};t.verifyingContract&&!yo(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const a=_c.from(e);a.visit(o,(s,c)=>("address"===s&&!yo(c,20)&&(i[c]="0x"),c));for(const s in i)i[s]=yield r(s);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),o=a.visit(o,(s,c)=>"address"===s&&i[c]?i[c]:c),{domain:t,value:o}})}static getPayload(t,e,o){_c.hashDomain(t);const r={},i=[];X8.forEach(c=>{const p=t[c];null!=p&&(r[c]=zqe[c](p),i.push({name:c,type:UQ[c]}))});const a=_c.from(e),s=$s(e);return s.EIP712Domain?rr.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):s.EIP712Domain=i,a.encode(o),{types:s,domain:r,primaryType:a.primaryType,message:a.visit(o,(c,p)=>{if(c.match(/^bytes(\d*)/))return s1(l1(p));if(c.match(/^u?int/))return e0.from(p).toString();switch(c){case"address":return p.toLowerCase();case"bool":return!!p;case"string":return"string"!=typeof p&&rr.throwArgumentError("invalid string","value",p),p}return rr.throwArgumentError("unsupported type","type",c)})}}}var vqe=G(7084),Td=G.n(vqe);function IO(n,t,e){return n(e={path:t,exports:{},require:function(o,r){return function Aqe(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;var U8=GQ;function GQ(n,t){if(!n)throw new Error(t||"Assertion failed")}GQ.equal=function(t,e,o){if(t!=e)throw new Error(o||"Assertion failed: "+t+" != "+e)};var bp=IO(function(n,t){var e=t;function r(a){return 1===a.length?"0"+a:a}function i(a){for(var s="",c=0;c>8,h=255&d;u?c.push(u,h):c.push(h)}return c},e.zero2=r,e.toHex=i,e.encode=function(s,c){return"hex"===c?i(s):s}}),zc=IO(function(n,t){var e=t;e.assert=U8,e.toArray=bp.toArray,e.zero2=bp.zero2,e.toHex=bp.toHex,e.encode=bp.encode,e.getNAF=function o(c,p,d){var u=new Array(Math.max(c.bitLength(),d)+1);u.fill(0);for(var h=1<(h>>1)-1?(h>>1)-A:A):v=0,u[g]=v,M.iushrn(1)}return u},e.getJSF=function r(c,p){var d=[[],[]];c=c.clone(),p=p.clone();for(var M,u=0,h=0;c.cmpn(-u)>0||p.cmpn(-h)>0;){var A,y,g=c.andln(3)+u&3,v=p.andln(3)+h&3;3===g&&(g=-1),3===v&&(v=-1),A=1&g?3!=(M=c.andln(7)+u&7)&&5!==M||2!==v?g:-g:0,d[0].push(A),y=1&v?3!=(M=p.andln(7)+h&7)&&5!==M||2!==g?v:-v:0,d[1].push(y),2*u===A+1&&(u=1-u),2*h===y+1&&(h=1-h),c.iushrn(1),p.iushrn(1)}return d},e.cachedProperty=function i(c,p,d){var u="_"+p;c.prototype[p]=function(){return void 0!==this[u]?this[u]:this[u]=d.call(this)}},e.parseBytes=function a(c){return"string"==typeof c?e.toArray(c,"hex"):c},e.intFromLE=function s(c){return new(y1())(c,"hex","le")}}),Kw=zc.getNAF,yqe=zc.getJSF,Jw=zc.assert;function _f(n,t){this.type=n,this.p=new(y1())(t.p,16),this.red=t.prime?y1().red(t.prime):y1().mont(this.p),this.zero=new(y1())(0).toRed(this.red),this.one=new(y1())(1).toRed(this.red),this.two=new(y1())(2).toRed(this.red),this.n=t.n&&new(y1())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var e=this.n&&this.p.div(this.n);!e||e.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var zM=_f;function Ml(n,t){this.curve=n,this.type=t,this.precomputed=null}_f.prototype.point=function(){throw new Error("Not implemented")},_f.prototype.validate=function(){throw new Error("Not implemented")},_f.prototype._fixedNafMul=function(t,e){Jw(t.precomputed);var o=t._getDoubles(),r=Kw(e,1,this._bitLength),i=(1<=s;p--)c=(c<<1)+r[p];a.push(c)}for(var d=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=i;h>0;h--){for(s=0;s=0;c--){for(var p=0;c>=0&&0===a[c];c--)p++;if(c>=0&&p++,s=s.dblp(p),c<0)break;var d=a[c];Jw(0!==d),s="affine"===t.type?s.mixedAdd(d>0?i[d-1>>1]:i[-d-1>>1].neg()):s.add(d>0?i[d-1>>1]:i[-d-1>>1].neg())}return"affine"===t.type?s.toP():s},_f.prototype._wnafMulAdd=function(t,e,o,r,i){var d,u,h,a=this._wnafT1,s=this._wnafT2,c=this._wnafT3,p=0;for(d=0;d=1;d-=2){var g=d-1,v=d;if(1===a[g]&&1===a[v]){var A=[e[g],null,null,e[v]];0===e[g].y.cmp(e[v].y)?(A[1]=e[g].add(e[v]),A[2]=e[g].toJ().mixedAdd(e[v].neg())):0===e[g].y.cmp(e[v].y.redNeg())?(A[1]=e[g].toJ().mixedAdd(e[v]),A[2]=e[g].add(e[v].neg())):(A[1]=e[g].toJ().mixedAdd(e[v]),A[2]=e[g].toJ().mixedAdd(e[v].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],q=yqe(o[g],o[v]);for(p=Math.max(q[0].length,p),c[g]=new Array(p),c[v]=new Array(p),u=0;u=0;d--){for(var re=0;d>=0;){var ee=!0;for(u=0;u=0&&re++,X=X.dblp(re),d<0)break;for(u=0;u0?h=s[u][le-1>>1]:le<0&&(h=s[u][-le-1>>1].neg()),X="affine"===h.type?X.mixedAdd(h):X.add(h))}}for(d=0;d=Math.ceil((t.bitLength()+1)/e.step)},Ml.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var o=[this],r=this,i=0;i=0&&(M=p,g=d),u.negative&&(u=u.neg(),h=h.neg()),M.negative&&(M=M.neg(),g=g.neg()),[{a:u,b:h},{a:M,b:g}]},bl.prototype._endoSplit=function(t){var e=this.endo.basis,o=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),a=o.b.neg().mul(t).divRound(this.n),s=i.mul(o.a),c=a.mul(r.a),p=i.mul(o.b),d=a.mul(r.b);return{k1:t.sub(s).sub(c),k2:p.add(d).neg()}},bl.prototype.pointFromX=function(t,e){(t=new(y1())(t,16)).red||(t=t.toRed(this.red));var o=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=o.redSqrt();if(0!==r.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},bl.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,o=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===o.redSqr().redISub(i).cmpn(0)},bl.prototype._endoWnafMulAdd=function(t,e,o){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""},qi.prototype.isInfinity=function(){return this.inf},qi.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var o=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,r)},qi.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,o=this.x.redSqr(),r=t.redInvm(),i=o.redAdd(o).redIAdd(o).redIAdd(e).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},qi.prototype.getX=function(){return this.x.fromRed()},qi.prototype.getY=function(){return this.y.fromRed()},qi.prototype.mul=function(t){return t=new(y1())(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},qi.prototype.mulAdd=function(t,e,o){var r=[this,e],i=[t,o];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},qi.prototype.jmulAdd=function(t,e,o){var r=[this,e],i=[t,o];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},qi.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},qi.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var o=this.precomputed,r=function(i){return i.neg()};e.precomputed={naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(r)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(r)}}}return e},qi.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},V8(Zi,zM.BasePoint),bl.prototype.jpoint=function(t,e,o){return new Zi(this,t,e,o)},Zi.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),o=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(o,r)},Zi.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Zi.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),o=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(o),a=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(o.redMul(this.z)),c=r.redSub(i),p=a.redSub(s);if(0===c.cmpn(0))return 0!==p.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=c.redSqr(),u=d.redMul(c),h=r.redMul(d),M=p.redSqr().redIAdd(u).redISub(h).redISub(h),g=p.redMul(h.redISub(M)).redISub(a.redMul(u)),v=this.z.redMul(t.z).redMul(c);return this.curve.jpoint(M,g,v)},Zi.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),o=this.x,r=t.x.redMul(e),i=this.y,a=t.y.redMul(e).redMul(this.z),s=o.redSub(r),c=i.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var p=s.redSqr(),d=p.redMul(s),u=o.redMul(p),h=c.redSqr().redIAdd(d).redISub(u).redISub(u),M=c.redMul(u.redISub(h)).redISub(i.redMul(d)),g=this.z.redMul(s);return this.curve.jpoint(h,M,g)},Zi.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var o=this;for(e=0;e=0)return!1;if(o.redIAdd(i),0===this.x.cmp(o))return!0}},Zi.prototype.inspect=function(){return this.isInfinity()?"":""},Zi.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Qw=IO(function(n,t){var e=t;e.base=zM,e.short=wqe,e.mont=null,e.edwards=null}),eP=IO(function(n,t){var a,e=t,o=zc.assert;function r(s){this.curve="short"===s.type?new Qw.short(s):"edwards"===s.type?new Qw.edwards(s):new Qw.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(s,c){Object.defineProperty(e,s,{configurable:!0,enumerable:!0,get:function(){var p=new r(c);return Object.defineProperty(e,s,{configurable:!0,enumerable:!0,value:p}),p}})}e.PresetCurve=r,i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Td().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Td().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Td().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Td().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Td().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Td().sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Td().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{a=null.crash()}catch{a=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Td().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})});function zf(n){if(!(this instanceof zf))return new zf(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=bp.toArray(n.entropy,n.entropyEnc||"hex"),e=bp.toArray(n.nonce,n.nonceEnc||"hex"),o=bp.toArray(n.pers,n.persEnc||"hex");U8(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,e,o)}var ZQ=zf;zf.prototype._init=function(t,e,o){var r=t.concat(e).concat(o);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(o||[])),this._reseed=1},zf.prototype.generate=function(t,e,o,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=o,o=e,e=null),o&&(o=bp.toArray(o,r||"hex"),this._update(o));for(var i=[];i.length"};var Pqe=zc.assert;function tP(n,t){if(n instanceof tP)return n;this._importDER(n,t)||(Pqe(n.r&&n.s,"Signature without r or s"),this.r=new(y1())(n.r,16),this.s=new(y1())(n.s,16),this.recoveryParam=void 0===n.recoveryParam?null:n.recoveryParam)}var nP=tP;function xqe(){this.place=0}function Z8(n,t){var e=n[t.place++];if(!(128&e))return e;var o=15&e;if(0===o||o>4)return!1;for(var r=0,i=0,a=t.place;i>>=0;return!(r<=127)&&(t.place=a,r)}function KQ(n){for(var t=0,e=n.length-1;!n[t]&&!(128&n[t+1])&&t>>3);for(n.push(128|e);--e;)n.push(t>>>(e<<3)&255);n.push(t)}}tP.prototype._importDER=function(t,e){t=zc.toArray(t,e);var o=new xqe;if(48!==t[o.place++])return!1;var r=Z8(t,o);if(!1===r||r+o.place!==t.length||2!==t[o.place++])return!1;var i=Z8(t,o);if(!1===i)return!1;var a=t.slice(o.place,i+o.place);if(o.place+=i,2!==t[o.place++])return!1;var s=Z8(t,o);if(!1===s||t.length!==s+o.place)return!1;var c=t.slice(o.place,s+o.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new(y1())(a),this.s=new(y1())(c),this.recoveryParam=null,!0},tP.prototype.toDER=function(t){var e=this.r.toArray(),o=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&o[0]&&(o=[0].concat(o)),e=KQ(e),o=KQ(o);!(o[0]||128&o[1]);)o=o.slice(1);var r=[2];K8(r,e.length),(r=r.concat(e)).push(2),K8(r,o.length);var i=r.concat(o),a=[48];return K8(a,i.length),a=a.concat(i),zc.encode(a,t)};var qqe=function(){throw new Error("unsupported")},JQ=zc.assert;function gl(n){if(!(this instanceof gl))return new gl(n);"string"==typeof n&&(JQ(Object.prototype.hasOwnProperty.call(eP,n),"Unknown curve "+n),n=eP[n]),n instanceof eP.PresetCurve&&(n={curve:n}),this.curve=n.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=n.curve.g,this.g.precompute(n.curve.n.bitLength()+1),this.hash=n.hash||n.curve.hash}var Wqe=gl;gl.prototype.keyPair=function(t){return new G8(this,t)},gl.prototype.keyFromPrivate=function(t,e){return G8.fromPrivate(this,t,e)},gl.prototype.keyFromPublic=function(t,e){return G8.fromPublic(this,t,e)},gl.prototype.genKeyPair=function(t){t||(t={});for(var e=new ZQ({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||qqe(),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),r=this.n.sub(new(y1())(2));;){var i=new(y1())(e.generate(o));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},gl.prototype._truncateToN=function(t,e){var o=8*t.byteLength()-this.n.bitLength();return o>0&&(t=t.ushrn(o)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},gl.prototype.sign=function(t,e,o,r){"object"==typeof o&&(r=o,o=null),r||(r={}),e=this.keyFromPrivate(e,o),t=this._truncateToN(new(y1())(t,16));for(var i=this.n.byteLength(),a=e.getPrivate().toArray("be",i),s=t.toArray("be",i),c=new ZQ({hash:this.hash,entropy:a,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),p=this.n.sub(new(y1())(1)),d=0;;d++){var u=r.k?r.k(d):new(y1())(c.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||u.cmp(p)>=0)){var h=this.g.mul(u);if(!h.isInfinity()){var M=h.getX(),g=M.umod(this.n);if(0!==g.cmpn(0)){var v=u.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(v=v.umod(this.n)).cmpn(0)){var A=(h.getY().isOdd()?1:0)|(0!==M.cmp(g)?2:0);return r.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),A^=1),new nP({r:g,s:v,recoveryParam:A})}}}}}},gl.prototype.verify=function(t,e,o,r){t=this._truncateToN(new(y1())(t,16)),o=this.keyFromPublic(o,r);var i=(e=new nP(e,"hex")).r,a=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var d,s=a.invm(this.n),c=s.mul(t).umod(this.n),p=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(d=this.g.jmulAdd(c,o.getPublic(),p)).isInfinity()&&d.eqXToP(i):!(d=this.g.mulAdd(c,o.getPublic(),p)).isInfinity()&&0===d.getX().umod(this.n).cmp(i)},gl.prototype.recoverPubKey=function(n,t,e,o){JQ((3&e)===e,"The recovery param is more than two bits"),t=new nP(t,o);var r=this.n,i=new(y1())(n),a=t.r,s=t.s,c=1&e,p=e>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&p)throw new Error("Unable to find sencond key candinate");a=this.curve.pointFromX(p?a.add(this.curve.n):a,c);var d=t.r.invm(r),u=r.sub(i).mul(d).umod(r),h=s.mul(d).umod(r);return this.g.mulAdd(u,a,h)},gl.prototype.getKeyRecoveryParam=function(n,t,e,o){if(null!==(t=new nP(t,o)).recoveryParam)return t.recoveryParam;for(var r=0;r<4;r++){var i;try{i=this.recoverPubKey(n,t,r)}catch{continue}if(i.eq(e))return r}throw new Error("Unable to find valid recovery factor")};var Lqe=IO(function(n,t){var e=t;e.version="6.5.4",e.utils=zc,e.rand=function(){throw new Error("unsupported")},e.curve=Qw,e.curves=eP,e.ec=Wqe,e.eddsa=null}),Tqe=Lqe.ec;const J8=new at("signing-key/5.7.0");let Q8=null;function Rd(){return Q8||(Q8=new Tqe("secp256k1")),Q8}class Sqe{constructor(t){O1(this,"curve","secp256k1"),O1(this,"privateKey",s1(t)),32!==hM(this.privateKey)&&J8.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=Rd().keyFromPrivate(l1(this.privateKey));O1(this,"publicKey","0x"+e.getPublic(!1,"hex")),O1(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),O1(this,"_isSigningKey",!0)}_addPoint(t){const e=Rd().keyFromPublic(l1(this.publicKey)),o=Rd().keyFromPublic(l1(t));return"0x"+e.pub.add(o.pub).encodeCompressed("hex")}signDigest(t){const e=Rd().keyFromPrivate(l1(this.privateKey)),o=l1(t);32!==o.length&&J8.throwArgumentError("bad digest length","digest",t);const r=e.sign(o,{canonical:!0});return Dz({recoveryParam:r.recoveryParam,r:or("0x"+r.r.toString(16),32),s:or("0x"+r.s.toString(16),32)})}computeSharedSecret(t){const e=Rd().keyFromPrivate(l1(this.privateKey)),o=Rd().keyFromPublic(l1(QQ(t)));return or("0x"+e.derive(o.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function QQ(n,t){const e=l1(n);if(32===e.length){const o=new Sqe(e);return t?"0x"+Rd().keyFromPrivate(e).getPublic(!0,"hex"):o.publicKey}return 33===e.length?t?s1(e):"0x"+Rd().keyFromPublic(e).getPublic(!1,"hex"):65===e.length?t?"0x"+Rd().keyFromPublic(e).getPublic(!0,"hex"):s1(e):J8.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Wa=new at("transactions/5.7.0");function ek(n){return"0x"===n?null:$i(n)}function La(n){return"0x"===n?pJ:e0.from(n)}function eee(n,t){return function Nqe(n){return $i(Pa(Vi(Pa(QQ(n),1)),12))}(function Dqe(n,t){const e=Dz(t),o={r:l1(e.r),s:l1(e.s)};return"0x"+Rd().recoverPubKey(l1(n),o,e.recoveryParam).encode("hex",!1)}(l1(n),t))}function vc(n,t){const e=wO(e0.from(n).toHexString());return e.length>32&&Wa.throwArgumentError("invalid length for "+t,"transaction:"+t,n),e}function tk(n,t){return{address:$i(n),storageKeys:(t||[]).map((e,o)=>(32!==hM(e)&&Wa.throwArgumentError("invalid access list storageKey",`accessList[${n}:${o}]`,e),e.toLowerCase()))}}function NO(n){if(Array.isArray(n))return n.map((e,o)=>Array.isArray(e)?(e.length>2&&Wa.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${o}]`,e),tk(e[0],e[1])):tk(e.address,e.storageKeys));const t=Object.keys(n).map(e=>{const o=n[e].reduce((r,i)=>(r[i]=!0,r),{});return tk(e,Object.keys(o).sort())});return t.sort((e,o)=>e.address.localeCompare(o.address)),t}function tee(n){return NO(n).map(t=>[t.address,t.storageKeys])}function nee(n,t){if(null!=n.gasPrice){const o=e0.from(n.gasPrice),r=e0.from(n.maxFeePerGas||0);o.eq(r)||Wa.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:o,maxFeePerGas:r})}const e=[vc(n.chainId||0,"chainId"),vc(n.nonce||0,"nonce"),vc(n.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),vc(n.maxFeePerGas||0,"maxFeePerGas"),vc(n.gasLimit||0,"gasLimit"),null!=n.to?$i(n.to):"0x",vc(n.value||0,"value"),n.data||"0x",tee(n.accessList||[])];if(t){const o=Dz(t);e.push(vc(o.recoveryParam,"recoveryParam")),e.push(wO(o.r)),e.push(wO(o.s))}return Us(["0x02",qw(e)])}function oee(n,t){const e=[vc(n.chainId||0,"chainId"),vc(n.nonce||0,"nonce"),vc(n.gasPrice||0,"gasPrice"),vc(n.gasLimit||0,"gasLimit"),null!=n.to?$i(n.to):"0x",vc(n.value||0,"value"),n.data||"0x",tee(n.accessList||[])];if(t){const o=Dz(t);e.push(vc(o.recoveryParam,"recoveryParam")),e.push(wO(o.r)),e.push(wO(o.s))}return Us(["0x01",qw(e)])}function ree(n,t,e){try{const o=La(t[0]).toNumber();if(0!==o&&1!==o)throw new Error("bad recid");n.v=o}catch{Wa.throwArgumentError("invalid v for transaction type: 1","v",t[0])}n.r=or(t[1],32),n.s=or(t[2],32);try{const o=Vi(e(n));n.from=eee(o,{r:n.r,s:n.s,recoveryParam:n.v})}catch{}}function iee(n){n=atob(n);const t=[];for(let e=0;e{i[s.toLowerCase()]=a}):o.headers.keys().forEach(a=>{i[a.toLowerCase()]=o.headers.get(a)}),{headers:i,statusCode:o.status,statusMessage:o.statusText,body:l1(new Uint8Array(r))}})}var $qe=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})};const gp=new at("web/5.7.1");function see(n){return new Promise(t=>{setTimeout(t,n)})}function vf(n,t){if(null==n)return null;if("string"==typeof n)return n;if(KD(n)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Fz(n)}catch{}return s1(n)}return n}function Gqe(n){return qd(n.replace(/%([0-9a-f][0-9a-f])/gi,(t,e)=>String.fromCharCode(parseInt(e,16))))}function oP(n,t,e){let r=null;if(null!=t){r=qd(t);const i="string"==typeof n?{url:n}:$s(n);i.headers?0!==Object.keys(i.headers).filter(s=>"content-type"===s.toLowerCase()).length||(i.headers=$s(i.headers),i.headers["content-type"]="application/json"):i.headers={"content-type":"application/json"},n=i}return function Zqe(n,t,e){const o="object"==typeof n&&null!=n.throttleLimit?n.throttleLimit:12;gp.assertArgument(o>0&&o%1==0,"invalid connection throttle limit","connection.throttleLimit",o);const r="object"==typeof n?n.throttleCallback:null,i="object"==typeof n&&"number"==typeof n.throttleSlotInterval?n.throttleSlotInterval:100;gp.assertArgument(i>0&&i%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);const a="object"==typeof n&&!!n.errorPassThrough,s={};let c=null;const p={method:"GET"};let d=!1,u=12e4;if("string"==typeof n)c=n;else if("object"==typeof n){if((null==n||null==n.url)&&gp.throwArgumentError("missing URL","connection.url",n),c=n.url,"number"==typeof n.timeout&&n.timeout>0&&(u=n.timeout),n.headers)for(const y in n.headers)s[y.toLowerCase()]={key:y,value:String(n.headers[y])},["if-none-match","if-modified-since"].indexOf(y.toLowerCase())>=0&&(d=!0);p.allowGzip=!!n.allowGzip,null!=n.user&&null!=n.password&&("https:"!==c.substring(0,6)&&!0!==n.allowInsecureAuthentication&&gp.throwError("basic authentication requires a secure https url",at.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:n.user,password:"[REDACTED]"}),s.authorization={key:"Authorization",value:"Basic "+aee(qd(n.user+":"+n.password))}),null!=n.skipFetchSetup&&(p.skipFetchSetup=!!n.skipFetchSetup),null!=n.fetchOptions&&(p.fetchOptions=$s(n.fetchOptions))}const h=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),M=c?c.match(h):null;if(M)try{const y={statusCode:200,statusMessage:"OK",headers:{"content-type":M[1]||"text/plain"},body:M[2]?iee(M[3]):Gqe(M[3])};let q=y.body;return e&&(q=e(y.body,y)),Promise.resolve(q)}catch(y){gp.throwError("processing response error",at.errors.SERVER_ERROR,{body:vf(M[1],M[2]),error:y,requestBody:null,requestMethod:"GET",url:c})}t&&(p.method="POST",p.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)}));const g={};Object.keys(s).forEach(y=>{const q=s[y];g[q.key]=q.value}),p.headers=g;const v=function(){let y=null;return{promise:new Promise(function(D,X){u&&(y=setTimeout(()=>{null!=y&&(y=null,X(gp.makeError("timeout",at.errors.TIMEOUT,{requestBody:vf(p.body,g["content-type"]),requestMethod:p.method,timeout:u,url:c})))},u))}),cancel:function(){null!=y&&(clearTimeout(y),y=null)}}}(),A=function(){return $qe(this,void 0,void 0,function*(){for(let y=0;y=300)&&(v.cancel(),gp.throwError("bad response",at.errors.SERVER_ERROR,{status:q.statusCode,headers:q.headers,body:vf(L,q.headers?q.headers["content-type"]:null),requestBody:vf(p.body,g["content-type"]),requestMethod:p.method,url:c})),e)try{const D=yield e(L,q);return v.cancel(),D}catch(D){if(D.throttleRetry&&y{let s=null;if(null!=i)try{s=JSON.parse(Fz(i))}catch(c){gp.throwError("invalid JSON",at.errors.SERVER_ERROR,{body:i,error:c})}return e&&(s=e(s,a)),s})}function iv(n,t){return t||(t={}),null==(t=$s(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(e,o){let r=null,i=!1;const a=()=>!i&&(i=!0,r&&clearTimeout(r),!0);t.timeout&&(r=setTimeout(()=>{a()&&o(new Error("timeout"))},t.timeout));const s=t.retryLimit;let c=0;!function p(){return n().then(function(d){if(void 0!==d)a()&&e(d);else if(t.oncePoll)t.oncePoll.once("poll",p);else if(t.onceBlock)t.onceBlock.once("block",p);else if(!i){if(c++,c>s)return void(a()&&o(new Error("retry limit reached")));let u=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));ut.ceiling&&(u=t.ceiling),setTimeout(p,u)}return null},function(d){a()&&o(d)})}()})}const av=new at("abstract-provider/5.7.0");class Qqe extends z5e{static isForkEvent(t){return!(!t||!t._isForkEvent)}}class nk{constructor(){av.checkAbstract(new.target,nk),O1(this,"_isProvider",!0)}getFeeData(){return function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){const{block:t,gasPrice:e}=yield Ui({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(a=>null)});let o=null,r=null,i=null;return t&&t.baseFeePerGas&&(o=t.baseFeePerGas,i=e0.from("1500000000"),r=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:o,maxFeePerGas:r,maxPriorityFeePerGas:i,gasPrice:e}})}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}class cee{constructor(t){O1(this,"alphabet",t),O1(this,"base",t.length),O1(this,"_alphabetMap",{}),O1(this,"_leader",t.charAt(0));for(let e=0;e0;)o.push(a%this.base),a=a/this.base|0}let r="";for(let i=0;0===e[i]&&i=0;--i)r+=this.alphabet[o[i]];return r}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let o=0;o>=8;for(;i>0;)e.push(255&i),i>>=8}for(let o=0;t[o]===this._leader&&o0&&Array.isArray(s)?r(s,a-1):e.push(s)})};return r(n,t),e}function i6e(n){return 1&n?~n>>1:n>>1}function pee(n,t){let e=Array(n);for(let o=0,r=-1;ot[a]):e}function dee(n,t,e){let o=Array(n).fill(void 0).map(()=>[]);for(let r=0;ro[a].push(i));return o}function p6e(n,t){let e=1+t(),o=t(),r=function l6e(n){let t=[];for(;;){let e=n();if(0==e)break;t.push(e)}return t}(t);return lee(dee(r.length,1+n,t).map((a,s)=>{const c=a[0],p=a.slice(1);return Array(r[s]).fill(void 0).map((d,u)=>{let h=u*o;return[c+u*e,p.map(M=>M+h)]})}))}function d6e(n,t){return dee(1+t(),1+n,t).map(r=>[r[0],r.slice(1)])}const iP=function f6e(){return function r6e(n){return function o6e(n){let t=0;return()=>n[t++]}(function n6e(n){let t=0;function e(){return n[t++]<<8|n[t++]}let o=e(),r=1,i=[0,1];for(let X=1;X>--c&1}const h=Math.pow(2,31),M=h>>>1,g=M>>1,v=h-1;let A=0;for(let X=0;X<31;X++)A=A<<1|d();let y=[],q=0,L=h;for(;;){let X=Math.floor(((A-q+1)*r-1)/L),H=0,re=o;for(;re-H>1;){let he=H+re>>>1;X>>1|d(),ee=ee<<1^M,le=(le^M)<<1|M|1;q=ee,L=1+le-ee}let D=o-4;return y.map(X=>{switch(X-D){case 3:return D+65792+(n[s++]<<16|n[s++]<<8|n[s++]);case 2:return D+256+(n[s++]<<8|n[s++]);case 1:return D+n[s++];default:return X-1}})}(n))}(iee("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}(),h6e=new Set(rP(iP)),M6e=new Set(rP(iP)),b6e=function c6e(n){let t=[];for(;;){let e=n();if(0==e)break;t.push(p6e(e,n))}for(;;){let e=n()-1;if(e<0)break;t.push(d6e(e,n))}return function t6e(n){const t={};for(let e=0;eo-r);return function e(){let o=[];for(;;){let p=rP(n,t);if(0==p.length)break;o.push({set:new Set(p),node:e()})}o.sort((p,d)=>d.set.size-p.set.size);let r=n(),i=r%3;r=r/3|0;let a=!!(1&r);return r>>=1,{branches:o,valid:i,fe0f:a,save:1==r,check:2==r}}()}(iP),uee=45,fee=95;function hee(n){return function j5e(n,t=WO.current){return i8(qd(n,t))}(n)}function O6e(n){return n.filter(t=>65039!=t)}function Mee(n){for(let t of n.split(".")){let e=hee(t);try{for(let o=e.lastIndexOf(fee)-1;o>=0;o--)if(e[o]!==fee)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every(o=>o<128)&&e[2]===uee&&e[3]===uee)throw new Error("invalid label extension")}catch(o){throw new Error(`Invalid label "${t}": ${o.message}`)}}return n}function v6e(n,t){var e;let r,i,o=g6e,a=[],s=n.length;for(t&&(t.length=0);s;){let c=n[--s];if(o=null===(e=o.branches.find(p=>p.set.has(c)))||void 0===e?void 0:e.node,!o)break;if(o.save)i=c;else if(o.check&&c===i)break;a.push(c),o.fe0f&&(a.push(65039),s>0&&65039==n[s-1]&&s--),o.valid&&(r=a.slice(),2==o.valid&&r.splice(1,1),t&&t.push(...n.slice(s).reverse()),n.length=s)}return r}const A6e=new at(FQ),bee=new Uint8Array(32);function gee(n){if(0===n.length)throw new Error("invalid ENS name; empty component");return n}function aP(n){const t=qd(function m6e(n){return Mee(function _6e(n,t){let e=hee(n).reverse(),o=[];for(;e.length;){let r=v6e(e);if(r){o.push(...t(r));continue}let i=e.pop();if(h6e.has(i)){o.push(i);continue}if(M6e.has(i))continue;let a=b6e[i];if(!a)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);o.push(...a)}return Mee(function z6e(n){return n.normalize("NFC")}(String.fromCodePoint(...o)))}(n,O6e))}(n)),e=[];if(0===n.length)return e;let o=0;for(let r=0;r=t.length)throw new Error("invalid ENS name; empty component");return e.push(gee(t.slice(o))),e}function sP(n){"string"!=typeof n&&A6e.throwArgumentError("invalid ENS name; not a string","name",n);let t=bee;const e=aP(n);for(;e.length;)t=Vi(fp([t,Vi(e.pop())]));return s1(t)}function y6e(n){return s1(fp(aP(n).map(t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e})))+"00"}bee.fill(0);const Oee=new at("networks/5.7.1");function ku(n){const t=function(e,o){null==o&&(o={});const r=[];if(e.InfuraProvider&&"-"!==o.infura)try{r.push(new e.InfuraProvider(n,o.infura))}catch{}if(e.EtherscanProvider&&"-"!==o.etherscan)try{r.push(new e.EtherscanProvider(n,o.etherscan))}catch{}if(e.AlchemyProvider&&"-"!==o.alchemy)try{r.push(new e.AlchemyProvider(n,o.alchemy))}catch{}if(e.PocketProvider&&"-"!==o.pocket){const i=["goerli","ropsten","rinkeby","sepolia"];try{const a=new e.PocketProvider(n,o.pocket);a.network&&-1===i.indexOf(a.network.name)&&r.push(a)}catch{}}if(e.CloudflareProvider&&"-"!==o.cloudflare)try{r.push(new e.CloudflareProvider(n))}catch{}if(e.AnkrProvider&&"-"!==o.ankr)try{const i=["ropsten"],a=new e.AnkrProvider(n,o.ankr);a.network&&-1===i.indexOf(a.network.name)&&r.push(a)}catch{}if(0===r.length)return null;if(e.FallbackProvider){let i=1;return null!=o.quorum?i=o.quorum:"homestead"===n&&(i=2),new e.FallbackProvider(r,i)}return r[0]};return t.renetwork=function(e){return ku(e)},t}function cP(n,t){const e=function(o,r){return o.JsonRpcProvider?new o.JsonRpcProvider(n,t):null};return e.renetwork=function(o){return cP(n,o)},e}const mee={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ku("homestead")},_ee={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ku("ropsten")},zee={chainId:63,name:"classicMordor",_defaultProvider:cP("https://www.ethercluster.com/mordor","classicMordor")},lP={unspecified:{chainId:0,name:"unspecified"},homestead:mee,mainnet:mee,morden:{chainId:2,name:"morden"},ropsten:_ee,testnet:_ee,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ku("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ku("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ku("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ku("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:cP("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:zee,classicTestnet:zee,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:cP("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ku("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ku("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function vee(n){return"0x"+Td().sha256().update(l1(n)).digest("hex")}new at("sha2/5.7.0");var W6e=G(988),Aee=G.n(W6e);const sv=new at(rv);class _0{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),o=this.bigNumber.bind(this),r=this.blockTag.bind(this),i=this.data.bind(this),a=this.hash.bind(this),s=this.hex.bind(this),c=this.number.bind(this),p=this.type.bind(this);return t.transaction={hash:a,type:p,accessList:_0.allowNull(this.accessList.bind(this),null),blockHash:_0.allowNull(a,null),blockNumber:_0.allowNull(c,null),transactionIndex:_0.allowNull(c,null),confirmations:_0.allowNull(c,null),from:e,gasPrice:_0.allowNull(o),maxPriorityFeePerGas:_0.allowNull(o),maxFeePerGas:_0.allowNull(o),gasLimit:o,to:_0.allowNull(e,null),value:o,nonce:c,data:i,r:_0.allowNull(this.uint256),s:_0.allowNull(this.uint256),v:_0.allowNull(c),creates:_0.allowNull(e,null),raw:_0.allowNull(i)},t.transactionRequest={from:_0.allowNull(e),nonce:_0.allowNull(c),gasLimit:_0.allowNull(o),gasPrice:_0.allowNull(o),maxPriorityFeePerGas:_0.allowNull(o),maxFeePerGas:_0.allowNull(o),to:_0.allowNull(e),value:_0.allowNull(o),data:_0.allowNull(u=>this.data(u,!0)),type:_0.allowNull(c),accessList:_0.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:c,blockNumber:c,transactionHash:a,address:e,topics:_0.arrayOf(a),data:i,logIndex:c,blockHash:a},t.receipt={to:_0.allowNull(this.address,null),from:_0.allowNull(this.address,null),contractAddress:_0.allowNull(e,null),transactionIndex:c,root:_0.allowNull(s),gasUsed:o,logsBloom:_0.allowNull(i),blockHash:a,transactionHash:a,logs:_0.arrayOf(this.receiptLog.bind(this)),blockNumber:c,confirmations:_0.allowNull(c,null),cumulativeGasUsed:o,effectiveGasPrice:_0.allowNull(o),status:_0.allowNull(c),type:p},t.block={hash:_0.allowNull(a),parentHash:a,number:c,timestamp:c,nonce:_0.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:o,gasUsed:o,miner:_0.allowNull(e),extraData:i,transactions:_0.allowNull(_0.arrayOf(a)),baseFeePerGas:_0.allowNull(o)},t.blockWithTransactions=$s(t.block),t.blockWithTransactions.transactions=_0.allowNull(_0.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:_0.allowNull(r,void 0),toBlock:_0.allowNull(r,void 0),blockHash:_0.allowNull(a,void 0),address:_0.allowNull(e,void 0),topics:_0.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:_0.allowNull(c),blockHash:_0.allowNull(a),transactionIndex:c,removed:_0.allowNull(this.boolean.bind(this)),address:e,data:_0.allowFalsish(i,"0x"),topics:_0.arrayOf(a),transactionHash:a,logIndex:c},t}accessList(t){return NO(t||[])}number(t){return"0x"===t?0:e0.from(t).toNumber()}type(t){return"0x"===t||null==t?0:e0.from(t).toNumber()}bigNumber(t){return e0.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(!e&&"0x"!==t.substring(0,2)&&(t="0x"+t),yo(t))?t.toLowerCase():sv.throwArgumentError("invalid hash","value",t)}data(t,e){const o=this.hex(t,e);if(o.length%2!=0)throw new Error("invalid data; odd-length - "+t);return o}address(t){return $i(t)}callAddress(t){if(!yo(t,32))return null;const e=$i(Pa(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}contractAddress(t){return function x5e(n){let t=null;try{t=$i(n.from)}catch{df.throwArgumentError("missing from address","transaction",n)}return $i(Pa(Vi(qw([t,wO(l1(e0.from(n.nonce).toHexString()))])),12))}(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";switch(t){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return t}if("number"==typeof t||yo(t))return Sz(t);throw new Error("invalid blockTag")}hash(t,e){const o=this.hex(t,e);return 32!==hM(o)?sv.throwArgumentError("invalid hash","value",t):o}difficulty(t){if(null==t)return null;const e=e0.from(t);try{return e.toNumber()}catch{}return null}uint256(t){if(!yo(t))throw new Error("invalid uint256");return or(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const o=null!=t._difficulty?t._difficulty:t.difficulty,r=_0.check(e,t);return r._difficulty=null==o?null:e0.from(o),r}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return _0.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&e0.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),(1===t.type||2===t.type)&&null==t.accessList&&(t.accessList=[]);const e=_0.check(this.formats.transaction,t);if(null!=t.chainId){let o=t.chainId;yo(o)&&(o=e0.from(o).toNumber()),e.chainId=o}else{let o=t.networkId;null==o&&null==e.v&&(o=t.chainId),yo(o)&&(o=e0.from(o).toNumber()),"number"!=typeof o&&null!=e.v&&(o=(e.v-35)/2,o<0&&(o=0),o=parseInt(o)),"number"!=typeof o&&(o=0),e.chainId=o}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return function Xqe(n){const t=l1(n);if(t[0]>127)return function Hqe(n){const t=o8(n);9!==t.length&&6!==t.length&&Wa.throwArgumentError("invalid raw transaction","rawTransaction",n);const e={nonce:La(t[0]).toNumber(),gasPrice:La(t[1]),gasLimit:La(t[2]),to:ek(t[3]),value:La(t[4]),data:t[5],chainId:0};if(6===t.length)return e;try{e.v=e0.from(t[6]).toNumber()}catch{return e}if(e.r=or(t[7],32),e.s=or(t[8],32),e0.from(e.r).isZero()&&e0.from(e.s).isZero())e.chainId=e.v,e.v=0;else{e.chainId=Math.floor((e.v-35)/2),e.chainId<0&&(e.chainId=0);let o=e.v-27;const r=t.slice(0,6);0!==e.chainId&&(r.push(s1(e.chainId)),r.push("0x"),r.push("0x"),o-=2*e.chainId+8);const i=Vi(qw(r));try{e.from=eee(i,{r:s1(e.r),s:s1(e.s),recoveryParam:o})}catch{}e.hash=Vi(n)}return e.type=null,e}(t);switch(t[0]){case 1:return function Yqe(n){const t=o8(n.slice(1));8!==t.length&&11!==t.length&&Wa.throwArgumentError("invalid component count for transaction type: 1","payload",s1(n));const e={type:1,chainId:La(t[0]).toNumber(),nonce:La(t[1]).toNumber(),gasPrice:La(t[2]),gasLimit:La(t[3]),to:ek(t[4]),value:La(t[5]),data:t[6],accessList:NO(t[7])};return 8===t.length||(e.hash=Vi(n),ree(e,t.slice(8),oee)),e}(t);case 2:return function Fqe(n){const t=o8(n.slice(1));9!==t.length&&12!==t.length&&Wa.throwArgumentError("invalid component count for transaction type: 2","payload",s1(n));const e=La(t[2]),o=La(t[3]),r={type:2,chainId:La(t[0]).toNumber(),nonce:La(t[1]).toNumber(),maxPriorityFeePerGas:e,maxFeePerGas:o,gasPrice:null,gasLimit:La(t[4]),to:ek(t[5]),value:La(t[6]),data:t[7],accessList:NO(t[8])};return 9===t.length||(r.hash=Vi(n),ree(r,t.slice(9),nee)),r}(t)}return Wa.throwError(`unsupported transaction type: ${t[0]}`,at.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}(t)}receiptLog(t){return _0.check(this.formats.receiptLog,t)}receipt(t){const e=_0.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const o=e0.from(e.root).toNumber();0===o||1===o?(null!=e.status&&e.status!==o&&sv.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=o,delete e.root):sv.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&sv.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map(e=>this.topics(e)):null!=t?this.hash(t,!0):null}filter(t){return _0.check(this.formats.filter,t)}filterLog(t){return _0.check(this.formats.filterLog,t)}static check(t,e){const o={};for(const r in t)try{const i=t[r](e[r]);void 0!==i&&(o[r]=i)}catch(i){throw i.checkKey=r,i.checkValue=e[r],i}return o}static allowNull(t,e){return function(o){return null==o?e:t(o)}}static allowFalsish(t,e){return function(o){return o?t(o):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const o=[];return e.forEach(function(r){o.push(t(r))}),o}}}let yee=!1;var m1=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})};const U1=new at(rv);function Cee(n){return null==n?"null":(32!==hM(n)&&U1.throwArgumentError("invalid topic","topic",n),n.toLowerCase())}function wee(n){for(n=n.slice();n.length>0&&null==n[n.length-1];)n.pop();return n.map(t=>{if(Array.isArray(t)){const e={};t.forEach(r=>{e[Cee(r)]=!0});const o=Object.keys(e);return o.sort(),o.join("|")}return Cee(t)}).join("&")}function BO(n){if("string"==typeof n){if(32===hM(n=n.toLowerCase()))return"tx:"+n;if(-1===n.indexOf(":"))return n}else{if(Array.isArray(n))return"filter:*:"+wee(n);if(Qqe.isForkEvent(n))throw U1.warn("not implemented"),new Error("not implemented");if(n&&"object"==typeof n)return"filter:"+(n.address||"*")+":"+wee(n.topics||[])}throw new Error("invalid event - "+n)}function cv(){return(new Date).getTime()}function Pee(n){return new Promise(t=>{setTimeout(t,n)})}const k6e=["block","network","pending","poll"];class E6e{constructor(t,e,o){O1(this,"tag",t),O1(this,"listener",e),O1(this,"once",o),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],o=function D6e(n){return""===n?[]:n.split(/&/g).map(t=>{if(""===t)return[];const e=t.split("|").map(o=>"null"===o?null:o);return 1===e.length?e[0]:e})}(t[2]),r={};return o.length>0&&(r.topics=o),e&&"*"!==e&&(r.address=e),r}pollable(){return this.tag.indexOf(":")>=0||k6e.indexOf(this.tag)>=0}}const I6e={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function rk(n){return or(e0.from(n).toHexString(),32)}function xee(n){return ok.encode(fp([n,Pa(vee(vee(n)),0,4)]))}const qee=new RegExp("^(ipfs)://(.*)$","i"),Wee=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),qee,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function pP(n,t){try{return Fz(lv(n,t))}catch{}return null}function lv(n,t){if("0x"===n)return null;const e=e0.from(Pa(n,t,t+32)).toNumber(),o=e0.from(Pa(n,e,e+32)).toNumber();return Pa(n,e+32,e+32+o)}function ik(n){return n.match(/^ipfs:\/\/ipfs\//i)?n=n.substring(12):n.match(/^ipfs:\/\//i)?n=n.substring(7):U1.throwArgumentError("unsupported IPFS format","link",n),`https://gateway.ipfs.io/ipfs/${n}`}function Lee(n){const t=l1(n);if(t.length>32)throw new Error("internal; should not happen");const e=new Uint8Array(32);return e.set(t,32-t.length),e}function N6e(n){if(n.length%32==0)return n;const t=new Uint8Array(32*Math.ceil(n.length/32));return t.set(n),t}function Tee(n){const t=[];let e=0;for(let o=0;oe0.from(t).eq(1)).catch(t=>{if(t.code===at.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t})),this._supportsEip2544}_fetch(t,e){return m1(this,void 0,void 0,function*(){const o={to:this.address,ccipReadEnabled:!0,data:Us([t,sP(this.name),e||"0x"])};let r=!1;(yield this.supportsWildcard())&&(r=!0,o.data=Us(["0x9061b923",Tee([y6e(this.name),o.data])]));try{let i=yield this.provider.call(o);return l1(i).length%32==4&&U1.throwError("resolver threw error",at.errors.CALL_EXCEPTION,{transaction:o,data:i}),r&&(i=lv(i,0)),i}catch(i){if(i.code===at.errors.CALL_EXCEPTION)return null;throw i}})}_fetchBytes(t,e){return m1(this,void 0,void 0,function*(){const o=yield this._fetch(t,e);return null!=o?lv(o,0):null})}_getAddress(t,e){const o=I6e[String(t)];if(null==o&&U1.throwError(`unsupported coin type: ${t}`,at.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===o.ilk)return this.provider.formatter.address(e);const r=l1(e);if(null!=o.p2pkh){const i=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){const a=parseInt(i[1],16);if(i[2].length===2*a&&a>=1&&a<=75)return xee(fp([[o.p2pkh],"0x"+i[2]]))}}if(null!=o.p2sh){const i=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(i){const a=parseInt(i[1],16);if(i[2].length===2*a&&a>=1&&a<=75)return xee(fp([[o.p2sh],"0x"+i[2]]))}}if(null!=o.prefix){const i=r[1];let a=r[0];if(0===a?20!==i&&32!==i&&(a=-1):a=-1,a>=0&&r.length===2+i&&i>=1&&i<=75){const s=Aee().toWords(r.slice(2));return s.unshift(a),Aee().encode(o.prefix,s)}}return null}getAddress(t){return m1(this,void 0,void 0,function*(){if(null==t&&(t=60),60===t)try{const r=yield this._fetch("0x3b3b57de");return"0x"===r||"0x0000000000000000000000000000000000000000000000000000000000000000"===r?null:this.provider.formatter.callAddress(r)}catch(r){if(r.code===at.errors.CALL_EXCEPTION)return null;throw r}const e=yield this._fetchBytes("0xf1cb7e06",rk(t));if(null==e||"0x"===e)return null;const o=this._getAddress(t,e);return null==o&&U1.throwError("invalid or unsupported coin data",at.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),o})}getAvatar(){return m1(this,void 0,void 0,function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(null==e)return null;for(let o=0;oa[c])}return U1.throwError("invalid or unsupported content hash data",at.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})})}getText(t){return m1(this,void 0,void 0,function*(){let e=qd(t);e=fp([rk(64),rk(e.length),e]),e.length%32!=0&&(e=fp([e,or("0x",32-t.length%32)]));const o=yield this._fetchBytes("0x59d1d43c",s1(e));return null==o||"0x"===o?null:Fz(o)})}}let ak=null,B6e=1;class See extends nk{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),O1(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch(e=>{}),this._ready().catch(e=>{});else{const e=Bz(new.target,"getNetwork")(t);e?(O1(this,"_network",e),this.emit("network",e,null)):U1.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return m1(this,void 0,void 0,function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch{}null==t&&(t=yield this.detectNetwork()),t||U1.throwError("no network detected",at.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:O1(this,"_network",t),this.emit("network",t,null))}return this._network})}get ready(){return iv(()=>this._ready().then(t=>t,t=>{if(t.code!==at.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))}static getFormatter(){return null==ak&&(ak=new _0),ak}static getNetwork(t){return function P6e(n){if(null==n)return null;if("number"==typeof n){for(const o in lP){const r=lP[o];if(r.chainId===n)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:n,name:"unknown"}}if("string"==typeof n){const o=lP[n];return null==o?null:{name:o.name,chainId:o.chainId,ensAddress:o.ensAddress,_defaultProvider:o._defaultProvider||null}}const t=lP[n.name];if(!t)return"number"!=typeof n.chainId&&Oee.throwArgumentError("invalid network chainId","network",n),n;0!==n.chainId&&n.chainId!==t.chainId&&Oee.throwArgumentError("network chainId mismatch","network",n);let e=n._defaultProvider||null;return null==e&&t._defaultProvider&&(e=function w6e(n){return n&&"function"==typeof n.renetwork}(t._defaultProvider)?t._defaultProvider.renetwork(n):t._defaultProvider),{name:n.name,chainId:t.chainId,ensAddress:n.ensAddress||t.ensAddress||null,_defaultProvider:e}}(t??"homestead")}ccipReadFetch(t,e,o){return m1(this,void 0,void 0,function*(){if(this.disableCcipRead||0===o.length)return null;const r=t.to.toLowerCase(),i=e.toLowerCase(),a=[];for(let s=0;s=0?null:JSON.stringify({data:i,sender:r}),u=yield oP({url:p,errorPassThrough:!0},d,(M,g)=>(M.status=g.statusCode,M));if(u.data)return u.data;const h=u.message||"unknown error";if(u.status>=400&&u.status<500)return U1.throwError(`response not found during CCIP fetch: ${h}`,at.errors.SERVER_ERROR,{url:c,errorMessage:h});a.push(h)}return U1.throwError(`error encountered during CCIP fetch: ${a.map(s=>JSON.stringify(s)).join(", ")}`,at.errors.SERVER_ERROR,{urls:o,errorMessages:a})})}_getInternalBlockNumber(t){return m1(this,void 0,void 0,function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const r=this._internalBlockNumber;try{const i=yield r;if(cv()-i.respTime<=t)return i.blockNumber;break}catch{if(this._internalBlockNumber===r)break}}const e=cv(),o=Ui({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(r=>null,r=>r)}).then(({blockNumber:r,networkError:i})=>{if(i)throw this._internalBlockNumber===o&&(this._internalBlockNumber=null),i;const a=cv();return(r=e0.from(r).toNumber()){this._internalBlockNumber===o&&(this._internalBlockNumber=null)}),(yield o).blockNumber})}poll(){return m1(this,void 0,void 0,function*(){const t=B6e++,e=[];let o=null;try{o=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(r){return void this.emit("error",r)}if(this._setFastBlockNumber(o),this.emit("poll",t,o),o!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=o-1),Math.abs(this._emitted.block-o)>1e3)U1.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${o})`),this.emit("error",U1.makeError("network block skew detected",at.errors.NETWORK_ERROR,{blockNumber:o,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",o);else for(let r=this._emitted.block+1;r<=o;r++)this.emit("block",r);this._emitted.block!==o&&(this._emitted.block=o,Object.keys(this._emitted).forEach(r=>{if("block"===r)return;const i=this._emitted[r];"pending"!==i&&o-i>12&&delete this._emitted[r]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=o-1),this._events.forEach(r=>{switch(r.type){case"tx":{const i=r.hash;let a=this.getTransactionReceipt(i).then(s=>(!s||null==s.blockNumber||(this._emitted["t:"+i]=s.blockNumber,this.emit(i,s)),null)).catch(s=>{this.emit("error",s)});e.push(a);break}case"filter":if(!r._inflight){r._inflight=!0,-2===r._lastBlockNumber&&(r._lastBlockNumber=o-1);const i=r.filter;i.fromBlock=r._lastBlockNumber+1,i.toBlock=o;const a=i.toBlock-this._maxFilterBlockRange;a>i.fromBlock&&(i.fromBlock=a),i.fromBlock<0&&(i.fromBlock=0);const s=this.getLogs(i).then(c=>{r._inflight=!1,0!==c.length&&c.forEach(p=>{p.blockNumber>r._lastBlockNumber&&(r._lastBlockNumber=p.blockNumber),this._emitted["b:"+p.blockHash]=p.blockNumber,this._emitted["t:"+p.transactionHash]=p.blockNumber,this.emit(i,p)})}).catch(c=>{this.emit("error",c),r._inflight=!1});e.push(s)}}}),this._lastBlockNumber=o,Promise.all(e).then(()=>{this.emit("didPoll",t)}).catch(r=>{this.emit("error",r)})}else this.emit("didPoll",t)})}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return m1(this,void 0,void 0,function*(){return U1.throwError("provider does not support network detection",at.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return m1(this,void 0,void 0,function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield Pee(0),this._network;const o=U1.makeError("underlying network changed",at.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",o),o}return t})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(t=>{this._setFastBlockNumber(t)},t=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const t=cv();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,o){return m1(this,void 0,void 0,function*(){return this._waitForTransaction(t,e??1,o||0,null)})}_waitForTransaction(t,e,o,r){return m1(this,void 0,void 0,function*(){const i=yield this.getTransactionReceipt(t);return(i?i.confirmations:0)>=e?i:new Promise((a,s)=>{const c=[];let p=!1;const d=function(){return!!p||(p=!0,c.forEach(h=>{h()}),!1)},u=h=>{h.confirmations{this.removeListener(t,u)}),r){let h=r.startBlock,M=null;const g=v=>m1(this,void 0,void 0,function*(){p||(yield Pee(1e3),this.getTransactionCount(r.from).then(A=>m1(this,void 0,void 0,function*(){if(!p){if(A<=r.nonce)h=v;else{{const y=yield this.getTransaction(t);if(y&&null!=y.blockNumber)return}for(null==M&&(M=h-3,M{p||this.once("block",g)}))});if(p)return;this.once("block",g),c.push(()=>{this.removeListener("block",g)})}if("number"==typeof o&&o>0){const h=setTimeout(()=>{d()||s(U1.makeError("timeout exceeded",at.errors.TIMEOUT,{timeout:o}))},o);h.unref&&h.unref(),c.push(()=>{clearTimeout(h)})}})})}getBlockNumber(){return m1(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return e0.from(t)}catch(e){return U1.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}})}getBalance(t,e){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const o=yield Ui({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getBalance",o);try{return e0.from(r)}catch(i){return U1.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getBalance",params:o,result:r,error:i})}})}getTransactionCount(t,e){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const o=yield Ui({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getTransactionCount",o);try{return e0.from(r).toNumber()}catch(i){return U1.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getTransactionCount",params:o,result:r,error:i})}})}getCode(t,e){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const o=yield Ui({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getCode",o);try{return s1(r)}catch(i){return U1.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getCode",params:o,result:r,error:i})}})}getStorageAt(t,e,o){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Ui({address:this._getAddress(t),blockTag:this._getBlockTag(o),position:Promise.resolve(e).then(a=>Sz(a))}),i=yield this.perform("getStorageAt",r);try{return s1(i)}catch(a){return U1.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:i,error:a})}})}_wrapTransaction(t,e,o){if(null!=e&&32!==hM(e))throw new Error("invalid response - sendTransaction");const r=t;return null!=e&&t.hash!==e&&U1.throwError("Transaction hash mismatch from Provider.sendTransaction.",at.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),r.wait=(i,a)=>m1(this,void 0,void 0,function*(){let s;null==i&&(i=1),null==a&&(a=0),0!==i&&null!=o&&(s={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:o});const c=yield this._waitForTransaction(t.hash,i,a,s);return null==c&&0===i?null:(this._emitted["t:"+t.hash]=c.blockNumber,0===c.status&&U1.throwError("transaction failed",at.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:c}),c)}),r}sendTransaction(t){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then(i=>s1(i)),o=this.formatter.transaction(t);null==o.confirmations&&(o.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const i=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(o,i,r)}catch(i){throw i.transaction=o,i.transactionHash=o.hash,i}})}_getTransactionRequest(t){return m1(this,void 0,void 0,function*(){const e=yield t,o={};return["from","to"].forEach(r=>{null!=e[r]&&(o[r]=Promise.resolve(e[r]).then(i=>i?this._getAddress(i):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(r=>{null!=e[r]&&(o[r]=Promise.resolve(e[r]).then(i=>i?e0.from(i):null))}),["type"].forEach(r=>{null!=e[r]&&(o[r]=Promise.resolve(e[r]).then(i=>i??null))}),e.accessList&&(o.accessList=this.formatter.accessList(e.accessList)),["data"].forEach(r=>{null!=e[r]&&(o[r]=Promise.resolve(e[r]).then(i=>i?s1(i):null))}),this.formatter.transactionRequest(yield Ui(o))})}_getFilter(t){return m1(this,void 0,void 0,function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach(o=>{null!=t[o]&&(e[o]=t[o])}),["fromBlock","toBlock"].forEach(o=>{null!=t[o]&&(e[o]=this._getBlockTag(t[o]))}),this.formatter.filter(yield Ui(e))})}_call(t,e,o){return m1(this,void 0,void 0,function*(){o>=10&&U1.throwError("CCIP read exceeded maximum redirections",at.errors.SERVER_ERROR,{redirects:o,transaction:t});const r=t.to,i=yield this.perform("call",{transaction:t,blockTag:e});if(o>=0&&"latest"===e&&null!=r&&"0x556f1830"===i.substring(0,10)&&hM(i)%32==4)try{const a=Pa(i,4),s=Pa(a,0,32);e0.from(s).eq(r)||U1.throwError("CCIP Read sender did not match",at.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const c=[],p=e0.from(Pa(a,32,64)).toNumber(),d=e0.from(Pa(a,p,p+32)).toNumber(),u=Pa(a,p+32);for(let y=0;ym1(this,void 0,void 0,function*(){const i=yield this.perform("getBlock",r);if(null==i)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&o>this._emitted.block?null:void 0;if(e){let a=null;for(let c=0;cthis._wrapTransaction(c)),s}return this.formatter.block(i)}),{oncePoll:this})})}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return m1(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return iv(()=>m1(this,void 0,void 0,function*(){const o=yield this.perform("getTransaction",e);if(null==o)return null==this._emitted["t:"+t]?null:void 0;const r=this.formatter.transactionResponse(o);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;a<=0&&(a=1),r.confirmations=a}return this._wrapTransaction(r)}),{oncePoll:this})})}getTransactionReceipt(t){return m1(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return iv(()=>m1(this,void 0,void 0,function*(){const o=yield this.perform("getTransactionReceipt",e);if(null==o)return null==this._emitted["t:"+t]?null:void 0;if(null==o.blockHash)return;const r=this.formatter.receipt(o);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;a<=0&&(a=1),r.confirmations=a}return r}),{oncePoll:this})})}getLogs(t){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Ui({filter:this._getFilter(t)}),o=yield this.perform("getLogs",e);return o.forEach(r=>{null==r.removed&&(r.removed=!1)}),_0.arrayOf(this.formatter.filterLog.bind(this.formatter))(o)})}getEtherPrice(){return m1(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(t){return m1(this,void 0,void 0,function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&U1.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)})}getResolver(t){return m1(this,void 0,void 0,function*(){let e=t;for(;;){if(""===e||"."===e||"eth"!==t&&"eth"===e)return null;const o=yield this._getResolver(e,"getResolver");if(null!=o){const r=new Ree(this,o,t);return e===t||(yield r.supportsWildcard())?r:null}e=e.split(".").slice(1).join(".")}})}_getResolver(t,e){return m1(this,void 0,void 0,function*(){null==e&&(e="ENS");const o=yield this.getNetwork();o.ensAddress||U1.throwError("network does not support ENS",at.errors.UNSUPPORTED_OPERATION,{operation:e,network:o.name});try{const r=yield this.call({to:o.ensAddress,data:"0x0178b8bf"+sP(t).substring(2)});return this.formatter.callAddress(r)}catch{}return null})}resolveName(t){return m1(this,void 0,void 0,function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(o){if(yo(t))throw o}"string"!=typeof t&&U1.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null})}lookupAddress(t){return m1(this,void 0,void 0,function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(e,"lookupAddress");if(null==o)return null;const r=pP(yield this.call({to:o,data:"0x691f3431"+sP(e).substring(2)}),0);return(yield this.resolveName(r))!=t?null:r})}getAvatar(t){return m1(this,void 0,void 0,function*(){let e=null;if(yo(t)){const i=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(i,"getAvatar");if(!a)return null;e=new Ree(this,a,i);try{const s=yield e.getAvatar();if(s)return s.url}catch(s){if(s.code!==at.errors.CALL_EXCEPTION)throw s}try{const s=pP(yield this.call({to:a,data:"0x691f3431"+sP(i).substring(2)}),0);e=yield this.getResolver(s)}catch(s){if(s.code!==at.errors.CALL_EXCEPTION)throw s;return null}}else if(e=yield this.getResolver(t),!e)return null;const o=yield e.getAvatar();return null==o?null:o.url})}perform(t,e){return U1.throwError(t+" not implemented",at.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(t){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(t,e,o){const r=new E6e(BO(t),e,o);return this._events.push(r),this._startEvent(r),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let o=!1,r=[],i=BO(t);return this._events=this._events.filter(a=>a.tag!==i||(setTimeout(()=>{a.listener.apply(this,e)},0),o=!0,!a.once||(r.push(a),!1))),r.forEach(a=>{this._stopEvent(a)}),o}listenerCount(t){if(!t)return this._events.length;let e=BO(t);return this._events.filter(o=>o.tag===e).length}listeners(t){if(null==t)return this._events.map(o=>o.listener);let e=BO(t);return this._events.filter(o=>o.tag===e).map(o=>o.listener)}off(t,e){if(null==e)return this.removeAllListeners(t);const o=[];let r=!1,i=BO(t);return this._events=this._events.filter(a=>!(a.tag===i&&a.listener==e&&!r&&(r=!0,o.push(a),1))),o.forEach(a=>{this._stopEvent(a)}),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const o=BO(t);this._events=this._events.filter(r=>r.tag!==o||(e.push(r),!1))}return e.forEach(o=>{this._stopEvent(o)}),this}}var Eu=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})};const ei=new at(rv),F6e=["call","estimateGas"];function pv(n,t){if(null==n)return null;if("string"==typeof n.message&&n.message.match("reverted")){const e=yo(n.data)?n.data:null;if(!t||e)return{message:n.message,data:e}}if("object"==typeof n){for(const e in n){const o=pv(n[e],t);if(o)return o}return null}if("string"==typeof n)try{return pv(JSON.parse(n),t)}catch{}return null}function Dee(n,t,e){const o=e.transaction||e.signedTransaction;if("call"===n){const i=pv(t,!0);if(i)return i.data;ei.throwError("missing revert data in call exception; Transaction reverted without a reason string",at.errors.CALL_EXCEPTION,{data:"0x",transaction:o,error:t})}if("estimateGas"===n){let i=pv(t.body,!1);null==i&&(i=pv(t,!1)),i&&ei.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",at.errors.UNPREDICTABLE_GAS_LIMIT,{reason:i.message,method:n,transaction:o,error:t})}let r=t.message;throw t.code===at.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?r=t.error.message:"string"==typeof t.body?r=t.body:"string"==typeof t.responseText&&(r=t.responseText),r=(r||"").toLowerCase(),r.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&ei.throwError("insufficient funds for intrinsic transaction cost",at.errors.INSUFFICIENT_FUNDS,{error:t,method:n,transaction:o}),r.match(/nonce (is )?too low/i)&&ei.throwError("nonce has already been used",at.errors.NONCE_EXPIRED,{error:t,method:n,transaction:o}),r.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&ei.throwError("replacement fee too low",at.errors.REPLACEMENT_UNDERPRICED,{error:t,method:n,transaction:o}),r.match(/only replay-protected/i)&&ei.throwError("legacy pre-eip-155 transactions not supported",at.errors.UNSUPPORTED_OPERATION,{error:t,method:n,transaction:o}),F6e.indexOf(n)>=0&&r.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&ei.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",at.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:n,transaction:o}),t}function kee(n){return new Promise(function(t){setTimeout(t,n)})}function Y6e(n){if(n.error){const t=new Error(n.error.message);throw t.code=n.error.code,t.data=n.error.data,t}return n.result}function dv(n){return n&&n.toLowerCase()}const sk={};class Eee extends H8{constructor(t,e,o){if(super(),t!==sk)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");O1(this,"provider",e),null==o&&(o=0),"string"==typeof o?(O1(this,"_address",this.provider.formatter.address(o)),O1(this,"_index",null)):"number"==typeof o?(O1(this,"_index",o),O1(this,"_address",null)):ei.throwArgumentError("invalid address or index","addressOrIndex",o)}connect(t){return ei.throwError("cannot alter JSON-RPC Signer connection",at.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new H6e(sk,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(t=>(t.length<=this._index&&ei.throwError("unknown account #"+this._index,at.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index])))}sendUncheckedTransaction(t){t=$s(t);const e=this.getAddress().then(o=>(o&&(o=o.toLowerCase()),o));if(null==t.gasLimit){const o=$s(t);o.from=e,t.gasLimit=this.provider.estimateGas(o)}return null!=t.to&&(t.to=Promise.resolve(t.to).then(o=>Eu(this,void 0,void 0,function*(){if(null==o)return null;const r=yield this.provider.resolveName(o);return null==r&&ei.throwArgumentError("provided ENS name resolves to null","tx.to",o),r}))),Ui({tx:Ui(t),sender:e}).then(({tx:o,sender:r})=>{null!=o.from?o.from.toLowerCase()!==r&&ei.throwArgumentError("from address mismatch","transaction",t):o.from=r;const i=this.provider.constructor.hexlifyTransaction(o,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then(a=>a,a=>("string"==typeof a.message&&a.message.match(/user denied/i)&&ei.throwError("user rejected transaction",at.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),Dee("sendTransaction",a,i)))})}signTransaction(t){return ei.throwError("signing transactions is unsupported",at.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return Eu(this,void 0,void 0,function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),o=yield this.sendUncheckedTransaction(t);try{return yield iv(()=>Eu(this,void 0,void 0,function*(){const r=yield this.provider.getTransaction(o);if(null!==r)return this.provider._wrapTransaction(r,o,e)}),{oncePoll:this.provider})}catch(r){throw r.transactionHash=o,r}})}signMessage(t){return Eu(this,void 0,void 0,function*(){const e="string"==typeof t?qd(t):t,o=yield this.getAddress();try{return yield this.provider.send("personal_sign",[s1(e),o.toLowerCase()])}catch(r){throw"string"==typeof r.message&&r.message.match(/user denied/i)&&ei.throwError("user rejected signing",at.errors.ACTION_REJECTED,{action:"signMessage",from:o,messageData:t}),r}})}_legacySignMessage(t){return Eu(this,void 0,void 0,function*(){const e="string"==typeof t?qd(t):t,o=yield this.getAddress();try{return yield this.provider.send("eth_sign",[o.toLowerCase(),s1(e)])}catch(r){throw"string"==typeof r.message&&r.message.match(/user denied/i)&&ei.throwError("user rejected signing",at.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:o,messageData:t}),r}})}_signTypedData(t,e,o){return Eu(this,void 0,void 0,function*(){const r=yield _c.resolveNames(t,e,o,a=>this.provider.resolveName(a)),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(_c.getPayload(r.domain,e,r.value))])}catch(a){throw"string"==typeof a.message&&a.message.match(/user denied/i)&&ei.throwError("user rejected signing",at.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:r.domain,types:e,value:r.value}}),a}})}unlock(t){return Eu(this,void 0,void 0,function*(){const e=this.provider,o=yield this.getAddress();return e.send("personal_unlockAccount",[o.toLowerCase(),t,null])})}}class H6e extends Eee{sendTransaction(t){return this.sendUncheckedTransaction(t).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:o=>this.provider.waitForTransaction(e,o)}))}}const X6e={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class j6e extends See{constructor(t,e){let o=e;null==o&&(o=new Promise((r,i)=>{setTimeout(()=>{this.detectNetwork().then(a=>{r(a)},a=>{i(a)})},0)})),super(o),t||(t=Bz(this.constructor,"defaultUrl")()),O1(this,"connection",Object.freeze("string"==typeof t?{url:t}:$s(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Eu(this,void 0,void 0,function*(){yield kee(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch{try{t=yield this.send("net_version",[])}catch{}}if(null!=t){const e=Bz(this.constructor,"getNetwork");try{return e(e0.from(t).toNumber())}catch(o){return ei.throwError("could not detect network",at.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:o})}}return ei.throwError("could not detect network",at.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(t){return new Eee(sk,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(t=>t.map(e=>this.formatter.address(e)))}send(t,e){const o={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:pf(o),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(r&&this._cache[t])return this._cache[t];const i=oP(this.connection,JSON.stringify(o),Y6e).then(a=>(this.emit("debug",{action:"response",request:o,response:a,provider:this}),a),a=>{throw this.emit("debug",{action:"response",error:a,request:o,provider:this}),a});return r&&(this._cache[t]=i,setTimeout(()=>{this._cache[t]=null},0)),i}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[dv(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[dv(e.address),e.blockTag]];case"getCode":return["eth_getCode",[dv(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[dv(e.address),or(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[Bz(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[Bz(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=dv(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return Eu(this,void 0,void 0,function*(){if("call"===t||"estimateGas"===t){const r=e.transaction;if(r&&null!=r.type&&e0.from(r.type).isZero()&&null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas){const i=yield this.getFeeData();null==i.maxFeePerGas&&null==i.maxPriorityFeePerGas&&((e=$s(e)).transaction=$s(r),delete e.transaction.type)}}const o=this.prepareRequest(t,e);null==o&&ei.throwError(t+" not implemented",at.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(o[0],o[1])}catch(r){return Dee(t,r,e)}})}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then(function(o){return function r(){t.send("eth_getFilterChanges",[o]).then(function(i){if(t._pendingFilter!=e)return null;let a=Promise.resolve();return i.forEach(function(s){t._emitted["t:"+s.toLowerCase()]="pending",a=a.then(function(){return t.getTransaction(s).then(function(c){return t.emit("pending",c),null})})}),a.then(function(){return kee(1e3)})}).then(function(){if(t._pendingFilter==e)return setTimeout(function(){r()},0),null;t.send("eth_uninstallFilter",[o])}).catch(i=>{})}(),o}).catch(o=>{})}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const o=$s(X6e);if(e)for(const i in e)e[i]&&(o[i]=!0);!function O5e(n,t){(!n||"object"!=typeof n)&&ww.throwArgumentError("invalid object","object",n),Object.keys(n).forEach(e=>{t[e]||ww.throwArgumentError("invalid object key - "+e,"transaction:"+e,n)})}(t,o);const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(i){if(null==t[i])return;const a=Sz(e0.from(t[i]));"gasLimit"===i&&(i="gas"),r[i]=a}),["from","to","data"].forEach(function(i){null!=t[i]&&(r[i]=s1(t[i]))}),t.accessList&&(r.accessList=NO(t.accessList)),r}}const Iee=new at(rv);let U6e=1;function Nee(n,t){const e="Web3LegacyFetcher";return function(o,r){const i={method:o,params:r,id:U6e++,jsonrpc:"2.0"};return new Promise((a,s)=>{this.emit("debug",{action:"request",fetcher:e,request:pf(i),provider:this}),t(i,(c,p)=>{if(c)return this.emit("debug",{action:"response",fetcher:e,error:c,request:i,provider:this}),s(c);if(this.emit("debug",{action:"response",fetcher:e,request:i,response:p,provider:this}),p.error){const d=new Error(p.error.message);return d.code=p.error.code,d.data=p.error.data,s(d)}a(p.result)})})}}class $6e extends j6e{constructor(t,e){null==t&&Iee.throwArgumentError("missing provider","provider",t);let o=null,r=null,i=null;"function"==typeof t?(o="unknown:",r=t):(o=t.host||t.path||"",!o&&t.isMetaMask&&(o="metamask"),i=t,t.request?(""===o&&(o="eip-1193:"),r=function V6e(n){return function(t,e){null==e&&(e=[]);const o={method:t,params:e};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:pf(o),provider:this}),n.request(o).then(r=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,response:r,provider:this}),r),r=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,error:r,provider:this}),r})}}(t)):t.sendAsync?r=Nee(0,t.sendAsync.bind(t)):t.send?r=Nee(0,t.send.bind(t)):Iee.throwArgumentError("unsupported provider","provider",t),o||(o="unknown:")),super(o,e),O1(this,"jsonRpcFetchFunc",r),O1(this,"provider",i)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}var dP=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(d){try{p(o.next(d))}catch(u){a(u)}}function c(d){try{p(o.throw(d))}catch(u){a(u)}}function p(d){d.done?i(d.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(d.value).then(s,c)}p((o=o.apply(n,t||[])).next())})};const Af=new at(rv);function Bee(n){const t={};for(let e in n){if(null==n[e])continue;let o=n[e];"type"===e&&0===o||(o={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[e]?Sz(s1(o)):"accessList"===e?"["+NO(o).map(r=>`{address:"${r.address}",storageKeys:["${r.storageKeys.join('","')}"]}`).join(",")+"]":s1(o),t[e]=o)}return t}function G6e(n){if(0==n.status&&("No records found"===n.message||"No transactions found"===n.message))return n.result;if(1!=n.status||"string"!=typeof n.message||!n.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(n),(n.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return n.result}function Fee(n){if(n&&0==n.status&&"NOTOK"==n.message&&(n.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(n),t.throttleRetry=!0,t}if("2.0"!=n.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(n),t}if(n.error){const t=new Error(n.error.message||"unknown error");throw n.error.code&&(t.code=n.error.code),n.error.data&&(t.data=n.error.data),t}return n.result}function Yee(n){if("pending"===n)throw new Error("pending not supported");return"latest"===n?n:parseInt(n.substring(2),16)}function ck(n,t,e){if("call"===n&&t.code===at.errors.SERVER_ERROR){const r=t.error;if(r&&(r.message.match(/reverted/i)||r.message.match(/VM execution error/i))){let i=r.data;if(i&&(i="0x"+i.replace(/^.*0x/i,"")),yo(i))return i;Af.throwError("missing revert data in call exception",at.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let o=t.message;throw t.code===at.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText)),o=(o||"").toLowerCase(),o.match(/insufficient funds/)&&Af.throwError("insufficient funds for intrinsic transaction cost",at.errors.INSUFFICIENT_FUNDS,{error:t,method:n,transaction:e}),o.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Af.throwError("nonce has already been used",at.errors.NONCE_EXPIRED,{error:t,method:n,transaction:e}),o.match(/another transaction with same nonce/)&&Af.throwError("replacement fee too low",at.errors.REPLACEMENT_UNDERPRICED,{error:t,method:n,transaction:e}),o.match(/execution failed due to an exception|execution reverted/)&&Af.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",at.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:n,transaction:e}),t}class Z6e extends See{constructor(t,e){super(t),O1(this,"baseUrl",this.getBaseUrl()),O1(this,"apiKey",e||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return Af.throwArgumentError("unsupported network","network",this.network.name)}getUrl(t,e){const o=Object.keys(e).reduce((i,a)=>{const s=e[a];return null!=s&&(i+=`&${a}=${s}`),i},"");return`${this.baseUrl}/api?module=${t}${o}${this.apiKey?`&apikey=${this.apiKey}`:""}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e}fetch(t,e,o){return dP(this,void 0,void 0,function*(){const r=o?this.getPostUrl():this.getUrl(t,e),i=o?this.getPostData(t,e):null,a="proxy"===t?Fee:G6e;this.emit("debug",{action:"request",request:r,provider:this});const s={url:r,throttleSlotInterval:1e3,throttleCallback:(d,u)=>(this.isCommunityResource()&&function R6e(){yee||(yee=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}(),Promise.resolve(!0))};let c=null;i&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(i).map(d=>`${d}=${i[d]}`).join("&"));const p=yield oP(s,c,a||Fee);return this.emit("debug",{action:"response",request:r,response:pf(p),provider:this}),p})}detectNetwork(){return dP(this,void 0,void 0,function*(){return this.network})}perform(t,e){const o=Object.create(null,{perform:{get:()=>super.perform}});return dP(this,void 0,void 0,function*(){switch(t){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch(r=>ck("sendTransaction",r,e.signedTransaction));case"getBlock":if(e.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.transactionHash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const r=Bee(e.transaction);r.module="proxy",r.action="eth_call";try{return yield this.fetch("proxy",r,!0)}catch(i){return ck("call",i,e.transaction)}}case"estimateGas":{const r=Bee(e.transaction);r.module="proxy",r.action="eth_estimateGas";try{return yield this.fetch("proxy",r,!0)}catch(i){return ck("estimateGas",i,e.transaction)}}case"getLogs":{const r={action:"getLogs"};if(e.filter.fromBlock&&(r.fromBlock=Yee(e.filter.fromBlock)),e.filter.toBlock&&(r.toBlock=Yee(e.filter.toBlock)),e.filter.address&&(r.address=e.filter.address),e.filter.topics&&e.filter.topics.length>0&&(e.filter.topics.length>1&&Af.throwError("unsupported topic count",at.errors.UNSUPPORTED_OPERATION,{topics:e.filter.topics}),1===e.filter.topics.length)){const s=e.filter.topics[0];("string"!=typeof s||66!==s.length)&&Af.throwError("unsupported topic format",at.errors.UNSUPPORTED_OPERATION,{topic0:s}),r.topic0=s}const i=yield this.fetch("logs",r);let a={};for(let s=0;s{["contractAddress","to"].forEach(function(c){""==a[c]&&delete a[c]}),null==a.creates&&null!=a.contractAddress&&(a.creates=a.contractAddress);const s=this.formatter.transactionResponse(a);return a.timeStamp&&(s.timestamp=parseInt(a.timeStamp)),s})})}isCommunityResource(){return null==this.apiKey}}var vM=(n=>(n.MissingApiKey="MISSING_API_KEY",n.ModalNotReady="MODAL_NOT_READY",n.MalformedResponse="MALFORMED_RESPONSE",n.InvalidArgument="INVALID_ARGUMENT",n.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",n.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",n))(vM||{}),uP=(n=>(n.SyncWeb3Method="SYNC_WEB3_METHOD",n.DuplicateIframe="DUPLICATE_IFRAME",n.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",n.DeprecationNotice="DEPRECATION_NOTICE",n))(uP||{}),lk=(n=>(n[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",n[n.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",n[n.MagicLinkExpired=-10001]="MagicLinkExpired",n[n.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",n[n.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",n[n.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",n[n.UpdateEmailFailed=-10004]="UpdateEmailFailed",n[n.UserRequestEditEmail=-10005]="UserRequestEditEmail",n[n.InactiveRecipient=-10010]="InactiveRecipient",n[n.AccessDeniedToUser=-10011]="AccessDeniedToUser",n))(lk||{}),Wn=(n=>(n.LoginWithSms="magic_auth_login_with_sms",n.LoginWithEmailOTP="magic_auth_login_with_email_otp",n.LoginWithMagicLink="magic_auth_login_with_magic_link",n.LoginWithCredential="magic_auth_login_with_credential",n.GetIdToken="magic_auth_get_id_token",n.GenerateIdToken="magic_auth_generate_id_token",n.GetMetadata="magic_auth_get_metadata",n.IsLoggedIn="magic_auth_is_logged_in",n.Logout="magic_auth_logout",n.UpdateEmail="magic_auth_update_email",n.UserSettings="magic_auth_settings",n.UserSettingsTestMode="magic_auth_settings_testing_mode",n.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",n.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",n.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",n.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",n.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",n.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",n.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",n.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",n.LogoutTestMode="magic_auth_logout_testing_mode",n.UpdateEmailTestMode="magic_auth_update_email_testing_mode",n.IntermediaryEvent="magic_intermediary_event",n.RequestAccounts="eth_requestAccounts",n.GetInfo="mc_get_wallet_info",n.ShowUI="mc_wallet",n.NFTPurchase="magic_nft_purchase",n.RequestUserInfoWithUI="mc_request_user_info",n.Disconnect="mc_disconnect",n.UpdatePhoneNumber="magic_auth_update_phone_number",n.UpdatePhoneNumberTestMode="magic_auth_update_phone_number_testing_mode",n.RecoverAccount="magic_auth_recover_account",n.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",n))(Wn||{}),FO=(n=>(n.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",n.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",n.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",n.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",n.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",n))(FO||{}),fP=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(fP||{}),K6e=(n=>(n.Harmony="HARMONY",n))(K6e||{}),J6e=Object.create,hP=Object.defineProperty,Q6e=Object.defineProperties,eWe=Object.getOwnPropertyDescriptor,tWe=Object.getOwnPropertyDescriptors,nWe=Object.getOwnPropertyNames,Hee=Object.getOwnPropertySymbols,oWe=Object.getPrototypeOf,Xee=Object.prototype.hasOwnProperty,rWe=Object.prototype.propertyIsEnumerable,jee=(n,t,e)=>t in n?hP(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Uee=(n,t)=>{for(var e in t||(t={}))Xee.call(t,e)&&jee(n,e,t[e]);if(Hee)for(var e of Hee(t))rWe.call(t,e)&&jee(n,e,t[e]);return n},Iu=(n,t,e)=>new Promise((o,r)=>{var i=c=>{try{s(e.next(c))}catch(p){r(p)}},a=c=>{try{s(e.throw(c))}catch(p){r(p)}},s=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,a);s((e=e.apply(n,t)).next())}),pWe=((n,t)=>()=>(t||n(t={exports:{}},t),t.exports))((n,t)=>{var e=Object.prototype.hasOwnProperty,o="~";function r(){}function i(p,d,u){this.fn=p,this.context=d,this.once=u||!1}function a(p,d,u,h,M){if("function"!=typeof u)throw new TypeError("The listener must be a function");var g=new i(u,h||p,M),v=o?o+d:d;return p._events[v]?p._events[v].fn?p._events[v]=[p._events[v],g]:p._events[v].push(g):(p._events[v]=g,p._eventsCount++),p}function s(p,d){0==--p._eventsCount?p._events=new r:delete p._events[d]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),c.prototype.eventNames=function(){var d,u,p=[];if(0===this._eventsCount)return p;for(u in d=this._events)e.call(d,u)&&p.push(o?u.slice(1):u);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(d)):p},c.prototype.listeners=function(p){var u=this._events[o?o+p:p];if(!u)return[];if(u.fn)return[u.fn];for(var h=0,M=u.length,g=new Array(M);hconsole.error("SEMVER",...n):()=>{},ho=fWe,uv=function dWe(n){let t={exports:{}};return n(t,t.exports),t.exports}(function(n,t){let{MAX_SAFE_COMPONENT_LENGTH:e}=pk,o=(t=n.exports={}).re=[],r=t.src=[],i=t.t={},a=0,s=(c,p,d)=>{let u=a++;ho(u,p),i[c]=u,r[u]=p,o[u]=new RegExp(p,d?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION",`(${r[i.NUMERICIDENTIFIER]})\\.(${r[i.NUMERICIDENTIFIER]})\\.(${r[i.NUMERICIDENTIFIER]})`),s("MAINVERSIONLOOSE",`(${r[i.NUMERICIDENTIFIERLOOSE]})\\.(${r[i.NUMERICIDENTIFIERLOOSE]})\\.(${r[i.NUMERICIDENTIFIERLOOSE]})`),s("PRERELEASEIDENTIFIER",`(?:${r[i.NUMERICIDENTIFIER]}|${r[i.NONNUMERICIDENTIFIER]})`),s("PRERELEASEIDENTIFIERLOOSE",`(?:${r[i.NUMERICIDENTIFIERLOOSE]}|${r[i.NONNUMERICIDENTIFIER]})`),s("PRERELEASE",`(?:-(${r[i.PRERELEASEIDENTIFIER]}(?:\\.${r[i.PRERELEASEIDENTIFIER]})*))`),s("PRERELEASELOOSE",`(?:-?(${r[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[i.PRERELEASEIDENTIFIERLOOSE]})*))`),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD",`(?:\\+(${r[i.BUILDIDENTIFIER]}(?:\\.${r[i.BUILDIDENTIFIER]})*))`),s("FULLPLAIN",`v?${r[i.MAINVERSION]}${r[i.PRERELEASE]}?${r[i.BUILD]}?`),s("FULL",`^${r[i.FULLPLAIN]}$`),s("LOOSEPLAIN",`[v=\\s]*${r[i.MAINVERSIONLOOSE]}${r[i.PRERELEASELOOSE]}?${r[i.BUILD]}?`),s("LOOSE",`^${r[i.LOOSEPLAIN]}$`),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE",`${r[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),s("XRANGEIDENTIFIER",`${r[i.NUMERICIDENTIFIER]}|x|X|\\*`),s("XRANGEPLAIN",`[v=\\s]*(${r[i.XRANGEIDENTIFIER]})(?:\\.(${r[i.XRANGEIDENTIFIER]})(?:\\.(${r[i.XRANGEIDENTIFIER]})(?:${r[i.PRERELEASE]})?${r[i.BUILD]}?)?)?`),s("XRANGEPLAINLOOSE",`[v=\\s]*(${r[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[i.XRANGEIDENTIFIERLOOSE]})(?:${r[i.PRERELEASELOOSE]})?${r[i.BUILD]}?)?)?`),s("XRANGE",`^${r[i.GTLT]}\\s*${r[i.XRANGEPLAIN]}$`),s("XRANGELOOSE",`^${r[i.GTLT]}\\s*${r[i.XRANGEPLAINLOOSE]}$`),s("COERCE",`(^|[^\\d])(\\d{1,${e}})(?:\\.(\\d{1,${e}}))?(?:\\.(\\d{1,${e}}))?(?:$|[^\\d])`),s("COERCERTL",r[i.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${r[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",s("TILDE",`^${r[i.LONETILDE]}${r[i.XRANGEPLAIN]}$`),s("TILDELOOSE",`^${r[i.LONETILDE]}${r[i.XRANGEPLAINLOOSE]}$`),s("LONECARET","(?:\\^)"),s("CARETTRIM",`(\\s*)${r[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",s("CARET",`^${r[i.LONECARET]}${r[i.XRANGEPLAIN]}$`),s("CARETLOOSE",`^${r[i.LONECARET]}${r[i.XRANGEPLAINLOOSE]}$`),s("COMPARATORLOOSE",`^${r[i.GTLT]}\\s*(${r[i.LOOSEPLAIN]})$|^$`),s("COMPARATOR",`^${r[i.GTLT]}\\s*(${r[i.FULLPLAIN]})$|^$`),s("COMPARATORTRIM",`(\\s*)${r[i.GTLT]}\\s*(${r[i.LOOSEPLAIN]}|${r[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE",`^\\s*(${r[i.XRANGEPLAIN]})\\s+-\\s+(${r[i.XRANGEPLAIN]})\\s*$`),s("HYPHENRANGELOOSE",`^\\s*(${r[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[i.XRANGEPLAINLOOSE]})\\s*$`),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Vee=/^[0-9]+$/,$ee=(n,t)=>{let e=Vee.test(n),o=Vee.test(t);return e&&o&&(n=+n,t=+t),n===t?0:e&&!o?-1:o&&!e?1:n$ee(t,n)},{MAX_LENGTH:Gee,MAX_SAFE_INTEGER:MP}=pk,{re:Zee,t:Kee}=uv,{compareIdentifiers:fv}=MWe,Ki=class{constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof Ki){if(n.loose===!!t.loose&&n.includePrerelease===!!t.includePrerelease)return n;n=n.version}else if("string"!=typeof n)throw new TypeError(`Invalid Version: ${n}`);if(n.length>Gee)throw new TypeError(`version is longer than ${Gee} characters`);ho("SemVer",n,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let e=n.trim().match(t.loose?Zee[Kee.LOOSE]:Zee[Kee.FULL]);if(!e)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+e[1],this.minor=+e[2],this.patch=+e[3],this.major>MP||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MP||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MP||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=e[4]?e[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let r=+o;if(r>=0&&r=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${n}`)}return this.format(),this.raw=this.version,this}},YO=(n,t,e)=>new Ki(n,e).compare(new Ki(t,e)),dk=(n,t,e,o)=>{switch(t){case"===":return"object"==typeof n&&(n=n.version),"object"==typeof e&&(e=e.version),n===e;case"!==":return"object"==typeof n&&(n=n.version),"object"==typeof e&&(e=e.version),n!==e;case"":case"=":case"==":return((n,t,e)=>0===YO(n,t,e))(n,e,o);case"!=":return((n,t,e)=>0!==YO(n,t,e))(n,e,o);case">":return((n,t,e)=>YO(n,t,e)>0)(n,e,o);case">=":return((n,t,e)=>YO(n,t,e)>=0)(n,e,o);case"<":return((n,t,e)=>YO(n,t,e)<0)(n,e,o);case"<=":return((n,t,e)=>YO(n,t,e)<=0)(n,e,o);default:throw new TypeError(`Invalid operator: ${t}`)}},hv=Symbol("SemVer ANY"),Mv=class{static get ANY(){return hv}constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof Mv){if(n.loose===!!t.loose)return n;n=n.value}ho("comparator",n,t),this.options=t,this.loose=!!t.loose,this.parse(n),this.value=this.semver===hv?"":this.operator+this.semver.version,ho("comp",this)}parse(n){let e=n.match(this.options.loose?Jee[Qee.COMPARATORLOOSE]:Jee[Qee.COMPARATOR]);if(!e)throw new TypeError(`Invalid comparator: ${n}`);this.operator=void 0!==e[1]?e[1]:"","="===this.operator&&(this.operator=""),this.semver=e[2]?new Ki(e[2],this.options.loose):hv}toString(){return this.value}test(n){if(ho("Comparator.test",n,this.options.loose),this.semver===hv||n===hv)return!0;if("string"==typeof n)try{n=new Ki(n,this.options)}catch{return!1}return dk(n,this.operator,this.semver,this.options)}intersects(n,t){if(!(n instanceof Mv))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new HO(n.value,t).test(this.value);if(""===n.operator)return""===n.value||new HO(this.value,t).test(n.semver);let e=!(">="!==this.operator&&">"!==this.operator||">="!==n.operator&&">"!==n.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==n.operator&&"<"!==n.operator),r=this.semver.version===n.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==n.operator&&"<="!==n.operator),a=dk(this.semver,"<",n.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===n.operator||"<"===n.operator),s=dk(this.semver,">",n.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===n.operator||">"===n.operator);return e||o||r&&i||a||s}},{re:Jee,t:Qee}=uv,HO=class{constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof HO)return n.loose===!!t.loose&&n.includePrerelease===!!t.includePrerelease?n:new HO(n.raw,t);if(n instanceof Mv)return this.raw=n.value,this.set=[[n]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=n,this.set=n.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${n}`);this.format()}format(){return this.range=this.set.map(n=>n.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(n){let{loose:t}=this.options;n=(n=n.trim()).replace(t?Ta[Ji.HYPHENRANGELOOSE]:Ta[Ji.HYPHENRANGE],YWe(this.options.includePrerelease)),ho("hyphen replace",n),n=n.replace(Ta[Ji.COMPARATORTRIM],WWe),ho("comparator trim",n,Ta[Ji.COMPARATORTRIM]),n=(n=(n=n.replace(Ta[Ji.TILDETRIM],LWe)).replace(Ta[Ji.CARETTRIM],TWe)).split(/\s+/).join(" ");let o=t?Ta[Ji.COMPARATORLOOSE]:Ta[Ji.COMPARATOR];return n.split(" ").map(r=>RWe(r,this.options)).join(" ").split(/\s+/).map(r=>FWe(r,this.options)).filter(this.options.loose?r=>!!r.match(o):()=>!0).map(r=>new Mv(r,this.options))}intersects(n,t){if(!(n instanceof HO))throw new TypeError("a Range is required");return this.set.some(e=>ete(e,t)&&n.set.some(o=>ete(o,t)&&e.every(r=>o.every(i=>r.intersects(i,t)))))}test(n){if(!n)return!1;if("string"==typeof n)try{n=new Ki(n,this.options)}catch{return!1}for(let t=0;t{let e=!0,o=n.slice(),r=o.pop();for(;e&&o.length;)e=o.every(i=>r.intersects(i,t)),r=o.pop();return e},RWe=(n,t)=>(ho("comp",n,t),n=kWe(n,t),ho("caret",n),n=SWe(n,t),ho("tildes",n),n=IWe(n,t),ho("xrange",n),n=BWe(n,t),ho("stars",n),n),fs=n=>!n||"x"===n.toLowerCase()||"*"===n,SWe=(n,t)=>n.trim().split(/\s+/).map(e=>DWe(e,t)).join(" "),DWe=(n,t)=>n.replace(t.loose?Ta[Ji.TILDELOOSE]:Ta[Ji.TILDE],(o,r,i,a,s)=>{let c;return ho("tilde",n,o,r,i,a,s),fs(r)?c="":fs(i)?c=`>=${r}.0.0 <${+r+1}.0.0-0`:fs(a)?c=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:s?(ho("replaceTilde pr",s),c=`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`):c=`>=${r}.${i}.${a} <${r}.${+i+1}.0-0`,ho("tilde return",c),c}),kWe=(n,t)=>n.trim().split(/\s+/).map(e=>EWe(e,t)).join(" "),EWe=(n,t)=>{ho("caret",n,t);let o=t.includePrerelease?"-0":"";return n.replace(t.loose?Ta[Ji.CARETLOOSE]:Ta[Ji.CARET],(r,i,a,s,c)=>{let p;return ho("caret",n,r,i,a,s,c),fs(i)?p="":fs(a)?p=`>=${i}.0.0${o} <${+i+1}.0.0-0`:fs(s)?p="0"===i?`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`:`>=${i}.${a}.0${o} <${+i+1}.0.0-0`:c?(ho("replaceCaret pr",c),p="0"===i?"0"===a?`>=${i}.${a}.${s}-${c} <${i}.${a}.${+s+1}-0`:`>=${i}.${a}.${s}-${c} <${i}.${+a+1}.0-0`:`>=${i}.${a}.${s}-${c} <${+i+1}.0.0-0`):(ho("no pr"),p="0"===i?"0"===a?`>=${i}.${a}.${s}${o} <${i}.${a}.${+s+1}-0`:`>=${i}.${a}.${s}${o} <${i}.${+a+1}.0-0`:`>=${i}.${a}.${s} <${+i+1}.0.0-0`),ho("caret return",p),p})},IWe=(n,t)=>(ho("replaceXRanges",n,t),n.split(/\s+/).map(e=>NWe(e,t)).join(" ")),NWe=(n,t)=>(n=n.trim()).replace(t.loose?Ta[Ji.XRANGELOOSE]:Ta[Ji.XRANGE],(o,r,i,a,s,c)=>{ho("xRange",n,o,r,i,a,s,c);let p=fs(i),d=p||fs(a),u=d||fs(s);return"="===r&&u&&(r=""),c=t.includePrerelease?"-0":"",p?o=">"===r||"<"===r?"<0.0.0-0":"*":r&&u?(d&&(a=0),s=0,">"===r?(r=">=",d?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",d?i=+i+1:a=+a+1),"<"===r&&(c="-0"),o=`${r+i}.${a}.${s}${c}`):d?o=`>=${i}.0.0${c} <${+i+1}.0.0-0`:u&&(o=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),ho("xRange return",o),o}),BWe=(n,t)=>(ho("replaceStars",n,t),n.trim().replace(Ta[Ji.STAR],"")),FWe=(n,t)=>(ho("replaceGTE0",n,t),n.trim().replace(Ta[t.includePrerelease?Ji.GTE0PRE:Ji.GTE0],"")),YWe=n=>(t,e,o,r,i,a,s,c,p,d,u,h,M)=>`${e=fs(o)?"":fs(r)?`>=${o}.0.0${n?"-0":""}`:fs(i)?`>=${o}.${r}.0${n?"-0":""}`:a?`>=${e}`:`>=${e}${n?"-0":""}`} ${c=fs(p)?"":fs(d)?`<${+p+1}.0.0-0`:fs(u)?`<${p}.${+d+1}.0-0`:h?`<=${p}.${d}.${u}-${h}`:n?`<${p}.${d}.${+u+1}-0`:`<=${c}`}`.trim(),HWe=(n,t,e)=>{for(let o=0;o0){let r=n[o].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},XWe=(n,t,e)=>{try{t=new HO(t,e)}catch{return!1}return t.test(n)},{MAX_LENGTH:jWe}=pk,{re:tte,t:nte}=uv,{re:bP,t:gP}=uv,$We=(n,t)=>{if(n instanceof Ki)return n;if("number"==typeof n&&(n=String(n)),"string"!=typeof n)return null;let e=null;if((t=t||{}).rtl){let o;for(;(o=bP[gP.COERCERTL].exec(n))&&(!e||e.index+e[0].length!==n.length);)e&&o.index+o[0].length===e.index+e[0].length||(e=o),bP[gP.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;bP[gP.COERCERTL].lastIndex=-1}else e=n.match(bP[gP.COERCE]);return null===e?null:((n,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof Ki)return n;if("string"!=typeof n||n.length>jWe||!(t.loose?tte[nte.LOOSE]:tte[nte.FULL]).test(n))return null;try{return new Ki(n,t)}catch{return null}})(`${e[2]}.${e[3]||"0"}.${e[4]||"0"}`,t)};function GWe(n){return String.fromCharCode(parseInt(n.slice(1),16))}function ZWe(n){return`%${`00${n.charCodeAt(0).toString(16)}`.slice(-2)}`}function ote(n){return function KWe(n){return btoa(encodeURIComponent(n).replace(/%[0-9A-F]{2}/g,GWe))}(JSON.stringify(n))}function QWe(n){return JSON.parse(function JWe(n){return decodeURIComponent(Array.from(atob(n),ZWe).join(""))}(n))}function Nu(n){return typeof n>"u"}function OP(n){return function eLe(n){return null===n}(n)||Nu(n)}function uk(n){if(!n)return!0;for(let t in n)if(Object.hasOwnProperty.call(n,t))return!1;return!0}var Or={},rLe={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},AM=class extends Error{constructor(n,t){super(`Magic SDK Error: [${n}] ${t}`),this.code=n,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,AM.prototype)}},mP=class extends Error{constructor(n){super(),this.__proto__=Error;let t=Number(n?.code);this.rawMessage=n?.message||"Internal error",this.code=function nLe(n){return!OP(n)&&"number"==typeof n&&Object.values(lk).includes(n)}(t)?t:lk.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=n?.data||void 0,Object.setPrototypeOf(this,mP.prototype)}},_P=class{constructor(n,t){this.code=n,this.rawMessage=t,this.message=`Magic SDK Warning: [${n}] ${t}`}log(){console.warn(this.message)}},rte=class extends Error{constructor(n,t,e,o){super(`Magic Extension Error (${n.name}): [${t}] ${e}`),this.code=t,this.rawMessage=e,this.data=o,this.__proto__=Error,Object.setPrototypeOf(this,rte.prototype)}},ite=class{constructor(n,t,e){this.code=t,this.rawMessage=e,this.message=`Magic Extension Warning (${n.name}): [${t}] ${e}`}log(){console.warn(this.message)}},MLe=function*hLe(){let n=0;for(;;)n(e=null!=n?J6e(oWe(n)):{},((n,t,e,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of nWe(t))!Xee.call(n,r)&&undefined!==r&&hP(n,r,{get:()=>t[r],enumerable:!(o=eWe(t,r))||o.enumerable});return n})(n&&n.__esModule?e:hP(e,"default",{value:n,enumerable:!0}),n)))(pWe()),OLe=class extends gLe.default{};function lte(){let n=new OLe;return{emitter:n,createChainingEmitterMethod:(t,e)=>(...o)=>(n[t].apply(n,o),e),createBoundEmitterMethod:t=>(...e)=>n[t].apply(n,e)}}var pte=Symbol("isPromiEvent");function mLe(n){return!!n[pte]}function dte(n){let t=ute(n),{createBoundEmitterMethod:e,createChainingEmitterMethod:o}=lte(),r=Symbol("Promise.then"),i=Symbol("Promise.catch"),a=Symbol("Promise.finally"),s=(d,u)=>(...h)=>{let M=u[d].apply(u,h);return c(M)},c=d=>Object.assign(d,{[pte]:!0,[r]:d[r]||d.then,[i]:d[i]||d.catch,[a]:d[a]||d.finally,then:s(r,d),catch:s(i,d),finally:s(a,d),on:o("on",d),once:o("once",d),addListener:o("addListener",d),off:o("off",d),removeListener:o("removeListener",d),removeAllListeners:o("removeAllListeners",d),emit:e("emit"),eventNames:e("eventNames"),listeners:e("listeners"),listenerCount:e("listenerCount")}),p=c(t.then(d=>(p.emit("done",d),p.emit("settled"),d),d=>{throw p.emit("error",d),p.emit("settled"),d}));return p}function ute(n){return new Promise((t,e)=>{let o=n(t,e);Promise.resolve(o).catch(e)})}var vP,yM=class{constructor(n){this.sdk=n}get overlay(){return this.sdk.overlay}request(n){let t=this.overlay.post(fP.MAGIC_HANDLE_REQUEST,zP(n)),e=dte((r,i)=>{t.then(a=>{if(o(),a.hasError)i(new mP(a.payload.error));else{if(!a.hasResult)throw function sLe(){return new AM(vM.MalformedResponse,"Response from the Magic iframe is malformed.")}();r(a.payload.result)}}).catch(a=>{o(),i(a)})}),o=this.overlay.on(FO.MAGIC_HANDLE_EVENT,r=>{var i;let{response:a}=r.data;if(a.id===n.id&&null!=(i=a.result)&&i.event){let{event:s,params:c=[]}=a.result;e.emit(s,...c)}});return e}createIntermediaryEvent(n,t){return e=>{let o=ir(Wn.IntermediaryEvent,[{payloadId:t,eventType:n,args:e}]);this.request(o)}}},_Le=class extends yM{loginWithMagicLink(n){let{email:t,showUI:e=!0,redirectURI:o}=n,r=ir(this.sdk.testMode?Wn.LoginWithMagicLinkTestMode:Wn.LoginWithMagicLink,[{email:t,showUI:e,redirectURI:o}]);return this.request(r)}loginWithSMS(n){let{phoneNumber:t}=n,e=ir(this.sdk.testMode?Wn.LoginWithSmsTestMode:Wn.LoginWithSms,[{phoneNumber:t,showUI:!0}]);return this.request(e)}loginWithEmailOTP(n){let{email:t,showUI:e}=n,o=ir(this.sdk.testMode?Wn.LoginWithEmailOTPTestMode:Wn.LoginWithEmailOTP,[{email:t,showUI:e}]);if(!e){let r=this.request(o);return r&&r.on("otp-input-sent",i=>{this.createIntermediaryEvent("verify-email-otp",o.id)(i)}),r}return this.request(o)}loginWithCredential(n){let t=n??"";if(!n&&"web"===Or.platform){t=window.location.search;let o=window.location.origin+window.location.pathname;window.history.replaceState(null,"",o)}let e=ir(this.sdk.testMode?Wn.LoginWithCredentialTestMode:Wn.LoginWithCredential,[t]);return this.request(e)}},fte={};function yf(n){return(...t)=>Iu(this,null,function*(){return vP||(vP=yield Or.configureStorage()),yield vP.ready(),vP[n](...t)})}((n,t)=>{for(var e in t)hP(n,e,{get:t[e],enumerable:!0})})(fte,{clear:()=>zLe,getItem:()=>bv,iterate:()=>CLe,key:()=>ALe,keys:()=>yLe,length:()=>vLe,removeItem:()=>hk,setItem:()=>AP});var bv=yf("getItem"),AP=yf("setItem"),hk=yf("removeItem"),zLe=yf("clear"),vLe=yf("length"),ALe=yf("key"),yLe=yf("keys"),CLe=yf("iterate");function wLe(){let n=window.crypto.getRandomValues(new Uint8Array(16));n[6]=15&n[6]|64,n[8]=191&n[8]|128;let t="";return t+=n[0].toString(16),t+=n[1].toString(16),t+=n[2].toString(16),t+=n[3].toString(16),t+="-",t+=n[4].toString(16),t+=n[5].toString(16),t+="-",t+=n[6].toString(16),t+=n[7].toString(16),t+="-",t+=n[8].toString(16),t+=n[9].toString(16),t+="-",t+=n[10].toString(16),t+=n[11].toString(16),t+=n[12].toString(16),t+=n[13].toString(16),t+=n[14].toString(16),t+=n[15].toString(16),t}var Mk="STORE_KEY_PRIVATE_KEY",yP="STORE_KEY_PUBLIC_JWK",bk="ECDSA",PLe={name:bk,namedCurve:"P-256"},xLe={name:bk,namedCurve:"P-256"};function Mte(){hk(yP),hk(Mk)}function bte(n){return gte(function SLe(n){return encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(t,e)=>String.fromCharCode(parseInt(e,16)))}(n))}function gte(n){return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+/g,"")}var kLe=class extends yM{getIdToken(n){let t=ir(this.sdk.testMode?Wn.GetIdTokenTestMode:Wn.GetIdToken,[n]);return this.request(t)}generateIdToken(n){let t=ir(this.sdk.testMode?Wn.GenerateIdTokenTestMode:Wn.GenerateIdToken,[n]);return this.request(t)}getMetadata(){let n=ir(this.sdk.testMode?Wn.GetMetadataTestMode:Wn.GetMetadata);return this.request(n)}updateEmail(n){let{email:t,showUI:e=!0}=n,o=ir(this.sdk.testMode?Wn.UpdateEmailTestMode:Wn.UpdateEmail,[{email:t,showUI:e}]);return this.request(o)}isLoggedIn(){let n=ir(this.sdk.testMode?Wn.IsLoggedInTestMode:Wn.IsLoggedIn);return this.request(n)}logout(){Mte();let n=ir(this.sdk.testMode?Wn.LogoutTestMode:Wn.Logout);return this.request(n)}showSettings(){let n=ir(this.sdk.testMode?Wn.UserSettingsTestMode:Wn.UserSettings);return this.request(n)}updatePhoneNumber(){let n=ir(this.sdk.testMode?Wn.UpdatePhoneNumberTestMode:Wn.UpdatePhoneNumber);return this.request(n)}recoverAccount(n){let t=ir(this.sdk.testMode?Wn.RecoverAccountTestMode:Wn.RecoverAccount,[n]);return this.request(t)}},ELe=class extends yM{connectWithUI(){let n=ir(Wn.RequestAccounts);return this.request(n)}showUI(){let n=ir(Wn.ShowUI);return this.request(n)}getInfo(){let n=ir(Wn.GetInfo);return this.request(n)}requestUserInfoWithUI(n){let t=ir(Wn.RequestUserInfoWithUI,n?[n]:[]);return this.request(t)}disconnect(){Mte();let n=ir(Wn.Disconnect);return this.request(n)}},{createBoundEmitterMethod:CP,createChainingEmitterMethod:XO}=lte(),ILe=class extends yM{constructor(){super(...arguments),this.isMagic=!0,this.on=XO("on",this),this.once=XO("once",this),this.addListener=XO("addListener",this),this.off=XO("off",this),this.removeListener=XO("removeListener",this),this.removeAllListeners=XO("removeAllListeners",this),this.emit=CP("emit"),this.eventNames=CP("eventNames"),this.listeners=CP("listeners"),this.listenerCount=CP("listenerCount")}sendAsync(n,t){if(!t)throw function pLe(n){return new AM(vM.InvalidArgument,`Invalid ${(e=>{let o=e+1,r=o%10,i=o%100;return 1===r&&11!==i?`${o}st`:2===r&&12!==i?`${o}nd`:3===r&&13!==i?`${o}rd`:`${o}th`})(n.argument)} argument given to \`${n.procedure}\`.\n Expected: \`${n.expected}\`\n Received: \`${n.received}\``)}({procedure:"Magic.rpcProvider.sendAsync",argument:1,expected:"function",received:null===t?"null":typeof t});if(Array.isArray(n))this.overlay.post(fP.MAGIC_HANDLE_REQUEST,n.map(e=>{let o=zP(e);return this.prefixPayloadMethodForTestMode(o),o})).then(e=>{t(null,e.map(o=>((n,t)=>Q6e(n,tWe(t)))(Uee({},o.payload),{error:o.hasError?new mP(o.payload.error):null})))});else{let e=zP(n);this.prefixPayloadMethodForTestMode(e),this.overlay.post(fP.MAGIC_HANDLE_REQUEST,e).then(o=>{t(o.hasError?new mP(o.payload.error):null,o.payload)})}}send(n,t){if("string"==typeof n){let o=ir(n,Array.isArray(t)?t:[]);return this.request(o)}if(Array.isArray(n)||t)return void this.sendAsync(n,t);let e=function uLe(){return new _P(uP.SyncWeb3Method,"Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.")}();return e.log(),new fk(n).applyError({code:-32603,message:e.rawMessage}).payload}enable(){let n=ir("eth_accounts");return this.request(n)}request(n){return this.prefixPayloadMethodForTestMode(n),super.request(n)}prefixPayloadMethodForTestMode(n){this.sdk.testMode&&(n.method=`testMode/eth/${n.method}`)}};function wP(n,t){return t?new URL(n,t):new URL(n)}var Ote=["request","overlay","sdk"];function NLe(n){let t=Object.getPrototypeOf(n),e=[t];for(;t!==yM.prototype;)t=Object.getPrototypeOf(t),e.push(t);return e}var mte=class extends yM{constructor(){super(void 0),this.__sdk_access_field_descriptors__=new Map,this.__is_initialized__=!1,this.utils={createPromiEvent:dte,isPromiEvent:mLe,encodeJSON:ote,decodeJSON:QWe,createJsonRpcRequestPayload:ir,standardizeJsonRpcRequestPayload:zP,storage:fte};let n=[this,...NLe(this)];Ote.forEach(t=>{let e=n.map(a=>Object.getOwnPropertyDescriptor(a,t)),o=e.findIndex(a=>!!a),i=e[o];i&&(this.__sdk_access_field_descriptors__.set(t,{descriptor:i,isPrototypeField:o>0}),Object.defineProperty(this,t,{configurable:!0,get:()=>{throw function cLe(n){return new AM(vM.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${n}\` can be accessed. Do not invoke \`Extension.${n}\` inside an extension constructor.`)}(t)}}))})}init(n){this.__is_initialized__||(Ote.forEach(t=>{if(this.__sdk_access_field_descriptors__.has(t)){let{descriptor:e,isPrototypeField:o}=this.__sdk_access_field_descriptors__.get(t);o?delete this[t]:Object.defineProperty(this,t,e)}}),this.sdk=n,this.__is_initialized__=!0)}createDeprecationWarning(n){let{method:t,removalVersion:e,useInstead:o}=n;return new ite(this,"DEPRECATION_NOTICE",`\`${t}\` will be removed from this Extension in version \`${e}\`.${o?` Use \`${o}\` instead.`:""}`)}createWarning(n,t){return new ite(this,n,t)}createError(n,t,e){return new rte(this,n,t,e)}},gv=class extends mte{};gv.Internal=class extends mte{},gv.Anonymous="anonymous extension";var FLe=class extends yM{purchase(n){let t=ir(Wn.NFTPurchase,[n]);return this.request(t)}};function _te(n){return!n.compat||null==n.compat[Or.sdkName]||("string"==typeof n.compat[Or.sdkName]?XWe($We(Or.version),n.compat[Or.sdkName]):!!n.compat[Or.sdkName])}function YLe(n){var t;let e=null!=(t=n?.extensions)?t:[],o={},r=[];if(Array.isArray(e)?e.forEach(i=>{_te(i)?(i.init(this),(i.name||i.name!==gv.Anonymous)&&(this[i.name]=i),i instanceof gv.Internal&&(uk(i.config)||(o[i.name]=i.config))):r.push(i)}):Object.keys(e).forEach(i=>{if(_te(e[i])){e[i].init(this);let a=e[i];this[i]=a,a instanceof gv.Internal&&(uk(a.config)||(o[e[i].name]=a.config))}else r.push(e[i])}),r.length)throw function lLe(n){let t=`Some extensions are incompatible with \`${Or.sdkName}@${Or.version}\`:`;return n.filter(e=>typeof e.compat<"u"&&null!==e.compat).forEach(e=>{let o=e.compat[Or.sdkName];"string"==typeof o?t+=`\n - Extension \`${e.name}\` supports version(s) \`${o}\``:o||(t+=`\n - Extension \`${e.name}\` does not support ${Or.platform} environments.`)}),new AM(vM.IncompatibleExtensions,t)}(r);return o}var PP=class{constructor(n,t){var e;if(this.apiKey=n,!n)throw function iLe(){return new AM(vM.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}();"react-native"===Or.platform&&t?.endpoint&&function fLe(){return new _P(uP.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`