(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,ky=Object.getOwnPropertyDescriptor,Fy=Object.getOwnPropertyDescriptors,Oy=Object.getOwnPropertyNames,yi=Object.getOwnPropertySymbols,Py=Object.getPrototypeOf,oc=Object.prototype.hasOwnProperty,fd=Object.prototype.propertyIsEnumerable;var ld=(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)&&ld(e,n,t[n]);if(yi)for(var n of yi(t))fd.call(t,n)&&ld(e,n,t[n]);return e},fe=(e,t)=>Ry(e,Fy(t));var fn=(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&&fd.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=ky(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 Ee=(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 Ka=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Xa=(function(){function e(){this.fetch=!1,this.DOMException=Ka.DOMException}return e.prototype=Ka,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(E){return!1}})(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function i(E){return E&&DataView.prototype.isPrototypeOf(E)}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(E){return E&&s.indexOf(Object.prototype.toString.call(E))>-1};function c(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(E)||E==="")throw new TypeError('Invalid character in header field name: "'+E+'"');return E.toLowerCase()}function u(E){return typeof E!="string"&&(E=String(E)),E}function l(E){var w={next:function(){var M=E.shift();return{done:M===void 0,value:M}}};return o.iterable&&(w[Symbol.iterator]=function(){return w}),w}function f(E){this.map={},E instanceof f?E.forEach(function(w,M){this.append(M,w)},this):Array.isArray(E)?E.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):E&&Object.getOwnPropertyNames(E).forEach(function(w){this.append(w,E[w])},this)}f.prototype.append=function(E,w){E=c(E),w=u(w);var M=this.map[E];this.map[E]=M?M+", "+w:w},f.prototype.delete=function(E){delete this.map[c(E)]},f.prototype.get=function(E){return E=c(E),this.has(E)?this.map[E]:null},f.prototype.has=function(E){return this.map.hasOwnProperty(c(E))},f.prototype.set=function(E,w){this.map[c(E)]=u(w)},f.prototype.forEach=function(E,w){for(var M in this.map)this.map.hasOwnProperty(M)&&E.call(w,this.map[M],M,this)},f.prototype.keys=function(){var E=[];return this.forEach(function(w,M){E.push(M)}),l(E)},f.prototype.values=function(){var E=[];return this.forEach(function(w){E.push(w)}),l(E)},f.prototype.entries=function(){var E=[];return this.forEach(function(w,M){E.push([M,w])}),l(E)},o.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function d(E){if(!E._noBody){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}}function p(E){return new Promise(function(w,M){E.onload=function(){w(E.result)},E.onerror=function(){M(E.error)}})}function m(E){var w=new FileReader,M=p(w);return w.readAsArrayBuffer(E),M}function v(E){var w=new FileReader,M=p(w),$=/charset=([A-Za-z0-9_-]+)/.exec(E.type),ne=$?$[1]:"utf-8";return w.readAsText(E,ne),M}function y(E){for(var w=new Uint8Array(E),M=new Array(w.length),$=0;$<w.length;$++)M[$]=String.fromCharCode(w[$]);return M.join("")}function h(E){if(E.slice)return E.slice(0);var w=new Uint8Array(E.byteLength);return w.set(new Uint8Array(E)),w.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(E){this.bodyUsed=this.bodyUsed,this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:o.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:o.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():o.arrayBuffer&&o.blob&&i(E)?(this._bodyArrayBuffer=h(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||a(E))?this._bodyArrayBuffer=h(E):this._bodyText=E=Object.prototype.toString.call(E):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof E=="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(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var E=d(this);if(E)return E;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 E=d(this);return E||(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 E=d(this);if(E)return E;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(C)}),this.json=function(){return this.text().then(JSON.parse)},this}var D=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(E){var w=E.toUpperCase();return D.indexOf(w)>-1?w:E}function T(E,w){if(!(this instanceof T))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(E instanceof T){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,w.headers||(this.headers=new f(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!M&&E._bodyInit!=null&&(M=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=w.credentials||this.credentials||"same-origin",(w.headers||!this.headers)&&(this.headers=new f(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()}}}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})};function C(E){var w=new FormData;return E.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(E){var w=new f,M=E.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(Zn){console.warn("Response "+Zn.message)}}}),w}I.call(T.prototype);function F(E,w){if(!(this instanceof F))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 f(w.headers),this.url=w.url||"",this._initBody(E)}I.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},F.error=function(){var E=new F(null,{status:200,statusText:""});return E.ok=!1,E.status=0,E.type="error",E};var J=[301,302,303,307,308];F.redirect=function(E,w){if(J.indexOf(w)===-1)throw new RangeError("Invalid status code");return new F(null,{status:w,headers:{location:E}})},n.DOMException=r.DOMException;try{new n.DOMException}catch(E){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(E,w){return new Promise(function(M,$){var ne=new T(E,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 F(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 Zn(le){try{return le===""&&r.location.href?r.location.href:le}catch(mt){return le}}if(H.open(ne.method,Zn(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 f||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=f,r.Request=T,r.Response=F),n.Headers=f,n.Request=T,n.Response=F,n.fetch=oe,Object.defineProperty(n,"__esModule",{value:!0}),n})({})})(Xa);Xa.fetch.ponyfill=!0;delete Xa.fetch.polyfill;var Yr=Ka.fetch?Ka: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 dd=1;var dn=Symbol("SIGNAL");function G(e){let t=ic;return ic=e,t}function Ei(){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 pd(e){if(!(bi(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===dd)){if(!e.producerMustRecompute(e)&&!uc(e)){sc(e);return}e.producerRecomputeValue(e),sc(e)}}function sc(e){e.dirty=!1,e.lastCleanEpoch=dd}function cc(e){return e&&hd(e),G(e)}function hd(e){e.producersTail=void 0,e.recomputing=!0}function md(e,t){G(t),e&&gd(e)}function gd(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||(pd(n),r!==n.version))return!0}return!1}function Di(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 fc(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{vd(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)vd(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 dc=me.EMPTY;function _i(e){return e instanceof me||e&&"closed"in e&&W(e.remove)&&W(e.add)&&W(e.unsubscribe)}function vd(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 Ti(e){Xn.setTimeout(()=>{let{onUnhandledError:t}=et;if(t)t(e);else throw e})}function pc(){}var yd=hc("C",void 0,void 0);function Ed(e){return hc("E",void 0,e)}function Dd(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 bd(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(Dd(t),this):this._next(t)}error(t){this.isStopped?gc(Ed(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?gc(yd,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){xi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){xi(r)}else xi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){xi(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 xi(e){et.useDeprecatedSynchronousErrorHandling?bd(e):Ti(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 Ci(e){return e}function Id(e){return e.length===0?Ci: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=wd(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 Id(n)(this)}toPromise(n){return n=wd(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 wd(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 De(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 Qe(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 _d=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 Si(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new _d}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?dc:(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 Si(t,n),e})(),Si=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:dc}};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 Ni=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 Ni{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 ki=class extends Ai{};var Ec=new ki(Ri);var Td=new Y(e=>e.complete());function xd(e){return e&&W(e.schedule)}function Cd(e){return e[e.length-1]}function Bt(e){return xd(Cd(e))?e.pop():void 0}function Sd(e,t){return typeof Cd(e)=="number"?e.pop():t}var Dc=function(e,t){return Dc=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])},Dc(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");Dc(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(f){s(f)}}function c(l){try{u(r.throw(l))}catch(f){s(f)}}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 Nd(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 Md(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,f)}}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){d(i[0][3],v)}}function u(p){p.value instanceof gn?Promise.resolve(p.value.v).then(l,f):d(i[0][2],p)}function l(p){c("next",p)}function f(p){c("throw",p)}function d(p,m){p(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ad(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 Nd=="function"?Nd(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 Fi=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 Md(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 Ne(e){if(e instanceof Y)return e;if(e!=null){if(Pi(e))return Yy(e);if(Fi(e))return Zy(e);if(Oi(e))return Ky(e);if(Li(e))return Rd(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 Zy(e){return new Y(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Ky(e){return new Y(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ti)})}function Xy(e){return new Y(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Rd(e){return new Y(t=>{eE(e,t).catch(n=>t.error(n))})}function Jy(e){return Rd(Bi(e))}function eE(e,t){var n,r,o,i;return je(this,void 0,void 0,function*(){try{for(n=Ad(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 Ye(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 De((n,r)=>{n.subscribe(Qe(r,o=>Ye(r,e,()=>r.next(o),t),()=>Ye(r,e,()=>r.complete(),t),o=>Ye(r,e,()=>r.error(o),t)))})}function $i(e,t=0){return De((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function kd(e,t){return Ne(e).pipe($i(t),vn(t))}function Fd(e,t){return Ne(e).pipe($i(t),vn(t))}function Od(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 Pd(e,t){return new Y(n=>{let r;return Ye(n,t,()=>{r=e[Vi](),Ye(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=>{Ye(n,t,()=>{let r=e[Symbol.asyncIterator]();Ye(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ld(e,t){return qi(Bi(e),t)}function jd(e,t){if(e!=null){if(Pi(e))return kd(e,t);if(Fi(e))return Od(e,t);if(Oi(e))return Fd(e,t);if(Li(e))return qi(e,t);if(Ui(e))return Pd(e,t);if(Hi(e))return Ld(e,t)}throw ji(e)}function nt(e,t){return t?jd(e,t):Ne(e)}function zi(...e){let t=Bt(e);return nt(e,t)}function Ve(e,t){return De((n,r)=>{let o=0;n.subscribe(Qe(r,i=>{r.next(e.call(t,i,o++))}))})}function Vd(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,f=!1,d=()=>{f&&!c.length&&!u&&t.complete()},p=v=>u<r?m(v):c.push(v),m=v=>{i&&t.next(v),u++;let y=!1;Ne(n(v,l++)).subscribe(Qe(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?Ye(t,s,()=>m(h)):m(h)}d()}catch(h){t.error(h)}}))};return e.subscribe(Qe(t,p,()=>{f=!0,d()})),()=>{a?.()}}function nr(e,t,n=1/0){return W(t)?nr((r,o)=>Ve((i,s)=>t(r,i,o,s))(Ne(e(r,o))),n):(typeof t=="number"&&(n=t),De((r,o)=>Vd(r,o,e,n)))}function Gi(e=1/0){return nr(Ci,e)}function Ud(){return Gi(1)}function bc(...e){return Ud()(nt(e,Bt(e)))}function Ic(...e){let t=Bt(e),n=Sd(e,1/0),r=e;return r.length?r.length===1?Ne(r[0]):Gi(n)(nt(r,t)):Td}function wc(e,t){return De((n,r)=>{let o=0;n.subscribe(Qe(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 De((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Tc(...e){let t=Bt(e);return De((n,r)=>{(t?bc(e,n,t):bc(e,n)).subscribe(r)})}function no(e,t){return De((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Qe(r,c=>{o?.unsubscribe();let u=0,l=i++;Ne(e(c,l)).subscribe(o=Qe(r,f=>r.next(t?t(c,f,l,u++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var xc;function Qi(){return xc}function vt(e){let t=xc;return xc=e,t}var Bd=Symbol("NotFound");function rr(e){return e===Bd||e?.name==="\u0275NotFound"}var L=class extends Error{code;constructor(t,n){super(es(t,n)),this.code=t}};function sE(e){return`NG0${Math.abs(e)}`}function es(e,t){return`${sE(e)}${t?": "+t:""}`}var ot=globalThis;function K(e){for(let t in e)if(e[t]===K)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 aE=K({__forward_ref__:K});function ts(e){return e.__forward_ref__=ts,e.toString=function(){return Ht(this())},e}function Be(e){return Gd(e)?e():e}function Gd(e){return typeof e=="function"&&e.hasOwnProperty(aE)&&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 cE(e,rs)}function cE(e,t){return e.hasOwnProperty(t)&&e[t]||null}function uE(e){let t=e?.[rs]??null;return t||null}function Sc(e){return e&&e.hasOwnProperty(Zi)?e[Zi]:null}var rs=K({\u0275prov:K}),Zi=K({\u0275inj:K}),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=K({\u0275cmp:K}),zc=K({\u0275dir:K}),Gc=K({\u0275pipe:K}),Wc=K({\u0275mod:K}),Nc=K({\u0275fac:K}),bn=K({__NG_ELEMENT_ID__:K}),Hd=K({__NG_ENV_ID__:K});function Wd(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 Qd(e){return os(e,"@Pipe"),e[Gc]||null}function os(e,t){if(e==null)throw new L(-919,!1)}var Yd=K({ngErrorCode:K}),lE=K({ngErrorMessage:K}),fE=K({ngTokenPath:K});function Yc(e,t){return Zd("",-200,t)}function is(e,t){throw new L(-201,!1)}function Zd(e,t,n){let r=new L(t,e);return r[Yd]=t,r[lE]=e,n&&(r[fE]=n),r}function dE(e){return e[Yd]}var Mc;function Kd(){return Mc}function Ue(e){let t=Mc;return Mc=e,t}function Zc(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 pE={},yn=pE,hE="__NG_DI_FLAG__",Ac=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=En(n)||0;try{return this.injector.get(t,r&8?null:yn,r)}catch(o){if(rr(o))return o;throw o}}};function mE(e,t=0){let n=Qi();if(n===void 0)throw new L(-203,!1);if(n===null)return Zc(e,void 0,t);{let r=gE(t),o=n.retrieve(e,r);if(rr(o)){if(r.optional)return null;throw o}return o}}function k(e,t=0){return(Kd()||mE)(Be(e),t)}function O(e,t){return k(e,En(t))}function En(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function gE(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=vE(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(k(o,i))}else t.push(k(r))}return t}function vE(e){return e[hE]}function ir(e,t){let n=e.hasOwnProperty(Nc);return n?e[Nc]:null}function ss(e,t){e.forEach(n=>Array.isArray(n)?ss(n,t):t(n))}function Xd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Kc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jd(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=Zd("",-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;Ki(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 Ki(e,t,n,r){if(e=Be(e),!e)return!1;let o=null,i=Sc(e),s=!i&&ao(e);if(!i&&!s){let c=e.ngModule;if(i=Sc(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)Ki(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;ss(i.imports,l=>{Ki(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:()=>k(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 yE=K({provide:String,useValue:K});function np(e){return e!==null&&typeof e=="object"&&yE in e}function EE(e){return!!(e&&e.useExisting)}function DE(e){return!!(e&&e.useFactory)}function Xi(e){return typeof e=="function"}var uo=new P(""),Yi={},$d={},Cc;function lo(){return Cc===void 0&&(Cc=new oo),Cc}var Me=class{},Dn=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,Fc(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=En(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(Hd))return t[Hd](this);let o=En(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=TE(t)&&ns(t);l&&this.injectableDefInScope(l)?u=or(kc(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=dE(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=IE(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===$d)throw Yc(Ht(t));return n.value===Yi&&(n.value=$d,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&_E(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 kc(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 bE(e);throw new L(204,!1)}function bE(e){if(e.length>0)throw new L(204,!1);let n=uE(e);return n!==null?()=>n.factory(e):()=>new e}function IE(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)||kc(o)}else if(np(e))r=()=>Be(e.useValue);else if(DE(e))r=()=>e.useFactory(...Rc(e.deps||[]));else if(EE(e))r=(o,i)=>k(Be(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Be(e&&(e.useClass||e.provide));if(wE(e))r=()=>new o(...Rc(e.deps));else return ir(o)||kc(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 wE(e){return!!e.deps}function _E(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function TE(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Fc(e,t){for(let n of e)Array.isArray(n)?Fc(n,t):n&&$c(n)?Fc(n.\u0275providers,t):t(n)}function sr(e,t){let n;e instanceof Dn?(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 Kd()!==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,Ct=10,qe=11,cr=12,ru=13,ur=14,ze=15,_n=16,Tn=17,xn=18,qt=19,ou=20,_t=21,us=22,fo=23,Ge=24,ls=25,po=26,ke=27,op=1;var lr=7,ip=8,ho=9,We=10;function St(e){return Array.isArray(e)&&typeof e[op]=="object"}function Nt(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 Cn(e){return!!e.template}function fr(e){return(e[j]&512)!==0}function Sn(e){return(e[j]&256)===256}var sp="svg",ap="math";function Mt(e){for(;Array.isArray(e);)e=e[it];return e}function Nn(e,t){return Mt(t[e.index])}function au(e,t){return e.data[t]}function zt(e,t){let n=t[e];return St(n)?n:n[it]}function fs(e){return(e[j]&128)===128}function ds(e,t){return t==null?null:e[t]}function cu(e){e[Tn]=0}function ps(e){e[j]&1024||(e[j]|=1024,fs(e)&&go(e))}function dr(e){return!!(e[j]&9216||e[Ge]?.dirty)}function hs(e){e[Ct].changeDetectionScheduler?.notify(8),e[j]&64&&(e[j]|=1024),dr(e)&&go(e)}function go(e){e[Ct].changeDetectionScheduler?.notify(0);let t=$t(e);for(;t!==null&&!(t[j]&8192||(t[j]|=8192,!fs(t)));)t=$t(t)}function uu(e,t){if(Sn(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 Nt(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 fp(){return ie.bindingsEnabled}function lu(){return ie.skipHydrationRootTNode!==null}function At(){return ie.lFrame.lView}function fu(){return ie.lFrame.tView}function pr(){let e=du();for(;e!==null&&e.type===64;)e=e.parent;return e}function du(){return ie.lFrame.currentTNode}function dp(){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 xE(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=xE(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 Ep(){let e=ie.lFrame;return ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Eu=Ep;function vs(){let e=Ep();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 Dp(){return ie.lFrame.selectedIndex}function Gt(e){ie.lFrame.selectedIndex=e}var bp=!0;function Du(){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 Dn(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:()=>k(Xc)});static __NG_ELEMENT_ID__=-1},Te=new P(""),hr=(()=>{class e{static __NG_ELEMENT_ID__=CE;static __NG_ENV_ID__=n=>n}return e})(),Lc=class extends hr{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Sn(this._lView)}onDestroy(t){let n=this._lView;return uu(n,t),()=>cp(n,t)}};function CE(){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",SE=0,de=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,AE(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,NE,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)}},NE={};function Tu(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 ME(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){wu(()=>{e.callbackScheduled=!1,Vc(e),e.isCheckStableRunning=!0,Tu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Vc(e)}function AE(e){let t=()=>{ME(e)},n=SE++;e._inner=e._inner.fork({name:"angular",properties:{[_u]:!0,[io]:n,[io+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(RE(c))return r.invokeTask(i,s,a,c);try{return qd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),zd(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return qd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!kE(c)&&t(),zd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Vc(e),Tu(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 qd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zd(e){e._nesting--,Tu(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 RE(e){return Tp(e,"__ignore_ng_zone__")}function kE(e){return Tp(e,"__scheduler_tick__")}function Tp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Tt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},mr=new P("",{factory:()=>{let e=O(de),t=O(Me),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Tt),n.handleError(r))})}}}),xp={provide:co,useValue:()=>{let e=O(Tt,{optional:!0})},multi:!0};var xt=class{},yo=new P("",{factory:()=>!0});var xu=new P(""),Eo=(()=>{class e{internalPendingTasks=O(Mn);scheduler=O(xt);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})(),Cu=(()=>{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{[dn];constructor(t){this[dn]=t}destroy(){this[dn].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=ZE),YE}function YE(){let e=Zp(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 ZE(e,t,n,r,o){let i=this.declaredInputs[r],s=Zp(e)||KE(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 Zp(e){return e[Yp]||null}function KE(e,t){return e[Yp]=t}var Cp=[];var se=function(e,t=null,n){for(let r=0;r<Cp.length;r++){let o=Cp[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 XE(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 JE(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 Es(e,t,n){Kp(e,t,3,n)}function Ds(e,t,n,r){(e[j]&3)===n&&Kp(e,t,n,r)}function Su(e,t){let n=e[j];(n&3)===t&&(n&=16383,n+=1,e[j]=n)}function Kp(e,t,n,r){let o=r!==void 0?e[Tn]&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[Tn]+=65536),(a<i||i==-1)&&(eD(e,n,t,c),e[Tn]=(e[Tn]&4294901760)+c+2),c++}function Sp(e,t){se(re.LifecycleHookStart,e,t);let n=G(null);try{t.call(e)}finally{G(n),se(re.LifecycleHookEnd,e,t)}}function eD(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[Tn]>>16&&(e[j]&3)===t&&(e[j]+=16384,Sp(a,i)):Sp(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 tD(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];rD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function nD(e){return e===3||e===4||e===6}function rD(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?Np(e,n,o,null,t[++r]):Np(e,n,o,null,null))}}return e}function Np(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 oD(e){return e!==vr}function Au(e){return e&32767}function iD(e){return e>>16}function Ru(e,t){let n=iD(e),r=t;for(;n>0;)r=r[ur],n--;return r}var ku=!0;function Mp(e){let t=ku;return ku=e,t}var sD=256,Xp=sD-1,Jp=5,aD=0,yt={};function cD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(bn)&&(r=n[bn]),r==null&&(r=n[bn]=aD++);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,Nu(r.data,e),Nu(t,null),Nu(r.blueprint,null));let o=nh(e,t),i=e.injectorIndex;if(oD(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 Nu(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 uD(e,t,n){cD(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):Zc(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=hD(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=dD(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{Eu()}}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 f=lD(a,t,n,s,r,u);if(f!==yt)return f}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 lD(e,t,n,r,o,i){let s=t[q],a=s.data[e+8],c=r==null?mo(a)&&ku:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=fD(a,s,n,c,u);return l!==null?Fu(t,s,l,a,o):yt}function fD(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,d=o?a+l:u;for(let p=f;p<d;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&&Cn(p)&&p.type===n)return c}return null}function Fu(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,f=a.injectImpl?Ue(a.injectImpl):null,d=yu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&XE(n,s[n],t)}finally{f!==null&&Ue(f),Mp(c),a.resolving=!1,Eu()}}return i}function dD(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:pD: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,En(r),n)}};function pD(){return new ws(pr(),At())}function hD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[j]&2048&&!fr(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 mD(){return ch(pr(),At())}function ch(e,t){return new To(Nn(e,t))}var To=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=mD}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,gD=0;function vD(){return gD++}function yD(e){lh.set(e[qt],e)}function Ou(e){lh.delete(e[qt])}var kp="__ngContext__";function yr(e,t){St(t)?(e[kp]=t[qt],yD(t)):e[kp]=t}function fh(e){return ph(e[cr])}function dh(e){return ph(e[Ze])}function ph(e){for(;e!==null&&!Nt(e);)e=e[Ze];return e}var ED;function Qu(e){ED=e}var As=new P("",{factory:()=>DD}),DD="ng";var Rs=new P(""),xo=new P("",{providedIn:"platform",factory:()=>"unknown"});var ks=new P("",{factory:()=>O(Te).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var hh=!1,mh=new P("",{factory:()=>hh});function Fs(e){return(e.flags&32)===32}var bD=()=>null;function gh(e,t,n=!1){return bD(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 ID=/^>|^->|<!--|-->|--!>|<!-$/g,wD=/(<|>)/g,_D="\u200B$1\u200B";function TD(e){return e.replace(ID,t=>t.replace(wD,_D))}function xD(e,t){return e.createComment(TD(t))}function CD(e,t,n){return e.createElement(t,n)}function Lu(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Eh(e,t,n){e.appendChild(t,n)}function Fp(e,t,n,r,o){r!==null?Lu(e,t,n,r,o):Eh(e,t,n)}function SD(e,t,n,r){e.removeChild(null,t,n,r)}function ND(e,t,n){e.setAttribute(t,"style",n)}function MD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Dh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&tD(e,t,r),o!==null&&MD(e,t,o),i!==null&&ND(e,t,i)}function AD(e){return e instanceof Function?e():e}function RD(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 kD(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&RD(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 FD(e,t,n){let r=e.type===4&&!n?bh:e.value;return t===r}function OD(e,t,n){let r=4,o=e.attrs,i=o!==null?jD(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!==""&&!FD(e,c,n)||c===""&&t.length===1){if(st(r))return!1;s=!0}}else if(r&8){if(o===null||!kD(e,o,c,n)){if(st(r))return!1;s=!0}}else{let u=t[++a],l=PD(c,o,Yu(e),n);if(l===-1){if(st(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":f=o[l+1].toLowerCase(),r&2&&u!==f){if(st(r))return!1;s=!0}}}}return st(r)||s}function st(e){return(e&1)===0}function PD(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 VD(t,e)}function Ih(e,t,n=!1){for(let r=0;r<t.length;r++)if(OD(e,t[r],n))return!0;return!1}function LD(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function jD(e){for(let t=0;t<e.length;t++){let n=e[t];if(nD(n))return t}return e.length}function VD(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 UD(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 BD(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 HD(e){return e.map(BD).join(",")}function $D(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 Zu={};function Ku(e,t,n,r,o,i,s,a,c,u,l){let f=ke+r,d=f+o,p=qD(f,d),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,f),bindingStartIndex:f,expandoStartIndex:d,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 qD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Zu);return n}function zD(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ku(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 f=t.blueprint.slice();return f[it]=o,f[j]=r|4|128|8|64|1024,(u!==null||e&&e[j]&2048)&&(f[j]|=2048),cu(f),f[Ae]=f[ur]=e,f[$e]=n,f[Ct]=s||e&&e[Ct],f[qe]=a||e&&e[qe],f[wn]=c||e&&e[wn]||null,f[Re]=i,f[qt]=vD(),f[ar]=l,f[ou]=u,f[ze]=t.type==2?e[ze]:f,f}function GD(e,t,n){let r=Nn(t,e),o=zD(n),i=e[Ct].rendererFactory,s=Th(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 Th(e,t){return e[cr]?e[ru][Ze]=t:e[cr]=t,e[ru]=t,t}function WD(e,t,n,r){if(!r)if((t[j]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Es(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ds(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][dn]),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||{}),QD;function Ju(e,t){return QD(e,t)}var Er=new Set,el=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(el||{}),kn=new P(""),Pp=new Set;function xh(e){Pp.has(e)||(Pp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Ch=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=V({token:e,providedIn:"root",factory:()=>new e})}return e})();var Sh=new P("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:O(Me)})});function Nh(e,t,n){let r=e.get(Sh);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 YD(e,t){for(let[n,r]of t)Nh(e,r.animateFns)}function ZD(e,t){let n=e.get(Sh);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)&&YD(r,o)}function gr(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;Nt(o)?c=o:St(o)&&(u=!0,o=o[it]);let l=Mt(o);e===0&&r!==null?(Lp(a,r,i,n),s==null?Eh(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,f=>{SD(t,l,u,f)}):e===3&&jp(a,i,n,()=>{t.destroyNode(l)}),c!=null&&cb(t,e,n,c,i,r,s)}}function KD(e,t){Mh(e,t),t[it]=null,t[Re]=null}function XD(e,t,n,r,o,i){r[it]=o,r[Re]=t,Ps(e,r,n,1,o,i)}function Mh(e,t){t[Ct].changeDetectionScheduler?.notify(9),Ps(e,t,t[qe],2,null,null)}function JD(e){let t=e[cr];if(!t)return Mu(e[q],e);for(;t;){let n=null;if(St(t))n=t[cr];else{let r=t[We];r&&(n=r)}if(!n){for(;t&&!t[Ze]&&t!==e;)St(t)&&Mu(t[q],t),t=t[Ae];t===null&&(t=e),St(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(Sn(t))return;let n=t[qe];n.destroyNode&&Ps(e,t,n,3,null,null),JD(t)}function Mu(e,t){if(Sn(t))return;let n=G(null);try{t[j]&=-129,t[j]|=256,t[Ge]&&Di(t[Ge]),rb(e,t),nb(e,t),t[q].type===1&&t[qe].destroy();let r=t[_n];if(r!==null&&Nt(t[Ae])){r!==t[Ae]&&tl(r,t);let o=t[xn];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)&&ZD(n,o.enter.get(t.index).animateFns),o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&Er.add(e[qt]),Nh(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&&Er.delete(e[qt]),r(!1)},o)}function tb(e,t){let n=e[po]?.running;if(n){n.then(()=>{e[po].running=void 0,Er.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 Nn(r,n)}function Rh(e,t,n){return sb(e,t,n)}function ib(e,t,n){return e.type&40?Nn(e,n):null}var sb=ib,Vp;function kh(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++)Fp(i,o,n[c],a,!1);else Fp(i,o,n,a,!1);Vp!==void 0&&Vp(i,r,t,n,o)}function Do(e,t){if(t!==null){let n=t.type;if(n&3)return Nn(t,e);if(n&4)return Vu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Do(e,r);{let o=e[t.index];return Nt(o)?Vu(-1,o):Mt(o)}}else{if(n&128)return Do(e,t.next);if(n&32)return Ju(t,e)()||Mt(e[t.index]);{let r=Fh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=$t(e[ze]);return Do(o,r)}else return Do(e,t.next)}}}return null}function Fh(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 Do(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),!Fs(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),f;for(;f=l();)gr(t,e,a,o,f,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=Dp(),s=r&2;try{Gt(-1),s&&t.length>ke&&WD(e,t,ke,!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){db(e,t,n),(n.flags&64)===64&&pb(e,t,n)}function jh(e,t,n=Nn){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){fb(e)}var fb=()=>null;function db(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mo(n)&&GD(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=Fu(t,e,s,n);if(yr(c,t),i!==null&&gb(t,s-r,c,a,n,i),Cn(a)){let u=zt(n.index,t);u[$e]=Fu(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??=[],Cn(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=ke+n,s=t[q],a=o(s,t,e,r,n);t[i]=a,vo(e,!0);let c=e.type===2;return c?(Dh(t[qe],a,e),(up()===0||su(e))&&yr(a,t),lp()):yr(a,t),Du()&&(!c||!Fs(e))&&kh(s,t,a,e),e}function yb(e){let t=e;return pu()?hu():(t=t.parent,vo(t,!1)),t}function Eb(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],f=t.data[u];ju(f,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 Db(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[xn]?.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++)Db(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[xn];return l!==null&&(c[xn]=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)),Nt(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=Fh(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 Tb(e){return e[Ge]??xb(e)}function xb(e){let t=Bh.pop()??Object.create(Sb);return t.lView=e,t}function Cb(e){e.lView[Ge]!==e&&(e.lView=null,Bh.push(e))}var Sb=fe(R({},ac),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{go(e.lView)},consumerOnSignalRead(){this.lView[Ge]=this}});function Nb(e){let t=e[Ge]??Object.create(Mb);return t.lView=e,t}var Mb=fe(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[Ct].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(;dr(e);){if(r===Ab)throw new L(103,!1);r++,Uu(e,1)}}finally{gu(n)}}function kb(e,t,n,r){if(Sn(t))return;let o=t[j],i=!1,s=!1;gs(t);let a=!0,c=null,u=null;i||(Hh(e)?(u=Tb(t),c=cc(u)):Ei()===null?(a=!1,u=Nb(t),c=cc(u)):t[Ge]&&(Di(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&&Es(t,p,null)}else{let p=e.preOrderHooks;p!==null&&Ds(t,p,0,null),Su(t,0)}if(s||Fb(t),$h(t),zh(t,0),e.contentQueries!==null&&vh(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&Es(t,p)}else{let p=e.contentHooks;p!==null&&Ds(t,p,1),Su(t,1)}Pb(e,t);let f=e.components;f!==null&&Wh(t,f,0);let d=e.viewQuery;if(d!==null&&Pu(2,d,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&Es(t,p)}else{let p=e.viewHooks;p!==null&&Ds(t,p,2),Su(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&&(md(u,c),a&&Cb(u)),vs()}}function zh(e,t){for(let n=fh(e);n!==null;n=dh(n))for(let r=We;r<n.length;r++){let o=n[r];Gh(o,t)}}function Fb(e){for(let t=fh(e);t!==null;t=dh(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){fs(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)kb(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[Ct].changeDetectionScheduler?.notify(t);e;){e[j]|=n;let r=$t(e);if(fr(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&&XD(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=Kc(e,We+t);KD(r[q],r);let s=i[xn];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],Xd(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[xn];a!==null&&a.insertView(e),hs(t),t[j]|=128}function Yh(e,t){let n=e[ho],r=t[Ae];if(St(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 Sn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Ae];if(Nt(t)){let n=t[ip],r=n?n.indexOf(this):-1;r>-1&&(Vb(t,r),Kc(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=fr(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=fr(this._lView),r=this._lView[_n];r!==null&&!n&&Yh(r,this._lView),hs(this._lView)}};function ol(e){return dr(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=dp();i.injectorIndex=s===null?-1:s.injectorIndex}return vo(i,!0),i}function Bb(e,t,n,r,o){let i=du(),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 Zh=class{},Ls=class{},Bu=class{resolveComponentFactory(t){throw new L(917,!1)}},Wt=class{static NULL=new Bu},An=class{};var Kh=(()=>{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 k(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 d=0;d<a;d++){let p=r[d];c===null&&Cn(p)&&(c=p,Qb(e,n,d)),uD(eh(n,t),e,p.type)}tI(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let d=0;d<a;d++){let p=r[d];p.providersResolver&&p.providersResolver(p)}let u=!1,l=!1,f=_h(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let d=0;d<a;d++){let p=r[d];if(n.mergedAttrs=Gu(n.mergedAttrs,p.hostAttrs),Kb(e,n,t,f,p),eI(f,p,o),s!==null&&s.has(p)){let[v,y]=s.get(p);n.directiveToIndex.set(p.type,[f,v+n.directiveStart,y+n.directiveStart])}else(i===null||!i.has(p))&&n.directiveToIndex.set(p.type,f);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),f++}Zb(e,n,i)}function Zb(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 Kb(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=ir(o.type,!0)),s=new Io(i,Cn(o),br,null);e.blueprint[r]=s,n[r]=s,Xb(e,t,r,_h(e,n,o.hostVars,Zu),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;Cn(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=ds(u,s),f=sl(c,e,n,r,l);return i&&Gb(c,t,f,ds(u,a),o),f.mergedAttrs=Gu(f.mergedAttrs,f.attrs),f.attrs!==null&&Up(f,f.attrs,!1),f.mergedAttrs!==null&&Up(f,f.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,f),f}function em(e,t){JE(e,t),iu(t)&&e.queries.elementEnd(t)}var $u=Symbol("BINDING");var Ts=class extends Wt{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=ao(t);return new xs(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(Kh,null),r=e.get(xt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function sI(e,t){let n=tm(e);return CD(t,n,n==="svg"?sp:n==="math"?ap:null)}function tm(e){return(e.selectors[0][0]||"div").toLowerCase()}var xs=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=HD(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),f=iI(l),d=f.rendererFactory.createRenderer(null,c),p=r?ub(d,r,c.encapsulation,l):sI(c,d),m=s?.some(qp)||i?.some(h=>typeof h!="function"&&h.bindings.some(qp)),v=Xu(null,u,null,512|wh(c),null,null,f,d,l,null,gh(p,l,!0));v[ke]=p,gs(v);let y=null;try{let h=Jh(ke,v,2,"#host",()=>u.directiveRegistry,!0,0);Dh(d,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 Cs(this.componentType,v,!!m)}finally{G(a)}}};function aI(e,t,n,r){let o=e?["ng-version","21.1.4"]:$D(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 f=r[l];if(typeof f!="function")for(let d of f.bindings){a+=d[$u].requiredVars;let p=l+1;d.create&&(d.targetIdx=p,(i??=[]).push(d)),d.update&&(d.targetIdx=p,(s??=[]).push(d))}}let c=[t];if(r)for(let l of r){let f=typeof l=="function"?l:l.type,d=Qc(f);c.push(d)}return Ku(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 Cs=class extends Zh{_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],ke),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=Eb(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 fI(e,t,n){return lI(e,t,n)}var qu=new Map,dI=new Set;function al(e){return Ee(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=>Ee(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(d=>{s.template=d}));let u=typeof s.styles=="string"?[s.styles]:s.styles??[];s.styles=u;let{styleUrl:l,styleUrls:f}=s;if(l&&(f=[l],s.styleUrl=void 0),f?.length){let d=Promise.all(f.map(p=>r(p))).then(p=>{u.push(...p),s.styleUrls=void 0});c.push(d)}yield Promise.all(c),dI.delete(i)}));yield Promise.all(o)})}function nm(){return qu.size===0}function pI(e,t){return Ee(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 Dr=class{},rm=class{};var _o=class extends Dr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Ts(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Wd(t);this._bootstrapComponents=AD(i.bootstrap),this._r3Injector=Iu(t,n,[{provide:Dr,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)}},Ss=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 Ns=class extends Dr{injector;componentFactoryResolver=new Ts(this);instance=null;constructor(t){super();let n=new Dn([...t.providers,{provide:Dr,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 Ns({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(k(Me))})}return e})();function cl(e){return zu(()=>{let t=yI(e),n=fe(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&&xh("NgStandalone"),EI(n);let r=e.dependencies;return n.directiveDefs=zp(r,mI),n.pipeDefs=zp(r,Qd),n.id=DI(n),n})}function mI(e){return ao(e)||Qc(e)}function Fe(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 EI(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 DI(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=Ku(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);Du()&&kh(n,t,c,e),yr(c,t);let u=Lb(c,t,c,e);t[r+ke]=u,Th(t,u),fI(u,e,t)}function II(e,t,n,r,o,i,s,a,c,u,l){let f=n+ke,d;if(t.firstCreatePass){if(d=sl(t,f,4,s||null,a||null),u!=null){let p=ds(t.consts,u);d.localNames=[];for(let m=0;m<p.length;m+=2)d.localNames.push(p[m],-1)}}else d=t.data[f];return bI(d,e,t,n,r,o,i,c),u!=null&&jh(e,d,l),d}var wI=_I;function _I(e,t,n,r){return bu(!0),t[qe].createComment("")}function ul(e){return typeof e=="function"&&e[dn]!==void 0}var js=new P(""),Vs=new P(""),Co=(()=>{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:()=>{de.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)(k(de),k(sm),k(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 fl(e){return!!e&&typeof e.then=="function"}function cm(e){return!!e&&typeof e.subscribe=="function"}var um=new P("");var dl=(()=>{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(fl(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 fm(){fc(()=>{let e="";throw new L(600,e)})}function dm(e){return e.isBoundToModule}var TI=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(Ch);zonelessEnabled=O(yo);rootEffectScheduler=O(Cu);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(kn,{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(de).run(()=>{se(re.BootstrapComponentStart);let s=n instanceof Ls;if(!this._injector.get(dl).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=dm(c)?void 0:this._injector.get(Dr),l=r||c.selector,f=c.create(o,[],l,u),d=f.location.nativeElement,p=f.injector.get(js,null);return p?.registerApplication(d),f.onDestroy(()=>{this.detachView(f.hostView),bo(this.components,f),p?.unregisterApplication(d)}),this._loadComponent(f),se(re.BootstrapComponentEnd,f),f})}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++<TI;){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&&!dr(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})=>dr(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 DR=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Us(e,t,n){let r=At(),o=r[q],i=e+ke,s=o.firstCreatePass?Jh(i,r,8,"ng-container",mb,fp(),t,n):o.data[i];if(vb(s,r,e,"ng-container",xI),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=fu(),t=pr(),n=yb(t);return e.firstCreatePass&&em(e,n),Bs}var xI=(e,t,n,r,o)=>(bu(!0),xD(t[qe],""));var So="en-US";var CI=So;function pm(e){typeof e=="string"&&(CI=e.toLowerCase().replace(/_/g,"-"))}function SI(e,t){let n=null,r=LD(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):UD(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=Jd(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?SI(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=fu(),c=r?e+1:null;c!==null&&II(s,a,c,r,o,i,null,n);let u=sl(a,ke+e,16,null,n||null);u.projection===null&&(u.projection=t),hu();let f=!s[ar]||lu();s[ze][Re].projection[u.projection]===null&&c!==null?NI(s,a,c):f&&!Fs(u)&&ab(a,s,u)}function NI(e,t,n){let r=ke+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(de);zonelessEnabled=O(yo);tracing=O(kn,{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(xu,{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:xt,useExisting:gm},{provide:de,useClass:so},{provide:yo,useValue:!0}]}function MI(){return typeof $localize<"u"&&$localize.locale||So}var gl=new P("",{factory:()=>O(gl,{optional:!0,skipSelf:!0})||MI()});function UI(e,t,n){let r=new Ss(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 No(e){return!e.moduleRef}function HI(e){let t=No(e)?e.r3Injector:e.moduleRef.injector,n=t.get(de);return n.run(()=>{No(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mr),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),No(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(dl);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(gl,So);if(pm(c||So),!t.get(BI,!0))return No(e)?t.get(Qt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(No(e)){let l=t.get(Qt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Dm?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var Dm;function Em(){Dm=$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 fl(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??[],xp],i=om(n.moduleType,this.injector,o);return Em(),HI({moduleRef:i,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=pl({},r);return Em(),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)(k(He))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),vl=null;function zI(e){if(El())throw new L(400,!1);fm(),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=El();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=El();if(!t)throw new L(-401,!1);return t}function El(){return vl?.get(bm)??null}function QI(e){let t=e.get(Rs,null);sr(e,()=>{t?.forEach(n=>n())})}var YI=1e4;var Nj=YI-1e3;var Im=yl(null,"core",[]),wm=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(k(Qt))};static \u0275mod=Fe({type:e});static \u0275inj=_e({})}return e})();var _m=null;function Rt(){return _m}function Dl(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(Tm),providedIn:"platform"})}return e})();var Tm=(()=>{class e extends $s{_location;_history;_doc=O(Te);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=Fe({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 Fn=class{};var xm="browser";var ko=class{_doc;constructor(t){this._doc=t}manager},qs=(()=>{class e extends ko{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)(k(Te))};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)(k(Ws),k(de))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})(),bl="ng-app-id";function Cm(e){for(let t of e)t.remove()}function Sm(e,t){let n=t.createElement("style");return n.textContent=e,n}function KI(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 Tl=(()=>{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,KI(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Sm);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&&(Cm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Cm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Sm(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)(k(Te),k(As),k(ks,8),k(xo))};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"},xl=/%COMP%/g;var Mm="%COMP%",XI=`_nghost-${Mm}`,JI=`_ngcontent-${Mm}`,ew=!0,tw=new P("",{factory:()=>ew});function nw(e){return JI.replace(xl,e)}function rw(e){return XI.replace(xl,e)}function Am(e,t){return t.map(n=>n.replace(xl,e))}var Cl=(()=>{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 Fo(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,f=this.tracingService;switch(r.encapsulation){case at.Emulated:i=new Gs(c,u,r,this.appId,l,s,a,f);break;case at.ShadowDom:return new zs(c,n,r,s,a,this.nonce,f,u);case at.ExperimentalIsolatedShadowDom:return new zs(c,n,r,s,a,this.nonce,f);default:i=new Oo(c,u,r,l,s,a,f);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)(k(_l),k(Tl),k(As),k(tw),k(Te),k(de),k(ks),k(kn,8))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})(),Fo=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){(Nm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Nm(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 Nm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var zs=class extends Fo{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 f of u){let d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=f,this.shadowRoot.appendChild(d)}let l=r.getExternalStyles?.();if(l)for(let f of l){let d=wl(f,o);s&&d.setAttribute("nonce",s),this.shadowRoot.appendChild(d)}}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 Fo{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&&Er.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(){Dl(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},km=(()=>{class e extends ko{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)(k(Te))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})();function uw(){Qs.makeCurrent()}function lw(){return new Tt}function fw(){return Qu(document),document}var dw=[{provide:xo,useValue:xm},{provide:Rs,useValue:uw,multi:!0},{provide:Te,useFactory:fw}],Sl=yl(Im,"browser",dw);var pw=[{provide:Vs,useClass:Ys},{provide:js,useClass:Co},{provide:Co,useClass:Co}],hw=[{provide:uo,useValue:"root"},{provide:Tt,useFactory:lw},{provide:Ws,useClass:qs,multi:!0},{provide:Ws,useClass:km,multi:!0},Cl,Tl,_l,{provide:An,useExisting:Cl},{provide:Fn,useClass:sw},[]],Nl=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({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 Ks=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 Fm(t)}encodeValue(t){return Fm(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 Fm(e){return encodeURIComponent(e).replace(gw,(t,n)=>vw[n]??t)}function Zs(e){return`${e}`}var kt=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(Zs):[Zs(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(Zs(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(Zs(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 Ew(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var jm="Content-Type",Vm="Accept",Bm="text/plain",Hm="application/json",Dw=`${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 Ks,!this.params)this.params=new kt,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)||Ew(this.body)?this.body:this.body instanceof kt?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 kt?"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,f=t.referrer||this.referrer,d=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,D=t.headers||this.headers,_=t.params||this.params,T=t.context??this.context;return t.setHeaders!==void 0&&(D=Object.keys(t.setHeaders).reduce((C,A)=>C.set(A,t.setHeaders[A]),D)),t.setParams&&(_=Object.keys(t.setParams).reduce((C,A)=>C.set(A,t.setParams[A]),_)),new e(n,r,y,{params:_,headers:D,context:T,reportProgress:I,responseType:o,withCredentials:h,transferCache:m,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:u,credentials:l,referrer:f,integrity:d,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(kn,{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,Dw),!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:D}=u(),_=null;h!==Iw&&(_=typeof s.response>"u"?s.responseText:s.response),h===0&&(h=_?bw:0);let T=h>=200&&h<300;if(n.responseType==="json"&&typeof _=="string"){let C=_;_=_.replace(_w,"");try{_=_!==""?JSON.parse(_):null}catch(A){_=C,T&&(T=!1,_={error:A,text:_})}}T?(i.next(new Lo({body:_,headers:y,status:h,statusText:I,url:D||void 0})),i.complete()):i.error(new wr({error:_,headers:y,status:h,statusText:I,url:D||void 0}))}),f=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)}),d=f;n.timeout&&(d=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",f),s.addEventListener("timeout",d),s.addEventListener("abort",f),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",f),s.removeEventListener("abort",f),s.removeEventListener("load",l),s.removeEventListener("timeout",d),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)(k(Fn))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $m(e,t){return t(e)}function Tw(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function xw(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(""),kl=new P("",{factory:()=>!0});function Cw(){let e=null;return(t,n)=>{e===null&&(e=(O(qm,{optional:!0})??[]).reduceRight(Tw,$m));let r=O(Eo);if(O(kl)){let i=r.add();return e(t,n).pipe(Wi(i))}else return e(t,n)}}var Fl=(()=>{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=k(Al),o},providedIn:"root"})}return e})();var ea=(()=>{class e{backend;injector;chain=null;pendingTasks=O(Eo);contributeToStability=O(kl);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)=>xw(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)(k(Fl),k(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=k(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 kt?u=o.params:u=new kt({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 kt().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)(k(Ol))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Sw=new P("",{factory:()=>!0}),Nw="XSRF-TOKEN",Mw=new P("",{factory:()=>Nw}),Aw="X-XSRF-TOKEN",Rw=new P("",{factory:()=>Aw}),kw=(()=>{class e{cookieName=O(Mw);doc=O(Te);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=k(kw),o},providedIn:"root"})}return e})();function Fw(e,t){if(!O(Sw)||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:Fl,useFactory:()=>O(ww,{optional:!0})??O(Al)},{provide:Rl,useValue:Fw,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:Cw},{provide:Rl,useExisting:Um,multi:!0}])}var Ll=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({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",Zm=Object.setPrototypeOf,jw=Zm===void 0?function(e,t){return e.__proto__=t,e}:Zm,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 Km(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 Tr=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 S=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 Tr[Jm]&&Tr[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 xr(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 Cr(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,Cr(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),f=l[o];if(f.length>120){let d=Math.floor(c/80),p=c%80,m=[];for(let v=0;v<f.length;v+=80)m.push(f.slice(v,v+80));return u+rg([[`${s} |`,m[0]],...m.slice(1,d+1).map(v=>["|",v]),["|","^".padStart(p)],["|",m[d+1]]])}return u+rg([[`${s-1} |`,l[o-1]],[`${s} |`,f],["|","^".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:f}=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 d=og((r=this.nodes)===null||r===void 0?void 0:r.map(m=>m.loc).filter(m=>m!=null));this.source=a??(d==null||(o=d[0])===null||o===void 0?void 0:o.source),this.positions=c??d?.map(m=>m.start),this.locations=c&&a?c.map(m=>Cr(a,m)):d?.map(m=>Cr(m.source,m.start));let p=tg(l?.extensions)?l?.extensions:void 0;this.extensions=(i=f??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}}},Sr=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 x=(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})(x||{});function la(e){return e===9||e===32}function Nr(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)||Nr(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),f="",d=o&&la(e.charCodeAt(0));return(l&&!d||i)&&(f+=`
`),f+=n,(l||u)&&(f+=`
`),'"""'+f+'"""'}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 Sr(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 fa(e,t){return fg(e.charCodeAt(t))&&dg(e.charCodeAt(t+1))}function fg(e){return e>=55296&&e<=56319}function dg(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 Sr(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?Kw(e,o):Ww(e,o)}if(Nr(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)||fa(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(fa(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),Nr(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(!Nr(n))throw ce(e.source,t,`Invalid number, expected digit but got: ${Ln(e,t)}.`);let r=e.source.body,o=t+1;for(;Nr(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):Zw(e,o);s+=c.value,o+=c.size,i=o;continue}if(a===10||a===13)break;if(Mr(a))++o;else if(fa(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(fg(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let o=ug(n,t+8);if(dg(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 Zw(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 Kw(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(fa(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 da(e,[])}function da(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:da(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+": "+da(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(da(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"||xr(!1,`Body must be a string. Received: ${Ar(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||xr(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||xr(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function hg(e){return pg(e,Rr)}function kr(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:x.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:x.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:x.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:x.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:x.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:x.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:x.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:x.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:x.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:x.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:x.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:x.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:x.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:x.INT,value:n.value});case b.FLOAT:return this.advanceLexer(),this.node(n,{kind:x.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:x.BOOLEAN,value:!0});case"false":return this.node(n,{kind:x.BOOLEAN,value:!1});case"null":return this.node(n,{kind:x.NULL});default:return this.node(n,{kind:x.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:x.STRING,value:t.value,block:t.kind===b.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:x.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:x.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:x.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:x.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:x.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(b.BANG)?this.node(t,{kind:x.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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:x.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(x))r.set(h,Ql(t,h));let o,i=Array.isArray(e),s=[e],a=-1,c=[],u=e,l,f,d=[],p=[];do{a++;let h=a===s.length,I=h&&c.length!==0;if(h){if(l=p.length===0?void 0:d[d.length-1],u=f,f=p.pop(),I)if(i){u=u.slice();let _=0;for(let[T,C]of c){let A=T-_;C===null?(u.splice(A,1),_++):u[A]=C}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(let[_,T]of c)u[_]=T}a=o.index,s=o.keys,c=o.edits,i=o.inArray,o=o.prev}else if(f){if(l=i?a:s[a],u=f[l],u==null)continue;d.push(l)}let D;if(!Array.isArray(u)){var m,v;ql(u)||xr(!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(D=_?.call(t,u,l,f,d,p),D===jn)break;if(D===!1){if(!h){d.pop();continue}}else if(D!==void 0&&(c.push([l,D]),!h))if(ql(D))u=D;else{d.pop();continue}}if(D===void 0&&I&&c.push([l,u]),h)d.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=[],f&&p.push(f),f=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 Zt(e){return Ie(e,u_)}var c_=80,u_={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>N(e.definitions,`

`)},OperationDefinition:{leave(e){let t=z("(",N(e.variableDefinitions,", "),")"),n=N([e.operation,N([e.name,t]),N(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+z(" = ",n)+z(" ",N(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("(",N(n,", "),")");return s.length>c_&&(s=i+z(`(
`,ha(N(n,`
`)),`
)`)),N([s,N(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+z(" ",N(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>N(["...",z("on ",e),N(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${z("(",N(n,", "),")")} on ${t} ${z("",N(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})=>"["+N(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+N(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+z("(",N(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,`
`)+N(["schema",N(t," "),lt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>z("",e,`
`)+N(["scalar",t,N(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>z("",e,`
`)+N(["type",t,z("implements ",N(n," & ")),N(r," "),lt(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>z("",e,`
`)+t+(vg(n)?z(`(
`,ha(N(n,`
`)),`
)`):z("(",N(n,", "),")"))+": "+r+z(" ",N(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>z("",e,`
`)+N([t+": "+n,z("= ",r),N(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>z("",e,`
`)+N(["interface",t,z("implements ",N(n," & ")),N(r," "),lt(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>z("",e,`
`)+N(["union",t,N(n," "),z("= ",N(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>z("",e,`
`)+N(["enum",t,N(n," "),lt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>z("",e,`
`)+N([t,N(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>z("",e,`
`)+N(["input",t,N(n," "),lt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>z("",e,`
`)+"directive @"+t+(vg(n)?z(`(
`,ha(N(n,`
`)),`
)`):z("(",N(n,", "),")"))+(r?" repeatable":"")+" on "+N(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>N(["extend schema",N(e," "),lt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>N(["extend scalar",e,N(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>N(["extend type",e,z("implements ",N(t," & ")),N(n," "),lt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>N(["extend interface",e,z("implements ",N(t," & ")),N(n," "),lt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>N(["extend union",e,N(t," "),z("= ",N(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>N(["extend enum",e,N(t," "),lt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>N(["extend input",e,N(t," "),lt(n)]," ")}};function N(e,t=""){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function lt(e){return z(`{
`,ha(N(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===x.FIELD||e.kind===x.FRAGMENT_SPREAD||e.kind===x.INLINE_FRAGMENT}function ft(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],S(s!==void 0,68,o.name.value)):s=i.value.value,o.name.value==="skip"?!s:s})}function Ft(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&&Ft(["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;S(r&&r.length===1,69,o);var i=r[0];S(i.name&&i.name.value==="if",70,o);var s=i.value;S(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),71,o),t.push({directive:n,ifArgument:i})}}),t}var T_=()=>Object.create(null),{forEach:x_,slice:Eg}=Array.prototype,{hasOwnProperty:C_}=Object.prototype,xe=class e{constructor(t=!0,n=T_){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return x_.call(t,r=>n=n.getChildTrie(r)),C_.call(n,"data")?n.data:n.data=this.makeData(Eg.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(Eg.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&&S_(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}};function S_(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var N_=be(function(){return navigator.product})=="ReactNative",dt=typeof WeakMap=="function"&&!(N_&&!global.HermesInternal),ma=typeof WeakSet=="function",Zl=typeof Symbol=="function"&&typeof Symbol.for=="function",Kt=Zl&&Symbol.asyncIterator,SB=typeof be(function(){return window.document.createElement})=="function",NB=be(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1;function Q(e){return e!==null&&typeof e=="object"}function Kl(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"&&(S(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 S(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}},k_=typeof WeakMap<"u"?WeakMap:Map,F_=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Xl,unregister:Xl}},O_=10024,Et=class{constructor(t=1/0,n=A_){this.max=t,this.dispose=n,this.map=new k_,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 F_(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 Dg(e){e.size<=(e.max||-1)||Jl.has(e)||(Jl.add(e),setTimeout(function(){e.clean(),Jl.delete(e)},100))}var Fr=function(e,t){var n=new Et(e,t);return n.set=function(r,o){var i=Et.prototype.set.call(this,r,o);return Dg(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 Dg(this),i},n};var P_=Symbol.for("apollo.cacheSize"),pe=g({},Tr[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:tf(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:xg(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:xg(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 Tg(e){return e!=null}function xg(e){return ef(e).map(function(t){return{cache:t}})}function ef(e){return e?ge(ge([Jt(e?.performWork)],ef(e?.left),!0),ef(e?.right),!0).filter(Tg):[]}function tf(e){var t;return e?ge(ge([(t=e?.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],tf(e?.left),!0),tf(e?.right),!0).filter(Tg):[]}var Ce=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;Ce.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 Ke(e){return{__ref:String(e)}}function B(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function nf(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 Z_(e){return e.kind==="EnumValue"}function K_(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(Z_(n))e[t.value]=n.value;else if(K_(n))e[t.value]=null;else throw te(83,t.value,n.kind)}function rf(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=Ce,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(Se(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 Se(e){return e.kind==="Field"}function of(e){return e.kind==="InlineFragment"}function tn(e){S(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 S(t.length<=1,77,t.length),e}function Dt(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=Dt(e);return S(t&&t.operation==="query",78),t}function sf(e){S(e.kind==="Document",79),S(e.definitions.length<=1,80);var t=e.definitions[0];return S(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,Cg={},J_=1,eT=()=>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===Cg)break;return t!==ve&&(ve.slots[this.id]=n),!0}return ve&&(ve.slots[this.id]=Cg),!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 Sg(e){try{return e()}catch(t){}}var af="@wry/context:Slot",tT=Sg(()=>globalThis)||Sg(()=>global)||Object.create(null),Ng=tT,Bn=Ng[af]||Array[af]||(function(e){try{Object.defineProperty(Ng,af,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(eT());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=[],oT=100;function jr(e,t){if(!e)throw new Error(t||"assertion failure")}function Fg(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 kg(this),this.value[0]}recompute(n){return jr(!this.recomputing,"already recomputing"),kg(this),nn(this)?iT(this,n):Og(this.value)}setDirty(){this.dirty||(this.dirty=!0,jg(this),Lr(this))}dispose(){this.setDirty(),$g(this),cf(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 kg(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 iT(e,t){return $g(e),Hn.withValue(e,sT,[e,t]),cT(e,t)&&aT(e),Og(e.value)}function sT(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&&!Fg(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 aT(e){e.dirty=!1,!nn(e)&&Vg(e)}function jg(e){cf(e,Ug)}function Vg(e){cf(e,Bg)}function cf(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)):Fg(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<oT&&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 cT(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 uT={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(uT,s)?s:"setDirty";Wo(a).forEach(u=>u[c]()),t.delete(i),Lr(a)}},r}var zg;function lT(...e){return(zg||(zg=new xe(typeof WeakMap=="function"))).lookupArray(e)}var uf=new Set;function Vt(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=lT,normalizeResult:o,subscribe:i,cache:s=Xt}=Object.create(null)){let a=typeof s=="function"?new s(t,d=>d.dispose()):s,c=function(){let d=r.apply(null,n?n.apply(null,arguments):arguments);if(d===void 0)return e.apply(null,arguments);let p=a.get(d);p||(a.set(d,p=new Lg(e)),p.normalizeResult=o,p.subscribe=i,p.forget=()=>a.delete(d));let m=p.recompute(Array.prototype.slice.call(arguments));return a.set(d,p),uf.add(a),Hn.hasValue()||(uf.forEach(v=>v.clean()),uf.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(d){let p=d&&a.get(d);p&&p.setDirty()}c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))};function l(d){let p=d&&a.get(d);if(p)return p.peek()}c.peekKey=l,c.peek=function(){return l(r.apply(null,arguments))};function f(d){return d?a.delete(d):!1}return c.forgetKey=f,c.forget=function(){return f(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function fT(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(fT,{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 xe(dt);this.performWork=Vt(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var o=t.getCacheKey(r);if(o)return S(Array.isArray(o),67),n.lookupArray(o)},max:pe["documentTransform.cache"],cache:Et})}},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 Zo,rn=Object.assign(function(e){var t=Zo.get(e);return t||(t=Zt(e),Zo.set(e,t)),t},{reset:function(){Zo=new Fr(pe.print||2e3)}});rn.reset();globalThis.__DEV__!==!1&&va("print",function(){return Zo?Zo.size:0});var ee=Array.isArray;function ye(e){return Array.isArray(e)&&e.length>0}var Gg={kind:x.FIELD,name:{kind:x.NAME,value:"__typename"}};function Qg(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===x.FRAGMENT_SPREAD&&Qg(t[n.name.value],t)})}function dT(e){return Qg(Dt(e)||sf(e),Ot(jt(e)))?null:e}function pT(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 Ea(e,t){tn(t);for(var n=Wg(""),r=Wg(""),o=function(h){for(var I=0,D=void 0;I<h.length&&(D=h[I]);++I)if(!ee(D)){if(D.kind===x.OPERATION_DEFINITION)return n(D.name&&D.name.value);if(D.kind===x.FRAGMENT_DEFINITION)return r(D.name.value)}return globalThis.__DEV__!==!1&&S.error(84),null},i=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===x.OPERATION_DEFINITION&&++i;var a=pT(e),c=function(h){return ye(h)&&h.map(a).some(function(I){return I&&I.remove})},u=new Map,l=!1,f={enter:function(h){if(c(h.directives))return l=!0,null}},d=Ie(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(h,I,D,_,T){var C=o(T);C&&C.variables.add(h.name.value)}},FragmentSpread:{enter:function(h,I,D,_,T){if(c(h.directives))return l=!0,null;var C=o(T);C&&C.fragmentSpreads.add(h.name.value)}},FragmentDefinition:{enter:function(h,I,D,_){u.set(JSON.stringify(_),h)},leave:function(h,I,D,_){var T=u.get(JSON.stringify(_));if(h===T)return h;if(i>0&&h.selectionSet.selections.every(function(C){return C.kind===x.FIELD&&C.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(D){h.transitiveVars.add(D)})})),h},m=new Set;d.definitions.forEach(function(h){h.kind===x.OPERATION_DEFINITION?p(n(h.name&&h.name.value)).fragmentSpreads.forEach(function(I){m.add(I)}):h.kind===x.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 dT(Ie(d,{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(D){return I.has(D.variable.name.value)})})}}}}))}var $n=Object.assign(function(e){return Ie(e,{SelectionSet:{enter:function(t,n,r){if(!(r&&r.kind===x.OPERATION_DEFINITION)){var o=t.selections;if(o){var i=o.some(function(a){return Se(a)&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)});if(!i){var s=r;if(!(Se(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 lf(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 Ko(e){tn(e);var t=Ea([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}var hT=Object.prototype.hasOwnProperty;function ff(){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 mT=function(e,t,n){return this.merge(e[n],t[n])},Pe=(function(){function e(t){t===void 0&&(t=mT),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(hT.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 gT(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=vT(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 vT(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 Zg(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 mf(e,t,n){return t&&Zg(e.prototype,t),n&&Zg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var gf=function(){return typeof Symbol=="function"},vf=function(e){return gf()&&!!Symbol[e]},yf=function(e){return vf(e)?Symbol[e]:"@@"+e};gf()&&!vf("observable")&&(Symbol.observable=Symbol("observable"));var yT=yf("iterator"),pf=yf("observable"),Kg=yf("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[Kg],t===null&&(t=void 0)),t!==void 0?t:U}function ET(e){return e instanceof U}function Ur(e){Ur.log?Ur.log(e):setTimeout(function(){throw e})}function Da(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 hf(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function DT(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(hf(e),o)o.call(r,n);else throw n;break;case"complete":hf(e),o&&o.call(r);break}}catch(i){Ur(i)}e._state==="closed"?Xg(e):e._state==="running"&&(e._state="ready")}function df(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}],Da(function(){return DT(e)});return}Jg(e,t,n)}}var bT=(function(){function e(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var o=new IT(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"&&(hf(this),Xg(this))},mf(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),IT=(function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(r){df(this._subscription,"next",r)},t.error=function(r){df(this._subscription,"error",r)},t.complete=function(){df(this._subscription,"complete")},mf(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 bT(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(f){var d=!a;if(a=!0,!d||s)try{u=r(u,f)}catch(p){return l.error(p)}else u=f},error:function(f){l.error(f)},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 f(d){u=d.subscribe({next:function(p){c.next(p)},error:function(p){c.error(p)},complete:function(){l===i.length?(u=void 0,c.complete()):f(a.from(i[l++]))}})}return f(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(d){return s.error(d)}var f=i.from(l).subscribe({next:function(d){s.next(d)},error:function(d){s.error(d)},complete:function(){var d=a.indexOf(f);d>=0&&a.splice(d,1),u()}});a.push(f)},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[pf]=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,pf);if(i){var s=i.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return ET(s)&&s.constructor===o?s:new o(function(a){return s.subscribe(a)})}if(vf("iterator")&&(i=ba(r,yT),i))return new o(function(a){Da(function(){if(!a.closed){for(var c=gT(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){Da(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){Da(function(){if(!a.closed){for(var c=0;c<o.length;++c)if(a.next(o[c]),a.closed)return;a.complete()}})})},mf(e,null,[{key:Kg,get:function(){return this}}]),e})();gf()&&Object.defineProperty(U,Symbol("extensions"),{value:{symbol:pf,hostReportError:Ur},configurable:!0});function Ef(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$=Ef(Br);var ev=U.prototype,tv="@@observable";ev[tv]||(ev[tv]=function(){return this});var wT=Object.prototype.toString;function Ia(e){return Df(e)}function Df(e,t){switch(wT.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]=Df(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]=Df(e[o],t)}),r}default:return e}}function _T(e){var t=new Set([e]);return t.forEach(function(n){Q(n)&&TT(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){Q(n[r])&&t.add(n[r])})}),e}function TT(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&&_T(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 f=function(){return r.closed?0:c(l)};o=o.then(f,f).then(function(d){return r.next(d)},function(d){return r.error(d)})}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 Zl&&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 xT(e){return"hasNext"in e&&"data"in e}function rv(e){return on(e)||xT(e)}function ov(e){return Q(e)&&"payload"in e}function Ta(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=xa(e);return ye(t)}function xa(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 Ca=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 bf(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 If(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 wf(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 _f(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 Xe(e):e}function Sa(e){return e.request.length<=1}var Xe=(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 Sa(o)&&Sa(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(If(n.context,wf(bf(n))))||U.of()},e.concat=function(t,n){var r=ni(t);if(Sa(r))return globalThis.__DEV__!==!1&&S.warn(35,r),r;var o=ni(n),i;return Sa(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=Xe.execute;function Tf(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function xf(e){var t=null,n=null,r=!1,o=[],i=[];function s(f){if(!n){if(i.length){var d=i.shift();if(Array.isArray(d)&&d[0])return d[0]({value:f,done:!1})}o.push(f)}}function a(f){n=f;var d=i.slice();d.forEach(function(p){p[1](f)}),!t||t()}function c(){r=!0;var f=i.slice();f.forEach(function(d){d[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(f,d){if(n)return d(n);if(o.length)return f({value:o.shift(),done:!1});if(r)return f({value:void 0,done:!0});i.push([f,d])})}var l={next:function(){return u()}};return Kt&&(l[Symbol.asyncIterator]=function(){return this}),l}function Cf(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 Kt&&(n[Symbol.asyncIterator]=function(){return this}),n}function Na(e){var t={next:function(){return e.read()}};return Kt&&(t[Symbol.asyncIterator]=function(){return this}),t}function CT(e){return!!e.body}function ST(e){return!!e.getReader}function NT(e){return!!(Kt&&e[Symbol.asyncIterator])}function MT(e){return!!e.stream}function AT(e){return!!e.arrayBuffer}function RT(e){return!!e.pipe}function sv(e){var t=e;if(CT(e)&&(t=e.body),NT(t))return Tf(t);if(ST(t))return Na(t.getReader());if(MT(t))return Na(t.stream().getReader());if(AT(t))return Cf(t.arrayBuffer());if(RT(t))return xf(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 kT=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||kT(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,f,d,p,m,v,y,h,I,D,_,T,C,A,F,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(),f=l.value,d=l.done,p=typeof f=="string"?f:n.decode(f),m=a.length-s.length+1,u=!d,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=FT(y.slice(0,h)),D=I["content-type"],D&&D.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(_=y.slice(h),_){if(T=fv(e,_),Object.keys(T).length>1||"data"in T||"incremental"in T||"errors"in T||"payload"in T)if(ov(T)){if(C={},"payload"in T){if(Object.keys(T).length===1&&T.payload===null)return[2];C=g({},T.payload)}"errors"in T&&(C=g(g({},C),{extensions:g(g({},"extensions"in C?C.extensions:null),(F={},F[ri]=T.errors,F))})),t(C)}else t(T);else if(Object.keys(T).length===1&&"hasNext"in T&&!T.hasNext)return[2]}v=a.indexOf(s)}return[3,1];case 3:return[2]}})})}function FT(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 fv(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch(o){return t}};Ca(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 dv(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 fv(t,n)}).then(function(n){return!Array.isArray(n)&&!uv.call(n,"data")&&!uv.call(n,"errors")&&Ca(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 OT={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},PT={accept:"*/*","content-type":"application/json"},LT={method:"POST"},hv={http:OT,headers:PT,options:LT},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(f){o=g(g(g({},o),f.options),{headers:g(g({},o.headers),f.headers)}),f.credentials&&(o.credentials=f.credentials),i=g(g({},i),f.http)}),o.headers&&(o.headers=jT(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 jT(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 Ev(e,t){var n=[],r=function(f,d){n.push("".concat(f,"=").concat(encodeURIComponent(d)))};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(f){return{parseError:f}}r("variables",o)}if(t.extensions){var i=void 0;try{i=oi(t.extensions,"Extensions map")}catch(f){return{parseError:f}}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 Dv=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,f=Le(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&vv(r||Dv);var d={http:{includeExtensions:s,preserveHeaderCase:a},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new Xe(function(p){var m=yv(p,n),v=p.getContext(),y={};if(v.clientAwareness){var h=v.clientAwareness,I=h.name,D=h.version;I&&(y["apollographql-client-name"]=I),D&&(y["apollographql-client-version"]=D)}var _=g(g({},y),v.headers),T={http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:_};if(Ft(["client"],p.query)){var C=Ko(p.query);if(!C)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=C}var A=gv(p,i,hv,d,T),F=A.options,J=A.body;J.variables&&!l&&(J.variables=_f(J.variables,p.query));var oe;!F.signal&&typeof AbortController<"u"&&(oe=new AbortController,F.signal=oe.signal);var E=function(we){return we.kind==="OperationDefinition"&&we.operation==="mutation"},w=function(we){return we.kind==="OperationDefinition"&&we.operation==="subscription"},M=w(pt(p.query)),$=Ft(["defer"],p.query);if(c&&!p.query.definitions.some(E)&&(F.method="GET"),$||M){F.headers=F.headers||{};var ne="multipart/mixed;";M&&$&&globalThis.__DEV__!==!1&&S.warn(38),M?ne+="boundary=graphql;subscriptionSpec=1.0,application/json":$&&(ne+="deferSpec=20220824,application/json"),F.headers.accept=ne}if(F.method==="GET"){var H=Ev(m,J),Yn=H.newURI,Zn=H.parseError;if(Zn)return ti(Zn);m=Yn}else try{F.body=oi(J,"Payload")}catch(we){return ti(we)}return new U(function(we){var le=r||be(function(){return fetch})||Dv,mt=we.next.bind(we);return le(m,F).then(function(Kn){var nc;p.setContext({response:Kn});var ud=(nc=Kn.headers)===null||nc===void 0?void 0:nc.get("content-type");return ud!==null&&/^multipart\/mixed/i.test(ud)?lv(Kn,mt):pv(p)(Kn).then(mt)}).then(function(){oe=void 0,we.complete()}).catch(function(Kn){oe=void 0,dv(Kn,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})(Xe);var{toString:Iv,hasOwnProperty:VT}=Object.prototype,wv=Function.prototype.toString,Sf=new Map;function X(e,t){try{return Nf(e,t)}finally{Sf.clear()}}var Mf=X;function Nf(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(Tv(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(!VT.call(t,o[a]))return!1;for(let a=0;a<s;++a){let c=o[a];if(!Nf(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(Tv(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&&!Nf(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:!HT(o,BT)}}return!1}function _v(e){return Object.keys(e).filter(UT,e)}function UT(e){return this[e]!==void 0}var BT="{ [native code] }";function HT(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function Tv(e,t){let n=Sf.get(e);if(n){if(n.has(t))return!0}else Sf.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 Mf(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),!ft(i,r.variables))||xv(i))return!0;if(Se(i)){var s=Oe(i),a=t&&t[s],c=n&&n[s],u=i.selectionSet;if(!u)return Mf(a,c);var l=Array.isArray(a),f=Array.isArray(c);if(l!==f)return!1;if(l&&f){var d=a.length;if(c.length!==d)return!1;for(var p=0;p<d;++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 xv(m)?!0:Ma(m.selectionSet,t,n,r)}})}function xv(e){return!!e.directives&&e.directives.some($T)}function $T(e){return e.name.value==="nonreactive"}var Ra=(function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Vt(Kl,{max:pe["cache.fragmentQueryDocuments"]||1e3,cache:Et})}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(f){return n.watch(g(g({},u),{immediate:!0,callback:function(d){if(!(l&&Aa(c,{data:l?.result},{data:d.result}))){var p={data:d.result,complete:!!d.complete};d.missing&&(p.missing=qn(d.missing.map(function(m){return m.missing}))),l=d,f.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 Fa(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 Cv={dataIdFromObject:Fa,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Sv(e){return bt(Cv,e)}function Oa(e){var t=e.canonizeResults;return t===void 0?Cv.canonizeResults:t}function Nv(e,t){return B(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var Af=/^[_a-z][_0-9a-z]*/i;function ht(e){var t=e.match(Af);return t?t[0]:e}function ka(e,t,n){return Q(t)?ee(t)?t.every(function(r){return ka(e,r,n)}):e.selections.every(function(r){if(Se(r)&&ft(r,n)){var o=Oe(r);return ae.call(t,o)&&(!r.selectionSet||ka(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),Rf=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 Ke(o);if(B(o))return o;var s=r.policies.identify(o)[0];if(s){var a=Ke(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){S(typeof o=="string",1);var a=new Pe(zT).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||Ke(t)}:u,{store:r})}};if(Object.keys(o).forEach(function(u){var l=ht(u),f=o[u];if(f!==void 0){var d=typeof n=="function"?n:n[u]||n[l];if(d){var p=d===Rf?La:d(Jo(f),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!==f&&(i[u]=p,s=!0,f=p,globalThis.__DEV__!==!1)){var m=function(T){if(r.lookup(T.__ref)===void 0)return globalThis.__DEV__!==!1&&S.warn(2,T),!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 D=I[h];if(B(D)){if(v=!0,m(D))break}else if(typeof D=="object"&&D){var _=r.policies.identify(D)[0];_&&(y=D)}if(v&&y!==void 0){globalThis.__DEV__!==!1&&S.warn(3,y);break}}}}f!==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]=Rf,o):Rf)}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 xe(dt)},e.prototype.depend=function(t,n){if(this.d){this.d(kf(t,n));var r=ht(n);r!==n&&this.d(kf(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(kf(t,n),n==="__exists"?"forget":"setDirty")},e})();function kf(e,t){return t+"#"+e}function Ff(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 qT(u),u.storageTrie=new xe(dt),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),qT=(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 zT(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 GT(e){return Q(e)?ee(e)?e.slice(0):g({__proto__:Object.getPrototypeOf(e)},e):e}var Of=(function(){function e(){this.known=new(ma?WeakSet:Set),this.pool=new xe(dt),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=GT(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 f=s.object=Object.create(a);this.known.add(f),u.sorted.forEach(function(p,m){f[p]=c[l+m]}),globalThis.__DEV__!==!1&&Object.freeze(f)}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 kv(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Fv=(function(){function e(t){var n=this;this.knownResults=new(dt?WeakMap:Map),this.config=bt(t,{addTypename:t.addTypename!==!1,canonizeResults:Oa(t)}),this.canon=t.canon||new Of,this.executeSelectionSet=Vt(function(r){var o,i=r.context.canonizeResults,s=kv(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:(Ff(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||pe["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:kv,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 Ff(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 Of},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,f=this.config.cache.policies;s=g(g({},Un(Go(r))),s);var d=Ke(i),p=this.executeSelectionSet({selectionSet:pt(r).selectionSet,objectOrReference:d,enclosingRef:d,context:g({store:n,query:r,policies:f,variables:s,varString:Ce(s),canonizeResults:l},Pa(r,this.config.fragments))}),m;if(p.missing&&(m=[new si(WT(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"),f=[],d,p=new Pe;this.config.addTypename&&typeof l=="string"&&!c.rootIdsByTypename[l]&&f.push({__typename:l});function m(D,_){var T;return D.missing&&(d=p.merge(d,(T={},T[_]=D.missing,T))),D.result}var v=new Set(r.selections);v.forEach(function(D){var _,T;if(ft(D,a))if(Se(D)){var C=c.readField({fieldName:D.name.value,field:D,variables:s.variables,from:o},s),A=Oe(D);C===void 0?$n.added(D)||(d=p.merge(d,(_={},_[A]="Can't find field '".concat(D.name.value,"' on ").concat(B(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),_))):ee(C)?C.length>0&&(C=m(n.executeSubSelectedArray({field:D,array:C,enclosingRef:i,context:s}),A)):D.selectionSet?C!=null&&(C=m(n.executeSelectionSet({selectionSet:D.selectionSet,objectOrReference:C,enclosingRef:B(C)?C:i,context:s}),A)):s.canonizeResults&&(C=n.canon.pass(C)),C!==void 0&&f.push((T={},T[A]=C,T))}else{var F=Pt(D,s.lookupFragment);if(!F&&D.kind===x.FRAGMENT_SPREAD)throw te(9,D.name.value);F&&c.fragmentMatches(F,l)&&F.selectionSet.selections.forEach(v.add,v)}});var y=qn(f),h={result:y,missing:d},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,f){var d;return l.missing&&(a=c.merge(a,(d={},d[f]=l.missing,d))),l.result}return r.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(l,f){return l===null?null:ee(l)?u(n.executeSubSelectedArray({field:r,array:l,enclosingRef:i,context:s}),f):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:l,enclosingRef:B(l)?l:i,context:s}),f):(globalThis.__DEV__!==!1&&QT(s.store,r,l),l)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:a}},e})();function WT(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function QT(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(o){Q(o)&&(S(!B(o),10,Nv(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 Pf(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),YT(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 YT(e){e.broadcastWatches&&e.broadcastWatches()}var Lv=Object.create(null);function Lf(e){var t=JSON.stringify(e);return Lv[t]||(Lv[t]=Object.create(null))}function jf(e){var t=Lf(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var o=function(s,a){return r.readField(a,s)},i=r.keyObject=Uf(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)),S(a!==void 0,4,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function Vf(e){var t=Lf(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var o=r.field,i=r.variables,s=r.fieldName,a=Uf(e,function(u){var l=u[0],f=l.charAt(0);if(f==="@"){if(o&&ye(o.directives)){var d=l.slice(1),p=o.directives.find(function(h){return h.name.value===d}),m=p&&Lt(p,i);return m&&Gr(m,u.slice(1))}return}if(f==="$"){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 Uf(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=Lf(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):Uf(Object.keys(e).sort(),function(t){return Gr(e,t)}):e}function Bf(e){return e.args!==void 0?e.args:e.field?Lt(e.field,e.variables):null}var ZT=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:Fa},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 d=Va(arguments,s);return o.readField(d,{store:o.cache.data,variables:d.variables})}}),c,u=i&&this.getTypePolicy(i),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l(g(g({},t),s),a);if(ee(f))l=jf(f);else{c=f;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?ZT:ee(i)?jf(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 f=l.keyArgs,d=l.read,p=l.merge;u.keyFn=f===!1?Bv:ee(f)?Vf(f):typeof f=="function"?f:u.keyFn,typeof d=="function"&&(u.read=d),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&&(S(!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(Af);(!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),f=!1,d=0;d<c.length;++d){var p=c[d];if(p.has(s))return a.has(s)||(f&&globalThis.__DEV__!==!1&&S.warn(6,n,s),a.add(s)),!0;p.forEach(u),l&&d===c.length-1&&ka(t.selectionSet,r,o)&&(l=!1,f=!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=Bf(t);s;){var u=s(c,a);if(ee(u))s=Vf(u);else{i=u||r;break}}return i===void 0&&(i=t.field?rf(t.field,t.variables):ya(r,Bf(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 f=qv(this,r,t,n,n.store.getStorage(B(r)?r.__ref:r,s));return zr.withValue(this.cache,l,[c,f])}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:Bf(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&&S.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 Hf(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 Zv=(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=Dt(o),l=Mv();a=g(g({},Un(u)),a);var f=g(g({store:t,written:Object.create(null),merge:function(p,m){return l.merge(p,m)},variables:a,varString:Ce(a)},Pa(o,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!B(d))throw te(11,i);return f.incomingById.forEach(function(p,m){var v=p.storeObject,y=p.mergeTree,h=p.fieldNodeSet,I=Ke(m);if(y&&y.map.size){var D=r.applyMerges(y,I,v,f);if(B(D))return;v=D}if(globalThis.__DEV__!==!1&&!f.overwrite){var _=Object.create(null);h.forEach(function(A){A.selectionSet&&(_[A.name.value]=!0)});var T=function(A){return _[ht(A)]===!0},C=function(A){var F=y&&y.map.get(A);return!!(F&&F.info&&F.info.merge)};Object.keys(v).forEach(function(A){T(A)&&!C(A)&&KT(I,v,A,f.store)})}t.merge(m,v)}),t.retain(d.__ref),d},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 f=function(){var D=Va(arguments,u,s.variables);if(B(D.from)){var _=s.incomingById.get(D.from.__ref);if(_){var T=c.readField(g(g({},D),{from:_.storeObject}),s);if(T!==void 0)return T}}return c.readField(D,s)},d=new Set;this.flattenFields(i,o,s,l).forEach(function(D,_){var T,C=Oe(_),A=o[C];if(d.add(_),A!==void 0){var F=c.getStoreFieldName({typename:l,fieldName:_.name.value,field:_,variables:D.variables}),J=Wv(a,F),oe=n.processFieldValue(A,_,_.selectionSet?Hf(D,!1,!1):D,J),E=void 0;_.selectionSet&&(B(oe)||sn(oe))&&(E=f("__typename",oe));var w=c.getMergeFunction(l,_.name.value,E);w?J.info={field:_,typename:l,merge:w}:Qv(a,F),u=D.merge(u,(T={},T[F]=oe,T))}else globalThis.__DEV__!==!1&&!D.clientOnly&&!D.deferred&&!$n.added(_)&&!c.getReadFunction(l,_.name.value)&&globalThis.__DEV__!==!1&&S.error(12,Oe(_),o)});try{var p=c.identify(o,{typename:l,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:u,readField:f}),m=p[0],v=p[1];r=r||m,v&&(u=s.merge(u,v))}catch(D){if(!r)throw D}if(typeof r=="string"){var y=Ke(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=$f(I.mergeTree,a),d.forEach(function(D){return I.fieldNodeSet.add(D)})):s.incomingById.set(r,{storeObject:u,mergeTree:Ua(a)?void 0:a,fieldNodeSet:d}),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 xe(!1);return(function c(u,l){var f=a.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(d){if(ft(d,r.variables)){var p=l.clientOnly,m=l.deferred;if(!(p&&m)&&ye(d.directives)&&d.directives.forEach(function(h){var I=h.name.value;if(I==="client"&&(p=!0),I==="defer"){var D=Lt(h,r.variables);(!D||D.if!==!1)&&(m=!0)}}),Se(d)){var v=i.get(d);v&&(p=p&&v.clientOnly,m=m&&v.deferred),i.set(d,Hf(r,p,m))}else{var y=Pt(d,r.lookupFragment);if(!y&&d.kind===x.FRAGMENT_SPREAD)throw te(13,d.name.value);y&&s.fragmentMatches(y,o,n,r.variables)&&c(y.selectionSet,Hf(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,f=function(d,p){return ee(d)?typeof p=="number"?d[p]:void 0:o.store.getFieldValue(d,String(p))};t.map.forEach(function(d,p){var m=f(c,p),v=f(u,p);if(v!==void 0){i&&i.push(p);var y=a.applyMerges(d,m,v,o,i);y!==v&&(l=l||new Map,l.set(p,y)),i&&S(i.pop()===p)}}),l&&(r=ee(u)?u.slice(0):g({},u),l.forEach(function(d,p){r[p]=d}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,o,i&&(s=o.store).getStorage.apply(s,i)):r},e})();var Kv=[];function Wv(e,t){var n=e.map;return n.has(t)||n.set(t,Kv.pop()||{map:new Map}),n.get(t)}function $f(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,$f(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){i.map.set(a,$f(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)&&(Kv.push(r),n.delete(t))}var Yv=new Set;function KT(e,t,n,r){var o=function(f){var d=r.getFieldValue(f,n);return typeof d=="object"&&d},i=o(e);if(i){var s=o(t);if(s&&!B(i)&&!X(i,s)&&!Object.keys(i).every(function(f){return r.getFieldValue(s,f)!==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(f){var d=r.getFieldValue(f,"__typename");typeof d=="string"&&!l.includes(d)&&l.push(d)}),globalThis.__DEV__!==!1&&S.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=Sv(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 Zv(this,this.storeReader=new Fv({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,Ce({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&&Pf(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;Ce.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&&S.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(),Ce.reset(),n&&n.discardWatches?(this.watches.forEach(function(o){return r.maybeBroadcastWatch.forget(o)}),this.watches.clear(),Pf(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(d){var p=r,m=p.data,v=p.optimisticData;++r.txCount,d&&(r.data=r.optimisticData=d);try{return u=o(r)}finally{--r.txCount,r.data=m,r.optimisticData=v}},f=new Set;return c&&!this.txCount&&this.broadcastWatches(g(g({},n),{onWatchUpdated:function(d){return f.add(d),!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&&f.size?(this.broadcastWatches(g(g({},n),{onWatchUpdated:function(d,p){var m=c.call(this,d,p);return m!==!1&&f.delete(d),m}})),f.size&&f.forEach(function(d){return r.maybeBroadcastWatch.dirty(d)})):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 Z=(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})(Z||{});function cn(e){return e?e<7:!1}var Xv=Object.assign,XT=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=JT)}catch(_){}var I=!s.observers.size;s.observers.add(y);var D=s.last;return D&&D.error?y.error&&y.error(D.error):D&&D.result&&y.next&&y.next(D.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=qf(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,f=i.fetchPolicy,d=f===void 0?l:f,p=i.initialFetchPolicy,m=p===void 0?d==="standby"?l:d:p;s.options=g(g({},i),{initialFetchPolicy:m,fetchPolicy:d}),s.queryId=o.queryId||r.generateQueryId();var v=Dt(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||Z.ready,i=g(g({},r),{loading:cn(o),networkStatus:o}),s=this.options.fetchPolicy,a=s===void 0?"cache-first":s;if(!(qf(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===Z.loading&&(a==="cache-first"||a==="cache-only")&&(i.networkStatus=Z.ready,i.loading=!1)):i.partial=!0,globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&Gf(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&&XT.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&&S.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,Z.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=Z.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(i,o,Z.fetchMore).then(function(u){return r.queryManager.removeQuery(i),s.networkStatus===Z.fetchMore&&(s.networkStatus=a),r.queryManager.cache.batch({update:function(l){var f=n.updateQuery;f?l.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(d){return f(d,{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)||zf(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&&S.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},Z.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)){S(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"},Z.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===Z.refetch||r===Z.fetchMore||r===Z.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=Z.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=qf(u.fetchPolicy));var f=function(){o.concast===m&&(o.waitForOwnResult=!1)},d=u.variables&&g({},u.variables),p=this.fetch(u,r,l),m=p.concast,v=p.fromLink,y={next:function(h){X(o.variables,d)&&(f(),o.reportResult(h,d))},error:function(h){X(o.variables,d)&&(f(),o.reportError(h,d))}};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:Z.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 zf(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 JT(e){globalThis.__DEV__!==!1&&S.error(23,e.message,e.stack)}function Gf(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&S.debug(24,e)}function qf(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=ff(n.resolvers,r)}):this.resolvers=ff(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 Ft(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return Ko(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:lf(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,f,d,p,m,v,y,h,I,D;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),f=Ot(l),d=this.collectSelectionsToResolve(u,f),p=u.operation,m=p?p.charAt(0).toUpperCase()+p.slice(1):"Query",v=this,y=v.cache,h=v.client,I={fragmentMap:f,context:g(g({},i),{cache:y,client:h}),variables:s,fragmentMatcher:a,defaultOperationType:m,exportedVariables:{},selectionsToResolve:d,onlyRunForcedResolvers:c},D=!1,[2,this.resolveSelectionSet(u.selectionSet,D,o,I).then(function(T){return{result:T,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(f){return i=o.fragmentMap,s=o.context,a=o.variables,c=[r],u=function(d){return je(l,void 0,void 0,function(){var p,m;return tt(this,function(v){return!n&&!o.selectionsToResolve.has(d)?[2]:ft(d,a)?Se(d)?[2,this.resolveField(d,n,r,o).then(function(y){var h;typeof y<"u"&&c.push((h={},h[Oe(d)]=y,h))})]:(of(d)?p=d:(p=i[d.name.value],S(p,18,d.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,f,d,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))&&(f=r.__typename||o.defaultOperationType,d=this.resolvers&&this.resolvers[f],d&&(p=d[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(T){T.name.value==="as"&&T.value.kind==="StringValue"&&(o.exportedVariables[T.value.value]=y)})}),!t.selectionSet||y==null)return y;var D=(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||D,y,o);if(t.selectionSet)return m.resolveSelectionSet(t.selectionSet,n||D,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,f,d){c.name.value==="client"&&d.forEach(function(p){r(p)&&$o(p)&&a.add(p)})},FragmentSpread:function(c,u,l,f,d){var p=n[c.name.value];S(p,19,c.name.value);var m=i(p);m.size>0&&(d.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(dt?WeakMap:Map);function Wf(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),Wf(r,"evict"),Wf(r,"modify"),Wf(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||Z.loading;return this.variables&&this.networkStatus!==Z.loading&&!X(this.variables,t.variables)&&(n=Z.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():zf(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=Ta(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 f=i.getDiffOptions(r.variables),d=l.diff(f);!i.stopped&&X(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(d,f),d.complete&&(t.data=d.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Z.ready},e.prototype.markError=function(t){return this.networkStatus=Z.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 ex=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,f=t.clientAwareness,d=f===void 0?{}:f,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 Fr(pe["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new xe(!1);var I=new Vr(function(D){return h.cache.transformDocument(D)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=o||Object.create(null),this.queryDeduplication=a,this.clientAwareness=d,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,f=n.variables,d=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,D=n.onQueryUpdated,_=n.fetchPolicy,T=_===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.fetchPolicy)||"network-only":_,C=n.errorPolicy,A=C===void 0?((u=this.defaultOptions.mutate)===null||u===void 0?void 0:u.errorPolicy)||"none":C,F=n.keepRootFields,J=n.context;return tt(this,function(oe){switch(oe.label){case 0:return S(l,26),S(T==="network-only"||T==="no-cache",27),r=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),o=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),o?[4,this.localState.addExportedVariables(l,f,J)]:[3,2];case 1:f=oe.sent(),oe.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[r]={mutation:l,variables:f,loading:!0,error:null}),s=d&&this.markMutationOptimistic(d,{mutationId:r,document:l,variables:f,fetchPolicy:T,errorPolicy:A,context:J,updateQueries:p,update:I,keepRootFields:F}),this.broadcastQueries(),a=this,[2,new Promise(function(E,w){return wa(a.getObservableFromLink(l,g(g({},J),{optimisticResponse:s?d:void 0}),f,!1),function(M){if(Hr(M)&&A==="none")throw new Wn({graphQLErrors:xa(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:f,fetchPolicy:T,errorPolicy:A,context:J,update:I,updateQueries:p,awaitRefetchQueries:h,refetchQueries:v,removeOptimistic:s?r:void 0,onQueryUpdated:D,keepRootFields:F})}).subscribe({next:function(M){a.broadcastQueries(),(!("hasNext"in M)||M.hasNext===!1)&&E(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=Ta(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(f,d){var p=f.observableQuery,m=p&&p.queryName;if(!(!m||!ex.call(u,m))){var v=u[m],y=r.queries.get(d),h=y.document,I=y.variables,D=n.diff({query:h,variables:I,returnPartialData:!0,optimistic:!1}),_=D.result,T=D.complete;if(T&&_){var C=v(_,{mutationResult:o,queryName:h&&Pr(h)||void 0,queryVariables:I});C&&i.push({result:C,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(f){s||i.forEach(function(v){return f.write(v)});var d=t.update,p=!rv(o)||on(o)&&!o.hasNext;if(d){if(!s){var m=f.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&&d(f,o,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&p&&f.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(f){return l.push(f)}),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&&S.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:Ft(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:Ea([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:Un(Dt(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()),S(t.query,28),S(t.query.kind==="Document",29),S(!t.returnPartialData,30),S(!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=Z.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):nf(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,f=c.options.fetchPolicy;if(f==="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"})});S(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),globalThis.__DEV__!==!1&&o.size&&o.forEach(function(s,a){s||globalThis.__DEV__!==!1&&S.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(d){return n.getObservableFromLink(r,u,d).map(function(p){o!=="no-cache"&&(qa(p,s)&&n.cache.write({query:r,result:p.data,dataId:"ROOT_SUBSCRIPTION",variables:d}),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 f=this.localState.addExportedVariables(r,a,u).then(l);return new U(function(d){var p=null;return f.then(function(m){return p=m.subscribe(d)},d.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 f=this,d=f.inFlightLinkObservables,p=f.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=Ce(r),h=d.lookup(v,y);if(a=h.observable,!a){var I=new Gn([$r(p,m)]);a=h.observable=I,I.beforeNext(function(){d.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(D){return i.localState.runResolvers({document:l,remoteResult:D,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=xa(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:Z.ready};return c&&r.errorPolicy!=="ignore"&&(u.errors=a,u.networkStatus=Z.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=Z.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,f=n.errorPolicy,d=f===void 0?c&&c.errorPolicy||"none":f,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,D=Object.assign({},n,{query:o,variables:s,fetchPolicy:l,errorPolicy:d,returnPartialData:m,notifyOnNetworkStatusChange:y,context:I}),_=function(J){D.variables=J;var oe=i.fetchQueryByPolicy(a,D,r);return D.fetchPolicy!=="standby"&&oe.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),oe},T=function(){return i.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(J){T(),setTimeout(function(){return C.cancel(J)})});var C,A;if(this.getDocumentInfo(D.query).hasClientExports)C=new Gn(this.localState.addExportedVariables(D.query,D.variables,D.context).then(_).then(function(J){return J.sources})),A=!0;else{var F=_(D.variables);A=F.fromLink,C=new Gn(F.sources)}return C.promise.then(T,T),{concast:C,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(d,p){l.set(p,{oq:d,lastDiff:n.getQuery(p).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(d,p,m){var v=d.watcher instanceof $a&&d.watcher.observableQuery;if(v){if(u){l.delete(v.queryId);var y=u(v,p,m);return y===!0&&(y=v.refetch()),y!==!1&&f.set(v,y),y}u!==null&&l.set(v.queryId,{oq:v,lastDiff:m,diff:p})}}}),l.size&&l.forEach(function(d,p){var m=d.oq,v=d.lastDiff,y=d.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&&f.set(m,h),p.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(p)}),c&&this.cache.removeOptimistic(c),f},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,f=n.context,d=n.notifyOnNetworkStatusChange,p=t.networkStatus;t.init({document:i,variables:s,networkStatus:r});var m=function(){return t.getDiff()},v=function(_,T){T===void 0&&(T=t.networkStatus||Z.loading);var C=_.result;globalThis.__DEV__!==!1&&!l&&!X(C,{})&&Gf(_.missing);var A=function(F){return U.of(g({data:F,loading:cn(T),networkStatus:T},_.complete?null:{partial:!0}))};return C&&o.getDocumentInfo(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:C},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(F){return A(F.data||void 0)}):u==="none"&&T===Z.refetch&&Array.isArray(_.missing)?A(void 0):A(C)},y=a==="no-cache"?0:r===Z.refetch&&c!=="merge"?1:2,h=function(){return o.getResultsFromLink(t,y,{query:i,variables:s,context:f,fetchPolicy:a,errorPolicy:u})},I=d&&typeof p=="number"&&p!==r&&cn(r);switch(a){default:case"cache-first":{var D=m();return D.complete?{fromLink:!1,sources:[v(D,t.markReady())]}:l||I?{fromLink:!0,sources:[v(D),h()]}:{fromLink:!0,sources:[h()]}}case"cache-and-network":{var D=m();return D.complete||l||I?{fromLink:!0,sources:[v(D),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,f=l===void 0?0:l,d=t.connectToDevTools,p=d===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:d,m=t.queryDeduplication,v=m===void 0?!0:m,y=t.defaultOptions,h=t.defaultContext,I=t.assumeImmutableResults,D=I===void 0?s.assumeImmutableResults:I,_=t.resolvers,T=t.typeDefs,C=t.fragmentMatcher,A=t.name,F=t.version,J=t.link;J||(J=r?new ii({uri:r,credentials:o,headers:i}):Xe.empty()),this.link=J,this.cache=s,this.disableNetworkFetches=u||f>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=T,f&&setTimeout(function(){return n.disableNetworkFetches=!1},f),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:C}),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:F},localState:this.localState,assumeImmutableResults:D,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&&S.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)),S(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&&S.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,Qf=new Map,ry=!0,Ga=!1;function oy(e){return e.replace(/[\s,]+/g," ").trim()}function tx(e){return oy(e.source.body.substring(e.start,e.end))}function nx(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var o=r.name.value,i=tx(r.loc),s=Qf.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||Qf.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 rx(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 ox(e){var t=oy(e);if(!za.has(t)){var n=kr(e,{experimentalFragmentVariables:Ga,allowLegacyFragmentVariables:Ga});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");za.set(t,rx(nx(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]}),ox(r)}function iy(){za.clear(),Qf.clear()}function sy(){ry=!1}function ay(){Ga=!0}function cy(){Ga=!1}var fi={gql:Ut,resetCaches:iy,disableFragmentWarnings:sy,enableExperimentalFragmentVariables:ay,disableExperimentalFragmentVariables:cy};(function(e){e.gql=fi.gql,e.resetCaches=fi.resetCaches,e.disableFragmentWarnings=fi.disableFragmentWarnings,e.enableExperimentalFragmentVariables=fi.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=fi.disableExperimentalFragmentVariables})(Ut||(Ut={}));Ut.default=Ut;var di=Ut;Km(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 ix(e,t){return t?e.pipe(Tc({loading:!0}),Ve(n=>fe(R({},n),{loading:!!n.loading}))):e.pipe(Ve(n=>fe(R({},n),{loading:!1})))}var Zf=class{zone;constructor(t){this.zone=t}now=Date.now?Date.now:()=>+new Date;schedule(t,n=0,r){return this.zone.run(()=>Ec.schedule(t,n,r))}};function Kf(e){return e[It]=()=>e,e}function Xf(e,t){return e.pipe(vn(new Zf(t)))}function sx(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:f,fetchPolicy:d}=e.options,p=a||c;return f&&u&&(!l||Object.keys(l).length===0)&&d!=="cache-only"&&!s&&!p&&o.next(fe(R({},i),{loading:!0,networkStatus:Z.loading})),n.subscribe(o)})}}var Jf=class{obsQuery;valueChanges;queryId;constructor(t,n,r){this.obsQuery=t;let o=Xf(nt(Kf(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?o.pipe(sx(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)}},ax=new P("APOLLO_FLAGS"),ed=new P("APOLLO_OPTIONS"),cx=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 Jf(this.ensureClient().watchQuery(R({},t)),this.ngZone,R({useInitialLoading:this.useInitialLoading},t))}query(t){return uy(()=>this.ensureClient().query(R({},t)))}mutate(t){return ix(uy(()=>this.ensureClient().mutate(R({},t))),t.useMutationLoading??this.useMutationLoading)}watchFragment(t,n){let r=nt(Kf(this.ensureClient().watchFragment(R({},t))));return n&&n.useZone!==!0?r:Xf(r,this.ngZone)}subscribe(t,n){let r=nt(Kf(this.ensureClient().subscribe(R({},t))));return n&&n.useZone!==!0?r:Xf(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")}},ux=(()=>{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){Yf(r)?this.createNamed(r,n):this.createDefault(n)}default(){return this}use(n){return Yf(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){Yf(n)?this.map.delete(n):this._client=void 0}static \u0275fac=function(r){return new(r||e)(k(de),k(ed,8),k(cx,8),k(ax,8))};static \u0275prov=V({token:e,factory:e.\u0275fac})}return e})();function Yf(e){return!!e&&e!=="default"}var ly=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({type:e});static \u0275inj=_e({providers:[ux]})}return e})();var lx=Ut,pi=lx;var Je=(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.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})(Je||{});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 B3=pi`
    query GetMaterialDownloadData($articleId: String!, $organizationId: ID!) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    materialId
    organizationId
  }
}
    `;var H3=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 $3=pi`
    query GetMaterialTileDownloadUrl($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    tileDownloadUrl(resolution: $resolution, fileType: $fileType)
  }
}
    `;var q3=pi`
    query GetMaterialPbrDownloadUrl($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    pbrDownloadUrl(resolution: $resolution, fileType: $fileType)
  }
}
    `;var td=["pbr","thumbnail","tile"],Qa={none:null,"7x7in":Je.MaterialThumbnail_7x7Inches,"9x9in":Je.MaterialThumbnail_9x9Inches,"16x16in":Je.MaterialThumbnail_16x16Inches,"8x8in":Je.MaterialThumbnail_8x8Inches,"13_5x13_5in":Je.MaterialThumbnail_13_5x13_5Inches,"27x27in":Je.MaterialThumbnail_27x27Inches,"10x10cm":Je.MaterialThumbnail_10x10,"15x15cm":Je.MaterialThumbnail_15x15,"20x20cm":Je.MaterialThumbnail_20x20,"30x30cm":Je.MaterialThumbnail_30x30},fy=Object.keys(Qa),Ya={none:null,exr:hi.Exr,jpg:hi.Jpg,tiff:hi.Tiff},dy=Object.keys(Ya),gi={none:null,low:mi.Low,medium:mi.Medium,high:mi.High},py=Object.keys(gi);var fx=di`
    query GetMaterialDownloadData($articleId: String!, $organizationId: ID!) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    materialId
    organizationId
  }
}
    `,dx=di`
    query GetMaterialThumbnailDownloadUrl($articleId: String!, $organizationId: ID!, $assignmentType: DataObjectAssignmentType!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    thumbnailDownloadUrl(
      assignmentType: $assignmentType
      resolution: $resolution
      fileType: $fileType
    )
  }
}
    `,px=di`
    query GetMaterialTileDownloadUrl($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    tileDownloadUrl(resolution: $resolution, fileType: $fileType)
  }
}
    `,hx=di`
    query GetMaterialPbrDownloadUrl($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materialDownloadData(articleId: $articleId, organizationId: $organizationId) {
    pbrDownloadUrl(resolution: $resolution, fileType: $fileType)
  }
}
    `,mx=(e,t,n,r)=>e();function hy(e,t=mx){return{GetMaterialDownloadData(n,r){return t(o=>e.request(fx,n,R(R({},r),o)),"GetMaterialDownloadData","query",n)},GetMaterialThumbnailDownloadUrl(n,r){return t(o=>e.request(dx,n,R(R({},r),o)),"GetMaterialThumbnailDownloadUrl","query",n)},GetMaterialTileDownloadUrl(n,r){return t(o=>e.request(px,n,R(R({},r),o)),"GetMaterialTileDownloadUrl","query",n)},GetMaterialPbrDownloadUrl(n,r){return t(o=>e.request(hx,n,R(R({},r),o)),"GetMaterialPbrDownloadUrl","query",n)}}}var Za=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},Ey=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0};var Dy=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=kr(e);n=Dy(r)}catch(r){}return{query:e,operationName:n}}let t=Dy(e);return{query:Zt(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 Zr=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(),gx=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))}`},vx=e=>t=>Ee(null,null,function*(){let{url:n,query:r,variables:o,operationName:i,fetch:s,fetchOptions:a,middleware:c}=t,u=R({},t.headers),l="",f;e==="POST"?(f=yx(r,o,i,a.jsonSerializer),typeof f=="string"&&(u["Content-Type"]="application/json")):l=gx({query:r,variables:o,operationName:i,jsonSerializer:a.jsonSerializer??Za});let d=R({method:e,headers:u,body:f},a),p=n,m=d;if(c){let v=yield Promise.resolve(c(fe(R({},d),{url:n,operationName:i,variables:o}))),{url:h}=v,I=fn(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)=>Ee(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:f,responseMiddleware:d}=y,p=fn(y,["headers","fetch","method","requestMiddleware","responseMiddleware"]),{url:m}=this;a.signal!==void 0&&(p.signal=a.signal);let{operationName:v}=Qr(a.query);return nd({url:m,query:a.query,variables:a.variables,headers:R(R({},Zr(rd(c))),Zr(a.requestHeaders)),operationName:v,fetch:u,method:l,fetchOptions:p,middleware:f}).then(h=>(d&&d(h),h)).catch(h=>{throw d&&d(h),h})})}request(t,...n){return Ee(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,f=fn(v,["headers","fetch","method","requestMiddleware","responseMiddleware"]),{url:d}=this;i.signal!==void 0&&(f.signal=i.signal);let{query:p,operationName:m}=Qr(i.document);return nd({url:d,query:p,variables:i.variables,headers:R(R({},Zr(rd(s))),Zr(i.requestHeaders)),operationName:m,fetch:a,method:c,fetchOptions:f,middleware:u}).then(y=>(l&&l(y),y.data)).catch(y=>{throw l&&l(y),y})})}batchRequests(t,n){let r=Ey(t,n),c=this.requestConfig,{headers:o}=c,i=fn(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 nd({url:this.url,query:s,variables:a,headers:R(R({},Zr(rd(o))),Zr(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}},nd=e=>Ee(null,null,function*(){let{query:t,variables:n,fetchOptions:r}=e,o=vx(my(e.method??"post")),i=Array.isArray(e.query),s=yield o(e),a=yield Ex(s,r.jsonSerializer??Za),c=Array.isArray(a)?!a.some(({data:f})=>!f):!!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:f}=l,d=fn(l,["errors"]),p=r.errorPolicy==="ignore"?d:a;return fe(R({},i?{data:p}:p),{headers:s.headers,status:s.status})}else{let f=typeof a=="string"?{error:a}:a;throw new vi(fe(R({},f),{status:s.status,headers:s.headers}),{query:t,variables:n})}});var yx=(e,t,n,r)=>{let o=r??Za;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)},Ex=(e,t)=>Ee(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()}),rd=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)=>Ee(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 bx=["*"],_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&&td.includes(this.type)?this.type:void 0;if(!n){console.error(`Invalid material export type: ${this.type}. Please provide one of ${td.join(", ")}`);return}let r=this.fileType&&dy.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&&fy.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(To),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:bx,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 Ix={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function wx(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function _x(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var od;function Tx(e,t){if(!od){let n=Element.prototype;od=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?od.call(e,t):!1}function xx(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[wx(r)]=[n,o]}),t}function Cx(e,t){return t.get(Wt).resolveComponentFactory(e).inputs}function Sx(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=Nx(a,t,o);c!==-1&&r[c].push(a)}return r}function Nx(e,t,n){let r=n;return _x(e)&&t.some((o,i)=>o!=="*"&&Tx(e,o)?(r=i,!0):!1),r}var Mx=10,id=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 sd(this.componentFactory,t,this.inputMap)}},sd=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(de),this.appRef=this.injector.get(Qt),this.cdScheduler=n.get(xt),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=Ix.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Mx))})}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=Sx(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()}},ad=class extends HTMLElement{ngElementEventsSubscription=null};function Ty(e,t){let n=Cx(e,t.injector),r=t.strategyFactory||new id(e,t.injector),o=xx(n);class i extends ad{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[f,d]=o[a];this.ngElementStrategy.setInputValue(f,u,d)}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 xy=()=>{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 Cy={};var Ax=(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((f,d)=>{let p=e.body[d];return f[d]=o(d)?JSON.stringify(p):p,f},{})}}if(s&&r){let u=new FormData;u.append("operations",JSON.stringify(c.body));let l={},f=a.files,d=0;f.forEach(p=>{l[++d]=p}),u.append("map",JSON.stringify(l)),d=0,f.forEach((p,m)=>{u.append(++d+"",m,m.name)}),c.body=u}return t.request(e.method,e.url,R(R({observe:"response",responseType:"json",reportProgress:!1},c),e.options))},Rx=(e,t)=>e&&t?t.keys().reduce((r,o)=>r.set(o,t.getAll(o)),e):t||e;function kx(...e){return e.find(t=>typeof t<"u")}function Fx(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 Ox={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Kr(e,t,n){return kx(e[n],t[n],Ox[n])}var cd=class extends Xe{httpClient;options;requester;print=Zt;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=Kr(i,this.options,"method"),a=Kr(i,this.options,"includeQuery"),c=Kr(i,this.options,"includeExtensions"),u=Kr(i,this.options,"uri"),l=Kr(i,this.options,"withCredentials"),f=Kr(i,this.options,"useMultipart"),d=this.options.useGETForQueries===!0,p=r.query.definitions.some(h=>h.kind==="OperationDefinition"&&h.operation==="query");d&&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:f,headers:this.options.headers}};c&&(m.body.extensions=r.extensions),a&&(m.body.query=this.print(r.query));let v=Fx(i);m.options.headers=Rx(m.options.headers,v);let y=Ax(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)}},Sy=(()=>{class e{httpClient;constructor(n){this.httpClient=n}create(n){return new cd(this.httpClient,n)}static \u0275fac=function(r){return new(r||e)(k(ta))};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Px=`${ec.gqlApiEndpoint}/graphql`,Lx=new ii({uri:Px,headers:R(R({},xy()),Cy)}),Ny=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({type:e});static \u0275inj=_e({providers:[{provide:ed,useFactory(){return{cache:new ui,link:Lx}},deps:[Sy]}],imports:[ly,Ll]})}return e})();var My=(()=>{class e{injector;constructor(n){this.injector=n}ngDoBootstrap(){let n=Ty(_y,{injector:this.injector});customElements.define("cm-material-download",n)}static \u0275fac=function(r){return new(r||e)(k(He))};static \u0275mod=Fe({type:e});static \u0275inj=_e({providers:[tc],imports:[Ao,Nl,Ny]})}return e})();Ym.production&&void 0;var jx=()=>Sl().bootstrapModule(My);jx().catch(e=>console.error(e));
})();