(function(){var ce=globalThis;function ee(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ce.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}r("Zone");let t=(()=>{class N{static{this.__symbol__=ee}static assertZonePatched(){if(ce.Promise!==O.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 n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,p=!1){if(O.hasOwnProperty(n)){let P=ce[ee("forceDuplicateZoneCheck")]===!0;if(!p&&P)throw Error("Already loaded patch: "+n)}else if(!ce["__Zone_disable_"+n]){let P="Zone:"+n;r(P),O[n]=o(ce,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){let o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if(typeof n!="function")throw new Error("Expecting function got: "+n);let p=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(p,this,arguments,o)}}run(n,o,p,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,p,P)}finally{b=b.parent}}runGuarded(n,o=null,p,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,p,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,p){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");let P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===z||q===g))return;let ae=n.state!=j;ae&&P._transitionTo(j,h);let le=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!_e&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,p)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=n.state;if(ne!==X&&ne!==Y)if(q==z||A||_e&&ne===k)ae&&P._transitionTo(h,j,k);else{let f=P._zoneDelegates;this._updateTaskCount(P,-1),ae&&P._transitionTo(X,j,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=le}}scheduleTask(n){if(n.zone&&n.zone!==this){let p=this;for(;p;){if(p===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);p=p.parent}}n._transitionTo(k,X);let o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(p){throw n._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,p),p}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==k&&n._transitionTo(h,k),n}scheduleMicroTask(n,o,p,P){return this.scheduleTask(new E(G,n,o,p,P,void 0))}scheduleMacroTask(n,o,p,P,q){return this.scheduleTask(new E(g,n,o,p,P,q))}scheduleEventTask(n,o,p,P,q){return this.scheduleTask(new E(z,n,o,p,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");if(!(n.state!==h&&n.state!==j)){n._transitionTo(V,h,j);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){let p=n._zoneDelegates;o==-1&&(n._zoneDelegates=null);for(let P=0;P<p.length;P++)p[P]._updateTaskCount(n.type,o)}}return N})(),i={name:"",onHasTask:(N,_,n,o)=>N.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,p,P)=>N.invokeTask(n,o,p,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}constructor(_,n,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let p=o&&o.onHasTask,P=n&&n._hasTaskZS;(p||P)&&(this._hasTaskZS=p?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(_,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,n):new t(_,n)}intercept(_,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,n,o):n}invoke(_,n,o,p,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,p,P):n.apply(o,p)}handleError(_,n){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n):!0}scheduleTask(_,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else if(n.type==G)U(n);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(_,n,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,p):n.callback.apply(o,p)}cancelTask(_,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(_,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,n)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,n){let o=this._taskCounts,p=o[_],P=o[_]=p+n;if(P<0)throw new Error("More tasks executed then were scheduled.");if(p==0||P==0){let q={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_};this.hasTask(this._zone,q)}}}class E{constructor(_,n,o,p,P,q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=n,this.data=p,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;let A=this;_===z&&p&&p.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,n,o){if(this._state===n||this._state===o)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}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}}}let T=ee("setTimeout"),y=ee("Promise"),D=ee("then"),d=[],w=!1,Z;function x(N){if(Z||ce[y]&&(Z=ce[y].resolve(0)),Z){let _=Z[D];_||(_=Z.then),_.call(Z,N)}else ce[T](N,0)}function U(N){Q===0&&d.length===0&&x(J),N&&d.push(N)}function J(){if(!w){for(w=!0;d.length;){let N=d;d=[];for(let _=0;_<N.length;_++){let n=N[_];try{n.zone.runTask(n,null,null)}catch(o){R.onUnhandledError(o)}}}R.microtaskDrainDone(),w=!1}}let K={name:"NO ZONE"},X="notScheduled",k="scheduling",h="scheduled",j="running",V="canceling",Y="unknown",G="microTask",g="macroTask",z="eventTask",O={},R={symbol:ee,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x},b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}function _t(){let e=globalThis,r=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(r||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),ue="true",fe="false",Pe=ee("");function Ve(e,r){return Zone.current.wrap(e,r)}function Ge(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}var H=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(e,r){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ve(e[c],r+"_"+c));return e}function mt(e,r){let c=e.constructor.name;for(let t=0;t<r.length;t++){let i=r[t],u=e[i];if(u){let E=be(e,i);if(!tt(E))continue;e[i]=(T=>{let y=function(){return T.apply(this,Fe(arguments,c+"."+i))};return de(y,T),y})(u)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},yt=H("enable_beforeunload"),Ye=function(e){if(e=e||$.event,!e)return;let r=Ce[e.type];r||(r=Ce[e.type]=H("ON_PROPERTY"+e.type));let c=this||e.target||$,t=c[r],i;if(Be&&c===pe&&e.type==="error"){let u=e;i=t&&t.call(this,u.message,u.filename,u.lineno,u.colno,u.error),i===!0&&e.preventDefault()}else i=t&&t.apply(this,arguments),e.type==="beforeunload"&&$[yt]&&typeof i=="string"?e.returnValue=i:i!=null&&!i&&e.preventDefault();return i};function $e(e,r,c){let t=be(e,r);if(!t&&c&&be(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let i=H("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;let u=t.get,E=t.set,T=r.slice(2),y=Ce[T];y||(y=Ce[T]=H("ON_PROPERTY"+T)),t.set=function(D){let d=this;if(!d&&e===$&&(d=$),!d)return;typeof d[y]=="function"&&d.removeEventListener(T,Ye),E&&E.call(d,null),d[y]=D,typeof D=="function"&&d.addEventListener(T,Ye,!1)},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;let d=D[y];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),typeof D[gt]=="function"&&D.removeAttribute(r),w}return null},Ae(e,r,t),e[i]=!0}function ot(e,r,c){if(r)for(let t=0;t<r.length;t++)$e(e,"on"+r[t],c);else{let t=[];for(let i in e)i.slice(0,2)=="on"&&t.push(i);for(let i=0;i<t.length;i++)$e(e,t[i],c)}}var oe=H("originalInstance");function ve(e){let r=$[e];if(!r)return;$[H(e)]=r,$[e]=function(){let i=Fe(arguments,e);switch(i.length){case 0:this[oe]=new r;break;case 1:this[oe]=new r(i[0]);break;case 2:this[oe]=new r(i[0],i[1]);break;case 3:this[oe]=new r(i[0],i[1],i[2]);break;case 4:this[oe]=new r(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},de($[e],r);let c=new r(function(){}),t;for(t in c)e==="XMLHttpRequest"&&t==="responseBlob"||(function(i){typeof c[i]=="function"?$[e].prototype[i]=function(){return this[oe][i].apply(this[oe],arguments)}:Ae($[e].prototype,i,{set:function(u){typeof u=="function"?(this[oe][i]=Ve(u,e+"."+i),de(this[oe][i],u)):this[oe][i]=u},get:function(){return this[oe][i]}})})(t);for(t in r)t!=="prototype"&&r.hasOwnProperty(t)&&($[e][t]=r[t])}function he(e,r,c){let t=e;for(;t&&!t.hasOwnProperty(r);)t=je(t);!t&&e[r]&&(t=e);let i=H(r),u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))){u=t[i]=t[r];let E=t&&be(t,r);if(tt(E)){let T=c(u,i,r);t[r]=function(){return T(this,arguments)},de(t[r],u)}}return u}function pt(e,r,c){let t=null;function i(u){let E=u.data;return E.args[E.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(E.target,E.args),u}t=he(e,r,u=>function(E,T){let y=c(E,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?Ge(y.name,T[y.cbIdx],y,i):u.apply(E,T)})}function de(e,r){e[H("OriginalDelegate")]=r}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var ye=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=H("propagationStopped");function at(e,r){let c=(r?r(e):e)+fe,t=(r?r(e):e)+ue,i=Pe+c,u=Pe+t;te[e]={},te[e][fe]=i,te[e][ue]=u}function Pt(e,r,c,t){let i=t&&t.add||He,u=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",y=H(i),D="."+i+":",d="prependListener",w="."+d+":",Z=function(k,h,j){if(k.isRemoved)return;let V=k.callback;typeof V=="object"&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);let Y;try{k.invoke(k,h,[j])}catch(g){Y=g}let G=k.options;if(G&&typeof G=="object"&&G.once){let g=k.originalDelegate?k.originalDelegate:k.callback;h[u].call(h,j.type,g,G)}return Y};function x(k,h,j){if(h=h||e.event,!h)return;let V=k||h.target||e,Y=V[te[h.type][j?ue:fe]];if(Y){let G=[];if(Y.length===1){let g=Z(Y[0],V,h);g&&G.push(g)}else{let g=Y.slice();for(let z=0;z<g.length&&!(h&&h[ct]===!0);z++){let O=Z(g[z],V,h);O&&G.push(O)}}if(G.length===1)throw G[0];for(let g=0;g<G.length;g++){let z=G[g];r.nativeScheduleMicroTask(()=>{throw z})}}}let U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,h){if(!k)return!1;let j=!0;h&&h.useG!==void 0&&(j=h.useG);let V=h&&h.vh,Y=!0;h&&h.chkDup!==void 0&&(Y=h.chkDup);let G=!1;h&&h.rt!==void 0&&(G=h.rt);let g=k;for(;g&&!g.hasOwnProperty(i);)g=je(g);if(!g&&k[i]&&(g=k),!g||g[y])return!1;let z=h&&h.eventNameToString,O={},R=g[y]=g[i],b=g[H(u)]=g[u],S=g[H(E)]=g[E],Q=g[H(T)]=g[T],W;h&&h.prepend&&(W=g[H(h.prepend)]=g[h.prepend]);function N(s,l){return!ye&&typeof s=="object"&&s?!!s.capture:!ye||!l?s:typeof s=="boolean"?{capture:s,passive:!0}:s?typeof s=="object"&&s.passive!==!1?{...s,passive:!0}:s:{passive:!0}}let _=function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?J:U,O.options)},n=function(s){if(!s.isRemoved){let l=te[s.eventName],v;l&&(v=l[s.capture?ue:fe]);let C=v&&s.target[v];if(C){for(let m=0;m<C.length;m++)if(C[m]===s){C.splice(m,1),s.isRemoved=!0,s.removeAbortListener&&(s.removeAbortListener(),s.removeAbortListener=null),C.length===0&&(s.allRemoved=!0,s.target[v]=null);break}}}if(s.allRemoved)return b.call(s.target,s.eventName,s.capture?J:U,s.options)},o=function(s){return R.call(O.target,O.eventName,s.invoke,O.options)},p=function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},P=function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},q=j?_:o,A=j?n:P,_e=function(s,l){let v=typeof l;return v==="function"&&s.callback===l||v==="object"&&s.originalDelegate===l},ae=h&&h.diff?h.diff:_e,le=Zone[H("UNPATCHED_EVENTS")],ne=e[H("PASSIVE_EVENTS")];function f(s){if(typeof s=="object"&&s!==null){let l={...s};return s.signal&&(l.signal=s.signal),l}return s}let a=function(s,l,v,C,m=!1,L=!1){return function(){let I=this||e,M=arguments[0];h&&h.transferEventName&&(M=h.transferEventName(M));let F=arguments[1];if(!F)return s.apply(this,arguments);if(Se&&M==="uncaughtException")return s.apply(this,arguments);let B=!1;if(typeof F!="function"){if(!F.handleEvent)return s.apply(this,arguments);B=!0}if(V&&!V(s,F,I,arguments))return;let Ee=ye&&!!ne&&ne.indexOf(M)!==-1,se=f(N(arguments[2],Ee)),Te=se?.signal;if(Te?.aborted)return;if(le){for(let ie=0;ie<le.length;ie++)if(M===le[ie])return Ee?s.call(I,M,F,se):s.apply(this,arguments)}let Oe=se?typeof se=="boolean"?!0:se.capture:!1,Ue=se&&typeof se=="object"?se.once:!1,ht=Zone.current,Ne=te[M];Ne||(at(M,z),Ne=te[M]);let ze=Ne[Oe?ue:fe],ge=I[ze],We=!1;if(ge){if(We=!0,Y){for(let ie=0;ie<ge.length;ie++)if(ae(ge[ie],F))return}}else ge=I[ze]=[];let we,qe=I.constructor.name,Xe=st[qe];Xe&&(we=Xe[M]),we||(we=qe+l+(z?z(M):M)),O.options=se,Ue&&(O.options.once=!1),O.target=I,O.capture=Oe,O.eventName=M,O.isExisting=We;let ke=j?bt:void 0;ke&&(ke.taskData=O),Te&&(O.options.signal=void 0);let re=ht.scheduleEventTask(we,F,ke,v,C);if(Te){O.options.signal=Te;let ie=()=>re.zone.cancelTask(re);s.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(O.target=null,ke&&(ke.taskData=null),Ue&&(O.options.once=!0),!ye&&typeof re.options=="boolean"||(re.options=se),re.target=I,re.capture=Oe,re.eventName=M,B&&(re.originalDelegate=F),L?ge.unshift(re):ge.push(re),m)return I}};return g[i]=a(R,D,q,A,G),W&&(g[d]=a(W,w,p,A,G,!0)),g[u]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=arguments[2],C=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,s,arguments))return;let L=te[l],I;L&&(I=L[C?ue:fe]);let M=I&&s[I];if(M)for(let F=0;F<M.length;F++){let B=M[F];if(ae(B,m)){if(M.splice(F,1),B.isRemoved=!0,M.length===0&&(B.allRemoved=!0,s[I]=null,!C&&typeof l=="string")){let Ee=Pe+"ON_PROPERTY"+l;s[Ee]=null}return B.zone.cancelTask(B),G?s:void 0}}return b.apply(this,arguments)},g[E]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=[],C=lt(s,z?z(l):l);for(let m=0;m<C.length;m++){let L=C[m],I=L.originalDelegate?L.originalDelegate:L.callback;v.push(I)}return v},g[T]=function(){let s=this||e,l=arguments[0];if(l){h&&h.transferEventName&&(l=h.transferEventName(l));let v=te[l];if(v){let C=v[fe],m=v[ue],L=s[C],I=s[m];if(L){let M=L.slice();for(let F=0;F<M.length;F++){let B=M[F],Ee=B.originalDelegate?B.originalDelegate:B.callback;this[u].call(this,l,Ee,B.options)}}if(I){let M=I.slice();for(let F=0;F<M.length;F++){let B=M[F],Ee=B.originalDelegate?B.originalDelegate:B.callback;this[u].call(this,l,Ee,B.options)}}}}else{let v=Object.keys(s);for(let C=0;C<v.length;C++){let m=v[C],L=it.exec(m),I=L&&L[1];I&&I!=="removeListener"&&this[T].call(this,I)}this[T].call(this,"removeListener")}if(G)return this},de(g[i],R),de(g[u],b),Q&&de(g[T],Q),S&&de(g[E],S),!0}let X=[];for(let k=0;k<c.length;k++)X[k]=K(c[k],t);return X}function lt(e,r){if(!r){let u=[];for(let E in e){let T=it.exec(E),y=T&&T[1];if(y&&(!r||y===r)){let D=e[E];if(D)for(let d=0;d<D.length;d++)u.push(D[d])}}return u}let c=te[r];c||(at(r),c=te[r]);let t=e[c[fe]],i=e[c[ue]];return t?i?t.concat(i):t.slice():i?i.slice():[]}function wt(e,r){let c=e.Event;c&&c.prototype&&r.patchMethod(c.prototype,"stopImmediatePropagation",t=>function(i,u){i[ct]=!0,t&&t.apply(i,u)})}function Rt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var Re=H("zoneTask");function me(e,r,c,t){let i=null,u=null;r+=t,c+=t;let E={};function T(D){let d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};let w=i.apply(e,d.args);return Qe(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Ke(w.refresh)),D}function y(D){let{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=he(e,r,D=>function(d,w){if(Ke(w[0])){let Z={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:j,handleId:V,isPeriodic:Y,isRefreshable:G}=Z;!Y&&!G&&(V?delete E[V]:j&&(j[Re]=null))}};let U=Ge(r,w[0],Z,T,y);if(!U)return U;let{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[Re]=U,X&&!k)){let h=K.refresh;K.refresh=function(){let{zone:j,state:V}=U;return V==="notScheduled"?(U._state="scheduled",j._updateTaskCount(U,1)):V==="running"&&(U._state="scheduling"),h.call(this)}}return K??J??U}else return D.apply(e,w)}),u=he(e,c,D=>function(d,w){let Z=w[0],x;Qe(Z)?(x=E[Z],delete E[Z]):(x=Z?.[Re],x?Z[Re]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function Ct(e,r){let{isBrowser:c,isMix:t}=r.getGlobalObjects();if(!c&&!t||!e.customElements||!("customElements"in e))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,e.customElements,"customElements","define",i)}function Dt(e,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let y=0;y<c.length;y++){let D=c[y],d=D+u,w=D+i,Z=E+d,x=E+w;t[D]={},t[D][u]=Z,t[D][i]=x}let T=e.EventTarget;if(!(!T||!T.prototype))return r.patchEventTarget(e,r,[T&&T.prototype]),!0}function St(e,r){r.patchEventPrototype(e,r)}function ut(e,r,c){if(!c||c.length===0)return r;let t=c.filter(u=>u.target===e);if(!t||t.length===0)return r;let i=t[0].ignoreProperties;return r.filter(u=>i.indexOf(u)===-1)}function et(e,r,c,t){if(!e)return;let i=ut(e,r,c);ot(e,i,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ot(e,r){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let c=r.__Zone_ignore_on_properties,t=[];if(Be){let i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=kt()?[{target:i,ignoreProperties:["error"]}]:[];et(i,Ze(i),c&&c.concat(u),je(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<t.length;i++){let u=r[t[i]];u&&u.prototype&&et(u.prototype,Ze(u.prototype),c)}}function Nt(e){e.__load_patch("legacy",r=>{let c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{let t="clear";me(r,"set",t,"Timeout"),me(r,"set",t,"Interval"),me(r,"set",t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{me(r,"request","cancel","AnimationFrame"),me(r,"mozRequest","mozCancel","AnimationFrame"),me(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{let t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++){let u=t[i];he(r,u,(E,T,y)=>function(D,d){return c.current.run(E,r,d,y)})}}),e.__load_patch("EventTarget",(r,c,t)=>{St(r,t),Dt(r,t);let i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{ve("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{Ot(t,r)}),e.__load_patch("customElements",(r,c,t)=>{Ct(r,t)}),e.__load_patch("XHR",(r,c)=>{D(r);let t=H("xhrTask"),i=H("xhrSync"),u=H("xhrListener"),E=H("xhrScheduled"),T=H("xhrURL"),y=H("xhrErrorBeforeScheduled");function D(d){let w=d.XMLHttpRequest;if(!w)return;let Z=w.prototype;function x(R){return R[t]}let U=Z[Le],J=Z[Ie];if(!U){let R=d.XMLHttpRequestEventTarget;if(R){let b=R.prototype;U=b[Le],J=b[Ie]}}let K="readystatechange",X="scheduled";function k(R){let b=R.data,S=b.target;S[E]=!1,S[y]=!1;let Q=S[u];U||(U=S[Le],J=S[Ie]),Q&&J.call(S,K,Q);let W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){let _=S[c.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let n=R.invoke;R.invoke=function(){let o=S[c.__symbol__("loadfalse")];for(let p=0;p<o.length;p++)o[p]===R&&o.splice(p,1);!b.aborted&&R.state===X&&n.call(R)},_.push(R)}else R.invoke()}else!b.aborted&&S[E]===!1&&(S[y]=!0)};return U.call(S,K,W),S[t]||(S[t]=R),z.apply(S,b.args),S[E]=!0,R}function h(){}function j(R){let b=R.data;return b.aborted=!0,O.apply(b.target,b.args)}let V=he(Z,"open",()=>function(R,b){return R[i]=b[2]==!1,R[T]=b[1],V.apply(R,b)}),Y="XMLHttpRequest.send",G=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),z=he(Z,"send",()=>function(R,b){if(c.current[g]===!0||R[i])return z.apply(R,b);{let S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},Q=Ge(Y,h,S,k,j);R&&R[y]===!0&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=he(Z,"abort",()=>function(R,b){let S=x(R);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(c.current[G]===!0)return O.apply(R,b)})}}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&mt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){lt(r,i).forEach(T=>{let y=r.PromiseRejectionEvent;if(y){let D=new y(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{Rt(r,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{let i=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function E(f){if(f&&f.toString===Object.prototype.toString){let a=f.constructor&&f.constructor.name;return(a||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let T=t.symbol,y=[],D=r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,d=T("Promise"),w=T("then"),Z="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){let a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;y.length;){let f=y.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){U(a)}}};let x=T("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{let a=c[x];typeof a=="function"&&a.call(this,f)}catch{}}function J(f){return f&&f.then}function K(f){return f}function X(f){return A.reject(f)}let k=T("state"),h=T("value"),j=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),G="Promise.then",g=null,z=!0,O=!1,R=0;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}let S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){let l=S();if(f===s)throw new TypeError(Q);if(f[k]===g){let v=null;try{(typeof s=="object"||typeof s=="function")&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(k)&&s.hasOwnProperty(h)&&s[k]!==g)n(s),N(f,s[k],s[h]);else if(a!==O&&typeof v=="function")try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[k]=a;let C=f[h];if(f[h]=s,f[j]===j&&a===z&&(f[k]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){let m=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];m&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m<C.length;)o(f,C[m++],C[m++],C[m++],C[m++]);if(C.length==0&&a==O){f[k]=R;let m=s;try{throw new Error("Uncaught (in promise): "+E(s)+(s&&s.stack?`
`+s.stack:""))}catch(L){m=L}D&&(m.throwOriginal=!0),m.rejection=s,m.promise=f,m.zone=c.current,m.task=c.currentTask,y.push(m),t.scheduleMicroTask()}}}return f}let _=T("rejectionHandledHandler");function n(f){if(f[k]===R){try{let a=c[_];a&&typeof a=="function"&&a.call(this,{rejection:f[h],promise:f})}catch{}f[k]=O;for(let a=0;a<y.length;a++)f===y[a].promise&&y.splice(a,1)}}function o(f,a,s,l,v){n(f);let C=f[k],m=C?typeof l=="function"?l:K:typeof v=="function"?v:X;a.scheduleMicroTask(G,()=>{try{let L=f[h],I=!!s&&j===s[j];I&&(s[V]=L,s[Y]=C);let M=a.run(m,void 0,I&&m!==X&&m!==K?[]:[L]);N(s,!0,M)}catch(L){N(s,!1,L)}},s)}let p="function ZoneAwarePromise() { [native code] }",P=function(){},q=r.AggregateError;class A{static toString(){return p}static resolve(a){return a instanceof A?a:N(new this(null),z,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){let a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new q([],"All promises were rejected"));let s=[],l=0;try{for(let m of a)l++,s.push(A.resolve(m))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(l===0)return Promise.reject(new q([],"All promises were rejected"));let v=!1,C=[];return new A((m,L)=>{for(let I=0;I<s.length;I++)s[I].then(M=>{v||(v=!0,m(M))},M=>{C.push(M),l--,l===0&&(v=!0,L(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((L,I)=>{s=L,l=I});function C(L){s(L)}function m(L){l(L)}for(let L of a)J(L)||(L=this.resolve(L)),L.then(C,m);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,C=new this((M,F)=>{l=M,v=F}),m=2,L=0,I=[];for(let M of a){J(M)||(M=this.resolve(M));let F=L;try{M.then(B=>{I[F]=s?s.thenCallback(B):B,m--,m===0&&l(I)},B=>{s?(I[F]=s.errorCallback(B),m--,m===0&&l(I)):v(B)})}catch(B){v(B)}m++,L++}return m-=2,m===0&&l(I),C}constructor(a){let s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[k]=g,s[h]=[];try{let l=S();a&&a(l(b(s,z)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=this.constructor||A);let v=new l(P),C=c.current;return this[k]==g?this[h].push(C,v,a,s):o(this,C,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||typeof s!="function")&&(s=A);let l=new s(P);l[j]=j;let v=c.current;return this[k]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;let _e=r[d]=r.Promise;r.Promise=A;let ae=T("thenPatched");function le(f){let a=f.prototype,s=i(a,"then");if(s&&(s.writable===!1||!s.configurable))return;let l=a.then;a[w]=l,f.prototype.then=function(v,C){return new A((L,I)=>{l.call(this,L,I)}).then(v,C)},f[ae]=!0}t.patchThen=le;function ne(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[ae]||le(v),l}}return _e&&(le(_e),he(r,"fetch",f=>ne(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=y,A})}function It(e){e.__load_patch("toString",r=>{let c=Function.prototype.toString,t=H("OriginalDelegate"),i=H("Promise"),u=H("Error"),E=function(){if(typeof this=="function"){let d=this[t];if(d)return typeof d=="function"?c.call(d):Object.prototype.toString.call(d);if(this===Promise){let w=r[i];if(w)return c.call(w)}if(this===Error){let w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;let T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Mt(e,r,c,t,i){let u=Zone.__symbol__(t);if(r[u])return;let E=r[u]=r[t];r[t]=function(T,y,D){return y&&y.prototype&&i.forEach(function(d){let w=`${c}.${t}::`+d,Z=y.prototype;try{if(Z.hasOwnProperty(d)){let x=e.ObjectGetOwnPropertyDescriptor(Z,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(y.prototype,d,x)):Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}else Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}catch{}}),E.call(r,T,y,D)},e.attachOriginToPatched(r[t],E)}function Zt(e){e.__load_patch("util",(r,c,t)=>{let i=Ze(r);t.patchOnProperties=ot,t.patchMethod=he,t.bindArguments=Fe,t.patchMacroTask=pt;let u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=de,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:i,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:ue,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);
})();
(function(){var Ay=Object.create;var rc=Object.defineProperty,Ry=Object.defineProperties,Fy=Object.getOwnPropertyDescriptor,ky=Object.getOwnPropertyDescriptors,Oy=Object.getOwnPropertyNames,yi=Object.getOwnPropertySymbols,Py=Object.getPrototypeOf,oc=Object.prototype.hasOwnProperty,df=Object.prototype.propertyIsEnumerable;var lf=(e,t,n)=>t in e?rc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||={})oc.call(t,n)&&lf(e,n,t[n]);if(yi)for(var n of yi(t))df.call(t,n)&&lf(e,n,t[n]);return e},de=(e,t)=>Ry(e,ky(t));var dn=(e,t)=>{var n={};for(var r in e)oc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yi)for(var r of yi(e))t.indexOf(r)<0&&df.call(e,r)&&(n[r]=e[r]);return n};var Ly=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var jy=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oy(t))!oc.call(e,o)&&o!==n&&rc(e,o,{get:()=>t[o],enumerable:!(r=Fy(t,o))||r.enumerable});return e};var Vy=(e,t,n)=>(n=e!=null?Ay(Py(e)):{},jy(t||!e||!e.__esModule?rc(n,"default",{value:e,enumerable:!0}):n,e));var De=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var Iy=Ly((un,by)=>{"use strict";var Za=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Xa=(function(){function e(){this.fetch=!1,this.DOMException=Za.DOMException}return e.prototype=Za,new e})();(function(e){var t=(function(n){var r=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&(function(){try{return new Blob,!0}catch(D){return!1}})(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function i(D){return D&&DataView.prototype.isPrototypeOf(D)}if(o.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(D){return D&&s.indexOf(Object.prototype.toString.call(D))>-1};function c(D){if(typeof D!="string"&&(D=String(D)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(D)||D==="")throw new TypeError('Invalid character in header field name: "'+D+'"');return D.toLowerCase()}function u(D){return typeof D!="string"&&(D=String(D)),D}function l(D){var w={next:function(){var M=D.shift();return{done:M===void 0,value:M}}};return o.iterable&&(w[Symbol.iterator]=function(){return w}),w}function d(D){this.map={},D instanceof d?D.forEach(function(w,M){this.append(M,w)},this):Array.isArray(D)?D.forEach(function(w){if(w.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+w.length);this.append(w[0],w[1])},this):D&&Object.getOwnPropertyNames(D).forEach(function(w){this.append(w,D[w])},this)}d.prototype.append=function(D,w){D=c(D),w=u(w);var M=this.map[D];this.map[D]=M?M+", "+w:w},d.prototype.delete=function(D){delete this.map[c(D)]},d.prototype.get=function(D){return D=c(D),this.has(D)?this.map[D]:null},d.prototype.has=function(D){return this.map.hasOwnProperty(c(D))},d.prototype.set=function(D,w){this.map[c(D)]=u(w)},d.prototype.forEach=function(D,w){for(var M in this.map)this.map.hasOwnProperty(M)&&D.call(w,this.map[M],M,this)},d.prototype.keys=function(){var D=[];return this.forEach(function(w,M){D.push(M)}),l(D)},d.prototype.values=function(){var D=[];return this.forEach(function(w){D.push(w)}),l(D)},d.prototype.entries=function(){var D=[];return this.forEach(function(w,M){D.push([M,w])}),l(D)},o.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function f(D){if(!D._noBody){if(D.bodyUsed)return Promise.reject(new TypeError("Already read"));D.bodyUsed=!0}}function p(D){return new Promise(function(w,M){D.onload=function(){w(D.result)},D.onerror=function(){M(D.error)}})}function m(D){var w=new FileReader,M=p(w);return w.readAsArrayBuffer(D),M}function v(D){var w=new FileReader,M=p(w),$=/charset=([A-Za-z0-9_-]+)/.exec(D.type),ne=$?$[1]:"utf-8";return w.readAsText(D,ne),M}function y(D){for(var w=new Uint8Array(D),M=new Array(w.length),$=0;$<w.length;$++)M[$]=String.fromCharCode(w[$]);return M.join("")}function h(D){if(D.slice)return D.slice(0);var w=new Uint8Array(D.byteLength);return w.set(new Uint8Array(D)),w.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(D){this.bodyUsed=this.bodyUsed,this._bodyInit=D,D?typeof D=="string"?this._bodyText=D:o.blob&&Blob.prototype.isPrototypeOf(D)?this._bodyBlob=D:o.formData&&FormData.prototype.isPrototypeOf(D)?this._bodyFormData=D:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(D)?this._bodyText=D.toString():o.arrayBuffer&&o.blob&&i(D)?(this._bodyArrayBuffer=h(D.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(D)||a(D))?this._bodyArrayBuffer=h(D):this._bodyText=D=Object.prototype.toString.call(D):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof D=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(D)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var D=f(this);if(D)return D;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var D=f(this);return D||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(o.blob)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var D=f(this);if(D)return D;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(D){var w=D.toUpperCase();return E.indexOf(w)>-1?w:D}function x(D,w){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');w=w||{};var M=w.body;if(D instanceof x){if(D.bodyUsed)throw new TypeError("Already read");this.url=D.url,this.credentials=D.credentials,w.headers||(this.headers=new d(D.headers)),this.method=D.method,this.mode=D.mode,this.signal=D.signal,!M&&D._bodyInit!=null&&(M=D._bodyInit,D.bodyUsed=!0)}else this.url=String(D);if(this.credentials=w.credentials||this.credentials||"same-origin",(w.headers||!this.headers)&&(this.headers=new d(w.headers)),this.method=_(w.method||this.method||"GET"),this.mode=w.mode||this.mode||null,this.signal=w.signal||this.signal||(function(){if("AbortController"in r){var H=new AbortController;return H.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&M)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(M),(this.method==="GET"||this.method==="HEAD")&&(w.cache==="no-store"||w.cache==="no-cache")){var $=/([?&])_=[^&]*/;if($.test(this.url))this.url=this.url.replace($,"$1_="+new Date().getTime());else{var ne=/\?/;this.url+=(ne.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})};function S(D){var w=new FormData;return D.trim().split("&").forEach(function(M){if(M){var $=M.split("="),ne=$.shift().replace(/\+/g," "),H=$.join("=").replace(/\+/g," ");w.append(decodeURIComponent(ne),decodeURIComponent(H))}}),w}function A(D){var w=new d,M=D.replace(/\r?\n[\t ]+/g," ");return M.split("\r").map(function($){return $.indexOf(`
`)===0?$.substr(1,$.length):$}).forEach(function($){var ne=$.split(":"),H=ne.shift().trim();if(H){var Yn=ne.join(":").trim();try{w.append(H,Yn)}catch(Kn){console.warn("Response "+Kn.message)}}}),w}I.call(x.prototype);function k(D,w){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(w||(w={}),this.type="default",this.status=w.status===void 0?200:w.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=w.statusText===void 0?"":""+w.statusText,this.headers=new d(w.headers),this.url=w.url||"",this._initBody(D)}I.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},k.error=function(){var D=new k(null,{status:200,statusText:""});return D.ok=!1,D.status=0,D.type="error",D};var J=[301,302,303,307,308];k.redirect=function(D,w){if(J.indexOf(w)===-1)throw new RangeError("Invalid status code");return new k(null,{status:w,headers:{location:D}})},n.DOMException=r.DOMException;try{new n.DOMException}catch(D){n.DOMException=function(w,M){this.message=w,this.name=M;var $=Error(w);this.stack=$.stack},n.DOMException.prototype=Object.create(Error.prototype),n.DOMException.prototype.constructor=n.DOMException}function oe(D,w){return new Promise(function(M,$){var ne=new x(D,w);if(ne.signal&&ne.signal.aborted)return $(new n.DOMException("Aborted","AbortError"));var H=new XMLHttpRequest;function Yn(){H.abort()}H.onload=function(){var le={statusText:H.statusText,headers:A(H.getAllResponseHeaders()||"")};ne.url.indexOf("file://")===0&&(H.status<200||H.status>599)?le.status=200:le.status=H.status,le.url="responseURL"in H?H.responseURL:le.headers.get("X-Request-URL");var mt="response"in H?H.response:H.responseText;setTimeout(function(){M(new k(mt,le))},0)},H.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},H.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request timed out"))},0)},H.onabort=function(){setTimeout(function(){$(new n.DOMException("Aborted","AbortError"))},0)};function Kn(le){try{return le===""&&r.location.href?r.location.href:le}catch(mt){return le}}if(H.open(ne.method,Kn(ne.url),!0),ne.credentials==="include"?H.withCredentials=!0:ne.credentials==="omit"&&(H.withCredentials=!1),"responseType"in H&&(o.blob?H.responseType="blob":o.arrayBuffer&&(H.responseType="arraybuffer")),w&&typeof w.headers=="object"&&!(w.headers instanceof d||r.Headers&&w.headers instanceof r.Headers)){var we=[];Object.getOwnPropertyNames(w.headers).forEach(function(le){we.push(c(le)),H.setRequestHeader(le,u(w.headers[le]))}),ne.headers.forEach(function(le,mt){we.indexOf(mt)===-1&&H.setRequestHeader(mt,le)})}else ne.headers.forEach(function(le,mt){H.setRequestHeader(mt,le)});ne.signal&&(ne.signal.addEventListener("abort",Yn),H.onreadystatechange=function(){H.readyState===4&&ne.signal.removeEventListener("abort",Yn)}),H.send(typeof ne._bodyInit>"u"?null:ne._bodyInit)})}return oe.polyfill=!0,r.fetch||(r.fetch=oe,r.Headers=d,r.Request=x,r.Response=k),n.Headers=d,n.Request=x,n.Response=k,n.fetch=oe,Object.defineProperty(n,"__esModule",{value:!0}),n})({})})(Xa);Xa.fetch.ponyfill=!0;delete Xa.fetch.polyfill;var Yr=Za.fetch?Za:Xa;un=Yr.fetch;un.default=Yr.fetch;un.fetch=Yr.fetch;un.Headers=Yr.Headers;un.Request=Yr.Request;un.Response=Yr.Response;by.exports=un});var ic=null;var ff=1;var fn=Symbol("SIGNAL");function G(e){let t=ic;return ic=e,t}function Di(){return ic}var ac={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pf(e){if(!(bi(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ff)){if(!e.producerMustRecompute(e)&&!uc(e)){sc(e);return}e.producerRecomputeValue(e),sc(e)}}function sc(e){e.dirty=!1,e.lastCleanEpoch=ff}function cc(e){return e&&hf(e),G(e)}function hf(e){e.producersTail=void 0,e.recomputing=!0}function mf(e,t){G(t),e&&gf(e)}function gf(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(bi(e))do n=lc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function uc(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(pf(n),r!==n.version))return!0}return!1}function Ei(e){if(bi(e)){let t=e.producers;for(;t!==void 0;)t=lc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function lc(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!bi(t)){let i=t.producers;for(;i!==void 0;)i=lc(i)}return n}function bi(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Uy(){throw new Error}var By=Uy;function dc(e){By=e}function W(e){return typeof e=="function"}function Ii(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var wi=Ii(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=n});function pn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var me=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(W(r))try{r()}catch(i){t=i instanceof wi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{vf(i)}catch(s){t=t??[],s instanceof wi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new wi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)vf(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&pn(n,t)}remove(t){let{_finalizers:n}=this;n&&pn(n,t),t instanceof e&&t._removeParent(this)}};me.EMPTY=(()=>{let e=new me;return e.closed=!0,e})();var fc=me.EMPTY;function _i(e){return e instanceof me||e&&"closed"in e&&W(e.remove)&&W(e.add)&&W(e.unsubscribe)}function vf(e){W(e)?e():e.unsubscribe()}var et={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xn={setTimeout(e,t,...n){let{delegate:r}=Xn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Xn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function xi(e){Xn.setTimeout(()=>{let{onUnhandledError:t}=et;if(t)t(e);else throw e})}function pc(){}var yf=hc("C",void 0,void 0);function Df(e){return hc("E",void 0,e)}function Ef(e){return hc("N",e,void 0)}function hc(e,t,n){return{kind:e,value:t,error:n}}var hn=null;function Jn(e){if(et.useDeprecatedSynchronousErrorHandling){let t=!hn;if(t&&(hn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=hn;if(hn=null,n)throw r}}else e()}function bf(e){et.useDeprecatedSynchronousErrorHandling&&hn&&(hn.errorThrown=!0,hn.error=e)}var mn=class extends me{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,_i(t)&&t.add(this)):this.destination=qy}static create(t,n,r){return new er(t,n,r)}next(t){this.isStopped?gc(Ef(t),this):this._next(t)}error(t){this.isStopped?gc(Df(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?gc(yf,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()}}},Hy=Function.prototype.bind;function mc(e,t){return Hy.call(e,t)}var vc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ti(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ti(r)}else Ti(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ti(n)}}},er=class extends mn{constructor(t,n,r){super();let o;if(W(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&et.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&mc(t.next,i),error:t.error&&mc(t.error,i),complete:t.complete&&mc(t.complete,i)}):o=t}this.destination=new vc(o)}};function Ti(e){et.useDeprecatedSynchronousErrorHandling?bf(e):xi(e)}function $y(e){throw e}function gc(e,t){let{onStoppedNotification:n}=et;n&&Xn.setTimeout(()=>n(e,t))}var qy={closed:!0,next:pc,error:$y,complete:pc};var It=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Si(e){return e}function If(e){return e.length===0?Si:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var Y=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Gy(n)?n:new er(n,r,o);return Jn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=wf(r),new r((o,i)=>{let s=new er({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[It](){return this}pipe(...n){return If(n)(this)}toPromise(n){return n=wf(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function wf(e){var t;return(t=e??et.Promise)!==null&&t!==void 0?t:Promise}function zy(e){return e&&W(e.next)&&W(e.error)&&W(e.complete)}function Gy(e){return e&&e instanceof mn||zy(e)&&_i(e)}function Wy(e){return W(e?.lift)}function Ee(e){return t=>{if(Wy(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ye(e,t,n,r,o){return new yc(e,t,n,r,o)}var yc=class extends mn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var _f=Ii(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var gt=(()=>{class e extends Y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ni(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new _f}next(n){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?fc:(this.currentObservers=null,i.push(n),new me(()=>{this.currentObservers=null,pn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new Y;return n.source=this,n}}return e.create=(t,n)=>new Ni(t,n),e})(),Ni=class extends gt{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:fc}};var Xr=class extends gt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Jr={now(){return(Jr.delegate||Date).now()},delegate:void 0};var eo=class extends gt{constructor(t=1/0,n=1/0,r=Jr){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Ci=class extends me{constructor(t,n){super()}schedule(t,n=0){return this}};var to={setInterval(e,t,...n){let{delegate:r}=to;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=to;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Mi=class extends Ci{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return to.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&to.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,pn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var tr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};tr.now=Jr.now;var Ai=class extends tr{constructor(t,n=tr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Ri=class extends Mi{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}};var Fi=class extends Ai{};var Dc=new Fi(Ri);var xf=new Y(e=>e.complete());function Tf(e){return e&&W(e.schedule)}function Sf(e){return e[e.length-1]}function Bt(e){return Tf(Sf(e))?e.pop():void 0}function Nf(e,t){return typeof Sf(e)=="number"?e.pop():t}var Ec=function(e,t){return Ec=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ec(e,t)};function he(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ec(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var g=function(){return g=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},g.apply(this,arguments)};function Le(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function je(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function tt(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Cf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ge(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function gn(e){return this instanceof gn?(this.v=e,this):new gn(e)}function Mf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(p){return function(m){return Promise.resolve(m).then(p,d)}}function a(p,m){r[p]&&(o[p]=function(v){return new Promise(function(y,h){i.push([p,v,y,h])>1||c(p,v)})},m&&(o[p]=m(o[p])))}function c(p,m){try{u(r[p](m))}catch(v){f(i[0][3],v)}}function u(p){p.value instanceof gn?Promise.resolve(p.value.v).then(l,d):f(i[0][2],p)}function l(p){c("next",p)}function d(p){c("throw",p)}function f(p,m){p(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Af(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Cf=="function"?Cf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var ki=e=>e&&typeof e.length=="number"&&typeof e!="function";function Oi(e){return W(e?.then)}function Pi(e){return W(e[It])}function Li(e){return Symbol.asyncIterator&&W(e?.[Symbol.asyncIterator])}function ji(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Qy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Vi=Qy();function Ui(e){return W(e?.[Vi])}function Bi(e){return Mf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield gn(n.read());if(o)return yield gn(void 0);yield yield gn(r)}}finally{n.releaseLock()}})}function Hi(e){return W(e?.getReader)}function Ce(e){if(e instanceof Y)return e;if(e!=null){if(Pi(e))return Yy(e);if(ki(e))return Ky(e);if(Oi(e))return Zy(e);if(Li(e))return Rf(e);if(Ui(e))return Xy(e);if(Hi(e))return Jy(e)}throw ji(e)}function Yy(e){return new Y(t=>{let n=e[It]();if(W(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ky(e){return new Y(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Zy(e){return new Y(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,xi)})}function Xy(e){return new Y(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Rf(e){return new Y(t=>{eD(e,t).catch(n=>t.error(n))})}function Jy(e){return Rf(Bi(e))}function eD(e,t){var n,r,o,i;return je(this,void 0,void 0,function*(){try{for(n=Af(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Ke(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function vn(e,t=0){return Ee((n,r)=>{n.subscribe(Ye(r,o=>Ke(r,e,()=>r.next(o),t),()=>Ke(r,e,()=>r.complete(),t),o=>Ke(r,e,()=>r.error(o),t)))})}function $i(e,t=0){return Ee((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ff(e,t){return Ce(e).pipe($i(t),vn(t))}function kf(e,t){return Ce(e).pipe($i(t),vn(t))}function Of(e,t){return new Y(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Pf(e,t){return new Y(n=>{let r;return Ke(n,t,()=>{r=e[Vi](),Ke(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>W(r?.return)&&r.return()})}function qi(e,t){if(!e)throw new Error("Iterable cannot be null");return new Y(n=>{Ke(n,t,()=>{let r=e[Symbol.asyncIterator]();Ke(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Lf(e,t){return qi(Bi(e),t)}function jf(e,t){if(e!=null){if(Pi(e))return Ff(e,t);if(ki(e))return Of(e,t);if(Oi(e))return kf(e,t);if(Li(e))return qi(e,t);if(Ui(e))return Pf(e,t);if(Hi(e))return Lf(e,t)}throw ji(e)}function nt(e,t){return t?jf(e,t):Ce(e)}function zi(...e){let t=Bt(e);return nt(e,t)}function Ve(e,t){return Ee((n,r)=>{let o=0;n.subscribe(Ye(r,i=>{r.next(e.call(t,i,o++))}))})}function Vf(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},p=v=>u<r?m(v):c.push(v),m=v=>{i&&t.next(v),u++;let y=!1;Ce(n(v,l++)).subscribe(Ye(t,h=>{o?.(h),i?p(h):t.next(h)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;c.length&&u<r;){let h=c.shift();s?Ke(t,s,()=>m(h)):m(h)}f()}catch(h){t.error(h)}}))};return e.subscribe(Ye(t,p,()=>{d=!0,f()})),()=>{a?.()}}function nr(e,t,n=1/0){return W(t)?nr((r,o)=>Ve((i,s)=>t(r,i,o,s))(Ce(e(r,o))),n):(typeof t=="number"&&(n=t),Ee((r,o)=>Vf(r,o,e,n)))}function Gi(e=1/0){return nr(Si,e)}function Uf(){return Gi(1)}function bc(...e){return Uf()(nt(e,Bt(e)))}function Ic(...e){let t=Bt(e),n=Nf(e,1/0),r=e;return r.length?r.length===1?Ce(r[0]):Gi(n)(nt(r,t)):xf}function wc(e,t){return Ee((n,r)=>{let o=0;n.subscribe(Ye(r,i=>e.call(t,i,o++)&&r.next(i)))})}function _c(e,t){return W(t)?nr(e,t,1):nr(e,1)}function Wi(e){return Ee((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function xc(...e){let t=Bt(e);return Ee((n,r)=>{(t?bc(e,n,t):bc(e,n)).subscribe(r)})}function no(e,t){return Ee((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Ye(r,c=>{o?.unsubscribe();let u=0,l=i++;Ce(e(c,l)).subscribe(o=Ye(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var Tc;function Qi(){return Tc}function vt(e){let t=Tc;return Tc=e,t}var Bf=Symbol("NotFound");function rr(e){return e===Bf||e?.name==="\u0275NotFound"}var L=class extends Error{code;constructor(t,n){super(es(t,n)),this.code=t}};function sD(e){return`NG0${Math.abs(e)}`}function es(e,t){return`${sD(e)}${t?": "+t:""}`}var ot=globalThis;function Z(e){for(let t in e)if(e[t]===Z)return t;throw Error("")}function Ht(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ht).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
`);return r>=0?n.slice(0,r):n}function Hc(e,t){return e?t?`${e} ${t}`:e:t||""}var aD=Z({__forward_ref__:Z});function ts(e){return e.__forward_ref__=ts,e.toString=function(){return Ht(this())},e}function Be(e){return Gf(e)?e():e}function Gf(e){return typeof e=="function"&&e.hasOwnProperty(aD)&&e.__forward_ref__===ts}function V(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function _e(e){return{providers:e.providers||[],imports:e.imports||[]}}function ns(e){return cD(e,rs)}function cD(e,t){return e.hasOwnProperty(t)&&e[t]||null}function uD(e){let t=e?.[rs]??null;return t||null}function Nc(e){return e&&e.hasOwnProperty(Ki)?e[Ki]:null}var rs=Z({\u0275prov:Z}),Ki=Z({\u0275inj:Z}),P=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=V({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function $c(e){return e&&!!e.\u0275providers}var qc=Z({\u0275cmp:Z}),zc=Z({\u0275dir:Z}),Gc=Z({\u0275pipe:Z}),Wc=Z({\u0275mod:Z}),Cc=Z({\u0275fac:Z}),bn=Z({__NG_ELEMENT_ID__:Z}),Hf=Z({__NG_ENV_ID__:Z});function Wf(e){return os(e,"@NgModule"),e[Wc]||null}function ao(e){return os(e,"@Component"),e[qc]||null}function Qc(e){return os(e,"@Directive"),e[zc]||null}function Qf(e){return os(e,"@Pipe"),e[Gc]||null}function os(e,t){if(e==null)throw new L(-919,!1)}var Yf=Z({ngErrorCode:Z}),lD=Z({ngErrorMessage:Z}),dD=Z({ngTokenPath:Z});function Yc(e,t){return Kf("",-200,t)}function is(e,t){throw new L(-201,!1)}function Kf(e,t,n){let r=new L(t,e);return r[Yf]=t,r[lD]=e,n&&(r[dD]=n),r}function fD(e){return e[Yf]}var Mc;function Zf(){return Mc}function Ue(e){let t=Mc;return Mc=e,t}function Kc(e,t,n){let r=ns(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;is(e,"")}var pD={},yn=pD,hD="__NG_DI_FLAG__",Ac=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Dn(n)||0;try{return this.injector.get(t,r&8?null:yn,r)}catch(o){if(rr(o))return o;throw o}}};function mD(e,t=0){let n=Qi();if(n===void 0)throw new L(-203,!1);if(n===null)return Kc(e,void 0,t);{let r=gD(t),o=n.retrieve(e,r);if(rr(o)){if(r.optional)return null;throw o}return o}}function F(e,t=0){return(Zf()||mD)(Be(e),t)}function O(e,t){return F(e,Dn(t))}function Dn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function gD(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Rc(e){let t=[];for(let n=0;n<e.length;n++){let r=Be(e[n]);if(Array.isArray(r)){if(r.length===0)throw new L(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=vD(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(F(o,i))}else t.push(F(r))}return t}function vD(e){return e[hD]}function ir(e,t){let n=e.hasOwnProperty(Cc);return n?e[Cc]:null}function ss(e,t){e.forEach(n=>Array.isArray(n)?ss(n,t):t(n))}function Xf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Zc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jf(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}var In={},rt=[],co=new P(""),Xc=new P("",-1),Jc=new P(""),oo=class{get(t,n=yn){if(n===yn){let o=Kf("",-201);throw o.name="\u0275NotFound",o}return n}};function as(e){return{\u0275providers:e}}function ep(...e){return{\u0275providers:eu(!0,e),\u0275fromNgModule:!0}}function eu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ss(t,s=>{let a=s;Zi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&tp(o,i),n}function tp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];tu(o,i=>{t(i,r)})}}function Zi(e,t,n,r){if(e=Be(e),!e)return!1;let o=null,i=Nc(e),s=!i&&ao(e);if(!i&&!s){let c=e.ngModule;if(i=Nc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Zi(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;ss(i.imports,l=>{Zi(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&tp(u,t)}if(!a){let u=ir(o)||(()=>new o);t({provide:o,useFactory:u,deps:rt},o),t({provide:Jc,useValue:o,multi:!0},o),t({provide:co,useValue:()=>F(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;tu(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function tu(e,t){for(let n of e)$c(n)&&(n=n.\u0275providers),Array.isArray(n)?tu(n,t):t(n)}var yD=Z({provide:String,useValue:Z});function np(e){return e!==null&&typeof e=="object"&&yD in e}function DD(e){return!!(e&&e.useExisting)}function ED(e){return!!(e&&e.useFactory)}function Xi(e){return typeof e=="function"}var uo=new P(""),Yi={},$f={},Sc;function lo(){return Sc===void 0&&(Sc=new oo),Sc}var Me=class{},En=class extends Me{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,kc(t,s=>this.processProvider(s)),this.records.set(Xc,or(void 0,this)),o.has("environment")&&this.records.set(Me,or(void 0,this));let i=this.records.get(uo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Jc,rt,{self:!0}))}retrieve(t,n){let r=Dn(n)||0;try{return this.get(t,yn,r)}catch(o){if(rr(o))return o;throw o}}destroy(){ro(this),this._destroyed=!0;let t=G(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),G(t)}}onDestroy(t){return ro(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ro(this);let n=vt(this),r=Ue(void 0),o;try{return t()}finally{vt(n),Ue(r)}}get(t,n=yn,r){if(ro(this),t.hasOwnProperty(Hf))return t[Hf](this);let o=Dn(r),i,s=vt(this),a=Ue(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=xD(t)&&ns(t);l&&this.injectableDefInScope(l)?u=or(Fc(t),Yi):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?lo():this.parent;return n=o&8&&n===yn?null:n,c.get(t,n)}catch(c){let u=fD(c);throw u===-200||u===-201?new L(u,null):c}finally{Ue(a),vt(s)}}resolveInjectorInitializers(){let t=G(null),n=vt(this),r=Ue(void 0),o;try{let i=this.get(co,rt,{self:!0});for(let s of i)s()}finally{vt(n),Ue(r),G(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ht(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Be(t);let n=Xi(t)?t:Be(t&&t.provide),r=ID(t);if(!Xi(t)&&t.multi===!0){let o=this.records.get(n);o||(o=or(void 0,Yi,!0),o.factory=()=>Rc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=G(null);try{if(n.value===$f)throw Yc(Ht(t));return n.value===Yi&&(n.value=$f,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&_D(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{G(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Be(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Fc(e){let t=ns(e),n=t!==null?t.factory:ir(e);if(n!==null)return n;if(e instanceof P)throw new L(204,!1);if(e instanceof Function)return bD(e);throw new L(204,!1)}function bD(e){if(e.length>0)throw new L(204,!1);let n=uD(e);return n!==null?()=>n.factory(e):()=>new e}function ID(e){if(np(e))return or(void 0,e.useValue);{let t=rp(e);return or(t,Yi)}}function rp(e,t,n){let r;if(Xi(e)){let o=Be(e);return ir(o)||Fc(o)}else if(np(e))r=()=>Be(e.useValue);else if(ED(e))r=()=>e.useFactory(...Rc(e.deps||[]));else if(DD(e))r=(o,i)=>F(Be(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Be(e&&(e.useClass||e.provide));if(wD(e))r=()=>new o(...Rc(e.deps));else return ir(o)||Fc(o)}return r}function ro(e){if(e.destroyed)throw new L(205,!1)}function or(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wD(e){return!!e.deps}function _D(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xD(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function kc(e,t){for(let n of e)Array.isArray(n)?kc(n,t):n&&$c(n)?kc(n.\u0275providers,t):t(n)}function sr(e,t){let n;e instanceof En?(ro(e),n=e):n=new Ac(e);let r,o=vt(n),i=Ue(void 0);try{return t()}finally{vt(o),Ue(i)}}function nu(){return Zf()!==void 0||Qi()!=null}var it=0,q=1,j=2,Ae=3,Ze=4,Re=5,ar=6,cs=7,$e=8,wn=9,St=10,qe=11,cr=12,ru=13,ur=14,ze=15,_n=16,xn=17,Tn=18,qt=19,ou=20,_t=21,us=22,fo=23,Ge=24,ls=25,po=26,Fe=27,op=1;var lr=7,ip=8,ho=9,We=10;function Nt(e){return Array.isArray(e)&&typeof e[op]=="object"}function Ct(e){return Array.isArray(e)&&e[op]===!0}function iu(e){return(e.flags&4)!==0}function mo(e){return e.componentOffset>-1}function su(e){return(e.flags&1)===1}function Sn(e){return!!e.template}function dr(e){return(e[j]&512)!==0}function Nn(e){return(e[j]&256)===256}var sp="svg",ap="math";function Mt(e){for(;Array.isArray(e);)e=e[it];return e}function Cn(e,t){return Mt(t[e.index])}function au(e,t){return e.data[t]}function zt(e,t){let n=t[e];return Nt(n)?n:n[it]}function ds(e){return(e[j]&128)===128}function fs(e,t){return t==null?null:e[t]}function cu(e){e[xn]=0}function ps(e){e[j]&1024||(e[j]|=1024,ds(e)&&go(e))}function fr(e){return!!(e[j]&9216||e[Ge]?.dirty)}function hs(e){e[St].changeDetectionScheduler?.notify(8),e[j]&64&&(e[j]|=1024),fr(e)&&go(e)}function go(e){e[St].changeDetectionScheduler?.notify(0);let t=$t(e);for(;t!==null&&!(t[j]&8192||(t[j]|=8192,!ds(t)));)t=$t(t)}function uu(e,t){if(Nn(e))throw new L(911,!1);e[_t]===null&&(e[_t]=[]),e[_t].push(t)}function cp(e,t){if(e[_t]===null)return;let n=e[_t].indexOf(t);n!==-1&&e[_t].splice(n,1)}function $t(e){let t=e[Ae];return Ct(t)?t[Ae]:t}var ie={lFrame:yp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Oc=!1;function up(){return ie.lFrame.elementDepthCount}function lp(){ie.lFrame.elementDepthCount++}function dp(){return ie.bindingsEnabled}function lu(){return ie.skipHydrationRootTNode!==null}function At(){return ie.lFrame.lView}function du(){return ie.lFrame.tView}function pr(){let e=fu();for(;e!==null&&e.type===64;)e=e.parent;return e}function fu(){return ie.lFrame.currentTNode}function fp(){let e=ie.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vo(e,t){let n=ie.lFrame;n.currentTNode=e,n.isParent=t}function pu(){return ie.lFrame.isParent}function hu(){ie.lFrame.isParent=!1}function mu(){return Oc}function gu(e){let t=Oc;return Oc=e,t}function pp(e){return ie.lFrame.bindingIndex=e}function hp(){return ie.lFrame.inI18n}function mp(e,t){let n=ie.lFrame;n.bindingIndex=n.bindingRootIndex=e,ms(t)}function gp(){return ie.lFrame.currentDirectiveIndex}function ms(e){ie.lFrame.currentDirectiveIndex=e}function vu(e){ie.lFrame.currentQueryIndex=e}function TD(e){let t=e[q];return t.type===2?t.declTNode:t.type===1?e[Re]:null}function yu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=TD(i),o===null||(i=i[ur],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=ie.lFrame=vp();return r.currentTNode=t,r.lView=e,!0}function gs(e){let t=vp(),n=e[q];ie.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function vp(){let e=ie.lFrame,t=e===null?null:e.child;return t===null?yp(e):t}function yp(e){let 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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Dp(){let e=ie.lFrame;return ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Du=Dp;function vs(){let e=Dp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ep(){return ie.lFrame.selectedIndex}function Gt(e){ie.lFrame.selectedIndex=e}var bp=!0;function Eu(){return bp}function bu(e){bp=e}function Pc(e,t=null,n=null,r){let o=Iu(e,t,n,r);return o.resolveInjectorInitializers(),o}function Iu(e,t=null,n=null,r,o=new Set){let i=[n||rt,ep(e)];return r=r||(typeof e=="object"?void 0:Ht(e)),new En(i,t||lo(),r||null,o)}var He=class e{static THROW_IF_NOT_FOUND=yn;static NULL=new oo;static create(t,n){if(Array.isArray(t))return Pc({name:""},n,t,"");{let r=t.name??"";return Pc({name:r},t.parent,t.providers,r)}}static \u0275prov=V({token:e,providedIn:"any",factory:()=>F(Xc)});static __NG_ELEMENT_ID__=-1},xe=new P(""),hr=(()=>{class e{static __NG_ELEMENT_ID__=SD;static __NG_ENV_ID__=n=>n}return e})(),Lc=class extends hr{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Nn(this._lView)}onDestroy(t){let n=this._lView;return uu(n,t),()=>cp(n,t)}};function SD(){return new Lc(At())}var Ip=!1,wp=new P(""),Mn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Xr(!1);debugTaskTracker=O(wp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Y(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=V({token:e,providedIn:"root",factory:()=>new e})}return e})(),jc=class extends gt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,nu()&&(this.destroyRef=O(hr,{optional:!0})??void 0,this.pendingTasks=O(Mn,{optional:!0})??void 0)}emit(t){let n=G(null);try{super.next(t)}finally{G(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof me&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},wt=jc;function Ji(...e){}function wu(e){let t,n;function r(){e=Ji;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch(o){}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function _p(e){return queueMicrotask(()=>e()),()=>{e=Ji}}var _u="isAngularZone",io=_u+"_ID",ND=0,fe=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new wt(!1);onMicrotaskEmpty=new wt(!1);onStable=new wt(!1);onError=new wt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ip}=t;if(typeof Zone>"u")throw new L(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,AD(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(_u)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new L(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new L(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,CD,Ji,Ji);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},CD={};function xu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function MD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){wu(()=>{e.callbackScheduled=!1,Vc(e),e.isCheckStableRunning=!0,xu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Vc(e)}function AD(e){let t=()=>{MD(e)},n=ND++;e._inner=e._inner.fork({name:"angular",properties:{[_u]:!0,[io]:n,[io+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(RD(c))return r.invokeTask(i,s,a,c);try{return qf(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),zf(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return qf(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!FD(c)&&t(),zf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Vc(e),xu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Vc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function qf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zf(e){e._nesting--,xu(e)}var so=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new wt;onMicrotaskEmpty=new wt;onStable=new wt;onError=new wt;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function RD(e){return xp(e,"__ignore_ng_zone__")}function FD(e){return xp(e,"__scheduler_tick__")}function xp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var xt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},mr=new P("",{factory:()=>{let e=O(fe),t=O(Me),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(xt),n.handleError(r))})}}}),Tp={provide:co,useValue:()=>{let e=O(xt,{optional:!0})},multi:!0};var Tt=class{},yo=new P("",{factory:()=>!0});var Tu=new P(""),Do=(()=>{class e{internalPendingTasks=O(Mn);scheduler=O(Tt);errorHandler=O(mr);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=V({token:e,providedIn:"root",factory:()=>new e})}return e})(),Su=(()=>{class e{static \u0275prov=V({token:e,providedIn:"root",factory:()=>new Uc})}return e})(),Uc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Bc=class{[fn];constructor(t){this[fn]=t}destroy(){this[fn].destroy()}};function zu(e){return{toString:e}.toString()}function Gp(e){let t=ot.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Wp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Is=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},Ms=(()=>{let e=()=>Qp;return e.ngInherit=!0,e})();function Qp(e){return e.type.prototype.ngOnChanges&&(e.setInput=KD),YD}function YD(){let e=Kp(this),t=e?.current;if(t){let n=e.previous;if(n===In)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function KD(e,t,n,r,o){let i=this.declaredInputs[r],s=Kp(e)||ZD(e,{previous:In,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Is(u&&u.currentValue,n,c===In),Wp(e,t,o,n)}var Yp="__ngSimpleChanges__";function Kp(e){return e[Yp]||null}function ZD(e,t){return e[Yp]=t}var Sp=[];var se=function(e,t=null,n){for(let r=0;r<Sp.length;r++){let o=Sp[r];o(e,t,n)}},re=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(re||{});function XD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Qp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function JD(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Ds(e,t,n){Zp(e,t,3,n)}function Es(e,t,n,r){(e[j]&3)===n&&Zp(e,t,n,r)}function Nu(e,t){let n=e[j];(n&3)===t&&(n&=16383,n+=1,e[j]=n)}function Zp(e,t,n,r){let o=r!==void 0?e[xn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[xn]+=65536),(a<i||i==-1)&&(eE(e,n,t,c),e[xn]=(e[xn]&4294901760)+c+2),c++}function Np(e,t){se(re.LifecycleHookStart,e,t);let n=G(null);try{t.call(e)}finally{G(n),se(re.LifecycleHookEnd,e,t)}}function eE(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[j]>>14<e[xn]>>16&&(e[j]&3)===t&&(e[j]+=16384,Np(a,i)):Np(a,i)}var vr=-1,Io=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function tE(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];rE(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function nE(e){return e===3||e===4||e===6}function rE(e){return e.charCodeAt(0)===64}function Gu(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Cp(e,n,o,null,t[++r]):Cp(e,n,o,null,null))}}return e}function Cp(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function oE(e){return e!==vr}function Au(e){return e&32767}function iE(e){return e>>16}function Ru(e,t){let n=iE(e),r=t;for(;n>0;)r=r[ur],n--;return r}var Fu=!0;function Mp(e){let t=Fu;return Fu=e,t}var sE=256,Xp=sE-1,Jp=5,aE=0,yt={};function cE(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(bn)&&(r=n[bn]),r==null&&(r=n[bn]=aE++);let o=r&Xp,i=1<<o;t.data[e+(o>>Jp)]|=i}function eh(e,t){let n=th(e,t);if(n!==-1)return n;let r=t[q];r.firstCreatePass&&(e.injectorIndex=t.length,Cu(r.data,e),Cu(t,null),Cu(r.blueprint,null));let o=nh(e,t),i=e.injectorIndex;if(oE(o)){let s=Au(o),a=Ru(o,t),c=a[q].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Cu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function th(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function nh(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=ah(o),r===null)return vr;if(n++,o=o[ur],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return vr}function uE(e,t,n){cE(e,t,n)}function rh(e,t,n){if(n&8||e!==void 0)return e;is(t,"NodeInjector")}function oh(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[wn],i=Ue(void 0);try{return o?o.get(t,r,n&8):Kc(t,r,n&8)}finally{Ue(i)}}return rh(r,t,n)}function ih(e,t,n,r=0,o){if(e!==null){if(t[j]&2048&&!(r&2)){let s=hE(e,t,n,r,yt);if(s!==yt)return s}let i=sh(e,t,n,r,yt);if(i!==yt)return i}return oh(t,n,r,o)}function sh(e,t,n,r,o){let i=fE(n);if(typeof i=="function"){if(!yu(t,e,r))return r&1?rh(o,n,r):oh(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))is(n);else return s}finally{Du()}}else if(typeof i=="number"){let s=null,a=th(e,t),c=vr,u=r&1?t[ze][Re]:null;for((a===-1||r&4)&&(c=a===-1?nh(e,t):t[a+8],c===vr||!Rp(r,!1)?a=-1:(s=t[q],a=Au(c),t=Ru(c,t)));a!==-1;){let l=t[q];if(Ap(i,a,l.data)){let d=lE(a,t,n,s,r,u);if(d!==yt)return d}c=t[a+8],c!==vr&&Rp(r,t[q].data[a+8]===u)&&Ap(i,a,t)?(s=l,a=Au(c),t=Ru(c,t)):a=-1}}return o}function lE(e,t,n,r,o,i){let s=t[q],a=s.data[e+8],c=r==null?mo(a)&&Fu:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=dE(a,s,n,c,u);return l!==null?ku(t,s,l,a,o):yt}function dE(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let p=d;p<f;p++){let m=s[p];if(p<c&&n===m||p>=c&&m.type===n)return p}if(o){let p=s[c];if(p&&Sn(p)&&p.type===n)return c}return null}function ku(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Io){let a=i;if(a.resolving)throw Yc("");let c=Mp(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Ue(a.injectImpl):null,f=yu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&XD(n,s[n],t)}finally{d!==null&&Ue(d),Mp(c),a.resolving=!1,Du()}}return i}function fE(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(bn)?e[bn]:void 0;return typeof t=="number"?t>=0?t&Xp:pE:t}function Ap(e,t,n){let r=1<<e;return!!(n[t+(e>>Jp)]&r)}function Rp(e,t){return!(e&2)&&!(e&1&&t)}var ws=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ih(this._tNode,this._lView,t,Dn(r),n)}};function pE(){return new ws(pr(),At())}function hE(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[j]&2048&&!dr(s);){let a=sh(i,s,n,r|2,yt);if(a!==yt)return a;let c=i.parent;if(!c){let u=s[ou];if(u){let l=u.get(n,yt,r);if(l!==yt)return l}c=ah(s),s=s[ur]}i=c}return o}function ah(e){let t=e[q],n=t.type;return n===2?t.declTNode:n===1?e[Re]:null}function mE(){return ch(pr(),At())}function ch(e,t){return new xo(Cn(e,t))}var xo=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=mE}return e})();function uh(e){return(e.flags&128)===128}var Wu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Wu||{}),lh=new Map,gE=0;function vE(){return gE++}function yE(e){lh.set(e[qt],e)}function Ou(e){lh.delete(e[qt])}var Fp="__ngContext__";function yr(e,t){Nt(t)?(e[Fp]=t[qt],yE(t)):e[Fp]=t}function dh(e){return ph(e[cr])}function fh(e){return ph(e[Ze])}function ph(e){for(;e!==null&&!Ct(e);)e=e[Ze];return e}var DE;function Qu(e){DE=e}var As=new P("",{factory:()=>EE}),EE="ng";var Rs=new P(""),To=new P("",{providedIn:"platform",factory:()=>"unknown"});var Fs=new P("",{factory:()=>O(xe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var hh=!1,mh=new P("",{factory:()=>hh});function ks(e){return(e.flags&32)===32}var bE=()=>null;function gh(e,t,n=!1){return bE(e,t,n)}function vh(e,t){let n=e.contentQueries;if(n!==null){let r=G(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];vu(i),a.contentQueries(2,t[s],s)}}}finally{G(r)}}}function Pu(e,t,n){vu(0);let r=G(null);try{t(e,n)}finally{G(r)}}function yh(e,t,n){if(iu(t)){let r=G(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{G(r)}}}var at=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(at||{});var IE=/^>|^->|<!--|-->|--!>|<!-$/g,wE=/(<|>)/g,_E="\u200B$1\u200B";function xE(e){return e.replace(IE,t=>t.replace(wE,_E))}function TE(e,t){return e.createComment(xE(t))}function SE(e,t,n){return e.createElement(t,n)}function Lu(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Dh(e,t,n){e.appendChild(t,n)}function kp(e,t,n,r,o){r!==null?Lu(e,t,n,r,o):Dh(e,t,n)}function NE(e,t,n,r){e.removeChild(null,t,n,r)}function CE(e,t,n){e.setAttribute(t,"style",n)}function ME(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Eh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&tE(e,t,r),o!==null&&ME(e,t,o),i!==null&&CE(e,t,i)}function AE(e){return e instanceof Function?e():e}function RE(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var bh="ng-template";function FE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&RE(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Yu(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Yu(e){return e.type===4&&e.value!==bh}function kE(e,t,n){let r=e.type===4&&!n?bh:e.value;return t===r}function OE(e,t,n){let r=4,o=e.attrs,i=o!==null?jE(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!st(r)&&!st(c))return!1;if(s&&st(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!kE(e,c,n)||c===""&&t.length===1){if(st(r))return!1;s=!0}}else if(r&8){if(o===null||!FE(e,o,c,n)){if(st(r))return!1;s=!0}}else{let u=t[++a],l=PE(c,o,Yu(e),n);if(l===-1){if(st(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(st(r))return!1;s=!0}}}}return st(r)||s}function st(e){return(e&1)===0}function PE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return VE(t,e)}function Ih(e,t,n=!1){for(let r=0;r<t.length;r++)if(OE(e,t[r],n))return!0;return!1}function LE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function jE(e){for(let t=0;t<e.length;t++){let n=e[t];if(nE(n))return t}return e.length}function VE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function UE(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function Op(e,t){return e?":not("+t.trim()+")":t}function BE(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!st(s)&&(t+=Op(i,o),o=""),r=s,i=i||!st(r);n++}return o!==""&&(t+=Op(i,o)),t}function HE(e){return e.map(BE).join(",")}function $E(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!st(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Ku={};function Zu(e,t,n,r,o,i,s,a,c,u,l){let d=Fe+r,f=d+o,p=qE(d,f),m=typeof u=="function"?u():u;return p[q]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:l}}function qE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ku);return n}function zE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Zu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Xu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[it]=o,d[j]=r|4|128|8|64|1024,(u!==null||e&&e[j]&2048)&&(d[j]|=2048),cu(d),d[Ae]=d[ur]=e,d[$e]=n,d[St]=s||e&&e[St],d[qe]=a||e&&e[qe],d[wn]=c||e&&e[wn]||null,d[Re]=i,d[qt]=vE(),d[ar]=l,d[ou]=u,d[ze]=t.type==2?e[ze]:d,d}function GE(e,t,n){let r=Cn(t,e),o=zE(n),i=e[St].rendererFactory,s=xh(e,Xu(e,o,null,wh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function wh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function _h(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function xh(e,t){return e[cr]?e[ru][Ze]=t:e[cr]=t,e[ru]=t,t}function WE(e,t,n,r){if(!r)if((t[j]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ds(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Es(t,i,0,n)}Gt(n)}var Os=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Os||{});function ju(e,t,n,r){let o=G(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Os.SignalBased)!==0&&(c=t[i][fn]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Wp(t,c,i,r)}finally{G(o)}}var Rn=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Rn||{}),QE;function Ju(e,t){return QE(e,t)}var Dr=new Set,el=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(el||{}),Fn=new P(""),Pp=new Set;function Th(e){Pp.has(e)||(Pp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Sh=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=V({token:e,providedIn:"root",factory:()=>new e})}return e})();var Nh=new P("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:O(Me)})});function Ch(e,t,n){let r=e.get(Nh);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function YE(e,t){for(let[n,r]of t)Ch(e,r.animateFns)}function KE(e,t){let n=e.get(Nh);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function Lp(e,t,n,r){let o=e?.[po]?.enter;t!==null&&o&&o.has(n.index)&&YE(r,o)}function gr(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;Ct(o)?c=o:Nt(o)&&(u=!0,o=o[it]);let l=Mt(o);e===0&&r!==null?(Lp(a,r,i,n),s==null?Dh(t,r,l):Lu(t,r,l,s||null,!0)):e===1&&r!==null?(Lp(a,r,i,n),Lu(t,r,l,s||null,!0)):e===2?jp(a,i,n,d=>{NE(t,l,u,d)}):e===3&&jp(a,i,n,()=>{t.destroyNode(l)}),c!=null&&cb(t,e,n,c,i,r,s)}}function ZE(e,t){Mh(e,t),t[it]=null,t[Re]=null}function XE(e,t,n,r,o,i){r[it]=o,r[Re]=t,Ps(e,r,n,1,o,i)}function Mh(e,t){t[St].changeDetectionScheduler?.notify(9),Ps(e,t,t[qe],2,null,null)}function JE(e){let t=e[cr];if(!t)return Mu(e[q],e);for(;t;){let n=null;if(Nt(t))n=t[cr];else{let r=t[We];r&&(n=r)}if(!n){for(;t&&!t[Ze]&&t!==e;)Nt(t)&&Mu(t[q],t),t=t[Ae];t===null&&(t=e),Nt(t)&&Mu(t[q],t),n=t&&t[Ze]}t=n}}function tl(e,t){let n=e[ho],r=n.indexOf(t);n.splice(r,1)}function eb(e,t){if(Nn(t))return;let n=t[qe];n.destroyNode&&Ps(e,t,n,3,null,null),JE(t)}function Mu(e,t){if(Nn(t))return;let n=G(null);try{t[j]&=-129,t[j]|=256,t[Ge]&&Ei(t[Ge]),rb(e,t),nb(e,t),t[q].type===1&&t[qe].destroy();let r=t[_n];if(r!==null&&Ct(t[Ae])){r!==t[Ae]&&tl(r,t);let o=t[Tn];o!==null&&o.detachView(e)}Ou(t)}finally{G(n)}}function jp(e,t,n,r){let o=e?.[po];if(o?.enter?.has(t.index)&&KE(n,o.enter.get(t.index).animateFns),o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&Dr.add(e[qt]),Ch(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),tb(e,r)}else e&&Dr.delete(e[qt]),r(!1)},o)}function tb(e,t){let n=e[po]?.running;if(n){n.then(()=>{e[po].running=void 0,Dr.delete(e[qt]),t(!0)});return}t(!1)}function nb(e,t){let n=e.cleanup,r=t[cs];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[cs]=null);let o=t[_t];if(o!==null){t[_t]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[fo];if(i!==null){t[fo]=null;for(let s of i)s.destroy()}}function rb(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Io)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];se(re.LifecycleHookStart,a,c);try{c.call(a)}finally{se(re.LifecycleHookEnd,a,c)}}else{se(re.LifecycleHookStart,o,i);try{i.call(o)}finally{se(re.LifecycleHookEnd,o,i)}}}}}function Ah(e,t,n){return ob(e,t.parent,n)}function ob(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[it];if(mo(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===at.None||o===at.Emulated)return null}return Cn(r,n)}function Rh(e,t,n){return sb(e,t,n)}function ib(e,t,n){return e.type&40?Cn(e,n):null}var sb=ib,Vp;function Fh(e,t,n,r){let o=Ah(e,r,t),i=t[qe],s=r.parent||t[Re],a=Rh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)kp(i,o,n[c],a,!1);else kp(i,o,n,a,!1);Vp!==void 0&&Vp(i,r,t,n,o)}function Eo(e,t){if(t!==null){let n=t.type;if(n&3)return Cn(t,e);if(n&4)return Vu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Eo(e,r);{let o=e[t.index];return Ct(o)?Vu(-1,o):Mt(o)}}else{if(n&128)return Eo(e,t.next);if(n&32)return Ju(t,e)()||Mt(e[t.index]);{let r=kh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=$t(e[ze]);return Eo(o,r)}else return Eo(e,t.next)}}}return null}function kh(e,t){if(t!==null){let r=e[ze][Re],o=t.projection;return r.projection[o]}return null}function Vu(e,t){let n=We+e+1;if(n<t.length){let r=t[n],o=r[q].firstChild;if(o!==null)return Eo(r,o)}return t[lr]}function nl(e,t,n,r,o,i,s){for(;n!=null;){let a=r[wn];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&yr(Mt(c),r),n.flags|=2),!ks(n))if(u&8)nl(e,t,n.child,r,o,i,!1),gr(t,e,a,o,c,n,i,r);else if(u&32){let l=Ju(n,r),d;for(;d=l();)gr(t,e,a,o,d,n,i,r);gr(t,e,a,o,c,n,i,r)}else u&16?Oh(e,t,r,n,o,i):gr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Ps(e,t,n,r,o,i){nl(n,r,e.firstChild,t,o,i,!1)}function ab(e,t,n){let r=t[qe],o=Ah(e,n,t),i=n.parent||t[Re],s=Rh(i,n,t);Oh(r,0,t,n,o,s)}function Oh(e,t,n,r,o,i){let s=n[ze],c=s[Re].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];gr(t,e,n[wn],o,l,r,i,n)}else{let u=c,l=s[Ae];uh(r)&&(u.flags|=128),nl(e,t,u,l,o,i,!0)}}function cb(e,t,n,r,o,i,s){let a=r[lr],c=Mt(r);a!==c&&gr(t,e,n,i,a,o,s);for(let u=We;u<r.length;u++){let l=r[u];Ps(l[q],l,e,t,i,a)}}function Ph(e,t,n,r,o){let i=Ep(),s=r&2;try{Gt(-1),s&&t.length>Fe&&WE(e,t,Fe,!1);let a=s?re.TemplateUpdateStart:re.TemplateCreateStart;se(a,o,n),n(r,o)}finally{Gt(i);let a=s?re.TemplateUpdateEnd:re.TemplateCreateEnd;se(a,o,n)}}function Lh(e,t,n){fb(e,t,n),(n.flags&64)===64&&pb(e,t,n)}function jh(e,t,n=Cn){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function ub(e,t,n,r){let i=r.get(mh,hh)||n===at.ShadowDom||n===at.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return lb(s),s}function lb(e){db(e)}var db=()=>null;function fb(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mo(n)&&GE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||eh(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ku(t,e,s,n);if(yr(c,t),i!==null&&gb(t,s-r,c,a,n,i),Sn(a)){let u=zt(n.index,t);u[$e]=ku(t,e,s,n)}}}function pb(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=gp();try{Gt(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];ms(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&hb(c,u)}}finally{Gt(-1),ms(s)}}function hb(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function mb(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Ih(t,i.selectors,!1)&&(r??=[],Sn(i)?r.unshift(i):r.push(i))}return r}function gb(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];ju(r,n,c,u)}}function vb(e,t,n,r,o){let i=Fe+n,s=t[q],a=o(s,t,e,r,n);t[i]=a,vo(e,!0);let c=e.type===2;return c?(Eh(t[qe],a,e),(up()===0||su(e))&&yr(a,t),lp()):yr(a,t),Eu()&&(!c||!ks(e))&&Fh(s,t,a,e),e}function yb(e){let t=e;return pu()?hu():(t=t.parent,vo(t,!1)),t}function Db(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];ju(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];ju(l,u,r,o),a=!0}return a}function Eb(e,t){let n=zt(t,e),r=n[q];bb(r,n);let o=n[it];o!==null&&n[ar]===null&&(n[ar]=gh(o,n[wn])),se(re.ComponentStart);try{rl(r,n,n[$e])}finally{se(re.ComponentEnd,n[$e])}}function bb(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function rl(e,t,n){gs(t);try{let r=e.viewQuery;r!==null&&Pu(1,r,n);let o=e.template;o!==null&&Ph(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Tn]?.finishViewCreation(e),e.staticContentQueries&&vh(e,t),e.staticViewQueries&&Pu(2,e.viewQuery,n);let i=e.components;i!==null&&Ib(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[j]&=-5,vs()}}function Ib(e,t){for(let n=0;n<t.length;n++)Eb(e,t[n])}function wb(e,t,n,r){let o=G(null);try{let i=t.tView,a=e[j]&4096?4096:16,c=Xu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[_n]=u;let l=e[Tn];return l!==null&&(c[Tn]=l.createEmbeddedView(i)),rl(i,c,n),c}finally{G(o)}}function _b(e,t){return!t||t.firstChild===null||uh(e)}function wo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Mt(i)),Ct(i)&&Vh(i,r);let s=n.type;if(s&8)wo(e,t,n.child,r);else if(s&32){let a=Ju(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=kh(t,n);if(Array.isArray(a))r.push(...a);else{let c=$t(t[ze]);wo(c[q],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Vh(e,t){for(let n=We;n<e.length;n++){let r=e[n],o=r[q].firstChild;o!==null&&wo(r[q],r,o,t)}e[lr]!==e[it]&&t.push(e[lr])}function Uh(e){if(e[ls]!==null){for(let t of e[ls])t.impl.addSequence(t);e[ls].length=0}}var Bh=[];function xb(e){return e[Ge]??Tb(e)}function Tb(e){let t=Bh.pop()??Object.create(Nb);return t.lView=e,t}function Sb(e){e.lView[Ge]!==e&&(e.lView=null,Bh.push(e))}var Nb=de(R({},ac),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{go(e.lView)},consumerOnSignalRead(){this.lView[Ge]=this}});function Cb(e){let t=e[Ge]??Object.create(Mb);return t.lView=e,t}var Mb=de(R({},ac),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=$t(e.lView);for(;t&&!Hh(t[q]);)t=$t(t);t&&ps(t)},consumerOnSignalRead(){this.lView[Ge]=this}});function Hh(e){return e.type!==2}function $h(e){if(e[fo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[fo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[j]&8192)}}var Ab=100;function qh(e,t=0){let r=e[St].rendererFactory,o=!1;o||r.begin?.();try{Rb(e,t)}finally{o||r.end?.()}}function Rb(e,t){let n=mu();try{gu(!0),Uu(e,t);let r=0;for(;fr(e);){if(r===Ab)throw new L(103,!1);r++,Uu(e,1)}}finally{gu(n)}}function Fb(e,t,n,r){if(Nn(t))return;let o=t[j],i=!1,s=!1;gs(t);let a=!0,c=null,u=null;i||(Hh(e)?(u=xb(t),c=cc(u)):Di()===null?(a=!1,u=Cb(t),c=cc(u)):t[Ge]&&(Ei(t[Ge]),t[Ge]=null));try{cu(t),pp(e.bindingStartIndex),n!==null&&Ph(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let p=e.preOrderCheckHooks;p!==null&&Ds(t,p,null)}else{let p=e.preOrderHooks;p!==null&&Es(t,p,0,null),Nu(t,0)}if(s||kb(t),$h(t),zh(t,0),e.contentQueries!==null&&vh(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&Ds(t,p)}else{let p=e.contentHooks;p!==null&&Es(t,p,1),Nu(t,1)}Pb(e,t);let d=e.components;d!==null&&Wh(t,d,0);let f=e.viewQuery;if(f!==null&&Pu(2,f,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&Ds(t,p)}else{let p=e.viewHooks;p!==null&&Es(t,p,2),Nu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[us]){for(let p of t[us])p();t[us]=null}i||(Uh(t),t[j]&=-73)}catch(l){throw i||go(t),l}finally{u!==null&&(mf(u,c),a&&Sb(u)),vs()}}function zh(e,t){for(let n=dh(e);n!==null;n=fh(n))for(let r=We;r<n.length;r++){let o=n[r];Gh(o,t)}}function kb(e){for(let t=dh(e);t!==null;t=fh(t)){if(!(t[j]&2))continue;let n=t[ho];for(let r=0;r<n.length;r++){let o=n[r];ps(o)}}}function Ob(e,t,n){se(re.ComponentStart);let r=zt(t,e);try{Gh(r,n)}finally{se(re.ComponentEnd,r[$e])}}function Gh(e,t){ds(e)&&Uu(e,t)}function Uu(e,t){let r=e[q],o=e[j],i=e[Ge],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&uc(i)),s||=!1,i&&(i.dirty=!1),e[j]&=-9217,s)Fb(r,e,r.template,e[$e]);else if(o&8192){let a=G(null);try{$h(e),zh(e,1);let c=r.components;c!==null&&Wh(e,c,1),Uh(e)}finally{G(a)}}}function Wh(e,t,n){for(let r=0;r<t.length;r++)Ob(e,t[r],n)}function Pb(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Gt(~o);else{let i=o,s=n[++r],a=n[++r];mp(s,i);let c=t[i];se(re.HostBindingsUpdateStart,c);try{a(2,c)}finally{se(re.HostBindingsUpdateEnd,c)}}}}finally{Gt(-1)}}function Qh(e,t){let n=mu()?64:1088;for(e[St].changeDetectionScheduler?.notify(t);e;){e[j]|=n;let r=$t(e);if(dr(e)&&!r)return e;e=r}return null}function Lb(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function jb(e,t,n,r=!0){let o=t[q];if(Ub(o,t,e,n),r){let s=Vu(n,e),a=t[qe],c=a.parentNode(e[lr]);c!==null&&XE(o,e[Re],a,t,c,s)}let i=t[ar];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Vb(e,t){if(e.length<=We)return;let n=We+t,r=e[n];if(r){let o=r[_n];o!==null&&o!==e&&tl(o,r),t>0&&(e[n-1][Ze]=r[Ze]);let i=Zc(e,We+t);ZE(r[q],r);let s=i[Tn];s!==null&&s.detachView(i[q]),r[Ae]=null,r[Ze]=null,r[j]&=-129}return r}function Ub(e,t,n,r){let o=We+r,i=n.length;r>0&&(n[o-1][Ze]=t),r<i-We?(t[Ze]=n[o],Xf(n,We+r,t)):(n.push(t),t[Ze]=null),t[Ae]=n;let s=t[_n];s!==null&&n!==s&&Yh(s,t);let a=t[Tn];a!==null&&a.insertView(e),hs(t),t[j]|=128}function Yh(e,t){let n=e[ho],r=t[Ae];if(Nt(r))e[j]|=2;else{let o=r[Ae][ze];t[ze]!==o&&(e[j]|=2)}n===null?e[ho]=[t]:n.push(t)}var _s=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[q];return wo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[$e]}set context(t){this._lView[$e]=t}get destroyed(){return Nn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Ae];if(Ct(t)){let n=t[ip],r=n?n.indexOf(this):-1;r>-1&&(Vb(t,r),Zc(n,r))}this._attachedToViewContainer=!1}eb(this._lView[q],this._lView)}onDestroy(t){uu(this._lView,t)}markForCheck(){Qh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[j]&=-129}reattach(){hs(this._lView),this._lView[j]|=128}detectChanges(){this._lView[j]|=1024,qh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new L(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=dr(this._lView),n=this._lView[_n];n!==null&&!t&&tl(n,this._lView),Mh(this._lView[q],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new L(902,!1);this._appRef=t;let n=dr(this._lView),r=this._lView[_n];r!==null&&!n&&Yh(r,this._lView),hs(this._lView)}};function ol(e){return fr(e._lView)||!!(e._lView[j]&64)}function il(e){ps(e._lView)}function sl(e,t,n,r,o){let i=e.data[t];if(i===null)i=Bb(e,t,n,r,o),hp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=fp();i.injectorIndex=s===null?-1:s.injectorIndex}return vo(i,!0),i}function Bb(e,t,n,r,o){let i=fu(),s=pu(),a=s?i:i&&i.parent,c=e.data[t]=$b(e,a,n,t,r,o);return Hb(e,c,i,s),c}function Hb(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function $b(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return lu()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,fieldIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var qb=()=>null;function zb(e,t){return qb(e,t)}var Kh=class{},Ls=class{},Bu=class{resolveComponentFactory(t){throw new L(917,!1)}},Wt=class{static NULL=new Bu},An=class{};var Zh=(()=>{class e{static \u0275prov=V({token:e,providedIn:"root",factory:()=>null})}return e})();var bs={},Hu=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,bs,r);return o!==bs||n===bs?o:this.parentInjector.get(t,n,r)}};function Up(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Hc(o,a);else if(i==2){let c=a,u=t[++s];r=Hc(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function br(e,t=0){let n=At();if(n===null)return F(e,t);let r=pr();return ih(r,n,Be(e),t)}function Gb(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}Yb(e,t,n,a,i,c,u)}i!==null&&r!==null&&Wb(n,r,i)}function Wb(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new L(-301,!1);r.push(t[o],i)}}function Qb(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Yb(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let p=r[f];c===null&&Sn(p)&&(c=p,Qb(e,n,f)),uE(eh(n,t),e,p.type)}tI(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let p=r[f];p.providersResolver&&p.providersResolver(p)}let u=!1,l=!1,d=_h(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let p=r[f];if(n.mergedAttrs=Gu(n.mergedAttrs,p.hostAttrs),Zb(e,n,t,d,p),eI(d,p,o),s!==null&&s.has(p)){let[v,y]=s.get(p);n.directiveToIndex.set(p.type,[d,v+n.directiveStart,y+n.directiveStart])}else(i===null||!i.has(p))&&n.directiveToIndex.set(p.type,d);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let m=p.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}Kb(e,n,i)}function Kb(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Bp(0,t,o,r),Bp(1,t,o,r),$p(t,r,!1);else{let i=n.get(o);Hp(0,t,i,r),Hp(1,t,i,r),$p(t,r,!0)}}}function Bp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Xh(t,i)}}function Hp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Xh(t,s)}}function Xh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function $p(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Yu(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Zb(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=ir(o.type,!0)),s=new Io(i,Sn(o),br,null);e.blueprint[r]=s,n[r]=s,Xb(e,t,r,_h(e,n,o.hostVars,Ku),o)}function Xb(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Jb(s)!=a&&s.push(a),s.push(n,r,i)}}function Jb(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function eI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Sn(t)&&(n[""]=e)}}function tI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Jh(e,t,n,r,o,i,s,a){let c=t[q],u=c.consts,l=fs(u,s),d=sl(c,e,n,r,l);return i&&Gb(c,t,d,fs(u,a),o),d.mergedAttrs=Gu(d.mergedAttrs,d.attrs),d.attrs!==null&&Up(d,d.attrs,!1),d.mergedAttrs!==null&&Up(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function em(e,t){JD(e,t),iu(t)&&e.queries.elementEnd(t)}var $u=Symbol("BINDING");var xs=class extends Wt{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=ao(t);return new Ts(n,this.ngModule)}};function nI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Os.SignalBased)!==0};return o&&(i.transform=o),i})}function rI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function oI(e,t,n){let r=t instanceof Me?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Hu(n,r):n}function iI(e){let t=e.get(An,null);if(t===null)throw new L(407,!1);let n=e.get(Zh,null),r=e.get(Tt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function sI(e,t){let n=tm(e);return SE(t,n,n==="svg"?sp:n==="math"?ap:null)}function tm(e){return(e.selectors[0][0]||"div").toLowerCase()}var Ts=class extends Ls{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=nI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=rI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=HE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){se(re.DynamicComponentStart);let a=G(null);try{let c=this.componentDef,u=aI(r,c,s,i),l=oI(c,o||this.ngModule,t),d=iI(l),f=d.rendererFactory.createRenderer(null,c),p=r?ub(f,r,c.encapsulation,l):sI(c,f),m=s?.some(qp)||i?.some(h=>typeof h!="function"&&h.bindings.some(qp)),v=Xu(null,u,null,512|wh(c),null,null,d,f,l,null,gh(p,l,!0));v[Fe]=p,gs(v);let y=null;try{let h=Jh(Fe,v,2,"#host",()=>u.directiveRegistry,!0,0);Eh(f,p,h),yr(p,v),Lh(u,v,h),yh(u,h,v),em(u,h),n!==void 0&&uI(h,this.ngContentSelectors,n),y=zt(h.index,v),v[$e]=y[$e],rl(u,v,null)}catch(h){throw y!==null&&Ou(y),Ou(v),h}finally{se(re.DynamicComponentEnd),vs()}return new Ss(this.componentType,v,!!m)}finally{G(a)}}};function aI(e,t,n,r){let o=e?["ng-version","21.1.4"]:$E(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[$u].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let f of d.bindings){a+=f[$u].requiredVars;let p=l+1;f.create&&(f.targetIdx=p,(i??=[]).push(f)),f.update&&(f.targetIdx=p,(s??=[]).push(f))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=Qc(d);c.push(f)}return Zu(0,null,cI(i,s),1,a,c,null,null,null,[o],null)}function cI(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function qp(e){let t=e[$u].kind;return t==="input"||t==="twoWay"}var Ss=class extends Kh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=au(n[q],Fe),this.location=ch(this._tNode,n),this.instance=zt(this._tNode.index,n)[$e],this.hostView=this.changeDetectorRef=new _s(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Db(r,o[q],o,t,n);this.previousInputValues.set(t,n);let s=zt(r.index,o);Qh(s,1)}get injector(){return new ws(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function uI(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var lI=()=>!1;function dI(e,t,n){return lI(e,t,n)}var qu=new Map,fI=new Set;function al(e){return De(this,null,function*(){let t=qu;qu=new Map;let n=new Map;function r(i){let s=n.get(i);if(s)return s;let a=e(i).then(c=>pI(i,c));return n.set(i,a),a}let o=Array.from(t).map(a=>De(null,[a],function*([i,s]){if(s.styleUrl&&s.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");let c=[];s.templateUrl&&c.push(r(s.templateUrl).then(f=>{s.template=f}));let u=typeof s.styles=="string"?[s.styles]:s.styles??[];s.styles=u;let{styleUrl:l,styleUrls:d}=s;if(l&&(d=[l],s.styleUrl=void 0),d?.length){let f=Promise.all(d.map(p=>r(p))).then(p=>{u.push(...p),s.styleUrls=void 0});c.push(f)}yield Promise.all(c),fI.delete(i)}));yield Promise.all(o)})}function nm(){return qu.size===0}function pI(e,t){return De(this,null,function*(){if(typeof t=="string")return t;if(t.status!==void 0&&t.status!==200)throw new L(918,!1);return t.text()})}var Er=class{},rm=class{};var _o=class extends Er{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new xs(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Wf(t);this._bootstrapComponents=AE(i.bootstrap),this._r3Injector=Iu(t,n,[{provide:Er,useValue:this},{provide:Wt,useValue:this.componentFactoryResolver},...r],Ht(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ns=class extends rm{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new _o(this.moduleType,t,[])}};function om(e,t,n){return new _o(e,t,n,!1)}var Cs=class extends Er{injector;componentFactoryResolver=new xs(this);instance=null;constructor(t){super();let n=new En([...t.providers,{provide:Er,useValue:this},{provide:Wt,useValue:this.componentFactoryResolver}],t.parent||lo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function im(e,t,n=null){return new Cs({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var hI=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=eu(!1,n.type),o=r.length>0?im([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=V({token:e,providedIn:"environment",factory:()=>new e(F(Me))})}return e})();function cl(e){return zu(()=>{let t=yI(e),n=de(R({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Wu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(hI).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,styles:e.styles||rt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Th("NgStandalone"),DI(n);let r=e.dependencies;return n.directiveDefs=zp(r,mI),n.pipeDefs=zp(r,Qf),n.id=EI(n),n})}function mI(e){return ao(e)||Qc(e)}function ke(e){return zu(()=>({type:e.type,bootstrap:e.bootstrap||rt,declarations:e.declarations||rt,imports:e.imports||rt,exports:e.exports||rt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function gI(e,t){if(e==null)return In;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Os.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function vI(e){if(e==null)return In;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function yI(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||In,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:gI(e.inputs,t),outputs:vI(e.outputs),debugInfo:null}}function DI(e){e.features?.forEach(t=>t(e))}function zp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function EI(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function bI(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Gu(e.mergedAttrs,e.attrs);let l=e.tView=Zu(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),vo(e,!1);let c=wI(n,t,e,r);Eu()&&Fh(n,t,c,e),yr(c,t);let u=Lb(c,t,c,e);t[r+Fe]=u,xh(t,u),dI(u,e,t)}function II(e,t,n,r,o,i,s,a,c,u,l){let d=n+Fe,f;if(t.firstCreatePass){if(f=sl(t,d,4,s||null,a||null),u!=null){let p=fs(t.consts,u);f.localNames=[];for(let m=0;m<p.length;m+=2)f.localNames.push(p[m],-1)}}else f=t.data[d];return bI(f,e,t,n,r,o,i,c),u!=null&&jh(e,f,l),f}var wI=_I;function _I(e,t,n,r){return bu(!0),t[qe].createComment("")}function ul(e){return typeof e=="function"&&e[fn]!==void 0}var js=new P(""),Vs=new P(""),So=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(n,r,o){this._ngZone=n,this.registry=r,nu()&&(this._destroyRef=O(hr,{optional:!0})??void 0),ll||(am(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let n=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{fe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{n.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static \u0275fac=function(r){return new(r||e)(F(fe),F(sm),F(Vs))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})(),sm=(()=>{class e{_applications=new Map;registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return ll?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function am(e){ll=e}var ll;function dl(e){return!!e&&typeof e.then=="function"}function cm(e){return!!e&&typeof e.subscribe=="function"}var um=new P("");var fl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=O(um,{optional:!0})??[];injector=O(He);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=sr(this.injector,o);if(dl(i))n.push(i);else if(cm(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lm=new P("");function dm(){dc(()=>{let e="";throw new L(600,e)})}function fm(e){return e.isBoundToModule}var xI=10;function pl(e,t){return Array.isArray(t)?t.reduce(pl,e):R(R({},e),t)}var Qt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=O(mr);afterRenderManager=O(Sh);zonelessEnabled=O(yo);rootEffectScheduler=O(Su);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new gt;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=O(Mn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Ve(n=>!n))}constructor(){O(Fn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=O(Me);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=He.NULL){return this._injector.get(fe).run(()=>{se(re.BootstrapComponentStart);let s=n instanceof Ls;if(!this._injector.get(fl).done){let m="";throw new L(405,m)}let c;s?c=n:c=this._injector.get(Wt).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=fm(c)?void 0:this._injector.get(Er),l=r||c.selector,d=c.create(o,[],l,u),f=d.location.nativeElement,p=d.injector.get(js,null);return p?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),bo(this.components,d),p?.unregisterApplication(f)}),this._loadComponent(d),se(re.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){se(re.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(el.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw se(re.ChangeDetectionEnd),new L(101,!1);let n=G(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,G(n),this.afterTick.next(),se(re.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(An,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<xI;){se(re.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{se(re.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!fr(o))continue;let i=r&&!this.zonelessEnabled?0:1;qh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>fr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;bo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(lm,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>bo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new L(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function bo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var ER=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Us(e,t,n){let r=At(),o=r[q],i=e+Fe,s=o.firstCreatePass?Jh(i,r,8,"ng-container",mb,dp(),t,n):o.data[i];if(vb(s,r,e,"ng-container",TI),su(s)){let a=r[q];Lh(a,r,s),yh(a,s,r)}return n!=null&&jh(r,s),Us}function Bs(){let e=du(),t=pr(),n=yb(t);return e.firstCreatePass&&em(e,n),Bs}var TI=(e,t,n,r,o)=>(bu(!0),TE(t[qe],""));var No="en-US";var SI=No;function pm(e){typeof e=="string"&&(SI=e.toLowerCase().replace(/_/g,"-"))}function NI(e,t){let n=null,r=LE(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Ih(e,i,!0):UE(r,i))return o}return n}function hl(e){let t=At()[ze][Re];if(!t.projection){let n=e?e.length:1,r=t.projection=Jf(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?NI(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function ml(e,t=0,n,r,o,i){let s=At(),a=du(),c=r?e+1:null;c!==null&&II(s,a,c,r,o,i,null,n);let u=sl(a,Fe+e,16,null,n||null);u.projection===null&&(u.projection=t),hu();let d=!s[ar]||lu();s[ze][Re].projection[u.projection]===null&&c!==null?CI(s,a,c):d&&!ks(u)&&ab(a,s,u)}function CI(e,t,n){let r=Fe+n,o=t.data[r],i=e[r],s=zb(i,o.tView.ssrId),a=wb(e,o,void 0,{dehydratedView:s});jb(i,a,0,_b(o,s))}var ys=null;function hm(e){ys!==null&&(e.defaultEncapsulation!==ys.defaultEncapsulation||e.preserveWhitespaces!==ys.preserveWhitespaces)||(ys=e)}var mm=new P("");var gm=(()=>{class e{applicationErrorHandler=O(mr);appRef=O(Qt);taskService=O(Mn);ngZone=O(fe);zonelessEnabled=O(yo);tracing=O(Fn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new me;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(io):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(O(Tu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?_p:wu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(io+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vm(){return[{provide:Tt,useExisting:gm},{provide:fe,useClass:so},{provide:yo,useValue:!0}]}function MI(){return typeof $localize<"u"&&$localize.locale||No}var gl=new P("",{factory:()=>O(gl,{optional:!0,skipSelf:!0})||MI()});function UI(e,t,n){let r=new Ns(n);return Promise.resolve(r)}function ym(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var Hs=new P(""),BI=new P("");function Co(e){return!e.moduleRef}function HI(e){let t=Co(e)?e.r3Injector:e.moduleRef.injector,n=t.get(fe);return n.run(()=>{Co(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mr),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Co(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Hs);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Hs);s.add(i),e.moduleRef.onDestroy(()=>{bo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return qI(r,n,()=>{let i=t.get(Mn),s=i.add(),a=t.get(fl);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(gl,No);if(pm(c||No),!t.get(BI,!0))return Co(e)?t.get(Qt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Co(e)){let l=t.get(Qt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Em?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var Em;function Dm(){Em=$I}function $I(e,t){let n=e.injector.get(Qt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new L(-403,!1);t.push(e)}function qI(e,t,n){try{let r=n();return dl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var bm=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=[vm(),...r?.applicationProviders??[],Tp],i=om(n.moduleType,this.injector,o);return Dm(),HI({moduleRef:i,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=pl({},r);return Dm(),UI(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new L(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(Hs,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(F(He))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),vl=null;function zI(e){if(Dl())throw new L(400,!1);dm(),vl=e;let t=e.get(bm);return QI(e),t}function yl(e,t,n=[]){let r=`Platform: ${t}`,o=new P(r);return(i=[])=>{let s=Dl();if(!s){let a=[...n,...i,{provide:o,useValue:!0}];s=e?.(a)??zI(GI(a,r))}return WI(o)}}function GI(e=[],t){return He.create({name:t,providers:[{provide:uo,useValue:"platform"},{provide:Hs,useValue:new Set([()=>vl=null])},...e]})}function WI(e){let t=Dl();if(!t)throw new L(-401,!1);return t}function Dl(){return vl?.get(bm)??null}function QI(e){let t=e.get(Rs,null);sr(e,()=>{t?.forEach(n=>n())})}var YI=1e4;var Cj=YI-1e3;var Im=yl(null,"core",[]),wm=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(F(Qt))};static \u0275mod=ke({type:e});static \u0275inj=_e({})}return e})();var _m=null;function Rt(){return _m}function El(e){_m??=e}var Mo=class{},$s=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:()=>O(xm),providedIn:"platform"})}return e})();var xm=(()=>{class e extends $s{_location;_history;_doc=O(xe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Rt().getBaseHref(this._doc)}onPopState(n){let r=Rt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Rt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var Ao=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ke({type:e});static \u0275inj=_e({})}return e})();function Ro(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var kn=class{};var Tm="browser";var Fo=class{_doc;constructor(t){this._doc=t}manager},qs=(()=>{class e extends Fo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(F(xe))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})(),Ws=new P(""),_l=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof qs));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof qs);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new L(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(F(Ws),F(fe))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})(),bl="ng-app-id";function Sm(e){for(let t of e)t.remove()}function Nm(e,t){let n=t.createElement("style");return n.textContent=e,n}function ZI(e,t,n,r){let o=e.head?.querySelectorAll(`style[${bl}="${t}"],link[${bl}="${t}"]`);if(o)for(let i of o)i.removeAttribute(bl),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function wl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var xl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,ZI(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Nm);r?.forEach(o=>this.addUsage(o,this.external,wl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Sm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Sm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Nm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,wl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(F(xe),F(As),F(Fs,8),F(To))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})(),Il={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/Math/MathML"},Tl=/%COMP%/g;var Mm="%COMP%",XI=`_nghost-${Mm}`,JI=`_ngcontent-${Mm}`,ew=!0,tw=new P("",{factory:()=>ew});function nw(e){return JI.replace(Tl,e)}function rw(e){return XI.replace(Tl,e)}function Am(e,t){return t.map(n=>n.replace(Tl,e))}var Sl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new ko(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Gs?o.applyToHost(n):o instanceof Oo&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case at.Emulated:i=new Gs(c,u,r,this.appId,l,s,a,d);break;case at.ShadowDom:return new zs(c,n,r,s,a,this.nonce,d,u);case at.ExperimentalIsolatedShadowDom:return new zs(c,n,r,s,a,this.nonce,d);default:i=new Oo(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(F(_l),F(xl),F(As),F(tw),F(xe),F(fe),F(Fs),F(Fn,8))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})(),ko=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Il[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Cm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Cm(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new L(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Il[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Il[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Rn.DashCase|Rn.Important)?t.style.setProperty(n,r,o&Rn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Rn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Rt().getGlobalEventTarget(this.doc,t),!t))throw new L(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function Cm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var zs=class extends ko{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Am(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f)}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=wl(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Oo=class extends ko{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?Am(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Dr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Gs=class extends Oo{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=nw(u),this.hostAttr=rw(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Qs=class e extends Mo{supportsDOMEvents=!0;static makeCurrent(){El(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.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,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=ow();return n==null?null:iw(n)}resetBaseElement(){Po=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ro(document.cookie,t)}},Po=null;function ow(){return Po=Po||document.head.querySelector("base"),Po?Po.getAttribute("href"):null}function iw(e){return new URL(e,document.baseURI).pathname}var Ys=class{addToWindow(t){ot.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new L(5103,!1);return i},ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),ot.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=ot.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};ot.frameworkStabilizers||(ot.frameworkStabilizers=[]),ot.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?Rt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},sw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})(),Rm=["alt","control","meta","shift"],aw={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},cw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Fm=(()=>{class e extends Fo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Rt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Rm.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=aw[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Rm.forEach(s=>{if(s!==o){let a=cw[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(F(xe))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})();function uw(){Qs.makeCurrent()}function lw(){return new xt}function dw(){return Qu(document),document}var fw=[{provide:To,useValue:Tm},{provide:Rs,useValue:uw,multi:!0},{provide:xe,useFactory:dw}],Nl=yl(Im,"browser",fw);var pw=[{provide:Vs,useClass:Ys},{provide:js,useClass:So},{provide:So,useClass:So}],hw=[{provide:uo,useValue:"root"},{provide:xt,useFactory:lw},{provide:Ws,useClass:qs,multi:!0},{provide:Ws,useClass:Fm,multi:!0},Sl,xl,_l,{provide:An,useExisting:Sl},{provide:kn,useClass:sw},[]],Cl=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=ke({type:e});static \u0275inj=_e({providers:[...hw,...pw],imports:[Ao,wm]})}return e})();var ut=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?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(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Zs=class{map=new Map;set(t,n){return this.map.set(t,n),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()}},Xs=class{encodeKey(t){return km(t)}encodeValue(t){return km(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function mw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var gw=/%(\d[a-f0-9])/gi,vw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function km(e){return encodeURIComponent(e).replace(gw,(t,n)=>vw[n]??t)}function Ks(e){return`${e}`}var Ft=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Xs,t.fromString){if(t.fromObject)throw new L(2805,!1);this.map=mw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Ks):[Ks(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(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":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Ks(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Ks(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function yw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Om(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Pm(e){return typeof Blob<"u"&&e instanceof Blob}function Lm(e){return typeof FormData<"u"&&e instanceof FormData}function Dw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var jm="Content-Type",Vm="Accept",Bm="text/plain",Hm="application/json",Ew=`${Hm}, ${Bm}, */*`,Ir=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(yw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new L(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new ut,this.context??=new Zs,!this.params)this.params=new Ft,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Om(this.body)||Pm(this.body)||Lm(this.body)||Dw(this.body)?this.body:this.body instanceof Ft?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Lm(this.body)?null:Pm(this.body)?this.body.type||null:Om(this.body)?null:typeof this.body=="string"?Bm:this.body instanceof Ft?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Hm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer||this.referrer,f=t.integrity||this.integrity,p=t.referrerPolicy||this.referrerPolicy,m=t.transferCache??this.transferCache,v=t.timeout??this.timeout,y=t.body!==void 0?t.body:this.body,h=t.withCredentials??this.withCredentials,I=t.reportProgress??this.reportProgress,E=t.headers||this.headers,_=t.params||this.params,x=t.context??this.context;return t.setHeaders!==void 0&&(E=Object.keys(t.setHeaders).reduce((S,A)=>S.set(A,t.setHeaders[A]),E)),t.setParams&&(_=Object.keys(t.setParams).reduce((S,A)=>S.set(A,t.setParams[A]),_)),new e(n,r,y,{params:_,headers:E,context:x,reportProgress:I,responseType:o,withCredentials:h,transferCache:m,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:p})}},On=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(On||{}),_r=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new ut,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Js=class e extends _r{constructor(t={}){super(t)}type=On.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Lo=class e extends _r{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=On.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},wr=class extends _r{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},bw=200,Iw=204;var ww=new P("");var _w=/^\)\]\}',?\n/;var Al=(()=>{class e{xhrFactory;tracingService=O(Fn,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new L(-2800,!1);let r=this.xhrFactory;return zi(null).pipe(no(()=>new Y(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,h)=>s.setRequestHeader(y,h.join(","))),n.headers.has(Vm)||s.setRequestHeader(Vm,Ew),!n.headers.has(jm)){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader(jm,y)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=s.statusText||"OK",h=new ut(s.getAllResponseHeaders()),I=s.responseURL||n.url;return c=new Js({headers:h,status:s.status,statusText:y,url:I}),c},l=this.maybePropagateTrace(()=>{let{headers:y,status:h,statusText:I,url:E}=u(),_=null;h!==Iw&&(_=typeof s.response>"u"?s.responseText:s.response),h===0&&(h=_?bw:0);let x=h>=200&&h<300;if(n.responseType==="json"&&typeof _=="string"){let S=_;_=_.replace(_w,"");try{_=_!==""?JSON.parse(_):null}catch(A){_=S,x&&(x=!1,_={error:A,text:_})}}x?(i.next(new Lo({body:_,headers:y,status:h,statusText:I,url:E||void 0})),i.complete()):i.error(new wr({error:_,headers:y,status:h,statusText:I,url:E||void 0}))}),d=this.maybePropagateTrace(y=>{let{url:h}=u(),I=new wr({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:h||void 0});i.error(I)}),f=d;n.timeout&&(f=this.maybePropagateTrace(y=>{let{url:h}=u(),I=new wr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:h||void 0});i.error(I)}));let p=!1,m=this.maybePropagateTrace(y=>{p||(i.next(u()),p=!0);let h={type:On.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(h.total=y.total),n.responseType==="text"&&s.responseText&&(h.partialText=s.responseText),i.next(h)}),v=this.maybePropagateTrace(y=>{let h={type:On.UploadProgress,loaded:y.loaded};y.lengthComputable&&(h.total=y.total),i.next(h)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",f),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",m),a!==null&&s.upload&&s.upload.addEventListener("progress",v)),s.send(a),i.next({type:On.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",m),a!==null&&s.upload&&s.upload.removeEventListener("progress",v)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(F(kn))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $m(e,t){return t(e)}function xw(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function Tw(e,t,n){return(r,o)=>sr(n,()=>t(r,i=>e(i,o)))}var qm=new P(""),Rl=new P("",{factory:()=>[]}),zm=new P(""),Fl=new P("",{factory:()=>!0});function Sw(){let e=null;return(t,n)=>{e===null&&(e=(O(qm,{optional:!0})??[]).reduceRight(xw,$m));let r=O(Do);if(O(Fl)){let i=r.add();return e(t,n).pipe(Wi(i))}else return e(t,n)}}var kl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=F(Al),o},providedIn:"root"})}return e})();var ea=(()=>{class e{backend;injector;chain=null;pendingTasks=O(Do);contributeToStability=O(Fl);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Rl),...this.injector.get(zm,[])]));this.chain=r.reduceRight((o,i)=>Tw(o,i,this.injector),$m)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Wi(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(F(kl),F(Me))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ol=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=F(ea),o},providedIn:"root"})}return e})();function Ml(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var ta=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Ir)i=n;else{let c;o.headers instanceof ut?c=o.headers:c=new ut(o.headers);let u;o.params&&(o.params instanceof Ft?u=o.params:u=new Ft({fromObject:o.params})),i=new Ir(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=zi(i).pipe(_c(c=>this.handler.handle(c)));if(n instanceof Ir||o.observe==="events")return s;let a=s.pipe(wc(c=>c instanceof Lo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Ve(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new L(2806,!1);return c.body}));case"blob":return a.pipe(Ve(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new L(2807,!1);return c.body}));case"text":return a.pipe(Ve(c=>{if(c.body!==null&&typeof c.body!="string")throw new L(2808,!1);return c.body}));default:return a.pipe(Ve(c=>c.body))}case"response":return a;default:throw new L(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ft().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Ml(o,r))}post(n,r,o={}){return this.request("POST",n,Ml(o,r))}put(n,r,o={}){return this.request("PUT",n,Ml(o,r))}static \u0275fac=function(r){return new(r||e)(F(Ol))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Nw=new P("",{factory:()=>!0}),Cw="XSRF-TOKEN",Mw=new P("",{factory:()=>Cw}),Aw="X-XSRF-TOKEN",Rw=new P("",{factory:()=>Aw}),Fw=(()=>{class e{cookieName=O(Mw);doc=O(xe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ro(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Gm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=F(Fw),o},providedIn:"root"})}return e})();function kw(e,t){if(!O(Nw)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=O($s).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=O(Gm).getToken(),r=O(Rw);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Pl=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Pl||{});function Ow(e,t){return{\u0275kind:e,\u0275providers:t}}function Wm(...e){let t=[ta,ea,{provide:Ol,useExisting:ea},{provide:kl,useFactory:()=>O(ww,{optional:!0})??O(Al)},{provide:Rl,useValue:kw,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return as(t)}var Um=new P("");function Qm(){return Ow(Pl.LegacyInterceptors,[{provide:Um,useFactory:Sw},{provide:Rl,useExisting:Um,multi:!0}])}var Ll=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ke({type:e});static \u0275inj=_e({providers:[Wm(Qm())]})}return e})();var Ym={production:!0,version:"5.0.10",firebase:{apiKey:"AIzaSyAcDsjPHSXRuK0ECvnUgsv93ZTPmQZ2-w8",authDomain:"cm-platform-prod.firebaseapp.com",databaseURL:"https://cm-platform-prod.firebaseio.com",projectId:"cm-platform-prod",storageBucket:"cm-platform-prod.appspot.com",messagingSenderId:"25388089203",appId:"1:25388089203:web:04b9a8a9327a05cfcdcf06",measurementId:"G-M9TKYTZ818"},firebaseConfig:{collectionEnabled:!0},restApiEndpoint:"https://api.colormass.com/v01/",gqlApiEndpoint:"https://gql.colormass.com",tilingEndpoint:"wss://tiling.colormass.com/"};var jl="Invariant Violation",Km=Object.setPrototypeOf,jw=Km===void 0?function(e,t){return e.__proto__=t,e}:Km,oa=(function(e){he(t,e);function t(n){n===void 0&&(n=jl);var r=e.call(this,typeof n=="number"?jl+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=jl,jw(r,t.prototype),r}return t})(Error);function Yt(e,t){if(!e)throw new oa(t)}var ra=["debug","log","warn","error","silent"],Vl=ra.indexOf("log");function na(e){return function(){if(ra.indexOf(e)>=Vl){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=na("debug"),e.log=na("log"),e.warn=na("warn"),e.error=na("error")})(Yt||(Yt={}));function Zm(e){var t=ra[Vl];return Vl=Math.max(0,ra.indexOf(e)),t}var jo="3.10.8";function be(e){try{return e()}catch(t){}}var xr=be(function(){return globalThis})||be(function(){return window})||be(function(){return self})||be(function(){return global})||be(function(){return be.constructor("return this")()});var Xm=new Map;function Vo(e){var t=Xm.get(e)||1;return Xm.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function ia(e,t){t===void 0&&(t=0);var n=Vo("stringifyForDisplay");return JSON.stringify(e,function(r,o){return o===void 0?n:o},t).split(JSON.stringify(n)).join("<undefined>")}function sa(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(typeof t=="number"){var o=t;t=Ul(o),t||(t=Bl(o,n),n=[])}e.apply(void 0,[t].concat(n))}}var N=Object.assign(function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];t||Yt(t,Ul(n,r)||Bl(n,r))},{debug:sa(Yt.debug),log:sa(Yt.log),warn:sa(Yt.warn),error:sa(Yt.error)});function te(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new oa(Ul(e,t)||Bl(e,t))}var Jm=Symbol.for("ApolloErrorMessageHandler_"+jo);function eg(e){if(typeof e=="string")return e;try{return ia(e,2).slice(0,1e3)}catch(t){return"<non-serializable>"}}function Ul(e,t){if(t===void 0&&(t=[]),!!e)return xr[Jm]&&xr[Jm](e,t.map(eg))}function Bl(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:jo,message:e,args:t.map(eg)})))}var Vw=globalThis.__DEV__!==!1;function Tr(e,t){if(!!!e)throw new Error(t)}function tg(e){return typeof e=="object"&&e!==null}function ng(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var Uw=/\r\n|[\n\r]/g;function Sr(e,t){let n=0,r=1;for(let o of e.body.matchAll(Uw)){if(typeof o.index=="number"||ng(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Hl(e){return aa(e.source,Sr(e.source,e.start))}function aa(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,a=t.line===1?n:0,c=t.column+a,u=`${e.name}:${s}:${c}
`,l=r.split(/\r\n|[\n\r]/g),d=l[o];if(d.length>120){let f=Math.floor(c/80),p=c%80,m=[];for(let v=0;v<d.length;v+=80)m.push(d.slice(v,v+80));return u+rg([[`${s} |`,m[0]],...m.slice(1,f+1).map(v=>["|",v]),["|","^".padStart(p)],["|",m[f+1]]])}return u+rg([[`${s-1} |`,l[o-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,l[o+1]]])}function rg(e){let t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?" "+o:"")).join(`
`)}function Bw(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var ca=class e extends Error{constructor(t,...n){var r,o,i;let{nodes:s,source:a,positions:c,path:u,originalError:l,extensions:d}=Bw(n);super(t),this.name="GraphQLError",this.path=u??void 0,this.originalError=l??void 0,this.nodes=og(Array.isArray(s)?s:s?[s]:void 0);let f=og((r=this.nodes)===null||r===void 0?void 0:r.map(m=>m.loc).filter(m=>m!=null));this.source=a??(f==null||(o=f[0])===null||o===void 0?void 0:o.source),this.positions=c??f?.map(m=>m.start),this.locations=c&&a?c.map(m=>Sr(a,m)):f?.map(m=>Sr(m.source,m.start));let p=tg(l?.extensions)?l?.extensions:void 0;this.extensions=(i=d??p)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`

`+Hl(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`

`+aa(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function og(e){return e===void 0||e.length===0?void 0:e}function ce(e,t,n){return new ca(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Uo=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},Nr=class{constructor(t,n,r,o,i,s){this.kind=t,this.start=n,this.end=r,this.line=o,this.column=i,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},$l={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Hw=new Set(Object.keys($l));function ql(e){let t=e?.kind;return typeof t=="string"&&Hw.has(t)}var Pn=(function(e){return e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription",e})(Pn||{});var ua=(function(e){return e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e})(ua||{});var T=(function(e){return e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e})(T||{});function la(e){return e===9||e===32}function Cr(e){return e>=48&&e<=57}function ig(e){return e>=97&&e<=122||e>=65&&e<=90}function zl(e){return ig(e)||e===95}function sg(e){return ig(e)||Cr(e)||e===95}function ag(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let s=0;s<e.length;++s){var i;let a=e[s],c=$w(a);c!==a.length&&(r=(i=r)!==null&&i!==void 0?i:s,o=s,s!==0&&c<n&&(n=c))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function $w(e){let t=0;for(;t<e.length&&la(e.charCodeAt(t));)++t;return t}function cg(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=r.length===1,i=r.length>1&&r.slice(1).every(p=>p.length===0||la(p.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=a||c,l=!(t!=null&&t.minimize)&&(!o||e.length>70||u||i||s),d="",f=o&&la(e.charCodeAt(0));return(l&&!f||i)&&(d+=`
`),d+=n,(l||u)&&(d+=`
`),'"""'+d+'"""'}var b=(function(e){return e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment",e})(b||{});var Ho=class{constructor(t){let n=new Nr(b.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==b.EOF)do if(t.next)t=t.next;else{let n=qw(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===b.COMMENT);return t}};function lg(e){return e===b.BANG||e===b.DOLLAR||e===b.AMP||e===b.PAREN_L||e===b.PAREN_R||e===b.SPREAD||e===b.COLON||e===b.EQUALS||e===b.AT||e===b.BRACKET_L||e===b.BRACKET_R||e===b.BRACE_L||e===b.PIPE||e===b.BRACE_R}function Mr(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function da(e,t){return dg(e.charCodeAt(t))&&fg(e.charCodeAt(t+1))}function dg(e){return e>=55296&&e<=56319}function fg(e){return e>=56320&&e<=57343}function Ln(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return b.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ue(e,t,n,r,o){let i=e.line,s=1+n-e.lineStart;return new Nr(t,n,r,i,s,o)}function qw(e,t){let n=e.source.body,r=n.length,o=t;for(;o<r;){let i=n.charCodeAt(o);switch(i){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return zw(e,o);case 33:return ue(e,b.BANG,o,o+1);case 36:return ue(e,b.DOLLAR,o,o+1);case 38:return ue(e,b.AMP,o,o+1);case 40:return ue(e,b.PAREN_L,o,o+1);case 41:return ue(e,b.PAREN_R,o,o+1);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return ue(e,b.SPREAD,o,o+3);break;case 58:return ue(e,b.COLON,o,o+1);case 61:return ue(e,b.EQUALS,o,o+1);case 64:return ue(e,b.AT,o,o+1);case 91:return ue(e,b.BRACKET_L,o,o+1);case 93:return ue(e,b.BRACKET_R,o,o+1);case 123:return ue(e,b.BRACE_L,o,o+1);case 124:return ue(e,b.PIPE,o,o+1);case 125:return ue(e,b.BRACE_R,o,o+1);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?Zw(e,o):Ww(e,o)}if(Cr(i)||i===45)return Gw(e,o,i);if(zl(i))return Xw(e,o);throw ce(e.source,o,i===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Mr(i)||da(n,o)?`Unexpected character: ${Ln(e,o)}.`:`Invalid character: ${Ln(e,o)}.`)}return ue(e,b.EOF,r,r)}function zw(e,t){let n=e.source.body,r=n.length,o=t+1;for(;o<r;){let i=n.charCodeAt(o);if(i===10||i===13)break;if(Mr(i))++o;else if(da(n,o))o+=2;else break}return ue(e,b.COMMENT,t,o,n.slice(t+1,o))}function Gw(e,t,n){let r=e.source.body,o=t,i=n,s=!1;if(i===45&&(i=r.charCodeAt(++o)),i===48){if(i=r.charCodeAt(++o),Cr(i))throw ce(e.source,o,`Invalid number, unexpected digit after 0: ${Ln(e,o)}.`)}else o=Gl(e,o,i),i=r.charCodeAt(o);if(i===46&&(s=!0,i=r.charCodeAt(++o),o=Gl(e,o,i),i=r.charCodeAt(o)),(i===69||i===101)&&(s=!0,i=r.charCodeAt(++o),(i===43||i===45)&&(i=r.charCodeAt(++o)),o=Gl(e,o,i),i=r.charCodeAt(o)),i===46||zl(i))throw ce(e.source,o,`Invalid number, expected digit but got: ${Ln(e,o)}.`);return ue(e,s?b.FLOAT:b.INT,t,o,r.slice(t,o))}function Gl(e,t,n){if(!Cr(n))throw ce(e.source,t,`Invalid number, expected digit but got: ${Ln(e,t)}.`);let r=e.source.body,o=t+1;for(;Cr(r.charCodeAt(o));)++o;return o}function Ww(e,t){let n=e.source.body,r=n.length,o=t+1,i=o,s="";for(;o<r;){let a=n.charCodeAt(o);if(a===34)return s+=n.slice(i,o),ue(e,b.STRING,t,o+1,s);if(a===92){s+=n.slice(i,o);let c=n.charCodeAt(o+1)===117?n.charCodeAt(o+2)===123?Qw(e,o):Yw(e,o):Kw(e,o);s+=c.value,o+=c.size,i=o;continue}if(a===10||a===13)break;if(Mr(a))++o;else if(da(n,o))o+=2;else throw ce(e.source,o,`Invalid character within String: ${Ln(e,o)}.`)}throw ce(e.source,o,"Unterminated string.")}function Qw(e,t){let n=e.source.body,r=0,o=3;for(;o<12;){let i=n.charCodeAt(t+o++);if(i===125){if(o<5||!Mr(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|Bo(i),r<0)break}throw ce(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function Yw(e,t){let n=e.source.body,r=ug(n,t+2);if(Mr(r))return{value:String.fromCodePoint(r),size:6};if(dg(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let o=ug(n,t+8);if(fg(o))return{value:String.fromCodePoint(r,o),size:12}}throw ce(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function ug(e,t){return Bo(e.charCodeAt(t))<<12|Bo(e.charCodeAt(t+1))<<8|Bo(e.charCodeAt(t+2))<<4|Bo(e.charCodeAt(t+3))}function Bo(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Kw(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw ce(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Zw(e,t){let n=e.source.body,r=n.length,o=e.lineStart,i=t+3,s=i,a="",c=[];for(;i<r;){let u=n.charCodeAt(i);if(u===34&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34){a+=n.slice(s,i),c.push(a);let l=ue(e,b.BLOCK_STRING,t,i+3,ag(c).join(`
`));return e.line+=c.length-1,e.lineStart=o,l}if(u===92&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34&&n.charCodeAt(i+3)===34){a+=n.slice(s,i),s=i+1,i+=4;continue}if(u===10||u===13){a+=n.slice(s,i),c.push(a),u===13&&n.charCodeAt(i+1)===10?i+=2:++i,a="",s=i,o=i;continue}if(Mr(u))++i;else if(da(n,i))i+=2;else throw ce(e.source,i,`Invalid character within String: ${Ln(e,i)}.`)}throw ce(e.source,i,"Unterminated string.")}function Xw(e,t){let n=e.source.body,r=n.length,o=t+1;for(;o<r;){let i=n.charCodeAt(o);if(sg(i))++o;else break}return ue(e,b.NAME,t,o,n.slice(t,o))}function Ar(e){return fa(e,[])}function fa(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Jw(e,t);default:return String(e)}}function Jw(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(e_(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:fa(r,n)}else if(Array.isArray(e))return n_(e,n);return t_(e,n)}function e_(e){return typeof e.toJSON=="function"}function t_(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+r_(e)+"]":"{ "+n.map(([o,i])=>o+": "+fa(i,t)).join(", ")+" }"}function n_(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,o=[];for(let i=0;i<n;++i)o.push(fa(e[i],t));return r===1?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function r_(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var o_=globalThis.process&&!0,pg=o_?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let o=n.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===i){let s=Ar(t);throw new Error(`Cannot use ${o} "${s}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};var Rr=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Tr(!1,`Body must be a string. Received: ${Ar(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Tr(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Tr(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function hg(e){return pg(e,Rr)}function Fr(e,t){let n=new Wl(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}var Wl=class{constructor(t,n={}){let r=hg(t)?t:new Rr(t);this._lexer=new Ho(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(b.NAME);return this.node(t,{kind:T.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:T.DOCUMENT,definitions:this.many(b.SOF,this.parseDefinition,b.EOF)})}parseDefinition(){if(this.peek(b.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===b.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw ce(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(b.BRACE_L))return this.node(t,{kind:T.OPERATION_DEFINITION,operation:Pn.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(b.NAME)&&(r=this.parseName()),this.node(t,{kind:T.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(b.NAME);switch(t.value){case"query":return Pn.QUERY;case"mutation":return Pn.MUTATION;case"subscription":return Pn.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(b.PAREN_L,this.parseVariableDefinition,b.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:T.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(b.DOLLAR),this.node(t,{kind:T.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:T.SELECTION_SET,selections:this.many(b.BRACE_L,this.parseSelection,b.BRACE_R)})}parseSelection(){return this.peek(b.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,o;return this.expectOptionalToken(b.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:T.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.PAREN_L,n,b.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(b.COLON),this.node(n,{kind:T.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(b.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(b.NAME)?this.node(t,{kind:T.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:T.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:T.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:T.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case b.BRACKET_L:return this.parseList(t);case b.BRACE_L:return this.parseObject(t);case b.INT:return this.advanceLexer(),this.node(n,{kind:T.INT,value:n.value});case b.FLOAT:return this.advanceLexer(),this.node(n,{kind:T.FLOAT,value:n.value});case b.STRING:case b.BLOCK_STRING:return this.parseStringLiteral();case b.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:T.BOOLEAN,value:!0});case"false":return this.node(n,{kind:T.BOOLEAN,value:!1});case"null":return this.node(n,{kind:T.NULL});default:return this.node(n,{kind:T.ENUM,value:n.value})}case b.DOLLAR:if(t)if(this.expectToken(b.DOLLAR),this._lexer.token.kind===b.NAME){let r=this._lexer.token.value;throw ce(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:T.STRING,value:t.value,block:t.kind===b.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:T.LIST,values:this.any(b.BRACKET_L,n,b.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:T.OBJECT,fields:this.any(b.BRACE_L,n,b.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(b.COLON),this.node(n,{kind:T.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(b.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(b.AT),this.node(n,{kind:T.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(b.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(b.BRACKET_R),n=this.node(t,{kind:T.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(b.BANG)?this.node(t,{kind:T.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:T.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(b.STRING)||this.peek(b.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),o=this.many(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);return this.node(t,{kind:T.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(b.COLON);let r=this.parseNamedType();return this.node(t,{kind:T.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:T.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:T.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(b.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(b.BRACE_L,this.parseFieldDefinition,b.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(b.COLON);let i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:T.FIELD_DEFINITION,description:n,name:r,arguments:o,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(b.PAREN_L,this.parseInputValueDef,b.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(b.COLON);let o=this.parseTypeReference(),i;this.expectOptionalToken(b.EQUALS)&&(i=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:T.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:T.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:s})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:T.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(b.EQUALS)?this.delimitedMany(b.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:T.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(b.BRACE_L,this.parseEnumValueDefinition,b.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:T.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw ce(this._lexer.source,this._lexer.token.start,`${pa(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:T.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(b.BRACE_L,this.parseInputValueDef,b.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===b.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:T.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:T.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:T.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:T.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:T.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:T.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:T.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.AT);let r=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(t,{kind:T.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(b.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ua,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Uo(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw ce(this._lexer.source,n.start,`Expected ${mg(t)}, found ${pa(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===b.NAME&&n.value===t)this.advanceLexer();else throw ce(this._lexer.source,n.start,`Expected "${t}", found ${pa(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===b.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return ce(this._lexer.source,n.start,`Unexpected ${pa(n)}.`)}any(t,n,r){this.expectToken(t);let o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);let o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==b.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw ce(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function pa(e){let t=e.value;return mg(e.kind)+(t!=null?` "${t}"`:"")}function mg(e){return lg(e)?`"${e}"`:e}function gg(e){return`"${e.replace(i_,s_)}"`}var i_=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function s_(e){return a_[e.charCodeAt(0)]}var a_=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var jn=Object.freeze({});function Ie(e,t,n=$l){let r=new Map;for(let h of Object.values(T))r.set(h,Ql(t,h));let o,i=Array.isArray(e),s=[e],a=-1,c=[],u=e,l,d,f=[],p=[];do{a++;let h=a===s.length,I=h&&c.length!==0;if(h){if(l=p.length===0?void 0:f[f.length-1],u=d,d=p.pop(),I)if(i){u=u.slice();let _=0;for(let[x,S]of c){let A=x-_;S===null?(u.splice(A,1),_++):u[A]=S}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(let[_,x]of c)u[_]=x}a=o.index,s=o.keys,c=o.edits,i=o.inArray,o=o.prev}else if(d){if(l=i?a:s[a],u=d[l],u==null)continue;f.push(l)}let E;if(!Array.isArray(u)){var m,v;ql(u)||Tr(!1,`Invalid AST Node: ${Ar(u)}.`);let _=h?(m=r.get(u.kind))===null||m===void 0?void 0:m.leave:(v=r.get(u.kind))===null||v===void 0?void 0:v.enter;if(E=_?.call(t,u,l,d,f,p),E===jn)break;if(E===!1){if(!h){f.pop();continue}}else if(E!==void 0&&(c.push([l,E]),!h))if(ql(E))u=E;else{f.pop();continue}}if(E===void 0&&I&&c.push([l,u]),h)f.pop();else{var y;o={inArray:i,index:a,keys:s,edits:c,prev:o},i=Array.isArray(u),s=i?u:(y=n[u.kind])!==null&&y!==void 0?y:[],a=-1,c=[],d&&p.push(d),d=u}}while(o!==void 0);return c.length!==0?c[c.length-1][1]:e}function Ql(e,t){let n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Kt(e){return Ie(e,u_)}var c_=80,u_={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>C(e.definitions,`

`)},OperationDefinition:{leave(e){let t=z("(",C(e.variableDefinitions,", "),")"),n=C([e.operation,C([e.name,t]),C(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+z(" = ",n)+z(" ",C(r," "))},SelectionSet:{leave:({selections:e})=>lt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){let i=z("",e,": ")+t,s=i+z("(",C(n,", "),")");return s.length>c_&&(s=i+z(`(
`,ha(C(n,`
`)),`
)`)),C([s,C(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+z(" ",C(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>C(["...",z("on ",e),C(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${z("(",C(n,", "),")")} on ${t} ${z("",C(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?cg(e):gg(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+C(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+C(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+z("(",C(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>z("",e,`
`)+C(["schema",C(t," "),lt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>z("",e,`
`)+C(["scalar",t,C(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>z("",e,`
`)+C(["type",t,z("implements ",C(n," & ")),C(r," "),lt(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>z("",e,`
`)+t+(vg(n)?z(`(
`,ha(C(n,`
`)),`
)`):z("(",C(n,", "),")"))+": "+r+z(" ",C(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>z("",e,`
`)+C([t+": "+n,z("= ",r),C(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>z("",e,`
`)+C(["interface",t,z("implements ",C(n," & ")),C(r," "),lt(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>z("",e,`
`)+C(["union",t,C(n," "),z("= ",C(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>z("",e,`
`)+C(["enum",t,C(n," "),lt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>z("",e,`
`)+C([t,C(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>z("",e,`
`)+C(["input",t,C(n," "),lt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>z("",e,`
`)+"directive @"+t+(vg(n)?z(`(
`,ha(C(n,`
`)),`
)`):z("(",C(n,", "),")"))+(r?" repeatable":"")+" on "+C(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>C(["extend schema",C(e," "),lt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>C(["extend scalar",e,C(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>C(["extend type",e,z("implements ",C(t," & ")),C(n," "),lt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>C(["extend interface",e,z("implements ",C(t," & ")),C(n," "),lt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>C(["extend union",e,C(t," "),z("= ",C(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>C(["extend enum",e,C(t," "),lt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>C(["extend input",e,C(t," "),lt(n)]," ")}};function C(e,t=""){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function lt(e){return z(`{
`,ha(C(e,`
`)),`
}`)}function z(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function ha(e){return z("  ",e.replace(/\n/g,`
  `))}function vg(e){var t;return(t=e?.some(n=>n.includes(`
`)))!==null&&t!==void 0?t:!1}function $o(e){return e.kind===T.FIELD||e.kind===T.FRAGMENT_SPREAD||e.kind===T.INLINE_FRAGMENT}function dt(e,t){var n=e.directives;return!n||!n.length?!0:yg(n).every(function(r){var o=r.directive,i=r.ifArgument,s=!1;return i.value.kind==="Variable"?(s=t&&t[i.value.name.value],N(s!==void 0,68,o.name.value)):s=i.value.value,o.name.value==="skip"?!s:s})}function kt(e,t,n){var r=new Set(e),o=r.size;return Ie(t,{Directive:function(i){if(r.delete(i.name.value)&&(!n||!r.size))return jn}}),n?!r.size:r.size<o}function Yl(e){return e&&kt(["client","export"],e,!0)}function __(e){var t=e.name.value;return t==="skip"||t==="include"}function yg(e){var t=[];return e&&e.length&&e.forEach(function(n){if(__(n)){var r=n.arguments,o=n.name.value;N(r&&r.length===1,69,o);var i=r[0];N(i.name&&i.name.value==="if",70,o);var s=i.value;N(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),71,o),t.push({directive:n,ifArgument:i})}}),t}var x_=()=>Object.create(null),{forEach:T_,slice:Dg}=Array.prototype,{hasOwnProperty:S_}=Object.prototype,Te=class e{constructor(t=!0,n=x_){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return T_.call(t,r=>n=n.getChildTrie(r)),S_.call(n,"data")?n.data:n.data=this.makeData(Dg.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&r<o;++r){let i=n.mapFor(t[r],!1);n=i&&i.get(t[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(t){let n;if(t.length){let r=t[0],o=this.mapFor(r,!1),i=o&&o.get(r);i&&(n=i.removeArray(Dg.call(t,1)),!i.data&&!i.weak&&!(i.strong&&i.strong.size)&&o.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(t){let n=this.mapFor(t,!0),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}mapFor(t,n){return this.weakness&&N_(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}};function N_(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var C_=be(function(){return navigator.product})=="ReactNative",ft=typeof WeakMap=="function"&&!(C_&&!global.HermesInternal),ma=typeof WeakSet=="function",Kl=typeof Symbol=="function"&&typeof Symbol.for=="function",Zt=Kl&&Symbol.asyncIterator,NB=typeof be(function(){return window.document.createElement})=="function",CB=be(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1;function Q(e){return e!==null&&typeof e=="object"}function Zl(e,t){var n=t,r=[];e.definitions.forEach(function(i){if(i.kind==="OperationDefinition")throw te(72,i.operation,i.name?" named '".concat(i.name.value,"'"):"");i.kind==="FragmentDefinition"&&r.push(i)}),typeof n>"u"&&(N(r.length===1,73,r.length),n=r[0].name.value);var o=g(g({},e),{definitions:ge([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return o}function Ot(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Pt(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return N(r,74,n),r||null}default:return null}}function M_(){}var Xt=class{constructor(t=1/0,n=M_){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){let n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){let n=this.map.get(t);if(n&&n!==this.newest){let{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){let n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}};function Xl(){}var A_=Xl,R_=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},F_=typeof WeakMap<"u"?WeakMap:Map,k_=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Xl,unregister:Xl}},O_=10024,Dt=class{constructor(t=1/0,n=A_){this.max=t,this.dispose=n,this.map=new F_,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let r=this.unfinalizedNodes.values();for(let o=0;o<O_;o++){let i=r.next().value;if(!i)break;this.unfinalizedNodes.delete(i);let s=i.key;delete i.key,i.keyRef=new R_(s),this.registry.register(s,i,i)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new k_(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){let n=this.getNode(t);return n&&n.value}getNode(t){let n=this.map.get(t);if(n&&n!==this.newest){let{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;let n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){let n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var Jl=new WeakSet;function Eg(e){e.size<=(e.max||-1)||Jl.has(e)||(Jl.add(e),setTimeout(function(){e.clean(),Jl.delete(e)},100))}var kr=function(e,t){var n=new Dt(e,t);return n.set=function(r,o){var i=Dt.prototype.set.call(this,r,o);return Eg(this),i},n},ga=function(e,t){var n=new Xt(e,t);return n.set=function(r,o){var i=Xt.prototype.set.call(this,r,o);return Eg(this),i},n};var P_=Symbol.for("apollo.cacheSize"),pe=g({},xr[P_]);var Vn={};function va(e,t){Vn[e]=t}var bg=globalThis.__DEV__!==!1?j_:void 0,Ig=globalThis.__DEV__!==!1?V_:void 0,wg=globalThis.__DEV__!==!1?_g:void 0;function L_(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,pe[n]||r]}))}function j_(){var e,t,n,r,o;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:L_(),sizes:g({print:(e=Vn.print)===null||e===void 0?void 0:e.call(Vn),parser:(t=Vn.parser)===null||t===void 0?void 0:t.call(Vn),canonicalStringify:(n=Vn.canonicalStringify)===null||n===void 0?void 0:n.call(Vn),links:td(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:Tg(this.queryManager.documentTransform)}},(o=(r=this.cache).getMemoryInternals)===null||o===void 0?void 0:o.call(r))}}function _g(){return{cache:{fragmentQueryDocuments:Jt(this.getFragmentDoc)}}}function V_(){var e=this.config.fragments;return g(g({},_g.apply(this)),{addTypenameDocumentTransform:Tg(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Jt(this.storeReader.executeSelectionSet),executeSubSelectedArray:Jt(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Jt(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Jt(e?.findFragmentSpreads),lookup:Jt(e?.lookup),transform:Jt(e?.transform)}})}function U_(e){return!!e&&"dirtyKey"in e}function Jt(e){return U_(e)?e.size:void 0}function xg(e){return e!=null}function Tg(e){return ed(e).map(function(t){return{cache:t}})}function ed(e){return e?ge(ge([Jt(e?.performWork)],ed(e?.left),!0),ed(e?.right),!0).filter(xg):[]}function td(e){var t;return e?ge(ge([(t=e?.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],td(e?.left),!0),td(e?.right),!0).filter(xg):[]}var Se=Object.assign(function(t){return JSON.stringify(t,B_)},{reset:function(){Or=new ga(pe.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&va("canonicalStringify",function(){return Or.size});var Or;Se.reset();function B_(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(H_))return t;var o=JSON.stringify(r),i=Or.get(o);if(!i){r.sort();var s=JSON.stringify(r);i=Or.get(s)||r,Or.set(o,i),Or.set(s,i)}var a=Object.create(n);return i.forEach(function(c){a[c]=t[c]}),a}}return t}function H_(e,t,n){return t===0||n[t-1]<=e}function Xe(e){return{__ref:String(e)}}function B(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function nd(e){return Q(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function $_(e){return e.kind==="StringValue"}function q_(e){return e.kind==="BooleanValue"}function z_(e){return e.kind==="IntValue"}function G_(e){return e.kind==="FloatValue"}function W_(e){return e.kind==="Variable"}function Q_(e){return e.kind==="ObjectValue"}function Y_(e){return e.kind==="ListValue"}function K_(e){return e.kind==="EnumValue"}function Z_(e){return e.kind==="NullValue"}function en(e,t,n,r){if(z_(n)||G_(n))e[t.value]=Number(n.value);else if(q_(n)||$_(n))e[t.value]=n.value;else if(Q_(n)){var o={};n.fields.map(function(s){return en(o,s.name,s.value,r)}),e[t.value]=o}else if(W_(n)){var i=(r||{})[n.name.value];e[t.value]=i}else if(Y_(n))e[t.value]=n.values.map(function(s){var a={};return en(a,t,s,r),a[t.value]});else if(K_(n))e[t.value]=n.value;else if(Z_(n))e[t.value]=null;else throw te(83,t.value,n.kind)}function rd(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(o){n[o.name.value]={},o.arguments&&o.arguments.forEach(function(i){var s=i.name,a=i.value;return en(n[o.name.value],s,a,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(o){var i=o.name,s=o.value;return en(r,i,s,t)})),ya(e.name.value,r,n)}var X_=["connection","include","skip","client","rest","export","nonreactive"],qo=Se,ya=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach(function(a){o[a]=t[a]}),"".concat(n.connection.key,"(").concat(qo(o),")")}else return n.connection.key;var i=e;if(t){var s=qo(t);i+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){X_.indexOf(a)===-1&&(n[a]&&Object.keys(n[a]).length?i+="@".concat(a,"(").concat(qo(n[a]),")"):i+="@".concat(a))}),i},{setStringify:function(e){var t=qo;return qo=e,t}});function Lt(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var o=r.name,i=r.value;return en(n,o,i,t)}),n}return null}function Oe(e){return e.alias?e.alias.value:e.name.value}function zo(e,t,n){for(var r,o=0,i=t.selections;o<i.length;o++){var s=i[o];if(Ne(s)){if(s.name.value==="__typename")return e[Oe(s)]}else r?r.push(s):r=[s]}if(typeof e.__typename=="string")return e.__typename;if(r)for(var a=0,c=r;a<c.length;a++){var s=c[a],u=zo(e,Pt(s,n).selectionSet,n);if(typeof u=="string")return u}}function Ne(e){return e.kind==="Field"}function od(e){return e.kind==="InlineFragment"}function tn(e){N(e&&e.kind==="Document",75);var t=e.definitions.filter(function(n){return n.kind!=="FragmentDefinition"}).map(function(n){if(n.kind!=="OperationDefinition")throw te(76,n.kind);return n});return N(t.length<=1,77,t.length),e}function Et(e){return tn(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function Pr(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function jt(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function Go(e){var t=Et(e);return N(t&&t.operation==="query",78),t}function id(e){N(e.kind==="Document",79),N(e.definitions.length<=1,80);var t=e.definitions[0];return N(t.kind==="FragmentDefinition",81),t}function pt(e){tn(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var o=r[n];if(o.kind==="OperationDefinition"){var i=o.operation;if(i==="query"||i==="mutation"||i==="subscription")return o}o.kind==="FragmentDefinition"&&!t&&(t=o)}if(t)return t;throw te(82)}function Un(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(r){r.defaultValue&&en(t,r.variable.name,r.defaultValue)}),t}var ve=null,Sg={},J_=1,ex=()=>class{constructor(){this.id=["slot",J_++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=ve;t;t=t.parent)if(this.id in t.slots){let n=t.slots[this.id];if(n===Sg)break;return t!==ve&&(ve.slots[this.id]=n),!0}return ve&&(ve.slots[this.id]=Sg),!1}getValue(){if(this.hasValue())return ve.slots[this.id]}withValue(t,n,r,o){let i={__proto__:null,[this.id]:t},s=ve;ve={parent:s,slots:i};try{return n.apply(o,r)}finally{ve=s}}static bind(t){let n=ve;return function(){let r=ve;try{return ve=n,t.apply(this,arguments)}finally{ve=r}}}static noContext(t,n,r){if(ve){let o=ve;try{return ve=null,t.apply(r,n)}finally{ve=o}}else return t.apply(r,n)}};function Ng(e){try{return e()}catch(t){}}var sd="@wry/context:Slot",tx=Ng(()=>globalThis)||Ng(()=>global)||Object.create(null),Cg=tx,Bn=Cg[sd]||Array[sd]||(function(e){try{Object.defineProperty(Cg,sd,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(ex());var{bind:Mg,noContext:Ag}=Bn;var Hn=new Bn;var{hasOwnProperty:Rg}=Object.prototype,Wo=Array.from||function(e){let t=[];return e.forEach(n=>t.push(n)),t};function Lr(e){let{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}var Qo=[],ox=100;function jr(e,t){if(!e)throw new Error(t||"assertion failure")}function kg(e,t){let n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Og(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Pg(e){return e.slice(0)}var Lg=(()=>{class e{constructor(n){this.fn=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(this.value.length===1&&!nn(this))return Fg(this),this.value[0]}recompute(n){return jr(!this.recomputing,"already recomputing"),Fg(this),nn(this)?ix(this,n):Og(this.value)}setDirty(){this.dirty||(this.dirty=!0,jg(this),Lr(this))}dispose(){this.setDirty(),$g(this),ad(this,(n,r)=>{n.setDirty(),qg(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=Qo.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&(Wo(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),Qo.push(this.deps),this.deps=null)}}return e.count=0,e})();function Fg(e){let t=Hn.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),nn(e)?Ug(t,e):Bg(t,e),t}function ix(e,t){return $g(e),Hn.withValue(e,sx,[e,t]),cx(e,t)&&ax(e),Og(e.value)}function sx(e,t){e.recomputing=!0;let{normalizeResult:n}=e,r;n&&e.value.length===1&&(r=Pg(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!kg(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(o){}}catch(o){e.value[1]=o}e.recomputing=!1}function nn(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function ax(e){e.dirty=!1,!nn(e)&&Vg(e)}function jg(e){ad(e,Ug)}function Vg(e){ad(e,Bg)}function ad(e,t){let n=e.parents.size;if(n){let r=Wo(e.parents);for(let o=0;o<n;++o)t(r[o],e)}}function Ug(e,t){jr(e.childValues.has(t)),jr(nn(t));let n=!nn(e);if(!e.dirtyChildren)e.dirtyChildren=Qo.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&jg(e)}function Bg(e,t){jr(e.childValues.has(t)),jr(!nn(t));let n=e.childValues.get(t);n.length===0?e.childValues.set(t,Pg(t.value)):kg(n,t.value)||e.setDirty(),Hg(e,t),!nn(e)&&Vg(e)}function Hg(e,t){let n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(Qo.length<ox&&Qo.push(n),e.dirtyChildren=null))}function $g(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{qg(e,n)}),e.forgetDeps(),jr(e.dirtyChildren===null)}function qg(e,t){t.parents.delete(e),e.childValues.delete(t),Hg(e,t)}function cx(e,t){if(typeof e.subscribe=="function")try{Lr(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}var ux={setDirty:!0,dispose:!0,forget:!0};function Yo(e){let t=new Map,n=e&&e.subscribe;function r(o){let i=Hn.getValue();if(i){let s=t.get(o);s||t.set(o,s=new Set),i.dependOn(s),typeof n=="function"&&(Lr(s),s.unsubscribe=n(o))}}return r.dirty=function(i,s){let a=t.get(i);if(a){let c=s&&Rg.call(ux,s)?s:"setDirty";Wo(a).forEach(u=>u[c]()),t.delete(i),Lr(a)}},r}var zg;function lx(...e){return(zg||(zg=new Te(typeof WeakMap=="function"))).lookupArray(e)}var cd=new Set;function Vt(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=lx,normalizeResult:o,subscribe:i,cache:s=Xt}=Object.create(null)){let a=typeof s=="function"?new s(t,f=>f.dispose()):s,c=function(){let f=r.apply(null,n?n.apply(null,arguments):arguments);if(f===void 0)return e.apply(null,arguments);let p=a.get(f);p||(a.set(f,p=new Lg(e)),p.normalizeResult=o,p.subscribe=i,p.forget=()=>a.delete(f));let m=p.recompute(Array.prototype.slice.call(arguments));return a.set(f,p),cd.add(a),Hn.hasValue()||(cd.forEach(v=>v.clean()),cd.clear()),m};Object.defineProperty(c,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:o,subscribe:i,cache:a});function u(f){let p=f&&a.get(f);p&&p.setDirty()}c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))};function l(f){let p=f&&a.get(f);if(p)return p.peek()}c.peekKey=l,c.peek=function(){return l(r.apply(null,arguments))};function d(f){return f?a.delete(f):!1}return c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function dx(e){return e}var Vr=(function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=ma?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(dx,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(o){var i=t(o)?n:r;return i.transformDocument(o)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Te(ft);this.performWork=Vt(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var o=t.getCacheKey(r);if(o)return N(Array.isArray(o),67),n.lookupArray(o)},max:pe["documentTransform.cache"],cache:Dt})}},e.prototype.performWork=function(t){return tn(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e})();var Ko,rn=Object.assign(function(e){var t=Ko.get(e);return t||(t=Kt(e),Ko.set(e,t)),t},{reset:function(){Ko=new kr(pe.print||2e3)}});rn.reset();globalThis.__DEV__!==!1&&va("print",function(){return Ko?Ko.size:0});var ee=Array.isArray;function ye(e){return Array.isArray(e)&&e.length>0}var Gg={kind:T.FIELD,name:{kind:T.NAME,value:"__typename"}};function Qg(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===T.FRAGMENT_SPREAD&&Qg(t[n.name.value],t)})}function fx(e){return Qg(Et(e)||id(e),Ot(jt(e)))?null:e}function px(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var o=t.get(r.name.value);return!o&&n.size&&n.forEach(function(i,s){s(r)&&(o=i)}),o}}function Wg(e){var t=new Map;return function(r){r===void 0&&(r=e);var o=t.get(r);return o||t.set(r,o={variables:new Set,fragmentSpreads:new Set}),o}}function Da(e,t){tn(t);for(var n=Wg(""),r=Wg(""),o=function(h){for(var I=0,E=void 0;I<h.length&&(E=h[I]);++I)if(!ee(E)){if(E.kind===T.OPERATION_DEFINITION)return n(E.name&&E.name.value);if(E.kind===T.FRAGMENT_DEFINITION)return r(E.name.value)}return globalThis.__DEV__!==!1&&N.error(84),null},i=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===T.OPERATION_DEFINITION&&++i;var a=px(e),c=function(h){return ye(h)&&h.map(a).some(function(I){return I&&I.remove})},u=new Map,l=!1,d={enter:function(h){if(c(h.directives))return l=!0,null}},f=Ie(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(h,I,E,_,x){var S=o(x);S&&S.variables.add(h.name.value)}},FragmentSpread:{enter:function(h,I,E,_,x){if(c(h.directives))return l=!0,null;var S=o(x);S&&S.fragmentSpreads.add(h.name.value)}},FragmentDefinition:{enter:function(h,I,E,_){u.set(JSON.stringify(_),h)},leave:function(h,I,E,_){var x=u.get(JSON.stringify(_));if(h===x)return h;if(i>0&&h.selectionSet.selections.every(function(S){return S.kind===T.FIELD&&S.name.value==="__typename"}))return r(h.name.value).removed=!0,l=!0,null}},Directive:{leave:function(h){if(a(h))return l=!0,null}}});if(!l)return t;var p=function(h){return h.transitiveVars||(h.transitiveVars=new Set(h.variables),h.removed||h.fragmentSpreads.forEach(function(I){p(r(I)).transitiveVars.forEach(function(E){h.transitiveVars.add(E)})})),h},m=new Set;f.definitions.forEach(function(h){h.kind===T.OPERATION_DEFINITION?p(n(h.name&&h.name.value)).fragmentSpreads.forEach(function(I){m.add(I)}):h.kind===T.FRAGMENT_DEFINITION&&i===0&&!r(h.name.value).removed&&m.add(h.name.value)}),m.forEach(function(h){p(r(h)).fragmentSpreads.forEach(function(I){m.add(I)})});var v=function(h){return!!(!m.has(h)||r(h).removed)},y={enter:function(h){if(v(h.name.value))return null}};return fx(Ie(f,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(h){if(h.variableDefinitions){var I=p(n(h.name&&h.name.value)).transitiveVars;if(I.size<h.variableDefinitions.length)return g(g({},h),{variableDefinitions:h.variableDefinitions.filter(function(E){return I.has(E.variable.name.value)})})}}}}))}var $n=Object.assign(function(e){return Ie(e,{SelectionSet:{enter:function(t,n,r){if(!(r&&r.kind===T.OPERATION_DEFINITION)){var o=t.selections;if(o){var i=o.some(function(a){return Ne(a)&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)});if(!i){var s=r;if(!(Ne(s)&&s.directives&&s.directives.some(function(a){return a.name.value==="export"})))return g(g({},t),{selections:ge(ge([],o,!0),[Gg],!1)})}}}}}})},{added:function(e){return e===Gg}});function ud(e){var t=pt(e),n=t.operation;if(n==="query")return e;var r=Ie(e,{OperationDefinition:{enter:function(o){return g(g({},o),{operation:"query"})}}});return r}function Zo(e){tn(e);var t=Da([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}var hx=Object.prototype.hasOwnProperty;function ld(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qn(e)}function qn(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Pe,o=1;o<n;++o)t=r.merge(t,e[o]);return t}var mx=function(e,t,n){return this.merge(e[n],t[n])},Pe=(function(){function e(t){t===void 0&&(t=mx),this.reconciler=t,this.isObject=Q,this.pastCopies=new Set}return e.prototype.merge=function(t,n){for(var r=this,o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];return Q(n)&&Q(t)?(Object.keys(n).forEach(function(s){if(hx.call(t,s)){var a=t[s];if(n[s]!==a){var c=r.reconciler.apply(r,ge([t,n,s],o,!1));c!==a&&(t=r.shallowCopyForMerge(t),t[s]=c)}}else t=r.shallowCopyForMerge(t),t[s]=n[s]}),t):n},e.prototype.shallowCopyForMerge=function(t){return Q(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=g({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e})();function gx(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=vx(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vx(e,t){if(e){if(typeof e=="string")return Yg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yg(e,t)}}function Yg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hd(e,t,n){return t&&Kg(e.prototype,t),n&&Kg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var md=function(){return typeof Symbol=="function"},gd=function(e){return md()&&!!Symbol[e]},vd=function(e){return gd(e)?Symbol[e]:"@@"+e};md()&&!gd("observable")&&(Symbol.observable=Symbol("observable"));var yx=vd("iterator"),fd=vd("observable"),Zg=vd("species");function ba(e,t){var n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function Xo(e){var t=e.constructor;return t!==void 0&&(t=t[Zg],t===null&&(t=void 0)),t!==void 0?t:U}function Dx(e){return e instanceof U}function Ur(e){Ur.log?Ur.log(e):setTimeout(function(){throw e})}function Ea(e){Promise.resolve().then(function(){try{e()}catch(t){Ur(t)}})}function Xg(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var n=ba(t,"unsubscribe");n&&n.call(t)}}catch(r){Ur(r)}}function pd(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Ex(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Jg(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function Jg(e,t,n){e._state="running";var r=e._observer;try{var o=ba(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(pd(e),o)o.call(r,n);else throw n;break;case"complete":pd(e),o&&o.call(r);break}}catch(i){Ur(i)}e._state==="closed"?Xg(e):e._state==="running"&&(e._state="ready")}function dd(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],Ea(function(){return Ex(e)});return}Jg(e,t,n)}}var bx=(function(){function e(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var o=new Ix(this);try{this._cleanup=r.call(void 0,o)}catch(i){o.error(i)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(pd(this),Xg(this))},hd(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),Ix=(function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(r){dd(this._subscription,"next",r)},t.error=function(r){dd(this._subscription,"error",r)},t.complete=function(){dd(this._subscription,"complete")},hd(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e})(),U=(function(){function e(n){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof n!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=n}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new bx(r,this._subscriber)},t.forEach=function(r){var o=this;return new Promise(function(i,s){if(typeof r!="function"){s(new TypeError(r+" is not a function"));return}function a(){c.unsubscribe(),i()}var c=o.subscribe({next:function(u){try{r(u,a)}catch(l){s(l),c.unsubscribe()}},error:s,complete:i})})},t.map=function(r){var o=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=Xo(this);return new i(function(s){return o.subscribe({next:function(a){try{a=r(a)}catch(c){return s.error(c)}s.next(a)},error:function(a){s.error(a)},complete:function(){s.complete()}})})},t.filter=function(r){var o=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=Xo(this);return new i(function(s){return o.subscribe({next:function(a){try{if(!r(a))return}catch(c){return s.error(c)}s.next(a)},error:function(a){s.error(a)},complete:function(){s.complete()}})})},t.reduce=function(r){var o=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=Xo(this),s=arguments.length>1,a=!1,c=arguments[1],u=c;return new i(function(l){return o.subscribe({next:function(d){var f=!a;if(a=!0,!f||s)try{u=r(u,d)}catch(p){return l.error(p)}else u=d},error:function(d){l.error(d)},complete:function(){if(!a&&!s)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(u),l.complete()}})})},t.concat=function(){for(var r=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];var a=Xo(this);return new a(function(c){var u,l=0;function d(f){u=f.subscribe({next:function(p){c.next(p)},error:function(p){c.error(p)},complete:function(){l===i.length?(u=void 0,c.complete()):d(a.from(i[l++]))}})}return d(r),function(){u&&(u.unsubscribe(),u=void 0)}})},t.flatMap=function(r){var o=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=Xo(this);return new i(function(s){var a=[],c=o.subscribe({next:function(l){if(r)try{l=r(l)}catch(f){return s.error(f)}var d=i.from(l).subscribe({next:function(f){s.next(f)},error:function(f){s.error(f)},complete:function(){var f=a.indexOf(d);f>=0&&a.splice(f,1),u()}});a.push(d)},error:function(l){s.error(l)},complete:function(){u()}});function u(){c.closed&&a.length===0&&s.complete()}return function(){a.forEach(function(l){return l.unsubscribe()}),c.unsubscribe()}})},t[fd]=function(){return this},e.from=function(r){var o=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var i=ba(r,fd);if(i){var s=i.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return Dx(s)&&s.constructor===o?s:new o(function(a){return s.subscribe(a)})}if(gd("iterator")&&(i=ba(r,yx),i))return new o(function(a){Ea(function(){if(!a.closed){for(var c=gx(i.call(r)),u;!(u=c()).done;){var l=u.value;if(a.next(l),a.closed)return}a.complete()}})});if(Array.isArray(r))return new o(function(a){Ea(function(){if(!a.closed){for(var c=0;c<r.length;++c)if(a.next(r[c]),a.closed)return;a.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s=typeof this=="function"?this:e;return new s(function(a){Ea(function(){if(!a.closed){for(var c=0;c<o.length;++c)if(a.next(o[c]),a.closed)return;a.complete()}})})},hd(e,null,[{key:Zg,get:function(){return this}}]),e})();md()&&Object.defineProperty(U,Symbol("extensions"),{value:{symbol:fd,hostReportError:Ur},configurable:!0});function yd(e){var t,n=e.Symbol;if(typeof n=="function")if(n.observable)t=n.observable;else{typeof n.for=="function"?t=n.for("https://github.com/benlesh/symbol-observable"):t=n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch(r){}}else t="@@observable";return t}var Br;typeof self<"u"?Br=self:typeof window<"u"?Br=window:typeof global<"u"?Br=global:typeof module<"u"?Br=module:Br=Function("return this")();var r$=yd(Br);var ev=U.prototype,tv="@@observable";ev[tv]||(ev[tv]=function(){return this});var wx=Object.prototype.toString;function Ia(e){return Dd(e)}function Dd(e,t){switch(wx.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(o,i){n[i]=Dd(o,t)}),n}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(o){r[o]=Dd(e[o],t)}),r}default:return e}}function _x(e){var t=new Set([e]);return t.forEach(function(n){Q(n)&&xx(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){Q(n[r])&&t.add(n[r])})}),e}function xx(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function Jo(e){return globalThis.__DEV__!==!1&&_x(e),e}function zn(e,t,n){var r=[];e.forEach(function(o){return o[t]&&r.push(o)}),r.forEach(function(o){return o[t](n)})}function wa(e,t,n){return new U(function(r){var o={then:function(c){return new Promise(function(u){return u(c())})}};function i(c,u){return function(l){if(c){var d=function(){return r.closed?0:c(l)};o=o.then(d,d).then(function(f){return r.next(f)},function(f){return r.error(f)})}else r[u](l)}}var s={next:i(t,"next"),error:i(n,"error"),complete:function(){o.then(function(){return r.complete()})}},a=e.subscribe(s);return function(){return a.unsubscribe()}})}function _a(e){function t(n){Object.defineProperty(e,n,{value:U})}return Kl&&Symbol.species&&t(Symbol.species),t("@@species"),e}function nv(e){return e&&typeof e.then=="function"}var Gn=(function(e){he(t,e);function t(n){var r=e.call(this,function(o){return r.addObserver(o),function(){return r.removeObserver(o)}})||this;return r.observers=new Set,r.promise=new Promise(function(o,i){r.resolve=o,r.reject=i}),r.handlers={next:function(o){r.sub!==null&&(r.latest=["next",o],r.notify("next",o),zn(r.observers,"next",o))},error:function(o){var i=r.sub;i!==null&&(i&&setTimeout(function(){return i.unsubscribe()}),r.sub=null,r.latest=["error",o],r.reject(o),r.notify("error",o),zn(r.observers,"error",o))},complete:function(){var o=r,i=o.sub,s=o.sources,a=s===void 0?[]:s;if(i!==null){var c=a.shift();c?nv(c)?c.then(function(u){return r.sub=u.subscribe(r.handlers)},r.handlers.error):r.sub=c.subscribe(r.handlers):(i&&setTimeout(function(){return i.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),zn(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(o){r.reject(o),r.sources=[],r.handlers.complete()},r.promise.catch(function(o){}),typeof n=="function"&&(n=[new U(n)]),nv(n)?n.then(function(o){return r.start(o)},r.handlers.error):r.start(n),r}return t.prototype.start=function(n){this.sub===void 0&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],o=n[r];o&&o.call(n,this.latest[1]),this.sub===null&&r==="next"&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,r){var o=this.nextResultListeners;o.size&&(this.nextResultListeners=new Set,o.forEach(function(i){return i(n,r)}))},t.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(o,i){r||(r=!0,n(o,i))})},t})(U);_a(Gn);function on(e){return"incremental"in e}function Tx(e){return"hasNext"in e&&"data"in e}function rv(e){return on(e)||Tx(e)}function ov(e){return Q(e)&&"payload"in e}function xa(e,t){var n=e,r=new Pe;return on(t)&&ye(t.incremental)&&t.incremental.forEach(function(o){for(var i=o.data,s=o.path,a=s.length-1;a>=0;--a){var c=s[a],u=!isNaN(+c),l=u?[]:{};l[c]=i,i=l}n=r.merge(n,i)}),n}function Hr(e){var t=Ta(e);return ye(t)}function Ta(e){var t=ye(e.errors)?e.errors.slice(0):[];return on(e)&&ye(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(r){r&&Object.keys(r).forEach(function(o){var i=r[o];i!==void 0&&(n[o]=i)})}),n}function ei(e,t){return bt(e,t,t.variables&&{variables:bt(g(g({},e&&e.variables),t.variables))})}function ti(e){return new U(function(t){t.error(e)})}var Sa=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function Ed(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw te(43,o)}return e}function bd(e,t){var n=g({},e),r=function(i){typeof i=="function"?n=g(g({},n),i(n)):n=g(g({},n),i)},o=function(){return g({},n)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:r}),Object.defineProperty(t,"getContext",{enumerable:!1,value:o}),t}function Id(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?Pr(t.query)||void 0:""),t}function wd(e,t){var n=g({},e),r=new Set(Object.keys(e));return Ie(t,{Variable:function(o,i,s){s&&s.kind!=="VariableDefinition"&&r.delete(o.name.value)}}),r.forEach(function(o){delete n[o]}),n}function iv(e,t){return t?t(e):U.of()}function ni(e){return typeof e=="function"?new Je(e):e}function Na(e){return e.request.length<=1}var Je=(function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return U.of()})},e.from=function(t){return t.length===0?e.empty():t.map(ni).reduce(function(n,r){return n.concat(r)})},e.split=function(t,n,r){var o=ni(n),i=ni(r||new e(iv)),s;return Na(o)&&Na(i)?s=new e(function(a){return t(a)?o.request(a)||U.of():i.request(a)||U.of()}):s=new e(function(a,c){return t(a)?o.request(a,c)||U.of():i.request(a,c)||U.of()}),Object.assign(s,{left:o,right:i})},e.execute=function(t,n){return t.request(bd(n.context,Id(Ed(n))))||U.of()},e.concat=function(t,n){var r=ni(t);if(Na(r))return globalThis.__DEV__!==!1&&N.warn(35,r),r;var o=ni(n),i;return Na(o)?i=new e(function(s){return r.request(s,function(a){return o.request(a)||U.of()})||U.of()}):i=new e(function(s,a){return r.request(s,function(c){return o.request(c,a)||U.of()})||U.of()}),Object.assign(i,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(iv)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,n){throw te(36)},e.prototype.onError=function(t,n){if(n&&n.error)return n.error(t),!1;throw t},e.prototype.setOnError=function(t){return this.onError=t,this},e})();var $r=Je.execute;function _d(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function xd(e){var t=null,n=null,r=!1,o=[],i=[];function s(d){if(!n){if(i.length){var f=i.shift();if(Array.isArray(f)&&f[0])return f[0]({value:d,done:!1})}o.push(d)}}function a(d){n=d;var f=i.slice();f.forEach(function(p){p[1](d)}),!t||t()}function c(){r=!0;var d=i.slice();d.forEach(function(f){f[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",a),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",a),e.on("end",c),e.on("finish",c),e.on("close",c);function u(){return new Promise(function(d,f){if(n)return f(n);if(o.length)return d({value:o.shift(),done:!1});if(r)return d({value:void 0,done:!0});i.push([d,f])})}var l={next:function(){return u()}};return Zt&&(l[Symbol.asyncIterator]=function(){return this}),l}function Td(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(r,o){e.then(function(i){r({value:i,done:!1})}).catch(o)}))}};return Zt&&(n[Symbol.asyncIterator]=function(){return this}),n}function Ca(e){var t={next:function(){return e.read()}};return Zt&&(t[Symbol.asyncIterator]=function(){return this}),t}function Sx(e){return!!e.body}function Nx(e){return!!e.getReader}function Cx(e){return!!(Zt&&e[Symbol.asyncIterator])}function Mx(e){return!!e.stream}function Ax(e){return!!e.arrayBuffer}function Rx(e){return!!e.pipe}function sv(e){var t=e;if(Sx(e)&&(t=e.body),Cx(t))return _d(t);if(Nx(t))return Ca(t.getReader());if(Mx(t))return Ca(t.stream().getReader());if(Ax(t))return Td(t.arrayBuffer());if(Rx(t))return xd(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var ri=Symbol();function av(e){return e.extensions?Array.isArray(e.extensions[ri]):!1}function cv(e){return e.hasOwnProperty("graphQLErrors")}var Fx=function(e){var t=ge(ge(ge([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return Q(n)&&n.message||"Error message not found."}).join(`
`)},Wn=(function(e){he(t,e);function t(n){var r=n.graphQLErrors,o=n.protocolErrors,i=n.clientErrors,s=n.networkError,a=n.errorMessage,c=n.extraInfo,u=e.call(this,a)||this;return u.name="ApolloError",u.graphQLErrors=r||[],u.protocolErrors=o||[],u.clientErrors=i||[],u.networkError=s||null,u.message=a||Fx(u),u.extraInfo=c,u.__proto__=t.prototype,u}return t})(Error);var uv=Object.prototype.hasOwnProperty;function lv(e,t){return je(this,void 0,void 0,function(){var n,r,o,i,s,a,c,u,l,d,f,p,m,v,y,h,I,E,_,x,S,A,k,J;return tt(this,function(oe){switch(oe.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=(J=e.headers)===null||J===void 0?void 0:J.get("content-type"),o="boundary=",i=r?.includes(o)?r?.substring(r?.indexOf(o)+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s=`\r
--`.concat(i),a="",c=sv(e),u=!0,oe.label=1;case 1:return u?[4,c.next()]:[3,3];case 2:for(l=oe.sent(),d=l.value,f=l.done,p=typeof d=="string"?d:n.decode(d),m=a.length-s.length+1,u=!f,a+=p,v=a.indexOf(s,m);v>-1;){if(y=void 0,A=[a.slice(0,v),a.slice(v+s.length)],y=A[0],a=A[1],h=y.indexOf(`\r
\r
`),I=kx(y.slice(0,h)),E=I["content-type"],E&&E.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(_=y.slice(h),_){if(x=dv(e,_),Object.keys(x).length>1||"data"in x||"incremental"in x||"errors"in x||"payload"in x)if(ov(x)){if(S={},"payload"in x){if(Object.keys(x).length===1&&x.payload===null)return[2];S=g({},x.payload)}"errors"in x&&(S=g(g({},S),{extensions:g(g({},"extensions"in S?S.extensions:null),(k={},k[ri]=x.errors,k))})),t(S)}else t(x);else if(Object.keys(x).length===1&&"hasNext"in x&&!x.hasNext)return[2]}v=a.indexOf(s)}return[3,1];case 3:return[2]}})})}function kx(e){var t={};return e.split(`
`).forEach(function(n){var r=n.indexOf(":");if(r>-1){var o=n.slice(0,r).trim().toLowerCase(),i=n.slice(r+1).trim();t[o]=i}}),t}function dv(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch(o){return t}};Sa(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(o){var r=o;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function fv(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function pv(e){return function(t){return t.text().then(function(n){return dv(t,n)}).then(function(n){return!Array.isArray(n)&&!uv.call(n,"data")&&!uv.call(n,"errors")&&Sa(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var oi=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var r=te(39,t,o.message);throw r.parseError=o,r}return n};var Ox={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Px={accept:"*/*","content-type":"application/json"},Lx={method:"POST"},hv={http:Ox,headers:Px,options:Lx},mv=function(e,t){return t(e)};function gv(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={},i={};n.forEach(function(d){o=g(g(g({},o),d.options),{headers:g(g({},o.headers),d.headers)}),d.credentials&&(o.credentials=d.credentials),i=g(g({},i),d.http)}),o.headers&&(o.headers=jx(o.headers,i.preserveHeaderCase));var s=e.operationName,a=e.extensions,c=e.variables,u=e.query,l={operationName:s,variables:c};return i.includeExtensions&&(l.extensions=a),i.includeQuery&&(l.query=t(u,rn)),{options:o,body:l}}function jx(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach(function(i){n[i.toLowerCase()]=e[i]}),n}var r=Object.create(null);Object.keys(Object(e)).forEach(function(i){r[i.toLowerCase()]={originalName:i,value:e[i]}});var o=Object.create(null);return Object.keys(r).forEach(function(i){o[r[i].originalName]=r[i].value}),o}var vv=function(e){if(!e&&typeof fetch>"u")throw te(37)};var yv=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function Dv(e,t){var n=[],r=function(d,f){n.push("".concat(d,"=").concat(encodeURIComponent(f)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=oi(t.variables,"Variables map")}catch(d){return{parseError:d}}r("variables",o)}if(t.extensions){var i=void 0;try{i=oi(t.extensions,"Extensions map")}catch(d){return{parseError:d}}r("extensions",i)}var s="",a=e,c=e.indexOf("#");c!==-1&&(s=e.substr(c),a=e.substr(0,c));var u=a.indexOf("?")===-1?"?":"&",l=a+u+n.join("&")+s;return{newURI:l}}var Ev=be(function(){return fetch}),bv=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,o=e.print,i=o===void 0?mv:o,s=e.includeExtensions,a=e.preserveHeaderCase,c=e.useGETForQueries,u=e.includeUnusedVariables,l=u===void 0?!1:u,d=Le(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&vv(r||Ev);var f={http:{includeExtensions:s,preserveHeaderCase:a},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Je(function(p){var m=yv(p,n),v=p.getContext(),y={};if(v.clientAwareness){var h=v.clientAwareness,I=h.name,E=h.version;I&&(y["apollographql-client-name"]=I),E&&(y["apollographql-client-version"]=E)}var _=g(g({},y),v.headers),x={http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:_};if(kt(["client"],p.query)){var S=Zo(p.query);if(!S)return ti(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));p.query=S}var A=gv(p,i,hv,f,x),k=A.options,J=A.body;J.variables&&!l&&(J.variables=wd(J.variables,p.query));var oe;!k.signal&&typeof AbortController<"u"&&(oe=new AbortController,k.signal=oe.signal);var D=function(we){return we.kind==="OperationDefinition"&&we.operation==="mutation"},w=function(we){return we.kind==="OperationDefinition"&&we.operation==="subscription"},M=w(pt(p.query)),$=kt(["defer"],p.query);if(c&&!p.query.definitions.some(D)&&(k.method="GET"),$||M){k.headers=k.headers||{};var ne="multipart/mixed;";M&&$&&globalThis.__DEV__!==!1&&N.warn(38),M?ne+="boundary=graphql;subscriptionSpec=1.0,application/json":$&&(ne+="deferSpec=20220824,application/json"),k.headers.accept=ne}if(k.method==="GET"){var H=Dv(m,J),Yn=H.newURI,Kn=H.parseError;if(Kn)return ti(Kn);m=Yn}else try{k.body=oi(J,"Payload")}catch(we){return ti(we)}return new U(function(we){var le=r||be(function(){return fetch})||Ev,mt=we.next.bind(we);return le(m,k).then(function(Zn){var nc;p.setContext({response:Zn});var uf=(nc=Zn.headers)===null||nc===void 0?void 0:nc.get("content-type");return uf!==null&&/^multipart\/mixed/i.test(uf)?lv(Zn,mt):pv(p)(Zn).then(mt)}).then(function(){oe=void 0,we.complete()}).catch(function(Zn){oe=void 0,fv(Zn,we)}),function(){oe&&oe.abort()}})})};var ii=(function(e){he(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,bv(n).request)||this;return r.options=n,r}return t})(Je);var{toString:Iv,hasOwnProperty:Vx}=Object.prototype,wv=Function.prototype.toString,Sd=new Map;function X(e,t){try{return Nd(e,t)}finally{Sd.clear()}}var Cd=X;function Nd(e,t){if(e===t)return!0;let n=Iv.call(e),r=Iv.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(xv(e,t))return!0;let o=_v(e),i=_v(t),s=o.length;if(s!==i.length)return!1;for(let a=0;a<s;++a)if(!Vx.call(t,o[a]))return!1;for(let a=0;a<s;++a){let c=o[a];if(!Nd(e[c],t[c]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(xv(e,t))return!0;let o=e.entries(),i=n==="[object Map]";for(;;){let s=o.next();if(s.done)break;let[a,c]=s.value;if(!t.has(a)||i&&!Nd(c,t.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let o=e.byteLength;if(o===t.byteLength)for(;o--&&e[o]===t[o];);return o===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let o=wv.call(e);return o!==wv.call(t)?!1:!Hx(o,Bx)}}return!1}function _v(e){return Object.keys(e).filter(Ux,e)}function Ux(e){return this[e]!==void 0}var Bx="{ [native code] }";function Hx(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function xv(e,t){let n=Sd.get(e);if(n){if(n.has(t))return!0}else Sd.set(e,n=new Set);return n.add(t),!1}function Aa(e,t,n,r){var o=t.data,i=Le(t,["data"]),s=n.data,a=Le(n,["data"]);return Cd(i,a)&&Ma(pt(e).selectionSet,o,s,{fragmentMap:Ot(jt(e)),variables:r})}function Ma(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every(function(i){if(o.has(i)||(o.add(i),!dt(i,r.variables))||Tv(i))return!0;if(Ne(i)){var s=Oe(i),a=t&&t[s],c=n&&n[s],u=i.selectionSet;if(!u)return Cd(a,c);var l=Array.isArray(a),d=Array.isArray(c);if(l!==d)return!1;if(l&&d){var f=a.length;if(c.length!==f)return!1;for(var p=0;p<f;++p)if(!Ma(u,a[p],c[p],r))return!1;return!0}return Ma(u,a,c,r)}else{var m=Pt(i,r.fragmentMap);if(m)return Tv(m)?!0:Ma(m.selectionSet,t,n,r)}})}function Tv(e){return!!e.directives&&e.directives.some($x)}function $x(e){return e.name.value==="nonreactive"}var Ra=(function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Vt(Zl,{max:pe["cache.fragmentQueryDocuments"]||1e3,cache:Dt})}return e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,o;return this.performTransaction(function(){return o=t.update(n)},r),o},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(g(g({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.watchFragment=function(t){var n=this,r=t.fragment,o=t.fragmentName,i=t.from,s=t.optimistic,a=s===void 0?!0:s,c=this.getFragmentDoc(r,o),u={returnPartialData:!0,id:typeof i=="string"?i:this.identify(i),query:c,optimistic:a},l;return new U(function(d){return n.watch(g(g({},u),{immediate:!0,callback:function(f){if(!(l&&Aa(c,{data:l?.result},{data:f.result}))){var p={data:f.result,complete:!!f.complete};f.missing&&(p.missing=qn(f.missing.map(function(m){return m.missing}))),l=f,d.next(p)}}}))})},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(g(g({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,o=Le(t,["id","data"]);return this.write(Object.assign(o,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,o=t.fragment,i=t.fragmentName,s=Le(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(o,i),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var o=r.readQuery(t),i=n(o);return i==null?o:(r.writeQuery(g(g({},t),{data:i})),i)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var o=r.readFragment(t),i=n(o);return i==null?o:(r.writeFragment(g(g({},t),{data:i})),i)}})},e})();globalThis.__DEV__!==!1&&(Ra.prototype.getMemoryInternals=wg);var si=(function(e){he(t,e);function t(n,r,o,i){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=o,a.variables=i,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=(s={},s[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return t})(Error);var ae=Object.prototype.hasOwnProperty;function ai(e){return e==null}function ka(e,t){var n=e.__typename,r=e.id,o=e._id;if(typeof n=="string"&&(t&&(t.keyObject=ai(r)?ai(o)?void 0:{_id:o}:{id:r}),ai(r)&&!ai(o)&&(r=o),!ai(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var Sv={dataIdFromObject:ka,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Nv(e){return bt(Sv,e)}function Oa(e){var t=e.canonizeResults;return t===void 0?Sv.canonizeResults:t}function Cv(e,t){return B(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var Md=/^[_a-z][_0-9a-z]*/i;function ht(e){var t=e.match(Md);return t?t[0]:e}function Fa(e,t,n){return Q(t)?ee(t)?t.every(function(r){return Fa(e,r,n)}):e.selections.every(function(r){if(Ne(r)&&dt(r,n)){var o=Oe(r);return ae.call(t,o)&&(!r.selectionSet||Fa(r.selectionSet,t[o],n))}return!0}):!1}function sn(e){return Q(e)&&!B(e)&&!ee(e)}function Mv(){return new Pe}function Pa(e,t){var n=Ot(jt(e));return{fragmentMap:n,lookupFragment:function(r){var o=n[r];return!o&&t&&(o=t.lookup(r)),o||null}}}var La=Object.create(null),Ad=function(){return La},Av=Object.create(null),qr=(function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,i){return Jo(B(o)?r.get(o.__ref,i):o&&o[i])},this.canRead=function(o){return B(o)?r.has(o.__ref):typeof o=="object"},this.toReference=function(o,i){if(typeof o=="string")return Xe(o);if(B(o))return o;var s=r.policies.identify(o)[0];if(s){var a=Xe(s);return i&&r.merge(s,o),a}}}return e.prototype.toObject=function(){return g({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),ae.call(this.data,t)){var r=this.data[t];if(r&&ae.call(r,n))return r[n]}if(n==="__typename"&&ae.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof an)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),ae.call(this.data,t))return this.data[t];if(this instanceof an)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,o;B(t)&&(t=t.__ref),B(n)&&(n=n.__ref);var i=typeof t=="string"?this.lookup(o=t):t,s=typeof n=="string"?this.lookup(o=n):n;if(s){N(typeof o=="string",1);var a=new Pe(zx).merge(i,s);if(this.data[o]=a,a!==i&&(delete this.refs[o],this.group.caching)){var c=Object.create(null);i||(c.__exists=1),Object.keys(s).forEach(function(u){if(!i||i[u]!==a[u]){c[u]=1;var l=ht(u);l!==u&&!r.policies.hasKeyArgs(a.__typename,l)&&(c[l]=1),a[u]===void 0&&!(r instanceof an)&&delete a[u]}}),c.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[o]===a.__typename&&delete c.__typename,Object.keys(c).forEach(function(u){return r.group.dirty(o,u)})}}},e.prototype.modify=function(t,n){var r=this,o=this.lookup(t);if(o){var i=Object.create(null),s=!1,a=!0,c={DELETE:La,INVALIDATE:Av,isReference:B,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField(typeof u=="string"?{fieldName:u,from:l||Xe(t)}:u,{store:r})}};if(Object.keys(o).forEach(function(u){var l=ht(u),d=o[u];if(d!==void 0){var f=typeof n=="function"?n:n[u]||n[l];if(f){var p=f===Ad?La:f(Jo(d),g(g({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));if(p===Av)r.group.dirty(t,u);else if(p===La&&(p=void 0),p!==d&&(i[u]=p,s=!0,d=p,globalThis.__DEV__!==!1)){var m=function(x){if(r.lookup(x.__ref)===void 0)return globalThis.__DEV__!==!1&&N.warn(2,x),!0};if(B(p))m(p);else if(Array.isArray(p))for(var v=!1,y=void 0,h=0,I=p;h<I.length;h++){var E=I[h];if(B(E)){if(v=!0,m(E))break}else if(typeof E=="object"&&E){var _=r.policies.identify(E)[0];_&&(y=E)}if(v&&y!==void 0){globalThis.__DEV__!==!1&&N.warn(3,y);break}}}}d!==void 0&&(a=!1)}}),s)return this.merge(t,i),a&&(this instanceof an?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var o,i=this.lookup(t);if(i){var s=this.getFieldValue(i,"__typename"),a=n&&r?this.policies.getStoreFieldName({typename:s,fieldName:n,args:r}):n;return this.modify(t,a?(o={},o[a]=Ad,o):Ad)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(ae.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof an&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(o){ae.call(t.policies.rootTypenamesById,o)||r.push(o)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(i){t&&ae.call(t,i)||n.delete(i)}),t){var r=t.__META,o=Le(t,["__META"]);Object.keys(o).forEach(function(i){n.merge(i,o[i])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof an?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(s){ae.call(r,s)&&(Object.keys(t.findChildRefIds(s)).forEach(n.add,n),delete r[s])});var o=Object.keys(r);if(o.length){for(var i=this;i instanceof an;)i=i.parent;o.forEach(function(s){return i.delete(s)})}return o},e.prototype.findChildRefIds=function(t){if(!ae.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var o=new Set([r]);o.forEach(function(i){B(i)&&(n[i.__ref]=!0),Q(i)&&Object.keys(i).forEach(function(s){var a=i[s];Q(a)&&o.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e})();var Rv=(function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Yo():null,this.keyMaker=new Te(ft)},e.prototype.depend=function(t,n){if(this.d){this.d(Rd(t,n));var r=ht(n);r!==n&&this.d(Rd(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(Rd(t,n),n==="__exists"?"forget":"setDirty")},e})();function Rd(e,t){return t+"#"+e}function Fd(e,t){Qn(e)&&e.group.depend(t,"__exists")}(function(e){var t=(function(n){he(r,n);function r(o){var i=o.policies,s=o.resultCaching,a=s===void 0?!0:s,c=o.seed,u=n.call(this,i,new Rv(a))||this;return u.stump=new qx(u),u.storageTrie=new Te(ft),c&&u.replace(c),u}return r.prototype.addLayer=function(o,i){return this.stump.addLayer(o,i)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r})(e);e.Root=t})(qr||(qr={}));var an=(function(e){he(t,e);function t(n,r,o,i){var s=e.call(this,r.policies,i)||this;return s.id=n,s.parent=r,s.replay=o,s.group=i,o(s),s}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,o=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(i){var s=r.data[i],a=o.lookup(i);a?s?s!==a&&Object.keys(s).forEach(function(c){X(s[c],a[c])||r.group.dirty(i,c)}):(r.group.dirty(i,"__exists"),Object.keys(a).forEach(function(c){r.group.dirty(i,c)})):r.delete(i)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return g(g({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return ae.call(this.data,n)?g(g({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t})(qr),qx=(function(e){he(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new Rv(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t})(an);function zx(e,t,n){var r=e[n],o=t[n];return X(r,o)?r:o}function Qn(e){return!!(e instanceof qr&&e.group.caching)}function Gx(e){return Q(e)?ee(e)?e.slice(0):g({__proto__:Object.getPrototypeOf(e)},e):e}var kd=(function(){function e(){this.known=new(ma?WeakSet:Set),this.pool=new Te(ft),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return Q(t)&&this.known.has(t)},e.prototype.pass=function(t){if(Q(t)){var n=Gx(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(Q(t)){var r=this.passes.get(t);if(r)return r;var o=Object.getPrototypeOf(t);switch(o){case Array.prototype:{if(this.known.has(t))return t;var i=t.map(this.admit,this),s=this.pool.lookupArray(i);return s.array||(this.known.add(s.array=i),globalThis.__DEV__!==!1&&Object.freeze(i)),s.array}case null:case Object.prototype:{if(this.known.has(t))return t;var a=Object.getPrototypeOf(t),c=[a],u=this.sortedKeys(t);c.push(u.json);var l=c.length;u.sorted.forEach(function(p){c.push(n.admit(t[p]))});var s=this.pool.lookupArray(c);if(!s.object){var d=s.object=Object.create(a);this.known.add(d),u.sorted.forEach(function(p,m){d[p]=c[l+m]}),globalThis.__DEV__!==!1&&Object.freeze(d)}return s.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var o=JSON.stringify(n);(r.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,r.keys={sorted:n,json:o})}return r.keys},e})();function Fv(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var kv=(function(){function e(t){var n=this;this.knownResults=new(ft?WeakMap:Map),this.config=bt(t,{addTypename:t.addTypename!==!1,canonizeResults:Oa(t)}),this.canon=t.canon||new kd,this.executeSelectionSet=Vt(function(r){var o,i=r.context.canonizeResults,s=Fv(r);s[3]=!i;var a=(o=n.executeSelectionSet).peek.apply(o,s);return a?i?g(g({},a),{result:n.canon.admit(a.result)}):a:(Fd(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||pe["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Fv,makeCacheKey:function(r,o,i,s){if(Qn(i.store))return i.store.makeCacheKey(r,B(o)?o.__ref:o,i.varString,s)}}),this.executeSubSelectedArray=Vt(function(r){return Fd(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||pe["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var o=r.field,i=r.array,s=r.context;if(Qn(s.store))return s.store.makeCacheKey(o,i,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new kd},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,o=t.rootId,i=o===void 0?"ROOT_QUERY":o,s=t.variables,a=t.returnPartialData,c=a===void 0?!0:a,u=t.canonizeResults,l=u===void 0?this.config.canonizeResults:u,d=this.config.cache.policies;s=g(g({},Un(Go(r))),s);var f=Xe(i),p=this.executeSelectionSet({selectionSet:pt(r).selectionSet,objectOrReference:f,enclosingRef:f,context:g({store:n,query:r,policies:d,variables:s,varString:Se(s),canonizeResults:l},Pa(r,this.config.fragments))}),m;if(p.missing&&(m=[new si(Wx(p.missing),p.missing,r,s)],!c))throw m[0];return{result:p.result,complete:!m,missing:m}},e.prototype.isFresh=function(t,n,r,o){if(Qn(o.store)&&this.knownResults.get(t)===r){var i=this.executeSelectionSet.peek(r,n,o,this.canon.isKnown(t));if(i&&t===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,o=t.objectOrReference,i=t.enclosingRef,s=t.context;if(B(o)&&!s.policies.rootTypenamesById[o.__ref]&&!s.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var a=s.variables,c=s.policies,u=s.store,l=u.getFieldValue(o,"__typename"),d=[],f,p=new Pe;this.config.addTypename&&typeof l=="string"&&!c.rootIdsByTypename[l]&&d.push({__typename:l});function m(E,_){var x;return E.missing&&(f=p.merge(f,(x={},x[_]=E.missing,x))),E.result}var v=new Set(r.selections);v.forEach(function(E){var _,x;if(dt(E,a))if(Ne(E)){var S=c.readField({fieldName:E.name.value,field:E,variables:s.variables,from:o},s),A=Oe(E);S===void 0?$n.added(E)||(f=p.merge(f,(_={},_[A]="Can't find field '".concat(E.name.value,"' on ").concat(B(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),_))):ee(S)?S.length>0&&(S=m(n.executeSubSelectedArray({field:E,array:S,enclosingRef:i,context:s}),A)):E.selectionSet?S!=null&&(S=m(n.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:S,enclosingRef:B(S)?S:i,context:s}),A)):s.canonizeResults&&(S=n.canon.pass(S)),S!==void 0&&d.push((x={},x[A]=S,x))}else{var k=Pt(E,s.lookupFragment);if(!k&&E.kind===T.FRAGMENT_SPREAD)throw te(9,E.name.value);k&&c.fragmentMatches(k,l)&&k.selectionSet.selections.forEach(v.add,v)}});var y=qn(d),h={result:y,missing:f},I=s.canonizeResults?this.canon.admit(h):Jo(h);return I.result&&this.knownResults.set(I.result,r),I},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,o=t.array,i=t.enclosingRef,s=t.context,a,c=new Pe;function u(l,d){var f;return l.missing&&(a=c.merge(a,(f={},f[d]=l.missing,f))),l.result}return r.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(l,d){return l===null?null:ee(l)?u(n.executeSubSelectedArray({field:r,array:l,enclosingRef:i,context:s}),d):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:l,enclosingRef:B(l)?l:i,context:s}),d):(globalThis.__DEV__!==!1&&Qx(s.store,r,l),l)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:a}},e})();function Wx(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function Qx(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(o){Q(o)&&(N(!B(o),10,Cv(e,o),t.name.value),Object.values(o).forEach(r.add,r))})}}var zr=new Bn,Ov=new WeakMap;function ci(e){var t=Ov.get(e);return t||Ov.set(e,t={vars:new Set,dep:Yo()}),t}function Od(e){ci(e).vars.forEach(function(t){return t.forgetCache(e)})}function Pv(e){ci(e).vars.forEach(function(t){return t.attachCache(e)})}function ja(e){var t=new Set,n=new Set,r=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach(function(c){ci(c).dep.dirty(r),Yx(c)});var s=Array.from(n);n.clear(),s.forEach(function(c){return c(e)})}}else{var a=zr.getValue();a&&(o(a),ci(a).dep(r))}return e};r.onNextChange=function(i){return n.add(i),function(){n.delete(i)}};var o=r.attachCache=function(i){return t.add(i),ci(i).vars.add(r),r};return r.forgetCache=function(i){return t.delete(i)},r}function Yx(e){e.broadcastWatches&&e.broadcastWatches()}var Lv=Object.create(null);function Pd(e){var t=JSON.stringify(e);return Lv[t]||(Lv[t]=Object.create(null))}function Ld(e){var t=Pd(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var o=function(s,a){return r.readField(a,s)},i=r.keyObject=Vd(e,function(s){var a=Gr(r.storeObject,s,o);return a===void 0&&n!==r.storeObject&&ae.call(n,s[0])&&(a=Gr(n,s,Vv)),N(a!==void 0,4,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function jd(e){var t=Pd(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var o=r.field,i=r.variables,s=r.fieldName,a=Vd(e,function(u){var l=u[0],d=l.charAt(0);if(d==="@"){if(o&&ye(o.directives)){var f=l.slice(1),p=o.directives.find(function(h){return h.name.value===f}),m=p&&Lt(p,i);return m&&Gr(m,u.slice(1))}return}if(d==="$"){var v=l.slice(1);if(i&&ae.call(i,v)){var y=u.slice(0);return y[0]=v,Gr(i,y)}return}if(n)return Gr(n,u)}),c=JSON.stringify(a);return(n||c!=="{}")&&(s+=":"+c),s})}function Vd(e,t){var n=new Pe;return jv(e).reduce(function(r,o){var i,s=t(o);if(s!==void 0){for(var a=o.length-1;a>=0;--a)s=(i={},i[o[a]]=s,i);r=n.merge(r,s)}return r},Object.create(null))}function jv(e){var t=Pd(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(o,i){ee(o)?(jv(o).forEach(function(s){return n.push(r.concat(s))}),r.length=0):(r.push(o),ee(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Vv(e,t){return e[t]}function Gr(e,t,n){return n=n||Vv,Uv(t.reduce(function r(o,i){return ee(o)?o.map(function(s){return r(s,i)}):o&&n(o,i)},e))}function Uv(e){return Q(e)?ee(e)?e.map(Uv):Vd(Object.keys(e).sort(),function(t){return Gr(e,t)}):e}function Ud(e){return e.args!==void 0?e.args:e.field?Lt(e.field,e.variables):null}var Kx=function(){},Bv=function(e,t){return t.fieldName},Hv=function(e,t,n){var r=n.mergeObjects;return r(e,t)},$v=function(e,t){return t},zv=(function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=g({dataIdFromObject:ka},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,o=this,i=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=n&&n.storeObject||t,a=g(g({},n),{typename:i,storeObject:s,readField:n&&n.readField||function(){var f=Va(arguments,s);return o.readField(f,{store:o.cache.data,variables:f.variables})}}),c,u=i&&this.getTypePolicy(i),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var d=l(g(g({},t),s),a);if(ee(d))l=Ld(d);else{c=d;break}}return c=c?String(c):void 0,a.keyObject?[c,a.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var o=t[r],i=o.queryType,s=o.mutationType,a=o.subscriptionType,c=Le(o,["queryType","mutationType","subscriptionType"]);i&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),ae.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,o=this.getTypePolicy(t),i=n.keyFields,s=n.fields;function a(c,u){c.merge=typeof u=="function"?u:u===!0?Hv:u===!1?$v:c.merge}a(o,n.merge),o.keyFn=i===!1?Kx:ee(i)?Ld(i):typeof i=="function"?i:o.keyFn,s&&Object.keys(s).forEach(function(c){var u=r.getFieldPolicy(t,c,!0),l=s[c];if(typeof l=="function")u.read=l;else{var d=l.keyArgs,f=l.read,p=l.merge;u.keyFn=d===!1?Bv:ee(d)?jd(d):typeof d=="function"?d:u.keyFn,typeof f=="function"&&(u.read=f),a(u,p)}u.read&&u.merge&&(u.keyFn=u.keyFn||Bv)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),o=this.rootTypenamesById[r];n!==o&&(N(!o||o===t,5,t),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(o){n.getSupertypeSet(o,!0).add(r);var i=o.match(Md);(!i||i[0]!==o)&&n.fuzzySubtypes.set(o,new RegExp(o))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!ae.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var o=this.supertypeMap.get(t);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(s,a){if(s.test(t)){var c=n.supertypeMap.get(a);c&&c.forEach(function(u){return o.add(u)})}})),o&&o.size&&o.forEach(function(s){var a=n.getTypePolicy(s),c=a.fields,u=Le(a,["fields"]);Object.assign(r,u),Object.assign(r.fields,c)})}var i=this.toBeAdded[t];return i&&i.length&&i.splice(0).forEach(function(s){n.updateTypePolicy(t,s)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var o=this.getTypePolicy(t).fields;return o[n]||r&&(o[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,o){var i=this;if(!t.typeCondition)return!0;if(!n)return!1;var s=t.typeCondition.name.value;if(n===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(n,!0),c=[a],u=function(m){var v=i.getSupertypeSet(m,!1);v&&v.size&&c.indexOf(v)<0&&c.push(v)},l=!!(r&&this.fuzzySubtypes.size),d=!1,f=0;f<c.length;++f){var p=c[f];if(p.has(s))return a.has(s)||(d&&globalThis.__DEV__!==!1&&N.warn(6,n,s),a.add(s)),!0;p.forEach(u),l&&f===c.length-1&&Fa(t.selectionSet,r,o)&&(l=!1,d=!0,this.fuzzySubtypes.forEach(function(m,v){var y=n.match(m);y&&y[0]===n&&u(v)}))}return!1},e.prototype.hasKeyArgs=function(t,n){var r=this.getFieldPolicy(t,n,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(t){var n=t.typename,r=t.fieldName,o=this.getFieldPolicy(n,r,!1),i,s=o&&o.keyFn;if(s&&n)for(var a={typename:n,fieldName:r,field:t.field||null,variables:t.variables},c=Ud(t);s;){var u=s(c,a);if(ee(u))s=jd(u);else{i=u||r;break}}return i===void 0&&(i=t.field?rd(t.field,t.variables):ya(r,Ud(t))),i===!1?r:r===ht(i)?i:r+":"+i},e.prototype.readField=function(t,n){var r=t.from;if(r){var o=t.field||t.fieldName;if(o){if(t.typename===void 0){var i=n.store.getFieldValue(r,"__typename");i&&(t.typename=i)}var s=this.getStoreFieldName(t),a=ht(s),c=n.store.getFieldValue(r,s),u=this.getFieldPolicy(t.typename,a,!1),l=u&&u.read;if(l){var d=qv(this,r,t,n,n.store.getStorage(B(r)?r.__ref:r,s));return zr.withValue(this.cache,l,[c,d])}return c}}},e.prototype.getReadFunction=function(t,n){var r=this.getFieldPolicy(t,n,!1);return r&&r.read},e.prototype.getMergeFunction=function(t,n,r){var o=this.getFieldPolicy(t,n,!1),i=o&&o.merge;return!i&&r&&(o=this.getTypePolicy(r),i=o&&o.merge),i},e.prototype.runMergeFunction=function(t,n,r,o,i){var s=r.field,a=r.typename,c=r.merge;return c===Hv?Gv(o.store)(t,n):c===$v?n:(o.overwrite&&(t=void 0),c(t,n,qv(this,void 0,{typename:a,fieldName:s.name.value,field:s,variables:o.variables},o,i||Object.create(null))))},e})();function qv(e,t,n,r,o){var i=e.getStoreFieldName(n),s=ht(i),a=n.variables||r.variables,c=r.store,u=c.toReference,l=c.canRead;return{args:Ud(n),field:n.field||null,fieldName:s,storeFieldName:i,variables:a,isReference:B,toReference:u,storage:o,cache:e.cache,canRead:l,readField:function(){return e.readField(Va(arguments,t,a),r)},mergeObjects:Gv(r.store)}}function Va(e,t,n){var r=e[0],o=e[1],i=e.length,s;return typeof r=="string"?s={fieldName:r,from:i>1?o:t}:(s=g({},r),ae.call(s,"from")||(s.from=t)),globalThis.__DEV__!==!1&&s.from===void 0&&globalThis.__DEV__!==!1&&N.warn(7,ia(Array.from(e))),s.variables===void 0&&(s.variables=n),s}function Gv(e){return function(n,r){if(ee(n)||ee(r))throw te(8);if(Q(n)&&Q(r)){var o=e.getFieldValue(n,"__typename"),i=e.getFieldValue(r,"__typename"),s=o&&i&&o!==i;if(s)return r;if(B(n)&&sn(r))return e.merge(n.__ref,r),n;if(sn(n)&&B(r))return e.merge(n,r.__ref),r;if(sn(n)&&sn(r))return g(g({},n),r)}return r}}function Bd(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:g(g({},e),{clientOnly:t,deferred:n})),o}var Kv=(function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,o=n.query,i=n.result,s=n.dataId,a=n.variables,c=n.overwrite,u=Et(o),l=Mv();a=g(g({},Un(u)),a);var d=g(g({store:t,written:Object.create(null),merge:function(p,m){return l.merge(p,m)},variables:a,varString:Se(a)},Pa(o,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:d});if(!B(f))throw te(11,i);return d.incomingById.forEach(function(p,m){var v=p.storeObject,y=p.mergeTree,h=p.fieldNodeSet,I=Xe(m);if(y&&y.map.size){var E=r.applyMerges(y,I,v,d);if(B(E))return;v=E}if(globalThis.__DEV__!==!1&&!d.overwrite){var _=Object.create(null);h.forEach(function(A){A.selectionSet&&(_[A.name.value]=!0)});var x=function(A){return _[ht(A)]===!0},S=function(A){var k=y&&y.map.get(A);return!!(k&&k.info&&k.info.merge)};Object.keys(v).forEach(function(A){x(A)&&!S(A)&&Zx(I,v,A,d.store)})}t.merge(m,v)}),t.retain(f.__ref),f},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,o=t.result,i=t.selectionSet,s=t.context,a=t.mergeTree,c=this.cache.policies,u=Object.create(null),l=r&&c.rootTypenamesById[r]||zo(o,i,s.fragmentMap)||r&&s.store.get(r,"__typename");typeof l=="string"&&(u.__typename=l);var d=function(){var E=Va(arguments,u,s.variables);if(B(E.from)){var _=s.incomingById.get(E.from.__ref);if(_){var x=c.readField(g(g({},E),{from:_.storeObject}),s);if(x!==void 0)return x}}return c.readField(E,s)},f=new Set;this.flattenFields(i,o,s,l).forEach(function(E,_){var x,S=Oe(_),A=o[S];if(f.add(_),A!==void 0){var k=c.getStoreFieldName({typename:l,fieldName:_.name.value,field:_,variables:E.variables}),J=Wv(a,k),oe=n.processFieldValue(A,_,_.selectionSet?Bd(E,!1,!1):E,J),D=void 0;_.selectionSet&&(B(oe)||sn(oe))&&(D=d("__typename",oe));var w=c.getMergeFunction(l,_.name.value,D);w?J.info={field:_,typename:l,merge:w}:Qv(a,k),u=E.merge(u,(x={},x[k]=oe,x))}else globalThis.__DEV__!==!1&&!E.clientOnly&&!E.deferred&&!$n.added(_)&&!c.getReadFunction(l,_.name.value)&&globalThis.__DEV__!==!1&&N.error(12,Oe(_),o)});try{var p=c.identify(o,{typename:l,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:u,readField:d}),m=p[0],v=p[1];r=r||m,v&&(u=s.merge(u,v))}catch(E){if(!r)throw E}if(typeof r=="string"){var y=Xe(r),h=s.written[r]||(s.written[r]=[]);if(h.indexOf(i)>=0||(h.push(i),this.reader&&this.reader.isFresh(o,y,i,s)))return y;var I=s.incomingById.get(r);return I?(I.storeObject=s.merge(I.storeObject,u),I.mergeTree=Hd(I.mergeTree,a),f.forEach(function(E){return I.fieldNodeSet.add(E)})):s.incomingById.set(r,{storeObject:u,mergeTree:Ua(a)?void 0:a,fieldNodeSet:f}),y}return u},e.prototype.processFieldValue=function(t,n,r,o){var i=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?Ia(t):t:ee(t)?t.map(function(s,a){var c=i.processFieldValue(s,n,r,Wv(o,a));return Qv(o,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:o})},e.prototype.flattenFields=function(t,n,r,o){o===void 0&&(o=zo(n,t,r.fragmentMap));var i=new Map,s=this.cache.policies,a=new Te(!1);return(function c(u,l){var d=a.lookup(u,l.clientOnly,l.deferred);d.visited||(d.visited=!0,u.selections.forEach(function(f){if(dt(f,r.variables)){var p=l.clientOnly,m=l.deferred;if(!(p&&m)&&ye(f.directives)&&f.directives.forEach(function(h){var I=h.name.value;if(I==="client"&&(p=!0),I==="defer"){var E=Lt(h,r.variables);(!E||E.if!==!1)&&(m=!0)}}),Ne(f)){var v=i.get(f);v&&(p=p&&v.clientOnly,m=m&&v.deferred),i.set(f,Bd(r,p,m))}else{var y=Pt(f,r.lookupFragment);if(!y&&f.kind===T.FRAGMENT_SPREAD)throw te(13,f.name.value);y&&s.fragmentMatches(y,o,n,r.variables)&&c(y.selectionSet,Bd(r,p,m))}}}))})(t,r),i},e.prototype.applyMerges=function(t,n,r,o,i){var s,a=this;if(t.map.size&&!B(r)){var c=!ee(r)&&(B(n)||sn(n))?n:void 0,u=r;c&&!i&&(i=[B(c)?c.__ref:c]);var l,d=function(f,p){return ee(f)?typeof p=="number"?f[p]:void 0:o.store.getFieldValue(f,String(p))};t.map.forEach(function(f,p){var m=d(c,p),v=d(u,p);if(v!==void 0){i&&i.push(p);var y=a.applyMerges(f,m,v,o,i);y!==v&&(l=l||new Map,l.set(p,y)),i&&N(i.pop()===p)}}),l&&(r=ee(u)?u.slice(0):g({},u),l.forEach(function(f,p){r[p]=f}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,o,i&&(s=o.store).getStorage.apply(s,i)):r},e})();var Zv=[];function Wv(e,t){var n=e.map;return n.has(t)||n.set(t,Zv.pop()||{map:new Map}),n.get(t)}function Hd(e,t){if(e===t||!t||Ua(t))return e;if(!e||Ua(e))return t;var n=e.info&&t.info?g(g({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o=r?new Map:e.map.size?e.map:t.map,i={info:n,map:o};if(r){var s=new Set(t.map.keys());e.map.forEach(function(a,c){i.map.set(c,Hd(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){i.map.set(a,Hd(t.map.get(a),e.map.get(a)))})}return i}function Ua(e){return!e||!(e.info||e.map.size)}function Qv(e,t){var n=e.map,r=n.get(t);r&&Ua(r)&&(Zv.push(r),n.delete(t))}var Yv=new Set;function Zx(e,t,n,r){var o=function(d){var f=r.getFieldValue(d,n);return typeof f=="object"&&f},i=o(e);if(i){var s=o(t);if(s&&!B(i)&&!X(i,s)&&!Object.keys(i).every(function(d){return r.getFieldValue(s,d)!==void 0})){var a=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=ht(n),u="".concat(a,".").concat(c);if(!Yv.has(u)){Yv.add(u);var l=[];!ee(i)&&!ee(s)&&[i,s].forEach(function(d){var f=r.getFieldValue(d,"__typename");typeof f=="string"&&!l.includes(f)&&l.push(f)}),globalThis.__DEV__!==!1&&N.warn(14,c,a,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,g({},i),g({},s))}}}}var ui=(function(e){he(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new Vr($n),r.assumeImmutableResults=!0,r.makeVar=ja,r.txCount=0,r.config=Nv(n),r.addTypename=!!r.config.addTypename,r.policies=new zv({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new qr.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,o=this.storeReader,i=this.config.fragments;this.storeWriter=new Kv(this,this.storeReader=new kv({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Oa(this.config),canon:n?void 0:o&&o.canon,fragments:i}),i),this.maybeBroadcastWatch=Vt(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize||pe["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(Qn(a)){var c=s.optimistic,u=s.id,l=s.variables;return a.makeCacheKey(s.query,s.callback,Se({optimistic:c,id:u,variables:l}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(s){return s.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,o=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(g(g({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(i){if(i instanceof si)return null;throw i}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(ae.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(g(g({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||Pv(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&Od(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;Se.reset(),rn.reset(),this.addTypenameTransform.resetCache(),(r=this.config.fragments)===null||r===void 0||r.resetCaches();var o=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),o},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(B(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&N.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(ae.call(n,"id"))return!1;n=g(g({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Se.reset(),n&&n.discardWatches?(this.watches.forEach(function(o){return r.maybeBroadcastWatch.forget(o)}),this.watches.clear(),Od(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,o=n.update,i=n.optimistic,s=i===void 0?!0:i,a=n.removeOptimistic,c=n.onWatchUpdated,u,l=function(f){var p=r,m=p.data,v=p.optimisticData;++r.txCount,f&&(r.data=r.optimisticData=f);try{return u=o(r)}finally{--r.txCount,r.data=m,r.optimisticData=v}},d=new Set;return c&&!this.txCount&&this.broadcastWatches(g(g({},n),{onWatchUpdated:function(f){return d.add(f),!1}})),typeof s=="string"?this.optimisticData=this.optimisticData.addLayer(s,l):s===!1?l(this.data):l(),typeof a=="string"&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&d.size?(this.broadcastWatches(g(g({},n),{onWatchUpdated:function(f,p){var m=c.call(this,f,p);return m!==!1&&d.delete(f),m}})),d.size&&d.forEach(function(f){return r.maybeBroadcastWatch.dirty(f)})):this.broadcastWatches(n),u},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(o){return r.maybeBroadcastWatch(o,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var o=n.lastDiff,i=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(i.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,i,o)===!1)||(!o||!X(o.result,i.result))&&n.callback(n.lastDiff=i,o)},t})(Ra);globalThis.__DEV__!==!1&&(ui.prototype.getMemoryInternals=Ig);var K=(function(e){return e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e})(K||{});function cn(e){return e?e<7:!1}var Xv=Object.assign,Xx=Object.hasOwnProperty,Ba=(function(e){he(t,e);function t(n){var r=n.queryManager,o=n.queryInfo,i=n.options,s=e.call(this,function(y){try{var h=y._subscription._observer;h&&!h.error&&(h.error=Jx)}catch(_){}var I=!s.observers.size;s.observers.add(y);var E=s.last;return E&&E.error?y.error&&y.error(E.error):E&&E.result&&y.next&&y.next(E.result),I&&s.reobserve().catch(function(){}),function(){s.observers.delete(y)&&!s.observers.size&&s.tearDownQuery()}})||this;s.observers=new Set,s.subscriptions=new Set,s.queryInfo=o,s.queryManager=r,s.waitForOwnResult=$d(i.fetchPolicy),s.isTornDown=!1;var a=r.defaultOptions.watchQuery,c=a===void 0?{}:a,u=c.fetchPolicy,l=u===void 0?"cache-first":u,d=i.fetchPolicy,f=d===void 0?l:d,p=i.initialFetchPolicy,m=p===void 0?f==="standby"?l:f:p;s.options=g(g({},i),{initialFetchPolicy:m,fetchPolicy:f}),s.queryId=o.queryId||r.generateQueryId();var v=Et(s.query);return s.queryName=v&&v.name&&v.name.value,s}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,o){var i={next:function(a){r(a),n.observers.delete(i),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){s.unsubscribe()},0)},error:o},s=n.subscribe(i)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),o=this.queryInfo.networkStatus||r&&r.networkStatus||K.ready,i=g(g({},r),{loading:cn(o),networkStatus:o}),s=this.options.fetchPolicy,a=s===void 0?"cache-first":s;if(!($d(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(i.data=c.result),X(i.data,{})&&(i.data=void 0),c.complete?(delete i.partial,c.complete&&i.networkStatus===K.loading&&(a==="cache-first"||a==="cache-only")&&(i.networkStatus=K.ready,i.loading=!1)):i.partial=!0,globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&zd(c.missing)}return n&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!Aa(this.query,this.last.result,n,this.variables):!X(this.last.result,n);return o||r&&!X(this.last.variables,r)},t.prototype.getLast=function(n,r){var o=this.last;if(o&&o[n]&&(!r||X(o.variables,this.variables)))return o[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,o={pollInterval:0},i=this.options.fetchPolicy;if(i==="cache-and-network"?o.fetchPolicy=i:i==="no-cache"?o.fetchPolicy="no-cache":o.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&Xx.call(n,"variables")){var s=Go(this.query),a=s.variableDefinitions;(!a||!a.some(function(c){return c.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&N.warn(20,n,((r=s.name)===null||r===void 0?void 0:r.value)||s)}return n&&!X(this.options.variables,n)&&(o.variables=this.options.variables=g(g({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(o,K.refetch)},t.prototype.fetchMore=function(n){var r=this,o=g(g({},n.query?n:g(g(g(g({},this.options),{query:this.options.query}),n),{variables:g(g({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});o.query=this.transformDocument(o.query);var i=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):o.query;var s=this.queryInfo,a=s.networkStatus;s.networkStatus=K.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(i,o,K.fetchMore).then(function(u){return r.queryManager.removeQuery(i),s.networkStatus===K.fetchMore&&(s.networkStatus=a),r.queryManager.cache.batch({update:function(l){var d=n.updateQuery;d?l.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(f){return d(f,{fetchMoreResult:u.data,variables:o.variables})}):l.writeQuery({query:o.query,variables:o.variables,data:u.data})},onWatchUpdated:function(l){c.add(l.query)}}),u}).finally(function(){c.has(r.query)||qd(r)})},t.prototype.subscribeToMore=function(n){var r=this,o=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(i){var s=n.updateQuery;s&&r.updateQuery(function(a,c){var u=c.variables;return s(a,{subscriptionData:i,variables:u})})},error:function(i){if(n.onError){n.onError(i);return}globalThis.__DEV__!==!1&&N.error(21,i)}});return this.subscriptions.add(o),function(){r.subscriptions.delete(o)&&o.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=bt(this.options,n||{});Xv(this.options,r)},t.prototype.setVariables=function(n){return X(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},K.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,o=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,i=n(o,{variables:this.variables});i&&(r.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var o=r.fetchPolicy,i=o===void 0?"cache-first":o,s=r.initialFetchPolicy,a=s===void 0?i:s;i==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(i,{reason:n,options:r,observable:this,initialFetchPolicy:a}):n==="variables-changed"?r.fetchPolicy=a:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,o){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,n,r,o)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,o=r.pollingInfo,i=r.options.pollInterval;if(!i||!this.hasObservers()){o&&(clearTimeout(o.timeout),delete this.pollingInfo);return}if(!(o&&o.interval===i)){N(i,22);var s=o||(this.pollingInfo={});s.interval=i;var a=function(){var u,l;n.pollingInfo&&(!cn(n.queryInfo.networkStatus)&&!(!((l=(u=n.options).skipPollAttempt)===null||l===void 0)&&l.call(u))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},K.poll).then(c,c):c())},c=function(){var u=n.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(a,u.interval))};c()}}},t.prototype.updateLastResult=function(n,r){r===void 0&&(r=this.variables);var o=this.getLastError();return o&&this.last&&!X(r,this.last.variables)&&(o=void 0),this.last=g({result:this.queryManager.assumeImmutableResults?n:Ia(n),variables:r},o?{error:o}:null)},t.prototype.reobserveAsConcast=function(n,r){var o=this;this.isTornDown=!1;var i=r===K.refetch||r===K.fetchMore||r===K.poll,s=this.options.variables,a=this.options.fetchPolicy,c=bt(this.options,n||{}),u=i?c:Xv(this.options,c),l=this.transformDocument(u.query);this.lastQuery=l,i||(this.updatePolling(),n&&n.variables&&!X(n.variables,s)&&u.fetchPolicy!=="standby"&&u.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",u),r===void 0&&(r=K.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=$d(u.fetchPolicy));var d=function(){o.concast===m&&(o.waitForOwnResult=!1)},f=u.variables&&g({},u.variables),p=this.fetch(u,r,l),m=p.concast,v=p.fromLink,y={next:function(h){X(o.variables,f)&&(d(),o.reportResult(h,f))},error:function(h){X(o.variables,f)&&(d(),o.reportError(h,f))}};return!i&&(v||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=y),m.addObserver(y),m},t.prototype.reobserve=function(n,r){return this.reobserveAsConcast(n,r).promise},t.prototype.resubscribeAfterError=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=this.last;this.resetLastResults();var i=this.subscribe.apply(this,n);return this.last=o,i},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(n,r){var o=this.getLastError(),i=this.isDifferentFromLastResult(n,r);(o||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,r),(o||i)&&zn(this.observers,"next",n)},t.prototype.reportError=function(n,r){var o=g(g({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:K.error,loading:!1});this.updateLastResult(o,r),zn(this.observers,"error",this.last.error=n)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t})(U);_a(Ba);function qd(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(o,i){return this.nextFetchPolicy=r,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(o,i):n}}):e.reobserve()}function Jx(e){globalThis.__DEV__!==!1&&N.error(23,e.message,e.stack)}function zd(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&N.debug(24,e)}function $d(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Ha=(function(){function e(t){var n=t.cache,r=t.client,o=t.resolvers,i=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),o&&this.addResolvers(o),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=ld(n.resolvers,r)}):this.resolvers=ld(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return je(this,arguments,void 0,function(n){var r=n.document,o=n.remoteResult,i=n.context,s=n.variables,a=n.onlyRunForcedResolvers,c=a===void 0?!1:a;return tt(this,function(u){return r?[2,this.resolveDocument(r,o.data,i,s,this.fragmentMatcher,c).then(function(l){return g(g({},o),{data:l.result})})]:[2,o]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return kt(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return Zo(t)},e.prototype.prepareContext=function(t){var n=this.cache;return g(g({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return je(this,arguments,void 0,function(n,r,o){return r===void 0&&(r={}),o===void 0&&(o={}),tt(this,function(i){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(o),r).then(function(s){return g(g({},r),s.exportedVariables)})]:[2,g({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Ie(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(o){return o.name.value==="always"&&o.value.kind==="BooleanValue"&&o.value.value===!0}),n))return jn}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:ud(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return je(this,arguments,void 0,function(r,o,i,s,a,c){var u,l,d,f,p,m,v,y,h,I,E;return i===void 0&&(i={}),s===void 0&&(s={}),a===void 0&&(a=function(){return!0}),c===void 0&&(c=!1),tt(this,function(_){return u=pt(r),l=jt(r),d=Ot(l),f=this.collectSelectionsToResolve(u,d),p=u.operation,m=p?p.charAt(0).toUpperCase()+p.slice(1):"Query",v=this,y=v.cache,h=v.client,I={fragmentMap:d,context:g(g({},i),{cache:y,client:h}),variables:s,fragmentMatcher:a,defaultOperationType:m,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:c},E=!1,[2,this.resolveSelectionSet(u.selectionSet,E,o,I).then(function(x){return{result:x,exportedVariables:I.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,o){return je(this,void 0,void 0,function(){var i,s,a,c,u,l=this;return tt(this,function(d){return i=o.fragmentMap,s=o.context,a=o.variables,c=[r],u=function(f){return je(l,void 0,void 0,function(){var p,m;return tt(this,function(v){return!n&&!o.selectionsToResolve.has(f)?[2]:dt(f,a)?Ne(f)?[2,this.resolveField(f,n,r,o).then(function(y){var h;typeof y<"u"&&c.push((h={},h[Oe(f)]=y,h))})]:(od(f)?p=f:(p=i[f.name.value],N(p,18,f.name.value)),p&&p.typeCondition&&(m=p.typeCondition.name.value,o.fragmentMatcher(r,m,s))?[2,this.resolveSelectionSet(p.selectionSet,n,r,o).then(function(y){c.push(y)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(u)).then(function(){return qn(c)})]})})},e.prototype.resolveField=function(t,n,r,o){return je(this,void 0,void 0,function(){var i,s,a,c,u,l,d,f,p,m=this;return tt(this,function(v){return r?(i=o.variables,s=t.name.value,a=Oe(t),c=s!==a,u=r[a]||r[s],l=Promise.resolve(u),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(d=r.__typename||o.defaultOperationType,f=this.resolvers&&this.resolvers[d],f&&(p=f[c?s:a],p&&(l=Promise.resolve(zr.withValue(this.cache,p,[r,Lt(t,i),o.context,{field:t,fragmentMap:o.fragmentMap}]))))),[2,l.then(function(y){var h,I;if(y===void 0&&(y=u),t.directives&&t.directives.forEach(function(_){_.name.value==="export"&&_.arguments&&_.arguments.forEach(function(x){x.name.value==="as"&&x.value.kind==="StringValue"&&(o.exportedVariables[x.value.value]=y)})}),!t.selectionSet||y==null)return y;var E=(I=(h=t.directives)===null||h===void 0?void 0:h.some(function(_){return _.name.value==="client"}))!==null&&I!==void 0?I:!1;if(Array.isArray(y))return m.resolveSubSelectedArray(t,n||E,y,o);if(t.selectionSet)return m.resolveSelectionSet(t.selectionSet,n||E,y,o)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,o){var i=this;return Promise.all(r.map(function(s){if(s===null)return null;if(Array.isArray(s))return i.resolveSubSelectedArray(t,n,s,o);if(t.selectionSet)return i.resolveSelectionSet(t.selectionSet,n,s,o)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(s){return!Array.isArray(s)},o=this.selectionsToResolveCache;function i(s){if(!o.has(s)){var a=new Set;o.set(s,a),Ie(s,{Directive:function(c,u,l,d,f){c.name.value==="client"&&f.forEach(function(p){r(p)&&$o(p)&&a.add(p)})},FragmentSpread:function(c,u,l,d,f){var p=n[c.name.value];N(p,19,c.name.value);var m=i(p);m.size>0&&(f.forEach(function(v){r(v)&&$o(v)&&a.add(v)}),a.add(c),m.forEach(function(v){a.add(v)}))}})}return o.get(s)}return i(t)},e})();var Wr=new(ft?WeakMap:Map);function Gd(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Wr.set(e,(Wr.get(e)+1)%1e15),n.apply(this,arguments)})}function Jv(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var $a=(function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;Wr.has(r)||(Wr.set(r,0),Gd(r,"evict"),Gd(r,"modify"),Gd(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||K.loading;return this.variables&&this.networkStatus!==K.loading&&!X(this.variables,t.variables)&&(n=K.setVariables),X(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){Jv(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&X(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r,o=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((r=this.observableQuery)===null||r===void 0)&&r.getLastError())||(this.updateLastDiff(t),!this.dirty&&!X(o&&o.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?t.observe():qd(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;Jv(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(cn(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var o=g(g({},this.getDiffOptions(t)),{watcher:this,callback:function(i){return n.setDiff(i)}});(!this.lastWatch||!X(o,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Wr.get(this.cache)&&X(n,r.variables)&&X(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,o){var i=this,s=new Pe,a=ye(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&ye(t.incremental)){var c=xa(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var u=this.getDiff();t.data=s.merge(u.result,t.data)}this.graphQLErrors=a,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):o!==0&&(qa(t,r.errorPolicy)?this.cache.performTransaction(function(l){if(i.shouldWrite(t,r.variables))l.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:o===1}),i.lastWrite={result:t,variables:r.variables,dmCount:Wr.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){t.data=i.lastDiff.diff.result;return}var d=i.getDiffOptions(r.variables),f=l.diff(d);!i.stopped&&X(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(f,d),f.complete&&(t.data=f.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=K.ready},e.prototype.markError=function(t){return this.networkStatus=K.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e})();function qa(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!Hr(e);return!r&&n&&e.data&&(r=!0),r}var eT=Object.prototype.hasOwnProperty,ey=Object.create(null),ty=(function(){function e(t){var n=t.cache,r=t.link,o=t.defaultOptions,i=t.documentTransform,s=t.queryDeduplication,a=s===void 0?!1:s,c=t.onBroadcast,u=t.ssrMode,l=u===void 0?!1:u,d=t.clientAwareness,f=d===void 0?{}:d,p=t.localState,m=t.assumeImmutableResults,v=m===void 0?!!n.assumeImmutableResults:m,y=t.defaultContext,h=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new kr(pe["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Te(!1);var I=new Vr(function(E){return h.cache.transformDocument(E)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=o||Object.create(null),this.queryDeduplication=a,this.clientAwareness=f,this.localState=p||new Ha({cache:n}),this.ssrMode=l,this.assumeImmutableResults=v,this.documentTransform=i?I.concat(i).concat(I):I,this.defaultContext=y||Object.create(null),(this.onBroadcast=c)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(te(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return je(this,arguments,void 0,function(n){var r,o,i,s,a,c,u,l=n.mutation,d=n.variables,f=n.optimisticResponse,p=n.updateQueries,m=n.refetchQueries,v=m===void 0?[]:m,y=n.awaitRefetchQueries,h=y===void 0?!1:y,I=n.update,E=n.onQueryUpdated,_=n.fetchPolicy,x=_===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.fetchPolicy)||"network-only":_,S=n.errorPolicy,A=S===void 0?((u=this.defaultOptions.mutate)===null||u===void 0?void 0:u.errorPolicy)||"none":S,k=n.keepRootFields,J=n.context;return tt(this,function(oe){switch(oe.label){case 0:return N(l,26),N(x==="network-only"||x==="no-cache",27),r=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),o=this.getDocumentInfo(l).hasClientExports,d=this.getVariables(l,d),o?[4,this.localState.addExportedVariables(l,d,J)]:[3,2];case 1:d=oe.sent(),oe.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[r]={mutation:l,variables:d,loading:!0,error:null}),s=f&&this.markMutationOptimistic(f,{mutationId:r,document:l,variables:d,fetchPolicy:x,errorPolicy:A,context:J,updateQueries:p,update:I,keepRootFields:k}),this.broadcastQueries(),a=this,[2,new Promise(function(D,w){return wa(a.getObservableFromLink(l,g(g({},J),{optimisticResponse:s?f:void 0}),d,!1),function(M){if(Hr(M)&&A==="none")throw new Wn({graphQLErrors:Ta(M)});i&&(i.loading=!1,i.error=null);var $=g({},M);return typeof v=="function"&&(v=v($)),A==="ignore"&&Hr($)&&delete $.errors,a.markMutationResult({mutationId:r,result:$,document:l,variables:d,fetchPolicy:x,errorPolicy:A,context:J,update:I,updateQueries:p,awaitRefetchQueries:h,refetchQueries:v,removeOptimistic:s?r:void 0,onQueryUpdated:E,keepRootFields:k})}).subscribe({next:function(M){a.broadcastQueries(),(!("hasNext"in M)||M.hasNext===!1)&&D(M)},error:function(M){i&&(i.loading=!1,i.error=M),s&&a.cache.removeOptimistic(r),a.broadcastQueries(),w(M instanceof Wn?M:new Wn({networkError:M}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var o=t.result,i=[],s=t.fetchPolicy==="no-cache";if(!s&&qa(o,t.errorPolicy)){if(on(o)||i.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),on(o)&&ye(o.incremental)){var a=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;a.result&&(c=xa(a.result,o)),typeof c<"u"&&(o.data=c,i.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var u=t.updateQueries;u&&this.queries.forEach(function(d,f){var p=d.observableQuery,m=p&&p.queryName;if(!(!m||!eT.call(u,m))){var v=u[m],y=r.queries.get(f),h=y.document,I=y.variables,E=n.diff({query:h,variables:I,returnPartialData:!0,optimistic:!1}),_=E.result,x=E.complete;if(x&&_){var S=v(_,{mutationResult:o,queryName:h&&Pr(h)||void 0,queryVariables:I});S&&i.push({result:S,dataId:"ROOT_QUERY",query:h,variables:I})}}})}if(i.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(d){s||i.forEach(function(v){return d.write(v)});var f=t.update,p=!rv(o)||on(o)&&!o.hasNext;if(f){if(!s){var m=d.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});m.complete&&(o=g(g({},o),{data:m.result}),"incremental"in o&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}p&&f(d,o,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&p&&d.modify({id:"ROOT_MUTATION",fields:function(v,y){var h=y.fieldName,I=y.DELETE;return h==="__typename"?v:I}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(d){return l.push(d)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(l).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(t,n){var r=this,o=typeof t=="function"?t(n.variables,{IGNORE:ey}):t;return o===ey?!1:(this.cache.recordOptimisticTransaction(function(i){try{r.markMutationResult(g(g({},n),{result:{data:o}}),i)}catch(s){globalThis.__DEV__!==!1&&N.error(s)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(t,n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:Yl(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:kt(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:Da([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:Un(Et(t)),asQuery:g(g({},t),{definitions:t.definitions.map(function(o){return o.kind==="OperationDefinition"&&o.operation!=="query"?g(g({},o),{operation:"query"}):o})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return g(g({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=g(g({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new $a(this),o=new Ba({queryManager:this,queryInfo:r,options:t});return o.lastQuery=n,this.queries.set(o.queryId,r),r.init({document:n,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(t,n){var r=this;return n===void 0&&(n=this.generateQueryId()),N(t.query,28),N(t.query.kind==="Document",29),N(!t.returnPartialData,30),N(!t.pollInterval,31),this.fetchQuery(n,g(g({},t),{query:this.transform(t.query)})).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(te(32)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=K.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,o=new Map,i=new Set;return Array.isArray(t)&&t.forEach(function(s){typeof s=="string"?o.set(s,!1):nd(s)?o.set(n.transform(s),!1):Q(s)&&s.query&&i.add(s)}),this.queries.forEach(function(s,a){var c=s.observableQuery,u=s.document;if(c){if(t==="all"){r.set(a,c);return}var l=c.queryName,d=c.options.fetchPolicy;if(d==="standby"||t==="active"&&!c.hasObservers())return;(t==="active"||l&&o.has(l)||u&&o.has(u))&&(r.set(a,c),l&&o.set(l,!0),u&&o.set(u,!0))}}),i.size&&i.forEach(function(s){var a=Vo("legacyOneTimeQuery"),c=n.getQuery(a).init({document:s.query,variables:s.variables}),u=new Ba({queryManager:n,queryInfo:c,options:g(g({},s),{fetchPolicy:"network-only"})});N(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),globalThis.__DEV__!==!1&&o.size&&o.forEach(function(s,a){s||globalThis.__DEV__!==!1&&N.warn(typeof a=="string"?33:34,a)}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(o,i){var s=o.options.fetchPolicy;o.resetLastResults(),(t||s!=="standby"&&s!=="cache-only")&&r.push(o.refetch()),n.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,o=t.fetchPolicy,i=t.errorPolicy,s=i===void 0?"none":i,a=t.variables,c=t.context,u=c===void 0?{}:c;r=this.transform(r),a=this.getVariables(r,a);var l=function(f){return n.getObservableFromLink(r,u,f).map(function(p){o!=="no-cache"&&(qa(p,s)&&n.cache.write({query:r,result:p.data,dataId:"ROOT_SUBSCRIPTION",variables:f}),n.broadcastQueries());var m=Hr(p),v=av(p);if(m||v){var y={};if(m&&(y.graphQLErrors=p.errors),v&&(y.protocolErrors=p.extensions[ri]),s==="none"||v)throw new Wn(y)}return s==="ignore"&&delete p.errors,p})};if(this.getDocumentInfo(r).hasClientExports){var d=this.localState.addExportedVariables(r,a,u).then(l);return new U(function(f){var p=null;return d.then(function(m){return p=m.subscribe(f)},f.error),function(){return p&&p.unsubscribe()}})}return l(a)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,o){var i=this,s;o===void 0&&(o=(s=n?.queryDeduplication)!==null&&s!==void 0?s:this.queryDeduplication);var a,c=this.getDocumentInfo(t),u=c.serverQuery,l=c.clientQuery;if(u){var d=this,f=d.inFlightLinkObservables,p=d.link,m={query:u,variables:r,operationName:Pr(u)||void 0,context:this.prepareContext(g(g({},n),{forceFetch:!o}))};if(n=m.context,o){var v=rn(u),y=Se(r),h=f.lookup(v,y);if(a=h.observable,!a){var I=new Gn([$r(p,m)]);a=h.observable=I,I.beforeNext(function(){f.remove(v,y)})}}else a=new Gn([$r(p,m)])}else a=new Gn([U.of({data:{}})]),n=this.prepareContext(n);return l&&(a=wa(a,function(E){return i.localState.runResolvers({document:l,remoteResult:E,context:n,variables:r})})),a},e.prototype.getResultsFromLink=function(t,n,r){var o=t.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return wa(this.getObservableFromLink(i,r.context,r.variables),function(s){var a=Ta(s),c=a.length>0;if(o>=t.lastRequestId){if(c&&r.errorPolicy==="none")throw t.markError(new Wn({graphQLErrors:a}));t.markResult(s,i,r,n),t.markReady()}var u={data:s.data,loading:!1,networkStatus:K.ready};return c&&r.errorPolicy!=="ignore"&&(u.errors=a,u.networkStatus=K.error),u},function(s){var a=cv(s)?s:new Wn({networkError:s});throw o>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r,o){var i=this;r===void 0&&(r=K.loading),o===void 0&&(o=n.query);var s=this.getVariables(o,n.variables),a=this.getQuery(t),c=this.defaultOptions.watchQuery,u=n.fetchPolicy,l=u===void 0?c&&c.fetchPolicy||"cache-first":u,d=n.errorPolicy,f=d===void 0?c&&c.errorPolicy||"none":d,p=n.returnPartialData,m=p===void 0?!1:p,v=n.notifyOnNetworkStatusChange,y=v===void 0?!1:v,h=n.context,I=h===void 0?{}:h,E=Object.assign({},n,{query:o,variables:s,fetchPolicy:l,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:y,context:I}),_=function(J){E.variables=J;var oe=i.fetchQueryByPolicy(a,E,r);return E.fetchPolicy!=="standby"&&oe.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),oe},x=function(){return i.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(J){x(),setTimeout(function(){return S.cancel(J)})});var S,A;if(this.getDocumentInfo(E.query).hasClientExports)S=new Gn(this.localState.addExportedVariables(E.query,E.variables,E.context).then(_).then(function(J){return J.sources})),A=!0;else{var k=_(E.variables);A=k.fromLink,S=new Gn(k.sources)}return S.promise.then(x,x),{concast:S,fromLink:A}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,o=t.include,i=t.optimistic,s=i===void 0?!1:i,a=t.removeOptimistic,c=a===void 0?s?Vo("refetchQueries"):void 0:a,u=t.onQueryUpdated,l=new Map;o&&this.getObservableQueries(o).forEach(function(f,p){l.set(p,{oq:f,lastDiff:n.getQuery(p).getDiff()})});var d=new Map;return r&&this.cache.batch({update:r,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(f,p,m){var v=f.watcher instanceof $a&&f.watcher.observableQuery;if(v){if(u){l.delete(v.queryId);var y=u(v,p,m);return y===!0&&(y=v.refetch()),y!==!1&&d.set(v,y),y}u!==null&&l.set(v.queryId,{oq:v,lastDiff:m,diff:p})}}}),l.size&&l.forEach(function(f,p){var m=f.oq,v=f.lastDiff,y=f.diff,h;if(u){if(!y){var I=m.queryInfo;I.reset(),y=I.getDiff()}h=u(m,y,v)}(!u||h===!0)&&(h=m.refetch()),h!==!1&&d.set(m,h),p.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(p)}),c&&this.cache.removeOptimistic(c),d},e.prototype.fetchQueryByPolicy=function(t,n,r){var o=this,i=n.query,s=n.variables,a=n.fetchPolicy,c=n.refetchWritePolicy,u=n.errorPolicy,l=n.returnPartialData,d=n.context,f=n.notifyOnNetworkStatusChange,p=t.networkStatus;t.init({document:i,variables:s,networkStatus:r});var m=function(){return t.getDiff()},v=function(_,x){x===void 0&&(x=t.networkStatus||K.loading);var S=_.result;globalThis.__DEV__!==!1&&!l&&!X(S,{})&&zd(_.missing);var A=function(k){return U.of(g({data:k,loading:cn(x),networkStatus:x},_.complete?null:{partial:!0}))};return S&&o.getDocumentInfo(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:S},context:d,variables:s,onlyRunForcedResolvers:!0}).then(function(k){return A(k.data||void 0)}):u==="none"&&x===K.refetch&&Array.isArray(_.missing)?A(void 0):A(S)},y=a==="no-cache"?0:r===K.refetch&&c!=="merge"?1:2,h=function(){return o.getResultsFromLink(t,y,{query:i,variables:s,context:d,fetchPolicy:a,errorPolicy:u})},I=f&&typeof p=="number"&&p!==r&&cn(r);switch(a){default:case"cache-first":{var E=m();return E.complete?{fromLink:!1,sources:[v(E,t.markReady())]}:l||I?{fromLink:!0,sources:[v(E),h()]}:{fromLink:!0,sources:[h()]}}case"cache-and-network":{var E=m();return E.complete||l||I?{fromLink:!0,sources:[v(E),h()]}:{fromLink:!0,sources:[h()]}}case"cache-only":return{fromLink:!1,sources:[v(m(),t.markReady())]};case"network-only":return I?{fromLink:!0,sources:[v(m()),h()]}:{fromLink:!0,sources:[h()]};case"no-cache":return I?{fromLink:!0,sources:[v(t.getDiff()),h()]}:{fromLink:!0,sources:[h()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new $a(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return g(g(g({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e})();var ny=!1;var li=(function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw te(15);var r=t.uri,o=t.credentials,i=t.headers,s=t.cache,a=t.documentTransform,c=t.ssrMode,u=c===void 0?!1:c,l=t.ssrForceFetchDelay,d=l===void 0?0:l,f=t.connectToDevTools,p=f===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:f,m=t.queryDeduplication,v=m===void 0?!0:m,y=t.defaultOptions,h=t.defaultContext,I=t.assumeImmutableResults,E=I===void 0?s.assumeImmutableResults:I,_=t.resolvers,x=t.typeDefs,S=t.fragmentMatcher,A=t.name,k=t.version,J=t.link;J||(J=r?new ii({uri:r,credentials:o,headers:i}):Je.empty()),this.link=J,this.cache=s,this.disableNetworkFetches=u||d>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=x,d&&setTimeout(function(){return n.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=jo,this.localState=new Ha({cache:s,client:this,resolvers:_,fragmentMatcher:S}),this.queryManager=new ty({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:h,documentTransform:a,queryDeduplication:v,ssrMode:u,clientAwareness:{name:A,version:k},localState:this.localState,assumeImmutableResults:E,onBroadcast:p?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),p&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(typeof window=="object"){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this}!ny&&globalThis.__DEV__!==!1&&(ny=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){var r=window.navigator,o=r&&r.userAgent,i=void 0;typeof o=="string"&&(o.indexOf("Chrome/")>-1?i="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(i="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),i&&globalThis.__DEV__!==!1&&N.log("Download the Apollo DevTools for a better development experience: %s",i)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=ei(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=g(g({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=ei(this.defaultOptions.query,t)),N(t.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=g(g({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=ei(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){return this.cache.watchFragment(t)},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return $r(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],o=[];n.forEach(function(s,a){r.push(a),o.push(s)});var i=Promise.all(o);return i.queries=r,i.results=o,i.catch(function(s){globalThis.__DEV__!==!1&&N.debug(17,s)}),i},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e})();globalThis.__DEV__!==!1&&(li.prototype.getMemoryInternals=bg);var za=new Map,Wd=new Map,ry=!0,Ga=!1;function oy(e){return e.replace(/[\s,]+/g," ").trim()}function tT(e){return oy(e.source.body.substring(e.start,e.end))}function nT(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var o=r.name.value,i=tT(r.loc),s=Wd.get(o);s&&!s.has(i)?ry&&console.warn("Warning: fragment with name "+o+` already exists.
graphql-tag enforces all fragment names across your application to be unique; read more about
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s||Wd.set(o,s=new Set),s.add(i),t.has(i)||(t.add(i),n.push(r))}else n.push(r)}),g(g({},e),{definitions:n})}function rT(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(o){var i=r[o];i&&typeof i=="object"&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function oT(e){var t=oy(e);if(!za.has(t)){var n=Fr(e,{experimentalFragmentVariables:Ga,allowLegacyFragmentVariables:Ga});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");za.set(t,rT(nT(n)))}return za.get(t)}function Ut(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];typeof e=="string"&&(e=[e]);var r=e[0];return t.forEach(function(o,i){o&&o.kind==="Document"?r+=o.loc.source.body:r+=o,r+=e[i+1]}),oT(r)}function iy(){za.clear(),Wd.clear()}function sy(){ry=!1}function ay(){Ga=!0}function cy(){Ga=!1}var di={gql:Ut,resetCaches:iy,disableFragmentWarnings:sy,enableExperimentalFragmentVariables:ay,disableExperimentalFragmentVariables:cy};(function(e){e.gql=di.gql,e.resetCaches=di.resetCaches,e.disableFragmentWarnings=di.disableFragmentWarnings,e.enableExperimentalFragmentVariables=di.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=di.disableExperimentalFragmentVariables})(Ut||(Ut={}));Ut.default=Ut;var fi=Ut;Zm(globalThis.__DEV__!==!1?"log":"silent");function uy(e){return new Y(t=>(e().then(n=>{t.closed||(t.next(n),t.complete())},n=>{t.closed||t.error(n)}),()=>t.unsubscribe()))}function iT(e,t){return t?e.pipe(xc({loading:!0}),Ve(n=>de(R({},n),{loading:!!n.loading}))):e.pipe(Ve(n=>de(R({},n),{loading:!1})))}var Yd=class{zone;constructor(t){this.zone=t}now=Date.now?Date.now:()=>+new Date;schedule(t,n=0,r){return this.zone.run(()=>Dc.schedule(t,n,r))}};function Kd(e){return e[It]=()=>e,e}function Zd(e,t){return e.pipe(vn(new Yd(t)))}function sT(e){return function(n){return new Y(function(o){let i=e.getCurrentResult(),{loading:s,errors:a,error:c,partial:u,data:l}=i,{partialRefetch:d,fetchPolicy:f}=e.options,p=a||c;return d&&u&&(!l||Object.keys(l).length===0)&&f!=="cache-only"&&!s&&!p&&o.next(de(R({},i),{loading:!0,networkStatus:K.loading})),n.subscribe(o)})}}var Xd=class{obsQuery;valueChanges;queryId;constructor(t,n,r){this.obsQuery=t;let o=Zd(nt(Kd(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?o.pipe(sT(this.obsQuery)):o,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(t){return this.obsQuery.refetch(t)}fetchMore(t){return this.obsQuery.fetchMore(t)}subscribeToMore(t){return this.obsQuery.subscribeToMore(t)}updateQuery(t){return this.obsQuery.updateQuery(t)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(t){return this.obsQuery.startPolling(t)}setOptions(t){return this.obsQuery.setOptions(t)}setVariables(t){return this.obsQuery.setVariables(t)}},aT=new P("APOLLO_FLAGS"),Jd=new P("APOLLO_OPTIONS"),cT=new P("APOLLO_NAMED_OPTIONS"),Wa=class{ngZone;flags;_client;useInitialLoading;useMutationLoading;constructor(t,n,r){this.ngZone=t,this.flags=n,this._client=r,this.useInitialLoading=n?.useInitialLoading??!1,this.useMutationLoading=n?.useMutationLoading??!1}watchQuery(t){return new Xd(this.ensureClient().watchQuery(R({},t)),this.ngZone,R({useInitialLoading:this.useInitialLoading},t))}query(t){return uy(()=>this.ensureClient().query(R({},t)))}mutate(t){return iT(uy(()=>this.ensureClient().mutate(R({},t))),t.useMutationLoading??this.useMutationLoading)}watchFragment(t,n){let r=nt(Kd(this.ensureClient().watchFragment(R({},t))));return n&&n.useZone!==!0?r:Zd(r,this.ngZone)}subscribe(t,n){let r=nt(Kd(this.ensureClient().subscribe(R({},t))));return n&&n.useZone!==!0?r:Zd(r,this.ngZone)}get client(){return this.ensureClient()}set client(t){if(this._client)throw new Error("Client has been already defined");this._client=t}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}},uT=(()=>{class e extends Wa{map=new Map;constructor(n,r,o,i){if(super(n,i),r&&this.createDefault(r),o&&typeof o=="object"){for(let s in o)if(o.hasOwnProperty(s)){let a=o[s];this.create(a,s)}}}create(n,r){Qd(r)?this.createNamed(r,n):this.createDefault(n)}default(){return this}use(n){return Qd(n)?this.map.get(n):this.default()}createDefault(n){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new li(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new Wa(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new li(r))))}removeClient(n){Qd(n)?this.map.delete(n):this._client=void 0}static \u0275fac=function(r){return new(r||e)(F(fe),F(Jd,8),F(cT,8),F(aT,8))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})();function Qd(e){return!!e&&e!=="default"}var ly=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ke({type:e});static \u0275inj=_e({providers:[uT]})}return e})();var lT=Ut,pi=lT;var Qe=(function(e){return e.Attachment="Attachment",e.BatchExport="BatchExport",e.CachedTemplateGltf="CachedTemplateGltf",e.CachedTemplateUsdz="CachedTemplateUsdz",e.CryptoMatte01="CryptoMatte01",e.CryptoMatte02="CryptoMatte02",e.CryptoMatte03="CryptoMatte03",e.CustomerLogo="CustomerLogo",e.DrawingData="DrawingData",e.Font="Font",e.FontBold="FontBold",e.GalleryImage="GalleryImage",e.GalleryImageMain="GalleryImageMain",e.Icon="Icon",e.JobTaskData="JobTaskData",e.JobTaskInternalData="JobTaskInternalData",e.MaterialCetSimple="MaterialCetSimple",e.MaterialFabricOverviewRender="MaterialFabricOverviewRender",e.MaterialMapsExport="MaterialMapsExport",e.MaterialThumbnail_7x7Inches="MaterialThumbnail_7x7Inches",e.MaterialThumbnail_8x8Inches="MaterialThumbnail_8x8Inches",e.MaterialThumbnail_9x9Inches="MaterialThumbnail_9x9Inches",e.MaterialThumbnail_10x10="MaterialThumbnail_10x10",e.MaterialThumbnail_13_5x13_5Inches="MaterialThumbnail_13_5x13_5Inches",e.MaterialThumbnail_15x15="MaterialThumbnail_15x15",e.MaterialThumbnail_16x16Inches="MaterialThumbnail_16x16Inches",e.MaterialThumbnail_20x20="MaterialThumbnail_20x20",e.MaterialThumbnail_27x27Inches="MaterialThumbnail_27x27Inches",e.MaterialThumbnail_30x30="MaterialThumbnail_30x30",e.MaterialThumbnail_32x32Inches="MaterialThumbnail_32x32Inches",e.MaterialTileableRender="MaterialTileableRender",e.MeshDataDrc="MeshDataDrc",e.MeshDataDrcProxy="MeshDataDrcProxy",e.MeshDataPly="MeshDataPly",e.PdfTemplate="PdfTemplate",e.PictureData="PictureData",e.PictureDataLinear="PictureDataLinear",e.PictureDataSecondary="PictureDataSecondary",e.PictureDataTertiary="PictureDataTertiary",e.ProfilePicture="ProfilePicture",e.ScanAssemblyWorkPackage="ScanAssemblyWorkPackage",e.ScanCalibrationData="ScanCalibrationData",e.ScanFittingWorkPackage="ScanFittingWorkPackage",e.ScanLog="ScanLog",e.ScanMergedFile="ScanMergedFile",e.ScanReferenceFile="ScanReferenceFile",e.TemplateConfigIcon="TemplateConfigIcon",e.TemplateDataOther="TemplateDataOther",e.TextureEditDescriptor="TextureEditDescriptor",e.TextureEditMask="TextureEditMask",e.TilingGraph="TilingGraph",e})(Qe||{});var hi=(function(e){return e.Exr="exr",e.Jpg="jpg",e.Png="png",e.Tiff="tiff",e})(hi||{}),mi=(function(e){return e.High="High",e.Low="Low",e.Medium="Medium",e.Tiny="Tiny",e})(mi||{});var BW=pi`
    query GetMaterialDownloadData($articleId: String!, $organizationId: ID!) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    materialId
    organizationId
  }
}
    `;var HW=pi`
    query GetMaterialThumbnailDownloadUrl($articleId: String!, $organizationId: ID!, $assignmentType: DataObjectAssignmentType!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    thumbnailDownloadUrl(
      assignmentType: $assignmentType
      resolution: $resolution
      fileType: $fileType
    )
  }
}
    `;var $W=pi`
    query GetMaterialTileDownloadUrl($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    tileDownloadUrl(resolution: $resolution, fileType: $fileType)
  }
}
    `;var qW=pi`
    query GetMaterialPbrDownloadUrl($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    pbrDownloadUrl(resolution: $resolution, fileType: $fileType)
  }
}
    `;var ef=["pbr","thumbnail","tile"],Qa={none:null,"7x7in":Qe.MaterialThumbnail_7x7Inches,"9x9in":Qe.MaterialThumbnail_9x9Inches,"16x16in":Qe.MaterialThumbnail_16x16Inches,"8x8in":Qe.MaterialThumbnail_8x8Inches,"13_5x13_5in":Qe.MaterialThumbnail_13_5x13_5Inches,"27x27in":Qe.MaterialThumbnail_27x27Inches,"32x32in":Qe.MaterialThumbnail_32x32Inches,"10x10cm":Qe.MaterialThumbnail_10x10,"15x15cm":Qe.MaterialThumbnail_15x15,"20x20cm":Qe.MaterialThumbnail_20x20,"30x30cm":Qe.MaterialThumbnail_30x30},dy=Object.keys(Qa),Ya={none:null,exr:hi.Exr,jpg:hi.Jpg,tiff:hi.Tiff},fy=Object.keys(Ya),gi={none:null,low:mi.Low,medium:mi.Medium,high:mi.High},py=Object.keys(gi);var dT=fi`
    query GetMaterialDownloadData($articleId: String!, $organizationId: ID!) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    materialId
    organizationId
  }
}
    `,fT=fi`
    query GetMaterialThumbnailDownloadUrl($articleId: String!, $organizationId: ID!, $assignmentType: DataObjectAssignmentType!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    thumbnailDownloadUrl(
      assignmentType: $assignmentType
      resolution: $resolution
      fileType: $fileType
    )
  }
}
    `,pT=fi`
    query GetMaterialTileDownloadUrl($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    tileDownloadUrl(resolution: $resolution, fileType: $fileType)
  }
}
    `,hT=fi`
    query GetMaterialPbrDownloadUrl($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    pbrDownloadUrl(resolution: $resolution, fileType: $fileType)
  }
}
    `,mT=(e,t,n,r)=>e();function hy(e,t=mT){return{GetMaterialDownloadData(n,r){return t(o=>e.request(dT,n,R(R({},r),o)),"GetMaterialDownloadData","query",n)},GetMaterialThumbnailDownloadUrl(n,r){return t(o=>e.request(fT,n,R(R({},r),o)),"GetMaterialThumbnailDownloadUrl","query",n)},GetMaterialTileDownloadUrl(n,r){return t(o=>e.request(pT,n,R(R({},r),o)),"GetMaterialTileDownloadUrl","query",n)},GetMaterialPbrDownloadUrl(n,r){return t(o=>e.request(hT,n,R(R({},r),o)),"GetMaterialPbrDownloadUrl","query",n)}}}var Ka=JSON;var my=e=>e.toUpperCase(),gy=e=>{let t={};return e.forEach((n,r)=>{t[r]=n}),t};var vy=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},yy=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0},Dy=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0};var Ey=e=>{let t,n=e.definitions.filter(r=>r.kind==="OperationDefinition");return n.length===1&&(t=n[0]?.name?.value),t},Qr=e=>{if(typeof e=="string"){let n;try{let r=Fr(e);n=Ey(r)}catch(r){}return{query:e,operationName:n}}let t=Ey(e);return{query:Kt(e),operationName:t}};var vi=class e extends Error{constructor(t,n){let r=`${e.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,e.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}};var ln=Vy(Iy(),1);var Kr=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||ln&&ln.Headers&&e instanceof ln.Headers?t=gy(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&r!==void 0&&(t[n]=r)}):t=e),t},wy=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),gT=e=>{if(!Array.isArray(e.query)){let r=e,o=[`query=${encodeURIComponent(wy(r.query))}`];return e.variables&&o.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`),r.operationName&&o.push(`operationName=${encodeURIComponent(r.operationName)}`),o.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");let t=e,n=e.query.reduce((r,o,i)=>(r.push({query:wy(o),variables:t.variables?t.jsonSerializer.stringify(t.variables[i]):void 0}),r),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`},vT=e=>t=>De(null,null,function*(){let{url:n,query:r,variables:o,operationName:i,fetch:s,fetchOptions:a,middleware:c}=t,u=R({},t.headers),l="",d;e==="POST"?(d=yT(r,o,i,a.jsonSerializer),typeof d=="string"&&(u["Content-Type"]="application/json")):l=gT({query:r,variables:o,operationName:i,jsonSerializer:a.jsonSerializer??Ka});let f=R({method:e,headers:u,body:d},a),p=n,m=f;if(c){let v=yield Promise.resolve(c(de(R({},f),{url:n,operationName:i,variables:o}))),{url:h}=v,I=dn(v,["url"]);p=h,m=I}return l&&(p=`${p}?${l}`),yield s(p,m)}),Ja=class{constructor(t,n={}){this.url=t,this.requestConfig=n,this.rawRequest=(...r)=>De(this,null,function*(){let[o,i,s]=r,a=yy(o,i,s),y=this.requestConfig,{headers:c,fetch:u=ln.default,method:l="POST",requestMiddleware:d,responseMiddleware:f}=y,p=dn(y,["headers","fetch","method","requestMiddleware","responseMiddleware"]),{url:m}=this;a.signal!==void 0&&(p.signal=a.signal);let{operationName:v}=Qr(a.query);return tf({url:m,query:a.query,variables:a.variables,headers:R(R({},Kr(nf(c))),Kr(a.requestHeaders)),operationName:v,fetch:u,method:l,fetchOptions:p,middleware:d}).then(h=>(f&&f(h),h)).catch(h=>{throw f&&f(h),h})})}request(t,...n){return De(this,null,function*(){let[r,o]=n,i=vy(t,r,o),v=this.requestConfig,{headers:s,fetch:a=ln.default,method:c="POST",requestMiddleware:u,responseMiddleware:l}=v,d=dn(v,["headers","fetch","method","requestMiddleware","responseMiddleware"]),{url:f}=this;i.signal!==void 0&&(d.signal=i.signal);let{query:p,operationName:m}=Qr(i.document);return tf({url:f,query:p,variables:i.variables,headers:R(R({},Kr(nf(s))),Kr(i.requestHeaders)),operationName:m,fetch:a,method:c,fetchOptions:d,middleware:u}).then(y=>(l&&l(y),y.data)).catch(y=>{throw l&&l(y),y})})}batchRequests(t,n){let r=Dy(t,n),c=this.requestConfig,{headers:o}=c,i=dn(c,["headers"]);r.signal!==void 0&&(i.signal=r.signal);let s=r.documents.map(({document:u})=>Qr(u).query),a=r.documents.map(({variables:u})=>u);return tf({url:this.url,query:s,variables:a,headers:R(R({},Kr(nf(o))),Kr(r.requestHeaders)),operationName:void 0,fetch:this.requestConfig.fetch??ln.default,method:this.requestConfig.method||"POST",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then(u=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(u),u.data)).catch(u=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(u),u})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){let{headers:r}=this.requestConfig;return r?r[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}},tf=e=>De(null,null,function*(){let{query:t,variables:n,fetchOptions:r}=e,o=vT(my(e.method??"post")),i=Array.isArray(e.query),s=yield o(e),a=yield DT(s,r.jsonSerializer??Ka),c=Array.isArray(a)?!a.some(({data:d})=>!d):!!a.data,u=Array.isArray(a)||!a.errors||Array.isArray(a.errors)&&!a.errors.length||r.errorPolicy==="all"||r.errorPolicy==="ignore";if(s.ok&&u&&c){let l=(Array.isArray(a),a),{errors:d}=l,f=dn(l,["errors"]),p=r.errorPolicy==="ignore"?f:a;return de(R({},i?{data:p}:p),{headers:s.headers,status:s.status})}else{let d=typeof a=="string"?{error:a}:a;throw new vi(de(R({},d),{status:s.status,headers:s.headers}),{query:t,variables:n})}});var yT=(e,t,n,r)=>{let o=r??Ka;if(!Array.isArray(e))return o.stringify({query:e,variables:t,operationName:n});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");let i=e.reduce((s,a,c)=>(s.push({query:a,variables:t?t[c]:void 0}),s),[]);return o.stringify(i)},DT=(e,t)=>De(null,null,function*(){let n;return e.headers.forEach((r,o)=>{o.toLowerCase()==="content-type"&&(n=r)}),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(yield e.text()):e.text()}),nf=e=>typeof e=="function"?e():e;var ec={production:!0,version:"5.0.10",firebase:{apiKey:"AIzaSyAcDsjPHSXRuK0ECvnUgsv93ZTPmQZ2-w8",authDomain:"cm-platform-prod.firebaseapp.com",databaseURL:"https://cm-platform-prod.firebaseio.com",projectId:"cm-platform-prod",storageBucket:"cm-platform-prod.appspot.com",messagingSenderId:"25388089203",appId:"1:25388089203:web:04b9a8a9327a05cfcdcf06",measurementId:"G-M9TKYTZ818"},firebaseConfig:{collectionEnabled:!0},restApiEndpoint:"https://api.colormass.com/v01/",gqlApiEndpoint:"https://gql.colormass.com",tilingEndpoint:"wss://tiling.colormass.com/"};var tc=(()=>{class e{sdk=hy(new Ja(`${ec.gqlApiEndpoint}/graphql`,{errorPolicy:"ignore"}));materialExport=(n,r,o,i,s,a)=>De(this,null,function*(){if(!n)throw new Error("The articleId must be defined.");if(!r)throw new Error("The organizationId must be defined.");if(!o)throw new Error("The type must be defined.");switch(o){case"pbr":{if(s)throw new Error("Providing dimensions is not supported for PBRs.");return(yield this.sdk.GetMaterialPbrDownloadUrl({articleId:n,organizationId:r,fileType:i,resolution:a}))?.materialDownloadData?.pbrDownloadUrl}case"thumbnail":{if(!s)throw new Error("Missing assignment type. Did you provide valid dimensions?");return(yield this.sdk.GetMaterialThumbnailDownloadUrl({articleId:n,organizationId:r,assignmentType:s,fileType:i,resolution:a}))?.materialDownloadData?.thumbnailDownloadUrl}case"tile":{if(s)throw new Error("Providing dimensions is not supported for tileable images.");return(yield this.sdk.GetMaterialTileDownloadUrl({articleId:n,organizationId:r,fileType:i,resolution:a}))?.materialDownloadData?.tileDownloadUrl}default:throw new Error(`Unrecognized download link type: ${o}`)}});static \u0275fac=function(r){return new(r||e)};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})();var bT=["*"],_y=(()=>{class e{elementRef;downloadLinkService;organizationId;articleId;type;dimensions=void 0;resolution=void 0;fileType="exr";downloadLink=void 0;constructor(n,r){this.elementRef=n,this.downloadLinkService=r}ngOnInit(){this.injectLink()}ngOnChanges(){if(!this.articleId){console.error("No article id provided");return}if(!this.organizationId){console.error("No organization id provided");return}let n=this.type&&ef.includes(this.type)?this.type:void 0;if(!n){console.error(`Invalid material export type: ${this.type}. Please provide one of ${ef.join(", ")}`);return}let r=this.fileType&&fy.includes(this.fileType)?Ya[this.fileType]:void 0;if(this.fileType&&r===void 0){console.error(`Invalid resolution ${this.fileType}. Please provide one of ${Object.keys(Ya).join(", ")}`);return}let o=this.resolution&&py.includes(this.resolution)?gi[this.resolution]:void 0;if(this.resolution&&o===void 0){console.log(o,gi[this.resolution]),console.error(`Invalid resolution ${this.resolution}. Please provide one of ${Object.keys(gi).join(", ")}`);return}let i=this.dimensions&&dy.includes(this.dimensions)?Qa[this.dimensions]:void 0;if(this.dimensions&&i===void 0){console.error(`Invalid dimensions ${this.dimensions}. Please provide one of ${Object.keys(Qa).join(", ")}`);return}this.downloadLinkService.materialExport(this.articleId,this.organizationId,n,r===null?void 0:r,i===null?void 0:i,o===null?void 0:o).then(s=>{this.downloadLink=s??void 0,this.injectLink()}).catch(s=>{console.error(s),this.downloadLink=void 0,this.injectLink()})}injectLink(){let n=this.elementRef.nativeElement.firstElementChild;n.tagName==="A"?(this.downloadLink?n.setAttribute("href",this.downloadLink):n.removeAttribute("href"),n.classList.toggle("disabled",!this.downloadLink)):console.error(n?`cm-material-download expects its first child to be an anchor tag, found ${n.tagName} instead`:"cm-material-download expects its first child to be an anchor tag, no child found")}static \u0275fac=function(r){return new(r||e)(br(xo),br(tc))};static \u0275cmp=cl({type:e,selectors:[["cm-material-download"]],inputs:{organizationId:"organizationId",articleId:"articleId",type:"type",dimensions:"dimensions",resolution:"resolution",fileType:"fileType"},standalone:!1,features:[Ms],ngContentSelectors:bT,decls:2,vars:0,template:function(r,o){r&1&&(hl(),Us(0),ml(1),Bs())},styles:["[_nghost-%COMP%]{display:inline-flex}"]})}return e})();var IT={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function wT(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function _T(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var rf;function xT(e,t){if(!rf){let n=Element.prototype;rf=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?rf.call(e,t):!1}function TT(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[wT(r)]=[n,o]}),t}function ST(e,t){return t.get(Wt).resolveComponentFactory(e).inputs}function NT(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=CT(a,t,o);c!==-1&&r[c].push(a)}return r}function CT(e,t,n){let r=n;return _T(e)&&t.some((o,i)=>o!=="*"&&xT(e,o)?(r=i,!0):!1),r}var MT=10,of=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(Wt).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new sf(this.componentFactory,t,this.inputMap)}},sf=class{componentFactory;injector;inputMap;eventEmitters=new eo(1);events=this.eventEmitters.pipe(no(t=>Ic(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(fe),this.appRef=this.injector.get(Qt),this.cdScheduler=n.get(Tt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=IT.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},MT))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),ol(this.componentRef.hostView)&&(il(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=He.create({providers:[],parent:this.injector}),r=NT(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new Y(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},af=class extends HTMLElement{ngElementEventsSubscription=null};function xy(e,t){let n=ST(e,t.injector),r=t.strategyFactory||new of(e,t.injector),o=TT(n);class i extends af{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let l=this[c];delete this[c],a.setInputValue(c,l,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,u,l){let[d,f]=o[a];this.ngElementStrategy.setInputValue(d,u,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a,isSignal:c})=>{Object.defineProperty(i.prototype,s,{get(){let u=this.ngElementStrategy.getInputValue(s);return c&&ul(u)?u():u},set(u){this.ngElementStrategy.setInputValue(s,u,a)},configurable:!0,enumerable:!0})}),i}var Ty=()=>{let e=null;try{if(e=localStorage.getItem("colormass-web-components-api-key"),e)return{"X-Api-Key":e}}catch(n){console.error("Failed to get API key from local storage: ",n)}let t=null;try{if(t=localStorage.getItem("token"),t)return{Authorization:`Bearer ${t}`}}catch(n){console.error("Failed to get user token from local storage: ",n)}return{}};var Sy={};var AT=(e,t,n)=>{let r=["POST","PUT","PATCH"].indexOf(e.method.toUpperCase())!==-1,o=u=>["variables","extensions"].indexOf(u.toLowerCase())!==-1,i=e.body.length,s=e.options&&e.options.useMultipart,a;if(s){if(i)return new Y(u=>u.error(new Error("File upload is not available when combined with Batching")));if(!r)return new Y(u=>u.error(new Error("File upload is not available when GET is used")));if(!n)return new Y(u=>u.error(new Error(`To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink's options`)));a=n(e.body),s=!!a.files.size}let c={};if(i){if(!r)return new Y(u=>u.error(new Error("Batching is not available for GET requests")));c={body:e.body}}else{let u=s?a.clone:e.body;r?c={body:u}:c={params:Object.keys(e.body).reduce((d,f)=>{let p=e.body[f];return d[f]=o(f)?JSON.stringify(p):p,d},{})}}if(s&&r){let u=new FormData;u.append("operations",JSON.stringify(c.body));let l={},d=a.files,f=0;d.forEach(p=>{l[++f]=p}),u.append("map",JSON.stringify(l)),f=0,d.forEach((p,m)=>{u.append(++f+"",m,m.name)}),c.body=u}return t.request(e.method,e.url,R(R({observe:"response",responseType:"json",reportProgress:!1},c),e.options))},RT=(e,t)=>e&&t?t.keys().reduce((r,o)=>r.set(o,t.getAll(o)),e):t||e;function FT(...e){return e.find(t=>typeof t<"u")}function kT(e){let t=e.headers&&e.headers instanceof ut?e.headers:new ut(e.headers);if(e.clientAwareness){let{name:n,version:r}=e.clientAwareness;n&&!t.has("apollographql-client-name")&&(t=t.set("apollographql-client-name",n)),r&&!t.has("apollographql-client-version")&&(t=t.set("apollographql-client-version",r))}return t}var OT={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Zr(e,t,n){return FT(e[n],t[n],OT[n])}var cf=class extends Je{httpClient;options;requester;print=Kt;constructor(t,n){super(),this.httpClient=t,this.options=n,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new U(o=>{let i=r.getContext(),s=Zr(i,this.options,"method"),a=Zr(i,this.options,"includeQuery"),c=Zr(i,this.options,"includeExtensions"),u=Zr(i,this.options,"uri"),l=Zr(i,this.options,"withCredentials"),d=Zr(i,this.options,"useMultipart"),f=this.options.useGETForQueries===!0,p=r.query.definitions.some(h=>h.kind==="OperationDefinition"&&h.operation==="query");f&&p&&(s="GET");let m={method:s,url:typeof u=="function"?u(r):u,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:l,useMultipart:d,headers:this.options.headers}};c&&(m.body.extensions=r.extensions),a&&(m.body.query=this.print(r.query));let v=kT(i);m.options.headers=RT(m.options.headers,v);let y=AT(m,this.httpClient,this.options.extractFiles).subscribe({next:h=>{r.setContext({response:h}),o.next(h.body)},error:h=>o.error(h),complete:()=>o.complete()});return()=>{y.closed||y.unsubscribe()}})}request(t){return this.requester(t)}},Ny=(()=>{class e{httpClient;constructor(n){this.httpClient=n}create(n){return new cf(this.httpClient,n)}static \u0275fac=function(r){return new(r||e)(F(ta))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var PT=`${ec.gqlApiEndpoint}/graphql`,LT=new ii({uri:PT,headers:R(R({},Ty()),Sy)}),Cy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ke({type:e});static \u0275inj=_e({providers:[{provide:Jd,useFactory(){return{cache:new ui,link:LT}},deps:[Ny]}],imports:[ly,Ll]})}return e})();var My=(()=>{class e{injector;constructor(n){this.injector=n}ngDoBootstrap(){let n=xy(_y,{injector:this.injector});customElements.define("cm-material-download",n)}static \u0275fac=function(r){return new(r||e)(F(He))};static \u0275mod=ke({type:e});static \u0275inj=_e({providers:[tc],imports:[Ao,Cl,Cy]})}return e})();Ym.production&&void 0;var jT=()=>Nl().bootstrapModule(My);jT().catch(e=>console.error(e));
})();