(()=>{"use strict";var e,b={},d={};function o(e){var t=d[e];if(void 0!==t)return t.exports;var r=d[e]={exports:{}};return b[e](r,r.exports,o),r.exports}o.m=b,e=[],o.O=(t,r,a,n)=>{if(!r){var i=1/0;for(f=0;f<e.length;f++){for(var[r,a,n]=e[f],c=!0,l=0;l<r.length;l++)(!1&n||i>=n)&&Object.keys(o.O).every(O=>o.O[O](r[l]))?r.splice(l--,1):(c=!1,n<i&&(i=n));if(c){e.splice(f--,1);var _=a();void 0!==_&&(t=_)}}return t}n=n||0;for(var f=e.length;f>0&&e[f-1][2]>n;f--)e[f]=e[f-1];e[f]=[r,a,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},(()=>{var t,e=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__;o.t=function(r,a){if(1&a&&(r=this(r)),8&a||"object"==typeof r&&r&&(4&a&&r.__esModule||16&a&&"function"==typeof r.then))return r;var n=Object.create(null);o.r(n);var f={};t=t||[null,e({}),e([]),e(e)];for(var i=2&a&&r;("object"==typeof i||"function"==typeof i)&&!~t.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach(c=>f[c]=()=>r[c]);return f.default=()=>r,o.d(n,f),n}})(),o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={121:0};o.O.j=a=>0===e[a];var t=(a,n)=>{var l,_,[f,i,c]=n,s=0;if(f.some(u=>0!==e[u])){for(l in i)o.o(i,l)&&(o.m[l]=i[l]);if(c)var p=c(o)}for(a&&a(n);s<f.length;s++)o.o(e,_=f[s])&&e[_]&&e[_][0](),e[_]=0;return o.O(p)},r=self.webpackChunkmaterial_download=self.webpackChunkmaterial_download||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})()})();
"use strict";(self.webpackChunkmaterial_download=self.webpackChunkmaterial_download||[]).push([[461],{676(te,Q,ve){ve(157)},157(){const te=globalThis;function Q(e){return(te.__Zone_symbol_prefix||"__zone_symbol__")+e}const Te=Object.getOwnPropertyDescriptor,Le=Object.defineProperty,Ie=Object.getPrototypeOf,_t=Object.create,Et=Array.prototype.slice,Me="addEventListener",Ze="removeEventListener",Ae=Q(Me),je=Q(Ze),ae="true",le="false",Pe=Q("");function He(e,r){return Zone.current.wrap(e,r)}function xe(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}const j=Q,Ce=typeof window<"u",ge=Ce?window:void 0,$=Ce&&ge||globalThis;function Ve(e,r){for(let c=e.length-1;c>=0;c--)"function"==typeof e[c]&&(e[c]=He(e[c],r+"_"+c));return e}function We(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in $)&&typeof $.process<"u"&&"[object process]"===$.process.toString(),Ge=!De&&!qe&&!(!Ce||!ge.HTMLElement),Xe=typeof $.process<"u"&&"[object process]"===$.process.toString()&&!qe&&!(!Ce||!ge.HTMLElement),Se={},mt=j("enable_beforeunload"),Ye=function(e){if(!(e=e||$.event))return;let r=Se[e.type];r||(r=Se[e.type]=j("ON_PROPERTY"+e.type));const c=this||e.target||$,t=c[r];let i;return Ge&&c===ge&&"error"===e.type?(i=t&&t.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=t&&t.apply(this,arguments),"beforeunload"===e.type&&$[mt]&&"string"==typeof i?e.returnValue=i:null!=i&&!i&&e.preventDefault()),i};function $e(e,r,c){let t=Te(e,r);if(!t&&c&&Te(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;const i=j("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;const u=t.get,E=t.set,T=r.slice(2);let y=Se[T];y||(y=Se[T]=j("ON_PROPERTY"+T)),t.set=function(D){let d=this;!d&&e===$&&(d=$),d&&("function"==typeof d[y]&&d.removeEventListener(T,Ye),E&&E.call(d,null),d[y]=D,"function"==typeof D&&d.addEventListener(T,Ye,!1))},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;const d=D[y];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),"function"==typeof D.removeAttribute&&D.removeAttribute(r),w}return null},Le(e,r,t),e[i]=!0}function Ke(e,r,c){if(r)for(let t=0;t<r.length;t++)$e(e,"on"+r[t],c);else{const t=[];for(const i in e)"on"==i.slice(0,2)&&t.push(i);for(let i=0;i<t.length;i++)$e(e,t[i],c)}}const re=j("originalInstance");function we(e){const r=$[e];if(!r)return;$[j(e)]=r,$[e]=function(){const i=Ve(arguments,e);switch(i.length){case 0:this[re]=new r;break;case 1:this[re]=new r(i[0]);break;case 2:this[re]=new r(i[0],i[1]);break;case 3:this[re]=new r(i[0],i[1],i[2]);break;case 4:this[re]=new r(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},fe($[e],r);const c=new r(function(){});let t;for(t in c)"XMLHttpRequest"===e&&"responseBlob"===t||function(i){"function"==typeof c[i]?$[e].prototype[i]=function(){return this[re][i].apply(this[re],arguments)}:Le($[e].prototype,i,{set:function(u){"function"==typeof u?(this[re][i]=He(u,e+"."+i),fe(this[re][i],u)):this[re][i]=u},get:function(){return this[re][i]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&($[e][t]=r[t])}function ue(e,r,c){let t=e;for(;t&&!t.hasOwnProperty(r);)t=Ie(t);!t&&e[r]&&(t=e);const i=j(r);let u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))&&(u=t[i]=t[r],We(t&&Te(t,r)))){const T=c(u,i,r);t[r]=function(){return T(this,arguments)},fe(t[r],u)}return u}function yt(e,r,c){let t=null;function i(u){const E=u.data;return E.args[E.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(E.target,E.args),u}t=ue(e,r,u=>function(E,T){const y=c(E,T);return y.cbIdx>=0&&"function"==typeof T[y.cbIdx]?xe(y.name,T[y.cbIdx],y,i):u.apply(E,T)})}function fe(e,r){e[j("OriginalDelegate")]=r}let Je=!1,Be=!1;function kt(){if(Je)return Be;Je=!0;try{const e=ge.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Be=!0)}catch{}return Be}function Qe(e){return"function"==typeof e}function et(e){return"number"==typeof e}let me=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}const vt={useG:!0},ne={},tt={},nt=new RegExp("^"+Pe+"(\\w+)(true|false)$"),rt=j("propagationStopped");function ot(e,r){const c=(r?r(e):e)+le,t=(r?r(e):e)+ae,i=Pe+c,u=Pe+t;ne[e]={},ne[e][le]=i,ne[e][ae]=u}function bt(e,r,c,t){const i=t&&t.add||Me,u=t&&t.rm||Ze,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",y=j(i),D="."+i+":",d="prependListener",w="."+d+":",Z=function(k,h,H){if(k.isRemoved)return;const V=k.callback;let Y;"object"==typeof V&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);try{k.invoke(k,h,[H])}catch(g){Y=g}const G=k.options;return G&&"object"==typeof G&&G.once&&h[u].call(h,H.type,k.originalDelegate?k.originalDelegate:k.callback,G),Y};function x(k,h,H){if(!(h=h||e.event))return;const V=k||h.target||e,Y=V[ne[h.type][H?ae:le]];if(Y){const G=[];if(1===Y.length){const g=Z(Y[0],V,h);g&&G.push(g)}else{const g=Y.slice();for(let z=0;z<g.length&&(!h||!0!==h[rt]);z++){const O=Z(g[z],V,h);O&&G.push(O)}}if(1===G.length)throw G[0];for(let g=0;g<G.length;g++){const z=G[g];r.nativeScheduleMicroTask(()=>{throw z})}}}const U=function(k){return x(this,k,!1)},K=function(k){return x(this,k,!0)};function J(k,h){if(!k)return!1;let H=!0;h&&void 0!==h.useG&&(H=h.useG);const V=h&&h.vh;let Y=!0;h&&void 0!==h.chkDup&&(Y=h.chkDup);let G=!1;h&&void 0!==h.rt&&(G=h.rt);let g=k;for(;g&&!g.hasOwnProperty(i);)g=Ie(g);if(!g&&k[i]&&(g=k),!g||g[y])return!1;const z=h&&h.eventNameToString,O={},R=g[y]=g[i],b=g[j(u)]=g[u],S=g[j(E)]=g[E],ee=g[j(T)]=g[T];let W;h&&h.prepend&&(W=g[j(h.prepend)]=g[h.prepend]);const q=H?function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?K:U,O.options)}:function(s){return R.call(O.target,O.eventName,s.invoke,O.options)},A=H?function(s){if(!s.isRemoved){const l=ne[s.eventName];let v;l&&(v=l[s.capture?ae:le]);const 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),0===C.length&&(s.allRemoved=!0,s.target[v]=null);break}}if(s.allRemoved)return b.call(s.target,s.eventName,s.capture?K:U,s.options)}:function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},he=h&&h.diff?h.diff:function(s,l){const v=typeof l;return"function"===v&&s.callback===l||"object"===v&&s.originalDelegate===l},de=Zone[j("UNPATCHED_EVENTS")],oe=e[j("PASSIVE_EVENTS")],a=function(s,l,v,C,m=!1,L=!1){return function(){const I=this||e;let M=arguments[0];h&&h.transferEventName&&(M=h.transferEventName(M));let B=arguments[1];if(!B)return s.apply(this,arguments);if(De&&"uncaughtException"===M)return s.apply(this,arguments);let F=!1;if("function"!=typeof B){if(!B.handleEvent)return s.apply(this,arguments);F=!0}if(V&&!V(s,B,I,arguments))return;const Ee=me&&!!oe&&-1!==oe.indexOf(M),ie=function f(s){if("object"==typeof s&&null!==s){const l={...s};return s.signal&&(l.signal=s.signal),l}return s}(function N(s,l){return!me&&"object"==typeof s&&s?!!s.capture:me&&l?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],Ee)),pe=ie?.signal;if(pe?.aborted)return;if(de)for(let ce=0;ce<de.length;ce++)if(M===de[ce])return Ee?s.call(I,M,B,ie):s.apply(this,arguments);const Ue=!!ie&&("boolean"==typeof ie||ie.capture),lt=!(!ie||"object"!=typeof ie)&&ie.once,At=Zone.current;let ze=ne[M];ze||(ot(M,z),ze=ne[M]);const ut=ze[Ue?ae:le];let Ne,ke=I[ut],ft=!1;if(ke){if(ft=!0,Y)for(let ce=0;ce<ke.length;ce++)if(he(ke[ce],B))return}else ke=I[ut]=[];const ht=I.constructor.name,dt=tt[ht];dt&&(Ne=dt[M]),Ne||(Ne=ht+l+(z?z(M):M)),O.options=ie,lt&&(O.options.once=!1),O.target=I,O.capture=Ue,O.eventName=M,O.isExisting=ft;const Re=H?vt:void 0;Re&&(Re.taskData=O),pe&&(O.options.signal=void 0);const se=At.scheduleEventTask(Ne,B,Re,v,C);if(pe){O.options.signal=pe;const ce=()=>se.zone.cancelTask(se);s.call(pe,"abort",ce,{once:!0}),se.removeAbortListener=()=>pe.removeEventListener("abort",ce)}return O.target=null,Re&&(Re.taskData=null),lt&&(O.options.once=!0),!me&&"boolean"==typeof se.options||(se.options=ie),se.target=I,se.capture=Ue,se.eventName=M,F&&(se.originalDelegate=B),L?ke.unshift(se):ke.push(se),m?I:void 0}};return g[i]=a(R,D,q,A,G),W&&(g[d]=a(W,w,function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},A,G,!0)),g[u]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=arguments[2],C=!!v&&("boolean"==typeof v||v.capture),m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,s,arguments))return;const L=ne[l];let I;L&&(I=L[C?ae:le]);const M=I&&s[I];if(M)for(let B=0;B<M.length;B++){const F=M[B];if(he(F,m))return M.splice(B,1),F.isRemoved=!0,0!==M.length||(F.allRemoved=!0,s[I]=null,C||"string"!=typeof l)||(s[Pe+"ON_PROPERTY"+l]=null),F.zone.cancelTask(F),G?s:void 0}return b.apply(this,arguments)},g[E]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=[],C=st(s,z?z(l):l);for(let m=0;m<C.length;m++){const L=C[m];v.push(L.originalDelegate?L.originalDelegate:L.callback)}return v},g[T]=function(){const s=this||e;let l=arguments[0];if(l){h&&h.transferEventName&&(l=h.transferEventName(l));const v=ne[l];if(v){const L=s[v[le]],I=s[v[ae]];if(L){const M=L.slice();for(let B=0;B<M.length;B++){const F=M[B];this[u].call(this,l,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(I){const M=I.slice();for(let B=0;B<M.length;B++){const F=M[B];this[u].call(this,l,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const v=Object.keys(s);for(let C=0;C<v.length;C++){const L=nt.exec(v[C]);let I=L&&L[1];I&&"removeListener"!==I&&this[T].call(this,I)}this[T].call(this,"removeListener")}if(G)return this},fe(g[i],R),fe(g[u],b),ee&&fe(g[T],ee),S&&fe(g[E],S),!0}let X=[];for(let k=0;k<c.length;k++)X[k]=J(c[k],t);return X}function st(e,r){if(!r){const u=[];for(let E in e){const T=nt.exec(E);let y=T&&T[1];if(y&&(!r||y===r)){const D=e[E];if(D)for(let d=0;d<D.length;d++)u.push(D[d])}}return u}let c=ne[r];c||(ot(r),c=ne[r]);const t=e[c[le]],i=e[c[ae]];return t?i?t.concat(i):t.slice():i?i.slice():[]}function Pt(e,r){const c=e.Event;c&&c.prototype&&r.patchMethod(c.prototype,"stopImmediatePropagation",t=>function(i,u){i[rt]=!0,t&&t.apply(i,u)})}const Oe=j("zoneTask");function ye(e,r,c,t){let i=null,u=null;c+=t;const E={};function T(D){const d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};const w=i.apply(e,d.args);return et(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Qe(w.refresh)),D}function y(D){const{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=ue(e,r+=t,D=>function(d,w){if(Qe(w[0])){const Z={isRefreshable:!1,isPeriodic:"Interval"===t,delay:"Timeout"===t||"Interval"===t?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{const{handle:H,handleId:V,isPeriodic:Y,isRefreshable:G}=Z;!Y&&!G&&(V?delete E[V]:H&&(H[Oe]=null))}};const U=xe(r,w[0],Z,T,y);if(!U)return U;const{handleId:K,handle:J,isRefreshable:X,isPeriodic:k}=U.data;if(K)E[K]=U;else if(J&&(J[Oe]=U,X&&!k)){const h=J.refresh;J.refresh=function(){const{zone:H,state:V}=U;return"notScheduled"===V?(U._state="scheduled",H._updateTaskCount(U,1)):"running"===V&&(U._state="scheduling"),h.call(this)}}return J??K??U}return D.apply(e,w)}),u=ue(e,c,D=>function(d,w){const Z=w[0];let x;et(Z)?(x=E[Z],delete E[Z]):(x=Z?.[Oe],x?Z[Oe]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function it(e,r,c){if(!c||0===c.length)return r;const t=c.filter(u=>u.target===e);if(!t||0===t.length)return r;const i=t[0].ignoreProperties;return r.filter(u=>-1===i.indexOf(u))}function ct(e,r,c,t){e&&Ke(e,it(e,r,c),t)}function Fe(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function It(e,r,c,t,i){const u=Zone.__symbol__(t);if(r[u])return;const E=r[u]=r[t];r[t]=function(T,y,D){return y&&y.prototype&&i.forEach(function(d){const w=`${c}.${t}::`+d,Z=y.prototype;try{if(Z.hasOwnProperty(d)){const 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)}const at=function be(){const e=globalThis,r=!0===e[Q("forceDuplicateZoneCheck")];if(e.Zone&&(r||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return e.Zone??=function ve(){const e=te.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__=Q}static assertZonePatched(){if(te.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)){const P=!0===te[Q("forceDuplicateZoneCheck")];if(!p&&P)throw Error("Already loaded patch: "+n)}else if(!te["__Zone_disable_"+n]){const P="Zone:"+n;r(P),O[n]=o(te,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){const 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("function"!=typeof n)throw new Error("Expecting function got: "+n);const 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||J).name+"; Execution: "+this.name+")");const P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===z||q===g))return;const he=n.state!=H;he&&P._transitionTo(H,h);const de=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(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{const oe=n.state;if(oe!==X&&oe!==Y)if(q==z||A||_e&&oe===k)he&&P._transitionTo(h,H,k);else{const f=P._zoneDelegates;this._updateTaskCount(P,-1),he&&P._transitionTo(X,H,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=de}}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);const 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||J).name+"; Execution: "+this.name+")");if(n.state===h||n.state===H){n._transitionTo(V,h,H);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){const p=n._zoneDelegates;-1==o&&(n._zoneDelegates=null);for(let P=0;P<p.length;P++)p[P]._updateTaskCount(n.type,o)}}return N})();const 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;const p=o&&o.onHasTask;(p||n&&n._hasTaskZS)&&(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)}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)throw new Error("Task is missing scheduleFn.");U(n)}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){const o=this._taskCounts,p=o[_],P=o[_]=p+n;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=p&&0!=P||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}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;const A=this;this.invoke=_===z&&p&&p.useG?E.invokeTask:function(){return E.invokeTask.call(te,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),ee++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{1==ee&&K(),ee--}}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)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==X&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const T=Q("setTimeout"),y=Q("Promise"),D=Q("then");let Z,d=[],w=!1;function x(N){if(Z||te[y]&&(Z=te[y].resolve(0)),Z){let _=Z[D];_||(_=Z.then),_.call(Z,N)}else te[T](N,0)}function U(N){0===ee&&0===d.length&&x(K),N&&d.push(N)}function K(){if(!w){for(w=!0;d.length;){const N=d;d=[];for(let _=0;_<N.length;_++){const n=N[_];try{n.zone.runTask(n,null,null)}catch(o){R.onUnhandledError(o)}}}R.microtaskDrainDone(),w=!1}}const J={name:"NO ZONE"},X="notScheduled",k="scheduling",h="scheduled",H="running",V="canceling",Y="unknown",G="microTask",g="macroTask",z="eventTask",O={},R={symbol:Q,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[Q("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};let b={parent:null,zone:new t(null,null)},S=null,ee=0;function W(){}return c("Zone","Zone"),t}(),e.Zone}();(function Zt(e){(function Nt(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,T=t.symbol,y=[],D=!1!==r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=T("Promise"),w=T("then");t.onUnhandledError=f=>{if(t.showUncaughtError()){const 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;){const f=y.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){U(a)}}};const x=T("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{const a=c[x];"function"==typeof a&&a.call(this,f)}catch{}}function K(f){return f&&f.then}function J(f){return f}function X(f){return A.reject(f)}const k=T("state"),h=T("value"),H=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),g=null,z=!0,O=!1;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}const S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},ee="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){const l=S();if(f===s)throw new TypeError(ee);if(f[k]===g){let v=null;try{("object"==typeof s||"function"==typeof s)&&(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&&"function"==typeof v)try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[k]=a;const C=f[h];if(f[h]=s,f[H]===H&&a===z&&(f[k]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){const m=c.currentTask&&c.currentTask.data&&c.currentTask.data.__creationTrace__;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(0==C.length&&a==O){f[k]=0;let m=s;try{throw new Error("Uncaught (in promise): "+function E(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+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}const _=T("rejectionHandledHandler");function n(f){if(0===f[k]){try{const a=c[_];a&&"function"==typeof a&&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);const C=f[k],m=C?"function"==typeof l?l:J:"function"==typeof v?v:X;a.scheduleMicroTask("Promise.then",()=>{try{const L=f[h],I=!!s&&H===s[H];I&&(s[V]=L,s[Y]=C);const M=a.run(m,void 0,I&&m!==X&&m!==J?[]:[L]);N(s,!0,M)}catch(L){N(s,!1,L)}},s)}const P=function(){},q=r.AggregateError;class A{static toString(){return"function ZoneAwarePromise() { [native code] }"}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(){const a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||"function"!=typeof a[Symbol.iterator])return Promise.reject(new q([],"All promises were rejected"));const s=[];let 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(0===l)return Promise.reject(new q([],"All promises were rejected"));let v=!1;const 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--,0===l&&(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)K(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,B)=>{l=M,v=B}),m=2,L=0;const I=[];for(let M of a){K(M)||(M=this.resolve(M));const B=L;try{M.then(F=>{I[B]=s?s.thenCallback(F):F,m--,0===m&&l(I)},F=>{s?(I[B]=s.errorCallback(F),m--,0===m&&l(I)):v(F)})}catch(F){v(F)}m++,L++}return m-=2,0===m&&l(I),C}constructor(a){const s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[k]=g,s[h]=[];try{const 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||"function"!=typeof l)&&(l=this.constructor||A);const 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||"function"!=typeof s)&&(s=A);const l=new s(P);l[H]=H;const 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;const _e=r[d]=r.Promise;r.Promise=A;const he=T("thenPatched");function de(f){const a=f.prototype,s=i(a,"then");if(s&&(!1===s.writable||!s.configurable))return;const 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[he]=!0}return t.patchThen=de,_e&&(de(_e),ue(r,"fetch",f=>function oe(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[he]||de(v),l}}(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=y,A})})(e),function Lt(e){e.__load_patch("toString",r=>{const c=Function.prototype.toString,t=j("OriginalDelegate"),i=j("Promise"),u=j("Error"),E=function(){if("function"==typeof this){const d=this[t];if(d)return"function"==typeof d?c.call(d):Object.prototype.toString.call(d);if(this===Promise){const w=r[i];if(w)return c.call(w)}if(this===Error){const w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}})}(e),function Mt(e){e.__load_patch("util",(r,c,t)=>{const i=Fe(r);t.patchOnProperties=Ke,t.patchMethod=ue,t.bindArguments=Ve,t.patchMacroTask=yt;const 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=Pt,t.patchEventTarget=bt,t.isIEOrEdge=kt,t.ObjectDefineProperty=Le,t.ObjectGetOwnPropertyDescriptor=Te,t.ObjectCreate=_t,t.ArraySlice=Et,t.patchClass=we,t.wrapWithCurrentZone=He,t.filterProperties=it,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=It,t.getGlobalObjects=()=>({globalSources:tt,zoneSymbolEventNames:ne,eventNames:i,isBrowser:Ge,isMix:Xe,isNode:De,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:Me,REMOVE_EVENT_LISTENER_STR:Ze})})}(e)})(at),function Ot(e){e.__load_patch("legacy",r=>{const c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{const t="clear";ye(r,"set",t,"Timeout"),ye(r,"set",t,"Interval"),ye(r,"set",t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{ye(r,"request","cancel","AnimationFrame"),ye(r,"mozRequest","mozCancel","AnimationFrame"),ye(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{const t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++)ue(r,t[i],(E,T,y)=>function(D,d){return c.current.run(E,r,d,y)})}),e.__load_patch("EventTarget",(r,c,t)=>{(function Dt(e,r){r.patchEventPrototype(e,r)})(r,t),function Ct(e,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let y=0;y<c.length;y++){const D=c[y],Z=E+(D+u),x=E+(D+i);t[D]={},t[D][u]=Z,t[D][i]=x}const T=e.EventTarget;T&&T.prototype&&r.patchEventTarget(e,r,[T&&T.prototype])}(r,t);const i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{we("MutationObserver"),we("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{we("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{we("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{!function St(e,r){if(De&&!Xe||Zone[e.symbol("patchEvents")])return;const c=r.__Zone_ignore_on_properties;let t=[];if(Ge){const i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const u=function pt(){try{const e=ge.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];ct(i,Fe(i),c&&c.concat(u),Ie(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<t.length;i++){const u=r[t[i]];u&&u.prototype&&ct(u.prototype,Fe(u.prototype),c)}}(t,r)}),e.__load_patch("customElements",(r,c,t)=>{!function Rt(e,r){const{isBrowser:c,isMix:t}=r.getGlobalObjects();(c||t)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,t)}),e.__load_patch("XHR",(r,c)=>{!function D(d){const w=d.XMLHttpRequest;if(!w)return;const Z=w.prototype;let U=Z[Ae],K=Z[je];if(!U){const R=d.XMLHttpRequestEventTarget;if(R){const b=R.prototype;U=b[Ae],K=b[je]}}const J="readystatechange",X="scheduled";function k(R){const b=R.data,S=b.target;S[E]=!1,S[y]=!1;const ee=S[u];U||(U=S[Ae],K=S[je]),ee&&K.call(S,J,ee);const W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){const _=S[c.__symbol__("loadfalse")];if(0!==S.status&&_&&_.length>0){const n=R.invoke;R.invoke=function(){const 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&&!1===S[E]&&(S[y]=!0)};return U.call(S,J,W),S[t]||(S[t]=R),z.apply(S,b.args),S[E]=!0,R}function h(){}function H(R){const b=R.data;return b.aborted=!0,O.apply(b.target,b.args)}const V=ue(Z,"open",()=>function(R,b){return R[i]=0==b[2],R[T]=b[1],V.apply(R,b)}),G=j("fetchTaskAborting"),g=j("fetchTaskScheduling"),z=ue(Z,"send",()=>function(R,b){if(!0===c.current[g]||R[i])return z.apply(R,b);{const S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},ee=xe("XMLHttpRequest.send",h,S,k,H);R&&!0===R[y]&&!S.aborted&&ee.state===X&&ee.invoke()}}),O=ue(Z,"abort",()=>function(R,b){const S=function x(R){return R[t]}(R);if(S&&"string"==typeof S.type){if(null==S.cancelFn||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(!0===c.current[G])return O.apply(R,b)})}(r);const t=j("xhrTask"),i=j("xhrSync"),u=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),y=j("xhrErrorBeforeScheduled")}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function gt(e,r){const c=e.constructor.name;for(let t=0;t<r.length;t++){const i=r[t],u=e[i];if(u){if(!We(Te(e,i)))continue;e[i]=(T=>{const y=function(){return T.apply(this,Ve(arguments,c+"."+i))};return fe(y,T),y})(u)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){st(r,i).forEach(T=>{const y=r.PromiseRejectionEvent;if(y){const D=new y(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{!function wt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(r,t)})}(at)}},te=>{te(te.s=676)}]);
(self.webpackChunkmaterial_download=self.webpackChunkmaterial_download||[]).push([[792],{913(ds,sn,$n){"use strict";let Se=null;const de=Symbol("SIGNAL");function R(e){const t=Se;return Se=e,t}const fs={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 ko(e){if((!qn(e)||e.dirty)&&(e.dirty||1!==e.lastCleanEpoch)){if(!e.producerMustRecompute(e)&&!Oo(e))return void bc(e);e.producerRecomputeValue(e),bc(e)}}function bc(e){e.dirty=!1,e.lastCleanEpoch=1}function Ro(e){return e&&function $d(e){e.producersTail=void 0,e.recomputing=!0}(e),R(e)}function Oo(e){for(let t=e.producers;void 0!==t;t=t.nextProducer){const n=t.producer,r=t.lastReadVersion;if(r!==n.version||(ko(n),r!==n.version))return!0}return!1}function ps(e){if(qn(e)){let t=e.producers;for(;void 0!==t;)t=gs(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function gs(e){const t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,void 0!==r?r.prevConsumer=o:t.consumersTail=o,void 0!==o)o.nextConsumer=r;else if(t.consumers=r,!qn(t)){let i=t.producers;for(;void 0!==i;)i=gs(i)}return n}function qn(e){return e.consumerIsAlwaysLive||void 0!==e.consumers}let Po=null;function Be(e){return"function"==typeof e}function Ly(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const qd=Ly(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Dc(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Tt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Be(r))try{r()}catch(i){t=i instanceof qd?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Uy(i)}catch(s){t=t??[],s instanceof qd?t=[...t,...s.errors]:t.push(s)}}if(t)throw new qd(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Uy(t);else{if(t instanceof Tt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Dc(n,t)}remove(t){const{_finalizers:n}=this;n&&Dc(n,t),t instanceof Tt&&t._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const jy=Tt.EMPTY;function Vy(e){return e instanceof Tt||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function Uy(e){Be(e)?e():e.unsubscribe()}const Rr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wc={setTimeout(e,t,...n){const{delegate:r}=wc;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=wc;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function By(e){wc.setTimeout(()=>{const{onUnhandledError:t}=Rr;if(!t)throw e;t(e)})}function Hy(){}const ux=zd("C",void 0,void 0);function zd(e,t,n){return{kind:e,value:t,error:n}}let Fr=null;function Ic(e){if(Rr.useDeprecatedSynchronousErrorHandling){const t=!Fr;if(t&&(Fr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Fr;if(Fr=null,n)throw r}}else e()}class Gd extends Tt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Vy(t)&&t.add(this)):this.destination=mx}static create(t,n,r){return new Qd(t,n,r)}next(t){this.isStopped?Zd(function dx(e){return zd("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Zd(function lx(e){return zd("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Zd(ux,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const hx=Function.prototype.bind;function Wd(e,t){return hx.call(e,t)}class px{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Tc(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Tc(r)}else Tc(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Tc(n)}}}class Qd extends Gd{constructor(t,n,r){let o;if(super(),Be(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Rr.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Wd(t.next,i),error:t.error&&Wd(t.error,i),complete:t.complete&&Wd(t.complete,i)}):o=t}this.destination=new px(o)}}function Tc(e){Rr.useDeprecatedSynchronousErrorHandling?function fx(e){Rr.useDeprecatedSynchronousErrorHandling&&Fr&&(Fr.errorThrown=!0,Fr.error=e)}(e):By(e)}function Zd(e,t){const{onStoppedNotification:n}=Rr;n&&wc.setTimeout(()=>n(e,t))}const mx={closed:!0,next:Hy,error:function gx(e){throw e},complete:Hy},Cc="function"==typeof Symbol&&Symbol.observable||"@@observable";function $y(e){return e}let ke=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function yx(e){return e&&e instanceof Gd||function vx(e){return e&&Be(e.next)&&Be(e.error)&&Be(e.complete)}(e)&&Vy(e)}(n)?n:new Qd(n,r,o);return Ic(()=>{const{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 new(r=zy(r))((o,i)=>{const s=new Qd({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Cc](){return this}pipe(...n){return function qy(e){return 0===e.length?$y:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=zy(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function zy(e){var t;return null!==(t=e??Rr.Promise)&&void 0!==t?t:Promise}const _x=Ly(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Yd,Lo=(()=>{class e extends ke{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Gy(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new _x}next(n){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{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(null===(n=this.observers)||void 0===n?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){const{hasError:r,isStopped:o,observers:i}=this;return r||o?jy:(this.currentObservers=null,i.push(n),new Tt(()=>{this.currentObservers=null,Dc(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new ke;return n.source=this,n}}return e.create=(t,n)=>new Gy(t,n),e})();class Gy extends Lo{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:jy}}class bx extends Lo{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Kd(){return Yd}function zn(e){const t=Yd;return Yd=e,t}const Ex=Symbol("NotFound");function Xd(e){return e===Ex||"\u0275NotFound"===e?.name}Error;class S extends Error{code;constructor(t,n){super(function Ot(e,t){return`${function Ix(e){return`NG0${Math.abs(e)}`}(e)}${t?": "+t:""}`}(t,n)),this.code=t}}const xe=globalThis;function U(e){for(let t in e)if(e[t]===U)return t;throw Error("")}function Pt(e){if("string"==typeof e)return e;if(Array.isArray(e))return`[${e.map(Pt).join(", ")}]`;if(null==e)return""+e;const t=e.overriddenName||e.name;if(t)return`${t}`;const n=e.toString();if(null==n)return""+n;const r=n.indexOf("\n");return r>=0?n.slice(0,r):n}function tf(e,t){return e?t?`${e} ${t}`:e:t||""}const Cx=U({__forward_ref__:U});function nf(e){return e.__forward_ref__=nf,e.toString=function(){return Pt(this())},e}function Y(e){return function Sc(e){return"function"==typeof e&&e.hasOwnProperty(Cx)&&e.__forward_ref__===nf}(e)?e():e}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function _n(e){return{providers:e.providers||[],imports:e.imports||[]}}function Mc(e){return function xx(e,t){return e.hasOwnProperty(t)&&e[t]||null}(e,Ac)}function Nc(e){return e&&e.hasOwnProperty(rf)?e[rf]:null}const Ac=U({\u0275prov:U}),rf=U({\u0275inj:U});class A{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function sf(e){return e&&!!e.\u0275providers}const Yy=U({\u0275cmp:U}),jx=U({\u0275dir:U}),Vx=U({\u0275pipe:U}),Ky=U({\u0275mod:U}),Lr=U({\u0275fac:U}),_s=U({__NG_ELEMENT_ID__:U}),Xy=U({__NG_ENV_ID__:U});function se(e){return xc(e),e[Yy]||null}function ut(e){return xc(e),e[jx]||null}function Zt(e){return xc(e),e[Vx]||null}function xc(e,t){if(null==e)throw new S(-919,!1)}const cf=U({ngErrorCode:U}),Jy=U({ngErrorMessage:U}),Es=U({ngTokenPath:U});function uf(e,t){return e_("",-200,t)}function lf(e,t){throw new S(-201,!1)}function e_(e,t,n){const r=new S(t,e);return r[cf]=t,r[Jy]=e,n&&(r[Es]=n),r}let df;function t_(){return df}function yt(e){const t=df;return df=e,t}function n_(e,t,n){const r=Mc(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:8&n?null:void 0!==t?t:void lf()}const jr={};class zx{injector;constructor(t){this.injector=t}retrieve(t,n){const r=Ds(n)||0;try{return this.injector.get(t,8&r?null:jr,r)}catch(o){if(Xd(o))return o;throw o}}}function Gx(e,t=0){const n=Kd();if(void 0===n)throw new S(-203,!1);if(null===n)return n_(e,void 0,t);{const r=function Wx(e){return{optional:!!(8&e),host:!!(1&e),self:!!(2&e),skipSelf:!!(4&e)}}(t),o=n.retrieve(e,r);if(Xd(o)){if(r.optional)return null;throw o}return o}}function Z(e,t=0){return(t_()||Gx)(Y(e),t)}function k(e,t){return Z(e,Ds(t))}function Ds(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function hf(e){const t=[];for(let n=0;n<e.length;n++){const r=Y(e[n]);if(Array.isArray(r)){if(0===r.length)throw new S(900,!1);let o,i=0;for(let s=0;s<r.length;s++){const a=r[s],c=Qx(a);"number"==typeof c?-1===c?o=a.token:i|=c:o=a}t.push(Z(o,i))}else t.push(Z(r))}return t}function Qx(e){return e.__NG_DI_FLAG__}function Vr(e,t){return e.hasOwnProperty(Lr)?e[Lr]:null}function Uo(e,t){e.forEach(n=>Array.isArray(n)?Uo(n,t):t(n))}function Rc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const un={},_e=[],Bo=new A(""),a_=new A("",-1),gf=new A("");class Pc{get(t,n=jr){if(n===jr){const o=e_("",-201);throw o.name="\u0275NotFound",o}return n}}function Xx(...e){return{\u0275providers:vf(0,e),\u0275fromNgModule:!0}}function vf(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return Uo(t,s=>{const a=s;Lc(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&c_(o,i),n}function c_(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:o}=e[n];yf(o,i=>{t(i,r)})}}function Lc(e,t,n,r){if(!(e=Y(e)))return!1;let o=null,i=Nc(e);const s=!i&&se(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=Nc(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of c)Lc(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o),Uo(i.imports,l=>{Lc(l,t,n,r)&&(u||=[],u.push(l))}),void 0!==u&&c_(u,t)}if(!a){const u=Vr(o)||(()=>new o);t({provide:o,useFactory:u,deps:_e},o),t({provide:gf,useValue:o,multi:!0},o),t({provide:Bo,useValue:()=>Z(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const u=e;yf(c,l=>{t(l,u)})}}}return o!==e&&void 0!==e.providers}function yf(e,t){for(let n of e)sf(n)&&(n=n.\u0275providers),Array.isArray(n)?yf(n,t):t(n)}const Jx=U({provide:String,useValue:U});function _f(e){return null!==e&&"object"==typeof e&&Jx in e}function bn(e){return"function"==typeof e}const bf=new A(""),jc={},f_={};let Ef;function Df(){return void 0===Ef&&(Ef=new Pc),Ef}class St{}class Ur extends St{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,If(t,s=>this.processProvider(s)),this.records.set(a_,Ho(void 0,this)),o.has("environment")&&this.records.set(St,Ho(void 0,this));const i=this.records.get(bf);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(gf,_e,{self:!0}))}retrieve(t,n){const r=Ds(n)||0;try{return this.get(t,jr,r)}catch(o){if(Xd(o))return o;throw o}}destroy(){Ts(this),this._destroyed=!0;const t=R(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(t)}}onDestroy(t){return Ts(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Ts(this);const n=zn(this),r=yt(void 0);try{return t()}finally{zn(n),yt(r)}}get(t,n=jr,r){if(Ts(this),t.hasOwnProperty(Xy))return t[Xy](this);const o=Ds(r),s=zn(this),a=yt(void 0);try{if(!(4&o)){let u=this.records.get(t);if(void 0===u){const l=function oR(e){return"function"==typeof e||"object"==typeof e&&"InjectionToken"===e.ngMetadataName}(t)&&Mc(t);u=l&&this.injectableDefInScope(l)?Ho(wf(t),jc):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u,o)}return(2&o?Df():this.parent).get(t,n=8&o&&n===jr?null:n)}catch(c){const u=function $x(e){return e[cf]}(c);throw-200===u||-201===u?new S(u,null):c}finally{yt(a),zn(s)}}resolveInjectorInitializers(){const t=R(null),n=zn(this),r=yt(void 0);try{const i=this.get(Bo,_e,{self:!0});for(const s of i)s()}finally{zn(n),yt(r),R(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Pt(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){let n=bn(t=Y(t))?t:Y(t&&t.provide);const r=function tR(e){return _f(e)?Ho(void 0,e.useValue):Ho(function h_(e,t,n){let r;if(bn(e)){const o=Y(e);return Vr(o)||wf(o)}if(_f(e))r=()=>Y(e.useValue);else if(function l_(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...hf(e.deps||[]));else if(function u_(e){return!(!e||!e.useExisting)}(e))r=(o,i)=>Z(Y(e.useExisting),void 0!==i&&8&i?8:void 0);else{const o=Y(e&&(e.useClass||e.provide));if(!function nR(e){return!!e.deps}(e))return Vr(o)||wf(o);r=()=>new o(...hf(e.deps))}return r}(e),jc)}(t);if(!bn(t)&&!0===t.multi){let o=this.records.get(n);o||(o=Ho(void 0,jc,!0),o.factory=()=>hf(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){const o=R(null);try{if(n.value===f_)throw uf(Pt(t));return n.value===jc&&(n.value=f_,n.value=n.factory(void 0,r)),"object"==typeof n.value&&n.value&&function rR(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Y(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function wf(e){const t=Mc(e),n=null!==t?t.factory:Vr(e);if(null!==n)return n;if(e instanceof A)throw new S(204,!1);if(e instanceof Function)return function eR(e){if(e.length>0)throw new S(204,!1);const n=function Rx(e){return(e?.[Ac]??null)||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new S(204,!1)}function Ts(e){if(e.destroyed)throw new S(205,!1)}function Ho(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function If(e,t){for(const n of e)Array.isArray(n)?If(n,t):n&&sf(n)?If(n.\u0275providers,t):t(n)}function Tf(e,t){let n;e instanceof Ur?(Ts(e),n=e):n=new zx(e);const o=zn(n),i=yt(void 0);try{return t()}finally{zn(o),yt(i)}}function Cf(){return void 0!==t_()||null!=Kd()}const V=11,j=27;function Ne(e){return Array.isArray(e)&&"object"==typeof e[1]}function lt(e){return Array.isArray(e)&&!0===e[1]}function g_(e){return!!(4&e.flags)}function ln(e){return e.componentOffset>-1}function Qo(e){return!(1&~e.flags)}function Kt(e){return!!e.template}function Yn(e){return!!(512&e[2])}function wn(e){return!(256&~e[2])}function Ye(e){for(;Array.isArray(e);)e=e[0];return e}function Ie(e,t){return Ye(t[e.index])}function dt(e,t){const n=t[e];return Ne(n)?n:n[0]}function Af(e){return!(128&~e[2])}function ot(e,t){return null==t?null:e[t]}function E_(e){e[17]=0}function kf(e){1024&e[2]||(e[2]|=1024,Af(e)&&Ms(e))}function Ss(e){return!!(9216&e[2]||e[24]?.dirty)}function xf(e){e[10].changeDetectionScheduler?.notify(8),64&e[2]&&(e[2]|=1024),Ss(e)&&Ms(e)}function Ms(e){e[10].changeDetectionScheduler?.notify(0);let t=In(e);for(;null!==t&&!(8192&t[2])&&(t[2]|=8192,Af(t));)t=In(t)}function Hc(e,t){if(wn(e))throw new S(911,!1);null===e[21]&&(e[21]=[]),e[21].push(t)}function In(e){const t=e[3];return lt(t)?t[3]:t}const z={lFrame:B_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Of=!1;function S_(){return null!==z.skipHydrationRootTNode}function D(){return z.lFrame.lView}function $(){return z.lFrame.tView}function W(){let e=A_();for(;null!==e&&64===e.type;)e=e.parent;return e}function A_(){return z.lFrame.currentTNode}function Tn(e,t){const n=z.lFrame;n.currentTNode=e,n.isParent=t}function k_(){return z.lFrame.isParent}function x_(){z.lFrame.isParent=!1}function O_(){return Of}function P_(e){const t=Of;return Of=e,t}function yR(e,t){const n=z.lFrame;n.bindingIndex=n.bindingRootIndex=e,Lf(t)}function Lf(e){z.lFrame.currentDirectiveIndex=e}function $c(e){z.lFrame.currentQueryIndex=e}function bR(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[5]:null}function V_(e,t,n){if(4&n){let o=t,i=e;for(;!(o=o.parent,null!==o||1&n||(o=bR(i),null===o||(i=i[14],10&o.type))););if(null===o)return!1;t=o,e=i}const r=z.lFrame=U_();return r.currentTNode=t,r.lView=e,!0}function Uf(e){const t=U_(),n=e[1];z.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function U_(){const e=z.lFrame,t=null===e?null:e.child;return null===t?B_(e):t}function B_(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function H_(){const e=z.lFrame;return z.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $_=H_;function Bf(){const e=H_();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 qr(e){z.lFrame.selectedIndex=e}let q_=!0;function qc(){return q_}function As(e){q_=e}function z_(e,t=null,n=null,r){const o=G_(e,t,n,r);return o.resolveInjectorInitializers(),o}function G_(e,t=null,n=null,r,o=new Set){const i=[n||_e,Xx(e)];return r=r||("object"==typeof e?void 0:Pt(e)),new Ur(i,t||Df(),r||null,o)}class Nt{static THROW_IF_NOT_FOUND=jr;static NULL=new Pc;static create(t,n){if(Array.isArray(t))return z_({name:""},n,t,"");{const r=t.name??"";return z_({name:r},t.parent,t.providers,r)}}static \u0275prov=B({token:Nt,providedIn:"any",factory:()=>Z(a_)});static __NG_ELEMENT_ID__=-1}const Jt=new A("");let Kn=(()=>class e{static __NG_ELEMENT_ID__=SR;static __NG_ENV_ID__=n=>n})();class W_ extends Kn{_lView;constructor(t){super(),this._lView=t}get destroyed(){return wn(this._lView)}onDestroy(t){const n=this._lView;return Hc(n,t),()=>function Rf(e,t){if(null===e[21])return;const n=e[21].indexOf(t);-1!==n&&e[21].splice(n,1)}(n,t)}}function SR(){return new W_(D())}const MR=!1,NR=new A("");let zr=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new bx(!1);debugTaskTracker=k(NR,{optional:!0});get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new ke(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);const 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),0===this.pendingTasks.size&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();const Xn=class AR extends Lo{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Cf()&&(this.destroyRef=k(Kn,{optional:!0})??void 0,this.pendingTasks=k(zr,{optional:!0})??void 0)}emit(t){const n=R(null);try{super.next(t)}finally{R(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const 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)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Tt&&t.add(a),a}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{void 0!==r&&this.pendingTasks?.remove(r)}})}}};function zc(...e){}function Q_(e){let t,n;function r(){e=zc;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function kR(e){return queueMicrotask(()=>e()),()=>{e=zc}}const Hf="isAngularZone",Gc=Hf+"_ID";let xR=0;class he{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Xn(!1);onMicrotaskEmpty=new Xn(!1);onStable=new Xn(!1);onError=new Xn(!1);constructor(t){const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=MR}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();const 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,function OR(e){const t=()=>{!function FR(e){function t(){Q_(()=>{e.callbackScheduled=!1,qf(e),e.isCheckStableRunning=!0,$f(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),qf(e))}(e)},n=xR++;e._inner=e._inner.fork({name:"angular",properties:{[Hf]:!0,[Gc]:n,[Gc+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(function LR(e){return K_(e,"__ignore_ng_zone__")}(c))return r.invokeTask(i,s,a,c);try{return Z_(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Y_(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Z_(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function jR(e){return K_(e,"__scheduler_tick__")}(c)&&t(),Y_(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,qf(e),$f(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Hf)}static assertInAngularZone(){if(!he.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(he.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,RR,zc,zc);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)}}const RR={};function $f(e){if(0==e._nesting&&!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 qf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Z_(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Y_(e){e._nesting--,$f(e)}class PR{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Xn;onMicrotaskEmpty=new Xn;onStable=new Xn;onError=new Xn;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 K_(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class ks{_console=console;handleError(t){this._console.error("ERROR",t)}}const Jn=new A("",{factory:()=>{const e=k(he),t=k(St);let n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(ks),n.handleError(r))})}}}),VR={provide:Bo,useValue:()=>{k(ks,{optional:!0})},multi:!0};class Gr{}const Gf=new A("",{factory:()=>!0}),$R=new A("");let Wf=(()=>{class e{internalPendingTasks=k(zr);scheduler=k(Gr);errorHandler=k(Jn);add(){const n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){const r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})(),X_=(()=>{class e{static \u0275prov=B({token:e,providedIn:"root",factory:()=>new qR})}return e})();class qR{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){const r=this.queues.get(t.zone);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){const n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(const[n,r]of this.queues)t||=null===n?this.flushQueue(r):n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(const r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}}let eb=null;function Xo(){return eb}class YR{}let tb=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>k(KR),providedIn:"platform"})}return e})(),KR=(()=>{class e extends tb{_location;_history;_doc=k(Jt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xo().getBaseHref(this._doc)}onPopState(n){const r=Xo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Xo().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=B({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function nb(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class rb{}function gb(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(u){return void n(u)}a.done?t(c):Promise.resolve(c).then(r,o)}function ht(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(c){gb(i,r,o,s,a,"next",c)}function a(c){gb(i,r,o,s,a,"throw",c)}s(void 0)})}}function er(e){return t=>{if(function xF(e){return Be(e?.lift)}(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 Wr(e,t,n,r,o){return new RF(e,t,n,r,o)}class RF extends Gd{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()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function tr(e,t){return er((n,r)=>{let o=0;n.subscribe(Wr(r,i=>{r.next(e.call(t,i,o++))}))})}function Sn(e){return{toString:e}.toString()}function Tb(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}class lO{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}const iu=(()=>{const e=()=>Cb;return e.ngInherit=!0,e})();function Cb(e){return e.type.prototype.ngOnChanges&&(e.setInput=fO),dO}function dO(){const e=Mb(this),t=e?.current;if(t){const n=e.previous;if(n===un)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function fO(e,t,n,r,o){const i=this.declaredInputs[r],s=Mb(e)||function hO(e,t){return e[Sb]=t}(e,{previous:un,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new lO(u&&u.currentValue,n,c===un),Tb(e,t,o,n)}const Sb="__ngSimpleChanges__";function Mb(e){return e[Sb]||null}const Qr=[],ue=function(e,t=null,n){for(let r=0;r<Qr.length;r++)(0,Qr[r])(e,t,n)};var x=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}(x||{});function su(e,t,n){Ab(e,t,3,n)}function au(e,t,n,r){(3&e[2])===n&&Ab(e,t,n,r)}function ah(e,t){let n=e[2];(3&n)===t&&(n&=16383,n+=1,e[2]=n)}function Ab(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let c=void 0!==r?65535&e[17]:0;c<s;c++)if("number"==typeof t[c+1]){if(a=t[c],null!=r&&a>=r)break}else t[c]<0&&(e[17]+=65536),(a<i||-1==i)&&(yO(e,n,t,c),e[17]=(4294901760&e[17])+c+2),c++}function kb(e,t){ue(x.LifecycleHookStart,e,t);const n=R(null);try{t.call(e)}finally{R(n),ue(x.LifecycleHookEnd,e,t)}}function yO(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[2]>>14<e[17]>>16&&(3&e[2])===t&&(e[2]+=16384,kb(a,i)):kb(a,i)}class Ls{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 uh(e){return 3===e||4===e||6===e}function Rb(e){return 64===e.charCodeAt(0)}function ai(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||Fb(e,n,o,0,-1===n||2===n?t[++r]:null)}}return e}function Fb(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n)return void(null!==o&&(e[i+1]=o));i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==o&&e.splice(i++,0,o)}function js(e){return 32767&e}function Vs(e,t){let n=function DO(e){return e>>16}(e),r=t;for(;n>0;)r=r[14],n--;return r}let dh=!0;function cu(e){const t=dh;return dh=e,t}let wO=0;const hn={};function uu(e,t){const n=Lb(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,fh(r.data,e),fh(t,null),fh(r.blueprint,null));const o=lu(e,t),i=e.injectorIndex;if(function lh(e){return-1!==e}(o)){const s=js(o),a=Vs(o,t),c=a[1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function fh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Lb(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function lu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=qb(o),null===r)return-1;if(n++,o=o[14],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function hh(e,t,n){!function IO(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(_s)&&(r=n[_s]),null==r&&(r=n[_s]=wO++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function jb(e,t,n){if(8&n||void 0!==e)return e;lf()}function Vb(e,t,n,r){if(8&n&&void 0===r&&(r=null),!(3&n)){const o=e[9],i=yt(void 0);try{return o?o.get(t,r,8&n):n_(t,r,8&n)}finally{yt(i)}}return jb(r,0,n)}function Ub(e,t,n,r=0,o){if(null!==e){if(2048&t[2]&&!(2&r)){const s=function AO(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[2]&&!Yn(s);){const a=Bb(i,s,n,2|r,hn);if(a!==hn)return a;let c=i.parent;if(!c){const u=s[20];if(u){const l=u.get(n,hn,r);if(l!==hn)return l}c=qb(s),s=s[14]}i=c}return o}(e,t,n,r,hn);if(s!==hn)return s}const i=Bb(e,t,n,r,hn);if(i!==hn)return i}return Vb(t,n,r,o)}function Bb(e,t,n,r,o){const i=function SO(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(_s)?e[_s]:void 0;return"number"==typeof t?t>=0?255&t:MO:t}(n);if("function"==typeof i){if(!V_(t,e,r))return 1&r?jb(o,0,r):Vb(t,n,r,o);try{let s;if(s=i(r),null!=s||8&r)return s;lf()}finally{$_()}}else if("number"==typeof i){let s=null,a=Lb(e,t),c=-1,u=1&r?t[15][5]:null;for((-1===a||4&r)&&(c=-1===a?lu(e,t):t[a+8],-1!==c&&$b(r,!1)?(s=t[1],a=js(c),t=Vs(c,t)):a=-1);-1!==a;){const l=t[1];if(Hb(i,a,l.data)){const d=CO(a,t,n,s,r,u);if(d!==hn)return d}c=t[a+8],-1!==c&&$b(r,t[1].data[a+8]===u)&&Hb(i,a,t)?(s=l,a=js(c),t=Vs(c,t)):a=-1}}return o}function CO(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],l=function du(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,l=i>>20,h=o?a+l:e.directiveEnd;for(let f=r?a:a+l;f<h;f++){const p=s[f];if(f<c&&n===p||f>=c&&p.type===n)return f}if(o){const f=s[c];if(f&&Kt(f)&&f.type===n)return c}return null}(a,s,n,null==r?ln(a)&&dh:r!=s&&!!(3&a.type),1&o&&i===a);return null!==l?Us(t,s,l,a,o):hn}function Us(e,t,n,r,o){let i=e[n];const s=t.data;if(i instanceof Ls){const a=i;if(a.resolving)throw uf();const c=cu(a.canSeeViewProviders);a.resolving=!0;const d=a.injectImpl?yt(a.injectImpl):null;V_(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function vO(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Cb(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))}(n,s[n],t)}finally{null!==d&&yt(d),cu(c),a.resolving=!1,$_()}}return i}function Hb(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function $b(e,t){return!(2&e||1&e&&t)}class Oe{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ub(this._tNode,this._lView,t,Ds(r),n)}}function MO(){return new Oe(W(),D())}function qb(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[5]:null}function jO(){return ci(W(),D())}function ci(e,t){return new Yr(Ie(e,t))}let Yr=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=jO})();function Bs(e){return!(128&~e.flags)}Symbol;var hu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(hu||{});const pu=new Map;let $O=0;function yh(e){pu.delete(e[19])}const bh="__ngContext__";function bt(e,t){Ne(t)?(e[bh]=t[19],function zO(e){pu.set(e[19],e)}(t)):e[bh]=t}function sE(e){return cE(e[12])}function aE(e){return cE(e[4])}function cE(e){for(;null!==e&&!lt(e);)e=e[4];return e}let Eh;const ui=new A("",{factory:()=>fP}),fP="ng",gE=new A(""),mE=new A("",{providedIn:"platform",factory:()=>"unknown"}),vE=new A("",{factory:()=>k(Jt).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),_P=new A("",{factory:()=>!1});function bu(e){return!(32&~e.flags)}function zE(e,t){const n=e.contentQueries;if(null!==n){const r=R(null);try{for(let o=0;o<n.length;o+=2){const s=n[o+1];if(-1!==s){const a=e.data[s];$c(n[o]),a.contentQueries(2,t[s],s)}}}finally{R(r)}}}function Ph(e,t,n){$c(0);const r=R(null);try{t(e,n)}finally{R(r)}}function Lh(e,t,n){if(g_(t)){const r=R(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{R(r)}}}var Ut=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e}(Ut||{});const vL=/^>|^->|<!--|-->|--!>|<!-$/g,yL=/(<|>)/g;function Gh(e,t){return e.createComment(function cD(e){return e.replace(vL,t=>t.replace(yL,"\u200b$1\u200b"))}(t))}function Kr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function lD(e,t,n){e.appendChild(t,n)}function dD(e,t,n,r,o){null!==r?Kr(e,t,n,r,o):lD(e,t,n)}function hD(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&function EO(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];Rb(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}}(e,t,r),null!==o&&function EL(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}(e,t,o),null!==i&&function bL(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}function HL(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const bD="ng-template";function $L(e,t,n,r){let o=0;if(r){for(;o<t.length&&"string"==typeof t[o];o+=2)if("class"===t[o]&&-1!==HL(t[o+1].toLowerCase(),n,0))return!0}else if(Wh(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&"string"==typeof(i=t[o]);)if(i.toLowerCase()===n)return!0}return!1}function Wh(e){return 4===e.type&&e.value!==bD}function qL(e,t,n){return t===(4!==e.type||n?e.value:bD)}function zL(e,t,n){let r=4;const o=e.attrs,i=null!==o?function QL(e){for(let t=0;t<e.length;t++)if(uh(e[t]))return t;return e.length}(o):0;let s=!1;for(let a=0;a<t.length;a++){const c=t[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!qL(e,c,n)||""===c&&1===t.length){if(en(r))return!1;s=!0}}else if(8&r){if(null===o||!$L(e,o,c,n)){if(en(r))return!1;s=!0}}else{const u=t[++a],l=GL(c,o,Wh(e),n);if(-1===l){if(en(r))return!1;s=!0;continue}if(""!==u){let d;if(d=l>i?"":o[l+1].toLowerCase(),2&r&&u!==d){if(en(r))return!1;s=!0}}}}else{if(!s&&!en(r)&&!en(c))return!1;if(s&&en(c))continue;s=!1,r=c|1&r}}return en(r)||s}function en(e){return!(1&e)}function GL(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function ZL(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function ED(e,t,n=!1){for(let r=0;r<t.length;r++)if(zL(e,t[r],n))return!0;return!1}function YL(e,t){e:for(let n=0;n<t.length;n++){const 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 DD(e,t){return e?":not("+t.trim()+")":t}function KL(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!en(s)&&(t+=DD(i,o),o=""),r=s,i=i||!en(r);n++}return""!==o&&(t+=DD(i,o)),t}const ae={};function Qh(e,t,n,r,o,i,s,a,c,u,l){const d=j+r,h=d+o,f=function e1(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:ae);return n}(d,h),p="function"==typeof u?u():u;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,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:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:l}}function xu(e,t,n,r,o,i,s,a,c,u,l){const d=t.blueprint.slice();return d[0]=o,d[2]=1228|r,(null!==u||e&&2048&e[2])&&(d[2]|=2048),E_(d),d[3]=d[14]=e,d[8]=n,d[10]=s||e&&e[10],d[V]=a||e&&e[V],d[9]=c||e&&e[9]||null,d[5]=i,d[19]=function qO(){return $O++}(),d[6]=l,d[20]=u,d[15]=2==t.type?e[15]:d,d}function Zh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ks(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Yh(e,t){return e[12]?e[13][4]=t:e[12]=t,e[13]=t,t}var Ru=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Ru||{});function Xr(e,t,n,r){const o=R(null);try{const[i,s,a]=e.inputs[n];let c=null;0!==(s&Ru.SignalBased)&&(c=t[i][de]),null!==c&&void 0!==c.transformFn?r=c.transformFn(r):null!==a&&(r=a.call(t,r)),null!==e.setInput?e.setInput(t,c,r,n,i):Tb(t,c,i,r)}finally{R(o)}}var cr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(cr||{});function Xh(e,t){return undefined(e,t)}const Jr=new Set;var Jh=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Jh||{});const gi=new A(""),MD=new Set;let ND=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();const Xs=new A("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:k(St)})});function FD(e,t,n){const r=e.get(Xs);if(Array.isArray(t))for(const 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 OD(e,t,n,r){const o=e?.[26]?.enter;null!==t&&o&&o.has(n.index)&&function ep(e,t){for(const[n,r]of t)FD(e,r.animateFns)}(r,o)}function mi(e,t,n,r,o,i,s,a){if(null!=o){let c,u=!1;lt(o)?c=o:Ne(o)&&(u=!0,o=o[0]);const l=Ye(o);0===e&&null!==r?(OD(a,r,i,n),null==s?lD(t,r,l):Kr(t,r,l,s||null,!0)):1===e&&null!==r?(OD(a,r,i,n),Kr(t,r,l,s||null,!0)):2===e?jD(a,i,n,d=>{!function Zs(e,t,n,r){e.removeChild(null,t,n,r)}(t,l,u,d)}):3===e&&jD(a,i,n,()=>{t.destroyNode(l)}),null!=c&&function b1(e,t,n,r,o,i,s){const a=r[7];a!==Ye(r)&&mi(t,e,n,i,a,o,s);for(let u=10;u<r.length;u++){const l=r[u];Lu(l[1],l,e,t,i,a)}}(t,e,n,c,i,r,s)}}function LD(e,t){t[10].changeDetectionScheduler?.notify(9),Lu(e,t,t[V],2,null,null)}function tp(e,t){const n=e[9],r=n.indexOf(t);n.splice(r,1)}function np(e,t){if(wn(t))return;const n=R(null);try{t[2]&=-129,t[2]|=256,t[24]&&ps(t[24]),function y1(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Ls)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],c=i[s+1];ue(x.LifecycleHookStart,a,c);try{c.call(a)}finally{ue(x.LifecycleHookEnd,a,c)}}else{ue(x.LifecycleHookStart,o,i);try{i.call(o)}finally{ue(x.LifecycleHookEnd,o,i)}}}}}(e,t),function v1(e,t){const n=e.cleanup,r=t[7];if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else n[s].call(r[n[s+1]]);null!==r&&(t[7]=null);const o=t[21];if(null!==o){t[21]=null;for(let s=0;s<o.length;s++)(0,o[s])()}const i=t[23];if(null!==i){t[23]=null;for(const s of i)s.destroy()}}(e,t),1===t[1].type&&t[V].destroy();const r=t[16];if(null!==r&&lt(t[3])){r!==t[3]&&tp(r,t);const o=t[18];null!==o&&o.detachView(e)}yh(t)}finally{R(n)}}function jD(e,t,n,r){const o=e?.[26];if(o?.enter?.has(t.index)&&function h1(e,t){const n=e.get(Xs);if(Array.isArray(t))for(const r of t)n.queue.delete(r);else n.queue.delete(t)}(n,o.enter.get(t.index).animateFns),null==o||null==o.leave||!o.leave.has(t.index))return r(!1);e&&Jr.add(e[19]),FD(n,()=>{if(o.leave&&o.leave.has(t.index)){const s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){const u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),function m1(e,t){const n=e[26]?.running;n?n.then(()=>{e[26].running=void 0,Jr.delete(e[19]),t(!0)}):t(!1)}(e,r)}else e&&Jr.delete(e[19]),r(!1)},o)}function rp(e,t,n){return function VD(e,t,n){let r=t;for(;null!==r&&168&r.type;)r=(t=r).parent;if(null===r)return n[0];if(ln(r)){const{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ut.None||o===Ut.Emulated)return null}return Ie(r,n)}(e,t.parent,n)}function UD(e,t,n){return HD(e,t,n)}let HD=function BD(e,t,n){return 40&e.type?Ie(e,n):null};function ip(e,t,n,r){const o=rp(e,r,t),i=t[V],a=UD(r.parent||t[5],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;c<n.length;c++)dD(i,o,n[c],a,!1);else dD(i,o,n,a,!1)}function eo(e,t){if(null!==t){const n=t.type;if(3&n)return Ie(t,e);if(4&n)return Pu(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return eo(e,r);{const o=e[t.index];return lt(o)?Pu(-1,o):Ye(o)}}if(128&n)return eo(e,t.next);if(32&n)return Xh(t,e)()||Ye(e[t.index]);{const r=qD(e,t);return null!==r?Array.isArray(r)?r[0]:eo(In(e[15]),r):eo(e,t.next)}}return null}function qD(e,t){return null!==t?e[15][5].projection[t.projection]:null}function Pu(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return eo(r,o)}return t[7]}function sp(e,t,n,r,o,i,s){for(;null!=n;){const a=r[9];if(128===n.type){n=n.next;continue}const c=r[n.index],u=n.type;if(s&&0===t&&(c&&bt(Ye(c),r),n.flags|=2),!bu(n))if(8&u)sp(e,t,n.child,r,o,i,!1),mi(t,e,a,o,c,n,i,r);else if(32&u){const l=Xh(n,r);let d;for(;d=l();)mi(t,e,a,o,d,n,i,r);mi(t,e,a,o,c,n,i,r)}else 16&u?zD(e,t,r,n,o,i):mi(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Lu(e,t,n,r,o,i){sp(n,r,e.firstChild,t,o,i,!1)}function zD(e,t,n,r,o,i){const s=n[15],c=s[5].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++)mi(t,e,n[9],o,c[u],r,i,n);else{let u=c;const l=s[3];Bs(r)&&(u.flags|=128),sp(e,t,u,l,o,i,!0)}}function GD(e,t,n,r,o){const i=function Je(){return z.lFrame.selectedIndex}(),s=2&r;try{qr(-1),s&&t.length>j&&function ID(e,t,n,r){if(!r)if(3&~t[2]){const i=e.preOrderHooks;null!==i&&au(t,i,0,n)}else{const i=e.preOrderCheckHooks;null!==i&&su(t,i,n)}qr(n)}(e,t,j,!1),ue(s?x.TemplateUpdateStart:x.TemplateCreateStart,o,n),n(r,o)}finally{qr(i),ue(s?x.TemplateUpdateEnd:x.TemplateCreateEnd,o,n)}}function ju(e,t,n){(function C1(e,t,n){const r=n.directiveStart,o=n.directiveEnd;ln(n)&&function t1(e,t,n){const r=Ie(t,e),o=function wD(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Qh(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}(n),i=e[10].rendererFactory,s=Yh(e,xu(e,o,null,Zh(n),r,t,null,i.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||uu(n,t);const i=n.initialInputs;for(let s=r;s<o;s++){const a=e.data[s],c=Us(t,e,s,n);bt(c,t),null!==i&&A1(0,s-r,c,a,0,i),Kt(a)&&(dt(n.index,t)[8]=Us(t,e,s,n))}})(e,t,n),!(64&~n.flags)&&function S1(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function _R(){return z.lFrame.currentDirectiveIndex}();try{qr(i);for(let a=r;a<o;a++){const c=e.data[a],u=t[a];Lf(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&M1(c,u)}}finally{qr(-1),Lf(s)}}(e,t,n)}function vi(e,t,n=Ie){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}let WD=()=>null;function M1(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function cp(e,t){const n=e.directiveRegistry;let r=null;if(n)for(let o=0;o<n.length;o++){const i=n[o];ED(t,i.selectors,!1)&&(r??=[],Kt(i)?r.unshift(i):r.push(i))}return r}function A1(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;a+=2)Xr(r,n,s[a],s[a+1])}function x1(e,t){const n=dt(t,e),r=n[1];!function R1(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[0];null!==o&&null===n[6]&&(n[6]=null),ue(x.ComponentStart);try{qu(r,n,n[8])}finally{ue(x.ComponentEnd,n[8])}}function qu(e,t,n){Uf(t);try{const r=e.viewQuery;null!==r&&Ph(1,r,n);const o=e.template;null!==o&&GD(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[18]?.finishViewCreation(e),e.staticContentQueries&&zE(e,t),e.staticViewQueries&&Ph(2,e.viewQuery,n);const i=e.components;null!==i&&function F1(e,t){for(let n=0;n<t.length;n++)x1(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Bf()}}function ea(e,t,n,r,o=!1){for(;null!==n;){if(128===n.type){n=o?n.projectionNext:n.next;continue}const i=t[n.index];null!==i&&r.push(Ye(i)),lt(i)&&O1(i,r);const s=n.type;if(8&s)ea(e,t,n.child,r);else if(32&s){const a=Xh(n,t);let c;for(;c=a();)r.push(c)}else if(16&s){const a=qD(t,n);if(Array.isArray(a))r.push(...a);else{const c=In(t[15]);ea(c[1],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function O1(e,t){for(let n=10;n<e.length;n++){const r=e[n],o=r[1].firstChild;null!==o&&ea(r[1],r,o,t)}e[7]!==e[0]&&t.push(e[7])}function KD(e){if(null!==e[25]){for(const t of e[25])t.impl.addSequence(t);e[25].length=0}}let XD=[];const V1={...fs,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Ms(e.lView)},consumerOnSignalRead(){this.lView[24]=this}},B1={...fs,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=In(e.lView);for(;t&&!JD(t[1]);)t=In(t);t&&kf(t)},consumerOnSignalRead(){this.lView[24]=this}};function JD(e){return 2!==e.type}function ew(e){if(null===e[23])return;let t=!0;for(;t;){let n=!1;for(const r of e[23])r.dirty&&(n=!0,null===r.zone||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(8192&e[2])}}function zu(e,t=0){const r=e[10].rendererFactory;r.begin?.();try{!function $1(e,t){const n=O_();try{P_(!0),lp(e,t);let r=0;for(;Ss(e);){if(100===r)throw new S(103,!1);r++,lp(e,1)}}finally{P_(n)}}(e,t)}finally{r.end?.()}}function tw(e,t,n,r){if(wn(t))return;const o=t[2];Uf(t);let a=!0,c=null,u=null;JD(e)?(u=function P1(e){return e[24]??function L1(e){const t=XD.pop()??Object.create(V1);return t.lView=e,t}(e)}(t),c=Ro(u)):null===function Ge(){return Se}()?(a=!1,u=function U1(e){const t=e[24]??Object.create(B1);return t.lView=e,t}(t),c=Ro(u)):t[24]&&(ps(t[24]),t[24]=null);try{E_(t),function L_(e){return z.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&GD(e,t,n,2,r);const l=!(3&~o);if(l){const f=e.preOrderCheckHooks;null!==f&&su(t,f,null)}else{const f=e.preOrderHooks;null!==f&&au(t,f,0,null),ah(t,0)}if(function q1(e){for(let t=sE(e);null!==t;t=aE(t)){if(!(2&t[2]))continue;const n=t[9];for(let r=0;r<n.length;r++)kf(n[r])}}(t),ew(t),nw(t,0),null!==e.contentQueries&&zE(e,t),l){const f=e.contentCheckHooks;null!==f&&su(t,f)}else{const f=e.contentHooks;null!==f&&au(t,f,1),ah(t,1)}!function G1(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)qr(~o);else{const i=o,s=n[++r],a=n[++r];yR(s,i);const c=t[i];ue(x.HostBindingsUpdateStart,c);try{a(2,c)}finally{ue(x.HostBindingsUpdateEnd,c)}}}}finally{qr(-1)}}(e,t);const d=e.components;null!==d&&ow(t,d,0);const h=e.viewQuery;if(null!==h&&Ph(2,h,r),l){const f=e.viewCheckHooks;null!==f&&su(t,f)}else{const f=e.viewHooks;null!==f&&au(t,f,2),ah(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[22]){for(const f of t[22])f();t[22]=null}KD(t),t[2]&=-73}catch(l){throw Ms(t),l}finally{null!==u&&(function Fo(e,t){R(t),e&&function Ec(e){e.recomputing=!1;const t=e.producersTail;let n=void 0!==t?t.nextProducer:e.producers;if(void 0!==n){if(qn(e))do{n=gs(n)}while(void 0!==n);void 0!==t?t.nextProducer=void 0:e.producers=void 0}}(e)}(u,c),a&&function j1(e){e.lView[24]!==e&&(e.lView=null,XD.push(e))}(u)),Bf()}}function nw(e,t){for(let n=sE(e);null!==n;n=aE(n))for(let r=10;r<n.length;r++)rw(n[r],t)}function z1(e,t,n){ue(x.ComponentStart);const r=dt(t,e);try{rw(r,n)}finally{ue(x.ComponentEnd,r[8])}}function rw(e,t){Af(e)&&lp(e,t)}function lp(e,t){const r=e[1],o=e[2],i=e[24];let s=!!(0===t&&16&o);if(s||=!!(64&o&&0===t),s||=!!(1024&o),s||=!(!i?.dirty||!Oo(i)),s||=!1,i&&(i.dirty=!1),e[2]&=-9217,s)tw(r,e,r.template,e[8]);else if(8192&o){const a=R(null);try{ew(e),nw(e,1);const c=r.components;null!==c&&ow(e,c,1),KD(e)}finally{R(a)}}}function ow(e,t,n){for(let r=0;r<t.length;r++)z1(e,t[r],n)}function _i(e,t){const n=O_()?64:1088;for(e[10].changeDetectionScheduler?.notify(t);e;){e[2]|=n;const r=In(e);if(Yn(e)&&!r)return e;e=r}return null}function ta(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[16];null!==o&&o!==e&&tp(o,r),t>0&&(e[n-1][4]=r[4]);const i=Rc(e,10+t);!function PD(e,t){LD(e,t),t[0]=null,t[5]=null}(r[1],r);const s=i[18];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function aw(e,t){const n=e[9],r=t[3];(Ne(r)||t[15]!==r[3][15])&&(e[2]|=2),null===n?e[9]=[t]:n.push(t)}class na{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){const t=this._lView,n=t[1];return ea(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return wn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(lt(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(ta(t,r),Rc(n,r))}this._attachedToViewContainer=!1}!function Js(e,t){if(wn(t))return;const n=t[V];n.destroyNode&&Lu(e,t,n,3,null,null),function g1(e){let t=e[12];if(!t)return np(e[1],e);for(;t;){let n=null;if(Ne(t))n=t[12];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Ne(t)&&np(t[1],t),t=t[3];null===t&&(t=e),Ne(t)&&np(t[1],t),n=t&&t[4]}t=n}}(t)}(this._lView[1],this._lView)}onDestroy(t){Hc(this._lView,t)}markForCheck(){_i(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){xf(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,zu(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Yn(this._lView),n=this._lView[16];null!==n&&!t&&tp(n,this._lView),LD(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;const n=Yn(this._lView),r=this._lView[16];null!==r&&!n&&aw(r,this._lView),xf(this._lView)}}function no(e,t,n,r,o){let i=e.data[t];if(null===i)i=function gp(e,t,n,r,o){const i=A_(),s=k_(),c=e.data[t]=function ij(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return S_()&&(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}}(0,s?i:i&&i.parent,n,t,r,o);return function oj(e,t,n,r){null===e.firstChild&&(e.firstChild=t),null!==n&&(r?null==n.child&&null!==t.parent&&(n.child=t):null===n.next&&(n.next=t,t.prev=n))}(e,c,i,s),c}(e,t,n,r,o),function vR(){return z.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Ns(){const e=z.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Tn(i,!0),i}let Bj=class{},xw=class{};class Hj{resolveComponentFactory(t){throw new S(917,!1)}}let Di=class{static NULL=new Hj};class Dp{}let qj=(()=>{class e{static \u0275prov=B({token:e,providedIn:"root",factory:()=>null})}return e})();const Ip={};class Ii{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const o=this.injector.get(t,Ip,r);return o!==Ip||n===Ip?o:this.parentInjector.get(t,n,r)}}function tl(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=tf(o,a):2==i&&(r=tf(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function X(e,t=0){const n=D();return null===n?Z(e,t):Ub(W(),n,Y(e),t)}function Yj(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Pw(e,t,n,r){const o=0===e?n.inputs:n.outputs;for(const i in o)if(o.hasOwnProperty(i)){let s;s=0===e?t.inputs??={}:t.outputs??={},s[i]??=[],s[i].push(r),jw(t,i)}}function Lw(e,t,n,r){const o=0===e?n.inputs:n.outputs;for(const i in o)if(o.hasOwnProperty(i)){const s=o[i];let a;a=0===e?t.hostDirectiveInputs??={}:t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),jw(t,s)}}function jw(e,t){"class"===t?e.flags|=8:"style"===t&&(e.flags|=16)}function Vw(e,t,n){const{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(null===r||!n&&null===o||n&&null===i||Wh(e))return e.initialInputs??=[],void e.initialInputs.push(null);let s=null,a=0;for(;a<r.length;){const c=r[a];if(0!==c)if(5!==c){if("number"==typeof c)break;if(!n&&o.hasOwnProperty(c)){const u=o[c];for(const l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){const 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}else a+=2;else a+=4}e.initialInputs??=[],e.initialInputs.push(s)}function Jj(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=Vr(o.type)),s=new Ls(i,Kt(o),X,null);e.blueprint[r]=s,n[r]=s,function eV(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function tV(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Ks(e,n,o.hostVars,ae),o)}function nV(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Kt(t)&&(n[""]=e)}}function Tp(e,t,n,r,o,i,s,a){const c=t[1],u=c.consts,d=no(c,e,n,r,ot(u,s));return i&&function Ow(e,t,n,r,o){const i=null===r?null:{"":-1},s=o(e,n);if(null!==s){let a=s,c=null,u=null;for(const l of s)if(null!==l.resolveHostDirectives){[a,c,u]=l.resolveHostDirectives(s);break}!function Kj(e,t,n,r,o,i,s){const a=r.length;let c=null;for(let h=0;h<a;h++){const f=r[h];null===c&&Kt(f)&&(c=f,Yj(e,n,h)),hh(uu(n,t),e,f.type)}(function rV(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t})(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let h=0;h<a;h++){const f=r[h];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,d=Ks(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){const f=r[h];if(n.mergedAttrs=ai(n.mergedAttrs,f.hostAttrs),Jj(e,n,t,d,f),nV(d,f,o),null!==s&&s.has(f)){const[g,m]=s.get(f);n.directiveToIndex.set(f.type,[d,g+n.directiveStart,m+n.directiveStart])}else(null===i||!i.has(f))&&n.directiveToIndex.set(f.type,d);null!==f.contentQueries&&(n.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(n.flags|=64);const p=f.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}!function Xj(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){const o=e.data[r];if(null!==n&&n.has(o)){const i=n.get(o);Lw(0,t,i,r),Lw(1,t,i,r),Vw(t,r,!0)}else Pw(0,t,o,r),Pw(1,t,o,r),Vw(t,r,!1)}}(e,n,i)}(e,t,n,a,i,c,u)}null!==i&&null!==r&&function Zj(e,t,n){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new S(-301,!1);r.push(t[o],i)}}(n,r,i)}(c,t,d,ot(u,a),o),d.mergedAttrs=ai(d.mergedAttrs,d.attrs),null!==d.attrs&&tl(d,d.attrs,!1),null!==d.mergedAttrs&&tl(d,d.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,d),d}function Cp(e,t){(function Nb(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const 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)),null!=l&&(e.destroyHooks??=[]).push(n,l)}})(e,t),g_(t)&&e.queries.elementEnd(t)}const kn=Symbol("BINDING");class Gw extends Di{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=se(t);return new Mp(n,this.ngModule)}}class Mp extends xw{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function mV(e){return Object.keys(e).map(t=>{const[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:0!==(r&Ru.SignalBased)};return o&&(i.transform=o),i})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function vV(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function XL(e){return e.map(KL).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){ue(x.DynamicComponentStart);const a=R(null);try{const c=this.componentDef,u=function DV(e,t,n,r){const o=e?["ng-version","21.1.4"]:function JL(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!en(o))break;o=i}r++}return n.length&&t.push(1,...n),t}(t.selectors[0]);let i=null,s=null,a=0;if(n)for(const l of n)a+=l[kn].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++){const d=r[l];if("function"!=typeof d)for(const h of d.bindings){a+=h[kn].requiredVars;const f=l+1;h.create&&(h.targetIdx=f,(i??=[]).push(h)),h.update&&(h.targetIdx=f,(s??=[]).push(h))}}const c=[t];if(r)for(const l of r){const h=ut("function"==typeof l?l:l.type);c.push(h)}return Qh(0,null,function wV(e,t){return e||t?n=>{if(1&n&&e)for(const r of e)r.create();if(2&n&&t)for(const r of t)r.update()}:null}(i,s),1,a,c,null,null,null,[o],null)}(r,c,s,i),l=function yV(e,t,n){let r=t instanceof St?t:t?.injector;return r&&null!==e.getStandaloneInjector&&(r=e.getStandaloneInjector(r)||r),r?new Ii(n,r):n}(c,o||this.ngModule,t),d=function _V(e){const t=e.get(Dp,null);if(null===t)throw new S(407,!1);return{rendererFactory:t,sanitizer:e.get(qj,null),changeDetectionScheduler:e.get(Gr,null),ngReflect:!1}}(l),h=d.rendererFactory.createRenderer(null,c),f=r?function D1(e,t,n,r){const i=r.get(_P,!1)||n===Ut.ShadowDom||n===Ut.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return function w1(e){WD(e)}(s),s}(h,r,c.encapsulation,l):function bV(e,t){const n=function EV(e){return(e.selectors[0][0]||"div").toLowerCase()}(e);return function Au(e,t,n){return e.createElement(t,n)}(t,n,"svg"===n?"svg":"math"===n?"math":null)}(c,h),p=s?.some(Ww)||i?.some(v=>"function"!=typeof v&&v.bindings.some(Ww)),g=xu(null,u,null,512|Zh(c),null,null,d,h,l,null,null);g[j]=f,Uf(g);let m=null;try{const v=Tp(j,g,2,"#host",()=>u.directiveRegistry,!0,0);hD(h,f,v),bt(f,g),ju(u,g,v),Lh(u,v,g),Cp(u,v),void 0!==n&&function TV(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i&&i.length?Array.from(i):null)}}(v,this.ngContentSelectors,n),m=dt(v.index,g),g[8]=m[8],qu(u,g,null)}catch(v){throw null!==m&&yh(m),yh(g),v}finally{ue(x.DynamicComponentEnd),Bf()}return new IV(this.componentType,g,!!p)}finally{R(a)}}}function Ww(e){const t=e[kn].kind;return"input"===t||"twoWay"===t}class IV extends Bj{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=function Yo(e,t){return e.data[t]}(n[1],j),this.location=ci(this._tNode,n),this.instance=dt(this._tNode.index,n)[8],this.hostView=this.changeDetectorRef=new na(n,void 0),this.componentType=t}setInput(t,n){const r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const o=this._rootLView;!function $u(e,t,n,r,o){const i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r];let a=!1;if(s)for(let c=0;c<s.length;c+=2){const u=s[c];Xr(t.data[u],n[u],s[c+1],o),a=!0}if(i)for(const c of i)Xr(t.data[c],n[c],r,o),a=!0;return a}(r,o[1],o,t,n),this.previousInputValues.set(t,n),_i(dt(r.index,o),1)}get injector(){return new Oe(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}let so=class{},$V=class{};class Hp extends so{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Gw(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;const i=function cn(e){return xc(e),e[Ky]||null}(t);this._bootstrapComponents=function pn(e){return e instanceof Function?e():e}(i.bootstrap),this._r3Injector=G_(t,n,[{provide:so,useValue:this},{provide:Di,useValue:this.componentFactoryResolver},...r],Pt(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class dI extends $V{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Hp(this.moduleType,t,[])}}class GV extends so{injector;componentFactoryResolver=new Gw(this);instance=null;constructor(t){super();const n=new Ur([...t.providers,{provide:so,useValue:this},{provide:Di,useValue:this.componentFactoryResolver}],t.parent||Df(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let WV=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=vf(0,n.type),o=r.length>0?function fI(e,t,n=null){return new GV({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=B({token:e,providedIn:"environment",factory:()=>new e(Z(St))})}return e})();function hI(e){return Sn(()=>{const t=function gI(e){const 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||un,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||_e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:QV(e.inputs,t),outputs:ZV(e.outputs),debugInfo:null}}(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===hu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(WV).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ut.Emulated,styles:e.styles||_e,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&function at(e){MD.has(e)||(MD.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}("NgStandalone"),function mI(e){e.features?.forEach(t=>t(e))}(n);const r=e.dependencies;return n.directiveDefs=il(r,pI),n.pipeDefs=il(r,Zt),n.id=function KV(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,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(const i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function pI(e){return se(e)||ut(e)}function lr(e){return Sn(()=>({type:e.type,bootstrap:e.bootstrap||_e,declarations:e.declarations||_e,imports:e.imports||_e,exports:e.exports||_e,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function QV(e,t){if(null==e)return un;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let 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=Ru.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function ZV(e){if(null==e)return un;const t={};for(const n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function il(e,t){return e?()=>{const n="function"==typeof e?e():e,r=[];for(const o of n){const i=t(o);null!==i&&r.push(i)}return r}:null}function ao(e,t,n,r,o,i,s,a,c,u,l){const d=n+j;let h;if(t.firstCreatePass){if(h=no(t,d,4,s||null,a||null),null!=u){const f=ot(t.consts,u);h.localNames=[];for(let p=0;p<f.length;p+=2)h.localNames.push(f[p],-1)}}else h=t.data[d];return function DI(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ai(e.mergedAttrs,e.attrs);const l=e.tView=Qh(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);null!==n.queries&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Tn(e,!1);const c=TI(n,t,e,r);qc()&&ip(n,t,c,e),bt(c,t);const u=function iw(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}(c,t,c,e);t[r+j]=u,Yh(t,u)}(h,e,t,n,r,o,i,c),null!=u&&vi(e,h,l),h}let TI=function CI(e,t,n,r){return As(!0),t[V].createComment("")};const t0=new A(""),n0=new A("");let Jp,Xp=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(n,r,o){this._ngZone=n,this.registry=r,Cf()&&(this._destroyRef=k(Kn,{optional:!0})??void 0),Jp||(function mU(e){Jp=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){const n=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{he.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(;0!==this._callbacks.length;){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))}}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)(Z(he),Z(gU),Z(n0))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),gU=(()=>{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 Jp?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function eg(e){return!!e&&"function"==typeof e.then}function r0(e){return!!e&&"function"==typeof e.subscribe}const o0=new A("");let i0=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=k(o0,{optional:!0})??[];injector=k(Nt);constructor(){}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=Tf(this.injector,o);if(eg(i))n.push(i);else if(r0(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const vU=new A("");function s0(e,t){return Array.isArray(t)?t.reduce(s0,e):{...e,...t}}let fr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=k(Jn);afterRenderManager=k(ND);zonelessEnabled=k(Gf);rootEffectScheduler=k(X_);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Lo;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=k(zr);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(tr(n=>!n))}constructor(){k(gi,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=k(St);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Nt.NULL){return this._injector.get(he).run(()=>{ue(x.BootstrapComponentStart);const s=n instanceof xw;if(!this._injector.get(i0).done)throw new S(405,"");let c;c=s?n:this._injector.get(Di).resolveComponentFactory(n),this.componentTypes.push(c.componentType);const u=function _U(e){return e.isBoundToModule}(c)?void 0:this._injector.get(so),d=c.create(o,[],r||c.selector,u),h=d.location.nativeElement,f=d.injector.get(t0,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),hl(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),ue(x.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ue(x.ChangeDetectionStart),null!==this.tracingSnapshot?this.tracingSnapshot.run(Jh.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw ue(x.ChangeDetectionEnd),new S(101,!1);const n=R(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,R(n),this.afterTick.next(),ue(x.ChangeDetectionEnd)}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Dp,null,{optional:!0}));let n=0;for(;0!==this.dirtyFlags&&n++<10;){ue(x.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{ue(x.ChangeDetectionSyncEnd)}}}synchronizeOnce(){16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews)(r||Ss(o))&&(zu(o,r&&!this.zonelessEnabled?0:1),n=!0);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>Ss(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;hl(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(vU,[]).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),()=>hl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);const 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=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}typeof document<"u"&&document;function Tl(e,t,n){const r=D(),o=r[1],i=e+j,s=o.firstCreatePass?Tp(i,r,8,"ng-container",cp,function Pf(){return z.bindingsEnabled}(),t,n):o.data[i];if(function Bu(e,t,n,r,o){const i=j+n,s=t[1],a=o(s,t,e,r,n);t[i]=a,Tn(e,!0);const c=2===e.type;return c?(hD(t[V],a,e),(0===function dR(){return z.lFrame.elementDepthCount}()||Qo(e))&&bt(a,t),function fR(){z.lFrame.elementDepthCount++}()):bt(a,t),qc()&&(!c||!bu(e))&&ip(s,t,a,e),e}(s,r,e,"ng-container",Cg),Qo(s)){const a=r[1];ju(a,r,s),Lh(a,s,r)}return null!=n&&vi(r,s),Tl}function _a(){const e=$(),n=function Hu(e){let t=e;return k_()?x_():(t=t.parent,Tn(t,!1)),t}(W());return e.firstCreatePass&&Cp(e,n),_a}Object.keys({disabled:"disabled",disabledReasons:"disabledReasons",dirty:"dirty",errors:"errors",hidden:"hidden",invalid:"invalid",max:"max",maxLength:"maxLength",min:"min",minLength:"minLength",name:"name",pattern:"pattern",pending:"pending",readonly:"readonly",required:"required",touched:"touched"});let Cg=(e,t,n,r,o)=>(As(!0),Gh(t[V],""));const Cl="en-US";let $0=Cl;function JH(e,t){let n=null;const r=function WL(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const i=t[o];if("*"!==i){if(null===r?ED(e,i,!0):YL(r,i))return o}else n=o}return n}function dT(e,t=0,n,r,o,i){const s=D(),a=$(),c=r?e+1:null;null!==c&&ao(s,a,c,r,o,i,null,n);const u=no(a,j+e,16,null,n||null);null===u.projection&&(u.projection=t),x_();const d=!s[6]||S_();null===s[15][5].projection[u.projection]&&null!==c?function e$(e,t,n){const r=j+n,o=t.data[r],i=e[r],a=function yi(e,t,n,r){const o=R(null);try{const i=t.tView,c=xu(e,i,n,4096&e[2]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[16]=e[t.index];const l=e[18];return null!==l&&(c[18]=l.createEmbeddedView(i)),qu(i,c,n),c}finally{R(o)}}(e,o,void 0,{dehydratedView:null});!function bi(e,t,n,r=!0){const o=t[1];if(function W1(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r<i-10?(t[4]=n[o],function o_(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[16];null!==s&&n!==s&&aw(s,t);const a=t[18];null!==a&&a.insertView(e),xf(t),t[2]|=128}(o,t,e,n),r){const s=Pu(n,e),a=t[V],c=a.parentNode(e[7]);null!==c&&function p1(e,t,n,r,o,i){r[0]=o,r[5]=t,Lu(e,r,n,1,o,i)}(o,e[5],a,t,c,s)}const i=t[6];null!==i&&null!==i.firstChild&&(i.firstChild=null)}(i,a,0,function to(e,t){return!t||null===t.firstChild||Bs(e)}(o,null))}(s,a,c):d&&!bu(u)&&function _1(e,t,n){zD(t[V],0,t,n,rp(e,n,t),UD(n.parent||t[5],n,t))}(a,s,u)}let zq=(()=>{class e{applicationErrorHandler=k(Jn);appRef=k(fr);taskService=k(zr);ngZone=k(he);zonelessEnabled=k(Gf);tracing=k(gi,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Tt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Gc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(k($R,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{const n=this.taskService.add();this.runningTick||(this.cleanup(),this.zonelessEnabled&&!this.appRef.includeAllTestViews)?(this.switchToMicrotaskScheduler(),this.taskService.remove(n)):this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{const n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 0:case 6:case 13:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 12:this.appRef.dirtyFlags|=16;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?kR:Q_;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Gc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const 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,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const gr=new A("",{factory:()=>k(gr,{optional:!0,skipSelf:!0})||function Gq(){return typeof $localize<"u"&&$localize.locale||Cl}()}),Bl=new A(""),Xz=new A("");function Oa(e){return!e.moduleRef}let CS;function SS(){CS=Jz}function Jz(e,t){const n=e.injector.get(fr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new S(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}let MS=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){const o=[[{provide:Gr,useExisting:zq},{provide:he,useClass:PR},{provide:Gf,useValue:!0}],...r?.applicationProviders??[],VR],i=function zV(e,t,n){return new Hp(e,t,n,!1)}(n.moduleType,this.injector,o);return SS(),function TS(e){const t=Oa(e)?e.r3Injector:e.moduleRef.injector,n=t.get(he);return n.run(()=>{Oa(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(Jn);let o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Oa(e)){const i=()=>t.destroy(),s=e.platformInjector.get(Bl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{const i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Bl);s.add(i),e.moduleRef.onDestroy(()=>{hl(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return function e3(e,t,n){try{const r=n();return eg(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}(r,n,()=>{const i=t.get(zr),s=i.add(),a=t.get(i0);return a.runInitializers(),a.donePromise.then(()=>{if(function gH(e){"string"==typeof e&&($0=e.toLowerCase().replace(/_/g,"-"))}(t.get(gr,Cl)||Cl),!t.get(Xz,!0))return Oa(e)?t.get(fr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Oa(e)){const l=t.get(fr);return void 0!==e.rootComponent&&l.bootstrap(e.rootComponent),l}return CS?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}({moduleRef:i,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){const o=s0({},r);return SS(),function qz(e,t,n){const r=new dI(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Bl,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(Z(Nt))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),$i=null;function NS(e,t,n=[]){const r=`Platform: ${t}`,o=new A(r);return(i=[])=>{let s=Hl();if(!s){const a=[...n,...i,{provide:o,useValue:!0}];s=e?.(a)??function t3(e){if(Hl())throw new S(400,!1);(function yU(){!function We(e){Po=e}(()=>{throw new S(600,"")})})(),$i=e;const t=e.get(MS);return function kS(e){const t=e.get(gE,null);Tf(e,()=>{t?.forEach(n=>n())})}(e),t}(function AS(e=[],t){return Nt.create({name:t,providers:[{provide:bf,useValue:"platform"},{provide:Bl,useValue:new Set([()=>$i=null])},...e]})}(a,r))}return function n3(){const t=Hl();if(!t)throw new S(-401,!1);return t}()}}function Hl(){return $i?.get(MS)??null}const M3=NS(null,"core",[]);let N3=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(Z(fr))};static \u0275mod=lr({type:e});static \u0275inj=_n({})}return e})();let hM=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=lr({type:e});static \u0275inj=_n({})}return e})();class pM{_doc;constructor(t){this._doc=t}manager}let ym=(()=>{class e extends pM{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)(Z(Jt))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const _m=new A("");let gM=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});const o=n.filter(s=>!(s instanceof ym));this._plugins=o.slice().reverse();const i=n.find(s=>s instanceof ym);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 S(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(Z(_m),Z(he))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const bm="ng-app-id";function mM(e){for(const t of e)t.remove()}function vM(e,t){const n=t.createElement("style");return n.textContent=e,n}function Em(e,t){const n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}let yM=(()=>{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,function sW(e,t,n,r){const o=e.head?.querySelectorAll(`style[${bm}="${t}"],link[${bm}="${t}"]`);if(o)for(const i of o)i.removeAttribute(bm),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]})}(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(const o of n)this.addUsage(o,this.inline,vM);r?.forEach(o=>this.addUsage(o,this.external,Em))}removeStyles(n,r){for(const o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){const 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){const o=r.get(n);o&&(o.usage--,o.usage<=0&&(mM(o.elements),r.delete(n)))}ngOnDestroy(){for(const[,{elements:n}]of[...this.inline,...this.external])mM(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(const[r,{elements:o}]of this.inline)o.push(this.addElement(n,vM(r,this.doc)));for(const[r,{elements:o}]of this.external)o.push(this.addElement(n,Em(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)(Z(Jt),Z(ui),Z(vE,8),Z(mE))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const Dm={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"},wm=/%COMP%/g,fW=new A("",{factory:()=>!0});function bM(e,t){return t.map(n=>n.replace(wm,e))}let EM=(()=>{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 Im(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof IM?o.applyToHost(n):o instanceof Tm&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case Ut.Emulated:i=new IM(c,u,r,this.appId,l,s,a,d);break;case Ut.ShadowDom:return new wM(c,n,r,s,a,this.nonce,d,u);case Ut.ExperimentalIsolatedShadowDom:return new wM(c,n,r,s,a,this.nonce,d);default:i=new Tm(c,u,r,l,s,a,d)}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)(Z(gM),Z(yM),Z(ui),Z(fW),Z(Jt),Z(he),Z(vE),Z(gi,8))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();class Im{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(Dm[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(DM(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(DM(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new S(-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;const i=Dm[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Dm[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&(cr.DashCase|cr.Important)?t.style.setProperty(n,r,o&cr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&cr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if("string"==typeof t&&!(t=Xo().getGlobalEventTarget(this.doc,t)))throw new S(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("__ngUnwrap__"===n)return t;!1===t(n)&&n.preventDefault()}}}function DM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class wM extends Im{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=bM(r.id,u);for(const d of u){const h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=d,this.shadowRoot.appendChild(h)}const l=r.getExternalStyles?.();if(l)for(const d of l){const h=Em(d,o);s&&h.setAttribute("nonce",s),this.shadowRoot.appendChild(h)}}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)}}class Tm extends Im{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?bM(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&0===Jr.size&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class IM extends Tm{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){const u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=function hW(e){return"_ngcontent-%COMP%".replace(wm,e)}(u),this.hostAttr=function pW(e){return"_nghost-%COMP%".replace(wm,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class Sm extends YR{supportsDOMEvents=!0;static makeCurrent(){!function ZR(e){eb??=e}(new Sm)}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()).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"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function vW(){return Ua=Ua||document.head.querySelector("base"),Ua?Ua.getAttribute("href"):null}();return null==n?null:function yW(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){Ua=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return nb(document.cookie,t)}}let Ua=null,bW=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const CM=["alt","control","meta","shift"],EW={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},DW={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let wW=(()=>{class e extends pM{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o,i){const s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xo().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),CM.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=EW[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),CM.forEach(s=>{s!==o&&(0,DW[s])(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"esc"===n?"escape":n}static \u0275fac=function(r){return new(r||e)(Z(Jt))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const MM=[{provide:mE,useValue:"browser"},{provide:gE,useValue:function IW(){Sm.makeCurrent()},multi:!0},{provide:Jt,useFactory:function CW(){return function dP(e){Eh=e}(document),document}}],SW=NS(M3,"browser",MM),NM=[{provide:n0,useClass:class _W{addToWindow(t){xe.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new S(5103,!1);return i},xe.getAllAngularTestabilities=()=>t.getAllTestabilities(),xe.getAllAngularRootElements=()=>t.getAllRootElements(),xe.frameworkStabilizers||(xe.frameworkStabilizers=[]),xe.frameworkStabilizers.push(r=>{const o=xe.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Xo().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}}},{provide:t0,useClass:Xp},{provide:Xp,useClass:Xp}],AM=[{provide:bf,useValue:"root"},{provide:ks,useFactory:function TW(){return new ks}},{provide:_m,useClass:ym,multi:!0},{provide:_m,useClass:wW,multi:!0},EM,yM,gM,{provide:Dp,useExisting:EM},{provide:rb,useClass:bW},[]];let MW=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=lr({type:e});static \u0275inj=_n({providers:[...AM,...NM],imports:[hM,N3]})}return e})();class AW extends Tt{constructor(t,n){super()}schedule(t,n=0){return this}}const od={setInterval(e,t,...n){const{delegate:r}=od;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){const{delegate:t}=od;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};class kW extends AW{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;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return od.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return n;null!=n&&od.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let o,r=!1;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){const{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Dc(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}}const km={now:()=>(km.delegate||Date).now(),delegate:void 0};class Ba{constructor(t,n=Ba.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}Ba.now=km.now;class RW extends Ba{constructor(t,n=Ba.now){super(t,n),this.actions=[],this._active=!1}flush(t){const{actions:n}=this;if(this._active)return void n.push(t);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}}}const OW=new class FW extends RW{}(class xW extends kW{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 null!=r&&r>0||null==r&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}});function vr(e){return this instanceof vr?(this.v=e,this):new vr(e)}function FM(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Om(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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.")}(e),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){!function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}(a,c,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const OM=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function PM(e){return Be(e?.then)}function LM(e){return Be(e[Cc])}function jM(e){return Symbol.asyncIterator&&Be(e?.[Symbol.asyncIterator])}function VM(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const UM=function cQ(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function BM(e){return Be(e?.[UM])}function HM(e){return function RM(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,d)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(f,p){r[f]&&(o[f]=function(g){return new Promise(function(m,v){i.push([f,g,m,v])>1||c(f,g)})},p&&(o[f]=p(o[f])))}function c(f,p){try{!function u(f){f.value instanceof vr?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}(r[f](p))}catch(g){h(i[0][3],g)}}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield vr(n.read());if(o)return yield vr(void 0);yield yield vr(r)}}finally{n.releaseLock()}})}function $M(e){return Be(e?.getReader)}function Do(e){if(e instanceof ke)return e;if(null!=e){if(LM(e))return function uQ(e){return new ke(t=>{const n=e[Cc]();if(Be(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(OM(e))return function lQ(e){return new ke(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(PM(e))return function dQ(e){return new ke(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,By)})}(e);if(jM(e))return qM(e);if(BM(e))return function fQ(e){return new ke(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if($M(e))return function hQ(e){return qM(HM(e))}(e)}throw VM(e)}function qM(e){return new ke(t=>{(function pQ(e,t){var n,r,o,i;return function kM(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=FM(e);!(r=yield n.next()).done;)if(t.next(r.value),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()})})(e,t).catch(n=>t.error(n))})}function yr(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Lm(e,t=0){return er((n,r)=>{n.subscribe(Wr(r,o=>yr(r,e,()=>r.next(o),t),()=>yr(r,e,()=>r.complete(),t),o=>yr(r,e,()=>r.error(o),t)))})}function zM(e,t=0){return er((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function GM(e,t){if(!e)throw new Error("Iterable cannot be null");return new ke(n=>{yr(n,t,()=>{const r=e[Symbol.asyncIterator]();yr(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function zi(e,t){return t?function bQ(e,t){if(null!=e){if(LM(e))return function gQ(e,t){return Do(e).pipe(zM(t),Lm(t))}(e,t);if(OM(e))return function vQ(e,t){return new ke(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(PM(e))return function mQ(e,t){return Do(e).pipe(zM(t),Lm(t))}(e,t);if(jM(e))return GM(e,t);if(BM(e))return function yQ(e,t){return new ke(n=>{let r;return yr(n,t,()=>{r=e[UM](),yr(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>Be(r?.return)&&r.return()})}(e,t);if($M(e))return function _Q(e,t){return GM(HM(e),t)}(e,t)}throw VM(e)}(e,t):Do(e)}var me=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}(me||{});function Ha(e){return!!e&&e<7}var jm=function(e,t){return(jm=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])})(e,t)};function nn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}jm(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var b=function(){return b=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t},b.apply(this,arguments)};function On(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Pn(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Ln(e,t){var r,o,i,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return 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=2&u[0]?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=[2&u[0],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=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(6===u[0]&&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(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function zt(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;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"==typeof SuppressedError&&SuppressedError;var Hm=function(e,t){return(Hm=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])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var Wm="Invariant Violation",YM=Object.setPrototypeOf,_6=void 0===YM?function(e,t){return e.__proto__=t,e}:YM,KM=function(e){function t(n){void 0===n&&(n=Wm);var r=e.call(this,"number"==typeof n?Wm+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Wm,_6(r,t.prototype),r}return function QM(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Hm(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function wo(e,t){if(!e)throw new KM(t)}var e,id=["debug","log","warn","error","silent"],Qm=id.indexOf("log");function sd(e){return function(){if(id.indexOf(e)>=Qm)return(console[e]||console.log).apply(console,arguments)}}(e=wo||(wo={})).debug=sd("debug"),e.log=sd("log"),e.warn=sd("warn"),e.error=sd("error");var Zm="3.10.8";function rn(e){try{return e()}catch{}}const Ym=rn(function(){return globalThis})||rn(function(){return window})||rn(function(){return self})||rn(function(){return global})||rn(function(){return rn.constructor("return this")()});var XM=new Map;function Km(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 JM(e,t){void 0===t&&(t=0);var n=Km("stringifyForDisplay");return JSON.stringify(e,function(r,o){return void 0===o?n:o},t).split(JSON.stringify(n)).join("<undefined>")}function ad(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var o=t;(t=Xm(o))||(t=Jm(o,n),n=[])}e.apply(void 0,[t].concat(n))}}var q=Object.assign(function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];t||wo(t,Xm(n,r)||Jm(n,r))},{debug:ad(wo.debug),log:ad(wo.log),warn:ad(wo.warn),error:ad(wo.error)});function mt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new KM(Xm(e,t)||Jm(e,t))}var eN=Symbol.for("ApolloErrorMessageHandler_"+Zm);function tN(e){if("string"==typeof e)return e;try{return JM(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Xm(e,t){if(void 0===t&&(t=[]),e)return Ym[eN]&&Ym[eN](e,t.map(tN))}function Jm(e,t){if(void 0===t&&(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:Zm,message:e,args:t.map(tN)})))}function nN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rN(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 ev(e,t,n){return t&&rN(e.prototype,t),n&&rN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}globalThis;var tv=function(){return"function"==typeof Symbol},nv=function(e){return tv()&&!!Symbol[e]},rv=function(e){return nv(e)?Symbol[e]:"@@"+e};tv()&&!nv("observable")&&(Symbol.observable=Symbol("observable"));var D6=rv("iterator"),ov=rv("observable"),oN=rv("species");function cd(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function za(e){var t=e.constructor;return void 0!==t&&null===(t=t[oN])&&(t=void 0),void 0!==t?t:le}function Gi(e){Gi.log?Gi.log(e):setTimeout(function(){throw e})}function ud(e){Promise.resolve().then(function(){try{e()}catch(t){Gi(t)}})}function iN(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=cd(t,"unsubscribe");n&&n.call(t)}}catch(r){Gi(r)}}function iv(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function sN(e,t,n){e._state="running";var r=e._observer;try{var o=cd(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(iv(e),!o)throw n;o.call(r,n);break;case"complete":iv(e),o&&o.call(r)}}catch(i){Gi(i)}"closed"===e._state?iN(e):"running"===e._state&&(e._state="ready")}function sv(e,t,n){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:n});if("ready"!==e._state)return e._state="buffering",e._queue=[{type:t,value:n}],void ud(function(){return function I6(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(sN(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)});sN(e,t,n)}}var T6=function(){function e(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var o=new C6(this);try{this._cleanup=r.call(void 0,o)}catch(i){o.error(i)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(iv(this),iN(this))},ev(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),C6=function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(r){sv(this._subscription,"next",r)},t.error=function(r){sv(this._subscription,"error",r)},t.complete=function(){sv(this._subscription,"complete")},ev(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),le=function(){function e(n){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof n)throw new TypeError("Observable initializer must be a function");this._subscriber=n}var t=e.prototype;return t.subscribe=function(r){return("object"!=typeof r||null===r)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new T6(r,this._subscriber)},t.forEach=function(r){var o=this;return new Promise(function(i,s){if("function"==typeof r)var c=o.subscribe({next:function(u){try{r(u,a)}catch(l){s(l),c.unsubscribe()}},error:s,complete:i});else s(new TypeError(r+" is not a function"));function a(){c.unsubscribe(),i()}})},t.map=function(r){var o=this;if("function"!=typeof r)throw new TypeError(r+" is not a function");return new(za(this))(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("function"!=typeof r)throw new TypeError(r+" is not a function");return new(za(this))(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("function"!=typeof r)throw new TypeError(r+" is not a function");var i=za(this),s=arguments.length>1,a=!1,u=arguments[1];return new i(function(l){return o.subscribe({next:function(d){var h=!a;if(a=!0,!h||s)try{u=r(u,d)}catch(f){return l.error(f)}else u=d},error:function(d){l.error(d)},complete:function(){if(!a&&!s)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(u),l.complete()}})})},t.concat=function(){for(var r=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];var a=za(this);return new a(function(c){var u,l=0;return function d(h){u=h.subscribe({next:function(f){c.next(f)},error:function(f){c.error(f)},complete:function(){l===i.length?(u=void 0,c.complete()):d(a.from(i[l++]))}})}(r),function(){u&&(u.unsubscribe(),u=void 0)}})},t.flatMap=function(r){var o=this;if("function"!=typeof r)throw new TypeError(r+" is not a function");var i=za(this);return new i(function(s){var a=[],c=o.subscribe({next:function(l){if(r)try{l=r(l)}catch(h){return s.error(h)}var d=i.from(l).subscribe({next:function(h){s.next(h)},error:function(h){s.error(h)},complete:function(){var h=a.indexOf(d);h>=0&&a.splice(h,1),u()}});a.push(d)},error:function(l){s.error(l)},complete:function(){u()}});function u(){c.closed&&0===a.length&&s.complete()}return function(){a.forEach(function(l){return l.unsubscribe()}),c.unsubscribe()}})},t[ov]=function(){return this},e.from=function(r){var o="function"==typeof this?this:e;if(null==r)throw new TypeError(r+" is not an object");var i=cd(r,ov);if(i){var s=i.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function w6(e){return e instanceof le}(s)&&s.constructor===o?s:new o(function(a){return s.subscribe(a)})}if(nv("iterator")&&(i=cd(r,D6)))return new o(function(a){ud(function(){if(!a.closed){for(var u,c=function b6(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=function E6(e,t){if(e){if("string"==typeof e)return nN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nN(e,t)}}(e))||t&&e&&"number"==typeof e.length){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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(r));!(u=c()).done;)if(a.next(u.value),a.closed)return;a.complete()}})});if(Array.isArray(r))return new o(function(a){ud(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];return new("function"==typeof this?this:e)(function(a){ud(function(){if(!a.closed){for(var c=0;c<o.length;++c)if(a.next(o[c]),a.closed)return;a.complete()}})})},ev(e,null,[{key:oN,get:function(){return this}}]),e}();function Le(e){return null!==e&&"object"==typeof e}function M6(e,t){var n=t,r=[];return e.definitions.forEach(function(i){if("OperationDefinition"===i.kind)throw mt(72,i.operation,i.name?" named '".concat(i.name.value,"'"):"");"FragmentDefinition"===i.kind&&r.push(i)}),typeof n>"u"&&(q(1===r.length,73,r.length),n=r[0].name.value),b(b({},e),{definitions:zt([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function ld(e){void 0===e&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function dd(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return q(r,74,n),r||null;default:return null}}function av(){}tv()&&Object.defineProperty(le,Symbol("extensions"),{value:{symbol:ov,hostReportError:Gi},configurable:!0});const N6=av,A6=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},k6=typeof WeakMap<"u"?WeakMap:Map,x6=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:av,unregister:av}};class fd{constructor(t=1/0,n=N6){this.max=t,this.dispose=n,this.map=new k6,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let o=0;o<10024;o++){const i=r.next().value;if(!i)break;this.unfinalizedNodes.delete(i);const s=i.key;delete i.key,i.keyRef=new A6(s),this.registry.register(s,i,i)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new x6(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{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--;const 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){const n=this.map.get(t);return!!n&&(this.deleteNode(n),!0)}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function F6(){}class cv{constructor(t=1/0,n=F6){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){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{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){const 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)}}var uv=new WeakSet;function aN(e){e.size<=(e.max||-1)||uv.has(e)||(uv.add(e),setTimeout(function(){e.clean(),uv.delete(e)},100))}var cN=function(e,t){var n=new fd(e,t);return n.set=function(r,o){var i=fd.prototype.set.call(this,r,o);return aN(this),i},n},O6=function(e,t){var n=new cv(e,t);return n.set=function(r,o){var i=cv.prototype.set.call(this,r,o);return aN(this),i},n},jn=b({},Ym[Symbol.for("apollo.cacheSize")]),Io={};function uN(e,t){Io[e]=t}var L6=!1!==globalThis.__DEV__?function B6(){var e,t,n,r,o;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({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}).map(function(t){var n=t[0];return[n,jn[n]||t[1]]})),sizes:b({print:null===(e=Io.print)||void 0===e?void 0:e.call(Io),parser:null===(t=Io.parser)||void 0===t?void 0:t.call(Io),canonicalStringify:null===(n=Io.canonicalStringify)||void 0===n?void 0:n.call(Io),links:dv(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:fN(this.queryManager.documentTransform)}},null===(o=(r=this.cache).getMemoryInternals)||void 0===o?void 0:o.call(r))}}:void 0,j6=!1!==globalThis.__DEV__?function H6(){var e=this.config.fragments;return b(b({},lN.apply(this)),{addTypenameDocumentTransform:fN(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:_r(this.storeReader.executeSelectionSet),executeSubSelectedArray:_r(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:_r(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:_r(e?.findFragmentSpreads),lookup:_r(e?.lookup),transform:_r(e?.transform)}})}:void 0,V6=!1!==globalThis.__DEV__?lN:void 0;function lN(){return{cache:{fragmentQueryDocuments:_r(this.getFragmentDoc)}}}function _r(e){return function $6(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function dN(e){return null!=e}function fN(e){return lv(e).map(function(t){return{cache:t}})}function lv(e){return e?zt(zt([_r(e?.performWork)],lv(e?.left),!0),lv(e?.right),!0).filter(dN):[]}function dv(e){var t;return e?zt(zt([null===(t=e?.getMemoryInternals)||void 0===t?void 0:t.call(e)],dv(e?.left),!0),dv(e?.right),!0).filter(dN):[]}var Wi,br=Object.assign(function(t){return JSON.stringify(t,q6)},{reset:function(){Wi=new O6(jn.canonicalStringify||1e3)}});function q6(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(z6))return t;var o=JSON.stringify(r),i=Wi.get(o);if(!i){r.sort();var s=JSON.stringify(r);i=Wi.get(s)||r,Wi.set(o,i),Wi.set(s,i)}var a=Object.create(n);return i.forEach(function(c){a[c]=t[c]}),a}}return t}function z6(e,t,n){return 0===t||n[t-1]<=e}function Qi(e){return{__ref:String(e)}}function ce(e){return!(!e||"object"!=typeof e||"string"!=typeof e.__ref)}function Zi(e,t,n,r){if(function Z6(e){return"IntValue"===e.kind}(n)||function Y6(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function Q6(e){return"BooleanValue"===e.kind}(n)||function W6(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function X6(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map(function(s){return Zi(o,s.name,s.value,r)}),e[t.value]=o}else if(function K6(e){return"Variable"===e.kind}(n))e[t.value]=(r||{})[n.name.value];else if(function J6(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(s){var a={};return Zi(a,t,s,r),a[t.value]});else if(function e4(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function t4(e){return"NullValue"===e.kind}(n))throw mt(83,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&uN("canonicalStringify",function(){return Wi.size}),br.reset();var r4=["connection","include","skip","client","rest","export","nonreactive"],Ga=br,hN=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(Ga(o),")")}return n.connection.key}var i=e;if(t){var s=Ga(t);i+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){-1===r4.indexOf(a)&&(n[a]&&Object.keys(n[a]).length?i+="@".concat(a,"(").concat(Ga(n[a]),")"):i+="@".concat(a))}),i},{setStringify:function(e){var t=Ga;return Ga=e,t}});function hd(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){return Zi(n,r.name,r.value,t)}),n}return null}function Er(e){return e.alias?e.alias.value:e.name.value}function fv(e,t,n){for(var r,o=0,i=t.selections;o<i.length;o++)if(Dr(s=i[o])){if("__typename"===s.name.value)return e[Er(s)]}else r?r.push(s):r=[s];if("string"==typeof e.__typename)return e.__typename;if(r)for(var a=0,c=r;a<c.length;a++){var s,u=fv(e,dd(s=c[a],n).selectionSet,n);if("string"==typeof u)return u}}function Dr(e){return"Field"===e.kind}function Wa(e){q(e&&"Document"===e.kind,75);var t=e.definitions.filter(function(n){return"FragmentDefinition"!==n.kind}).map(function(n){if("OperationDefinition"!==n.kind)throw mt(76,n.kind);return n});return q(t.length<=1,77,t.length),e}function Qa(e){return Wa(e),e.definitions.filter(function(t){return"OperationDefinition"===t.kind})[0]}function hv(e){return e.definitions.filter(function(t){return"OperationDefinition"===t.kind&&!!t.name}).map(function(t){return t.name.value})[0]||null}function pd(e){return e.definitions.filter(function(t){return"FragmentDefinition"===t.kind})}function pN(e){var t=Qa(e);return q(t&&"query"===t.operation,78),t}function Za(e){Wa(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var i=o.operation;if("query"===i||"mutation"===i||"subscription"===i)return o}"FragmentDefinition"===o.kind&&!t&&(t=o)}if(t)return t;throw mt(82)}function pv(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(r){r.defaultValue&&Zi(t,r.variable.name,r.defaultValue)}),t}function gN(e,t){return t?t(e):le.of()}function Ya(e){return"function"==typeof e?new wr(e):e}function gd(e){return e.request.length<=1}var wr=function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return le.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(Ya).reduce(function(n,r){return n.concat(r)})},e.split=function(t,n,r){var s,o=Ya(n),i=Ya(r||new e(gN));return s=gd(o)&&gd(i)?new e(function(a){return t(a)?o.request(a)||le.of():i.request(a)||le.of()}):new e(function(a,c){return t(a)?o.request(a,c)||le.of():i.request(a,c)||le.of()}),Object.assign(s,{left:o,right:i})},e.execute=function(t,n){return t.request(function S6(e,t){var n=b({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(i){n=b(b({},n),"function"==typeof i?i(n):i)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return b({},n)}}),t}(n.context,function s4(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?hv(t.query)||void 0:""),t}(function a4(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 mt(43,o)}return e}(n))))||le.of()},e.concat=function(t,n){var r=Ya(t);if(gd(r))return!1!==globalThis.__DEV__&&q.warn(35,r),r;var i,o=Ya(n);return i=gd(o)?new e(function(s){return r.request(s,function(a){return o.request(a)||le.of()})||le.of()}):new e(function(s,a){return r.request(s,function(c){return o.request(c,a)||le.of()})||le.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(gN)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,n){throw mt(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}(),gv=wr.execute;function md(e,t){if(!e)throw new Error(t)}function mv(e){return vd(e,[])}function vd(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function u4(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function l4(e){return"function"==typeof e.toJSON}(e)){const r=e.toJSON();if(r!==e)return"string"==typeof r?r:vd(r,n)}else if(Array.isArray(e))return function f4(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let i=0;i<n;++i)o.push(vd(e[i],t));return 1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}(e,n);return function d4(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+function h4(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(([o,i])=>o+": "+vd(i,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class p4{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}}}class vN{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}}}const yN={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"]},g4=new Set(Object.keys(yN));function _N(e){const t=e?.kind;return"string"==typeof t&&g4.has(t)}var Ka=function(e){return e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription",e}(Ka||{}),O=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}(O||{});const To=Object.freeze({});function Vn(e,t,n=yN){const r=new Map;for(const v of Object.values(O))r.set(v,vv(t,v));let o,l,d,i=Array.isArray(e),s=[e],a=-1,c=[],u=e;const h=[],f=[];do{a++;const v=a===s.length,y=v&&0!==c.length;if(v){if(l=0===f.length?void 0:h[h.length-1],u=d,d=f.pop(),y)if(i){u=u.slice();let I=0;for(const[w,N]of c){const F=w-I;null===N?(u.splice(F,1),I++):u[F]=N}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[I,w]of c)u[I]=w}a=o.index,s=o.keys,c=o.edits,i=o.inArray,o=o.prev}else if(d){if(l=i?a:s[a],u=d[l],null==u)continue;h.push(l)}let _;if(!Array.isArray(u)){var p,g;_N(u)||md(!1,`Invalid AST Node: ${mv(u)}.`);const I=v?null===(p=r.get(u.kind))||void 0===p?void 0:p.leave:null===(g=r.get(u.kind))||void 0===g?void 0:g.enter;if(_=I?.call(t,u,l,d,h,f),_===To)break;if(!1===_){if(!v){h.pop();continue}}else if(void 0!==_&&(c.push([l,_]),!v)){if(!_N(_)){h.pop();continue}u=_}}var m;void 0===_&&y&&c.push([l,u]),v?h.pop():(o={inArray:i,index:a,keys:s,edits:c,prev:o},i=Array.isArray(u),s=i?u:null!==(m=n[u.kind])&&void 0!==m?m:[],a=-1,c=[],d&&f.push(d),d=u)}while(void 0!==o);return 0!==c.length?c[c.length-1][1]:e}function vv(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Xa(e,t){var n=e.directives;return!n||!n.length||function b4(e){var t=[];return e&&e.length&&e.forEach(function(n){if(function _4(e){var t=e.name.value;return"skip"===t||"include"===t}(n)){var r=n.arguments,o=n.name.value;q(r&&1===r.length,69,o);var i=r[0];q(i.name&&"if"===i.name.value,70,o);var s=i.value;q(s&&("Variable"===s.kind||"BooleanValue"===s.kind),71,o),t.push({directive:n,ifArgument:i})}}),t}(n).every(function(r){var o=r.directive,i=r.ifArgument,s=!1;return"Variable"===i.value.kind?q(void 0!==(s=t&&t[i.value.name.value]),68,o.name.value):s=i.value.value,"skip"===o.name.value?!s:s})}function Co(e,t,n){var r=new Set(e),o=r.size;return Vn(t,{Directive:function(i){if(r.delete(i.name.value)&&(!n||!r.size))return To}}),n?!r.size:r.size<o}function y4(e){return e&&Co(["client","export"],e,!0)}var yv=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var r=mt(39,t,o.message);throw r.parseError=o,r}return n},bN="ReactNative"==rn(function(){return navigator.product}),Yi="function"==typeof WeakMap&&!(bN&&!global.HermesInternal),EN="function"==typeof WeakSet,DN="function"==typeof Symbol&&"function"==typeof Symbol.for,yd=DN&&Symbol.asyncIterator;function wN(e){var t={next:function(){return e.read()}};return yd&&(t[Symbol.asyncIterator]=function(){return this}),t}function R4(e){var t=e;if(function S4(e){return!!e.body}(e)&&(t=e.body),function N4(e){return!(!yd||!e[Symbol.asyncIterator])}(t))return function I4(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(t);if(function M4(e){return!!e.getReader}(t))return wN(t.getReader());if(function A4(e){return!!e.stream}(t))return wN(t.stream().getReader());if(function k4(e){return!!e.arrayBuffer}(t))return function C4(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 yd&&(n[Symbol.asyncIterator]=function(){return this}),n}(t.arrayBuffer());if(function x4(e){return!!e.pipe}(t))return function T4(e){var t=null,n=null,r=!1,o=[],i=[];function s(d){if(!n){if(i.length){var h=i.shift();if(Array.isArray(h)&&h[0])return h[0]({value:d,done:!1})}o.push(d)}}function a(d){n=d,i.slice().forEach(function(f){f[1](d)}),!t||t()}function c(){r=!0,i.slice().forEach(function(h){h[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);var l={next:function(){return function u(){return new Promise(function(d,h){return n?h(n):o.length?d({value:o.shift(),done:!1}):r?d({value:void 0,done:!0}):void i.push([d,h])})}()}};return yd&&(l[Symbol.asyncIterator]=function(){return this}),l}(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}rn(function(){return window.document.createElement}),rn(function(){return navigator.userAgent.indexOf("jsdom")>=0});var IN=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},_v=Symbol(),Ki=function(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||function(e){var t=zt(zt(zt([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return Le(n)&&n.message||"Error message not found."}).join("\n")}(u),u.extraInfo=c,u.__proto__=t.prototype,u}return nn(t,e),t}(Error),je=Array.isArray;function vn(e){return Array.isArray(e)&&e.length>0}var L4=Object.prototype.hasOwnProperty;function TN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _d(e)}function _d(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Ir,o=1;o<n;++o)t=r.merge(t,e[o]);return t}var j4=function(e,t,n){return this.merge(e[n],t[n])},Ir=function(){function e(t){void 0===t&&(t=j4),this.reconciler=t,this.isObject=Le,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 Le(n)&&Le(t)?(Object.keys(n).forEach(function(s){if(L4.call(t,s)){var a=t[s];if(n[s]!==a){var c=r.reconciler.apply(r,zt([t,n,s],o,!1));c!==a&&((t=r.shallowCopyForMerge(t))[s]=c)}}else(t=r.shallowCopyForMerge(t))[s]=n[s]}),t):n},e.prototype.shallowCopyForMerge=function(t){return Le(t)&&(this.pastCopies.has(t)||(t=Array.isArray(t)?t.slice(0):b({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e}();function Xi(e){return"incremental"in e}function B4(e){return Le(e)&&"payload"in e}function CN(e,t){var n=e,r=new Ir;return Xi(t)&&vn(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],l=isNaN(+c)?{}:[];l[c]=i,i=l}n=r.merge(n,i)}),n}var SN=Object.prototype.hasOwnProperty;function $4(e){var t={};return e.split("\n").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 MN(e,t){e.status>=300&&IN(e,function(){try{return JSON.parse(t)}catch{return t}}(),"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 bv(e){return 9===e||32===e}function Ja(e){return e>=48&&e<=57}function NN(e){return e>=97&&e<=122||e>=65&&e<=90}function AN(e){return NN(e)||95===e}function W4(e){return NN(e)||Ja(e)||95===e}function Q4(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let s=0;s<e.length;++s){var i;const a=e[s],c=Z4(a);c!==a.length&&(r=null!==(i=r)&&void 0!==i?i:s,o=s,0!==s&&c<n&&(n=c))}return e.map((s,a)=>0===a?s:s.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,o+1)}function Z4(e){let t=0;for(;t<e.length&&bv(e.charCodeAt(t));)++t;return t}const X4=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function J4(e){return e5[e.charCodeAt(0)]}const e5=["\\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"];function bd(e){return Vn(e,n5)}const n5={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>P(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=ee("(",P(e.variableDefinitions,", "),")"),n=P([e.operation,P([e.name,t]),P(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+ee(" = ",n)+ee(" ",P(r," "))},SelectionSet:{leave:({selections:e})=>on(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const i=ee("",e,": ")+t;let s=i+ee("(",P(n,", "),")");return s.length>80&&(s=i+ee("(\n",Ed(P(n,"\n")),"\n)")),P([s,P(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ee(" ",P(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>P(["...",ee("on ",e),P(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${ee("(",P(n,", "),")")} on ${t} ${ee("",P(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function Y4(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,i=r.length>1&&r.slice(1).every(f=>0===f.length||bv(f.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=a||c,l=!(null!=t&&t.minimize)&&(!o||e.length>70||u||i||s);let d="";const h=o&&bv(e.charCodeAt(0));return(l&&!h||i)&&(d+="\n"),d+=n,(l||u)&&(d+="\n"),'"""'+d+'"""'}(e):function K4(e){return`"${e.replace(X4,J4)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+P(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+P(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ee("(",P(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>ee("",e,"\n")+P(["schema",P(t," "),on(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>ee("",e,"\n")+P(["scalar",t,P(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>ee("",e,"\n")+P(["type",t,ee("implements ",P(n," & ")),P(r," "),on(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>ee("",e,"\n")+t+(kN(n)?ee("(\n",Ed(P(n,"\n")),"\n)"):ee("(",P(n,", "),")"))+": "+r+ee(" ",P(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>ee("",e,"\n")+P([t+": "+n,ee("= ",r),P(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>ee("",e,"\n")+P(["interface",t,ee("implements ",P(n," & ")),P(r," "),on(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>ee("",e,"\n")+P(["union",t,P(n," "),ee("= ",P(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>ee("",e,"\n")+P(["enum",t,P(n," "),on(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>ee("",e,"\n")+P([t,P(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>ee("",e,"\n")+P(["input",t,P(n," "),on(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>ee("",e,"\n")+"directive @"+t+(kN(n)?ee("(\n",Ed(P(n,"\n")),"\n)"):ee("(",P(n,", "),")"))+(r?" repeatable":"")+" on "+P(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>P(["extend schema",P(e," "),on(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>P(["extend scalar",e,P(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>P(["extend type",e,ee("implements ",P(t," & ")),P(n," "),on(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>P(["extend interface",e,ee("implements ",P(t," & ")),P(n," "),on(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>P(["extend union",e,P(t," "),ee("= ",P(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>P(["extend enum",e,P(t," "),on(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>P(["extend input",e,P(t," "),on(n)]," ")}};function P(e,t=""){var n;return null!==(n=e?.filter(r=>r).join(t))&&void 0!==n?n:""}function on(e){return ee("{\n",Ed(P(e,"\n")),"\n}")}function ee(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ed(e){return ee("  ",e.replace(/\n/g,"\n  "))}function kN(e){var t;return null!==(t=e?.some(n=>n.includes("\n")))&&void 0!==t&&t}var ec,Dd=Object.assign(function(e){var t=ec.get(e);return t||(t=bd(e),ec.set(e,t)),t},{reset:function(){ec=new cN(jn.print||2e3)}});Dd.reset(),!1!==globalThis.__DEV__&&uN("print",function(){return ec?ec.size:0});var a5={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},xN=function(e,t){return t(e)};function Ev(e){return new le(function(t){t.error(e)})}var PN={kind:O.FIELD,name:{kind:O.NAME,value:"__typename"}};function LN(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===O.FRAGMENT_SPREAD&&LN(t[n.name.value],t)})}function Dv(e){return LN(Qa(e)||function i4(e){q("Document"===e.kind,79),q(e.definitions.length<=1,80);var t=e.definitions[0];return q("FragmentDefinition"===t.kind,81),t}(e),ld(pd(e)))?null:e}function VN(e){var t=new Map;return function(r){void 0===r&&(r=e);var o=t.get(r);return o||t.set(r,o={variables:new Set,fragmentSpreads:new Set}),o}}function wv(e,t){Wa(t);for(var n=VN(""),r=VN(""),o=function(v){for(var y=0,_=void 0;y<v.length&&(_=v[y]);++y)if(!je(_)){if(_.kind===O.OPERATION_DEFINITION)return n(_.name&&_.name.value);if(_.kind===O.FRAGMENT_DEFINITION)return r(_.name.value)}return!1!==globalThis.__DEV__&&q.error(84),null},i=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===O.OPERATION_DEFINITION&&++i;var a=function jN(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}}(e),c=function(v){return vn(v)&&v.map(a).some(function(y){return y&&y.remove})},u=new Map,l=!1,d={enter:function(v){if(c(v.directives))return l=!0,null}},h=Vn(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,y,_,I,w){var N=o(w);N&&N.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,y,_,I,w){if(c(v.directives))return l=!0,null;var N=o(w);N&&N.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,y,_,I){u.set(JSON.stringify(I),v)},leave:function(v,y,_,I){return v===u.get(JSON.stringify(I))?v:i>0&&v.selectionSet.selections.every(function(N){return N.kind===O.FIELD&&"__typename"===N.name.value})?(r(v.name.value).removed=!0,l=!0,null):void 0}},Directive:{leave:function(v){if(a(v))return l=!0,null}}});if(!l)return t;var f=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(y){f(r(y)).transitiveVars.forEach(function(_){v.transitiveVars.add(_)})})),v},p=new Set;h.definitions.forEach(function(v){v.kind===O.OPERATION_DEFINITION?f(n(v.name&&v.name.value)).fragmentSpreads.forEach(function(y){p.add(y)}):v.kind===O.FRAGMENT_DEFINITION&&0===i&&!r(v.name.value).removed&&p.add(v.name.value)}),p.forEach(function(v){f(r(v)).fragmentSpreads.forEach(function(y){p.add(y)})});var m={enter:function(v){if(function(v){return!(p.has(v)&&!r(v).removed)}(v.name.value))return null}};return Dv(Vn(h,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var y=f(n(v.name&&v.name.value)).transitiveVars;if(y.size<v.variableDefinitions.length)return b(b({},v),{variableDefinitions:v.variableDefinitions.filter(function(_){return y.has(_.variable.name.value)})})}}}}))}var Iv=Object.assign(function(e){return Vn(e,{SelectionSet:{enter:function(t,n,r){if(!r||r.kind!==O.OPERATION_DEFINITION){var o=t.selections;if(o&&!o.some(function(a){return Dr(a)&&("__typename"===a.name.value||0===a.name.value.lastIndexOf("__",0))})){var s=r;if(!(Dr(s)&&s.directives&&s.directives.some(function(a){return"export"===a.name.value})))return b(b({},t),{selections:zt(zt([],o,!0),[PN],!1)})}}}}})},{added:function(e){return e===PN}});function y5(e){return"query"===Za(e).operation?e:Vn(e,{OperationDefinition:{enter:function(o){return b(b({},o),{operation:"query"})}}})}function UN(e){return Wa(e),wv([{test:function(n){return"client"===n.name.value},remove:!0}],e)}var BN=rn(function(){return fetch}),_5=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,o=e.print,i=void 0===o?xN:o,s=e.includeExtensions,a=e.preserveHeaderCase,c=e.useGETForQueries,u=e.includeUnusedVariables,l=void 0!==u&&u,d=On(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&typeof fetch>"u")throw mt(37)}(r||BN);var h={http:{includeExtensions:s,preserveHeaderCase:a},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new wr(function(f){var p=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(f,n),g=f.getContext(),m={};if(g.clientAwareness){var v=g.clientAwareness,y=v.name,_=v.version;y&&(m["apollographql-client-name"]=y),_&&(m["apollographql-client-version"]=_)}var I=b(b({},m),g.headers),w={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:I};if(Co(["client"],f.query)){var N=UN(f.query);if(!N)return Ev(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`."));f.query=N}var De,F=function RN(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={},i={};n.forEach(function(d){o=b(b(b({},o),d.options),{headers:b(b({},o.headers),d.headers)}),d.credentials&&(o.credentials=d.credentials),i=b(b({},i),d.http)}),o.headers&&(o.headers=function c5(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}(o.headers,i.preserveHeaderCase));var u=e.query,l={operationName:e.operationName,variables:e.variables};return i.includeExtensions&&(l.extensions=e.extensions),i.includeQuery&&(l.query=t(u,Dd)),{options:o,body:l}}(f,i,a5,h,w),G=F.options,ne=F.body;ne.variables&&!l&&(ne.variables=function l5(e,t){var n=b({},e),r=new Set(Object.keys(e));return Vn(t,{Variable:function(o,i,s){s&&"VariableDefinition"!==s.kind&&r.delete(o.name.value)}}),r.forEach(function(o){delete n[o]}),n}(ne.variables,f.query)),!G.signal&&typeof AbortController<"u"&&(De=new AbortController,G.signal=De.signal);var Wt,ct="OperationDefinition"===(Wt=Za(f.query)).kind&&"subscription"===Wt.operation,xr=Co(["defer"],f.query);if(c&&!f.query.definitions.some(function(Wt){return"OperationDefinition"===Wt.kind&&"mutation"===Wt.operation})&&(G.method="GET"),xr||ct){G.headers=G.headers||{};var Ay="multipart/mixed;";ct&&xr&&!1!==globalThis.__DEV__&&q.warn(38),ct?Ay+="boundary=graphql;subscriptionSpec=1.0,application/json":xr&&(Ay+="deferSpec=20220824,application/json"),G.headers.accept=Ay}if("GET"===G.method){var tx=function u5(e,t){var n=[],r=function(d,h){n.push("".concat(d,"=").concat(encodeURIComponent(h)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=yv(t.variables,"Variables map")}catch(d){return{parseError:d}}r("variables",o)}if(t.extensions){var i=void 0;try{i=yv(t.extensions,"Extensions map")}catch(d){return{parseError:d}}r("extensions",i)}var s="",a=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),a=e.substr(0,c));var u=-1===a.indexOf("?")?"?":"&";return{newURI:a+u+n.join("&")+s}}(p,ne),ZJ=tx.newURI,nx=tx.parseError;if(nx)return Ev(nx);p=ZJ}else try{G.body=yv(ne,"Payload")}catch(Wt){return Ev(Wt)}return new le(function(Wt){var YJ=r||rn(function(){return fetch})||BN,rx=Wt.next.bind(Wt);return YJ(p,G).then(function(ls){var ky;f.setContext({response:ls});var ox=null===(ky=ls.headers)||void 0===ky?void 0:ky.get("content-type");return null!==ox&&/^multipart\/mixed/i.test(ox)?function H4(e,t){return Pn(this,void 0,void 0,function(){var n,r,o,i,s,a,c,u,l,d,h,f,p,g,m,v,y,_,I,w,N,F,G,ne;return Ln(this,function(De){switch(De.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=null===(ne=e.headers)||void 0===ne?void 0:ne.get("content-type"),o="boundary=",i=r?.includes(o)?r?.substring(r?.indexOf(o)+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(i),a="",c=R4(e),u=!0,De.label=1;case 1:return u?[4,c.next()]:[3,3];case 2:for(l=De.sent(),h=l.done,f="string"==typeof(d=l.value)?d:n.decode(d),p=a.length-s.length+1,u=!h,g=(a+=f).indexOf(s,p);g>-1;){if(m=void 0,F=[a.slice(0,g),a.slice(g+s.length)],a=F[1],v=(m=F[0]).indexOf("\r\n\r\n"),y=$4(m.slice(0,v)),(_=y["content-type"])&&-1===_.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(I=m.slice(v))if(w=MN(e,I),Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if(B4(w)){if(N={},"payload"in w){if(1===Object.keys(w).length&&null===w.payload)return[2];N=b({},w.payload)}"errors"in w&&(N=b(b({},N),{extensions:b(b({},"extensions"in N?N.extensions:null),(G={},G[_v]=w.errors,G))})),t(N)}else t(w);else if(1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext)return[2];g=a.indexOf(s)}return[3,1];case 3:return[2]}})})}(ls,rx):function z4(e){return function(t){return t.text().then(function(n){return MN(t,n)}).then(function(n){return!Array.isArray(n)&&!SN.call(n,"data")&&!SN.call(n,"errors")&&IN(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}(f)(ls).then(rx)}).then(function(){De=void 0,Wt.complete()}).catch(function(ls){De=void 0,function q4(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(ls,Wt)}),function(){De&&De.abort()}})})},HN=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,_5(n).request)||this;return r.options=n,r}return nn(t,e),t}(wr);const{toString:$N,hasOwnProperty:b5}=Object.prototype,qN=Function.prototype.toString,Tv=new Map;function Ce(e,t){try{return Cv(e,t)}finally{Tv.clear()}}const zN=Ce;function Cv(e,t){if(e===t)return!0;const n=$N.call(e);if(n!==$N.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(WN(e,t))return!0;const o=GN(e),i=GN(t),s=o.length;if(s!==i.length)return!1;for(let a=0;a<s;++a)if(!b5.call(t,o[a]))return!1;for(let a=0;a<s;++a){const c=o[a];if(!Cv(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(WN(e,t))return!0;const o=e.entries(),i="[object Map]"===n;for(;;){const s=o.next();if(s.done)break;const[a,c]=s.value;if(!t.has(a)||i&&!Cv(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-1===o}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const o=qN.call(e);return o===qN.call(t)&&!function w5(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(o,D5)}}return!1}function GN(e){return Object.keys(e).filter(E5,e)}function E5(e){return void 0!==this[e]}const D5="{ [native code] }";function WN(e,t){let n=Tv.get(e);if(n){if(n.has(t))return!0}else Tv.set(e,n=new Set);return n.add(t),!1}const I5=()=>Object.create(null),{forEach:T5,slice:QN}=Array.prototype,{hasOwnProperty:C5}=Object.prototype;class Un{constructor(t=!0,n=I5){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return T5.call(t,r=>n=n.getChildTrie(r)),C5.call(n,"data")?n.data:n.data=this.makeData(QN.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&r<o;++r){const 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){const r=t[0],o=this.mapFor(r,!1),i=o&&o.get(r);i&&(n=i.removeArray(QN.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){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new Un(this.weakness,this.makeData)),r}mapFor(t,n){return this.weakness&&function S5(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}let tt=null;const ZN={};let M5=1;function YN(e){try{return e()}catch{}}const Sv="@wry/context:Slot",KN=YN(()=>globalThis)||YN(()=>global)||Object.create(null),Mv=KN[Sv]||Array[Sv]||function(e){try{Object.defineProperty(KN,Sv,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",M5++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=tt;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===ZN)break;return t!==tt&&(tt.slots[this.id]=n),!0}return tt&&(tt.slots[this.id]=ZN),!1}getValue(){if(this.hasValue())return tt.slots[this.id]}withValue(t,n,r,o){const s=tt;tt={parent:s,slots:{__proto__:null,[this.id]:t}};try{return n.apply(o,r)}finally{tt=s}}static bind(t){const n=tt;return function(){const r=tt;try{return tt=n,t.apply(this,arguments)}finally{tt=r}}}static noContext(t,n,r){if(!tt)return t.apply(r,n);{const o=tt;try{return tt=null,t.apply(r,n)}finally{tt=o}}}}),tc=new Mv,{hasOwnProperty:x5}=Object.prototype,Av=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function wd(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const nc=[];function Ji(e,t){if(!e)throw new Error(t||"assertion failure")}function JN(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function eA(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function tA(e){return e.slice(0)}let F5=(()=>{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(1===this.value.length&&!Tr(this))return nA(this),this.value[0]}recompute(n){return Ji(!this.recomputing,"already recomputing"),nA(this),Tr(this)?function O5(e,t){return cA(e),tc.withValue(e,P5,[e,t]),function j5(e,t){if("function"==typeof e.subscribe)try{wd(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function L5(e){e.dirty=!1,!Tr(e)&&oA(e)}(e),eA(e.value)}(this,n):eA(this.value)}setDirty(){this.dirty||(this.dirty=!0,rA(this),wd(this))}dispose(){this.setDirty(),cA(this),kv(this,(n,r)=>{n.setDirty(),uA(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=nc.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&(Av(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),nc.push(this.deps),this.deps=null)}}return e.count=0,e})();function nA(e){const t=tc.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Tr(e)?iA(t,e):sA(t,e),t}function P5(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=tA(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!JN(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(o){e.value[1]=o}e.recomputing=!1}function Tr(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function rA(e){kv(e,iA)}function oA(e){kv(e,sA)}function kv(e,t){const n=e.parents.size;if(n){const r=Av(e.parents);for(let o=0;o<n;++o)t(r[o],e)}}function iA(e,t){Ji(e.childValues.has(t)),Ji(Tr(t));const n=!Tr(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=nc.pop()||new Set;e.dirtyChildren.add(t),n&&rA(e)}function sA(e,t){Ji(e.childValues.has(t)),Ji(!Tr(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,tA(t.value)):JN(n,t.value)||e.setDirty(),aA(e,t),!Tr(e)&&oA(e)}function aA(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(nc.length<100&&nc.push(n),e.dirtyChildren=null))}function cA(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{uA(e,n)}),e.forgetDeps(),Ji(null===e.dirtyChildren)}function uA(e,t){t.parents.delete(e),e.childValues.delete(t),aA(e,t)}const V5={setDirty:!0,dispose:!0,forget:!0};function lA(e){const t=new Map,n=e&&e.subscribe;function r(o){const i=tc.getValue();if(i){let s=t.get(o);s||t.set(o,s=new Set),i.dependOn(s),"function"==typeof n&&(wd(s),s.unsubscribe=n(o))}}return r.dirty=function(i,s){const a=t.get(i);if(a){const c=s&&x5.call(V5,s)?s:"setDirty";Av(a).forEach(u=>u[c]()),t.delete(i),wd(a)}},r}let dA;function U5(...e){return(dA||(dA=new Un("function"==typeof WeakMap))).lookupArray(e)}const xv=new Set;function rc(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=U5,normalizeResult:o,subscribe:i,cache:s=cv}=Object.create(null)){const a="function"==typeof s?new s(t,h=>h.dispose()):s,c=function(){const h=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===h)return e.apply(null,arguments);let f=a.get(h);f||(a.set(h,f=new F5(e)),f.normalizeResult=o,f.subscribe=i,f.forget=()=>a.delete(h));const p=f.recompute(Array.prototype.slice.call(arguments));return a.set(h,f),xv.add(a),tc.hasValue()||(xv.forEach(g=>g.clean()),xv.clear()),p};function u(h){const f=h&&a.get(h);f&&f.setDirty()}function l(h){const f=h&&a.get(h);if(f)return f.peek()}function d(h){return!!h&&a.delete(h)}return 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}),c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))},c.peekKey=l,c.peek=function(){return l(r.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function B5(e){return e}var fA=function(){function e(t,n){void 0===n&&(n=Object.create(null)),this.resultCache=EN?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=!1!==n.cache,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(B5,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(o){return(t(o)?n:r).transformDocument(o)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Un(Yi);this.performWork=rc(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var o=t.getCacheKey(r);if(o)return q(Array.isArray(o),67),n.lookupArray(o)},max:jn["documentTransform.cache"],cache:fd})}},e.prototype.performWork=function(t){return Wa(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}();function Rv(e,t,n){return new le(function(r){var o={then:function(c){return new Promise(function(u){return u(c())})}};function i(c,u){return function(l){if(c){var d=function(){return r.closed?0:c(l)};o=o.then(d,d).then(function(h){return r.next(h)},function(h){return r.error(h)})}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 Id(e){return vn(Fv(e))}function Fv(e){var t=vn(e.errors)?e.errors.slice(0):[];return Xi(e)&&vn(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function oc(e,t,n){var r=[];e.forEach(function(o){return o[t]&&r.push(o)}),r.forEach(function(o){return o[t](n)})}function hA(e){function t(n){Object.defineProperty(e,n,{value:le})}return DN&&Symbol.species&&t(Symbol.species),t("@@species"),e}function pA(e){return e&&"function"==typeof e.then}var es=function(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){null!==r.sub&&(r.latest=["next",o],r.notify("next",o),oc(r.observers,"next",o))},error:function(o){var i=r.sub;null!==i&&(i&&setTimeout(function(){return i.unsubscribe()}),r.sub=null,r.latest=["error",o],r.reject(o),r.notify("error",o),oc(r.observers,"error",o))},complete:function(){var i=r.sub,s=r.sources;if(null!==i){var c=(void 0===s?[]:s).shift();c?pA(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&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),oc(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(o){r.reject(o),r.sources=[],r.handlers.complete()},r.promise.catch(function(o){}),"function"==typeof n&&(n=[new le(n)]),pA(n)?n.then(function(o){return r.start(o)},r.handlers.error):r.start(n),r}return nn(t,e),t.prototype.start=function(n){void 0===this.sub&&(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]),null===this.sub&&"next"===r&&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}(le);function ts(){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];void 0!==i&&(n[o]=i)})}),n}hA(es);var H5=Object.prototype.toString;function gA(e){return Ov(e)}function Ov(e,t){switch(H5.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(o,i){n[i]=Ov(o,t)}),n;case"[object Object]":if((t=t||new Map).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]=Ov(e[o],t)}),r;default:return e}}function mA(e,t,n,r){var o=t.data,i=On(t,["data"]),s=n.data,a=On(n,["data"]);return zN(i,a)&&Td(Za(e).selectionSet,o,s,{fragmentMap:ld(pd(e)),variables:r})}function Td(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),!Xa(i,r.variables))||vA(i))return!0;if(Dr(i)){var s=Er(i),a=t&&t[s],c=n&&n[s],u=i.selectionSet;if(!u)return zN(a,c);var l=Array.isArray(a),d=Array.isArray(c);if(l!==d)return!1;if(l&&d){var h=a.length;if(c.length!==h)return!1;for(var f=0;f<h;++f)if(!Td(u,a[f],c[f],r))return!1;return!0}return Td(u,a,c,r)}var p=dd(i,r.fragmentMap);return p?!!vA(p)||Td(p.selectionSet,t,n,r):void 0})}function vA(e){return!!e.directives&&e.directives.some($5)}function $5(e){return"nonreactive"===e.name.value}var yA=Object.assign,q5=Object.hasOwnProperty,Pv=function(e){function t(n){var r=n.queryManager,o=n.queryInfo,i=n.options,s=e.call(this,function(m){try{var v=m._subscription._observer;v&&!v.error&&(v.error=z5)}catch{}var y=!s.observers.size;s.observers.add(m);var _=s.last;return _&&_.error?m.error&&m.error(_.error):_&&_.result&&m.next&&m.next(_.result),y&&s.reobserve().catch(function(){}),function(){s.observers.delete(m)&&!s.observers.size&&s.tearDownQuery()}})||this;s.observers=new Set,s.subscriptions=new Set,s.queryInfo=o,s.queryManager=r,s.waitForOwnResult=Lv(i.fetchPolicy),s.isTornDown=!1;var a=r.defaultOptions.watchQuery,u=(void 0===a?{}:a).fetchPolicy,l=void 0===u?"cache-first":u,d=i.fetchPolicy,h=void 0===d?l:d,f=i.initialFetchPolicy,p=void 0===f?"standby"===h?l:h:f;s.options=b(b({},i),{initialFetchPolicy:p,fetchPolicy:h}),s.queryId=o.queryId||r.generateQueryId();var g=Qa(s.query);return s.queryName=g&&g.name&&g.name.value,s}return nn(t,e),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){void 0===n&&(n=!0);var r=this.getLastResult(!0),o=this.queryInfo.networkStatus||r&&r.networkStatus||me.ready,i=b(b({},r),{loading:Ha(o),networkStatus:o}),s=this.options.fetchPolicy,a=void 0===s?"cache-first":s;if(!Lv(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),Ce(i.data,{})&&(i.data=void 0),c.complete?(delete i.partial,c.complete&&i.networkStatus===me.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=me.ready,i.loading=!1)):i.partial=!0,!1!==globalThis.__DEV__&&!c.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&bA(c.missing)}return n&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(n,r){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!mA(this.query,this.last.result,n,this.variables):!Ce(this.last.result,n))||r&&!Ce(this.last.variables,r)},t.prototype.getLast=function(n,r){var o=this.last;if(o&&o[n]&&(!r||Ce(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(o.fetchPolicy="cache-and-network"===i?i:"no-cache"===i?"no-cache":"network-only",!1!==globalThis.__DEV__&&n&&q5.call(n,"variables")){var s=pN(this.query),a=s.variableDefinitions;(!a||!a.some(function(c){return"variables"===c.variable.name.value}))&&!1!==globalThis.__DEV__&&q.warn(20,n,(null===(r=s.name)||void 0===r?void 0:r.value)||s)}return n&&!Ce(this.options.variables,n)&&(o.variables=this.options.variables=b(b({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(o,me.refetch)},t.prototype.fetchMore=function(n){var r=this,o=b(b({},n.query?n:b(b(b(b({},this.options),{query:this.options.query}),n),{variables:b(b({},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=me.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(i,o,me.fetchMore).then(function(u){return r.queryManager.removeQuery(i),s.networkStatus===me.fetchMore&&(s.networkStatus=a),r.queryManager.cache.batch({update:function(l){var d=n.updateQuery;d?l.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(h){return d(h,{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)||_A(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){return s(a,{subscriptionData:i,variables:c.variables})})},error:function(i){n.onError?n.onError(i):!1!==globalThis.__DEV__&&q.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=ts(this.options,n||{});yA(this.options,r)},t.prototype.setVariables=function(n){return Ce(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},me.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,i=n(r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{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=void 0===o?"cache-first":o,s=r.initialFetchPolicy,a=void 0===s?i:s;"standby"===i||(r.fetchPolicy="function"==typeof r.nextFetchPolicy?r.nextFetchPolicy(i,{reason:n,options:r,observable:this,initialFetchPolicy:a}):"variables-changed"===n?a: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 o=this.pollingInfo,i=this.options.pollInterval;if(!i||!this.hasObservers())return void(o&&(clearTimeout(o.timeout),delete this.pollingInfo));if(!o||o.interval!==i){q(i,22),(o||(this.pollingInfo={})).interval=i;var a=function(){var u,l;n.pollingInfo&&(Ha(n.queryInfo.networkStatus)||null!==(l=(u=n.options).skipPollAttempt)&&void 0!==l&&l.call(u)?c():n.reobserve({fetchPolicy:"no-cache"===n.options.initialFetchPolicy?"no-cache":"network-only"},me.poll).then(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){void 0===r&&(r=this.variables);var o=this.getLastError();return o&&this.last&&!Ce(r,this.last.variables)&&(o=void 0),this.last=b({result:this.queryManager.assumeImmutableResults?n:gA(n),variables:r},o?{error:o}:null)},t.prototype.reobserveAsConcast=function(n,r){var o=this;this.isTornDown=!1;var i=r===me.refetch||r===me.fetchMore||r===me.poll,s=this.options.variables,a=this.options.fetchPolicy,c=ts(this.options,n||{}),u=i?c:yA(this.options,c),l=this.transformDocument(u.query);this.lastQuery=l,i||(this.updatePolling(),n&&n.variables&&!Ce(n.variables,s)&&"standby"!==u.fetchPolicy&&u.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",u),void 0===r&&(r=me.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Lv(u.fetchPolicy));var d=function(){o.concast===p&&(o.waitForOwnResult=!1)},h=u.variables&&b({},u.variables),f=this.fetch(u,r,l),p=f.concast,m={next:function(v){Ce(o.variables,h)&&(d(),o.reportResult(v,h))},error:function(v){Ce(o.variables,h)&&(d(),o.reportError(v,h))}};return!i&&(f.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=m),p.addObserver(m),p},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)&&oc(this.observers,"next",n)},t.prototype.reportError=function(n,r){var o=b(b({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:me.error,loading:!1});this.updateLastResult(o,r),oc(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}(le);function _A(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(o,i){return this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(o,i):n}}):e.reobserve()}function z5(e){!1!==globalThis.__DEV__&&q.error(23,e.message,e.stack)}function bA(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&q.debug(24,e)}function Lv(e){return"network-only"===e||"no-cache"===e||"standby"===e}function EA(e){return e.kind===O.FIELD||e.kind===O.FRAGMENT_SPREAD||e.kind===O.INLINE_FRAGMENT}hA(Pv);var jv=new Mv,wA=new WeakMap;function ic(e){var t=wA.get(e);return t||wA.set(e,t={vars:new Set,dep:lA()}),t}function IA(e){ic(e).vars.forEach(function(t){return t.forgetCache(e)})}function J5(e){var t=new Set,n=new Set,r=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach(function(c){ic(c).dep.dirty(r),function e9(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(n);n.clear(),s.forEach(function(c){return c(e)})}}else{var a=jv.getValue();a&&(o(a),ic(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),ic(i).vars.add(r),r};return r.forgetCache=function(i){return t.delete(i)},r}var TA=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=TN(n.resolvers,r)}):this.resolvers=TN(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 Pn(this,arguments,void 0,function(n){var r=n.document,o=n.remoteResult,i=n.context,s=n.variables,a=n.onlyRunForcedResolvers,c=void 0!==a&&a;return Ln(this,function(u){return r?[2,this.resolveDocument(r,o.data,i,s,this.fragmentMatcher,c).then(function(l){return b(b({},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 Co(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return UN(t)},e.prototype.prepareContext=function(t){var n=this.cache;return b(b({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return Pn(this,arguments,void 0,function(n,r,o){return void 0===r&&(r={}),void 0===o&&(o={}),Ln(this,function(i){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(o),r).then(function(s){return b(b({},r),s.exportedVariables)})]:[2,b({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Vn(t,{Directive:{enter:function(r){if("client"===r.name.value&&r.arguments&&(n=r.arguments.some(function(o){return"always"===o.name.value&&"BooleanValue"===o.value.kind&&!0===o.value.value})))return To}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:y5(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return Pn(this,arguments,void 0,function(r,o,i,s,a,c){var u,l,d,h,f,p,g,m,v,y;return void 0===i&&(i={}),void 0===s&&(s={}),void 0===a&&(a=function(){return!0}),void 0===c&&(c=!1),Ln(this,function(I){return u=Za(r),l=pd(r),d=ld(l),h=this.collectSelectionsToResolve(u,d),p=(f=u.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",m=(g=this).cache,v=g.client,y={fragmentMap:d,context:b(b({},i),{cache:m,client:v}),variables:s,fragmentMatcher:a,defaultOperationType:p,exportedVariables:{},selectionsToResolve:h,onlyRunForcedResolvers:c},[2,this.resolveSelectionSet(u.selectionSet,!1,o,y).then(function(w){return{result:w,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,o){return Pn(this,void 0,void 0,function(){var i,s,a,c,u,l=this;return Ln(this,function(d){return i=o.fragmentMap,s=o.context,a=o.variables,c=[r],u=function(h){return Pn(l,void 0,void 0,function(){var f;return Ln(this,function(g){return(n||o.selectionsToResolve.has(h))&&Xa(h,a)?Dr(h)?[2,this.resolveField(h,n,r,o).then(function(m){var v;typeof m<"u"&&c.push(((v={})[Er(h)]=m,v))})]:(function o4(e){return"InlineFragment"===e.kind}(h)?f=h:q(f=i[h.name.value],18,h.name.value),f&&f.typeCondition&&o.fragmentMatcher(r,f.typeCondition.name.value,s)?[2,this.resolveSelectionSet(f.selectionSet,n,r,o).then(function(m){c.push(m)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(u)).then(function(){return _d(c)})]})})},e.prototype.resolveField=function(t,n,r,o){return Pn(this,void 0,void 0,function(){var i,s,a,c,u,l,d,h,f,p=this;return Ln(this,function(g){return r?(i=o.variables,s=t.name.value,a=Er(t),c=s!==a,u=r[a]||r[s],l=Promise.resolve(u),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(d=r.__typename||o.defaultOperationType,(h=this.resolvers&&this.resolvers[d])&&(f=h[c?s:a])&&(l=Promise.resolve(jv.withValue(this.cache,f,[r,hd(t,i),o.context,{field:t,fragmentMap:o.fragmentMap}])))),[2,l.then(function(m){var v,y;if(void 0===m&&(m=u),t.directives&&t.directives.forEach(function(I){"export"===I.name.value&&I.arguments&&I.arguments.forEach(function(w){"as"===w.name.value&&"StringValue"===w.value.kind&&(o.exportedVariables[w.value.value]=m)})}),!t.selectionSet||null==m)return m;var _=null!==(y=null===(v=t.directives)||void 0===v?void 0:v.some(function(I){return"client"===I.name.value}))&&void 0!==y&&y;return Array.isArray(m)?p.resolveSubSelectedArray(t,n||_,m,o):t.selectionSet?p.resolveSelectionSet(t.selectionSet,n||_,m,o):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,o){var i=this;return Promise.all(r.map(function(s){return null===s?null:Array.isArray(s)?i.resolveSubSelectedArray(t,n,s,o):t.selectionSet?i.resolveSelectionSet(t.selectionSet,n,s,o):void 0}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(s){return!Array.isArray(s)},o=this.selectionsToResolveCache;return function i(s){if(!o.has(s)){var a=new Set;o.set(s,a),Vn(s,{Directive:function(c,u,l,d,h){"client"===c.name.value&&h.forEach(function(f){r(f)&&EA(f)&&a.add(f)})},FragmentSpread:function(c,u,l,d,h){var f=n[c.name.value];q(f,19,c.name.value);var p=i(f);p.size>0&&(h.forEach(function(g){r(g)&&EA(g)&&a.add(g)}),a.add(c),p.forEach(function(g){a.add(g)}))}})}return o.get(s)}(t)},e}(),ns=new(Yi?WeakMap:Map);function Vv(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return ns.set(e,(ns.get(e)+1)%1e15),n.apply(this,arguments)})}function CA(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Uv=function(){function e(t,n){void 0===n&&(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;ns.has(r)||(ns.set(r,0),Vv(r,"evict"),Vv(r,"modify"),Vv(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||me.loading;return this.variables&&this.networkStatus!==me.loading&&!Ce(this.variables,t.variables)&&(n=me.setVariables),Ce(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(){CA(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&Ce(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)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 void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(n=this.observableQuery)||void 0===n?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var r,n=this,o=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&null!==(r=this.observableQuery)&&void 0!==r&&r.getLastError()||(this.updateLastDiff(t),!this.dirty&&!Ce(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(){n.getDiff().fromOptimisticTransaction?t.observe():_A(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;CA(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(Ha(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)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;void 0===t&&(t=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var o=b(b({},this.getDiffOptions(t)),{watcher:this,callback:function(i){return n.setDiff(i)}});(!this.lastWatch||!Ce(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===ns.get(this.cache)&&Ce(n,r.variables)&&Ce(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,o){var i=this,s=new Ir,a=vn(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&vn(t.incremental)){var c=CN(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,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):0!==o&&(Bv(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:1===o}),i.lastWrite={result:t,variables:r.variables,dmCount:ns.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(t.data=i.lastDiff.diff.result);var d=i.getDiffOptions(r.variables),h=l.diff(d);!i.stopped&&Ce(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(h,d),h.complete&&(t.data=h.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=me.ready},e.prototype.markError=function(t){return this.networkStatus=me.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function Bv(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Id(e);return!r&&n&&e.data&&(r=!0),r}var t9=Object.prototype.hasOwnProperty,SA=Object.create(null),n9=function(){function e(t){var n=t.cache,r=t.link,o=t.defaultOptions,i=t.documentTransform,s=t.queryDeduplication,a=void 0!==s&&s,c=t.onBroadcast,u=t.ssrMode,l=void 0!==u&&u,d=t.clientAwareness,h=void 0===d?{}:d,f=t.localState,p=t.assumeImmutableResults,g=void 0===p?!!n.assumeImmutableResults:p,m=t.defaultContext,v=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new cN(jn["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Un(!1);var y=new fA(function(_){return v.cache.transformDocument(_)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=o||Object.create(null),this.queryDeduplication=a,this.clientAwareness=h,this.localState=f||new TA({cache:n}),this.ssrMode=l,this.assumeImmutableResults=g,this.documentTransform=i?y.concat(i).concat(y):y,this.defaultContext=m||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(mt(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return Pn(this,arguments,void 0,function(n){var r,o,i,s,a,c,u,l=n.mutation,d=n.variables,h=n.optimisticResponse,f=n.updateQueries,p=n.refetchQueries,g=void 0===p?[]:p,m=n.awaitRefetchQueries,v=void 0!==m&&m,y=n.update,_=n.onQueryUpdated,I=n.fetchPolicy,w=void 0===I?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":I,N=n.errorPolicy,F=void 0===N?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.errorPolicy)||"none":N,G=n.keepRootFields,ne=n.context;return Ln(this,function(De){switch(De.label){case 0:return q(l,26),q("network-only"===w||"no-cache"===w,27),r=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),o=this.getDocumentInfo(l).hasClientExports,d=this.getVariables(l,d),o?[4,this.localState.addExportedVariables(l,d,ne)]:[3,2];case 1:d=De.sent(),De.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[r]={mutation:l,variables:d,loading:!0,error:null}),s=h&&this.markMutationOptimistic(h,{mutationId:r,document:l,variables:d,fetchPolicy:w,errorPolicy:F,context:ne,updateQueries:f,update:y,keepRootFields:G}),this.broadcastQueries(),a=this,[2,new Promise(function(Hn,us){return Rv(a.getObservableFromLink(l,b(b({},ne),{optimisticResponse:s?h:void 0}),d,!1),function(ct){if(Id(ct)&&"none"===F)throw new Ki({graphQLErrors:Fv(ct)});i&&(i.loading=!1,i.error=null);var xr=b({},ct);return"function"==typeof g&&(g=g(xr)),"ignore"===F&&Id(xr)&&delete xr.errors,a.markMutationResult({mutationId:r,result:xr,document:l,variables:d,fetchPolicy:w,errorPolicy:F,context:ne,update:y,updateQueries:f,awaitRefetchQueries:v,refetchQueries:g,removeOptimistic:s?r:void 0,onQueryUpdated:_,keepRootFields:G})}).subscribe({next:function(ct){a.broadcastQueries(),(!("hasNext"in ct)||!1===ct.hasNext)&&Hn(ct)},error:function(ct){i&&(i.loading=!1,i.error=ct),s&&a.cache.removeOptimistic(r),a.broadcastQueries(),us(ct instanceof Ki?ct:new Ki({networkError:ct}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;void 0===n&&(n=this.cache);var o=t.result,i=[],s="no-cache"===t.fetchPolicy;if(!s&&Bv(o,t.errorPolicy)){if(Xi(o)||i.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Xi(o)&&vn(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=CN(a.result,o)),typeof c<"u"&&(o.data=c,i.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var u=t.updateQueries;u&&this.queries.forEach(function(d,h){var f=d.observableQuery,p=f&&f.queryName;if(p&&t9.call(u,p)){var g=u[p],m=r.queries.get(h),v=m.document,y=m.variables,_=n.diff({query:v,variables:y,returnPartialData:!0,optimistic:!1}),I=_.result;if(_.complete&&I){var N=g(I,{mutationResult:o,queryName:v&&hv(v)||void 0,queryVariables:y});N&&i.push({result:N,dataId:"ROOT_QUERY",query:v,variables:y})}}})}if(i.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(d){s||i.forEach(function(g){return d.write(g)});var h=t.update,f=!function U4(e){return Xi(e)||function V4(e){return"hasNext"in e&&"data"in e}(e)}(o)||Xi(o)&&!o.hasNext;if(h){if(!s){var p=d.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});p.complete&&("incremental"in(o=b(b({},o),{data:p.result}))&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}f&&h(d,o,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&f&&d.modify({id:"ROOT_MUTATION",fields:function(g,m){return"__typename"===m.fieldName?g:m.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(d){return l.push(d)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(l).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(t,n){var r=this,o="function"==typeof t?t(n.variables,{IGNORE:SA}):t;return o!==SA&&(this.cache.recordOptimisticTransaction(function(i){try{r.markMutationResult(b(b({},n),{result:{data:o}}),i)}catch(s){!1!==globalThis.__DEV__&&q.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:y4(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:Co(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:wv([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:pv(Qa(t)),asQuery:b(b({},t),{definitions:t.definitions.map(function(o){return"OperationDefinition"===o.kind&&"query"!==o.operation?b(b({},o),{operation:"query"}):o})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return b(b({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);typeof(t=b(b({},t),{variables:this.getVariables(n,t.variables)})).notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new Uv(this),o=new Pv({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 void 0===n&&(n=this.generateQueryId()),q(t.query,28),q("Document"===t.query.kind,29),q(!t.returnPartialData,30),q(!t.pollInterval,31),this.fetchQuery(n,b(b({},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 void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(mt(32)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=me.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;void 0===t&&(t="active");var r=new Map,o=new Map,i=new Set;return Array.isArray(t)&&t.forEach(function(s){"string"==typeof s?o.set(s,!1):function G6(e){return Le(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?o.set(n.transform(s),!1):Le(s)&&s.query&&i.add(s)}),this.queries.forEach(function(s,a){var c=s.observableQuery,u=s.document;if(c){if("all"===t)return void r.set(a,c);var l=c.queryName;if("standby"===c.options.fetchPolicy||"active"===t&&!c.hasObservers())return;("active"===t||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=Km("legacyOneTimeQuery"),c=n.getQuery(a).init({document:s.query,variables:s.variables}),u=new Pv({queryManager:n,queryInfo:c,options:b(b({},s),{fetchPolicy:"network-only"})});q(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(s,a){s||!1!==globalThis.__DEV__&&q.warn("string"==typeof a?33:34,a)}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;void 0===t&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(o,i){var s=o.options.fetchPolicy;o.resetLastResults(),(t||"standby"!==s&&"cache-only"!==s)&&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=void 0===i?"none":i,a=t.variables,c=t.context,u=void 0===c?{}:c;r=this.transform(r),a=this.getVariables(r,a);var l=function(h){return n.getObservableFromLink(r,u,h).map(function(f){"no-cache"!==o&&(Bv(f,s)&&n.cache.write({query:r,result:f.data,dataId:"ROOT_SUBSCRIPTION",variables:h}),n.broadcastQueries());var p=Id(f),g=function F4(e){return!!e.extensions&&Array.isArray(e.extensions[_v])}(f);if(p||g){var m={};if(p&&(m.graphQLErrors=f.errors),g&&(m.protocolErrors=f.extensions[_v]),"none"===s||g)throw new Ki(m)}return"ignore"===s&&delete f.errors,f})};if(this.getDocumentInfo(r).hasClientExports){var d=this.localState.addExportedVariables(r,a,u).then(l);return new le(function(h){var f=null;return d.then(function(p){return f=p.subscribe(h)},h.error),function(){return f&&f.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 s,i=this;void 0===o&&(o=null!==(s=n?.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var a,c=this.getDocumentInfo(t),u=c.serverQuery,l=c.clientQuery;if(u){var h=this.inFlightLinkObservables,f=this.link,p={query:u,variables:r,operationName:hv(u)||void 0,context:this.prepareContext(b(b({},n),{forceFetch:!o}))};if(n=p.context,o){var g=Dd(u),m=br(r),v=h.lookup(g,m);if(!(a=v.observable)){var y=new es([gv(f,p)]);a=v.observable=y,y.beforeNext(function(){h.remove(g,m)})}}else a=new es([gv(f,p)])}else a=new es([le.of({data:{}})]),n=this.prepareContext(n);return l&&(a=Rv(a,function(_){return i.localState.runResolvers({document:l,remoteResult:_,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 Rv(this.getObservableFromLink(i,r.context,r.variables),function(s){var a=Fv(s),c=a.length>0;if(o>=t.lastRequestId){if(c&&"none"===r.errorPolicy)throw t.markError(new Ki({graphQLErrors:a}));t.markResult(s,i,r,n),t.markReady()}var u={data:s.data,loading:!1,networkStatus:me.ready};return c&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=me.error),u},function(s){var a=function O4(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new Ki({networkError:s});throw o>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r,o){var i=this;void 0===r&&(r=me.loading),void 0===o&&(o=n.query);var N,F,s=this.getVariables(o,n.variables),a=this.getQuery(t),c=this.defaultOptions.watchQuery,u=n.fetchPolicy,d=n.errorPolicy,f=n.returnPartialData,g=n.notifyOnNetworkStatusChange,v=n.context,_=Object.assign({},n,{query:o,variables:s,fetchPolicy:void 0===u?c&&c.fetchPolicy||"cache-first":u,errorPolicy:void 0===d?c&&c.errorPolicy||"none":d,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==g&&g,context:void 0===v?{}:v}),I=function(ne){_.variables=ne;var De=i.fetchQueryByPolicy(a,_,r);return"standby"!==_.fetchPolicy&&De.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),De},w=function(){return i.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(ne){w(),setTimeout(function(){return N.cancel(ne)})}),this.getDocumentInfo(_.query).hasClientExports)N=new es(this.localState.addExportedVariables(_.query,_.variables,_.context).then(I).then(function(ne){return ne.sources})),F=!0;else{var G=I(_.variables);F=G.fromLink,N=new es(G.sources)}return N.promise.then(w,w),{concast:N,fromLink:F}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,o=t.include,i=t.optimistic,s=void 0!==i&&i,a=t.removeOptimistic,c=void 0===a?s?Km("refetchQueries"):void 0:a,u=t.onQueryUpdated,l=new Map;o&&this.getObservableQueries(o).forEach(function(h,f){l.set(f,{oq:h,lastDiff:n.getQuery(f).getDiff()})});var d=new Map;return r&&this.cache.batch({update:r,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(h,f,p){var g=h.watcher instanceof Uv&&h.watcher.observableQuery;if(g){if(u){l.delete(g.queryId);var m=u(g,f,p);return!0===m&&(m=g.refetch()),!1!==m&&d.set(g,m),m}null!==u&&l.set(g.queryId,{oq:g,lastDiff:p,diff:f})}}}),l.size&&l.forEach(function(h,f){var v,p=h.oq,g=h.lastDiff,m=h.diff;if(u){if(!m){var y=p.queryInfo;y.reset(),m=y.getDiff()}v=u(p,m,g)}(!u||!0===v)&&(v=p.refetch()),!1!==v&&d.set(p,v),f.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(f)}),c&&this.cache.removeOptimistic(c),d},e.prototype.fetchQueryByPolicy=function(t,n,r){var o=this,i=n.query,s=n.variables,a=n.fetchPolicy,c=n.refetchWritePolicy,u=n.errorPolicy,l=n.returnPartialData,d=n.context,h=n.notifyOnNetworkStatusChange,f=t.networkStatus;t.init({document:i,variables:s,networkStatus:r});var p=function(){return t.getDiff()},g=function(I,w){void 0===w&&(w=t.networkStatus||me.loading);var N=I.result;!1!==globalThis.__DEV__&&!l&&!Ce(N,{})&&bA(I.missing);var F=function(G){return le.of(b({data:G,loading:Ha(w),networkStatus:w},I.complete?null:{partial:!0}))};return N&&o.getDocumentInfo(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:N},context:d,variables:s,onlyRunForcedResolvers:!0}).then(function(G){return F(G.data||void 0)}):"none"===u&&w===me.refetch&&Array.isArray(I.missing)?F(void 0):F(N)},m="no-cache"===a?0:r===me.refetch&&"merge"!==c?1:2,v=function(){return o.getResultsFromLink(t,m,{query:i,variables:s,context:d,fetchPolicy:a,errorPolicy:u})},y=h&&"number"==typeof f&&f!==r&&Ha(r);switch(a){default:case"cache-first":return(_=p()).complete?{fromLink:!1,sources:[g(_,t.markReady())]}:l||y?{fromLink:!0,sources:[g(_),v()]}:{fromLink:!0,sources:[v()]};case"cache-and-network":var _;return(_=p()).complete||l||y?{fromLink:!0,sources:[g(_),v()]}:{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[g(p(),t.markReady())]};case"network-only":return y?{fromLink:!0,sources:[g(p()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return y?{fromLink:!0,sources:[g(t.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new Uv(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var n=this.localState.prepareContext(t);return b(b(b({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}();function Hv(e,t){return ts(e,t,t.variables&&{variables:ts(b(b({},e&&e.variables),t.variables))})}var MA=!1,$v=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw mt(15);var r=t.uri,s=t.cache,a=t.documentTransform,c=t.ssrMode,u=void 0!==c&&c,l=t.ssrForceFetchDelay,d=void 0===l?0:l,h=t.connectToDevTools,f=void 0===h?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:h,p=t.queryDeduplication,g=void 0===p||p,m=t.defaultOptions,v=t.defaultContext,y=t.assumeImmutableResults,_=void 0===y?s.assumeImmutableResults:y,I=t.resolvers,w=t.typeDefs,N=t.fragmentMatcher,F=t.name,G=t.version,ne=t.link;ne||(ne=r?new HN({uri:r,credentials:t.credentials,headers:t.headers}):wr.empty()),this.link=ne,this.cache=s,this.disableNetworkFetches=u||d>0,this.queryDeduplication=g,this.defaultOptions=m||Object.create(null),this.typeDefs=w,d&&setTimeout(function(){return n.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Zm,this.localState=new TA({cache:s,client:this,resolvers:I,fragmentMatcher:N}),this.queryManager=new n9({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:a,queryDeduplication:g,ssrMode:u,clientAwareness:{name:F,version:G},localState:this.localState,assumeImmutableResults:_,onBroadcast:f?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),f&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this}!MA&&!1!==globalThis.__DEV__&&(MA=!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;"string"==typeof o&&(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&&!1!==globalThis.__DEV__&&q.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=Hv(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=b(b({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=Hv(this.defaultOptions.query,t)),q("cache-and-network"!==t.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=b(b({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Hv(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 void 0===n&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){return this.cache.watchFragment(t)},e.prototype.readFragment=function(t,n){return void 0===n&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return gv(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){!1!==globalThis.__DEV__&&q.debug(17,s)}),i},e.prototype.getObservableQueries=function(t){return void 0===t&&(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}();!1!==globalThis.__DEV__&&($v.prototype.getMemoryInternals=L6);var sc=function(){return sc=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t},sc.apply(this,arguments)};function R9(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}"function"==typeof SuppressedError&&SuppressedError;const F9=/\r\n|[\n\r]/g;function Qv(e,t){let n=0,r=1;for(const o of e.body.matchAll(F9)){if("number"==typeof o.index||R9(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function O9(e){return AA(e.source,Qv(e.source,e.start))}function AA(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,s=t.line+(e.locationOffset.line-1),c=t.column+(1===t.line?n:0),u=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),d=l[o];if(d.length>120){const h=Math.floor(c/80),f=c%80,p=[];for(let g=0;g<d.length;g+=80)p.push(d.slice(g,g+80));return u+kA([[`${s} |`,p[0]],...p.slice(1,h+1).map(g=>["|",g]),["|","^".padStart(f)],["|",p[h+1]]])}return u+kA([[s-1+" |",l[o-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,l[o+1]]])}function kA(e){const t=e.filter(([r,o])=>void 0!==o),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?" "+o:"")).join("\n")}class Zv extends Error{constructor(t,...n){var r,o,i;const{nodes:s,source:a,positions:c,path:u,originalError:l,extensions:d}=function P9(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(n);super(t),this.name="GraphQLError",this.path=u??void 0,this.originalError=l??void 0,this.nodes=xA(Array.isArray(s)?s:s?[s]:void 0);const h=xA(null===(r=this.nodes)||void 0===r?void 0:r.map(p=>p.loc).filter(p=>null!=p));this.source=a??(null==h||null===(o=h[0])||void 0===o?void 0:o.source),this.positions=c??h?.map(p=>p.start),this.locations=c&&a?c.map(p=>Qv(a,p)):h?.map(p=>Qv(p.source,p.start));const f=function x9(e){return"object"==typeof e&&null!==e}(l?.extensions)?l?.extensions:void 0;this.extensions=null!==(i=d??f)&&void 0!==i?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}}),null!=l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Zv):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(const n of this.nodes)n.loc&&(t+="\n\n"+O9(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+="\n\n"+AA(this.source,n);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function xA(e){return void 0===e||0===e.length?void 0:e}function Ke(e,t,n){return new Zv(`Syntax Error: ${n}`,{source:e,positions:[t]})}var RA=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}(RA||{}),T=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}(T||{});class L9{constructor(t){const n=new vN(T.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!==T.EOF)do{if(t.next)t=t.next;else{const n=V9(this,t.end);t.next=n,n.prev=t,t=n}}while(t.kind===T.COMMENT);return t}}function rs(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Cd(e,t){return FA(e.charCodeAt(t))&&OA(e.charCodeAt(t+1))}function FA(e){return e>=55296&&e<=56319}function OA(e){return e>=56320&&e<=57343}function So(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return T.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return'"'===r?"'\"'":`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ze(e,t,n,r,o){return new vN(t,n,r,e.line,1+n-e.lineStart,o)}function V9(e,t){const n=e.source.body,r=n.length;let o=t;for(;o<r;){const 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:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return U9(e,o);case 33:return ze(e,T.BANG,o,o+1);case 36:return ze(e,T.DOLLAR,o,o+1);case 38:return ze(e,T.AMP,o,o+1);case 40:return ze(e,T.PAREN_L,o,o+1);case 41:return ze(e,T.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return ze(e,T.SPREAD,o,o+3);break;case 58:return ze(e,T.COLON,o,o+1);case 61:return ze(e,T.EQUALS,o,o+1);case 64:return ze(e,T.AT,o,o+1);case 91:return ze(e,T.BRACKET_L,o,o+1);case 93:return ze(e,T.BRACKET_R,o,o+1);case 123:return ze(e,T.BRACE_L,o,o+1);case 124:return ze(e,T.PIPE,o,o+1);case 125:return ze(e,T.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?G9(e,o):H9(e,o)}if(Ja(i)||45===i)return B9(e,o,i);if(AN(i))return W9(e,o);throw Ke(e.source,o,39===i?"Unexpected single quote character ('), did you mean to use a double quote (\")?":rs(i)||Cd(n,o)?`Unexpected character: ${So(e,o)}.`:`Invalid character: ${So(e,o)}.`)}return ze(e,T.EOF,r,r)}function U9(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const i=n.charCodeAt(o);if(10===i||13===i)break;if(rs(i))++o;else{if(!Cd(n,o))break;o+=2}}return ze(e,T.COMMENT,t,o,n.slice(t+1,o))}function B9(e,t,n){const r=e.source.body;let o=t,i=n,s=!1;if(45===i&&(i=r.charCodeAt(++o)),48===i){if(i=r.charCodeAt(++o),Ja(i))throw Ke(e.source,o,`Invalid number, unexpected digit after 0: ${So(e,o)}.`)}else o=Yv(e,o,i),i=r.charCodeAt(o);if(46===i&&(s=!0,i=r.charCodeAt(++o),o=Yv(e,o,i),i=r.charCodeAt(o)),(69===i||101===i)&&(s=!0,i=r.charCodeAt(++o),(43===i||45===i)&&(i=r.charCodeAt(++o)),o=Yv(e,o,i),i=r.charCodeAt(o)),46===i||AN(i))throw Ke(e.source,o,`Invalid number, expected digit but got: ${So(e,o)}.`);return ze(e,s?T.FLOAT:T.INT,t,o,r.slice(t,o))}function Yv(e,t,n){if(!Ja(n))throw Ke(e.source,t,`Invalid number, expected digit but got: ${So(e,t)}.`);const r=e.source.body;let o=t+1;for(;Ja(r.charCodeAt(o));)++o;return o}function H9(e,t){const n=e.source.body,r=n.length;let o=t+1,i=o,s="";for(;o<r;){const a=n.charCodeAt(o);if(34===a)return s+=n.slice(i,o),ze(e,T.STRING,t,o+1,s);if(92===a){s+=n.slice(i,o);const c=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?$9(e,o):q9(e,o):z9(e,o);s+=c.value,o+=c.size,i=o;continue}if(10===a||13===a)break;if(rs(a))++o;else{if(!Cd(n,o))throw Ke(e.source,o,`Invalid character within String: ${So(e,o)}.`);o+=2}}throw Ke(e.source,o,"Unterminated string.")}function $9(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const i=n.charCodeAt(t+o++);if(125===i){if(o<5||!rs(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|cc(i),r<0)break}throw Ke(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function q9(e,t){const n=e.source.body,r=PA(n,t+2);if(rs(r))return{value:String.fromCodePoint(r),size:6};if(FA(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const o=PA(n,t+8);if(OA(o))return{value:String.fromCodePoint(r,o),size:12}}throw Ke(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function PA(e,t){return cc(e.charCodeAt(t))<<12|cc(e.charCodeAt(t+1))<<8|cc(e.charCodeAt(t+2))<<4|cc(e.charCodeAt(t+3))}function cc(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function z9(e,t){const 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:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Ke(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function G9(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,i=t+3,s=i,a="";const c=[];for(;i<r;){const u=n.charCodeAt(i);if(34===u&&34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)){a+=n.slice(s,i),c.push(a);const l=ze(e,T.BLOCK_STRING,t,i+3,Q4(c).join("\n"));return e.line+=c.length-1,e.lineStart=o,l}if(92!==u||34!==n.charCodeAt(i+1)||34!==n.charCodeAt(i+2)||34!==n.charCodeAt(i+3))if(10!==u&&13!==u)if(rs(u))++i;else{if(!Cd(n,i))throw Ke(e.source,i,`Invalid character within String: ${So(e,i)}.`);i+=2}else a+=n.slice(s,i),c.push(a),13===u&&10===n.charCodeAt(i+1)?i+=2:++i,a="",s=i,o=i;else a+=n.slice(s,i),s=i+1,i+=4}throw Ke(e.source,i,"Unterminated string.")}function W9(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r&&W4(n.charCodeAt(o));)++o;return ze(e,T.NAME,t,o,n.slice(t,o))}const Q9=globalThis.process?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if("object"==typeof t&&null!==t){var r;const o=n.prototype[Symbol.toStringTag];if(o===(Symbol.toStringTag in t?t[Symbol.toStringTag]:null===(r=t.constructor)||void 0===r?void 0:r.name)){const s=mv(t);throw new Error(`Cannot use ${o} "${s}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class LA{constructor(t,n="GraphQL request",r={line:1,column:1}){"string"==typeof t||md(!1,`Body must be a string. Received: ${mv(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||md(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||md(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function jA(e,t){const n=new Sd(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}class Sd{constructor(t,n={}){const r=function Z9(e){return Q9(e,LA)}(t)?t:new LA(t);this._lexer=new L9(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(T.NAME);return this.node(t,{kind:O.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:O.DOCUMENT,definitions:this.many(T.SOF,this.parseDefinition,T.EOF)})}parseDefinition(){if(this.peek(T.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===T.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 Ke(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(){const t=this._lexer.token;if(this.peek(T.BRACE_L))return this.node(t,{kind:O.OPERATION_DEFINITION,operation:Ka.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(T.NAME)&&(r=this.parseName()),this.node(t,{kind:O.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(T.NAME);switch(t.value){case"query":return Ka.QUERY;case"mutation":return Ka.MUTATION;case"subscription":return Ka.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(T.PAREN_L,this.parseVariableDefinition,T.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:O.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(T.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(T.DOLLAR),this.node(t,{kind:O.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:O.SELECTION_SET,selections:this.many(T.BRACE_L,this.parseSelection,T.BRACE_R)})}parseSelection(){return this.peek(T.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,o;return this.expectOptionalToken(T.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:O.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(T.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(T.PAREN_L,t?this.parseConstArgument:this.parseArgument,T.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(T.COLON),this.node(n,{kind:O.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(T.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(T.NAME)?this.node(t,{kind:O.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:O.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this.node(t,!0===this._options.allowLegacyFragmentVariables?{kind:O.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:O.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case T.BRACKET_L:return this.parseList(t);case T.BRACE_L:return this.parseObject(t);case T.INT:return this.advanceLexer(),this.node(n,{kind:O.INT,value:n.value});case T.FLOAT:return this.advanceLexer(),this.node(n,{kind:O.FLOAT,value:n.value});case T.STRING:case T.BLOCK_STRING:return this.parseStringLiteral();case T.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:O.BOOLEAN,value:!0});case"false":return this.node(n,{kind:O.BOOLEAN,value:!1});case"null":return this.node(n,{kind:O.NULL});default:return this.node(n,{kind:O.ENUM,value:n.value})}case T.DOLLAR:if(t){if(this.expectToken(T.DOLLAR),this._lexer.token.kind===T.NAME)throw Ke(this._lexer.source,n.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(n)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:O.STRING,value:t.value,block:t.kind===T.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:O.LIST,values:this.any(T.BRACKET_L,()=>this.parseValueLiteral(t),T.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:O.OBJECT,fields:this.any(T.BRACE_L,()=>this.parseObjectField(t),T.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(T.COLON),this.node(n,{kind:O.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(T.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(T.AT),this.node(n,{kind:O.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(T.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(T.BRACKET_R),n=this.node(t,{kind:O.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(T.BANG)?this.node(t,{kind:O.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:O.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(T.STRING)||this.peek(T.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),o=this.many(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);return this.node(t,{kind:O.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(T.COLON);const r=this.parseNamedType();return this.node(t,{kind:O.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:O.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:O.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(T.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(T.BRACE_L,this.parseFieldDefinition,T.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(T.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:O.FIELD_DEFINITION,description:n,name:r,arguments:o,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(T.PAREN_L,this.parseInputValueDef,T.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(T.COLON);const o=this.parseTypeReference();let i;this.expectOptionalToken(T.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:O.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:O.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:O.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(T.EQUALS)?this.delimitedMany(T.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:O.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(T.BRACE_L,this.parseEnumValueDefinition,T.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:O.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Ke(this._lexer.source,this._lexer.token.start,`${Md(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:O.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(T.BRACE_L,this.parseInputValueDef,T.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===T.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(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:O.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:O.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===o.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:O.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===o.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:O.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(0===r.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:O.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(0===r.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:O.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(0===r.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:O.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(T.AT);const r=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:O.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(T.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(RA,n.value))return n;throw this.unexpected(t)}node(t,n){return!0!==this._options.noLocation&&(n.loc=new p4(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Ke(this._lexer.source,n.start,`Expected ${VA(t)}, found ${Md(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const n=this._lexer.token;if(n.kind!==T.NAME||n.value!==t)throw Ke(this._lexer.source,n.start,`Expected "${t}", found ${Md(n)}.`);this.advanceLexer()}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===T.NAME&&n.value===t&&(this.advanceLexer(),!0)}unexpected(t){const n=t??this._lexer.token;return Ke(this._lexer.source,n.start,`Unexpected ${Md(n)}.`)}any(t,n,r){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const o=[];do{o.push(n.call(this))}while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);const o=[];do{o.push(n.call(this))}while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do{r.push(n.call(this))}while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==T.EOF&&(++this._tokenCounter,void 0!==t&&this._tokenCounter>t))throw Ke(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Md(e){const t=e.value;return VA(e.kind)+(null!=t?` "${t}"`:"")}function VA(e){return function j9(e){return e===T.BANG||e===T.DOLLAR||e===T.AMP||e===T.PAREN_L||e===T.PAREN_R||e===T.SPREAD||e===T.COLON||e===T.EQUALS||e===T.AT||e===T.BRACKET_L||e===T.BRACKET_R||e===T.BRACE_L||e===T.PIPE||e===T.BRACE_R}(e)?`"${e}"`:e}var Nd=new Map,Kv=new Map,UA=!0,Ad=!1;function BA(e){return e.replace(/[\s,]+/g," ").trim()}function J9(e){var t=BA(e);if(!Nd.has(t)){var n=jA(e,{experimentalFragmentVariables:Ad,allowLegacyFragmentVariables:Ad});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Nd.set(t,function X9(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&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function K9(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if("FragmentDefinition"===r.kind){var o=r.name.value,i=function Y9(e){return BA(e.source.body.substring(e.start,e.end))}(r.loc),s=Kv.get(o);s&&!s.has(i)?UA&&console.warn("Warning: fragment with name "+o+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||Kv.set(o,s=new Set),s.add(i),t.has(i)||(t.add(i),n.push(r))}else n.push(r)}),sc(sc({},e),{definitions:n})}(n)))}return Nd.get(t)}function Mo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(o,i){r+=o&&"Document"===o.kind?o.loc.source.body:o,r+=e[i+1]}),J9(r)}var uc_gql=Mo,uc_resetCaches=function e7(){Nd.clear(),Kv.clear()},uc_disableFragmentWarnings=function t7(){UA=!1},uc_enableExperimentalFragmentVariables=function n7(){Ad=!0},uc_disableExperimentalFragmentVariables=function r7(){Ad=!1};(function(e){e.gql=uc_gql,e.resetCaches=uc_resetCaches,e.disableFragmentWarnings=uc_disableFragmentWarnings,e.enableExperimentalFragmentVariables=uc_enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=uc_disableExperimentalFragmentVariables})(Mo||(Mo={})),Mo.default=Mo;const HA=Mo;function kd(e,t,n=1/0){return Be(t)?kd((r,o)=>tr((i,s)=>t(r,i,o,s))(Do(e(r,o))),n):("number"==typeof t&&(n=t),er((r,o)=>function o7(e,t,n,r,o,i,s,a){const c=[];let u=0,l=0,d=!1;const h=()=>{d&&!c.length&&!u&&t.complete()},f=g=>u<r?p(g):c.push(g),p=g=>{i&&t.next(g),u++;let m=!1;Do(n(g,l++)).subscribe(Wr(t,v=>{o?.(v),i?f(v):t.next(v)},()=>{m=!0},void 0,()=>{if(m)try{for(u--;c.length&&u<r;){const v=c.shift();s?yr(t,s,()=>p(v)):p(v)}h()}catch(v){t.error(v)}}))};return e.subscribe(Wr(t,f,()=>{d=!0,h()})),()=>{a?.()}}(r,o,e,n)))}function $A(e=1/0){return kd($y,e)}function Xv(e){return e[e.length-1]}function xd(e){return function s7(e){return e&&Be(e.schedule)}(Xv(e))?e.pop():void 0}function qA(...e){return function i7(){return $A(1)}()(zi(e,xd(e)))}function zA(e){return new ke(t=>(e().then(n=>{t.closed||(t.next(n),t.complete())},n=>{t.closed||t.error(n)}),()=>t.unsubscribe()))}class d7{zone;constructor(t){this.zone=t}now=Date.now?Date.now:()=>+new Date;schedule(t,n=0,r){return this.zone.run(()=>OW.schedule(t,n,r))}}function Jv(e){return e[Cc]=()=>e,e}function ey(e,t){return e.pipe(Lm(new d7(t)))}class h7{obsQuery;valueChanges;queryId;constructor(t,n,r){this.obsQuery=t;const o=ey(zi(Jv(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?o.pipe(function f7(e){return function(n){return new ke(function(o){const i=e.getCurrentResult(),{loading:s,errors:a,error:c,partial:u,data:l}=i,{partialRefetch:d,fetchPolicy:h}=e.options,f=a||c;return d&&u&&(!l||0===Object.keys(l).length)&&"cache-only"!==h&&!s&&!f&&o.next({...i,loading:!0,networkStatus:me.loading}),n.subscribe(o)})}}(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)}}const ty=new A("APOLLO_FLAGS"),ny=new A("APOLLO_OPTIONS"),GA=new A("APOLLO_NAMED_OPTIONS");class WA{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 h7(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return zA(()=>this.ensureClient().query({...t}))}mutate(t){return function l7(e,t){return t?e.pipe(function u7(...e){const t=xd(e);return er((n,r)=>{(t?qA(e,n,t):qA(e,n)).subscribe(r)})}({loading:!0}),tr(n=>({...n,loading:!!n.loading}))):e.pipe(tr(n=>({...n,loading:!1})))}(zA(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}watchFragment(t,n){const r=zi(Jv(this.ensureClient().watchFragment({...t})));return n&&!0!==n.useZone?r:ey(r,this.ngZone)}subscribe(t,n){const r=zi(Jv(this.ensureClient().subscribe({...t})));return n&&!0!==n.useZone?r:ey(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")}}let ry=(()=>{class e extends WA{map=new Map;constructor(n,r,o,i){if(super(n,i),r&&this.createDefault(r),o&&"object"==typeof o)for(let s in o)o.hasOwnProperty(s)&&this.create(o[s],s)}create(n,r){oy(r)?this.createNamed(r,n):this.createDefault(n)}default(){return this}use(n){return oy(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 $v(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 $v(r))))}removeClient(n){oy(n)?this.map.delete(n):this._client=void 0}static \u0275fac=function(r){return new(r||e)(Z(he),Z(ny,8),Z(GA,8),Z(ty,8))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function oy(e){return!!e&&"default"!==e}let p7=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=lr({type:e});static \u0275inj=_n({providers:[ry]})}return e})();const QA=Mo;var Gt=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}(Gt||{}),Rd=function(e){return e.Exr="exr",e.Jpg="jpg",e.Png="png",e.Tiff="tiff",e}(Rd||{}),Fd=function(e){return e.High="High",e.Low="Low",e.Medium="Medium",e.Tiny="Tiny",e}(Fd||{});QA`
    query GetMaterialDownloadLink($articleId: String!, $organizationId: ID!, $assignmentType: DataObjectAssignmentType!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materials(
    filter: {articleId: {equals: $articleId}, organizationId: {equals: $organizationId}}
  ) {
    dataObjectAssignments(filter: {assignmentType: [$assignmentType]}) {
      dataObject {
        thumbnail(resolution: $resolution, fileType: $fileType) {
          downloadUrl
        }
        mediaType
      }
    }
  }
}
    `,QA`
    query GetPbrMaterialDownloadLink($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materials(
    filter: {articleId: {equals: $articleId}, organizationId: {equals: $organizationId}}
  ) {
    jsonFileAssignments(
      filter: {jsonFileContent: [{resolution: $resolution, fileType: $fileType, state: "done", default: true}]}
    ) {
      jsonFile {
        outputDataObject {
          downloadUrl
        }
      }
    }
  }
}
    `;const ZA=["pbr","thumbnail","tile"],iy={none:null,"7x7in":Gt.MaterialThumbnail_7x7Inches,"9x9in":Gt.MaterialThumbnail_9x9Inches,"16x16in":Gt.MaterialThumbnail_16x16Inches,"8x8in":Gt.MaterialThumbnail_8x8Inches,"13_5x13_5in":Gt.MaterialThumbnail_13_5x13_5Inches,"27x27in":Gt.MaterialThumbnail_27x27Inches,"10x10cm":Gt.MaterialThumbnail_10x10,"15x15cm":Gt.MaterialThumbnail_15x15,"20x20cm":Gt.MaterialThumbnail_20x20,"30x30cm":Gt.MaterialThumbnail_30x30},cY=Object.keys(iy),sy={none:null,exr:Rd.Exr,jpg:Rd.Jpg,tiff:Rd.Tiff},uY=Object.keys(sy),Od={none:null,low:Fd.Low,medium:Fd.Medium,high:Fd.High},lY=Object.keys(Od),aX=HA`
    query GetMaterialDownloadLink($articleId: String!, $organizationId: ID!, $assignmentType: DataObjectAssignmentType!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materials(
    filter: {articleId: {equals: $articleId}, organizationId: {equals: $organizationId}}
  ) {
    dataObjectAssignments(filter: {assignmentType: [$assignmentType]}) {
      dataObject {
        thumbnail(resolution: $resolution, fileType: $fileType) {
          downloadUrl
        }
        mediaType
      }
    }
  }
}
    `,cX=HA`
    query GetPbrMaterialDownloadLink($articleId: String!, $organizationId: ID!, $resolution: DownloadResolution, $fileType: DownloadFileType) {
  materials(
    filter: {articleId: {equals: $articleId}, organizationId: {equals: $organizationId}}
  ) {
    jsonFileAssignments(
      filter: {jsonFileContent: [{resolution: $resolution, fileType: $fileType, state: "done", default: true}]}
    ) {
      jsonFile {
        outputDataObject {
          downloadUrl
        }
      }
    }
  }
}
    `,uX=(e,t,n,r)=>e(),ay=JSON,YA=e=>{let t;const n=e.definitions.filter(r=>"OperationDefinition"===r.kind);return 1===n.length&&(t=n[0]?.name?.value),t},cy=e=>{if("string"==typeof e){let n;try{const r=jA(e);n=YA(r)}catch{}return{query:e,operationName:n}}const t=YA(e);return{query:bd(e),operationName:t}};class lc extends Error{constructor(t,n){super(`${lc.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`),Object.setPrototypeOf(this,lc.prototype),this.response=t,this.request=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,lc)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}}var is=$n(464),mX=$n.t(is,2);const ss=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||mX&&is.Headers&&e instanceof is.Headers?t=(e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t})(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&void 0!==r&&(t[n]=r)}):t=e),t},KA=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),TX=e=>function(){var t=ht(function*(n){const{url:r,query:o,variables:i,operationName:s,fetch:a,fetchOptions:c,middleware:u}=n,l={...n.headers};let h,d="";"POST"===e?(h=CX(o,i,s,c.jsonSerializer),"string"==typeof h&&(l["Content-Type"]="application/json")):d=(e=>{if(!Array.isArray(e.query)){const r=e,o=[`query=${encodeURIComponent(KA(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");const t=e,n=e.query.reduce((r,o,i)=>(r.push({query:KA(o),variables:t.variables?t.jsonSerializer.stringify(t.variables[i]):void 0}),r),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`})({query:o,variables:i,operationName:s,jsonSerializer:c.jsonSerializer??ay});const f={method:e,headers:l,body:h,...c};let p=r,g=f;if(u){const m=yield Promise.resolve(u({...f,url:r,operationName:s,variables:i})),{url:v,...y}=m;p=v,g=y}return d&&(p=`${p}?${d}`),yield a(p,g)});return function(n){return t.apply(this,arguments)}}();class XA{constructor(t,n={}){var r=this;this.url=t,this.requestConfig=n,this.rawRequest=ht(function*(...o){const[i,s,a]=o,c=((e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0})(i,s,a),{headers:u,fetch:l=is,method:d="POST",requestMiddleware:h,responseMiddleware:f,...p}=r.requestConfig,{url:g}=r;void 0!==c.signal&&(p.signal=c.signal);const{operationName:m}=cy(c.query);return uy({url:g,query:c.query,variables:c.variables,headers:{...ss(dy(u)),...ss(c.requestHeaders)},operationName:m,fetch:l,method:d,fetchOptions:p,middleware:h}).then(v=>(f&&f(v),v)).catch(v=>{throw f&&f(v),v})})}request(t,...n){var r=this;return ht(function*(){const[o,i]=n,s=((e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0})(t,o,i),{headers:a,fetch:c=is,method:u="POST",requestMiddleware:l,responseMiddleware:d,...h}=r.requestConfig,{url:f}=r;void 0!==s.signal&&(h.signal=s.signal);const{query:p,operationName:g}=cy(s.document);return uy({url:f,query:p,variables:s.variables,headers:{...ss(dy(a)),...ss(s.requestHeaders)},operationName:g,fetch:c,method:u,fetchOptions:h,middleware:l}).then(m=>(d&&d(m),m.data)).catch(m=>{throw d&&d(m),m})})()}batchRequests(t,n){const r=((e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0})(t,n),{headers:o,...i}=this.requestConfig;void 0!==r.signal&&(i.signal=r.signal);const s=r.documents.map(({document:c})=>cy(c).query),a=r.documents.map(({variables:c})=>c);return uy({url:this.url,query:s,variables:a,headers:{...ss(dy(o)),...ss(r.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??is,method:this.requestConfig.method||"POST",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then(c=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(c),c.data)).catch(c=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(c),c})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:r}=this.requestConfig;return r?r[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const uy=function(){var e=ht(function*(t){const{query:n,variables:r,fetchOptions:o}=t,i=TX((e=>e.toUpperCase())(t.method??"post")),s=Array.isArray(t.query),a=yield i(t),c=yield SX(a,o.jsonSerializer??ay),u=Array.isArray(c)?!c.some(({data:d})=>!d):!!c.data,l=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||"all"===o.errorPolicy||"ignore"===o.errorPolicy;if(a.ok&&l&&u){const{errors:d,...h}=(Array.isArray(c),c),f="ignore"===o.errorPolicy?h:c;return{...s?{data:f}:f,headers:a.headers,status:a.status}}throw new lc({..."string"==typeof c?{error:c}:c,status:a.status,headers:a.headers},{query:n,variables:r})});return function(n){return e.apply(this,arguments)}}(),CX=(e,t,n,r)=>{const o=r??ay;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");const i=e.reduce((s,a,c)=>(s.push({query:a,variables:t?t[c]:void 0}),s),[]);return o.stringify(i)},SX=function(){var e=ht(function*(t,n){let r;return t.headers.forEach((o,i)=>{"content-type"===i.toLowerCase()&&(r=o)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?n.parse(yield t.text()):t.text()});return function(n,r){return e.apply(this,arguments)}}(),dy=e=>"function"==typeof e?e():e;let ek=(()=>{class e{sdk=function lX(e,t=uX){return{GetMaterialDownloadLink:(n,r)=>t(o=>e.request(aX,n,{...r,...o}),"GetMaterialDownloadLink","query",n),GetPbrMaterialDownloadLink:(n,r)=>t(o=>e.request(cX,n,{...r,...o}),"GetPbrMaterialDownloadLink","query",n)}}(new XA("https://gql.colormass.com/graphql",{errorPolicy:"ignore",headers:{"X-Colormass-Client":"web-components"}}));materialExport=(()=>{var r,n=this;return r=ht(function*(o,i,s,a,c,u){if(!o)throw new Error("The articleId must be defined.");if(!i)throw new Error("The organizationId must be defined.");if(!s)throw new Error("The type must be defined.");switch(s){case"pbr":if(c)throw new Error("Providing dimensions is not supported for PBRs.");return(yield n.sdk.GetPbrMaterialDownloadLink({articleId:o,organizationId:i,fileType:a,resolution:u}))?.materials?.[0]?.jsonFileAssignments?.[0]?.jsonFile?.outputDataObject?.downloadUrl;case"thumbnail":if(!c)throw new Error("Missing assignment type. Did you provide valid dimensions?");return(yield n.sdk.GetMaterialDownloadLink({articleId:o,organizationId:i,assignmentType:c,fileType:a,resolution:u}))?.materials?.[0]?.dataObjectAssignments?.[0]?.dataObject?.thumbnail?.downloadUrl;case"tile":if(c)throw new Error("Providing dimensions is not supported for tileable images.");return(yield n.sdk.GetMaterialDownloadLink({articleId:o,organizationId:i,assignmentType:Gt.MaterialTileableRender,fileType:a,resolution:u}))?.materials?.[0]?.dataObjectAssignments?.find(h=>h?.dataObject?.mediaType?.startsWith("image/"))?.dataObject?.thumbnail?.downloadUrl;default:throw new Error(`Unrecognized download link type: ${s}`)}}),function(o,i,s,a,c,u){return r.apply(this,arguments)}})();static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const MX=["*"];let NX=(()=>{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)return void console.error("No article id provided");if(!this.organizationId)return void console.error("No organization id provided");const n=this.type&&ZA.includes(this.type)?this.type:void 0;if(!n)return void console.error(`Invalid material export type: ${this.type}. Please provide one of ${ZA.join(", ")}`);const r=this.fileType&&uY.includes(this.fileType)?sy[this.fileType]:void 0;if(this.fileType&&void 0===r)return void console.error(`Invalid resolution ${this.fileType}. Please provide one of ${Object.keys(sy).join(", ")}`);const o=this.resolution&&lY.includes(this.resolution)?Od[this.resolution]:void 0;if(this.resolution&&void 0===o)return console.log(o,Od[this.resolution]),void console.error(`Invalid resolution ${this.resolution}. Please provide one of ${Object.keys(Od).join(", ")}`);const i=this.dimensions&&cY.includes(this.dimensions)?iy[this.dimensions]:void 0;this.dimensions&&void 0===i?console.error(`Invalid dimensions ${this.dimensions}. Please provide one of ${Object.keys(iy).join(", ")}`):this.downloadLinkService.materialExport(this.articleId,this.organizationId,n,null===r?void 0:r,null===i?void 0:i,null===o?void 0:o).then(s=>{this.downloadLink=s,this.injectLink()}).catch(s=>{console.error(s),this.downloadLink=void 0,this.injectLink()})}injectLink(){const n=this.elementRef.nativeElement.firstElementChild;"A"===n.tagName?(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)(X(Yr),X(ek))};static \u0275cmp=hI({type:e,selectors:[["cm-material-download"]],inputs:{organizationId:"organizationId",articleId:"articleId",type:"type",dimensions:"dimensions",resolution:"resolution",fileType:"fileType"},standalone:!1,features:[iu],ngContentSelectors:MX,decls:2,vars:0,template:function(r,o){1&r&&(function lT(e){const t=D()[15][5];if(!t.projection){const r=t.projection=function Fc(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(e?e.length:1,null),o=r.slice();let i=t.child;for(;null!==i;){if(128!==i.type){const s=e?JH(i,e):0;null!==s&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}(),Tl(0),dT(1),_a())},styles:["[_nghost-%COMP%]{display:inline-flex}"]})}return e})();class AX extends Lo{constructor(t=1/0,n=1/0,r=km){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){const{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();const 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(){const{_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){const s=n.now();let a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}}const tk=new ke(e=>e.complete());function nk(e,t){return er((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Wr(r,c=>{o?.unsubscribe();let u=0;const l=i++;Do(e(c,l)).subscribe(o=Wr(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}const FX={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}};let fy;function BX(e,t,n){let r=n;return function PX(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((o,i)=>!("*"===o||!function LX(e,t){if(!fy){const n=Element.prototype;fy=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&fy.call(e,t)}(e,o)||(r=i,0))),r}class $X{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(Di).resolveComponentFactory(t);for(const r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new qX(this.componentFactory,t,this.inputMap)}}class qX{componentFactory;injector;inputMap;eventEmitters=new AX(1);events=this.eventEmitters.pipe(nk(t=>function RX(...e){const t=xd(e),n=function c7(e,t){return"number"==typeof Xv(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Do(r[0]):$A(n)(zi(r,t)):tk}(...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(he),this.appRef=this.injector.get(fr),this.cdScheduler=n.get(Gr),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=FX.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){null!==this.componentRef?this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),function Q1(e){return Ss(e._lView)||!!(64&e._lView[2])}(this.componentRef.hostView)&&(function Z1(e){kf(e._lView)}(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))}):this.initialInputValues.set(t,n)}initializeComponent(t){const n=Nt.create({providers:[],parent:this.injector}),r=function UX(e,t){const n=e.childNodes,r=t.map(()=>[]);let o=-1;t.some((i,s)=>"*"===i&&(o=s,!0));for(let i=0,s=n.length;i<s;++i){const a=n[i],c=BX(a,t,o);-1!==c&&r[c].push(a)}return r}(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(const[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){const n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{const i=t.instance[r];return new ke(s=>{const 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()}}class zX extends HTMLElement{ngElementEventsSubscription=null}function GX(e,t){const n=function VX(e,t){return t.get(Di).resolveComponentFactory(e).inputs}(e,t.injector),r=t.strategyFactory||new $X(e,t.injector),o=function jX(e){const t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[function OX(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=[n,o]}),t}(n);class i extends zX{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;const 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){const[d,h]=o[a];this.ngElementStrategy.setInputValue(d,u,h)}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=>{const 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(){const u=this.ngElementStrategy.getInputValue(s);return c&&function Yp(e){return"function"==typeof e&&void 0!==e[de]}(u)?u():u},set(u){this.ngElementStrategy.setInputValue(s,u,a)},configurable:!0,enumerable:!0})}),i}function rk(e){return er((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function ok(...e){return zi(e,xd(e))}class xt{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const 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();const 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 xt?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){const n=new xt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof xt?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}addHeaderEntry(t,n){const 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){const 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)))}}class ZX{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()}}class YX{encodeKey(t){return sk(t)}encodeValue(t){return sk(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const XX=/%(\d[a-f0-9])/gi,JX={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sk(e){return encodeURIComponent(e).replace(XX,(t,n)=>JX[n]??t)}function Pd(e){return`${e}`}class Sr{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new YX,t.fromString){if(t.fromObject)throw new S(2805,!1);this.map=function KX(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[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}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Pd):[Pd(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const 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){const n=[];return Object.keys(t).forEach(r=>{const 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=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new Sr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Pd(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(Pd(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function ak(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function ck(e){return typeof Blob<"u"&&e instanceof Blob}function uk(e){return typeof FormData<"u"&&e instanceof FormData}const dc="Content-Type",lk="text/plain",dk="application/json",fk=`${dk}, ${lk}, */*`;class fc{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){let i;if(this.url=n,this.method=t.toUpperCase(),function eJ(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?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),"number"==typeof i.timeout){if(i.timeout<1||!Number.isInteger(i.timeout))throw new S(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 xt,this.context??=new ZX,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a<n.length-1?"&":"")+s}}else this.params=new Sr,this.urlWithParams=n}serializeBody(){return null===this.body?null:"string"==typeof this.body||ak(this.body)||ck(this.body)||uk(this.body)||function tJ(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Sr?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||uk(this.body)?null:ck(this.body)?this.body.type||null:ak(this.body)?null:"string"==typeof this.body?lk:this.body instanceof Sr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?dk:null}clone(t={}){const n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer||this.referrer,h=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,p=t.transferCache??this.transferCache,g=t.timeout??this.timeout,m=void 0!==t.body?t.body:this.body,v=t.withCredentials??this.withCredentials,y=t.reportProgress??this.reportProgress;let _=t.headers||this.headers,I=t.params||this.params;const w=t.context??this.context;return void 0!==t.setHeaders&&(_=Object.keys(t.setHeaders).reduce((N,F)=>N.set(F,t.setHeaders[F]),_)),t.setParams&&(I=Object.keys(t.setParams).reduce((N,F)=>N.set(F,t.setParams[F]),I)),new fc(n,r,m,{params:I,headers:_,context:w,reportProgress:y,responseType:o,withCredentials:v,transferCache:p,keepalive:i,cache:a,priority:s,timeout:g,mode:c,redirect:u,credentials:l,referrer:d,integrity:h,referrerPolicy:f})}}var Mr=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}(Mr||{});class hy{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new xt,this.status=void 0!==t.status?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}}class jd extends hy{constructor(t={}){super(t)}type=Mr.ResponseHeader;clone(t={}){return new jd({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class hc extends hy{body;constructor(t={}){super(t),this.body=void 0!==t.body?t.body:null}type=Mr.Response;clone(t={}){return new hc({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}}class No extends hy{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}const pk=new A(""),aJ=/^\)\]\}',?\n/;let gk=(()=>{class e{xhrFactory;tracingService=k(gi,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if("JSONP"===n.method)throw new S(-2800,!1);const r=this.xhrFactory;return ok(null).pipe(nk(()=>new ke(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,v)=>s.setRequestHeader(m,v.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept",fk),!n.headers.has(dc)){const m=n.detectContentTypeHeader();null!==m&&s.setRequestHeader(dc,m)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){const m=n.responseType.toLowerCase();s.responseType="json"!==m?m:"text"}const a=n.serializeBody();let c=null;const u=()=>{if(null!==c)return c;const m=s.statusText||"OK",v=new xt(s.getAllResponseHeaders());return c=new jd({headers:v,status:s.status,statusText:m,url:s.responseURL||n.url}),c},l=this.maybePropagateTrace(()=>{let{headers:m,status:v,statusText:y,url:_}=u(),I=null;204!==v&&(I=typeof s.response>"u"?s.responseText:s.response),0===v&&(v=I?200:0);let w=v>=200&&v<300;if("json"===n.responseType&&"string"==typeof I){const N=I;I=I.replace(aJ,"");try{I=""!==I?JSON.parse(I):null}catch(F){I=N,w&&(w=!1,I={error:F,text:I})}}w?(i.next(new hc({body:I,headers:m,status:v,statusText:y,url:_||void 0})),i.complete()):i.error(new No({error:I,headers:m,status:v,statusText:y,url:_||void 0}))}),d=this.maybePropagateTrace(m=>{const{url:v}=u(),y=new No({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(y)});let h=d;n.timeout&&(h=this.maybePropagateTrace(m=>{const{url:v}=u(),y=new No({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:v||void 0});i.error(y)}));let f=!1;const p=this.maybePropagateTrace(m=>{f||(i.next(u()),f=!0);let v={type:Mr.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),"text"===n.responseType&&s.responseText&&(v.partialText=s.responseText),i.next(v)}),g=this.maybePropagateTrace(m=>{let v={type:Mr.UploadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),i.next(v)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",p),null!==a&&s.upload&&s.upload.addEventListener("progress",g)),s.send(a),i.next({type:Mr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",p),null!==a&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(Z(rb))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mk(e,t){return t(e)}function cJ(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const lJ=new A(""),pc=new A("",{factory:()=>[]}),dJ=new A(""),vk=new A("",{factory:()=>!0});function fJ(){let e=null;return(t,n)=>{null===e&&(e=(k(lJ,{optional:!0})??[]).reduceRight(cJ,mk));const r=k(Wf);if(k(vk)){const i=r.add();return e(t,n).pipe(rk(i))}return e(t,n)}}let Vd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:function(r){let o=null;return o=r?new(r||e):Z(gk),o},providedIn:"root"})}return e})(),my=(()=>{class e{backend;injector;chain=null;pendingTasks=k(Wf);contributeToStability=k(vk);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(pc),...this.injector.get(dJ,[])]));this.chain=r.reduceRight((o,i)=>function uJ(e,t,n){return(r,o)=>Tf(n,()=>t(r,i=>e(i,o)))}(o,i,this.injector),mk)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(rk(r))}return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(Z(Vd),Z(St))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:function(r){let o=null;return o=r?new(r||e):Z(my),o},providedIn:"root"})}return e})();function yy(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}}let yk=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof fc)i=n;else{let c,u;c=o.headers instanceof xt?o.headers:new xt(o.headers),o.params&&(u=o.params instanceof Sr?o.params:new Sr({fromObject:o.params})),i=new fc(n,r,void 0!==o.body?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})}const s=ok(i).pipe(function WX(e,t){return Be(t)?kd(e,t,1):kd(e,1)}(c=>this.handler.handle(c)));if(n instanceof fc||"events"===o.observe)return s;const a=s.pipe(function QX(e,t){return er((n,r)=>{let o=0;n.subscribe(Wr(r,i=>e.call(t,i,o++)&&r.next(i)))})}(c=>c instanceof hc));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(tr(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new S(2806,!1);return c.body}));case"blob":return a.pipe(tr(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new S(2807,!1);return c.body}));case"text":return a.pipe(tr(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new S(2808,!1);return c.body}));default:return a.pipe(tr(c=>c.body))}case"response":return a;default:throw new S(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 Sr).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,yy(o,r))}post(n,r,o={}){return this.request("POST",n,yy(o,r))}put(n,r,o={}){return this.request("PUT",n,yy(o,r))}static \u0275fac=function(r){return new(r||e)(Z(vy))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const bk=new A("",{factory:()=>!0}),Ek=new A("",{factory:()=>"XSRF-TOKEN"}),Dk=new A("",{factory:()=>"X-XSRF-TOKEN"});let yJ=(()=>{class e{cookieName=k(Ek);doc=k(Jt);lastCookieString="";lastToken=null;parseCount=0;getToken(){const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=nb(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_J=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:function(r){let o=null;return o=r?new(r||e):Z(yJ),o},providedIn:"root"})}return e})();function bJ(e,t){if(!k(bk)||"GET"===e.method||"HEAD"===e.method)return t(e);try{const o=k(tb).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}const n=k(_J).getToken(),r=k(Dk);return null!=n&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Nr=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}(Nr||{});function EJ(...e){const t=[yk,my,{provide:vy,useExisting:my},{provide:Vd,useFactory:()=>k(pk,{optional:!0})??k(gk)},{provide:pc,useValue:bJ,multi:!0}];for(const n of e)t.push(...n.\u0275providers);return function mf(e){return{\u0275providers:e}}(t)}const wk=new A("");function DJ(){return function Ao(e,t){return{\u0275kind:e,\u0275providers:t}}(Nr.LegacyInterceptors,[{provide:wk,useFactory:fJ},{provide:pc,useExisting:wk,multi:!0}])}let wJ=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=lr({type:e});static \u0275inj=_n({providers:[EJ(DJ())]})}return e})();var Ik=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=rc(M6,{max:jn["cache.fragmentQueryDocuments"]||1e3,cache:fd})}return e.prototype.batch=function(t){var o,n=this;return this.performTransaction(function(){return o=t.update(n)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),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 void 0===n&&(n=!!t.optimistic),this.read(b(b({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.watchFragment=function(t){var l,n=this,i=t.from,s=t.optimistic,a=void 0===s||s,c=this.getFragmentDoc(t.fragment,t.fragmentName),u={returnPartialData:!0,id:"string"==typeof i?i:this.identify(i),query:c,optimistic:a};return new le(function(d){return n.watch(b(b({},u),{immediate:!0,callback:function(h){if(!l||!mA(c,{data:l?.result},{data:h.result})){var f={data:h.result,complete:!!h.complete};h.missing&&(f.missing=_d(h.missing.map(function(p){return p.missing}))),l=h,d.next(f)}}}))})},e.prototype.readFragment=function(t,n){return void 0===n&&(n=!!t.optimistic),this.read(b(b({},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=On(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=On(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 null==i?o:(r.writeQuery(b(b({},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 null==i?o:(r.writeFragment(b(b({},t),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(Ik.prototype.getMemoryInternals=V6);var Tk=function(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={})[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return nn(t,e),t}(Error);function _y(e){return!1!==globalThis.__DEV__&&function IJ(e){var t=new Set([e]);return t.forEach(function(n){Le(n)&&function TJ(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){Le(n[r])&&t.add(n[r])})}),e}(e),e}var Xe=Object.prototype.hasOwnProperty;function gc(e){return null==e}function Ck(e,t){var n=e.__typename,r=e.id,o=e._id;if("string"==typeof n&&(t&&(t.keyObject=gc(r)?gc(o)?void 0:{_id:o}:{id:r}),gc(r)&&!gc(o)&&(r=o),!gc(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Sk={dataIdFromObject:Ck,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Mk(e){var t=e.canonizeResults;return void 0===t?Sk.canonizeResults:t}var Nk=/^[_a-z][_0-9a-z]*/i;function Ar(e){var t=e.match(Nk);return t?t[0]:e}function by(e,t,n){return!!Le(t)&&(je(t)?t.every(function(r){return by(e,r,n)}):e.selections.every(function(r){if(Dr(r)&&Xa(r,n)){var o=Er(r);return Xe.call(t,o)&&(!r.selectionSet||by(r.selectionSet,t[o],n))}return!0}))}function as(e){return Le(e)&&!ce(e)&&!je(e)}function Ak(e,t){var n=ld(pd(e));return{fragmentMap:n,lookupFragment:function(r){var o=n[r];return!o&&t&&(o=t.lookup(r)),o||null}}}var Ud=Object.create(null),Ey=function(){return Ud},kk=Object.create(null),mc=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 _y(ce(o)?r.get(o.__ref,i):o&&o[i])},this.canRead=function(o){return ce(o)?r.has(o.__ref):"object"==typeof o},this.toReference=function(o,i){if("string"==typeof o)return Qi(o);if(ce(o))return o;var s=r.policies.identify(o)[0];if(s){var a=Qi(s);return i&&r.merge(s,o),a}}}return e.prototype.toObject=function(){return b({},this.data)},e.prototype.has=function(t){return void 0!==this.lookup(t,!0)},e.prototype.get=function(t,n){if(this.group.depend(t,n),Xe.call(this.data,t)){var r=this.data[t];if(r&&Xe.call(r,n))return r[n]}return"__typename"===n&&Xe.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof kr?this.parent.get(t,n):void 0},e.prototype.lookup=function(t,n){return n&&this.group.depend(t,"__exists"),Xe.call(this.data,t)?this.data[t]:this instanceof kr?this.parent.lookup(t,n):this.policies.rootTypenamesById[t]?Object.create(null):void 0},e.prototype.merge=function(t,n){var o,r=this;ce(t)&&(t=t.__ref),ce(n)&&(n=n.__ref);var i="string"==typeof t?this.lookup(o=t):t,s="string"==typeof n?this.lookup(o=n):n;if(s){q("string"==typeof o,1);var a=new Ir(AJ).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=Ar(u);l!==u&&!r.policies.hasKeyArgs(a.__typename,l)&&(c[l]=1),void 0===a[u]&&!(r instanceof kr)&&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:Ud,INVALIDATE:kk,isReference:ce,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField("string"==typeof u?{fieldName:u,from:l||Qi(t)}:u,{store:r})}};if(Object.keys(o).forEach(function(u){var l=Ar(u),d=o[u];if(void 0!==d){var h="function"==typeof n?n:n[u]||n[l];if(h){var f=h===Ey?Ud:h(_y(d),b(b({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));if(f===kk)r.group.dirty(t,u);else if(f===Ud&&(f=void 0),f!==d&&(i[u]=f,s=!0,d=f,!1!==globalThis.__DEV__)){var p=function(w){if(void 0===r.lookup(w.__ref))return!1!==globalThis.__DEV__&&q.warn(2,w),!0};if(ce(f))p(f);else if(Array.isArray(f))for(var g=!1,m=void 0,v=0,y=f;v<y.length;v++){var _=y[v];if(ce(_)){if(g=!0,p(_))break}else"object"==typeof _&&_&&r.policies.identify(_)[0]&&(m=_);if(g&&void 0!==m){!1!==globalThis.__DEV__&&q.warn(3,m);break}}}}void 0!==d&&(a=!1)}}),s)return this.merge(t,i),a&&(this instanceof kr?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={})[a]=Ey,o):Ey)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(Xe.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof kr&&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){Xe.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&&Xe.call(t,i)||n.delete(i)}),t){var r=t.__META,o=On(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 void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof kr?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){Xe.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 kr;)i=i.parent;o.forEach(function(s){return i.delete(s)})}return o},e.prototype.findChildRefIds=function(t){if(!Xe.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){ce(i)&&(n[i.__ref]=!0),Le(i)&&Object.keys(i).forEach(function(s){var a=i[s];Le(a)&&o.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),xk=function(){function e(t,n){void 0===n&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?lA():null,this.keyMaker=new Un(Yi)},e.prototype.depend=function(t,n){if(this.d){this.d(Dy(t,n));var r=Ar(n);r!==n&&this.d(Dy(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(Dy(t,n),"__exists"===n?"forget":"setDirty")},e}();function Dy(e,t){return t+"#"+e}function Rk(e,t){vc(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(n){function r(o){var s=o.resultCaching,c=o.seed,u=n.call(this,o.policies,new xk(void 0===s||s))||this;return u.stump=new NJ(u),u.storageTrie=new Un(Yi),c&&u.replace(c),u}return nn(r,n),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}(mc||(mc={}));var kr=function(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 nn(t,e),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){Ce(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 b(b({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Xe.call(this.data,n)?b(b({},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}(mc),NJ=function(e){function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new xk(n.group.caching,n.group))||this}return nn(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(kr);function AJ(e,t,n){var r=e[n],o=t[n];return Ce(r,o)?r:o}function vc(e){return!!(e instanceof mc&&e.group.caching)}var Fk=function(){function e(){this.known=new(EN?WeakSet:Set),this.pool=new Un(Yi),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return Le(t)&&this.known.has(t)},e.prototype.pass=function(t){if(Le(t)){var n=function kJ(e){return Le(e)?je(e)?e.slice(0):b({__proto__:Object.getPrototypeOf(e)},e):e}(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(Le(t)){var r=this.passes.get(t);if(r)return r;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))return t;var i=t.map(this.admit,this);return(s=this.pool.lookupArray(i)).array||(this.known.add(s.array=i),!1!==globalThis.__DEV__&&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 s,l=c.length;if(u.sorted.forEach(function(f){c.push(n.admit(t[f]))}),!(s=this.pool.lookupArray(c)).object){var d=s.object=Object.create(a);this.known.add(d),u.sorted.forEach(function(f,p){d[f]=c[l+p]}),!1!==globalThis.__DEV__&&Object.freeze(d)}return s.object}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var o=JSON.stringify(n);(r.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,r.keys={sorted:n,json:o})}return r.keys},e}();function Ok(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var xJ=function(){function e(t){var n=this;this.knownResults=new(Yi?WeakMap:Map),this.config=ts(t,{addTypename:!1!==t.addTypename,canonizeResults:Mk(t)}),this.canon=t.canon||new Fk,this.executeSelectionSet=rc(function(r){var o,i=r.context.canonizeResults,s=Ok(r);s[3]=!i;var a=(o=n.executeSelectionSet).peek.apply(o,s);return a?i?b(b({},a),{result:n.canon.admit(a.result)}):a:(Rk(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||jn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Ok,makeCacheKey:function(r,o,i,s){if(vc(i.store))return i.store.makeCacheKey(r,ce(o)?o.__ref:o,i.varString,s)}}),this.executeSubSelectedArray=rc(function(r){return Rk(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||jn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var o=r.field,i=r.array,s=r.context;if(vc(s.store))return s.store.makeCacheKey(o,i,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Fk},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,o=t.rootId,i=void 0===o?"ROOT_QUERY":o,s=t.variables,a=t.returnPartialData,c=void 0===a||a,u=t.canonizeResults,l=void 0===u?this.config.canonizeResults:u,d=this.config.cache.policies;s=b(b({},pv(pN(r))),s);var p,h=Qi(i),f=this.executeSelectionSet({selectionSet:Za(r).selectionSet,objectOrReference:h,enclosingRef:h,context:b({store:n,query:r,policies:d,variables:s,varString:br(s),canonizeResults:l},Ak(r,this.config.fragments))});if(f.missing&&(p=[new Tk(RJ(f.missing),f.missing,r,s)],!c))throw p[0];return{result:f.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,n,r,o){if(vc(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(ce(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 h,a=s.variables,c=s.policies,l=s.store.getFieldValue(o,"__typename"),d=[],f=new Ir;function p(_,I){var w;return _.missing&&(h=f.merge(h,((w={})[I]=_.missing,w))),_.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&d.push({__typename:l});var g=new Set(r.selections);g.forEach(function(_){var I,w;if(Xa(_,a))if(Dr(_)){var N=c.readField({fieldName:_.name.value,field:_,variables:s.variables,from:o},s),F=Er(_);void 0===N?Iv.added(_)||(h=f.merge(h,((I={})[F]="Can't find field '".concat(_.name.value,"' on ").concat(ce(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),I))):je(N)?N.length>0&&(N=p(n.executeSubSelectedArray({field:_,array:N,enclosingRef:i,context:s}),F)):_.selectionSet?null!=N&&(N=p(n.executeSelectionSet({selectionSet:_.selectionSet,objectOrReference:N,enclosingRef:ce(N)?N:i,context:s}),F)):s.canonizeResults&&(N=n.canon.pass(N)),void 0!==N&&d.push(((w={})[F]=N,w))}else{var G=dd(_,s.lookupFragment);if(!G&&_.kind===O.FRAGMENT_SPREAD)throw mt(9,_.name.value);G&&c.fragmentMatches(G,l)&&G.selectionSet.selections.forEach(g.add,g)}});var v={result:_d(d),missing:h},y=s.canonizeResults?this.canon.admit(v):_y(v);return y.result&&this.knownResults.set(y.result,r),y},e.prototype.execSubSelectedArrayImpl=function(t){var a,n=this,r=t.field,o=t.array,i=t.enclosingRef,s=t.context,c=new Ir;function u(l,d){var h;return l.missing&&(a=c.merge(a,((h={})[d]=l.missing,h))),l.result}return r.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(l,d){return null===l?null:je(l)?u(n.executeSubSelectedArray({field:r,array:l,enclosingRef:i,context:s}),d):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:l,enclosingRef:ce(l)?l:i,context:s}),d):(!1!==globalThis.__DEV__&&function FJ(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(o){Le(o)&&(q(!ce(o),10,function SJ(e,t){return ce(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,o),t.name.value),Object.values(o).forEach(r.add,r))})}}(s.store,r,l),l)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:a}},e}();function RJ(e){try{JSON.stringify(e,function(t,n){if("string"==typeof n)throw n;return n})}catch(t){return t}}var Pk=Object.create(null);function wy(e){var t=JSON.stringify(e);return Pk[t]||(Pk[t]=Object.create(null))}function Lk(e){var t=wy(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var o=function(s,a){return r.readField(a,s)},i=r.keyObject=Iy(e,function(s){var a=cs(r.storeObject,s,o);return void 0===a&&n!==r.storeObject&&Xe.call(n,s[0])&&(a=cs(n,s,Uk)),q(void 0!==a,4,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function jk(e){var t=wy(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var o=r.field,i=r.variables,s=r.fieldName,a=Iy(e,function(u){var l=u[0],d=l.charAt(0);if("@"!==d)if("$"!==d){if(n)return cs(n,u)}else{var g=l.slice(1);if(i&&Xe.call(i,g)){var m=u.slice(0);return m[0]=g,cs(i,m)}}else if(o&&vn(o.directives)){var h=l.slice(1),f=o.directives.find(function(v){return v.name.value===h}),p=f&&hd(f,i);return p&&cs(p,u.slice(1))}}),c=JSON.stringify(a);return(n||"{}"!==c)&&(s+=":"+c),s})}function Iy(e,t){var n=new Ir;return Vk(e).reduce(function(r,o){var i,s=t(o);if(void 0!==s){for(var a=o.length-1;a>=0;--a)(i={})[o[a]]=s,s=i;r=n.merge(r,s)}return r},Object.create(null))}function Vk(e){var t=wy(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(o,i){je(o)?(Vk(o).forEach(function(s){return n.push(r.concat(s))}),r.length=0):(r.push(o),je(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Uk(e,t){return e[t]}function cs(e,t,n){return n=n||Uk,Bk(t.reduce(function r(o,i){return je(o)?o.map(function(s){return r(s,i)}):o&&n(o,i)},e))}function Bk(e){return Le(e)?je(e)?e.map(Bk):Iy(Object.keys(e).sort(),function(t){return cs(e,t)}):e}function Ty(e){return void 0!==e.args?e.args:e.field?hd(e.field,e.variables):null}var OJ=function(){},Hk=function(e,t){return t.fieldName},$k=function(e,t,n){return(0,n.mergeObjects)(e,t)},qk=function(e,t){return t},PJ=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=b({dataIdFromObject:Ck},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||(null===(r=n.storeObject)||void 0===r?void 0:r.__typename))||t.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var c,s=n&&n.storeObject||t,a=b(b({},n),{typename:i,storeObject:s,readField:n&&n.readField||function(){var h=Cy(arguments,s);return o.readField(h,{store:o.cache.data,variables:h.variables})}}),u=i&&this.getTypePolicy(i),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var d=l(b(b({},t),s),a);if(!je(d)){c=d;break}l=Lk(d)}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=On(o,["queryType","mutationType","subscriptionType"]);i&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Xe.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="function"==typeof u?u:!0===u?$k:!1===u?qk:c.merge}a(o,n.merge),o.keyFn=!1===i?OJ:je(i)?Lk(i):"function"==typeof i?i:o.keyFn,s&&Object.keys(s).forEach(function(c){var u=r.getFieldPolicy(t,c,!0),l=s[c];if("function"==typeof l)u.read=l;else{var d=l.keyArgs,h=l.read,f=l.merge;u.keyFn=!1===d?Hk:je(d)?jk(d):"function"==typeof d?d:u.keyFn,"function"==typeof h&&(u.read=h),a(u,f)}u.read&&u.merge&&(u.keyFn=u.keyFn||Hk)})},e.prototype.setRootTypename=function(t,n){void 0===n&&(n=t);var r="ROOT_"+t.toUpperCase(),o=this.rootTypenamesById[r];n!==o&&(q(!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(Nk);(!i||i[0]!==o)&&n.fuzzySubtypes.set(o,new RegExp(o))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Xe.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=On(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(p){var g=i.getSupertypeSet(p,!1);g&&g.size&&c.indexOf(g)<0&&c.push(g)},l=!(!r||!this.fuzzySubtypes.size),d=!1,h=0;h<c.length;++h){var f=c[h];if(f.has(s))return a.has(s)||(d&&!1!==globalThis.__DEV__&&q.warn(6,n,s),a.add(s)),!0;f.forEach(u),l&&h===c.length-1&&by(t.selectionSet,r,o)&&(l=!1,d=!0,this.fuzzySubtypes.forEach(function(p,g){var m=n.match(p);m&&m[0]===n&&u(g)}))}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 i,n=t.typename,r=t.fieldName,o=this.getFieldPolicy(n,r,!1),s=o&&o.keyFn;if(s&&n)for(var a={typename:n,fieldName:r,field:t.field||null,variables:t.variables},c=Ty(t);s;){var u=s(c,a);if(!je(u)){i=u||r;break}s=jk(u)}return void 0===i&&(i=t.field?function n4(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(o){n[o.name.value]={},o.arguments&&o.arguments.forEach(function(i){return Zi(n[o.name.value],i.name,i.value,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(o){return Zi(r,o.name,o.value,t)})),hN(e.name.value,r,n)}(t.field,t.variables):hN(r,Ty(t))),!1===i?r:r===Ar(i)?i:r+":"+i},e.prototype.readField=function(t,n){var r=t.from;if(r&&(t.field||t.fieldName)){if(void 0===t.typename){var i=n.store.getFieldValue(r,"__typename");i&&(t.typename=i)}var s=this.getStoreFieldName(t),a=Ar(s),c=n.store.getFieldValue(r,s),u=this.getFieldPolicy(t.typename,a,!1),l=u&&u.read;if(l){var d=zk(this,r,t,n,n.store.getStorage(ce(r)?r.__ref:r,s));return jv.withValue(this.cache,l,[c,d])}return c}},e.prototype.getReadFunction=function(t,n){var r=this.getFieldPolicy(t,n,!1);return r&&r.read},e.prototype.getMergeFunction=function(t,n,r){var o=this.getFieldPolicy(t,n,!1),i=o&&o.merge;return!i&&r&&(i=(o=this.getTypePolicy(r))&&o.merge),i},e.prototype.runMergeFunction=function(t,n,r,o,i){var s=r.field,a=r.typename,c=r.merge;return c===$k?Gk(o.store)(t,n):c===qk?n:(o.overwrite&&(t=void 0),c(t,n,zk(this,void 0,{typename:a,fieldName:s.name.value,field:s,variables:o.variables},o,i||Object.create(null))))},e}();function zk(e,t,n,r,o){var i=e.getStoreFieldName(n),s=Ar(i),a=n.variables||r.variables,c=r.store,u=c.toReference,l=c.canRead;return{args:Ty(n),field:n.field||null,fieldName:s,storeFieldName:i,variables:a,isReference:ce,toReference:u,storage:o,cache:e.cache,canRead:l,readField:function(){return e.readField(Cy(arguments,t,a),r)},mergeObjects:Gk(r.store)}}function Cy(e,t,n){var s,r=e[0];return"string"==typeof r?s={fieldName:r,from:e.length>1?e[1]:t}:(s=b({},r),Xe.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&q.warn(7,JM(Array.from(e))),void 0===s.variables&&(s.variables=n),s}function Gk(e){return function(n,r){if(je(n)||je(r))throw mt(8);if(Le(n)&&Le(r)){var o=e.getFieldValue(n,"__typename"),i=e.getFieldValue(r,"__typename");if(o&&i&&o!==i)return r;if(ce(n)&&as(r))return e.merge(n.__ref,r),n;if(as(n)&&ce(r))return e.merge(n,r.__ref),r;if(as(n)&&as(r))return b(b({},n),r)}return r}}function Sy(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:b(b({},e),{clientOnly:t,deferred:n})),o}var LJ=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=Qa(o),l=function MJ(){return new Ir}();a=b(b({},pv(u)),a);var d=b(b({store:t,written:Object.create(null),merge:function(f,p){return l.merge(f,p)},variables:a,varString:br(a)},Ak(o,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:d});if(!ce(h))throw mt(11,i);return d.incomingById.forEach(function(f,p){var g=f.storeObject,m=f.mergeTree,v=f.fieldNodeSet,y=Qi(p);if(m&&m.map.size){var _=r.applyMerges(m,y,g,d);if(ce(_))return;g=_}if(!1!==globalThis.__DEV__&&!d.overwrite){var I=Object.create(null);v.forEach(function(F){F.selectionSet&&(I[F.name.value]=!0)}),Object.keys(g).forEach(function(F){(function(F){return!0===I[Ar(F)]})(F)&&!function(F){var G=m&&m.map.get(F);return!!(G&&G.info&&G.info.merge)}(F)&&function jJ(e,t,n,r){var o=function(d){var h=r.getFieldValue(d,n);return"object"==typeof h&&h},i=o(e);if(i){var s=o(t);if(s&&!ce(i)&&!Ce(i,s)&&!Object.keys(i).every(function(d){return void 0!==r.getFieldValue(s,d)})){var a=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Ar(n),u="".concat(a,".").concat(c);if(!Yk.has(u)){Yk.add(u);var l=[];!je(i)&&!je(s)&&[i,s].forEach(function(d){var h=r.getFieldValue(d,"__typename");"string"==typeof h&&!l.includes(h)&&l.push(h)}),!1!==globalThis.__DEV__&&q.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,b({},i),b({},s))}}}}(y,g,F,d.store)})}t.merge(p,g)}),t.retain(h.__ref),h},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]||fv(o,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var d=function(){var _=Cy(arguments,u,s.variables);if(ce(_.from)){var I=s.incomingById.get(_.from.__ref);if(I){var w=c.readField(b(b({},_),{from:I.storeObject}),s);if(void 0!==w)return w}}return c.readField(_,s)},h=new Set;this.flattenFields(i,o,s,l).forEach(function(_,I){var w,N=Er(I),F=o[N];if(h.add(I),void 0!==F){var G=c.getStoreFieldName({typename:l,fieldName:I.name.value,field:I,variables:_.variables}),ne=Qk(a,G),De=n.processFieldValue(F,I,I.selectionSet?Sy(_,!1,!1):_,ne),Hn=void 0;I.selectionSet&&(ce(De)||as(De))&&(Hn=d("__typename",De));var us=c.getMergeFunction(l,I.name.value,Hn);us?ne.info={field:I,typename:l,merge:us}:Zk(a,G),u=_.merge(u,((w={})[G]=De,w))}else!1!==globalThis.__DEV__&&!_.clientOnly&&!_.deferred&&!Iv.added(I)&&!c.getReadFunction(l,I.name.value)&&!1!==globalThis.__DEV__&&q.error(12,Er(I),o)});try{var f=c.identify(o,{typename:l,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:u,readField:d}),g=f[1];r=r||f[0],g&&(u=s.merge(u,g))}catch(_){if(!r)throw _}if("string"==typeof r){var m=Qi(r),v=s.written[r]||(s.written[r]=[]);if(v.indexOf(i)>=0||(v.push(i),this.reader&&this.reader.isFresh(o,m,i,s)))return m;var y=s.incomingById.get(r);return y?(y.storeObject=s.merge(y.storeObject,u),y.mergeTree=My(y.mergeTree,a),h.forEach(function(_){return y.fieldNodeSet.add(_)})):s.incomingById.set(r,{storeObject:u,mergeTree:Bd(a)?void 0:a,fieldNodeSet:h}),m}return u},e.prototype.processFieldValue=function(t,n,r,o){var i=this;return n.selectionSet&&null!==t?je(t)?t.map(function(s,a){var c=i.processFieldValue(s,n,r,Qk(o,a));return Zk(o,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:o}):!1!==globalThis.__DEV__?gA(t):t},e.prototype.flattenFields=function(t,n,r,o){void 0===o&&(o=fv(n,t,r.fragmentMap));var i=new Map,s=this.cache.policies,a=new Un(!1);return function c(u,l){var d=a.lookup(u,l.clientOnly,l.deferred);d.visited||(d.visited=!0,u.selections.forEach(function(h){if(Xa(h,r.variables)){var f=l.clientOnly,p=l.deferred;if(!(f&&p)&&vn(h.directives)&&h.directives.forEach(function(v){var y=v.name.value;if("client"===y&&(f=!0),"defer"===y){var _=hd(v,r.variables);(!_||!1!==_.if)&&(p=!0)}}),Dr(h)){var g=i.get(h);g&&(f=f&&g.clientOnly,p=p&&g.deferred),i.set(h,Sy(r,f,p))}else{var m=dd(h,r.lookupFragment);if(!m&&h.kind===O.FRAGMENT_SPREAD)throw mt(13,h.name.value);m&&s.fragmentMatches(m,o,n,r.variables)&&c(m.selectionSet,Sy(r,f,p))}}}))}(t,r),i},e.prototype.applyMerges=function(t,n,r,o,i){var s,a=this;if(t.map.size&&!ce(r)){var c=je(r)||!ce(n)&&!as(n)?void 0:n,u=r;c&&!i&&(i=[ce(c)?c.__ref:c]);var l,d=function(h,f){return je(h)?"number"==typeof f?h[f]:void 0:o.store.getFieldValue(h,String(f))};t.map.forEach(function(h,f){var p=d(c,f),g=d(u,f);if(void 0!==g){i&&i.push(f);var m=a.applyMerges(h,p,g,o,i);m!==g&&(l=l||new Map).set(f,m),i&&q(i.pop()===f)}}),l&&(r=je(u)?u.slice(0):b({},u),l.forEach(function(h,f){r[f]=h}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,o,i&&(s=o.store).getStorage.apply(s,i)):r},e}(),Wk=[];function Qk(e,t){var n=e.map;return n.has(t)||n.set(t,Wk.pop()||{map:new Map}),n.get(t)}function My(e,t){if(e===t||!t||Bd(t))return e;if(!e||Bd(e))return t;var n=e.info&&t.info?b(b({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var s=new Set(t.map.keys());e.map.forEach(function(a,c){i.map.set(c,My(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){i.map.set(a,My(t.map.get(a),e.map.get(a)))})}return i}function Bd(e){return!e||!(e.info||e.map.size)}function Zk(e,t){var n=e.map,r=n.get(t);r&&Bd(r)&&(Wk.push(r),n.delete(t))}var Yk=new Set,Kk=function(e){function t(n){void 0===n&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new fA(Iv),r.assumeImmutableResults=!0,r.makeVar=J5,r.txCount=0,r.config=function CJ(e){return ts(Sk,e)}(n),r.addTypename=!!r.config.addTypename,r.policies=new PJ({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return nn(t,e),t.prototype.init=function(){var n=this.data=new mc.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 LJ(this,this.storeReader=new xJ({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Mk(this.config),canon:n?void 0:o&&o.canon,fragments:i}),i),this.maybeBroadcastWatch=rc(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize||jn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(vc(a))return a.makeCacheKey(s.query,s.callback,br({optimistic:s.optimistic,id:s.id,variables:s.variables}))}}),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 void 0===n&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,o=void 0!==r&&r;try{return this.storeReader.diffQueryAgainstStore(b(b({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(i){if(i instanceof Tk)return null;throw i}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{! --this.txCount&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Xe.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&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(b(b({},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||function X5(e){ic(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&IA(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;br.reset(),Dd.reset(),this.addTypenameTransform.resetCache(),null===(r=this.config.fragments)||void 0===r||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(ce(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){!1!==globalThis.__DEV__&&q.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Xe.call(n,"id"))return!1;n=b(b({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{! --this.txCount&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),br.reset(),n&&n.discardWatches?(this.watches.forEach(function(o){return r.maybeBroadcastWatch.forget(o)}),this.watches.clear(),IA(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 u,r=this,o=n.update,i=n.optimistic,s=void 0===i||i,a=n.removeOptimistic,c=n.onWatchUpdated,l=function(h){var p=r.data,g=r.optimisticData;++r.txCount,h&&(r.data=r.optimisticData=h);try{return u=o(r)}finally{--r.txCount,r.data=p,r.optimisticData=g}},d=new Set;return c&&!this.txCount&&this.broadcastWatches(b(b({},n),{onWatchUpdated:function(h){return d.add(h),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,l):!1===s?l(this.data):l(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&d.size?(this.broadcastWatches(b(b({},n),{onWatchUpdated:function(h,f){var p=c.call(this,h,f);return!1!==p&&d.delete(h),p}})),d.size&&d.forEach(function(h){return r.maybeBroadcastWatch.dirty(h)})):this.broadcastWatches(n),u},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||null!==r})},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&&"string"==typeof r.optimistic&&(i.fromOptimisticTransaction=!0),r.onWatchUpdated&&!1===r.onWatchUpdated.call(this,n,i,o))||(!o||!Ce(o.result,i.result))&&n.callback(n.lastDiff=i,o)},t}(Ik);!1!==globalThis.__DEV__&&(Kk.prototype.getMemoryInternals=j6);var BJ=function(){function e(t){var n=t.batchDebounce,r=t.batchInterval,o=t.batchMax,i=t.batchHandler,s=t.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=n,this.batchInterval=r,this.batchMax=o||0,this.batchHandler=i,this.batchKey=s||function(){return""}}return e.prototype.enqueueRequest=function(t){var n=this,r=b(b({},t),{next:[],error:[],complete:[],subscribers:new Set}),o=this.batchKey(t.operation);return r.observable||(r.observable=new le(function(i){var s=n.batchesByKey.get(o);s||n.batchesByKey.set(o,s=new Set);var a=0===s.size,c=0===r.subscribers.size;return r.subscribers.add(i),c&&s.add(r),i.next&&r.next.push(i.next.bind(i)),i.error&&r.error.push(i.error.bind(i)),i.complete&&r.complete.push(i.complete.bind(i)),(a||n.batchDebounce)&&n.scheduleQueueConsumption(o),s.size===n.batchMax&&n.consumeQueue(o),function(){var u;r.subscribers.delete(i)&&r.subscribers.size<1&&s.delete(r)&&s.size<1&&(n.consumeQueue(o),null===(u=s.subscription)||void 0===u||u.unsubscribe())}})),r.observable},e.prototype.consumeQueue=function(t){void 0===t&&(t="");var n=this.batchesByKey.get(t);if(this.batchesByKey.delete(t),n&&n.size){var r=[],o=[],i=[],s=[],a=[],c=[];n.forEach(function(d){r.push(d.operation),o.push(d.forward),i.push(d.observable),s.push(d.next),a.push(d.error),c.push(d.complete)});var u=this.batchHandler(r,o)||le.of(),l=function(d){a.forEach(function(h){h&&h.forEach(function(f){return f(d)})})};return n.subscription=u.subscribe({next:function(d){if(Array.isArray(d)||(d=[d]),s.length!==d.length){var h=new Error("server returned results with length ".concat(d.length,", expected length of ").concat(s.length));return h.result=d,l(h)}d.forEach(function(f,p){s[p]&&s[p].forEach(function(g){return g(f)})})},error:l,complete:function(){c.forEach(function(d){d&&d.forEach(function(h){return h()})})}}),i}},e.prototype.scheduleQueueConsumption=function(t){var n=this;clearTimeout(this.scheduledBatchTimerByKey.get(t)),this.scheduledBatchTimerByKey.set(t,setTimeout(function(){n.consumeQueue(t),n.scheduledBatchTimerByKey.delete(t)},this.batchInterval))},e}();!function(e){function t(n){var r=e.call(this)||this,o=n||{},s=o.batchInterval,c=o.batchMax,l=o.batchHandler,h=o.batchKey;return r.batcher=new BJ({batchDebounce:o.batchDebounce,batchInterval:void 0===s?10:s,batchMax:void 0===c?0:c,batchHandler:void 0===l?function(){return null}:l,batchKey:void 0===h?function(){return""}:h}),n.batchHandler.length<=1&&(r.request=function(p){return r.batcher.enqueueRequest({operation:p})}),r}nn(t,e),t.prototype.request=function(n,r){return this.batcher.enqueueRequest({operation:n,forward:r})}}(wr);const Ny={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Bn(e,t,n){return function Hd(...e){return e.find(t=>typeof t<"u")}(e[n],t[n],Ny[n])}class $J extends wr{httpClient;options;requester;print=bd;constructor(t,n){super(),this.httpClient=t,this.options=n,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new le(o=>{const i=r.getContext();let s=Bn(i,this.options,"method");const a=Bn(i,this.options,"includeQuery"),c=Bn(i,this.options,"includeExtensions"),u=Bn(i,this.options,"uri"),l=Bn(i,this.options,"withCredentials"),d=Bn(i,this.options,"useMultipart"),h=!0===this.options.useGETForQueries,f=r.query.definitions.some(v=>"OperationDefinition"===v.kind&&"query"===v.operation);h&&f&&(s="GET");const p={method:s,url:"function"==typeof u?u(r):u,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:l,useMultipart:d,headers:this.options.headers}};c&&(p.body.extensions=r.extensions),a&&(p.body.query=this.print(r.query));const g=function ex(e){let t=e.headers&&e.headers instanceof xt?e.headers:new xt(e.headers);if(e.clientAwareness){const{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}(i);p.options.headers=((e,t)=>e&&t?t.keys().reduce((r,o)=>r.set(o,t.getAll(o)),e):t||e)(p.options.headers,g);const m=((e,t,n)=>{const r=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),i=e.body.length;let a,s=e.options&&e.options.useMultipart;if(s){if(i)return new ke(u=>u.error(new Error("File upload is not available when combined with Batching")));if(!r)return new ke(u=>u.error(new Error("File upload is not available when GET is used")));if(!n)return new ke(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 ke(u=>u.error(new Error("Batching is not available for GET requests")));c={body:e.body}}else c=r?{body:s?a.clone:e.body}:{params:Object.keys(e.body).reduce((d,h)=>{const f=e.body[h];return d[h]=-1!==["variables","extensions"].indexOf(h.toLowerCase())?JSON.stringify(f):f,d},{})};if(s&&r){const u=new FormData;u.append("operations",JSON.stringify(c.body));const l={},d=a.files;let h=0;d.forEach(f=>{l[++h]=f}),u.append("map",JSON.stringify(l)),h=0,d.forEach((f,p)=>{u.append(++h+"",p,p.name)}),c.body=u}return t.request(e.method,e.url,{observe:"response",responseType:"json",reportProgress:!1,...c,...e.options})})(p,this.httpClient,this.options.extractFiles).subscribe({next:v=>{r.setContext({response:v}),o.next(v.body)},error:v=>o.error(v),complete:()=>o.complete()});return()=>{m.closed||m.unsubscribe()}})}request(t){return this.requester(t)}}let qJ=(()=>{class e{httpClient;constructor(n){this.httpClient=n}create(n){return new $J(this.httpClient,n)}static \u0275fac=function(r){return new(r||e)(Z(yk))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const GJ=new HN({uri:"https://gql.colormass.com/graphql",headers:{...(()=>{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{}})(),"X-Colormass-Client":"web-components"}});let WJ=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=lr({type:e});static \u0275inj=_n({providers:[{provide:ny,useFactory:()=>({cache:new Kk,link:GJ,headers:{"X-Colormass-Client":"web-components"}}),deps:[qJ]}],imports:[p7,wJ]})}return e})(),QJ=(()=>{class e{injector;constructor(n){this.injector=n}ngDoBootstrap(){const n=GX(NX,{injector:this.injector});customElements.define("cm-material-download",n)}static \u0275fac=function(r){return new(r||e)(Z(Nt))};static \u0275mod=lr({type:e});static \u0275inj=_n({providers:[ek],imports:[hM,MW,WJ]})}return e})();SW().bootstrapModule(QJ).catch(e=>console.error(e))},464(ds,sn){var yn,$n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Se=function(){function yn(){this.fetch=!1,this.DOMException=$n.DOMException}return yn.prototype=$n,new yn}();yn=Se,function(de){var R=typeof yn<"u"&&yn||typeof self<"u"&&self||typeof global<"u"&&global||{},Ge_searchParams="URLSearchParams"in R,Ge_iterable="Symbol"in R&&"iterator"in Symbol,Ge_blob="FileReader"in R&&"Blob"in R&&function(){try{return new Blob,!0}catch{return!1}}(),Ge_formData="FormData"in R,Ge_arrayBuffer="ArrayBuffer"in R;if(Ge_arrayBuffer)var Ry=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],fs=ArrayBuffer.isView||function(E){return E&&Ry.indexOf(Object.prototype.toString.call(E))>-1};function an(E){if("string"!=typeof E&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(E)||""===E)throw new TypeError('Invalid character in header field name: "'+E+'"');return E.toLowerCase()}function hs(E){return"string"!=typeof E&&(E=String(E)),E}function ko(E){var M={next:function(){var K=E.shift();return{done:void 0===K,value:K}}};return Ge_iterable&&(M[Symbol.iterator]=function(){return M}),M}function Me(E){this.map={},E instanceof Me?E.forEach(function(M,K){this.append(K,M)},this):Array.isArray(E)?E.forEach(function(M){if(2!=M.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+M.length);this.append(M[0],M[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(M){this.append(M,E[M])},this)}function xo(E){if(!E._noBody){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}}function _c(E){return new Promise(function(M,K){E.onload=function(){M(E.result)},E.onerror=function(){K(E.error)}})}function bc(E){var M=new FileReader,K=_c(M);return M.readAsArrayBuffer(E),K}function Fo(E){if(E.slice)return E.slice(0);var M=new Uint8Array(E.byteLength);return M.set(new Uint8Array(E)),M.buffer}function Ec(){return this.bodyUsed=!1,this._initBody=function(E){this.bodyUsed=this.bodyUsed,this._bodyInit=E,E?"string"==typeof E?this._bodyText=E:Ge_blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:Ge_formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:Ge_searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():Ge_arrayBuffer&&Ge_blob&&function xy(E){return E&&DataView.prototype.isPrototypeOf(E)}(E)?(this._bodyArrayBuffer=Fo(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ge_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||fs(E))?this._bodyArrayBuffer=Fo(E):this._bodyText=E=Object.prototype.toString.call(E):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof E?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Ge_searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ge_blob&&(this.blob=function(){var E=xo(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)return xo(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(Ge_blob)return this.blob().then(bc);throw new Error("could not read as ArrayBuffer")},this.text=function(){var E=xo(this);if(E)return E;if(this._bodyBlob)return function Ro(E){var M=new FileReader,K=_c(M),fe=/charset=([A-Za-z0-9_-]+)/.exec(E.type);return M.readAsText(E,fe?fe[1]:"utf-8"),K}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function $d(E){for(var M=new Uint8Array(E),K=new Array(M.length),fe=0;fe<M.length;fe++)K[fe]=String.fromCharCode(M[fe]);return K.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Ge_formData&&(this.formData=function(){return this.text().then(gs)}),this.json=function(){return this.text().then(JSON.parse)},this}Me.prototype.append=function(E,M){E=an(E),M=hs(M);var K=this.map[E];this.map[E]=K?K+", "+M:M},Me.prototype.delete=function(E){delete this.map[an(E)]},Me.prototype.get=function(E){return E=an(E),this.has(E)?this.map[E]:null},Me.prototype.has=function(E){return this.map.hasOwnProperty(an(E))},Me.prototype.set=function(E,M){this.map[an(E)]=hs(M)},Me.prototype.forEach=function(E,M){for(var K in this.map)this.map.hasOwnProperty(K)&&E.call(M,this.map[K],K,this)},Me.prototype.keys=function(){var E=[];return this.forEach(function(M,K){E.push(K)}),ko(E)},Me.prototype.values=function(){var E=[];return this.forEach(function(M){E.push(M)}),ko(E)},Me.prototype.entries=function(){var E=[];return this.forEach(function(M,K){E.push([K,M])}),ko(E)},Ge_iterable&&(Me.prototype[Symbol.iterator]=Me.prototype.entries);var Oo=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Qt(E,M){if(!(this instanceof Qt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var K=(M=M||{}).body;if(E instanceof Qt){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,M.headers||(this.headers=new Me(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!K&&null!=E._bodyInit&&(K=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=M.credentials||this.credentials||"same-origin",(M.headers||!this.headers)&&(this.headers=new Me(M.headers)),this.method=function ps(E){var M=E.toUpperCase();return Oo.indexOf(M)>-1?M:E}(M.method||this.method||"GET"),this.mode=M.mode||this.mode||null,this.signal=M.signal||this.signal||function(){if("AbortController"in R)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&K)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(K),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==M.cache&&"no-cache"!==M.cache)){var fe=/([?&])_=[^&]*/;fe.test(this.url)?this.url=this.url.replace(fe,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function gs(E){var M=new FormData;return E.trim().split("&").forEach(function(K){if(K){var fe=K.split("="),we=fe.shift().replace(/\+/g," "),J=fe.join("=").replace(/\+/g," ");M.append(decodeURIComponent(we),decodeURIComponent(J))}}),M}function qn(E){var M=new Me;return E.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(fe){return 0===fe.indexOf("\n")?fe.substr(1,fe.length):fe}).forEach(function(fe){var we=fe.split(":"),J=we.shift().trim();if(J){var vs=we.join(":").trim();try{M.append(J,vs)}catch(Po){console.warn("Response "+Po.message)}}}),M}function vt(E,M){if(!(this instanceof vt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(M||(M={}),this.type="default",this.status=void 0===M.status?200:M.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=void 0===M.statusText?"":""+M.statusText,this.headers=new Me(M.headers),this.url=M.url||"",this._initBody(E)}Qt.prototype.clone=function(){return new Qt(this,{body:this._bodyInit})},Ec.call(Qt.prototype),Ec.call(vt.prototype),vt.prototype.clone=function(){return new vt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Me(this.headers),url:this.url})},vt.error=function(){var E=new vt(null,{status:200,statusText:""});return E.ok=!1,E.status=0,E.type="error",E};var Fy=[301,302,303,307,308];vt.redirect=function(E,M){if(-1===Fy.indexOf(M))throw new RangeError("Invalid status code");return new vt(null,{status:M,headers:{location:E}})},de.DOMException=R.DOMException;try{new de.DOMException}catch{de.DOMException=function(M,K){this.message=M,this.name=K;var fe=Error(M);this.stack=fe.stack},de.DOMException.prototype=Object.create(Error.prototype),de.DOMException.prototype.constructor=de.DOMException}function ms(E,M){return new Promise(function(K,fe){var we=new Qt(E,M);if(we.signal&&we.signal.aborted)return fe(new de.DOMException("Aborted","AbortError"));var J=new XMLHttpRequest;function vs(){J.abort()}if(J.onload=function(){var We={statusText:J.statusText,headers:qn(J.getAllResponseHeaders()||"")};We.status=0===we.url.indexOf("file://")&&(J.status<200||J.status>599)?200:J.status,We.url="responseURL"in J?J.responseURL:We.headers.get("X-Request-URL");var Ft="response"in J?J.response:J.responseText;setTimeout(function(){K(new vt(Ft,We))},0)},J.onerror=function(){setTimeout(function(){fe(new TypeError("Network request failed"))},0)},J.ontimeout=function(){setTimeout(function(){fe(new TypeError("Network request timed out"))},0)},J.onabort=function(){setTimeout(function(){fe(new de.DOMException("Aborted","AbortError"))},0)},J.open(we.method,function Po(We){try{return""===We&&R.location.href?R.location.href:We}catch{return We}}(we.url),!0),"include"===we.credentials?J.withCredentials=!0:"omit"===we.credentials&&(J.withCredentials=!1),"responseType"in J&&(Ge_blob?J.responseType="blob":Ge_arrayBuffer&&(J.responseType="arraybuffer")),M&&"object"==typeof M.headers&&!(M.headers instanceof Me||R.Headers&&M.headers instanceof R.Headers)){var ys=[];Object.getOwnPropertyNames(M.headers).forEach(function(We){ys.push(an(We)),J.setRequestHeader(We,hs(M.headers[We]))}),we.headers.forEach(function(We,Ft){-1===ys.indexOf(Ft)&&J.setRequestHeader(Ft,We)})}else we.headers.forEach(function(We,Ft){J.setRequestHeader(Ft,We)});we.signal&&(we.signal.addEventListener("abort",vs),J.onreadystatechange=function(){4===J.readyState&&we.signal.removeEventListener("abort",vs)}),J.send(typeof we._bodyInit>"u"?null:we._bodyInit)})}ms.polyfill=!0,R.fetch||(R.fetch=ms,R.Headers=Me,R.Request=Qt,R.Response=vt),de.Headers=Me,de.Request=Qt,de.Response=vt,de.fetch=ms,Object.defineProperty(de,"__esModule",{value:!0})}({}),Se.fetch.ponyfill=!0,delete Se.fetch.polyfill;var Rt=$n.fetch?$n:Se;(sn=Rt.fetch).default=Rt.fetch,sn.fetch=Rt.fetch,sn.Headers=Rt.Headers,sn.Request=Rt.Request,sn.Response=Rt.Response,ds.exports=sn}},ds=>{ds(ds.s=913)}]);