diff --git a/index.html b/index.html index 7044361b..eb2c78b9 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,6 @@ - + \ No newline at end of file diff --git a/main.d19d4d898beb73ab.js b/main.d19d4d898beb73ab.js new file mode 100644 index 00000000..bbff575c --- /dev/null +++ b/main.d19d4d898beb73ab.js @@ -0,0 +1,103 @@ +"use strict";(self.webpackChunktera_raid_info=self.webpackChunktera_raid_info||[]).push([[179],{742:()=>{function fe(e){return"function"==typeof e}function No(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 xo=No(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function fr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class It{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 o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(fe(r))try{r()}catch(o){t=o instanceof xo?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Id(o)}catch(s){t=t??[],s instanceof xo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new xo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Id(t);else{if(t instanceof It){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)&&fr(n,t)}remove(t){const{_finalizers:n}=this;n&&fr(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const Cd=It.EMPTY;function Td(e){return e instanceof It||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function Id(e){fe(e)?e():e.unsubscribe()}const Vn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Po={setTimeout(e,t,...n){const{delegate:r}=Po;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Po;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Md(e){Po.setTimeout(()=>{const{onUnhandledError:t}=Vn;if(!t)throw e;t(e)})}function Ad(){}const ow=Ga("C",void 0,void 0);function Ga(e,t,n){return{kind:e,value:t,error:n}}let Hn=null;function Fo(e){if(Vn.useDeprecatedSynchronousErrorHandling){const t=!Hn;if(t&&(Hn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Hn;if(Hn=null,n)throw r}}else e()}class Wa extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Td(t)&&t.add(this)):this.destination=dw}static create(t,n,r){return new mi(t,n,r)}next(t){this.isStopped?Ka(function aw(e){return Ga("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ka(function sw(e){return Ga("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ka(ow,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 uw=Function.prototype.bind;function Qa(e,t){return uw.call(e,t)}class lw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ro(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ro(r)}else Ro(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ro(n)}}}class mi extends Wa{constructor(t,n,r){let i;if(super(),fe(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Vn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Qa(t.next,o),error:t.error&&Qa(t.error,o),complete:t.complete&&Qa(t.complete,o)}):i=t}this.destination=new lw(i)}}function Ro(e){Vn.useDeprecatedSynchronousErrorHandling?function cw(e){Vn.useDeprecatedSynchronousErrorHandling&&Hn&&(Hn.errorThrown=!0,Hn.error=e)}(e):Md(e)}function Ka(e,t){const{onStoppedNotification:n}=Vn;n&&Po.setTimeout(()=>n(e,t))}const dw={closed:!0,next:Ad,error:function fw(e){throw e},complete:Ad},Lo="function"==typeof Symbol&&Symbol.observable||"@@observable";function kd(e){return e}let De=(()=>{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,i){const o=function pw(e){return e&&e instanceof Wa||function hw(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}(e)&&Td(e)}(n)?n:new mi(n,r,i);return Fo(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Nd(r))((i,o)=>{const s=new mi({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Lo](){return this}pipe(...n){return function Od(e){return 0===e.length?kd:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=Nd(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Nd(e){var t;return null!==(t=e??Vn.Promise)&&void 0!==t?t:Promise}const mw=No(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Bo=(()=>{class e extends De{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new xd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new mw}next(n){Fo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Fo(()=>{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(){Fo(()=>{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:i,observers:o}=this;return r||i?Cd:(this.currentObservers=null,o.push(n),new It(()=>{this.currentObservers=null,fr(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new De;return n.source=this,n}}return e.create=(t,n)=>new xd(t,n),e})();class xd extends Bo{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:Cd}}function Un(e){return t=>{if(function gw(e){return fe(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 gi(e,t,n,r,i){return new yw(e,t,n,r,i)}class yw extends Wa{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(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 nt(e,t){return Un((n,r)=>{let i=0;n.subscribe(gi(r,o=>{r.next(e.call(t,o,i++))}))})}var Ya=function(e,t){return(Ya=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function Mt(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}Ya(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,i=arguments.length;r0&&o[o.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=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(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){!function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Ld=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Bd(e){return fe(e?.then)}function jd(e){return fe(e[Lo])}function Vd(e){return Symbol.asyncIterator&&fe(e?.[Symbol.asyncIterator])}function Hd(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 Ud=function Fw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $d(e){return fe(e?.[Ud])}function qd(e){return function Fd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(h){return new Promise(function(p,g){o.push([d,h,p,g])>1||a(d,h)})})}function a(d,h){try{!function c(d){d.value instanceof wn?Promise.resolve(d.value.v).then(u,l):f(o[0][2],d)}(r[d](h))}catch(p){f(o[0][3],p)}}function u(d){a("next",d)}function l(d){a("throw",d)}function f(d,h){d(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield wn(n.read());if(i)return yield wn(void 0);yield yield wn(r)}}finally{n.releaseLock()}})}function zd(e){return fe(e?.getReader)}function Sn(e){if(e instanceof De)return e;if(null!=e){if(jd(e))return function Rw(e){return new De(t=>{const n=e[Lo]();if(fe(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ld(e))return function Lw(e){return new De(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Md)})}(e);if(Vd(e))return Gd(e);if($d(e))return function jw(e){return new De(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(zd(e))return function Vw(e){return Gd(qd(e))}(e)}throw Hd(e)}function Gd(e){return new De(t=>{(function Hw(e,t){var n,r,i,o;return Ht(this,void 0,void 0,function*(){try{for(n=Rd(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function _n(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function jo(e,t,n=1/0){return fe(t)?jo((r,i)=>nt((o,s)=>t(r,o,i,s))(Sn(e(r,i))),n):("number"==typeof t&&(n=t),Un((r,i)=>function Uw(e,t,n,r,i,o,s,a){const c=[];let u=0,l=0,f=!1;const d=()=>{f&&!c.length&&!u&&t.complete()},h=g=>u{o&&t.next(g),u++;let v=!1;Sn(n(g,l++)).subscribe(gi(t,m=>{i?.(m),o?h(m):t.next(m)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&up(m)):p(m)}d()}catch(m){t.error(m)}}))};return e.subscribe(gi(t,h,()=>{f=!0,d()})),()=>{a?.()}}(r,i,e,n)))}function Wd(e=1/0){return jo(kd,e)}const Qd=new De(e=>e.complete());function Za(e){return e[e.length-1]}function Vo(e){return function qw(e){return e&&fe(e.schedule)}(Za(e))?e.pop():void 0}function ec(e,t=0){return Un((n,r)=>{n.subscribe(gi(r,i=>_n(r,e,()=>r.next(i),t),()=>_n(r,e,()=>r.complete(),t),i=>_n(r,e,()=>r.error(i),t)))})}function Kd(e,t=0){return Un((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Yd(e,t){if(!e)throw new Error("Iterable cannot be null");return new De(n=>{_n(n,t,()=>{const r=e[Symbol.asyncIterator]();_n(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function yi(e,t){return t?function Jw(e,t){if(null!=e){if(jd(e))return function Gw(e,t){return Sn(e).pipe(Kd(t),ec(t))}(e,t);if(Ld(e))return function Qw(e,t){return new De(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Bd(e))return function Ww(e,t){return Sn(e).pipe(Kd(t),ec(t))}(e,t);if(Vd(e))return Yd(e,t);if($d(e))return function Kw(e,t){return new De(n=>{let r;return _n(n,t,()=>{r=e[Ud](),_n(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>fe(r?.return)&&r.return()})}(e,t);if(zd(e))return function Yw(e,t){return Yd(qd(e),t)}(e,t)}throw Hd(e)}(e,t):Sn(e)}function tc(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new mi({next:()=>{r.unsubscribe(),e()}});return Sn(t(...n)).subscribe(r)}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function rc(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const e0=re({__forward_ref__:re});function ic(e){return e.__forward_ref__=ic,e.toString=function(){return ie(this())},e}function x(e){return function oc(e){return"function"==typeof e&&e.hasOwnProperty(e0)&&e.__forward_ref__===ic}(e)?e():e}function sc(e){return e&&!!e.\u0275providers}class O extends Error{constructor(t,n){super(Ho(t,n)),this.code=t}}function Ho(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function X(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function j(e){return"string"==typeof e?e:null==e?"":String(e)}(e)}function Uo(e,t){throw new O(-201,!1)}function vt(e,t){null==e&&function Z(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nn(e){return{providers:e.providers||[],imports:e.imports||[]}}function $o(e){return Xd(e,qo)||Xd(e,eh)}function Xd(e,t){return e.hasOwnProperty(t)?e[t]:null}function Zd(e){return e&&(e.hasOwnProperty(ac)||e.hasOwnProperty(c0))?e[ac]:null}const qo=re({\u0275prov:re}),ac=re({\u0275inj:re}),eh=re({ngInjectableDef:re}),c0=re({ngInjectorDef:re});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let cc;function Dt(e){const t=cc;return cc=e,t}function th(e,t,n){const r=$o(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&B.Optional?null:void 0!==t?t:void Uo(ie(e))}const se=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),vi={},uc="__NG_DI_FLAG__",zo="ngTempTokenPath",l0="ngTokenPath",f0=/\n/gm,d0="\u0275",nh="__source";let Di;function dr(e){const t=Di;return Di=e,t}function h0(e,t=B.Default){if(void 0===Di)throw new O(-203,!1);return null===Di?th(e,void 0,t):Di.get(e,t&B.Optional?null:void 0,t)}function V(e,t=B.Default){return(function u0(){return cc}()||h0)(x(e),t)}function bi(e,t=B.Default){return V(e,Go(t))}function Go(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function lc(e){const t=[];for(let n=0;n((Ut=Ut||{})[Ut.OnPush=0]="OnPush",Ut[Ut.Default=1]="Default",Ut))(),$t=(()=>{return(e=$t||($t={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",$t;var e})();const on={},J=[],Wo=re({\u0275cmp:re}),fc=re({\u0275dir:re}),dc=re({\u0275pipe:re}),ih=re({\u0275mod:re}),sn=re({\u0275fac:re}),wi=re({__NG_ELEMENT_ID__:re});let y0=0;function ft(e){return rn(()=>{const t=function sh(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||J,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:oh(e.inputs,t),outputs:oh(e.outputs)}}(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ut.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||$t.Emulated,id:"c"+y0++,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null};!function ah(e){e.features?.forEach(t=>t(e))}(n);const r=e.dependencies;return n.directiveDefs=Qo(r,!1),n.pipeDefs=Qo(r,!0),n})}function D0(e){return ee(e)||$e(e)}function b0(e){return null!==e}function Tn(e){return rn(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function oh(e,t){if(null==e)return on;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function ee(e){return e[Wo]||null}function $e(e){return e[fc]||null}function it(e){return e[dc]||null}function Qo(e,t){if(!e)return null;const n=t?it:D0;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(b0)}const an=0,I=1,$=2,pe=3,At=4,$n=5,qe=6,hr=7,be=8,Ko=9,Yo=10,G=11,hc=12,_i=13,ch=14,pr=15,ze=16,Ci=17,mr=18,qt=19,Ti=20,uh=21,ae=22,pc=1,lh=2,Jo=7,gr=9,Ke=10;function ht(e){return Array.isArray(e)&&"object"==typeof e[pc]}function kt(e){return Array.isArray(e)&&!0===e[pc]}function mc(e){return 0!=(4&e.flags)}function Ii(e){return e.componentOffset>-1}function Zo(e){return 1==(1&e.flags)}function Ot(e){return!!e.template}function w0(e){return 0!=(256&e[$])}function qn(e,t){return e.hasOwnProperty(sn)?e[sn]:null}class C0{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function hh(e){return e.type.prototype.ngOnChanges&&(e.setInput=I0),T0}function T0(){const e=mh(this),t=e?.current;if(t){const n=e.previous;if(n===on)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function I0(e,t,n,r){const i=this.declaredInputs[n],o=mh(e)||function M0(e,t){return e[ph]=t}(e,{previous:on,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new C0(c&&c.currentValue,t,a===on),e[r]=t}const ph="__ngSimpleChanges__";function mh(e){return e[ph]||null}const Et=function(e,t,n){};function Be(e){for(;Array.isArray(e);)e=e[an];return e}function pt(e,t){return Be(t[e.index])}function ot(e,t){const n=t[e];return ht(n)?n:n[an]}function ns(e){return 64==(64&e[$])}function In(e,t){return null==t?null:e[t]}function Dh(e){e[mr]=0}function yc(e,t){e[$n]+=t;let n=e,r=e[pe];for(;null!==r&&(1===t&&1===n[$n]||-1===t&&0===n[$n]);)r[$n]+=t,n=r,r=r[pe]}const H={lFrame:Ah(null),bindingsEnabled:!0};function Eh(){return H.bindingsEnabled}function S(){return H.lFrame.lView}function K(){return H.lFrame.tView}function je(){let e=wh();for(;null!==e&&64===e.type;)e=e.parent;return e}function wh(){return H.lFrame.currentTNode}function zt(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function vc(){return H.lFrame.isParent}function $0(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,bc(t)}function bc(e){H.lFrame.currentDirectiveIndex=e}function wc(e){H.lFrame.currentQueryIndex=e}function z0(e){const t=e[I];return 2===t.type?t.declTNode:1===t.type?e[qe]:null}function Ih(e,t,n){if(n&B.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&B.Host||(i=z0(o),null===i||(o=o[pr],10&i.type))););if(null===i)return!1;t=i,e=o}const r=H.lFrame=Mh();return r.currentTNode=t,r.lView=e,!0}function Sc(e){const t=Mh(),n=e[I];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Mh(){const e=H.lFrame,t=null===e?null:e.child;return null===t?Ah(e):t}function Ah(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 kh(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Oh=kh;function _c(){const e=kh();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 zn(e){H.lFrame.selectedIndex=e}function rs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[mr]+=65536),(a>11>16&&(3&e[$])===t){e[$]+=2048,Et(4,a,o);try{o.call(a)}finally{Et(5,a,o)}}}else{Et(4,a,o);try{o.call(a)}finally{Et(5,a,o)}}}const Dr=-1;class Ai{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ic(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[pr],n--;return r}let Mc=!0;function cs(e){const t=Mc;return Mc=e,t}const Lh=255,Bh=5;let oS=0;const Gt={};function us(e,t){const n=jh(e,t);if(-1!==n)return n;const r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Ac(r.data,e),Ac(t,null),Ac(r.blueprint,null));const i=kc(e,t),o=e.injectorIndex;if(function Rh(e){return e!==Dr}(i)){const s=ss(i),a=as(i,t),c=a[I].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function Ac(e,t){e.push(0,0,0,0,0,0,0,0,t)}function jh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function kc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Gh(i),null===r)return Dr;if(n++,i=i[pr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Dr}function Oc(e,t,n){!function sS(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(wi)&&(r=n[wi]),null==r&&(r=n[wi]=oS++);const i=r&Lh;t.data[e+(i>>Bh)]|=1<=0?t&Lh:lS:t}(n);if("function"==typeof o){if(!Ih(t,e,r))return r&B.Host?Vh(i,0,r):Hh(t,n,r,i);try{const s=o(r);if(null!=s||r&B.Optional)return s;Uo()}finally{Oh()}}else if("number"==typeof o){let s=null,a=jh(e,t),c=Dr,u=r&B.Host?t[ze][qe]:null;for((-1===a||r&B.SkipSelf)&&(c=-1===a?kc(e,t):t[a+8],c!==Dr&&zh(r,!1)?(s=t[I],a=ss(c),t=as(c,t)):a=-1);-1!==a;){const l=t[I];if(qh(o,a,l.data)){const f=cS(a,t,n,s,r,u);if(f!==Gt)return f}c=t[a+8],c!==Dr&&zh(r,t[I].data[a+8]===u)&&qh(o,a,t)?(s=l,a=ss(c),t=as(c,t)):a=-1}}return i}function cS(e,t,n,r,i,o){const s=t[I],a=s.data[e+8],l=function ls(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,c=e.directiveStart,l=o>>20,d=i?a+l:e.directiveEnd;for(let h=r?a:a+l;h=c&&p.type===n)return h}if(i){const h=s[c];if(h&&Ot(h)&&h.type===n)return c}return null}(a,s,n,null==r?Ii(a)&&Mc:r!=s&&0!=(3&a.type),i&B.Host&&o===a);return null!==l?Gn(t,s,l,a):Gt}function Gn(e,t,n,r){let i=e[n];const o=t.data;if(function tS(e){return e instanceof Ai}(i)){const s=i;s.resolving&&function t0(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new O(-200,`Circular dependency in DI detected for ${e}${n}`)}(X(o[n]));const a=cs(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Dt(s.injectImpl):null;Ih(e,r,B.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Z0(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=hh(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==c&&Dt(c),cs(a),s.resolving=!1,Oh()}}return i}function qh(e,t,n){return!!(n[t+(e>>Bh)]&1<Array.isArray(n)?Wn(n,t):t(n))}function fs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var st=(()=>((st=st||{})[st.Important=1]="Important",st[st.DashCase=2]="DashCase",st))();const Uc=new Map;let BS=0;const qc="__ngContext__";function Ge(e,t){ht(t)?(e[qc]=t[Ti],function VS(e){Uc.set(e[Ti],e)}(t)):e[qc]=t}let zc;function Gc(e,t){return zc(e,t)}function Li(e){const t=e[pe];return kt(t)?t[pe]:t}function Wc(e){return mp(e[_i])}function Qc(e){return mp(e[At])}function mp(e){for(;null!==e&&!kt(e);)e=e[At];return e}function Ir(e,t,n,r,i){if(null!=r){let o,s=!1;kt(r)?o=r:ht(r)&&(s=!0,r=r[an]);const a=Be(r);0===e&&null!==n?null==i?Ep(t,n,a):Qn(t,n,a,i||null,!0):1===e&&null!==n?Qn(t,n,a,i||null,!0):2===e?function tu(e,t,n){const r=function ys(e,t){return e.parentNode(t)}(e,t);r&&function s_(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function u_(e,t,n,r,i){const o=n[Jo];o!==Be(n)&&Ir(t,e,r,o,i);for(let a=Ke;a=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===$t.None||o===$t.Emulated)return null}return pt(r,n)}}(e,t.parent,n)}function Qn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Ep(e,t,n){e.appendChild(t,n)}function wp(e,t,n,r,i){null!==r?Qn(e,t,n,r,i):Ep(e,t,n)}let Zc,iu,Cp=function _p(e,t,n){return 40&e.type?pt(e,n):null};function vs(e,t,n,r){const i=Dp(e,r,t),o=t[G],a=function Sp(e,t,n){return Cp(e,t,n)}(r.parent||t[qe],r,t);if(null!=i)if(Array.isArray(n))for(let c=0;c{const s=o;lu(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&Kp(i,n),n}function Kp(e,t){for(let n=0;n{t.push(o)})}}function lu(e,t,n,r){if(!(e=x(e)))return!1;let i=null,o=Zd(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=Zd(c),!o)return!1;i=c}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of c)lu(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Wn(o.imports,l=>{lu(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}void 0!==u&&Kp(u,t)}if(!a){const u=qn(i)||(()=>new i);t.push({provide:i,useFactory:u,deps:J},{provide:Gp,useValue:i,multi:!0},{provide:qp,useValue:()=>V(i),multi:!0})}const c=o.providers;null==c||a||fu(c,l=>{t.push(l)})}}return i!==e&&void 0!==e.providers}function fu(e,t){for(let n of e)sc(n)&&(n=n.\u0275providers),Array.isArray(n)?fu(n,t):t(n)}const H_=re({provide:String,useValue:re});function du(e){return null!==e&&"object"==typeof e&&H_ in e}function Kn(e){return"function"==typeof e}const hu=new F("Set Injector scope."),Ss={},$_={};let pu;function _s(){return void 0===pu&&(pu=new Wp),pu}class Yn{}class Xp extends Yn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,gu(t,s=>this.processProvider(s)),this.records.set(zp,Ar(void 0,this)),i.has("environment")&&this.records.set(Yn,Ar(void 0,this));const o=this.records.get(hu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Gp.multi,J,B.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=dr(this),r=Dt(void 0);try{return t()}finally{dr(n),Dt(r)}}get(t,n=vi,r=B.Default){this.assertNotDestroyed(),r=Go(r);const i=dr(this),o=Dt(void 0);try{if(!(r&B.SkipSelf)){let a=this.records.get(t);if(void 0===a){const c=function Q_(e){return"function"==typeof e||"object"==typeof e&&e instanceof F}(t)&&$o(t);a=c&&this.injectableDefInScope(c)?Ar(mu(t),Ss):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&B.Self?_s():this.parent).get(t,n=r&B.Optional&&n===vi?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[zo]=s[zo]||[]).unshift(ie(t)),i)throw s;return function m0(e,t,n,r){const i=e[zo];throw t[nh]&&i.unshift(t[nh]),e.message=function g0(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==d0?e.slice(2):e;let i=ie(t);if(Array.isArray(t))i=t.map(ie).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ie(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(f0,"\n ")}`}("\n"+e.message,i,n,r),e[l0]=i,e[zo]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Dt(o),dr(i)}}resolveInjectorInitializers(){const t=dr(this),n=Dt(void 0);try{const r=this.get(qp.multi,J,B.Self);for(const i of r)i()}finally{dr(t),Dt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(t){let n=Kn(t=x(t))?t:x(t&&t.provide);const r=function z_(e){return du(e)?Ar(void 0,e.useValue):Ar(function Zp(e,t,n){let r;if(Kn(e)){const i=x(e);return qn(i)||mu(i)}if(du(e))r=()=>x(e.useValue);else if(function Jp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...lc(e.deps||[]));else if(function Yp(e){return!(!e||!e.useExisting)}(e))r=()=>V(x(e.useExisting));else{const i=x(e&&(e.useClass||e.provide));if(!function G_(e){return!!e.deps}(e))return qn(i)||mu(i);r=()=>new i(...lc(e.deps))}return r}(e),Ss)}(t);if(Kn(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Ar(void 0,Ss,!0),i.factory=()=>lc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ss&&(n.value=$_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function W_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=x(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function mu(e){const t=$o(e),n=null!==t?t.factory:qn(e);if(null!==n)return n;if(e instanceof F)throw new O(204,!1);if(e instanceof Function)return function q_(e){const t=e.length;if(t>0)throw function xi(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new O(204,!1)}function Ar(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function gu(e,t){for(const n of e)Array.isArray(n)?gu(n,t):n&&sc(n)?gu(n.\u0275providers,t):t(n)}class K_{}class em{}class J_{resolveComponentFactory(t){throw function Y_(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Cs=(()=>{class e{}return e.NULL=new J_,e})();function X_(){return kr(je(),S())}function kr(e,t){return new Or(pt(e,t))}let Or=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=X_,e})();class nm{}let tC=(()=>{class e{}return e.\u0275prov=Y({token:e,providedIn:"root",factory:()=>null}),e})();class yu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nC=new yu("15.2.9"),vu={},Du="ngOriginalError";function bu(e){return e[Du]}class Nr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&bu(t);for(;n&&bu(n);)n=bu(n);return n||null}}function om(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}const sm="ng-template";function hC(e,t,n){let r=0,i=!0;for(;ro?"":i[f+1].toLowerCase();const h=8&r?d:null;if(h&&-1!==om(h,u,0)||2&r&&u!==d){if(Nt(r))return!1;s=!0}}}}else{if(!s&&!Nt(r)&&!Nt(c))return!1;if(s&&Nt(c))continue;s=!1,r=c|1&r}}return Nt(r)||s}function Nt(e){return 0==(1&e)}function gC(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Nt(s)&&(t+=um(o,i),i=""),r=s,o=o||!Nt(r);n++}return""!==i&&(t+=um(o,i)),t}const U={};function pm(e,t=null,n=null,r){const i=mm(e,t,n,r);return i.resolveInjectorInitializers(),i}function mm(e,t=null,n=null,r,i=new Set){const o=[n||J,V_(e)];return r=r||("object"==typeof e?void 0:ie(e)),new Xp(o,t||_s(),r||null,i)}let Jn=(()=>{class e{static create(n,r){if(Array.isArray(n))return pm({name:""},r,n,"");{const i=n.name??"";return pm({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=vi,e.NULL=new Wp,e.\u0275prov=Y({token:e,providedIn:"any",factory:()=>V(zp)}),e.__NG_ELEMENT_ID__=-1,e})();function k(e,t=B.Default){const n=S();return null===n?V(e,t):Uh(je(),n,x(e),t)}function wm(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rae&&function lm(e,t,n,r){if(!r)if(3==(3&t[$])){const o=e.preOrderCheckHooks;null!==o&&is(t,o,n)}else{const o=e.preOrderHooks;null!==o&&os(t,o,0,n)}zn(n)}(e,t,ae,!1),Et(s?2:0,i),n(r,i)}finally{zn(o),Et(s?3:1,i)}}function Iu(e,t,n){if(mc(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(e,t,r,Ui(e,n,i.hostVars,U),i)}function lT(e,t,n,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let c=0;c0&&Pu(n)}}function Pu(e){for(let r=Wc(e);null!==r;r=Qc(r))for(let i=Ke;i0&&Pu(o)}const n=e[I].components;if(null!==n)for(let r=0;r0&&Pu(i)}}function mT(e,t){const n=ot(t,e),r=n[I];(function gT(e,t){for(let n=t.length;n-1&&(function Jc(e,t){if(e.length<=Ke)return;const n=Ke+t,r=e[n];if(r){const i=r[Ci];null!==i&&i!==e&&yp(i,r),t>0&&(e[n-1][At]=r[At]);const o=fs(e,Ke+t);!function XS(e,t){Bi(e,t,t[G],2,null,null),t[an]=null,t[qe]=null}(r[I],r);const s=o[qt];null!==s&&s.detachView(o[I]),r[pe]=null,r[At]=null,r[$]&=-65}return r}(t,r),fs(n,r))}this._attachedToViewContainer=!1}!function vp(e,t){if(!(128&t[$])){const n=t[G];n.destroyNode&&Bi(e,t,n,3,null,null),function t_(e){let t=e[_i];if(!t)return Xc(e[I],e);for(;t;){let n=null;if(ht(t))n=t[_i];else{const r=t[Ke];r&&(n=r)}if(!n){for(;t&&!t[At]&&t!==e;)ht(t)&&Xc(t[I],t),t=t[pe];null===t&&(t=e),ht(t)&&Xc(t[I],t),n=t&&t[At]}t=n}}(t)}}(this._lView[I],this._lView)}onDestroy(t){!function Cm(e,t,n,r){const i=Om(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Nm(e).push(r,i.length-1))}(this._lView[I],this._lView,null,t)}markForCheck(){ks(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-65}reattach(){this._lView[$]|=64}detectChanges(){Os(this._lView[I],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function e_(e,t){Bi(e,t,t[G],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=t}}class yT extends $i{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Os(t[I],t,t[be],!1)}checkNoChanges(){}get context(){return null}}class Fm extends Cs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new qi(n,this.ngModule)}}function Rm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class DT{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Go(r);const i=this.injector.get(t,vu,r);return i!==vu||n===vu?i:this.parentInjector.get(t,n,r)}}class qi extends em{get inputs(){return Rm(this.componentDef.inputs)}get outputs(){return Rm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function wC(e){return e.map(EC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Yn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new DT(t,o):t,a=s.get(nm,null);if(null===a)throw new O(407,!1);const c=s.get(tC,null),u=a.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=r?function QC(e,t,n){return e.selectRootElement(t,n===$t.ShadowDom)}(u,r,this.componentDef.encapsulation):Yc(u,l,function vT(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(l)),d=this.componentDef.onPush?288:272,h=ku(0,null,null,1,0,null,null,null,null,null),p=Is(null,h,null,d,null,null,a,u,c,s,null);let g,v;Sc(p);try{const m=this.componentDef;let D,y=null;m.findHostDirectiveDefs?(D=[],y=new Map,m.findHostDirectiveDefs(m,D,y),D.push(m)):D=[m];const E=function ET(e,t){const n=e[I],r=ae;return e[r]=t,Fr(n,r,2,"#host",null)}(p,f),C=function wT(e,t,n,r,i,o,s,a){const c=i[I];!function ST(e,t,n,r){for(const i of e)t.mergedAttrs=ki(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Ns(t,t.mergedAttrs,!0),null!==n&&kp(r,n,t))}(r,e,t,s);const u=o.createRenderer(t,n),l=Is(i,_m(n),null,n.onPush?32:16,i[e.index],e,o,u,a||null,null,null);return c.firstCreatePass&&Nu(c,e,r.length-1),As(i,l),i[e.index]=l}(E,f,m,D,p,a,u);v=function vh(e,t){return e.data[t]}(h,ae),f&&function CT(e,t,n,r){if(r)Ic(e,n,["ng-version",nC.full]);else{const{attrs:i,classes:o}=function SC(e){const t=[],n=[];let r=1,i=2;for(;r0&&Ap(e,n,o.join(" "))}}(u,m,f,r),void 0!==n&&function TT(e,t,n){const r=e.projection=[];for(let i=0;is(Be(E[r.index])):r.index;let y=null;if(!s&&a&&(y=function KT(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,d=!1;else{o=ig(r,t,l,o,!1);const E=n.listen(v,i,o);f.push(o,E),u&&u.push(i,D,m,m+1)}}else o=ig(r,t,l,o,!1);const h=r.outputs;let p;if(d&&null!==h&&(p=h[i])){const g=p.length;if(g)for(let v=0;v-1?ot(e.index,t):t);let c=rg(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=rg(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&!1===c&&(s.preventDefault(),s.returnValue=!1),c}}function Qe(e,t=""){const n=S(),r=K(),i=e+ae,o=r.firstCreatePass?Fr(r,i,1,t,null):r.data[i],s=n[i]=function Kc(e,t){return e.createText(t)}(n[G],t);vs(r,n,s,o),zt(o,!1)}const Qr="en-US";let Jg=Qr;class Kr{}class HM{}class Sy extends Kr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fm(this);const r=function dt(e,t){const n=e[ih]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function fn(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=mm(t,n,[{provide:Kr,useValue:this},{provide:Cs,useValue:this.componentFactoryResolver}],ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class tl extends HM{constructor(t){super(),this.moduleType=t}create(t){return new Sy(this.moduleType,t)}}function rl(e){return t=>{setTimeout(e,void 0,t)}}const hn=class yA extends Bo{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=rl(o),i&&(i=rl(i)),s&&(s=rl(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof It&&t.add(a),a}};function qs(...e){}const cv=new F("Application Initializer");let zs=(()=>{class e{constructor(n){this.appInits=n,this.resolve=qs,this.reject=qs,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:c})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(V(cv,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const to=new F("AppId",{providedIn:"root",factory:function uv(){return`${ml()}${ml()}${ml()}`}});function ml(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lv=new F("Platform Initializer"),gl=new F("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mn=new F("LocaleId",{providedIn:"root",factory:()=>bi(mn,B.Optional|B.SkipSelf)||function ek(){return typeof $localize<"u"&&$localize.locale||Qr}()}),ok=(()=>Promise.resolve(0))();function yl(e){typeof Zone>"u"?ok.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new hn(!1),this.onMicrotaskEmpty=new hn(!1),this.onStable=new hn(!1),this.onError=new hn(!1),typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function sk(){let e=se.requestAnimationFrame,t=se.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uk(e){const t=()=>{!function ck(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Dl(e),e.isCheckStableRunning=!0,vl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Dl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return hv(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),pv(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return hv(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),pv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Dl(e),vl(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ve.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(Ve.isInAngularZone())throw new O(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,ak,qs,qs);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const ak={};function vl(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 Dl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function hv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function pv(e){e._nesting--,vl(e)}class lk{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new hn,this.onMicrotaskEmpty=new hn,this.onStable=new hn,this.onError=new hn}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,i){return t.apply(n,r)}}const mv=new F(""),Gs=new F("");let wl,bl=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,wl||(function fk(e){wl=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ve.assertNotInAngularZone(),yl(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())yl(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(V(Ve),V(El),V(Gs))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),El=(()=>{class e{constructor(){this._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 wl?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const gn=!1;let kn=null;const gv=new F("AllowMultipleToken"),Sl=new F("PlatformDestroyListeners"),dk=new F("appBootstrapListener");function vv(e,t,n=[]){const r=`Platform: ${t}`,i=new F(r);return(o=[])=>{let s=_l();if(!s||s.injector.get(gv,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function mk(e){if(kn&&!kn.get(gv,!1))throw new O(400,!1);kn=e;const t=e.get(bv);(function yv(e){const t=e.get(lv,null);t&&t.forEach(n=>n())})(e)}(function Dv(e=[],t){return Jn.create({name:t,providers:[{provide:hu,useValue:"platform"},{provide:Sl,useValue:new Set([()=>kn=null])},...e]})}(a,r))}return function yk(e){const t=_l();if(!t)throw new O(401,!1);return t}()}}function _l(){return kn?.get(bv)??null}let bv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function wv(e,t){let n;return n="noop"===e?new lk:("zone.js"===e?void 0:e)||new Ve(t),n}(r?.ngZone,function Ev(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Ve,useValue:i}];return i.run(()=>{const s=Jn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),c=a.injector.get(Nr,null);if(!c)throw new O(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{Ws(this._modules,a),u.unsubscribe()})}),function Sv(e,t,n){try{const r=n();return Uu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(c,i,()=>{const u=a.injector.get(zs);return u.runInitializers(),u.donePromise.then(()=>(function Xg(e){vt(e,"Expected localeId to be defined"),"string"==typeof e&&(Jg=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(mn,Qr)||Qr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=_v({},r);return function hk(e,t,n){const r=new tl(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Cl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new O(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new O(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Sl,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(V(Jn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function _v(e,t){return Array.isArray(t)?t.reduce(_v,e):{...e,...t}}let Cl=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new De(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new De(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ve.assertNotInAngularZone(),yl(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Ve.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=function Xw(...e){const t=Vo(e),n=function zw(e,t){return"number"==typeof Za(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Sn(r[0]):Wd(n)(yi(r,t)):Qd}(o,s.pipe(function Zw(e={}){const{connector:t=(()=>new Bo),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,u=0,l=!1,f=!1;const d=()=>{a?.unsubscribe(),a=void 0},h=()=>{d(),s=c=void 0,l=f=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Un((g,v)=>{u++,!f&&!l&&d();const m=c=c??t();v.add(()=>{u--,0===u&&!f&&!l&&(a=tc(p,i))}),m.subscribe(v),!s&&u>0&&(s=new mi({next:D=>m.next(D),error:D=>{f=!0,d(),a=tc(h,n,D),m.error(D)},complete:()=>{l=!0,d(),a=tc(h,r),m.complete()}}),Sn(g).subscribe(s))})(o)}}()))}bootstrap(n,r){const i=n instanceof em;if(!this._injector.get(zs).done){!i&&function Si(e){const t=ee(e)||$e(e)||it(e);return null!==t&&t.standalone}(n);throw new O(405,gn)}let s;s=i?n:this._injector.get(Cs).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function pk(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Kr),u=s.create(Jn.NULL,[],r||s.selector,a),l=u.location.nativeElement,f=u.injector.get(mv,null);return f?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Ws(this.components,u),f?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new O(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ws(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(dk,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ws(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new O(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(V(Ve),V(Yn),V(Nr))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ws(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pk=vv(null,"core",[]);let Fk=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(V(Cl))},e.\u0275mod=Tn({type:e}),e.\u0275inj=nn({}),e})(),kl=null;function Js(){return kl}class Bk{}const Xt=new F("DocumentToken");function qv(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}let eN=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Tn({type:e}),e.\u0275inj=nn({}),e})();class eD{}class ON extends Bk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Wl extends ON{static makeCurrent(){!function Lk(e){kl||(kl=e)}(new Wl)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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 NN(){return so=so||document.querySelector("base"),so?so.getAttribute("href"):null}();return null==n?null:function xN(e){ua=ua||document.createElement("a"),ua.setAttribute("href",e);const t=ua.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){so=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return qv(document.cookie,t)}}let ua,so=null;const oD=new F("TRANSITION_ID"),FN=[{provide:cv,useFactory:function PN(e,t,n){return()=>{n.get(zs).donePromise.then(()=>{const r=Js(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const la=new F("EventManagerPlugins");let fa=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const i=this.usageCount;let o=i.get(n)??0;return o+=r,o>0?i.set(n,o):i.delete(n),o}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),ao=(()=>{class e extends aD{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(o=>o.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const i=this.doc.createElement("style");i.textContent=r,n.appendChild(i);const o=this.styleRef.get(r);o?o.push(i):this.styleRef.set(r,[i])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(V(Xt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const Ql={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Kl=/%COMP%/g,lD=new F("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function fD(e,t){return t.flat(100).map(n=>n.replace(Kl,e))}function dD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Yl=(()=>{class e{constructor(n,r,i,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new Jl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(n,r);return i instanceof mD?i.applyToHost(n):i instanceof Xl&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(r.encapsulation){case $t.Emulated:o=new mD(s,a,r,this.appId,c);break;case $t.ShadowDom:return new qN(s,a,n,r);default:o=new Xl(s,a,r,c)}o.onDestroy=()=>i.delete(r.id),i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(V(fa),V(ao),V(to),V(lD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();class Jl{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Ql[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(pD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(pD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=Ql[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Ql[r];i?t.removeAttributeNS(i,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,i){i&(st.DashCase|st.Important)?t.style.setProperty(n,r,i&st.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&st.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,dD(r)):this.eventManager.addEventListener(t,n,dD(r))}}function pD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class qN extends Jl{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=fD(i.id,i.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}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(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Xl extends Jl{constructor(t,n,r,i,o=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=fD(o,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class mD extends Xl{constructor(t,n,r,i,o){const s=i+"-"+r.id;super(t,n,r,o,s),this.contentAttr=function HN(e){return"_ngcontent-%COMP%".replace(Kl,e)}(s),this.hostAttr=function UN(e){return"_nghost-%COMP%".replace(Kl,e)}(s)}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}}let zN=(()=>{class e extends sD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)(V(Xt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const gD=["alt","control","meta","shift"],GN={"\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"},WN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let QN=(()=>{class e extends sD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Js().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),gD.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=GN[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),gD.forEach(s=>{s!==i&&(0,WN[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(V(Xt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const vD=[{provide:gl,useValue:"browser"},{provide:lv,useValue:function KN(){Wl.makeCurrent()},multi:!0},{provide:Xt,useFactory:function JN(){return function m_(e){iu=e}(document),document},deps:[]}],XN=vv(Pk,"browser",vD),DD=new F(""),bD=[{provide:Gs,useClass:class RN{addToWindow(t){se.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},se.getAllAngularTestabilities=()=>t.getAllTestabilities(),se.getAllAngularRootElements=()=>t.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(r=>{const i=se.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(c){s=s||c,o--,0==o&&r(s)};i.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Js().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:mv,useClass:bl,deps:[Ve,El,Gs]},{provide:bl,useClass:bl,deps:[Ve,El,Gs]}],ED=[{provide:hu,useValue:"root"},{provide:Nr,useFactory:function YN(){return new Nr},deps:[]},{provide:la,useClass:zN,multi:!0,deps:[Xt,Ve,gl]},{provide:la,useClass:QN,multi:!0,deps:[Xt]},{provide:Yl,useClass:Yl,deps:[fa,ao,to,lD]},{provide:nm,useExisting:Yl},{provide:aD,useExisting:ao},{provide:ao,useClass:ao,deps:[Xt]},{provide:fa,useClass:fa,deps:[la,Ve]},{provide:eD,useClass:LN,deps:[]},[]];let ZN=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:to,useValue:n.appId},{provide:oD,useExisting:to},FN]}}}return e.\u0275fac=function(n){return new(n||e)(V(DD,12))},e.\u0275mod=Tn({type:e}),e.\u0275inj=nn({providers:[...ED,...bD],imports:[eN,Fk]}),e})();function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function ue(e,t,n){return(t=function cx(e){var t=function ax(e,t){if("object"!==co(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===co(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}typeof window<"u"&&window;class ux extends It{constructor(t,n){super()}schedule(t,n=0){return this}}const da={setInterval(e,t,...n){const{delegate:r}=da;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){const{delegate:t}=da;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};class lx extends ux{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 i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return da.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&&da.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 i,r=!1;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,fr(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}}const _D={now:()=>(_D.delegate||Date).now(),delegate:void 0};class uo{constructor(t,n=uo.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}uo.now=_D.now;class dx extends uo{constructor(t,n=uo.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 px=new class hx extends dx{}(class fx extends lx{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)}});var te=(()=>{return(e=te||(te={}))[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",te;var e})();function lo(e){return!!e&&e<7}var tf="Invariant Violation",CD=Object.setPrototypeOf,mx=void 0===CD?function(e,t){return e.__proto__=t,e}:CD,TD=function(e){function t(n){void 0===n&&(n=tf);var r=e.call(this,"number"==typeof n?tf+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=tf,mx(r,t.prototype),r}return Mt(t,e),t}(Error);function nr(e,t){if(!e)throw new TD(t)}var e,ha=["debug","log","warn","error","silent"],nf=ha.indexOf("log");function pa(e){return function(){if(ha.indexOf(e)>=nf)return(console[e]||console.log).apply(console,arguments)}}(e=nr||(nr={})).debug=pa("debug"),e.log=pa("log"),e.warn=pa("warn"),e.error=pa("error");var rf="3.8.6";function Bt(e){try{return e()}catch{}}const ID=Bt(function(){return globalThis})||Bt(function(){return window})||Bt(function(){return self})||Bt(function(){return global})||Bt(function(){return Bt.constructor("return this")()});var MD=new Map;function of(e){var t=MD.get(e)||1;return MD.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function AD(e,t){void 0===t&&(t=0);var n=of("stringifyForDisplay");return JSON.stringify(e,function(r,i){return void 0===i?n:i},t).split(JSON.stringify(n)).join("")}function ma(e){return function(t){for(var n=[],r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,a=!1,u=arguments[1];return new o(function(l){return i.subscribe({next:function(f){var d=!a;if(a=!0,!d||s)try{u=r(u,f)}catch(h){return l.error(h)}else u=f},error:function(f){l.error(f)},complete:function(){if(!a&&!s)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(u),l.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,o=new Array(i),s=0;s=0&&a.splice(d,1),u()}});a.push(f)},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[df]=function(){return this},e.from=function(r){var i="function"==typeof this?this:e;if(null==r)throw new TypeError(r+" is not an object");var o=ga(r,df);if(o){var s=o.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function Dx(e){return e instanceof ce}(s)&&s.constructor===i?s:new i(function(a){return s.subscribe(a)})}if(lf("iterator")&&(o=ga(r,vx)))return new i(function(a){ya(function(){if(!a.closed){for(var u,c=function gx(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function yx(e,t){if(e){if("string"==typeof e)return ND(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 ND(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.")}(o.call(r));!(u=c()).done;)if(a.next(u.value),a.closed)return;a.complete()}})});if(Array.isArray(r))return new i(function(a){ya(function(){if(!a.closed){for(var c=0;c"u"&&(L(1===r.length,71,r.length),n=r[0].name.value),b(b({},e),{definitions:En([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function va(e){void 0===e&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Da(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 L(r,72,n),r||null;default:return null}}function Zr(e){return{__ref:String(e)}}function ne(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ei(e,t,n,r){if(function Mx(e){return"IntValue"===e.kind}(n)||function Ax(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function Ix(e){return"BooleanValue"===e.kind}(n)||function Tx(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function Ox(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(s){return ei(i,s.name,s.value,r)}),e[t.value]=i}else if(function kx(e){return"Variable"===e.kind}(n))e[t.value]=(r||{})[n.name.value];else if(function Nx(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(s){var a={};return ei(a,t,s,r),a[t.value]});else if(function xx(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function Px(e){return"NullValue"===e.kind}(n))throw et(81,t.value,n.kind);e[t.value]=null}}uf()&&Object.defineProperty(ce,Symbol("extensions"),{value:{symbol:df,hostReportError:Xr},configurable:!0});var Rx=["connection","include","skip","client","rest","export","nonreactive"],mf=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 i={};return r.forEach(function(a){i[a]=t[a]}),"".concat(n.connection.key,"(").concat(ho(i),")")}return n.connection.key}var o=e;if(t){var s=ho(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){-1===Rx.indexOf(a)&&(n[a]&&Object.keys(n[a]).length?o+="@".concat(a,"(").concat(ho(n[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=ho;return ho=e,t}}),ho=function(t){return JSON.stringify(t,Lx)};function Lx(e,t){return le(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(n,r){return n[r]=t[r],n},{})),t}function ba(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){return ei(n,r.name,r.value,t)}),n}return null}function Nn(e){return e.alias?e.alias.value:e.name.value}function gf(e,t,n){for(var r,i=0,o=t.selections;ijD)return"[Array]";const n=Math.min(Ux,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function zx(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>jD?"["+function Wx(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(([i,o])=>i+": "+_a(o,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class Qx{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 VD{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,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 HD={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"]},Kx=new Set(Object.keys(HD));function UD(e){const t=e?.kind;return"string"==typeof t&&Kx.has(t)}var rr=(()=>(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(rr||(rr={})),rr))(),M=(()=>(function(e){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"}(M||(M={})),M))();const ir=Object.freeze({});function vn(e,t,n=HD){const r=new Map;for(const m of Object.values(M))r.set(m,Ef(t,m));let i,l,f,o=Array.isArray(e),s=[e],a=-1,c=[],u=e;const d=[],h=[];do{a++;const m=a===s.length,D=m&&0!==c.length;if(m){if(l=0===h.length?void 0:d[d.length-1],u=f,f=h.pop(),D)if(o){u=u.slice();let E=0;for(const[C,_]of c){const P=C-E;null===_?(u.splice(P,1),E++):u[P]=_}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[E,C]of c)u[E]=C}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(f){if(l=o?a:s[a],u=f[l],null==u)continue;d.push(l)}let y;if(!Array.isArray(u)){var p,g;if(UD(u)||Sa(!1,`Invalid AST Node: ${bf(u)}.`),y=(m?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)?.call(t,u,l,f,d,h),y===ir)break;if(!1===y){if(!m){d.pop();continue}}else if(void 0!==y&&(c.push([l,y]),!m)){if(!UD(y)){d.pop();continue}u=y}}var v;void 0===y&&D&&c.push([l,u]),m?d.pop():(i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(u),s=o?u:null!==(v=n[u.kind])&&void 0!==v?v:[],a=-1,c=[],f&&h.push(f),f=u)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function Ef(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 vo(e,t){var n=e.directives;return!n||!n.length||function Xx(e){var t=[];return e&&e.length&&e.forEach(function(n){if(function Jx(e){var t=e.name.value;return"skip"===t||"include"===t}(n)){var r=n.arguments,i=n.name.value;L(r&&1===r.length,67,i);var o=r[0];L(o.name&&"if"===o.name.value,68,i);var s=o.value;L(s&&("Variable"===s.kind||"BooleanValue"===s.kind),69,i),t.push({directive:n,ifArgument:o})}}),t}(n).every(function(r){var i=r.directive,o=r.ifArgument,s=!1;return"Variable"===o.value.kind?L(void 0!==(s=t&&t[o.value.name.value]),66,i.name.value):s=o.value.value,"skip"===i.name.value?!s:s})}function or(e,t,n){var r=new Set(e),i=r.size;return vn(t,{Directive:function(o){if(r.delete(o.name.value)&&(!n||!r.size))return ir}}),n?!r.size:r.size=0});var Sf=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},_f=Symbol(),pP=function(e){var t=En(En(En([],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")},ni=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=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=i||[],u.clientErrors=o||[],u.networkError=s||null,u.message=a||pP(u),u.extraInfo=c,u.__proto__=t.prototype,u}return Mt(t,e),t}(Error),ye=Array.isArray;function Zt(e){return Array.isArray(e)&&e.length>0}var mP=Object.prototype.hasOwnProperty;function GD(){for(var e=[],t=0;t1)for(var r=new Pn,i=1;i=0;--a){var c=s[a],l=isNaN(+c)?{}:[];l[c]=o,o=l}n=r.merge(n,o)}),n}var QD=Object.prototype.hasOwnProperty;function EP(e){var t={};return e.split("\n").forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();t[i]=o}}),t}function KD(e,t){e.status>=300&&Sf(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(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function Tf(e){return 9===e||32===e}function Do(e){return e>=48&&e<=57}function YD(e){return e>=97&&e<=122||e>=65&&e<=90}function JD(e){return YD(e)||95===e}function CP(e){return YD(e)||Do(e)||95===e}function TP(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s0===a?s:s.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function IP(e){let t=0;for(;te.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>A(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Q("(",A(e.variableDefinitions,", "),")"),n=A([e.operation,A([e.name,t]),A(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Q(" = ",n)+Q(" ",A(r," "))},SelectionSet:{leave:({selections:e})=>jt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Q("",e,": ")+t;let s=o+Q("(",A(n,", "),")");return s.length>80&&(s=o+Q("(\n",Ta(A(n,"\n")),"\n)")),A([s,A(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Q(" ",A(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>A(["...",Q("on ",e),A(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Q("(",A(n,", "),")")} on ${t} ${Q("",A(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function MP(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(h=>0===h.length||Tf(h.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=a||c,l=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s);let f="";const d=i&&Tf(e.charCodeAt(0));return(l&&!d||o)&&(f+="\n"),f+=n,(l||u)&&(f+="\n"),'"""'+f+'"""'}(e):function AP(e){return`"${e.replace(kP,OP)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+A(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+A(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Q("(",A(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Q("",e,"\n")+A(["schema",A(t," "),jt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+A(["scalar",t,A(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+A(["type",t,Q("implements ",A(n," & ")),A(r," "),jt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Q("",e,"\n")+t+(ZD(n)?Q("(\n",Ta(A(n,"\n")),"\n)"):Q("(",A(n,", "),")"))+": "+r+Q(" ",A(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Q("",e,"\n")+A([t+": "+n,Q("= ",r),A(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+A(["interface",t,Q("implements ",A(n," & ")),A(r," "),jt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Q("",e,"\n")+A(["union",t,A(n," "),Q("= ",A(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Q("",e,"\n")+A(["enum",t,A(n," "),jt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+A([t,A(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Q("",e,"\n")+A(["input",t,A(n," "),jt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Q("",e,"\n")+"directive @"+t+(ZD(n)?Q("(\n",Ta(A(n,"\n")),"\n)"):Q("(",A(n,", "),")"))+(r?" repeatable":"")+" on "+A(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>A(["extend schema",A(e," "),jt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>A(["extend scalar",e,A(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend type",e,Q("implements ",A(t," & ")),A(n," "),jt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend interface",e,Q("implements ",A(t," & ")),A(n," "),jt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>A(["extend union",e,A(t," "),Q("= ",A(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>A(["extend enum",e,A(t," "),jt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>A(["extend input",e,A(t," "),jt(n)]," ")}};function A(e,t=""){var n;return null!==(n=e?.filter(r=>r).join(t))&&void 0!==n?n:""}function jt(e){return Q("{\n",Ta(A(e,"\n")),"\n}")}function Q(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ta(e){return Q(" ",e.replace(/\n/g,"\n "))}function ZD(e){var t;return null!==(t=e?.some(n=>n.includes("\n")))&&void 0!==t&&t}var ii=Dn?new WeakMap:void 0,eb=function(e){var t;return t=ii?.get(e),t||(t=XD(e),ii?.set(e,t)),t},BP={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},tb=function(e,t){return t(e)};function If(e){return new ce(function(t){t.error(e)})}var rb={kind:M.FIELD,name:{kind:M.NAME,value:"__typename"}};function ib(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===M.FRAGMENT_SPREAD&&ib(t[n.name.value],t)})}function Mf(e){return ib(mo(e)||function jx(e){L("Document"===e.kind,77),L(e.definitions.length<=1,78);var t=e.definitions[0];return L("FragmentDefinition"===t.kind,79),t}(e),va(Ea(e)))?null:e}function sb(e){var t=new Map;return function(r){void 0===r&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function Af(e,t){po(t);for(var n=sb(""),r=sb(""),i=function(m){for(var D=0,y=void 0;D=0;--s)t.definitions[s].kind===M.OPERATION_DEFINITION&&++o;var a=function ob(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 i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(o,s){s(r)&&(i=o)}),i}}(e),c=function(m){return Zt(m)&&m.map(a).some(function(D){return D&&D.remove})},u=new Map,l=!1,f={enter:function(m){if(c(m.directives))return l=!0,null}},d=vn(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(m,D,y,E,C){var _=i(C);_&&_.variables.add(m.name.value)}},FragmentSpread:{enter:function(m,D,y,E,C){if(c(m.directives))return l=!0,null;var _=i(C);_&&_.fragmentSpreads.add(m.name.value)}},FragmentDefinition:{enter:function(m,D,y,E){u.set(JSON.stringify(E),m)},leave:function(m,D,y,E){return m===u.get(JSON.stringify(E))?m:o>0&&m.selectionSet.selections.every(function(_){return _.kind===M.FIELD&&"__typename"===_.name.value})?(r(m.name.value).removed=!0,l=!0,null):void 0}},Directive:{leave:function(m){if(a(m))return l=!0,null}}});if(!l)return t;var h=function(m){return m.transitiveVars||(m.transitiveVars=new Set(m.variables),m.removed||m.fragmentSpreads.forEach(function(D){h(r(D)).transitiveVars.forEach(function(y){m.transitiveVars.add(y)})})),m},p=new Set;d.definitions.forEach(function(m){m.kind===M.OPERATION_DEFINITION?h(n(m.name&&m.name.value)).fragmentSpreads.forEach(function(D){p.add(D)}):m.kind===M.FRAGMENT_DEFINITION&&0===o&&!r(m.name.value).removed&&p.add(m.name.value)}),p.forEach(function(m){h(r(m)).fragmentSpreads.forEach(function(D){p.add(D)})});var v={enter:function(m){if(function(m){return!(p.has(m)&&!r(m).removed)}(m.name.value))return null}};return Mf(vn(d,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave:function(m){if(m.variableDefinitions){var D=h(n(m.name&&m.name.value)).transitiveVars;if(D.size"u")throw et(37)}(r||cb);var d={http:{includeExtensions:s,preserveHeaderCase:a},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new ti(function(h){var p=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(h,n),g=h.getContext(),v={};if(g.clientAwareness){var m=g.clientAwareness,D=m.name,y=m.version;D&&(v["apollographql-client-name"]=D),y&&(v["apollographql-client-version"]=y)}var E=b(b({},v),g.headers),C={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:E};if(or(["client"],h.query)){var _=ab(h.query);if(!_)return If(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`."));h.query=_}var Oe,P=function nb(e,t){for(var n=[],r=2;r-1;){if(m=void 0,z=[c.slice(0,v),c.slice(v+a.length)],c=z[1],D=(m=z[0]).indexOf("\r\n\r\n"),y=EP(m.slice(0,D)),(E=y["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(C=m.slice(D))if(_=KD(e,C),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)DP(_)?(P={},"payload"in _&&(P=b({},_.payload)),"errors"in _&&(P=b(b({},P),{extensions:b(b({},"extensions"in P?P.extensions:null),(ke={},ke[_f]=_.errors,ke))})),t(P)):t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2];v=c.indexOf(a)}return[3,1];case 3:return[2]}})})}(pi,rw):function SP(e){return function(t){return t.text().then(function(n){return KD(t,n)}).then(function(n){return t.status>=300&&Sf(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!QD.call(n,"data")&&!QD.call(n,"errors")&&Sf(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}(h)(pi).then(rw)}).then(function(){Oe=void 0,Tt.complete()}).catch(function(pi){Oe=void 0,function wP(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(pi,Tt)}),function(){Oe&&Oe.abort()}})})},QP=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,WP(n).request)||this;return r.options=n,r}return Mt(t,e),t}(ti);const{toString:ub,hasOwnProperty:KP}=Object.prototype,lb=Function.prototype.toString,Of=new Map;function ve(e,t){try{return Nf(e,t)}finally{Of.clear()}}const fb=ve;function Nf(e,t){if(e===t)return!0;const n=ub.call(e);if(n!==ub.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(hb(e,t))return!0;const i=db(e),o=db(t),s=i.length;if(s!==o.length)return!1;for(let a=0;a=0&&e.indexOf(t,n)===n}(i,JP)}}return!1}function db(e){return Object.keys(e).filter(YP,e)}function YP(e){return void 0!==this[e]}const JP="{ [native code] }";function hb(e,t){let n=Of.get(e);if(n){if(n.has(t))return!0}else Of.set(e,n=new Set);return n.add(t),!1}const ZP=()=>Object.create(null),{forEach:eF,slice:tF}=Array.prototype,{hasOwnProperty:nF}=Object.prototype;class Fn{constructor(t=!0,n=ZP){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return eF.call(t,r=>n=n.getChildTrie(r)),nF.call(n,"data")?n.data:n.data=this.makeData(tF.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r0},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}(ce);function wb(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(){return this.nextFetchPolicy=r,"function"==typeof r?r.apply(this,arguments):n}}):e.reobserve()}function uF(e){!1!==globalThis.__DEV__&&L.error(23,e.message,e.stack)}function Sb(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&L.debug(24,e)}function Vf(e){return"network-only"===e||"no-cache"===e||"standby"===e}function _b(e){return e.kind===M.FIELD||e.kind===M.FRAGMENT_SPREAD||e.kind===M.INLINE_FRAGMENT}function gF(){}yb(jf);class yF{constructor(t=1/0,n=gF){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}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}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)}}let He=null;const Tb={};let vF=1;function Ib(e){try{return e()}catch{}}const Hf="@wry/context:Slot",Mb=Ib(()=>globalThis)||Ib(()=>global)||Object.create(null),Uf=Mb[Hf]||Array[Hf]||function(e){try{Object.defineProperty(Mb,Hf,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",vF++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=He;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===Tb)break;return t!==He&&(He.slots[this.id]=n),!0}return He&&(He.slots[this.id]=Tb),!1}getValue(){if(this.hasValue())return He.slots[this.id]}withValue(t,n,r,i){const s=He;He={parent:s,slots:{__proto__:null,[this.id]:t}};try{return n.apply(i,r)}finally{He=s}}static bind(t){const n=He;return function(){const r=He;try{return He=n,t.apply(this,arguments)}finally{He=r}}}static noContext(t,n,r){if(!He)return t.apply(r,n);{const i=He;try{return He=null,t.apply(r,n)}finally{He=i}}}}),Eo=new Uf,{hasOwnProperty:wF}=Object.prototype,qf=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Aa(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const wo=[],SF=100;function ai(e,t){if(!e)throw new Error(t||"assertion failure")}function kb(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}let TF=(()=>{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&&!Rn(this))return Ob(this),this.value[0]}recompute(n){return ai(!this.recomputing,"already recomputing"),Ob(this),Rn(this)?function IF(e,t){return Lb(e),Eo.withValue(e,MF,[e,t]),function kF(e,t){if("function"==typeof e.subscribe)try{Aa(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function AF(e){e.dirty=!1,!Rn(e)&&xb(e)}(e),kb(e.value)}(this,n):kb(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,Nb(this),Aa(this))}dispose(){this.setDirty(),Lb(this),zf(this,(n,r)=>{n.setDirty(),Bb(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=wo.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&(qf(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),wo.push(this.deps),this.deps=null)}}return e.count=0,e})();function Ob(e){const t=Eo.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Rn(e)?Pb(t,e):Fb(t,e),t}function MF(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function Rn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Nb(e){zf(e,Pb)}function xb(e){zf(e,Fb)}function zf(e,t){const n=e.parents.size;if(n){const r=qf(e.parents);for(let i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),Rb(e,t),!Rn(e)&&xb(e)}function Rb(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(wo.length0&&e.childValues.forEach((t,n)=>{Bb(e,n)}),e.forgetDeps(),ai(null===e.dirtyChildren)}function Bb(e,t){t.parents.delete(e),e.childValues.delete(t),Rb(e,t)}const OF={setDirty:!0,dispose:!0,forget:!0};function jb(e){const t=new Map,n=e&&e.subscribe;function r(i){const o=Eo.getValue();if(o){let s=t.get(i);s||t.set(i,s=new Set),o.dependOn(s),"function"==typeof n&&(Aa(s),s.unsubscribe=n(i))}}return r.dirty=function(o,s){const a=t.get(o);if(a){const c=s&&wF.call(OF,s)?s:"setDirty";qf(a).forEach(u=>u[c]()),t.delete(o),Aa(a)}},r}let Vb;function NF(...e){return(Vb||(Vb=new Fn("function"==typeof WeakMap))).lookupArray(e)}const Gf=new Set;function ka(e,{max:t=Math.pow(2,16),makeCacheKey:n=NF,keyArgs:r,subscribe:i}=Object.create(null)){const o=new yF(t,l=>l.dispose()),s=function(){const l=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===l)return e.apply(null,arguments);let f=o.get(l);f||(o.set(l,f=new TF(e)),f.subscribe=i,f.forget=()=>o.delete(l));const d=f.recompute(Array.prototype.slice.call(arguments));return o.set(l,f),Gf.add(o),Eo.hasValue()||(Gf.forEach(h=>h.clean()),Gf.clear()),d};function a(l){const f=o.get(l);f&&f.setDirty()}function c(l){const f=o.get(l);if(f)return f.peek()}function u(l){return o.delete(l)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:n,keyArgs:r,subscribe:i}),s.dirtyKey=a,s.dirty=function(){a(n.apply(null,arguments))},s.peekKey=c,s.peek=function(){return c(n.apply(null,arguments))},s.forgetKey=u,s.forget=function(){return u(n.apply(null,arguments))},s.makeCacheKey=n,s.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(s)}var Wf=new Uf,Hb=new WeakMap;function So(e){var t=Hb.get(e);return t||Hb.set(e,t={vars:new Set,dep:jb()}),t}function Ub(e){So(e).vars.forEach(function(t){return t.forgetCache(e)})}function PF(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){So(c).dep.dirty(r),function FF(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(n);n.clear(),s.forEach(function(c){return c(e)})}}else{var a=Wf.getValue();a&&(i(a),So(a).dep(r))}return e};r.onNextChange=function(o){return n.add(o),function(){n.delete(o)}};var i=r.attachCache=function(o){return t.add(o),So(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}var $b=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=GD(n.resolvers,r)}):this.resolvers=GD(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){var n=t.document,r=t.remoteResult,i=t.context,o=t.variables,s=t.onlyRunForcedResolvers,a=void 0!==s&&s;return Ht(this,void 0,void 0,function(){return tn(this,function(c){return n?[2,this.resolveDocument(n,r.data,i,o,this.fragmentMatcher,a).then(function(u){return b(b({},r),{data:u.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return or(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return ab(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,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),Ht(this,void 0,void 0,function(){return tn(this,function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(o){return b(b({},n),o.exportedVariables)})]:[2,b({},n)]})})},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(i){return"always"===i.name.value&&"BooleanValue"===i.value.kind&&!0===i.value.value})))return ir}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:GP(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Ht(this,void 0,void 0,function(){var a,c,u,l,f,d,h,p,g,v;return tn(this,function(D){return a=go(t),c=Ea(t),u=va(c),l=this.collectSelectionsToResolve(a,u),d=(f=a.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=(h=this).cache,g=h.client,v={fragmentMap:u,context:b(b({},r),{cache:p,client:g}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,n,v).then(function(y){return{result:y,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Ht(this,void 0,void 0,function(){var o,s,a,c,u,l=this;return tn(this,function(f){return o=i.fragmentMap,s=i.context,a=i.variables,c=[r],u=function(d){return Ht(l,void 0,void 0,function(){var h;return tn(this,function(g){return(n||i.selectionsToResolve.has(d))&&vo(d,a)?xn(d)?[2,this.resolveField(d,n,r,i).then(function(v){var m;typeof v<"u"&&c.push(((m={})[Nn(d)]=v,m))})]:(function Bx(e){return"InlineFragment"===e.kind}(d)?h=d:L(h=o[d.name.value],18,d.name.value),h&&h.typeCondition&&i.fragmentMatcher(r,h.typeCondition.name.value,s)?[2,this.resolveSelectionSet(h.selectionSet,n,r,i).then(function(v){c.push(v)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(u)).then(function(){return Cf(c)})]})})},e.prototype.resolveField=function(t,n,r,i){return Ht(this,void 0,void 0,function(){var o,s,a,c,u,l,f,d,h,p=this;return tn(this,function(g){return r?(o=i.variables,s=t.name.value,a=Nn(t),c=s!==a,u=r[a]||r[s],l=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(f=r.__typename||i.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(h=d[c?s:a])&&(l=Promise.resolve(Wf.withValue(this.cache,h,[r,ba(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}])))),[2,l.then(function(v){var m,D;if(void 0===v&&(v=u),t.directives&&t.directives.forEach(function(E){"export"===E.name.value&&E.arguments&&E.arguments.forEach(function(C){"as"===C.name.value&&"StringValue"===C.value.kind&&(i.exportedVariables[C.value.value]=v)})}),!t.selectionSet||null==v)return v;var y=null!==(D=null===(m=t.directives)||void 0===m?void 0:m.some(function(E){return"client"===E.name.value}))&&void 0!==D&&D;return Array.isArray(v)?p.resolveSubSelectedArray(t,n||y,v,i):t.selectionSet?p.resolveSelectionSet(t.selectionSet,n||y,v,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var o=this;return Promise.all(r.map(function(s){return null===s?null:Array.isArray(s)?o.resolveSubSelectedArray(t,n,s,i):t.selectionSet?o.resolveSelectionSet(t.selectionSet,n,s,i):void 0}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(s){return!Array.isArray(s)},i=this.selectionsToResolveCache;return function o(s){if(!i.has(s)){var a=new Set;i.set(s,a),vn(s,{Directive:function(c,u,l,f,d){"client"===c.name.value&&d.forEach(function(h){r(h)&&_b(h)&&a.add(h)})},FragmentSpread:function(c,u,l,f,d){var h=n[c.name.value];L(h,19,c.name.value);var p=o(h);p.size>0&&(d.forEach(function(g){r(g)&&_b(g)&&a.add(g)}),a.add(c),p.forEach(function(g){a.add(g)}))}})}return i.get(s)}(t)},e}(),ci=new(Dn?WeakMap:Map);function Qf(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return ci.set(e,(ci.get(e)+1)%1e15),n.apply(this,arguments)})}function qb(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Kf=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;ci.has(r)||(ci.set(r,0),Qf(r,"evict"),Qf(r,"modify"),Qf(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||te.loading;return this.variables&&this.networkStatus!==te.loading&&!ve(this.variables,t.variables)&&(n=te.setVariables),ve(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(){qb(this),this.dirty=!1},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&ve(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 n=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!ve(r&&r.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():wb(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;qb(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(lo(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 i=b(b({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return n.setDiff(o)}});(!this.lastWatch||!ve(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===ci.get(this.cache)&&ve(n,r.variables)&&ve(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,s=new Pn,a=Zt(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&Zt(t.incremental)){var c=WD(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!==i&&(Yf(t,r.errorPolicy)?this.cache.performTransaction(function(l){if(o.shouldWrite(t,r.variables))l.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:1===i}),o.lastWrite={result:t,variables:r.variables,dmCount:ci.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(t.data=o.lastDiff.diff.result);var f=o.getDiffOptions(r.variables),d=l.diff(f);!o.stopped&&ve(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(d,f),d.complete&&(t.data=d.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=te.ready},e.prototype.markError=function(t){return this.networkStatus=te.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function Yf(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Ia(e);return!r&&n&&e.data&&(r=!0),r}var RF=Object.prototype.hasOwnProperty,LF=function(){function e(t){var n=this,r=t.cache,i=t.link,o=t.defaultOptions,s=t.documentTransform,a=t.queryDeduplication,c=void 0!==a&&a,u=t.onBroadcast,l=t.ssrMode,f=void 0!==l&&l,d=t.clientAwareness,h=void 0===d?{}:d,p=t.localState,g=t.assumeImmutableResults,v=void 0===g?!!r.assumeImmutableResults:g;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Dn?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var m=new gb(function(D){return n.cache.transformDocument(D)},{cache:!1});this.cache=r,this.link=i,this.defaultOptions=o||Object.create(null),this.queryDeduplication=c,this.clientAwareness=h,this.localState=p||new $b({cache:r}),this.ssrMode=f,this.assumeImmutableResults=v,this.documentTransform=s?m.concat(s).concat(m):m,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(et(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var n,r,i=t.mutation,o=t.variables,s=t.optimisticResponse,a=t.updateQueries,c=t.refetchQueries,u=void 0===c?[]:c,l=t.awaitRefetchQueries,f=void 0!==l&&l,d=t.update,h=t.onQueryUpdated,p=t.fetchPolicy,g=void 0===p?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.fetchPolicy)||"network-only":p,v=t.errorPolicy,m=void 0===v?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":v,D=t.keepRootFields,y=t.context;return Ht(this,void 0,void 0,function(){var E,C,_,P;return tn(this,function(z){switch(z.label){case 0:return L(i,26),L("network-only"===g||"no-cache"===g,27),E=this.generateMutationId(),i=this.cache.transformForLink(this.transform(i)),C=this.getDocumentInfo(i).hasClientExports,o=this.getVariables(i,o),C?[4,this.localState.addExportedVariables(i,o,y)]:[3,2];case 1:o=z.sent(),z.label=2;case 2:return _=this.mutationStore&&(this.mutationStore[E]={mutation:i,variables:o,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:E,document:i,variables:o,fetchPolicy:g,errorPolicy:m,context:y,updateQueries:a,update:d,keepRootFields:D}),this.broadcastQueries(),P=this,[2,new Promise(function(ke,Oe){return Rf(P.getObservableFromLink(i,b(b({},y),{optimisticResponse:s}),o,!1),function(Ue){if(Ia(Ue)&&"none"===m)throw new ni({graphQLErrors:Lf(Ue)});_&&(_.loading=!1,_.error=null);var bn=b({},Ue);return"function"==typeof u&&(u=u(bn)),"ignore"===m&&Ia(bn)&&delete bn.errors,P.markMutationResult({mutationId:E,result:bn,document:i,variables:o,fetchPolicy:g,errorPolicy:m,context:y,update:d,updateQueries:a,awaitRefetchQueries:f,refetchQueries:u,removeOptimistic:s?E:void 0,onQueryUpdated:h,keepRootFields:D})}).subscribe({next:function(Ue){P.broadcastQueries(),(!("hasNext"in Ue)||!1===Ue.hasNext)&&ke(Ue)},error:function(Ue){_&&(_.loading=!1,_.error=Ue),s&&P.cache.removeOptimistic(E),P.broadcastQueries(),Oe(Ue instanceof ni?Ue:new ni({networkError:Ue}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;void 0===n&&(n=this.cache);var i=t.result,o=[],s="no-cache"===t.fetchPolicy;if(!s&&Yf(i,t.errorPolicy)){if(ri(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),ri(i)&&Zt(i.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=WD(a.result,i)),typeof c<"u"&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var u=t.updateQueries;u&&this.queries.forEach(function(f,d){var h=f.observableQuery,p=h&&h.queryName;if(p&&RF.call(u,p)){var g=u[p],v=r.queries.get(d),m=v.document,D=v.variables,y=n.diff({query:m,variables:D,returnPartialData:!0,optimistic:!1}),E=y.result;if(y.complete&&E){var _=g(E,{mutationResult:i,queryName:m&&yf(m)||void 0,queryVariables:D});_&&o.push({result:_,dataId:"ROOT_QUERY",query:m,variables:D})}}})}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(f){s||o.forEach(function(g){return f.write(g)});var d=t.update,h=!function vP(e){return ri(e)||function yP(e){return"hasNext"in e&&"data"in e}(e)}(i)||ri(i)&&!i.hasNext;if(d){if(!s){var p=f.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});p.complete&&("incremental"in(i=b(b({},i),{data:p.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&d(f,i,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&h&&f.modify({id:"ROOT_MUTATION",fields:function(g,v){return"__typename"===v.fieldName?g:v.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(f){return l.push(f)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i="function"==typeof t?t(n.variables):t;return this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(b(b({},n),{result:{data:i}}),o)}catch(s){!1!==globalThis.__DEV__&&L.error(s)}},n.mutationId)},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:Yx(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:or(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:Af([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:vf(mo(t)),asQuery:b(b({},t),{definitions:t.definitions.map(function(i){return"OperationDefinition"===i.kind&&"query"!==i.operation?b(b({},i),{operation:"query"}):i})})};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 Kf(this),i=new jf({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;return void 0===n&&(n=this.generateQueryId()),L(t.query,28),L("Document"===t.query.kind,29),L(!t.returnPartialData,30),L(!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(et(32)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=te.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,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(s){"string"==typeof s?i.set(s,!1):function Cx(e){return le(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?i.set(n.transform(s),!1):le(s)&&s.query&&o.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&&i.has(l)||u&&i.has(u))&&(r.set(a,c),l&&i.set(l,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(s){var a=of("legacyOneTimeQuery"),c=n.getQuery(a).init({document:s.query,variables:s.variables}),u=new jf({queryManager:n,queryInfo:c,options:b(b({},s),{fetchPolicy:"network-only"})});L(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(s,a){s||!1!==globalThis.__DEV__&&L.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(i,o){var s=i.options.fetchPolicy;i.resetLastResults(),(t||"standby"!==s&&"cache-only"!==s)&&r.push(i.refetch()),n.getQuery(o).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,i=t.fetchPolicy,o=t.errorPolicy,s=void 0===o?"none":o,a=t.variables,c=t.context,u=void 0===c?{}:c;r=this.transform(r),a=this.getVariables(r,a);var l=function(d){return n.getObservableFromLink(r,u,d).map(function(h){"no-cache"!==i&&(Yf(h,s)&&n.cache.write({query:r,result:h.data,dataId:"ROOT_SUBSCRIPTION",variables:d}),n.broadcastQueries());var p=Ia(h),g=function dP(e){return!!e.extensions&&Array.isArray(e.extensions[_f])}(h);if(p||g){var v={};if(p&&(v.graphQLErrors=h.errors),g&&(v.protocolErrors=h.extensions[_f]),"none"===s||g)throw new ni(v)}return"ignore"===s&&delete h.errors,h})};if(this.getDocumentInfo(r).hasClientExports){var f=this.localState.addExportedVariables(r,a,u).then(l);return new ce(function(d){var h=null;return f.then(function(p){return h=p.subscribe(d)},d.error),function(){return h&&h.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,i){var s,o=this;void 0===i&&(i=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 d=this.inFlightLinkObservables,h=this.link,p={query:u,variables:r,operationName:yf(u)||void 0,context:this.prepareContext(b(b({},n),{forceFetch:!i}))};if(n=p.context,i){var g=eb(u),v=d.get(g)||new Map;d.set(g,v);var m=sr(r);if(!(a=v.get(m))){var D=new oi([Df(h,p)]);v.set(m,a=D),D.beforeNext(function(){v.delete(m)&&v.size<1&&d.delete(g)})}}else a=new oi([Df(h,p)])}else a=new oi([ce.of({data:{}})]),n=this.prepareContext(n);return l&&(a=Rf(a,function(y){return o.localState.runResolvers({document:l,remoteResult:y,context:n,variables:r})})),a},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return Rf(this.getObservableFromLink(o,r.context,r.variables),function(s){var a=Lf(s),c=a.length>0;if(i>=t.lastRequestId){if(c&&"none"===r.errorPolicy)throw t.markError(new ni({graphQLErrors:a}));t.markResult(s,o,r,n),t.markReady()}var u={data:s.data,loading:!1,networkStatus:te.ready};return c&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=te.error),u},function(s){var a=function hP(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new ni({networkError:s});throw i>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r,i){var o=this;void 0===r&&(r=te.loading),void 0===i&&(i=n.query);var _,P,s=this.getVariables(i,n.variables),a=this.getQuery(t),c=this.defaultOptions.watchQuery,u=n.fetchPolicy,f=n.errorPolicy,h=n.returnPartialData,g=n.notifyOnNetworkStatusChange,m=n.context,y=Object.assign({},n,{query:i,variables:s,fetchPolicy:void 0===u?c&&c.fetchPolicy||"cache-first":u,errorPolicy:void 0===f?c&&c.errorPolicy||"none":f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==g&&g,context:void 0===m?{}:m}),E=function(ke){y.variables=ke;var Oe=o.fetchQueryByPolicy(a,y,r);return"standby"!==y.fetchPolicy&&Oe.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),Oe},C=function(){return o.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(ke){C(),setTimeout(function(){return _.cancel(ke)})}),this.getDocumentInfo(y.query).hasClientExports)_=new oi(this.localState.addExportedVariables(y.query,y.variables,y.context).then(E).then(function(ke){return ke.sources})),P=!0;else{var z=E(y.variables);P=z.fromLink,_=new oi(z.sources)}return _.promise.then(C,C),{concast:_,fromLink:P}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,o=t.optimistic,s=void 0!==o&&o,a=t.removeOptimistic,c=void 0===a?s?of("refetchQueries"):void 0:a,u=t.onQueryUpdated,l=new Map;i&&this.getObservableQueries(i).forEach(function(d,h){l.set(h,{oq:d,lastDiff:n.getQuery(h).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(d,h,p){var g=d.watcher instanceof Kf&&d.watcher.observableQuery;if(g){if(u){l.delete(g.queryId);var v=u(g,h,p);return!0===v&&(v=g.refetch()),!1!==v&&f.set(g,v),v}null!==u&&l.set(g.queryId,{oq:g,lastDiff:p,diff:h})}}}),l.size&&l.forEach(function(d,h){var m,p=d.oq,g=d.lastDiff,v=d.diff;if(u){if(!v){var D=p.queryInfo;D.reset(),v=D.getDiff()}m=u(p,v,g)}(!u||!0===m)&&(m=p.refetch()),!1!==m&&f.set(p,m),h.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(h)}),c&&this.cache.removeOptimistic(c),f},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,o=n.query,s=n.variables,a=n.fetchPolicy,c=n.refetchWritePolicy,u=n.errorPolicy,l=n.returnPartialData,f=n.context,d=n.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:o,variables:s,networkStatus:r});var p=function(){return t.getDiff()},g=function(E,C){void 0===C&&(C=t.networkStatus||te.loading);var _=E.result;!1!==globalThis.__DEV__&&!l&&!ve(_,{})&&Sb(E.missing);var P=function(z){return ce.of(b({data:z,loading:lo(C),networkStatus:C},E.complete?null:{partial:!0}))};return _&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:_},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(z){return P(z.data||void 0)}):"none"===u&&C===te.refetch&&Array.isArray(E.missing)?P(void 0):P(_)},v="no-cache"===a?0:r===te.refetch&&"merge"!==c?1:2,m=function(){return i.getResultsFromLink(t,v,{query:o,variables:s,context:f,fetchPolicy:a,errorPolicy:u})},D=d&&"number"==typeof h&&h!==r&&lo(r);switch(a){default:case"cache-first":return(y=p()).complete?{fromLink:!1,sources:[g(y,t.markReady())]}:l||D?{fromLink:!0,sources:[g(y),m()]}:{fromLink:!0,sources:[m()]};case"cache-and-network":var y;return(y=p()).complete||l||D?{fromLink:!0,sources:[g(y),m()]}:{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[g(p(),t.markReady())]};case"network-only":return D?{fromLink:!0,sources:[g(p()),m()]}:{fromLink:!0,sources:[m()]};case"no-cache":return D?{fromLink:!0,sources:[g(t.getDiff()),m()]}:{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new Kf(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var n=this.localState.prepareContext(t);return b(b({},n),{clientAwareness:this.clientAwareness})},e}();function Jf(e,t){return si(e,t,t.variables&&{variables:si(b(b({},e&&e.variables),t.variables))})}var zb=!1,Gb=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw et(15);var r=t.uri,s=t.cache,a=t.documentTransform,c=t.ssrMode,u=void 0!==c&&c,l=t.ssrForceFetchDelay,f=void 0===l?0:l,d=t.connectToDevTools,h=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:d,p=t.queryDeduplication,g=void 0===p||p,v=t.defaultOptions,m=t.assumeImmutableResults,D=void 0===m?s.assumeImmutableResults:m,y=t.resolvers,E=t.typeDefs,C=t.fragmentMatcher,_=t.name,P=t.version,z=t.link;z||(z=r?new QP({uri:r,credentials:t.credentials,headers:t.headers}):ti.empty()),this.link=z,this.cache=s,this.disableNetworkFetches=u||f>0,this.queryDeduplication=g,this.defaultOptions=v||Object.create(null),this.typeDefs=E,f&&setTimeout(function(){return n.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=rf,this.localState=new $b({cache:s,client:this,resolvers:y,fragmentMatcher:C}),this.queryManager=new LF({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:a,queryDeduplication:g,ssrMode:u,clientAwareness:{name:_,version:P},localState:this.localState,assumeImmutableResults:D,onBroadcast:h?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),h&&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}!zb&&!1!==globalThis.__DEV__&&(zb=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,o=void 0;"string"==typeof i&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1!==globalThis.__DEV__&&L.log("Download the Apollo DevTools for a better development experience: %s",o)}},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=Jf(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=Jf(this.defaultOptions.query,t)),L("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=Jf(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.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 Df(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=[],i=[];n.forEach(function(s,a){r.push(a),i.push(s)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(s){!1!==globalThis.__DEV__&&L.debug(17,s)}),o},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},e}();function jF(e,t){if(!Boolean(e))throw new Error(t??"Unexpected invariant triggered.")}const VF=/\r\n|[\n\r]/g;function Xf(e,t){let n=0,r=1;for(const i of e.body.matchAll(VF)){if("number"==typeof i.index||jF(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function HF(e){return Wb(e.source,Xf(e.source,e.start))}function Wb(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=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),f=l[i];if(f.length>120){const d=Math.floor(c/80),h=c%80,p=[];for(let g=0;g["|",g]),["|","^".padStart(h)],["|",p[d+1]]])}return u+Qb([[s-1+" |",l[i-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function Qb(e){const t=e.filter(([r,i])=>void 0!==i),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join("\n")}class Zf extends Error{constructor(t,...n){var r,i,o;const{nodes:s,source:a,positions:c,path:u,originalError:l,extensions:f}=function UF(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=Kb(Array.isArray(s)?s:s?[s]:void 0);const d=Kb(null===(r=this.nodes)||void 0===r?void 0:r.map(p=>p.loc).filter(p=>null!=p));this.source=a??(null==d||null===(i=d[0])||void 0===i?void 0:i.source),this.positions=c??d?.map(p=>p.start),this.locations=c&&a?c.map(p=>Xf(a,p)):d?.map(p=>Xf(p.source,p.start));const h=function BF(e){return"object"==typeof e&&null!==e}(l?.extensions)?l?.extensions:void 0;this.extensions=null!==(o=f??h)&&void 0!==o?o: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,Zf):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"+HF(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+="\n\n"+Wb(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 Kb(e){return void 0===e||0===e.length?void 0:e}function Re(e,t,n){return new Zf(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Oa=(()=>(function(e){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"}(Oa||(Oa={})),Oa))(),w=(()=>(function(e){e.SOF="",e.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"}(w||(w={})),w))();class $F{constructor(t){const n=new VD(w.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!==w.EOF)do{if(t.next)t=t.next;else{const n=zF(this,t.end);t.next=n,n.prev=t,t=n}}while(t.kind===w.COMMENT);return t}}function ui(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Na(e,t){return Yb(e.charCodeAt(t))&&Jb(e.charCodeAt(t+1))}function Yb(e){return e>=55296&&e<=56319}function Jb(e){return e>=56320&&e<=57343}function ar(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return w.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return'"'===r?"'\"'":`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Me(e,t,n,r,i){return new VD(t,n,r,e.line,1+n-e.lineStart,i)}function zF(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function JF(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 Re(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function XF(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||Sa(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Sa(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class xa{constructor(t,n={}){const r=function tR(e){return eR(e,Zb)}(t)?t:new Zb(t);this._lexer=new $F(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(w.NAME);return this.node(t,{kind:M.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:M.DOCUMENT,definitions:this.many(w.SOF,this.parseDefinition,w.EOF)})}parseDefinition(){if(this.peek(w.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===w.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 Re(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(w.BRACE_L))return this.node(t,{kind:M.OPERATION_DEFINITION,operation:rr.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(w.NAME)&&(r=this.parseName()),this.node(t,{kind:M.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(w.NAME);switch(t.value){case"query":return rr.QUERY;case"mutation":return rr.MUTATION;case"subscription":return rr.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(w.PAREN_L,this.parseVariableDefinition,w.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:M.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(w.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(w.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(w.DOLLAR),this.node(t,{kind:M.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:M.SELECTION_SET,selections:this.many(w.BRACE_L,this.parseSelection,w.BRACE_R)})}parseSelection(){return this.peek(w.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(w.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:M.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(w.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(w.PAREN_L,t?this.parseConstArgument:this.parseArgument,w.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(w.COLON),this.node(n,{kind:M.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(w.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(w.NAME)?this.node(t,{kind:M.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:M.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:M.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:M.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 w.BRACKET_L:return this.parseList(t);case w.BRACE_L:return this.parseObject(t);case w.INT:return this.advanceLexer(),this.node(n,{kind:M.INT,value:n.value});case w.FLOAT:return this.advanceLexer(),this.node(n,{kind:M.FLOAT,value:n.value});case w.STRING:case w.BLOCK_STRING:return this.parseStringLiteral();case w.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:M.BOOLEAN,value:!0});case"false":return this.node(n,{kind:M.BOOLEAN,value:!1});case"null":return this.node(n,{kind:M.NULL});default:return this.node(n,{kind:M.ENUM,value:n.value})}case w.DOLLAR:if(t){if(this.expectToken(w.DOLLAR),this._lexer.token.kind===w.NAME)throw Re(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:M.STRING,value:t.value,block:t.kind===w.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:M.LIST,values:this.any(w.BRACKET_L,()=>this.parseValueLiteral(t),w.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:M.OBJECT,fields:this.any(w.BRACE_L,()=>this.parseObjectField(t),w.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(w.COLON),this.node(n,{kind:M.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(w.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(w.AT),this.node(n,{kind:M.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(w.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(w.BRACKET_R),n=this.node(t,{kind:M.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(w.BANG)?this.node(t,{kind:M.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:M.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(w.STRING)||this.peek(w.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(),i=this.many(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);return this.node(t,{kind:M.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(w.COLON);const r=this.parseNamedType();return this.node(t,{kind:M.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:M.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:M.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(w.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseFieldDefinition,w.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(w.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:M.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(w.PAREN_L,this.parseInputValueDef,w.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(w.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(w.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:M.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:M.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:M.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(w.EQUALS)?this.delimitedMany(w.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:M.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(w.BRACE_L,this.parseEnumValueDefinition,w.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:M.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Re(this._lexer.source,this._lexer.token.start,`${Pa(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseInputValueDef,w.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===w.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(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:M.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:M.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(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(w.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:M.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(w.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Oa,n.value))return n;throw this.unexpected(t)}node(t,n){return!0!==this._options.noLocation&&(n.loc=new Qx(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 Re(this._lexer.source,n.start,`Expected ${eE(t)}, found ${Pa(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const n=this._lexer.token;if(n.kind!==w.NAME||n.value!==t)throw Re(this._lexer.source,n.start,`Expected "${t}", found ${Pa(n)}.`);this.advanceLexer()}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===w.NAME&&n.value===t&&(this.advanceLexer(),!0)}unexpected(t){const n=t??this._lexer.token;return Re(this._lexer.source,n.start,`Unexpected ${Pa(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}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(void 0!==t&&n.kind!==w.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Re(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Pa(e){const t=e.value;return eE(e.kind)+(null!=t?` "${t}"`:"")}function eE(e){return function qF(e){return e===w.BANG||e===w.DOLLAR||e===w.AMP||e===w.PAREN_L||e===w.PAREN_R||e===w.SPREAD||e===w.COLON||e===w.EQUALS||e===w.AT||e===w.BRACKET_L||e===w.BRACKET_R||e===w.BRACE_L||e===w.PIPE||e===w.BRACE_R}(e)?`"${e}"`:e}var Fa=new Map,td=new Map,tE=!0,Ra=!1;function nE(e){return e.replace(/[\s,]+/g," ").trim()}function sR(e){var t=nE(e);if(!Fa.has(t)){var n=function nR(e,t){return new xa(e,t).parseDocument()}(e,{experimentalFragmentVariables:Ra,allowLegacyFragmentVariables:Ra});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Fa.set(t,function oR(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&"object"==typeof o&&t.add(o)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function iR(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if("FragmentDefinition"===r.kind){var i=r.name.value,o=function rR(e){return nE(e.source.body.substring(e.start,e.end))}(r.loc),s=td.get(i);s&&!s.has(o)?tE&&console.warn("Warning: fragment with name "+i+" 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||td.set(i,s=new Set),s.add(o),t.has(o)||(t.add(o),n.push(r))}else n.push(r)}),b(b({},e),{definitions:n})}(n)))}return Fa.get(t)}function li(e){for(var t=[],n=1;n(e().then(n=>{t.closed||(t.next(n),t.complete())},n=>{t.closed||t.error(n)}),()=>t.unsubscribe()))}(function(e){e.gql=Co_gql,e.resetCaches=Co_resetCaches,e.disableFragmentWarnings=Co_disableFragmentWarnings,e.enableExperimentalFragmentVariables=Co_enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Co_disableExperimentalFragmentVariables})(li||(li={})),li.default=li;class pR{constructor(t){ue(this,"zone",void 0),ue(this,"now",Date.now?Date.now:()=>+new Date),this.zone=t}schedule(t,n=0,r){return this.zone.run(()=>px.schedule(t,n,r))}}function oE(e){return e[Lo]=()=>e,e}function sE(e,t){return e.pipe(ec(new pR(t)))}function aE(e,t,n){return e&&typeof e[t]<"u"?e[t]:n}class gR{constructor(t,n,r){ue(this,"obsQuery",void 0),ue(this,"valueChanges",void 0),ue(this,"queryId",void 0),this.obsQuery=t;const i=sE(yi(oE(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?i.pipe(function mR(e){return function(n){return new De(function(i){const o=e.getCurrentResult(),{loading:s,errors:a,error:c,partial:u,data:l}=o,{partialRefetch:f,fetchPolicy:d}=e.options,h=a||c;return f&&u&&(!l||0===Object.keys(l).length)&&"cache-only"!==d&&!s&&!h&&i.next({...o,loading:!0,networkStatus:te.loading}),n.subscribe(i)})}}(this.obsQuery)):i,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 yR=new F("APOLLO_FLAGS"),cE=new F("APOLLO_OPTIONS"),vR=new F("APOLLO_NAMED_OPTIONS");class uE{constructor(t,n,r){ue(this,"ngZone",void 0),ue(this,"flags",void 0),ue(this,"_client",void 0),ue(this,"useInitialLoading",void 0),ue(this,"useMutationLoading",void 0),this.ngZone=t,this.flags=n,this._client=r,this.useInitialLoading=aE(n,"useInitialLoading",!1),this.useMutationLoading=aE(n,"useMutationLoading",!1)}watchQuery(t){return new gR(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return iE(()=>this.ensureClient().query({...t}))}mutate(t){return function hR(e,t){return t?e.pipe(function dR(...e){const t=Vo(e);return Un((n,r)=>{(t?rE(e,n,t):rE(e,n)).subscribe(r)})}({loading:!0}),nt(n=>({...n,loading:!!n.loading}))):e.pipe(nt(n=>({...n,loading:!1})))}(iE(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}subscribe(t,n){const r=yi(oE(this.ensureClient().subscribe({...t})));return n&&!0!==n.useZone?r:sE(r,this.ngZone)}getClient(){return this.client}setClient(t){this.client=t}get client(){return this._client}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)throw new Error("Client has not been defined yet")}}let lE=(()=>{class e extends uE{constructor(n,r,i,o){if(super(n,o),ue(this,"_ngZone",void 0),ue(this,"map",new Map),this._ngZone=n,r&&this.createDefault(r),i&&"object"==typeof i)for(let s in i)i.hasOwnProperty(s)&&this.create(i[s],s)}create(n,r){nd(r)?this.createDefault(n):this.createNamed(r,n)}default(){return this}use(n){return nd(n)?this.default():this.map.get(n)}createDefault(n){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new Gb(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new uE(this._ngZone,this.flags,new Gb(r)))}removeClient(n){nd(n)?this._client=void 0:this.map.delete(n)}}return ue(e,"\u0275fac",function(n){return new(n||e)(V(Ve),V(cE,8),V(vR,8),V(yR,8))}),ue(e,"\u0275prov",Y({token:e,factory:e.\u0275fac})),e})();function nd(e){return!e||"default"===e}const DR=[lE];let bR=(()=>{class e{}return ue(e,"\u0275fac",function(n){return new(n||e)}),ue(e,"\u0275mod",Tn({type:e})),ue(e,"\u0275inj",nn({providers:DR})),e})();const fE=function ER(e,...t){return li(e,...t)};var wR=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=ka(_x)}return e.prototype.batch=function(t){var i,n=this;return this.performTransaction(function(){return i=t.update(n)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),i},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.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,i=en(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,o=t.fragmentName,s=en(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),o=n(i);return null==o?i:(r.writeQuery(b(b({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),o=n(i);return null==o?i:(r.writeFragment(b(b({},t),{data:o})),o)}})},e}(),dE=function(e){function t(n,r,i,o){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=o,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 Mt(t,e),t}(Error);function rd(e){return!1!==globalThis.__DEV__&&function SR(e){var t=new Set([e]);return t.forEach(function(n){le(n)&&function _R(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 Le=Object.prototype.hasOwnProperty;function To(e){return null==e}function hE(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=To(r)?To(i)?void 0:{_id:i}:{id:r}),To(r)&&!To(i)&&(r=i),!To(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var pE={dataIdFromObject:hE,addTypename:!0,resultCaching:!0,canonizeResults:!1};function mE(e){var t=e.canonizeResults;return void 0===t?pE.canonizeResults:t}var gE=/^[_a-z][_0-9a-z]*/i;function Ln(e){var t=e.match(gE);return t?t[0]:e}function id(e,t,n){return!!le(t)&&(ye(t)?t.every(function(r){return id(e,r,n)}):e.selections.every(function(r){if(xn(r)&&vo(r,n)){var i=Nn(r);return Le.call(t,i)&&(!r.selectionSet||id(r.selectionSet,t[i],n))}return!0}))}function fi(e){return le(e)&&!ne(e)&&!ye(e)}function yE(e,t){var n=va(Ea(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var La=Object.create(null),od=function(){return La},vE=Object.create(null),Io=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(i,o){return rd(ne(i)?r.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return ne(i)?r.has(i.__ref):"object"==typeof i},this.toReference=function(i,o){if("string"==typeof i)return Zr(i);if(ne(i))return i;var s=r.policies.identify(i)[0];if(s){var a=Zr(s);return o&&r.merge(s,i),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),Le.call(this.data,t)){var r=this.data[t];if(r&&Le.call(r,n))return r[n]}return"__typename"===n&&Le.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof Bn?this.parent.get(t,n):void 0},e.prototype.lookup=function(t,n){return n&&this.group.depend(t,"__exists"),Le.call(this.data,t)?this.data[t]:this instanceof Bn?this.parent.lookup(t,n):this.policies.rootTypenamesById[t]?Object.create(null):void 0},e.prototype.merge=function(t,n){var i,r=this;ne(t)&&(t=t.__ref),ne(n)&&(n=n.__ref);var o="string"==typeof t?this.lookup(i=t):t,s="string"==typeof n?this.lookup(i=n):n;if(s){L("string"==typeof i,1);var a=new Pn(AR).merge(o,s);if(this.data[i]=a,a!==o&&(delete this.refs[i],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach(function(u){if(!o||o[u]!==a[u]){c[u]=1;var l=Ln(u);l!==u&&!r.policies.hasKeyArgs(a.__typename,l)&&(c[l]=1),void 0===a[u]&&!(r instanceof Bn)&&delete a[u]}}),c.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===a.__typename&&delete c.__typename,Object.keys(c).forEach(function(u){return r.group.dirty(i,u)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var o=Object.create(null),s=!1,a=!0,c={DELETE:La,INVALIDATE:vE,isReference:ne,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField("string"==typeof u?{fieldName:u,from:l||Zr(t)}:u,{store:r})}};if(Object.keys(i).forEach(function(u){var l=Ln(u),f=i[u];if(void 0!==f){var d="function"==typeof n?n:n[u]||n[l];if(d){var h=d===od?La:d(rd(f),b(b({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));if(h===vE)r.group.dirty(t,u);else if(h===La&&(h=void 0),h!==f&&(o[u]=h,s=!0,f=h,!1!==globalThis.__DEV__)){var p=function(C){if(void 0===r.lookup(C.__ref))return!1!==globalThis.__DEV__&&L.warn(2,C),!0};if(ne(h))p(h);else if(Array.isArray(h))for(var g=!1,v=void 0,m=0,D=h;m0){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 Bn?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){Le.call(r,s)&&(Object.keys(t.findChildRefIds(s)).forEach(n.add,n),delete r[s])});var i=Object.keys(r);if(i.length){for(var o=this;o instanceof Bn;)o=o.parent;i.forEach(function(s){return o.delete(s)})}return i},e.prototype.findChildRefIds=function(t){if(!Le.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(o){ne(o)&&(n[o.__ref]=!0),le(o)&&Object.keys(o).forEach(function(s){var a=o[s];le(a)&&i.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),DE=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?jb():null,this.keyMaker=new Fn(Dn)},e.prototype.depend=function(t,n){if(this.d){this.d(sd(t,n));var r=Ln(n);r!==n&&this.d(sd(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(sd(t,n),"__exists"===n?"forget":"setDirty")},e}();function sd(e,t){return t+"#"+e}function bE(e,t){Mo(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(n){function r(i){var s=i.resultCaching,c=i.seed,u=n.call(this,i.policies,new DE(void 0===s||s))||this;return u.stump=new MR(u),u.storageTrie=new Fn(Dn),c&&u.replace(c),u}return Mt(r,n),r.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t}(Io||(Io={}));var Bn=function(e){function t(n,r,i,o){var s=e.call(this,r.policies,o)||this;return s.id=n,s.parent=r,s.replay=i,s.group=o,i(s),s}return Mt(t,e),t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var s=r.data[o],a=i.lookup(o);a?s?s!==a&&Object.keys(s).forEach(function(c){ve(s[c],a[c])||r.group.dirty(o,c)}):(r.group.dirty(o,"__exists"),Object.keys(a).forEach(function(c){r.group.dirty(o,c)})):r.delete(o)}),i):i===this.parent?this:i.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 Le.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}(Io),MR=function(e){function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new DE(n.group.caching,n.group))||this}return Mt(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Bn);function AR(e,t,n){var r=e[n],i=t[n];return ve(r,i)?r:i}function Mo(e){return!!(e instanceof Io&&e.group.caching)}function EE(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var kR=function(){function e(t){var n=this;this.knownResults=new(Dn?WeakMap:Map),this.config=si(t,{addTypename:!1!==t.addTypename,canonizeResults:mE(t)}),this.canon=t.canon||new xf,this.executeSelectionSet=ka(function(r){var i,o=r.context.canonizeResults,s=EE(r);s[3]=!o;var a=(i=n.executeSelectionSet).peek.apply(i,s);return a?o?b(b({},a),{result:n.canon.admit(a.result)}):a:(bE(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:EE,makeCacheKey:function(r,i,o,s){if(Mo(o.store))return o.store.makeCacheKey(r,ne(i)?i.__ref:i,o.varString,s)}}),this.executeSubSelectedArray=ka(function(r){return bE(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var i=r.field,o=r.array,s=r.context;if(Mo(s.store))return s.store.makeCacheKey(i,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new xf},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,o=void 0===i?"ROOT_QUERY":i,s=t.variables,a=t.returnPartialData,c=void 0===a||a,u=t.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;s=b(b({},vf(LD(r))),s);var p,d=Zr(o),h=this.executeSelectionSet({selectionSet:go(r).selectionSet,objectOrReference:d,enclosingRef:d,context:b({store:n,query:r,policies:f,variables:s,varString:sr(s),canonizeResults:l},yE(r,this.config.fragments))});if(h.missing&&(p=[new dE(OR(h.missing),h.missing,r,s)],!c))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,n,r,i){if(Mo(i.store)&&this.knownResults.get(t)===r){var o=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,s=t.context;if(ne(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var d,a=s.variables,c=s.policies,l=s.store.getFieldValue(i,"__typename"),f=[],h=new Pn;function p(y,E){var C;return y.missing&&(d=h.merge(d,((C={})[E]=y.missing,C))),y.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var g=new Set(r.selections);g.forEach(function(y){var E,C;if(vo(y,a))if(xn(y)){var _=c.readField({fieldName:y.name.value,field:y,variables:s.variables,from:i},s),P=Nn(y);void 0===_?kf.added(y)||(d=h.merge(d,((E={})[P]="Can't find field '".concat(y.name.value,"' on ").concat(ne(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),E))):ye(_)?_=p(n.executeSubSelectedArray({field:y,array:_,enclosingRef:o,context:s}),P):y.selectionSet?null!=_&&(_=p(n.executeSelectionSet({selectionSet:y.selectionSet,objectOrReference:_,enclosingRef:ne(_)?_:o,context:s}),P)):s.canonizeResults&&(_=n.canon.pass(_)),void 0!==_&&f.push(((C={})[P]=_,C))}else{var z=Da(y,s.lookupFragment);if(!z&&y.kind===M.FRAGMENT_SPREAD)throw et(9,y.name.value);z&&c.fragmentMatches(z,l)&&z.selectionSet.selections.forEach(g.add,g)}});var m={result:Cf(f),missing:d},D=s.canonizeResults?this.canon.admit(m):rd(m);return D.result&&this.knownResults.set(D.result,r),D},e.prototype.execSubSelectedArrayImpl=function(t){var a,n=this,r=t.field,i=t.array,o=t.enclosingRef,s=t.context,c=new Pn;function u(l,f){var d;return l.missing&&(a=c.merge(a,((d={})[f]=l.missing,d))),l.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(l,f){return null===l?null:ye(l)?u(n.executeSubSelectedArray({field:r,array:l,enclosingRef:o,context:s}),f):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:l,enclosingRef:ne(l)?l:o,context:s}),f):(!1!==globalThis.__DEV__&&function NR(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){le(i)&&(L(!ne(i),10,function TR(e,t){return ne(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}(s.store,r,l),l)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:a}},e}();function OR(e){try{JSON.stringify(e,function(t,n){if("string"==typeof n)throw n;return n})}catch(t){return t}}var wE=Object.create(null);function ad(e){var t=JSON.stringify(e);return wE[t]||(wE[t]=Object.create(null))}function SE(e){var t=ad(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(s,a){return r.readField(a,s)},o=r.keyObject=cd(e,function(s){var a=di(r.storeObject,s,i);return void 0===a&&n!==r.storeObject&&Le.call(n,s[0])&&(a=di(n,s,TE)),L(void 0!==a,4,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function _E(e){var t=ad(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,s=r.fieldName,a=cd(e,function(u){var l=u[0],f=l.charAt(0);if("@"!==f)if("$"!==f){if(n)return di(n,u)}else{var g=l.slice(1);if(o&&Le.call(o,g)){var v=u.slice(0);return v[0]=g,di(o,v)}}else if(i&&Zt(i.directives)){var d=l.slice(1),h=i.directives.find(function(m){return m.name.value===d}),p=h&&ba(h,o);return p&&di(p,u.slice(1))}}),c=JSON.stringify(a);return(n||"{}"!==c)&&(s+=":"+c),s})}function cd(e,t){var n=new Pn;return CE(e).reduce(function(r,i){var o,s=t(i);if(void 0!==s){for(var a=i.length-1;a>=0;--a)(o={})[i[a]]=s,s=o;r=n.merge(r,s)}return r},Object.create(null))}function CE(e){var t=ad(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){ye(i)?(CE(i).forEach(function(s){return n.push(r.concat(s))}),r.length=0):(r.push(i),ye(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function TE(e,t){return e[t]}function di(e,t,n){return n=n||TE,IE(t.reduce(function r(i,o){return ye(i)?i.map(function(s){return r(s,o)}):i&&n(i,o)},e))}function IE(e){return le(e)?ye(e)?e.map(IE):cd(Object.keys(e).sort(),function(t){return di(e,t)}):e}function ud(e){return void 0!==e.args?e.args:e.field?ba(e.field,e.variables):null}mf.setStringify(sr);var xR=function(){},ME=function(e,t){return t.fieldName},AE=function(e,t,n){return(0,n.mergeObjects)(e,t)},kE=function(e,t){return t},PR=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:hE},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,i=this,o=n&&(n.typename||(null===(r=n.storeObject)||void 0===r?void 0:r.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var c,s=n&&n.storeObject||t,a=b(b({},n),{typename:o,storeObject:s,readField:n&&n.readField||function(){var d=ld(arguments,s);return i.readField(d,{store:i.cache.data,variables:d.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l(b(b({},t),s),a);if(!ye(f)){c=f;break}l=SE(f)}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 i=t[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,c=en(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Le.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),o=n.keyFields,s=n.fields;function a(c,u){c.merge="function"==typeof u?u:!0===u?AE:!1===u?kE:c.merge}a(i,n.merge),i.keyFn=!1===o?xR:ye(o)?SE(o):"function"==typeof o?o:i.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 f=l.keyArgs,d=l.read,h=l.merge;u.keyFn=!1===f?ME:ye(f)?_E(f):"function"==typeof f?f:u.keyFn,"function"==typeof d&&(u.read=d),a(u,h)}u.read&&u.merge&&(u.keyFn=u.keyFn||ME)})},e.prototype.setRootTypename=function(t,n){void 0===n&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(L(!i||i===t,5,t),i&&delete this.rootIdsByTypename[i],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(i){n.getSupertypeSet(i,!0).add(r);var o=i.match(gE);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Le.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=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 i.add(u)})}})),i&&i.size&&i.forEach(function(s){var a=n.getTypePolicy(s),c=a.fields,u=en(a,["fields"]);Object.assign(r,u),Object.assign(r.fields,c)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(s){n.updateTypePolicy(t,s)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[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,i){var o=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=o.getSupertypeSet(p,!1);g&&g.size&&c.indexOf(g)<0&&c.push(g)},l=!(!r||!this.fuzzySubtypes.size),f=!1,d=0;d1?e[1]:t}:(s=b({},r),Le.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&L.warn(7,AD(Array.from(e))),void 0===s.variables&&(s.variables=n),s}function NE(e){return function(n,r){if(ye(n)||ye(r))throw et(8);if(le(n)&&le(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(ne(n)&&fi(r))return e.merge(n.__ref,r),n;if(fi(n)&&ne(r))return e.merge(n,r.__ref),r;if(fi(n)&&fi(r))return b(b({},n),r)}return r}}function fd(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:b(b({},e),{clientOnly:t,deferred:n})),i}var FR=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,i=n.query,o=n.result,s=n.dataId,a=n.variables,c=n.overwrite,u=mo(i),l=function IR(){return new Pn}();a=b(b({},vf(u)),a);var f=b(b({store:t,written:Object.create(null),merge:function(h,p){return l.merge(h,p)},variables:a,varString:sr(a)},yE(i,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!ne(d))throw et(11,o);return f.incomingById.forEach(function(h,p){var g=h.storeObject,v=h.mergeTree,m=h.fieldNodeSet,D=Zr(p);if(v&&v.map.size){var y=r.applyMerges(v,D,g,f);if(ne(y))return;g=y}if(!1!==globalThis.__DEV__&&!f.overwrite){var E=Object.create(null);m.forEach(function(P){P.selectionSet&&(E[P.name.value]=!0)}),Object.keys(g).forEach(function(P){(function(P){return!0===E[Ln(P)]})(P)&&!function(P){var z=v&&v.map.get(P);return Boolean(z&&z.info&&z.info.merge)}(P)&&function RR(e,t,n,r){var i=function(f){var d=r.getFieldValue(f,n);return"object"==typeof d&&d},o=i(e);if(o){var s=i(t);if(s&&!ne(o)&&!ve(o,s)&&!Object.keys(o).every(function(f){return void 0!==r.getFieldValue(s,f)})){var a=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Ln(n),u="".concat(a,".").concat(c);if(!RE.has(u)){RE.add(u);var l=[];!ye(o)&&!ye(s)&&[o,s].forEach(function(f){var d=r.getFieldValue(f,"__typename");"string"==typeof d&&!l.includes(d)&&l.push(d)}),!1!==globalThis.__DEV__&&L.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,o,s)}}}}(D,g,P,f.store)})}t.merge(p,g)}),t.retain(d.__ref),d},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,o=t.selectionSet,s=t.context,a=t.mergeTree,c=this.cache.policies,u=Object.create(null),l=r&&c.rootTypenamesById[r]||gf(i,o,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var f=function(){var y=ld(arguments,u,s.variables);if(ne(y.from)){var E=s.incomingById.get(y.from.__ref);if(E){var C=c.readField(b(b({},y),{from:E.storeObject}),s);if(void 0!==C)return C}}return c.readField(y,s)},d=new Set;this.flattenFields(o,i,s,l).forEach(function(y,E){var C,_=Nn(E),P=i[_];if(d.add(E),void 0!==P){var z=c.getStoreFieldName({typename:l,fieldName:E.name.value,field:E,variables:y.variables}),ke=PE(a,z),Oe=n.processFieldValue(P,E,E.selectionSet?fd(y,!1,!1):y,ke),Ue=void 0;E.selectionSet&&(ne(Oe)||fi(Oe))&&(Ue=f("__typename",Oe));var bn=c.getMergeFunction(l,E.name.value,Ue);bn?ke.info={field:E,typename:l,merge:bn}:FE(a,z),u=y.merge(u,((C={})[z]=Oe,C))}else!1!==globalThis.__DEV__&&!y.clientOnly&&!y.deferred&&!kf.added(E)&&!c.getReadFunction(l,E.name.value)&&!1!==globalThis.__DEV__&&L.error(12,Nn(E),i)});try{var h=c.identify(i,{typename:l,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:u,readField:f}),g=h[1];r=r||h[0],g&&(u=s.merge(u,g))}catch(y){if(!r)throw y}if("string"==typeof r){var v=Zr(r),m=s.written[r]||(s.written[r]=[]);if(m.indexOf(o)>=0||(m.push(o),this.reader&&this.reader.isFresh(i,v,o,s)))return v;var D=s.incomingById.get(r);return D?(D.storeObject=s.merge(D.storeObject,u),D.mergeTree=dd(D.mergeTree,a),d.forEach(function(y){return D.fieldNodeSet.add(y)})):s.incomingById.set(r,{storeObject:u,mergeTree:Ba(a)?void 0:a,fieldNodeSet:d}),v}return u},e.prototype.processFieldValue=function(t,n,r,i){var o=this;return n.selectionSet&&null!==t?ye(t)?t.map(function(s,a){var c=o.processFieldValue(s,n,r,PE(i,a));return FE(i,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i}):!1!==globalThis.__DEV__?Db(t):t},e.prototype.flattenFields=function(t,n,r,i){void 0===i&&(i=gf(n,t,r.fragmentMap));var o=new Map,s=this.cache.policies,a=new Fn(!1);return function c(u,l){var f=a.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(d){if(vo(d,r.variables)){var h=l.clientOnly,p=l.deferred;if(!(h&&p)&&Zt(d.directives)&&d.directives.forEach(function(m){var D=m.name.value;if("client"===D&&(h=!0),"defer"===D){var y=ba(m,r.variables);(!y||!1!==y.if)&&(p=!0)}}),xn(d)){var g=o.get(d);g&&(h=h&&g.clientOnly,p=p&&g.deferred),o.set(d,fd(r,h,p))}else{var v=Da(d,r.lookupFragment);if(!v&&d.kind===M.FRAGMENT_SPREAD)throw et(13,d.name.value);v&&s.fragmentMatches(v,i,n,r.variables)&&c(v.selectionSet,fd(r,h,p))}}}))}(t,r),o},e.prototype.applyMerges=function(t,n,r,i,o){var s,a=this;if(t.map.size&&!ne(r)){var c=ye(r)||!ne(n)&&!fi(n)?void 0:n,u=r;c&&!o&&(o=[ne(c)?c.__ref:c]);var l,f=function(d,h){return ye(d)?"number"==typeof h?d[h]:void 0:i.store.getFieldValue(d,String(h))};t.map.forEach(function(d,h){var p=f(c,h),g=f(u,h);if(void 0!==g){o&&o.push(h);var v=a.applyMerges(d,p,g,i,o);v!==g&&(l=l||new Map).set(h,v),o&&L(o.pop()===h)}}),l&&(r=ye(u)?u.slice(0):b({},u),l.forEach(function(d,h){r[h]=d}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,o&&(s=i.store).getStorage.apply(s,o)):r},e}(),xE=[];function PE(e,t){var n=e.map;return n.has(t)||n.set(t,xE.pop()||{map:new Map}),n.get(t)}function dd(e,t){if(e===t||!t||Ba(t))return e;if(!e||Ba(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,o={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){o.map.set(c,dd(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,dd(t.map.get(a),e.map.get(a)))})}return o}function Ba(e){return!e||!(e.info||e.map.size)}function FE(e,t){var n=e.map,r=n.get(t);r&&Ba(r)&&(xE.push(r),n.delete(t))}var RE=new Set,LR=function(e){function t(n){void 0===n&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new gb(kf),r.assumeImmutableResults=!0,r.makeVar=PF,r.txCount=0,r.config=function CR(e){return si(pE,e)}(n),r.addTypename=!!r.config.addTypename,r.policies=new PR({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return Mt(t,e),t.prototype.init=function(){var n=this.data=new Io.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new FR(this,this.storeReader=new kR({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:mE(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=ka(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(Mo(a))return a.makeCacheKey(s.query,s.callback,sr({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,i=void 0!==r&&r;try{return this.storeReader.diffQueryAgainstStore(b(b({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof dE)return null;throw o}},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(Le.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 xF(e){So(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&&Ub(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){sr.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},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(ne(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){!1!==globalThis.__DEV__&&L.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Le.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(),sr.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Ub(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,i=n.update,o=n.optimistic,s=void 0===o||o,a=n.removeOptimistic,c=n.onWatchUpdated,l=function(d){var p=r.data,g=r.optimisticData;++r.txCount,d&&(r.data=r.optimisticData=d);try{return u=i(r)}finally{--r.txCount,r.data=p,r.optimisticData=g}},f=new Set;return c&&!this.txCount&&this.broadcastWatches(b(b({},n),{onWatchUpdated:function(d){return f.add(d),!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&&f.size?(this.broadcastWatches(b(b({},n),{onWatchUpdated:function(d,h){var p=c.call(this,d,h);return!1!==p&&f.delete(d),p}})),f.size&&f.forEach(function(d){return r.maybeBroadcastWatch.dirty(d)})):this.broadcastWatches(n),u},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||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(i){return r.maybeBroadcastWatch(i,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 i=n.lastDiff,o=this.diff(n);r&&(n.optimistic&&"string"==typeof r.optimistic&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&!1===r.onWatchUpdated.call(this,n,o,i))||(!i||!ve(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(wR);class ja{}class hd{}class Vt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let i;if(i="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(o=>o.toString()),i.length>0){const o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}})}: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 Vt?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 Vt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Vt?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 i=("a"===t.op?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===o.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)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class HR{encodeKey(t){return LE(t)}encodeValue(t){return LE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const $R=/%(\d[a-f0-9])/gi,qR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function LE(e){return encodeURIComponent(e).replace($R,(t,n)=>qR[n]??t)}function Va(e){return`${e}`}class jn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new HR,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function UR(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+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],i=Array.isArray(r)?r.map(Va):[Va(r)];this.map.set(n,i)})):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 i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,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 jn({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(Va(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 i=r.indexOf(Va(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class zR{constructor(){this.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()}}function BE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function jE(e){return typeof Blob<"u"&&e instanceof Blob}function VE(e){return typeof FormData<"u"&&e instanceof FormData}class Ao{constructor(t,n,r,i){let o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function GR(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Vt),this.context||(this.context=new zR),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(d,t.setHeaders[d]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((f,d)=>f.set(d,t.setParams[d]),u)),new Ao(n,r,o,{params:u,headers:c,context:l,reportProgress:a,responseType:i,withCredentials:s})}}var Ae=(()=>((Ae=Ae||{})[Ae.Sent=0]="Sent",Ae[Ae.UploadProgress=1]="UploadProgress",Ae[Ae.ResponseHeader=2]="ResponseHeader",Ae[Ae.DownloadProgress=3]="DownloadProgress",Ae[Ae.Response=4]="Response",Ae[Ae.User=5]="User",Ae))();class pd{constructor(t,n=200,r="OK"){this.headers=t.headers||new Vt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class md extends pd{constructor(t={}){super(t),this.type=Ae.ResponseHeader}clone(t={}){return new md({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 Ha extends pd{constructor(t={}){super(t),this.type=Ae.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ha({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class HE extends pd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function gd(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}}let UE=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Ao)o=n;else{let c,u;c=i.headers instanceof Vt?i.headers:new Vt(i.headers),i.params&&(u=i.params instanceof jn?i.params:new jn({fromObject:i.params})),o=new Ao(n,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=function BR(...e){return yi(e,Vo(e))}(o).pipe(function jR(e,t){return fe(t)?jo(e,t,1):jo(e,1)}(c=>this.handler.handle(c)));if(n instanceof Ao||"events"===i.observe)return s;const a=s.pipe(function VR(e,t){return Un((n,r)=>{let i=0;n.subscribe(gi(r,o=>e.call(t,o,i++)&&r.next(o)))})}(c=>c instanceof Ha));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(nt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(nt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}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 jn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,gd(i,r))}post(n,r,i={}){return this.request("POST",n,gd(i,r))}put(n,r,i={}){return this.request("PUT",n,gd(i,r))}}return e.\u0275fac=function(n){return new(n||e)(V(ja))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function $E(e,t){return t(e)}function QR(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}const YR=new F("HTTP_INTERCEPTORS"),ko=new F("HTTP_INTERCEPTOR_FNS");function JR(){let e=null;return(t,n)=>(null===e&&(e=(bi(YR,{optional:!0})??[]).reduceRight(QR,$E)),e(t,n))}let qE=(()=>{class e extends ja{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set(this.injector.get(ko)));this.chain=r.reduceRight((i,o)=>function KR(e,t,n){return(r,i)=>n.runInContext(()=>t(r,o=>e(o,i)))}(i,o,this.injector),$E)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(V(hd),V(Yn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const tL=/^\)\]\}',?\n/;let GE=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new De(r=>{const i=this.xhrFactory.build();if(i.open(n.method,n.urlWithParams),n.withCredentials&&(i.withCredentials=!0),n.headers.forEach((h,p)=>i.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&i.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();i.responseType="json"!==h?h:"text"}const o=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=i.statusText||"OK",p=new Vt(i.getAllResponseHeaders()),g=function nL(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||n.url;return s=new md({headers:p,status:i.status,statusText:h,url:g}),s},c=()=>{let{headers:h,status:p,statusText:g,url:v}=a(),m=null;204!==p&&(m=typeof i.response>"u"?i.responseText:i.response),0===p&&(p=m?200:0);let D=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof m){const y=m;m=m.replace(tL,"");try{m=""!==m?JSON.parse(m):null}catch(E){m=y,D&&(D=!1,m={error:E,text:m})}}D?(r.next(new Ha({body:m,headers:h,status:p,statusText:g,url:v||void 0})),r.complete()):r.error(new HE({error:m,headers:h,status:p,statusText:g,url:v||void 0}))},u=h=>{const{url:p}=a(),g=new HE({error:h,status:i.status||0,statusText:i.statusText||"Unknown Error",url:p||void 0});r.error(g)};let l=!1;const f=h=>{l||(r.next(a()),l=!0);let p={type:Ae.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&i.responseText&&(p.partialText=i.responseText),r.next(p)},d=h=>{let p={type:Ae.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return i.addEventListener("load",c),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),n.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",d)),i.send(o),r.next({type:Ae.Sent}),()=>{i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",c),i.removeEventListener("timeout",u),n.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(V(eD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const yd=new F("XSRF_ENABLED"),WE=new F("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),QE=new F("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class KE{}let oL=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=qv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(V(Xt),V(gl),V(WE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function sL(e,t){const n=e.url.toLowerCase();if(!bi(yd)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=bi(KE).getToken(),i=bi(QE);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var Se=(()=>((Se=Se||{})[Se.Interceptors=0]="Interceptors",Se[Se.LegacyInterceptors=1]="LegacyInterceptors",Se[Se.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Se[Se.NoXsrfProtection=3]="NoXsrfProtection",Se[Se.JsonpSupport=4]="JsonpSupport",Se[Se.RequestsMadeViaParent=5]="RequestsMadeViaParent",Se))();function hi(e,t){return{\u0275kind:e,\u0275providers:t}}function aL(...e){const t=[UE,GE,qE,{provide:ja,useExisting:qE},{provide:hd,useExisting:GE},{provide:ko,useValue:sL,multi:!0},{provide:yd,useValue:!0},{provide:KE,useClass:oL}];for(const n of e)t.push(...n.\u0275providers);return function j_(e){return{\u0275providers:e}}(t)}const YE=new F("LEGACY_INTERCEPTOR_FN");let uL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Tn({type:e}),e.\u0275inj=nn({providers:[aL(hi(Se.LegacyInterceptors,[{provide:YE,useFactory:JR},{provide:ko,useExisting:YE,multi:!0}]))]}),e})();class lL extends ti{constructor(t,n){super(),ue(this,"httpClient",void 0),ue(this,"options",void 0),ue(this,"requester",void 0),ue(this,"print",XD),this.httpClient=t,this.options=n,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new ce(i=>{const o=r.getContext(),s=(D,y)=>function cr(...e){const t=e.find(n=>typeof n<"u");return typeof t>"u"?e[e.length-1]:t}(o[D],this.options[D],y);let a=s("method","POST");const c=s("includeQuery",!0),u=s("includeExtensions",!1),l=s("uri","graphql"),f=s("withCredentials"),d=s("useMultipart"),h=!0===this.options.useGETForQueries,p=r.query.definitions.some(D=>"OperationDefinition"===D.kind&&"query"===D.operation);h&&p&&(a="GET");const g={method:a,url:"function"==typeof l?l(r):l,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:f,useMultipart:d,headers:this.options.headers}};u&&(g.body.extensions=r.extensions),c&&(g.body.query=this.print(r.query));const v=function ZE(e){let t=e.headers&&e.headers instanceof Vt?e.headers:new Vt(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}(o);g.options.headers=((e,t)=>e&&t?t.keys().reduce((r,i)=>r.set(i,t.getAll(i)),e):t||e)(g.options.headers,v);const m=((e,t,n)=>{const r=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),o=e.body.length;let a,s=e.options&&e.options.useMultipart;if(s){if(o)return new De(u=>u.error(new Error("File upload is not available when combined with Batching")));if(!r)return new De(u=>u.error(new Error("File upload is not available when GET is used")));if(!n)return new De(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(o){if(!r)return new De(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((f,d)=>{const h=e.body[d];return f[d]=-1!==["variables","extensions"].indexOf(d.toLowerCase())?JSON.stringify(h):h,f},{})};if(s&&r){const u=new FormData;u.append("operations",JSON.stringify(c.body));const l={},f=a.files;let d=0;f.forEach(h=>{l[++d]=h}),u.append("map",JSON.stringify(l)),d=0,f.forEach((h,p)=>{u.append(++d+"",p,p.name)}),c.body=u}return t.request(e.method,e.url,{observe:"response",responseType:"json",reportProgress:!1,...c,...e.options})})(g,this.httpClient,this.options.extractFiles).subscribe({next:D=>{r.setContext({response:D}),i.next(D.body)},error:D=>i.error(D),complete:()=>i.complete()});return()=>{m.closed||m.unsubscribe()}})}request(t){return this.requester(t)}}let fL=(()=>{class e{constructor(n){ue(this,"httpClient",void 0),this.httpClient=n}create(n){return new lL(this.httpClient,n)}}return ue(e,"\u0275fac",function(n){return new(n||e)(V(UE))}),ue(e,"\u0275prov",Y({token:e,factory:e.\u0275fac,providedIn:"root"})),e})(),dL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Tn({type:e}),e.\u0275inj=nn({providers:[{provide:cE,useFactory:t=>{const n=new LR;return{link:t.create({uri:"https://graphqlpokemon.favware.tech/v7"}),cache:n,defaultOptions:{query:{fetchPolicy:"network-only",errorPolicy:"all"}}}},deps:[fL]}],imports:[bR]}),e})();class Oo extends Bo{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)}}let yt=(()=>{class e{constructor(){this.raidTierSource=new Oo(""),this.pokemonListSource=new Oo(""),this.teraTypeSource=new Oo(""),this.moveListSource=new Oo(""),this.loadingSource=new Oo(!1),this.raidTier=this.raidTierSource.asObservable(),this.pokemonList=this.pokemonListSource.asObservable(),this.teraType=this.teraTypeSource.asObservable(),this.moveList=this.moveListSource.asObservable(),this.loading=this.loadingSource.asObservable()}changeRaidTier(n){this.raidTierSource.next(n)}changePokemon(n){this.pokemonListSource.next(n)}changeTeraType(n){this.teraTypeSource.next(n)}changeMoveList(n){this.moveListSource.next(n)}changeLoading(n){this.loadingSource.next(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hL=fE` + query GetPokemon($pokemon: PokemonEnum!) { + getPokemon(pokemon: $pokemon) { + abilities { + first { + name + key + desc + shortDesc + } + second { + name + key + desc + shortDesc + } + hidden { + name + key + desc + shortDesc + } + } + key + num + types { + name + } + baseStats { + hp + attack + defense + specialattack + specialdefense + speed + } + learnsets { + generation8 { + dreamworldMoves { + ...LearnsetMoveFragment + } + eggMoves { + ...LearnsetMoveFragment + } + eventMoves { + ...LearnsetMoveFragment + } + tmMoves { + ...LearnsetMoveFragment + } + tutorMoves { + ...LearnsetMoveFragment + } + virtualTransferMoves { + ...LearnsetMoveFragment + } + levelUpMoves { + generation + move { + ...MoveFragment + } + } + } + } + } + } + + fragment MoveFragment on Move { + key + accuracy + basePower + category + desc + name + pp + priority + shortDesc + target + type + } + fragment LearnsetMoveFragment on LearnsetMove { + generation + move { + ...MoveFragment + } + } +`,pL=fE` + query getMove($move: MovesEnum!) { + getMove(move: $move) { + key + name + shortDesc + type + basePower + pp + category + accuracy + priority + target + desc + } + } +`;let ur=(()=>{class e{constructor(n){this.apollo=n}getAbilities(){return this.pokemon.pipe(nt(n=>n.getPokemon.abilities))}getDexNumber(){return this.pokemon.pipe(nt(n=>n.getPokemon.num))}getMove(n){return this.apollo.query({query:pL,variables:{move:n}}).pipe(nt(r=>r.data))}getMoves(){return this.pokemon.pipe(nt(n=>n.getPokemon.learnsets))}getPokemon(n){return this.pokemon=this.apollo.query({query:hL,variables:{pokemon:n}}).pipe(nt(r=>r.data)),this.pokemon}getStats(){return this.pokemon.pipe(nt(n=>n.getPokemon.baseStats))}getTypes(){return this.pokemon.pipe(nt(n=>n.getPokemon.types))}}return e.\u0275fac=function(n){return new(n||e)(V(lE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var _e=(()=>(function(e){e.Bug="Bug",e.Dark="Dark",e.Dragon="Dragon",e.Electric="Electric",e.Fairy="Fairy",e.Fighting="Fighting",e.Fire="Fire",e.Flying="Flying",e.Ghost="Ghost",e.Grass="Grass",e.Ground="Ground",e.Ice="Ice",e.Normal="Normal",e.Poison="Poison",e.Psychic="Psychic",e.Rock="Rock",e.Steel="Steel",e.Water="Water"}(_e||(_e={})),_e))();const vd=[{name:_e.Bug,matchup:{offense:{double:["dark","grass","psychic"],immune:[],normal:["bug","dragon","electric","ground","ice","normal","rock","water"],resisted:["fairy","fighting","fire","flying","ghost","poison","steel"]},defense:{double:["fire","flying","rock"],immune:[],normal:["bug","dark","dragon","electric","fairy","ghost","ice","normal","poison","psychic","steel","water"],resisted:["fighting","grass","ground"]}}},{name:_e.Dark,matchup:{offense:{double:["ghost","psychic"],immune:[],normal:["bug","dragon","electric","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["dark","fairy","fighting"]},defense:{double:["bug","fairy","fighting"],immune:["psychic"],normal:["dragon","electric","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["dark","ghost"]}}},{name:_e.Dragon,matchup:{offense:{double:["dragon"],immune:["fairy"],normal:["bug","dark","electric","fighting","fire","flying","ghost","grass","ground","ice","normal","poison","psychic","rock","water"],resisted:["steel"]},defense:{double:["dragon","fairy","ice"],immune:[],normal:["bug","dark","fighting","flying","ghost","ground","normal","poison","psychic","rock","steel"],resisted:["electric","fire","grass","water"]}}},{name:_e.Electric,matchup:{offense:{double:["flying","water"],immune:["ground"],normal:["bug","dark","fairy","fighting","fire","ghost","ice","normal","poison","psychic","rock","steel"],resisted:["dragon","electric","grass"]},defense:{double:["ground"],immune:[],normal:["bug","dark","dragon","fairy","fighting","fire","ghost","grass","ice","normal","poison","psychic","rock","water"],resisted:["electric","flying","steel"]}}},{name:_e.Fairy,matchup:{offense:{double:["dark","dragon","fighting"],immune:[],normal:["bug","electric","fairy","flying","ghost","grass","ground","ice","normal","psychic","rock","water"],resisted:["fire","poison","steel"]},defense:{double:["poison","steel"],immune:["dragon"],normal:["electric","fairy","fire","flying","ghost","grass","ground","ice","normal","psychic","rock","water"],resisted:["bug","dark","fighting"]}}},{name:_e.Fighting,matchup:{offense:{double:["dark","ice","normal","rock","steel"],immune:["ghost"],normal:["dragon","electric","fighting","fire","grass","ground","water"],resisted:["bug","fairy","flying","poison","psychic"]},defense:{double:["fairy","flying","psychic"],immune:[],normal:["dragon","electric","fighting","fire","ghost","grass","ground","ice","normal","poison","steel","water"],resisted:["bug","dark","rock"]}}},{name:_e.Fire,matchup:{offense:{double:["bug","grass","ice","steel"],immune:[],normal:["dark","electric","fairy","fighting","flying","ghost","ground","normal","poison","psychic"],resisted:["dragon","fire","rock","water"]},defense:{double:["ground","rock","water"],immune:[],normal:["dark","dragon","electric","fighting","flying","ghost","normal","poison","psychic"],resisted:["bug","fairy","fire","grass","ice","steel"]}}},{name:_e.Flying,matchup:{offense:{double:["bug","fighting","grass"],immune:[],normal:["dark","dragon","fairy","fire","flying","ghost","ground","ice","normal","poison","psychic","water"],resisted:["electric","rock","steel"]},defense:{double:["electric","ice","rock"],immune:["ground"],normal:["dark","dragon","fairy","fire","flying","ghost","normal","poison","psychic","steel","water"],resisted:["bug","fighting","grass"]}}},{name:_e.Ghost,matchup:{offense:{double:["ghost","psychic"],immune:["normal"],normal:["bug","dragon","electric","fairy","fighting","fire","flying","grass","ground","ice","poison","rock","steel","water"],resisted:["dark"]},defense:{double:["dark","ghost"],immune:["fighting","normal"],normal:["dragon","electric","fairy","fire","flying","grass","ground","ice","psychic","rock","steel","water"],resisted:["bug","poison"]}}},{name:_e.Grass,matchup:{offense:{double:["ground","rock","water"],immune:[],normal:["dark","electric","fairy","fighting","ghost","ice","normal","psychic"],resisted:["bug","dragon","fire","flying","grass","poison","steel"]},defense:{double:["bug","fire","flying","ice","poison"],immune:[],normal:["dark","dragon","fairy","fighting","ghost","normal","psychic","rock","steel"],resisted:["electric","grass","ground","water"]}}},{name:_e.Ground,matchup:{offense:{double:["electric","fire","poison","rock","steel"],immune:["flying"],normal:["dark","dragon","fairy","fighting","ghost","ground","ice","normal","psychic","water"],resisted:["bug","grass"]},defense:{double:["grass","ice","water"],immune:["electric"],normal:["bug","dark","dragon","fairy","fighting","fire","flying","ghost","ground","normal","psychic","steel"],resisted:["poison","rock"]}}},{name:_e.Ice,matchup:{offense:{double:["dragon","flying","grass","ground"],immune:[],normal:["bug","dark","electric","fairy","fighting","ghost","normal","poison","psychic","rock"],resisted:["fire","ice","steel","water"]},defense:{double:["fighting","fire","rock","steel"],immune:[],normal:["bug","dark","dragon","electric","fairy","flying","ghost","grass","ground","normal","poison","psychic","water"],resisted:["ice"]}}},{name:_e.Normal,matchup:{offense:{double:[],immune:["ghost"],normal:["bug","dark","dragon","electric","fairy","fighting","fire","flying","grass","ground","ice","normal","poison","psychic","water"],resisted:["rock","steel"]},defense:{double:["fighting"],immune:["ghost"],normal:["bug","dark","dragon","electric","fairy","fire","flying","grass","ground","ice","normal","poison","psychic","rock","steel","water"],resisted:[]}}},{name:_e.Poison,matchup:{offense:{double:["fairy","grass"],immune:["steel"],normal:["bug","dark","dragon","electric","fighting","fire","flying","ice","normal","psychic","water"],resisted:["ghost","ground","poison","rock"]},defense:{double:["ground","psychic"],immune:[],normal:["dark","dragon","electric","fire","flying","ghost","ice","normal","rock","steel","water"],resisted:["bug","fairy","fighting","grass","poison"]}}},{name:_e.Psychic,matchup:{offense:{double:["fighting","poison"],immune:["dark"],normal:["bug","dragon","electric","fairy","fire","flying","ghost","grass","ground","ice","normal","rock","water"],resisted:["psychic","steel"]},defense:{double:["bug","dark","ghost"],immune:[],normal:["dragon","electric","fairy","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["fighting","psychic"]}}},{name:_e.Rock,matchup:{offense:{double:["bug","fire","flying","ice"],immune:[],normal:["dark","dragon","electric","fairy","ghost","grass","normal","poison","psychic","rock","water"],resisted:["fighting","ground","steel"]},defense:{double:["fighting","grass","ground","steel","water"],immune:[],normal:["bug","dark","dragon","electric","fairy","ghost","ice","psychic","rock"],resisted:["fire","flying","normal","poison"]}}},{name:_e.Steel,matchup:{offense:{double:["fairy","ice","rock"],immune:[],normal:["bug","dark","dragon","fighting","flying","ghost","grass","ground","normal","poison","psychic"],resisted:["electric","fire","steel","water"]},defense:{double:["fighting","fire","ground"],immune:["poison"],normal:["dark","electric","ghost","water"],resisted:["bug","dragon","fairy","flying","grass","ice","normal","psychic","rock","steel"]}}},{name:_e.Water,matchup:{offense:{double:["fire","ground","rock"],immune:[],normal:["bug","dark","electric","fairy","fighting","flying","ghost","ice","normal","poison","psychic","steel"],resisted:["dragon","grass","water"]},defense:{double:["electric","grass"],immune:[],normal:["bug","dark","dragon","fairy","fighting","flying","ghost","ground","normal","poison","psychic","rock"],resisted:["fire","ice","steel","water"]}}}];let Dd=(()=>{class e{advantages(n,r=!1){const i=[];return vd.filter(o=>o.name.includes(n)).forEach(o=>{const s=o.matchup.offense;s.double.forEach(a=>{i.push({name:a,multiplier:2})}),r&&(s.resisted.forEach(a=>{i.push({name:a,multiplier:.5})}),s.immune.forEach(a=>{i.push({name:a,multiplier:0})}))}),i}weaknesses(n){const r=[];return vd.filter(i=>i.name.includes(n)).forEach(i=>{const o=i.matchup.defense;o.double.forEach(s=>{r.push({name:s,multiplier:2})}),o.resisted.forEach(s=>{r.push({name:s,multiplier:.5})}),o.immune.forEach(s=>{r.push({name:s,multiplier:0})})}),r}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $a(e){return e.toLowerCase().replace(/\w/,t=>t.toUpperCase())}function lr(e){(e?[e]:["pokemonTypes","pokemonImageNormal","pokemonImageShiny","pokemonAbility","pokemonStatsWrapper","pokemonMoves","pokemonHerbs","pokemonTypeAdvantages","pokemonTeraWeaknesses","pokemonTeraAdvantages"]).forEach(n=>{document.getElementById(n).innerHTML=""})}function tt(e,t){e.innerHTML+=t}function bd(e){return`
${$a(e.name)} - ${e.multiplier}x
`}function ew(e,t,n){return String(e).padStart(t,n)}let mL=(()=>{class e{constructor(n){this.stateService=n}valueChanged(){const n=document.getElementById("raidTier");this.stateService.changeRaidTier(n.options[n.selectedIndex].value)}}return e.\u0275fac=function(n){return new(n||e)(k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-raid-tier"]],decls:7,vars:0,consts:[["id","raidTier",3,"change"],["value",""],["value","5"],["value","6"]],template:function(n,r){1&n&&(me(0,"select",0),zr("change",function(){return r.valueChanged()}),me(1,"option",1),Qe(2,"-- Tier --"),xe(),me(3,"option",2),Qe(4,"5 Star"),xe(),me(5,"option",3),Qe(6,"6 Star"),xe()())},encapsulation:2}),e})();const qa=[{name:"Raichu",info:{moves:["Discharge","Iron Tail","Charm","Nuzzle","Electric Terrain","Thunder Wave"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Arcanine",info:{moves:["Flamethrower","Crunch","Extreme Speed","Fire Fang","Sunny Day","Leer"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slowbro",info:{moves:["Zen Headbutt","Liquidation","Yawn","Water Pulse","Curse"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Cloyster",info:{moves:["Icicle Spear","Hydro Pump","Ice Shard","Supersonic","Shell Smash"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Gengar",info:{moves:["Shadow Ball","Sludge Bomb","Confuse Ray","Spite","Hypnosis"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Scyther",info:{moves:["Aerial Ace","X-Scissor","Slash","Agility","Focus Energy","Swords Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tauros (Fire)",formName:"taurospaldeafire",imageAlt:"-b",info:{moves:["Flare Blitz","Close Combat","Flamethrower","Headbutt","Work Up","Sunny Day"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tauros (Water)",formName:"taurospaldeawater",imageAlt:"-a",info:{moves:["Wave Crash","Close Combat","Surf","Headbutt","Work Up","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Gyarados",info:{moves:["Aqua Tail","Twister","Hurricane","Crunch","Scary Face","Taunt","Dragon Dance","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Ditto",info:{moves:["Transform"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Eevee",info:{moves:["Tera Blast","Take Down","Shadow Ball","Tickle","Yawn","Calm Mind"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Dragonite",info:{moves:["Dragon Rush","Aerial Ace","Extreme Speed","Hurricane","Safeguard","Dragon Dance","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slowking",info:{moves:["Psychic","Surf","Yawn","Water Pulse","Psychic Terrain","Calm Mind"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Scizor",info:{moves:["Iron Head","X-Scissor","Bullet Punch","Slash","Iron Defense","Focus Energy"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Delibird",info:{moves:["Present","Drill Peck","Ice Punch","Blizzard","Snowscape"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Houndoom",info:{moves:["Flamethrower","Crunch","Taunt","Will-O-Wisp","Sunny Day","Howl"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Blissey",info:{moves:["Dazzling Gleam","Hyper Voice","Sing"],specialMoves:["Seismic Toss","Gravity"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Tyranitar",info:{moves:["Rock Slide","Crunch","Screech","Dark Pulse","Dragon Dance","Sandstorm"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Gardevoir",info:{moves:["Psychic","Moonblast","Draining Kiss","Misty Terrain","Calm Mind","Psychic Terrain"],specialMoves:["Disable"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Breloom",info:{moves:["Seed Bomb","Mach Punch","Worry Seed","Headbutt","Grassy Terrain"],specialMoves:["Spore"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slaking",info:{moves:["Facade","Shadow Claw","Play Rough","Swagger","Encore"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hariyama",info:{moves:["Reversal","Brick Break","Brine","Heavy Slam","Scary Face","Taunt","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Sableye",info:{moves:["Shadow Claw","Foul Play","Will-O-Wisp","Night Shade","Flatter","Torment"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Camerupt",info:{moves:["Flamethrower","Earth Power","Yawn","Eruption","Sunny Day"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Altaria",info:{moves:["Dragon Pulse","Hurricane","Sing","Mist","Safeguard"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Glalie",info:{moves:["Freeze-Dry","Crunch","Headbutt","Frost Breath","Snowscape"],specialMoves:["Disable"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Salamence",info:{moves:["Aerial Ace","Hyper Voice","Draco Meteor","Dragon Dance","Focus Energy"],specialMoves:["Dragon Rush"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Staraptor",info:{moves:["Close Combat","Brave Bird","Quick Attack"],specialMoves:["Double-Edge"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Luxray",info:{moves:["Crunch","Wild Charge","Discharge","Thunder Wave","Electric Terrain","Leer"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Drifblim",info:{moves:["Hex","Air Slash","Thunder Wave","Shadow Ball","Will-O-Wisp"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Mismagius",info:{moves:["Mystical Fire","Shadow Ball","Confuse Ray","Taunt","Nasty Plot"],specialMoves:["Light Screen"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Honchkrow",info:{moves:["Night Slash","Hurricane","Haze","Wing Attack","Nasty Plot"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Bronzong",info:{moves:["Flash Cannon","Extrasensory","Metal Sound","Payback","Rain Dance","Calm Mind","Reflect"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Garchomp",info:{moves:["Earthquake","Dragon Claw","Iron Head","Slash","Sandstorm","Bulldoze"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hippowdon",info:{moves:["Earthquake","Yawn","Rock Slide","Body Slam"],specialMoves:["Stockpile"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Abomasnow",info:{moves:["Energy Ball","Ice Punch","Ice Shard","Leer","Blizzard","Snowscape","Aurora Veil"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Weavile",info:{moves:["Ice Punch","Night Slash","Taunt","Facade","Swords Dance"],specialMoves:["Reflect"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Magnezone",info:{moves:["Thunderbolt","Flash Cannon","Tri Attack","Thunder Wave","Magnet Rise","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Gallade",info:{moves:["Psycho Cut","Brick Break","Fury Cutter","Hypnosis","Psychic Terrain"],specialMoves:["Disable","Shadow Sneak"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Froslass",info:{moves:["Frost Breath","Shadow Ball","Scary Face","Draining Kiss","Snowscape","Aurora Veil"],specialMoves:["Disable"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Rotom",info:{moves:["Discharge","Uproar","Hex","Thunder Wave","Charge","Eerie Impulse"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Krookodile",info:{moves:["Earthquake","Crunch","Sand Tomb","Torment","Hone Claws"],specialMoves:["Counter"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Zoroark",info:{moves:["Night Daze","Shadow Claw","Taunt","Hyper Voice","Torment","Nasty Plot"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Gothitelle",info:{moves:["Psychic","Thunder Wave","Thunderbolt","Stored Power","Calm Mind","Light Screen"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Amoonguss",info:{moves:["Energy Ball","Sludge Bomb","Spore","Clear Smog","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Eelektross",info:{moves:["Wild Charge","Flamethrower","Discharge","Crush Claw","Thunder Wave","Coil"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Haxorus",info:{moves:["Dragon Claw","Crunch","Giga Impact","Dragon Dance"],specialMoves:["Harden","First Impression"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Braviary",info:{moves:["Acrobatics","Crush Claw","Superpower","Air Slash","Tailwind","Hone Claws"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hydreigon",info:{moves:["Dark Pulse","Dragon Pulse","Scary Face","Dragon Rush","Taunt","Reflect","Nasty Plot"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Volcarona",info:{moves:["Fire Blast","Bug Buzz","Hurricane","Will-O-Wisp","Sunny Day","Quiver Dance"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Talonflame",info:{moves:["Acrobatics","Flare Blitz","Steel Wing","Heat Wave","Bulk Up"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Florges",info:{moves:["Petal Dance","Moonblast","Psychic","Safeguard","Grassy Terrain","Calm Mind"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Dragalge",info:{moves:["Dragon Pulse","Sludge Bomb","Water Pulse","Toxic","Acid Spray","Draco Meteor"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Clawitzer",info:{moves:["Water Pulse","Dragon Pulse","Aura Sphere","Crabhammer","Rain Dance"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Goodra",info:{moves:["Water Pulse","Dragon Pulse","Sludge Bomb","Power Whip","Rain Dance","Draco Meteor"],specialMoves:["Acid Armor"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Avalugg",info:{moves:["Icicle Crash","Double-Edge","Crunch","Ice Fang","Snowscape","Iron Defense"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Noivern",info:{moves:["Air Slash","Dragon Pulse","Acrobatics","Boomburst","Tailwind"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Mudsdale",info:{moves:["High Horsepower","Body Press","Rock Smash","Heavy Slam","Scary Face","Iron Defense"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tsareena",info:{moves:["High Jump Kick","Power Whip","Stomp","Trop Kick","Reflect","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Oranguru",info:{moves:["Facade","Psychic","Stored Power","Yawn","Calm Mind","Light Screen"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Passimian",info:{moves:["Reversal","Rock Smash","Facade","Gunk Shot","Taunt","Trailblaze","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Mimikyu",info:{moves:["Play Rough","Shadow Claw","Will-O-Wisp","Shadow Sneak","Light Screen","Taunt"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Greedent",info:{moves:["Body Slam","Body Press","Bullet Seed","Tail Whip","Stockpile"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Corviknight",info:{moves:["Steel Wing","Drill Peck","Taunt","Body Press","Iron Defense","Hone Claws"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Coalossal",info:{moves:["Heat Crash","Stone Edge","Incinerate","Ancient Power","Sandstorm","Tar Shot","Fire Blast"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Flapple",info:{moves:["Grav Apple","Dragon Breath","Dragon Rush","Trailblaze","Grassy Terrain","Iron Defense","Dragon Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Appletun",info:{moves:["Apple Acid","Dragon Pulse","Giga Drain","Body Press","Growth"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Toxtricity (Amped)",formName:"toxtricity",info:{moves:["Overdrive","Poison Jab","Nuzzle","Boomburst","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Toxtricity (Low Key)",formName:"toxtricity",imageAlt:"-l",info:{moves:["Overdrive","Poison Jab","Nuzzle","Boomburst","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Polteageist",info:{moves:["Shadow Ball","Mega Drain","Astonish","Will-O-Wisp","Shell Smash"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Hatterene",info:{moves:["Dazzling Gleam","Psychic","Dark Pulse","Charm","Misty Terrain","Calm Mind","Psychic Terrain"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Grimmsnarl",info:{moves:["Spirit Break","False Surrender","Scary Face","Foul Play","Light Screen","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Falinks",info:{moves:["Megahorn","Reversal","Headbutt","Brick Break","No Retreat"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Pincurchin",info:{moves:["Zing Zap","Thunder","Surf","Poison Jab","Rain Dance","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Indeedee (Male)",formName:"indeedee",info:{moves:["Psychic","Hyper Voice","Shadow Ball","Trick Room","Play Nice","Calm Mind"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Indeedee (Female)",formName:"indeedee",imageAlt:"-f",info:{moves:["Psychic","Hyper Voice","Shadow Ball","Trick Room","Play Nice","Calm Mind"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Copperajah",info:{moves:["Heavy Slam","Strength","High Horsepower","Sandstorm","Iron Defense"],specialMoves:["Curse"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Dragapult",info:{moves:["Shadow Ball","Dragon Darts","Thunderbolt","Hex","Reflect","Light Screen"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Pawmot",info:{moves:["Wild Charge","Close Combat","Nuzzle","Double Shock"],specialMoves:["Sweet Kiss"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Arboliva",info:{moves:["Energy Ball","Hyper Voice","Earth Power","Charm","Sunny Day","Growth","Leaf Storm"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Garganacl",info:{moves:["Salt Cure","Rock Slide","Hammer Arm","Sandstorm"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Armarouge",info:{moves:["Armor Cannon","Psychic","Night Shade","Will-O-Wisp","Sunny Day","Calm Mind"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Ceruledge",info:{moves:["Bitter Blade","Shadow Claw","Psycho Cut","Will-O-Wisp","Sunny Day","Swords Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Mabosstiff",info:{moves:["Crunch","Play Rough","Take Down","Swagger","Taunt"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Brambleghast",info:{moves:["Giga Drain","Shadow Ball","Power Whip","Infestation","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tinkaton",info:{moves:["Gigaton Hammer","Play Rough","Brutal Swing","Rock Smash","Thunder Wave"],specialMoves:["Charm","Misty Terrain"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Bombirdier",info:{moves:["Rock Slide","Sucker Punch","Brave Bird","Torment","Knock Off","Feather Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Palafin",info:{moves:["Liquidation","Acrobatics","Charm","Rain Dance","Bulk Up"],specialMoves:["Boomburst"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Revavroom",info:{moves:["Spin Out","Taunt","Gunk Shot","Overheat","Scary Face","Shift Gear"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Orthworm",info:{moves:["Iron Head","Earthquake","Stomping Tantrum","Wrap","Sandstorm","Coil"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Glimmora",info:{moves:["Power Gem","Sludge Bomb","Mortal Spin","Ancient Power","Sandstorm","Tera Blast"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Cetitan",info:{moves:["Ice Spinner","Liquidation","Snowscape"],specialMoves:["Yawn","Entrainment"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Dondozo",info:{moves:["Order Up","Waterfall","Heavy Slam","Tickle","Rain Dance"],specialMoves:["Stockpile"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Tatsugiri (Curly)",formName:"tatsugiri",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Tatsugiri (Droopy)",formName:"tatsugiri",imageAlt:"-d",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Tatsugiri (Stretchy)",formName:"tatsugiri",imageAlt:"-s",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Annihilape",info:{moves:["Shadow Claw","Close Combat","Outrage","Leer","Taunt","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Kingambit",info:{moves:["Iron Head","Night Slash","Torment","Slash","Taunt","Metal Burst"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Baxcalibur",info:{moves:["Dragon Claw","Icicle Crash","Ice Shard","Body Press","Snowscape"],herbs:[{name:"Spicy",chance:10.87}]}}],za=[{name:"Gengar",info:{moves:["Shadow Ball","Sludge Bomb","Dazzling Gleam","Will-O-Wisp","Hypnosis"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Tauros",formName:"taurospaldea",imageAlt:"-p",info:{moves:["Close Combat","Thrash","Zen Headbutt","Raging Bull","Bulk Up"],specialMoves:["Screech"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Tauros (Fire)",formName:"taurospaldeafire",imageAlt:"-b",info:{moves:["Flare Blitz","Close Combat","Flamethrower","Headbutt","Sunny Day","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Tauros (Water)",formName:"taurospaldeawater",imageAlt:"-a",info:{moves:["Wave Crash","Close Combat","Surf","Headbutt","Rain Dance","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Gyarados",info:{moves:["Aqua Tail","Crunch","Hurricane","Ice Fang","Taunt","Dragon Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Ditto",info:{moves:["Transform"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Vaporeon",info:{moves:["Tera Blast","Surf","Hyper Voice","Rain Dance","Calm Mind"],specialMoves:["Yawn"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Jolteon",info:{moves:["Tera Blast","Thunderbolt","Shadow Ball","Thunder Wave","Electric Terrain","Calm Mind"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Flareon",info:{moves:["Tera Blast","Flare Blitz","Lava Plume","Will-O-Wisp","Sunny Day"],specialMoves:["Curse"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Dragonite",info:{moves:["Dragon Rush","Extreme Speed","Dragon Dance","Aqua Tail","Light Screen"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Espeon",info:{moves:["Tera Blast","Psychic","Psyshock","Psychic Terrain","Calm Mind"],specialMoves:["Tickle"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Umbreon",info:{moves:["Tera Blast","Dark Pulse","Foul Play","Calm Mind"],specialMoves:["Curse","Tickle"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Slowking",info:{moves:["Surf","Psyshock","Trick Room","Flamethrower","Light Screen","Rain Dance","Calm Mind"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Scizor",info:{moves:["X-Scissor","Bullet Punch","Close Combat","Iron Head","Iron Defense","Focus Energy"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Heracross",info:{moves:["Megahorn","Close Combat","Thrash","Leer","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Blissey",info:{moves:["Dazzling Gleam","Hyper Voice","Sing","Light Screen","Defense Curl"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Tyranitar",info:{moves:["Stone Edge","Crunch","Screech","Rock Blast","Iron Defense"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Pelipper",info:{moves:["Hurricane","Hydro Pump","Mist","Supersonic","Rain Dance","Agility"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Gardevoir",info:{moves:["Moonblast","Psychic","Calm Mind","Thunder Wave","Misty Terrain","Psychic Terrain"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Breloom",info:{moves:["Bullet Seed","Low Sweep","Aerial Ace","Grassy Terrain"],specialMoves:["Spore"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Torkoal",info:{moves:["Lava Plume","Yawn","Clear Smog","Body Slam","Sunny Day","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Salamence",info:{moves:["Outrage","Dual Wingbeat","Flamethrower","Tera Blast","Dragon Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Staraptor",info:{moves:["Close Combat","Brave Bird"],specialMoves:["Double-Edge","Feather Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Garchomp",info:{moves:["Outrage","Earthquake","Flamethrower","Rock Slide","Swords Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Hippowdon",info:{moves:["Earthquake","Ice Fang","Yawn","Rock Slide"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Magnezone",info:{moves:["Thunder","Flash Cannon","Tri Attack","Thunder Wave","Rain Dance","Iron Defense","Electric Terrain"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Leafeon",info:{moves:["Tera Blast","Leaf Blade","Charm","Sunny Day","Swords Dance"],specialMoves:["Double Kick"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Glaceon",info:{moves:["Tera Blast","Ice Beam","Blizzard","Charm","Snowscape","Calm Mind"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Gallade",info:{moves:["Psycho Cut","Close Combat","Will-O-Wisp","Aerial Ace","Hypnosis","Psychic Terrain"],specialMoves:["Disable"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Amoonguss",info:{moves:["Energy Ball","Foul Play","Spore","Sludge Bomb","Grassy Terrain"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Haxorus",info:{moves:["Outrage","Crunch","Giga Impact","Dragon Dance"],specialMoves:["First Impression"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Hydreigon",info:{moves:["Dark Pulse","Dragon Pulse","Crunch","Taunt","Work Up","Nasty Plot"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Volcarona",info:{moves:["Bug Buzz","Flamethrower","Hurricane","Tailwind","Amnesia","Sunny Day","Light Screen","Quiver Dance"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Talonflame",info:{moves:["Brave Bird","Flare Blitz","Flamethrower","Tera Blast","Sunny Day","Swords Dance"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Dragalge",info:{moves:["Dragon Pulse","Sludge Bomb","Water Pulse","Toxic","Acid Spray","Draco Meteor"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Clawitzer",info:{moves:["Water Pulse","Dragon Pulse","Aura Sphere","Crabhammer","Rain Dance"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Sylveon",info:{moves:["Tera Blast","Hyper Voice","Moonblast","Misty Terrain","Calm Mind"],specialMoves:["Yawn"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Goodra",info:{moves:["Dragon Pulse","Surf","Sludge Bomb","Power Whip","Rain Dance"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Avalugg",info:{moves:["Icicle Crash","Heavy Slam","Snowscape","Ice Spinner","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Lycanroc",imageAlt:"-d",info:{moves:["Accelerock","Rock Slide","Crunch","Taunt","Sandstorm"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Toxapex",info:{moves:["Water Pulse","Liquidation","Poison Jab","Pin Missile","Chilling Water","Toxic"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Mimikyu",info:{moves:["Play Rough","Shadow Claw","Shadow Sneak","Wood Hammer","Misty Terrain","Swords Dance"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Corviknight",info:{moves:["Iron Head","Drill Peck","Body Press","Hone Claws","Tailwind"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Pincurchin",info:{moves:["Zing Zap","Thunder","Surf","Poison Jab","Thunder Wave","Electric Terrain"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Frosmoth",info:{moves:["Blizzard","Bug Buzz","Hurricane","Snowscape"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Dragapult",info:{moves:["Shadow Ball","Dragon Pulse","Thunderbolt","Flamethrower","Reflect","Light Screen"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Pawmot",info:{moves:["Wild Charge","Close Combat","Double Shock","Nuzzle","Electric Terrain"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Maushold",imageAlt:"-f",info:{moves:["Play Rough","Take Down","Low Kick","Charm","Tidy Up"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Dachsbun",info:{moves:["Play Rough","Double-Edge","Bite","Baby-Doll Eyes"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Garganacl",info:{moves:["Stone Edge","Heavy Slam","Salt Cure","Hammer Arm","Sandstorm","Rock Slide"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Armarouge",info:{moves:["Armor Cannon","Psychic","Night Shade","Will-O-Wisp","Calm Mind","Sunny Day"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Ceruledge",info:{moves:["Bitter Blade","Shadow Claw","Psycho Cut","Will-O-Wisp","Sunny Day"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Kilowattrel",info:{moves:["Hurricane","Thunder","Uproar","Scary Face"],specialMoves:["Charge","Rain Dance"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Mabosstiff",info:{moves:["Crunch","Reversal","Outrage","Take Down","Taunt"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Grafaiai",info:{moves:["Knock Off","Gunk Shot","Take Down","Flatter"],specialMoves:["Toxic"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Toedscruel",info:{moves:["Energy Ball","Earth Power","Spore","Hex","Grassy Terrain"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Klawf",info:{moves:["Stone Edge","Rock Smash","X-Scissor","Sandstorm","Knock Off","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Tinkaton",info:{moves:["Gigaton Hammer","Play Rough","Knock Off","Thunder Wave","Sweet Kiss"],specialMoves:["Misty Terrain"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Bombirdier",info:{moves:["Rock Slide","Acrobatics","Knock Off","Feather Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Revavroom",info:{moves:["Gunk Shot","Overheat","Iron Head","Taunt","Scary Face","Shift Gear"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Cyclizar",info:{moves:["Double-Edge","Dragon Claw","Dragon Pulse","Knock Off","Shift Gear"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Orthworm",info:{moves:["Iron Head","Earthquake","Smack Down","Sandstorm","Coil"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Glimmora",info:{moves:["Power Gem","Sludge Wave","Hyper Beam","Rock Polish","Sandstorm"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Cetitan",info:{moves:["Ice Spinner","Body Slam","Snowscape","Stomping Tantrum"],specialMoves:["Yawn"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Dondozo",info:{moves:["Wave Crash","Order Up","Heavy Slam","Yawn","Rain Dance","Curse"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Annihilape",info:{moves:["Close Combat","Shadow Claw","Assurance","Focus Energy","Bulk Up","Rage Fist"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Clodsire",info:{moves:["Earthquake","Poison Jab","Megahorn","Yawn"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Farigiraf",info:{moves:["Twin Beam","Hyper Voice","Low Kick","Agility"],specialMoves:["Uproar"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Kingambit",info:{moves:["Iron Head","Night Slash","Kowtow Cleave","Thunder Wave","Swords Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Baxcalibur",info:{moves:["Snowscape","Body Press"],specialMoves:["Icicle Spear","Dragon Rush"],herbs:[{name:"Spicy",chance:13.64}]}}];let gL=(()=>{class e{constructor(n,r){this.stateService=n,this.graphqlService=r,this.pokemonList=document.getElementById("pokemonList")}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.populatePokemonList(n)})}ngAfterViewInit(){this.pokemonList=document.getElementById("pokemonList")}populatePokemonList(n){this.pokemonList&&(this.resetPokemonList(),("5"==n?qa:za).sort((i,o)=>i.name.localeCompare(o.name)).forEach(i=>{const o=document.createElement("option");o.value=i.name,o.text=i.name,i.formName&&(o.id=i.formName),this.pokemonList.add(o)}))}resetPokemonList(){this.pokemonList.innerHTML="",this.pokemonList.innerHTML=''}valueChanged(){const n=document.getElementById("pokemonList"),i=n.options[n.selectedIndex],o=i.id;lr(),i.value&&(this.graphqlService.getPokemon(o||i.value.toLowerCase()),this.stateService.changePokemon(i.value),document.getElementById("pokemonContent").style.display="none",this.stateService.changeLoading(!0))}}return e.\u0275fac=function(n){return new(n||e)(k(yt),k(ur))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-list"]],decls:3,vars:0,consts:[["id","pokemonList",3,"change"],["value",""]],template:function(n,r){1&n&&(me(0,"select",0),zr("change",function(){return r.valueChanged()}),me(1,"option",1),Qe(2,"-- Pokemon --"),xe()())},encapsulation:2}),e})(),yL=(()=>{class e{constructor(n){this.stateService=n}ngOnInit(){vd.forEach(n=>{const r=document.createElement("option");r.value=n.name,r.text=n.name,document.getElementById("teraList").add(r)})}valueChanged(){const n=document.getElementById("teraList");this.stateService.changeTeraType(n.options[n.selectedIndex].value)}}return e.\u0275fac=function(n){return new(n||e)(k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-tera-type"]],decls:3,vars:0,consts:[["id","teraList",3,"change"],["value",""]],template:function(n,r){1&n&&(me(0,"select",0),zr("change",function(){return r.valueChanged()}),me(1,"option",1),Qe(2,"-- Tera Type --"),xe()())},encapsulation:2}),e})(),vL=(()=>{class e{constructor(n){this.stateService=n,this.raidTier="",this.pokemonList="",this.teraType=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n}),this.stateService.teraType.subscribe(n=>{this.teraType=n})}shareRaid(){let n=location.origin+"/tera-raid-info/";n+=this.raidTier,n+="/"+this.pokemonList,n+="/"+this.teraType,navigator.clipboard.writeText(n),document.getElementById("shareText").innerText="Copied to Clipboard"}shareRaidMouseOut(){document.getElementById("shareText").innerText="Share Raid"}}return e.\u0275fac=function(n){return new(n||e)(k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-share-raid"]],decls:3,vars:0,consts:[["id","shareRaid",1,"share",3,"click","mouseout"],["id","shareText",1,"shareText"]],template:function(n,r){1&n&&(me(0,"div",0),zr("click",function(){return r.shareRaid()})("mouseout",function(){return r.shareRaidMouseOut()}),me(1,"div",1),Qe(2,"Share Raid"),xe()())},encapsulation:2}),e})(),DL=(()=>{class e{constructor(n,r){this.grapghqlService=n,this.stateService=r,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setImages()})}setImages(){this.pokemonList&&this.grapghqlService.getDexNumber().subscribe(n=>{let i="";("5"==this.raidTier?qa:za).filter(o=>o.name==this.pokemonList).forEach(o=>{o.imageAlt&&(i=o.imageAlt)}),tt(document.getElementById("pokemonImageNormal"),`Normal`),tt(document.getElementById("pokemonImageShiny"),`Shiny`)})}}return e.\u0275fac=function(n){return new(n||e)(k(ur),k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-images"]],decls:2,vars:0,consts:[["id","pokemonImageNormal",1,"imgNormal"],["id","pokemonImageShiny",1,"imgShiny"]],template:function(n,r){1&n&&ct(0,"div",0)(1,"div",1)},encapsulation:2}),e})(),bL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r,this.pokemonList=""}ngOnInit(){this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setTypes()})}setTypes(){this.pokemonList&&this.graphqlService.getTypes().subscribe(n=>{n.forEach(r=>{tt(document.getElementById("pokemonTypes"),this.createTypeDisplay(r.name))})})}createTypeDisplay(n){return`
${n}
`}}return e.\u0275fac=function(n){return new(n||e)(k(ur),k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-types"]],decls:1,vars:0,consts:[["id","pokemonTypes"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),EL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r}ngOnInit(){this.stateService.pokemonList.subscribe(n=>{n&&this.setStats()})}setStats(){this.graphqlService.getStats().subscribe(n=>{tt(document.getElementById("pokemonStatsWrapper"),this.createStatsDisplay(n))})}createStatsDisplay(n){let r='

Base Stats

';return r+=`

HP

${n.hp}

`,r+=`

Atk

${n.attack}

`,r+=`

Def

${n.defense}

`,r+=`

Sp.Atk

${n.specialattack}

`,r+=`

Sp.Def

${n.specialdefense}

`,r+=`

Spd

${n.speed}

`,r}}return e.\u0275fac=function(n){return new(n||e)(k(ur),k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-stats"]],decls:1,vars:0,consts:[["id","pokemonStatsWrapper"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),wL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setAbilities()})}setAbilities(){if(this.pokemonList){const n=document.getElementById("pokemonAbility");this.graphqlService.getAbilities().subscribe(r=>{tt(n,"

Ability:

"),tt(n,this.createAbilityDiv(r.first)),r.second&&tt(n,this.createAbilityDiv(r.second)),this.canShowHidden()&&r.hidden&&tt(n,this.createAbilityDiv(r.hidden,!0))})}}createAbilityDiv(n,r){return`
${n.name}${r?" (H)":""}
`}canShowHidden(){return"6"==this.raidTier||"5"==this.raidTier&&"Ditto"==this.pokemonList}}return e.\u0275fac=function(n){return new(n||e)(k(ur),k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-ability"]],decls:1,vars:0,consts:[["id","pokemonAbility"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),SL=(()=>{class e{constructor(n,r,i){this.stateService=n,this.typeCalcService=r,this.graphqlService=i,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setMoves()})}setMoves(){const n=document.getElementById("pokemonMoves"),r="5"==this.raidTier?qa:za,i=[],o=[];let s=[];this.pokemonList&&(r.filter(a=>a.name==this.pokemonList).forEach(a=>{a.info.specialMoves&&a.info.specialMoves.sort((c,u)=>c.localeCompare(u)).forEach(c=>{this.graphqlService.getMove(c.toLowerCase().replaceAll(" ","").replaceAll("-","")).subscribe(u=>{i.push(u.getMove)})})}),this.graphqlService.getMoves().subscribe(a=>{tt(n,"

Moves:

"),r.filter(f=>f.name==this.pokemonList).forEach(f=>{f.info.moves.sort((d,h)=>d.localeCompare(h)).forEach(d=>{a.generation8.dreamworldMoves&&a.generation8.dreamworldMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.eggMoves&&a.generation8.eggMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.eventMoves&&a.generation8.eventMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.levelUpMoves&&a.generation8.levelUpMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.tmMoves&&a.generation8.tmMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.tutorMoves&&a.generation8.tutorMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.virtualTransferMoves&&a.generation8.virtualTransferMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)})})}),[...new Map(i.map(f=>[f.key,f])).values()].sort((f,d)=>f.name.localeCompare(d.name)).sort((f,d)=>"Status"!=f.category&&"Status"==d.category?-1:1).forEach(f=>{const d=this.createMoveDiv(f);tt(document.getElementById("pokemonMoves"),d),o.push(d),"Status"!=f.category&&s.push(f.type)}),this.stateService.changeMoveList(o.join("")),s=[...new Set(s)];let u=[];s.forEach(f=>{const d=this.typeCalcService.advantages(f);u=u.concat(d)});const l=[];u=[...new Map(u.map(f=>[f.name,f])).values()],u.sort((f,d)=>f.name.localeCompare(d.name)).forEach(f=>{l.push(bd(f))}),l.length&&tt(document.getElementById("pokemonTypeAdvantages"),"

Type Advantages:

"+l.join(""))}))}createMoveDiv(n){let r=`
${n.name}`;if(r+='
',r+=`
${n.category.toString()}
`,r+=`
Pwr: ${"0"==n.basePower?"--":n.basePower}
`,r+=`
PP: ${n.pp}
`,r+=`
Acc: ${n.accuracy}
`,r+=`
${"No additional effect."==n.desc?n.shortDesc:n.desc}
`,"Status"!=n.category){const i=this.typeCalcService.advantages(n.type.toString()),o=[];i.forEach(s=>{2==s.multiplier&&o.push(`${$a(s.name)}`)}),o.length&&(r+=`
Advantages: ${o.join(", ")}
`)}return r+="
",r}}return e.\u0275fac=function(n){return new(n||e)(k(yt),k(Dd),k(ur))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-moves"]],decls:1,vars:0,consts:[["id","pokemonMoves",1,"pokemonMoves"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),_L=(()=>{class e{constructor(n){this.stateService=n,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setHerbs()})}setHerbs(){this.pokemonList&&(tt(document.getElementById("pokemonHerbs"),"

Herbs Dropped:

"),("5"==this.raidTier?qa:za).filter(r=>r.name==this.pokemonList).forEach(r=>{r.info.herbs.sort((i,o)=>i.name.localeCompare(o.name)).forEach(i=>{tt(document.getElementById("pokemonHerbs"),this.createHerbDiv(i))})}))}createHerbDiv(n){return`
${n.name} - ${n.chance}%
`}}return e.\u0275fac=function(n){return new(n||e)(k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-herbs"]],decls:1,vars:0,consts:[[1,"pokemonHerbs"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),CL=(()=>{class e{constructor(n,r){this.stateService=n,this.typeCalcService=r,this.raidTier="",this.pokemonList="",this.teraType="",this.moveList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.handleChange()}),this.stateService.teraType.subscribe(n=>{this.teraType=n,this.handleChange()}),this.stateService.moveList.subscribe(n=>{this.moveList=n,this.handleChange()})}handleChange(){this.pokemonList&&(lr("pokemonTeraAdvantages"),lr("pokemonTeraWeaknesses"),this.pokemonList&&(this.raidTier&&this.teraType&&this.setTypeWeaknesses(),this.moveList&&this.teraType&&this.moveList.includes("Tera Blast")&&this.setTeraTypeAdvantages()),this.teraType?(this.pokemonList&&this.raidTier&&this.setTypeWeaknesses(),this.moveList.includes("Tera Blast")&&this.setTeraTypeAdvantages()):(lr("pokemonTeraAdvantages"),lr("pokemonTeraWeaknesses")),this.stateService.changeLoading(!1))}setTeraTypeAdvantages(){lr("pokemonTeraAdvantages");const n=[];this.typeCalcService.advantages(this.teraType).forEach(i=>{n.push(bd(i))}),n.length&&tt(document.getElementById("pokemonTeraAdvantages"),"

Tera Advantages:

"+n.join(""))}setTypeWeaknesses(){lr("pokemonTeraWeaknesses");const n=[];this.typeCalcService.weaknesses(this.teraType).forEach(i=>{n.push(bd(i))}),n.length&&tt(document.getElementById("pokemonTeraWeaknesses"),"

Tera Weaknesses:

"+n.join(""))}}return e.\u0275fac=function(n){return new(n||e)(k(yt),k(Dd))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-type-matchups"]],decls:3,vars:0,consts:[["id","pokemonTypeAdvantages",1,"pokemonTypeMatchups"],["id","pokemonTeraWeaknesses",1,"pokemonTypeMatchups"],["id","pokemonTeraAdvantages",1,"pokemonTypeMatchups"]],template:function(n,r){1&n&&ct(0,"div",0)(1,"div",1)(2,"div",2)},encapsulation:2}),e})(),TL=(()=>{class e{constructor(n){this.stateService=n,this.title="Tera Raid Info"}ngOnInit(){this.stateService.loading.subscribe(n=>{document.getElementById("dataLoading").hidden=!n,0==n&&(document.getElementById("pokemonContent").style.display="")})}ngAfterViewInit(){document.getElementById("dataLoading").hidden=!0,this.deleteCache(),this.autoPopulateSelections()}autoPopulateSelections(n,r){const i=n||window.location.href,o=r||window.location.origin;if(i.replace(o+"/tera-raid-info/","")){const s=i.replace(o+"/tera-raid-info/","").split("/"),a=new Event("change");if(Number(s[0])){const c=document.getElementById("raidTier");c.value=s[0],c.dispatchEvent(a)}if(s[1]){let c=$a(s[1].replaceAll("%20"," ").toLowerCase());const u=c.match(/(\(.*\))/);if(u){const f=u[0].split(" ");for(let d=0;d{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Tn({type:e,bootstrap:[TL]}),e.\u0275inj=nn({providers:[yt,ur,Dd],imports:[ZN,dL,uL]}),e})();XN().bootstrapModule(IL).catch(e=>console.error(e))}},fe=>{fe(fe.s=742)}]); \ No newline at end of file diff --git a/main.d3486dec414e73e7.js b/main.d3486dec414e73e7.js deleted file mode 100644 index 29d2f3c3..00000000 --- a/main.d3486dec414e73e7.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict";(self.webpackChunktera_raid_info=self.webpackChunktera_raid_info||[]).push([[179],{588:()=>{function le(e){return"function"==typeof e}function ko(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 Oo=ko(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function lr(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 o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(le(r))try{r()}catch(o){t=o instanceof Oo?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Cd(o)}catch(s){t=t??[],s instanceof Oo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Oo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Cd(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)&&lr(n,t)}remove(t){const{_finalizers:n}=this;n&&lr(n,t),t instanceof Tt&&t._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const Sd=Tt.EMPTY;function _d(e){return e instanceof Tt||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function Cd(e){le(e)?e():e.unsubscribe()}const jn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},No={setTimeout(e,t,...n){const{delegate:r}=No;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=No;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Td(e){No.setTimeout(()=>{const{onUnhandledError:t}=jn;if(!t)throw e;t(e)})}function Id(){}const rw=qa("C",void 0,void 0);function qa(e,t,n){return{kind:e,value:t,error:n}}let Vn=null;function xo(e){if(jn.useDeprecatedSynchronousErrorHandling){const t=!Vn;if(t&&(Vn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Vn;if(Vn=null,n)throw r}}else e()}class za extends Tt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,_d(t)&&t.add(this)):this.destination=lw}static create(t,n,r){return new pi(t,n,r)}next(t){this.isStopped?Wa(function ow(e){return qa("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Wa(function iw(e){return qa("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Wa(rw,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 aw=Function.prototype.bind;function Ga(e,t){return aw.call(e,t)}class cw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Po(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Po(r)}else Po(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Po(n)}}}class pi extends za{constructor(t,n,r){let i;if(super(),le(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&jn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Ga(t.next,o),error:t.error&&Ga(t.error,o),complete:t.complete&&Ga(t.complete,o)}):i=t}this.destination=new cw(i)}}function Po(e){jn.useDeprecatedSynchronousErrorHandling?function sw(e){jn.useDeprecatedSynchronousErrorHandling&&Vn&&(Vn.errorThrown=!0,Vn.error=e)}(e):Td(e)}function Wa(e,t){const{onStoppedNotification:n}=jn;n&&No.setTimeout(()=>n(e,t))}const lw={closed:!0,next:Id,error:function uw(e){throw e},complete:Id},Fo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Md(e){return e}let ve=(()=>{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,i){const o=function dw(e){return e&&e instanceof za||function fw(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}(e)&&_d(e)}(n)?n:new pi(n,r,i);return xo(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=kd(r))((i,o)=>{const s=new pi({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Fo](){return this}pipe(...n){return function Ad(e){return 0===e.length?Md:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=kd(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function kd(e){var t;return null!==(t=e??jn.Promise)&&void 0!==t?t:Promise}const hw=ko(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ro=(()=>{class e extends ve{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Od(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new hw}next(n){xo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){xo(()=>{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(){xo(()=>{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:i,observers:o}=this;return r||i?Sd:(this.currentObservers=null,o.push(n),new Tt(()=>{this.currentObservers=null,lr(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new ve;return n.source=this,n}}return e.create=(t,n)=>new Od(t,n),e})();class Od extends Ro{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:Sd}}function Hn(e){return t=>{if(function pw(e){return le(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 mi(e,t,n,r,i){return new mw(e,t,n,r,i)}class mw extends za{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(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 tt(e,t){return Hn((n,r)=>{let i=0;n.subscribe(mi(r,o=>{r.next(e.call(t,o,i++))}))})}var Qa=function(e,t){return(Qa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function It(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}Qa(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,i=arguments.length;r0&&o[o.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=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(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){!function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Fd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Rd(e){return le(e?.then)}function Ld(e){return le(e[Fo])}function Bd(e){return Symbol.asyncIterator&&le(e?.[Symbol.asyncIterator])}function jd(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 Vd=function xw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Hd(e){return le(e?.[Vd])}function Ud(e){return function xd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(h){return new Promise(function(p,g){o.push([d,h,p,g])>1||a(d,h)})})}function a(d,h){try{!function c(d){d.value instanceof En?Promise.resolve(d.value.v).then(u,l):f(o[0][2],d)}(r[d](h))}catch(p){f(o[0][3],p)}}function u(d){a("next",d)}function l(d){a("throw",d)}function f(d,h){d(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield En(n.read());if(i)return yield En(void 0);yield yield En(r)}}finally{n.releaseLock()}})}function $d(e){return le(e?.getReader)}function wn(e){if(e instanceof ve)return e;if(null!=e){if(Ld(e))return function Pw(e){return new ve(t=>{const n=e[Fo]();if(le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Fd(e))return function Fw(e){return new ve(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Td)})}(e);if(Bd(e))return qd(e);if(Hd(e))return function Lw(e){return new ve(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if($d(e))return function Bw(e){return qd(Ud(e))}(e)}throw jd(e)}function qd(e){return new ve(t=>{(function jw(e,t){var n,r,i,o;return Vt(this,void 0,void 0,function*(){try{for(n=Pd(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Sn(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Lo(e,t,n=1/0){return le(t)?Lo((r,i)=>tt((o,s)=>t(r,o,i,s))(wn(e(r,i))),n):("number"==typeof t&&(n=t),Hn((r,i)=>function Vw(e,t,n,r,i,o,s,a){const c=[];let u=0,l=0,f=!1;const d=()=>{f&&!c.length&&!u&&t.complete()},h=g=>u{o&&t.next(g),u++;let v=!1;wn(n(g,l++)).subscribe(mi(t,m=>{i?.(m),o?h(m):t.next(m)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&up(m)):p(m)}d()}catch(m){t.error(m)}}))};return e.subscribe(mi(t,h,()=>{f=!0,d()})),()=>{a?.()}}(r,i,e,n)))}function zd(e=1/0){return Lo(Md,e)}const Gd=new ve(e=>e.complete());function Ja(e){return e[e.length-1]}function Bo(e){return function Uw(e){return e&&le(e.schedule)}(Ja(e))?e.pop():void 0}function Xa(e,t=0){return Hn((n,r)=>{n.subscribe(mi(r,i=>Sn(r,e,()=>r.next(i),t),()=>Sn(r,e,()=>r.complete(),t),i=>Sn(r,e,()=>r.error(i),t)))})}function Wd(e,t=0){return Hn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Qd(e,t){if(!e)throw new Error("Iterable cannot be null");return new ve(n=>{Sn(n,t,()=>{const r=e[Symbol.asyncIterator]();Sn(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function gi(e,t){return t?function Kw(e,t){if(null!=e){if(Ld(e))return function qw(e,t){return wn(e).pipe(Wd(t),Xa(t))}(e,t);if(Fd(e))return function Gw(e,t){return new ve(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Rd(e))return function zw(e,t){return wn(e).pipe(Wd(t),Xa(t))}(e,t);if(Bd(e))return Qd(e,t);if(Hd(e))return function Ww(e,t){return new ve(n=>{let r;return Sn(n,t,()=>{r=e[Vd](),Sn(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>le(r?.return)&&r.return()})}(e,t);if($d(e))return function Qw(e,t){return Qd(Ud(e),t)}(e,t)}throw jd(e)}(e,t):wn(e)}function Za(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new pi({next:()=>{r.unsubscribe(),e()}});return wn(t(...n)).subscribe(r)}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function tc(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Xw=re({__forward_ref__:re});function nc(e){return e.__forward_ref__=nc,e.toString=function(){return ie(this())},e}function x(e){return function rc(e){return"function"==typeof e&&e.hasOwnProperty(Xw)&&e.__forward_ref__===nc}(e)?e():e}function ic(e){return e&&!!e.\u0275providers}class O extends Error{constructor(t,n){super(jo(t,n)),this.code=t}}function jo(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function X(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function j(e){return"string"==typeof e?e:null==e?"":String(e)}(e)}function Vo(e,t){throw new O(-201,!1)}function yt(e,t){null==e&&function Z(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function tn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ho(e){return Yd(e,Uo)||Yd(e,Xd)}function Yd(e,t){return e.hasOwnProperty(t)?e[t]:null}function Jd(e){return e&&(e.hasOwnProperty(oc)||e.hasOwnProperty(oS))?e[oc]:null}const Uo=re({\u0275prov:re}),oc=re({\u0275inj:re}),Xd=re({ngInjectableDef:re}),oS=re({ngInjectorDef:re});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let sc;function vt(e){const t=sc;return sc=e,t}function Zd(e,t,n){const r=Ho(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&B.Optional?null:void 0!==t?t:void Vo(ie(e))}const se=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),yi={},ac="__NG_DI_FLAG__",$o="ngTempTokenPath",aS="ngTokenPath",cS=/\n/gm,uS="\u0275",eh="__source";let vi;function fr(e){const t=vi;return vi=e,t}function lS(e,t=B.Default){if(void 0===vi)throw new O(-203,!1);return null===vi?Zd(e,void 0,t):vi.get(e,t&B.Optional?null:void 0,t)}function V(e,t=B.Default){return(function sS(){return sc}()||lS)(x(e),t)}function Di(e,t=B.Default){return V(e,qo(t))}function qo(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cc(e){const t=[];for(let n=0;n((Ht=Ht||{})[Ht.OnPush=0]="OnPush",Ht[Ht.Default=1]="Default",Ht))(),Ut=(()=>{return(e=Ut||(Ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ut;var e})();const rn={},J=[],zo=re({\u0275cmp:re}),uc=re({\u0275dir:re}),lc=re({\u0275pipe:re}),nh=re({\u0275mod:re}),on=re({\u0275fac:re}),Ei=re({__NG_ELEMENT_ID__:re});let pS=0;function lt(e){return nn(()=>{const t=function ih(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||J,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:rh(e.inputs,t),outputs:rh(e.outputs)}}(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ht.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ut.Emulated,id:"c"+pS++,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null};!function oh(e){e.features?.forEach(t=>t(e))}(n);const r=e.dependencies;return n.directiveDefs=Go(r,!1),n.pipeDefs=Go(r,!0),n})}function gS(e){return ee(e)||Ue(e)}function yS(e){return null!==e}function Cn(e){return nn(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function rh(e,t){if(null==e)return rn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function ee(e){return e[zo]||null}function Ue(e){return e[uc]||null}function rt(e){return e[lc]||null}function Go(e,t){if(!e)return null;const n=t?rt:gS;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(yS)}const sn=0,I=1,$=2,he=3,Mt=4,Un=5,$e=6,dr=7,De=8,Wo=9,Qo=10,G=11,fc=12,Si=13,sh=14,hr=15,qe=16,_i=17,pr=18,$t=19,Ci=20,ah=21,ae=22,dc=1,ch=2,Ko=7,mr=9,Qe=10;function dt(e){return Array.isArray(e)&&"object"==typeof e[dc]}function At(e){return Array.isArray(e)&&!0===e[dc]}function hc(e){return 0!=(4&e.flags)}function Ti(e){return e.componentOffset>-1}function Jo(e){return 1==(1&e.flags)}function kt(e){return!!e.template}function DS(e){return 0!=(256&e[$])}function $n(e,t){return e.hasOwnProperty(on)?e[on]:null}class wS{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function fh(e){return e.type.prototype.ngOnChanges&&(e.setInput=_S),SS}function SS(){const e=hh(this),t=e?.current;if(t){const n=e.previous;if(n===rn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function _S(e,t,n,r){const i=this.declaredInputs[n],o=hh(e)||function CS(e,t){return e[dh]=t}(e,{previous:rn,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new wS(c&&c.currentValue,t,a===rn),e[r]=t}const dh="__ngSimpleChanges__";function hh(e){return e[dh]||null}const bt=function(e,t,n){};function Le(e){for(;Array.isArray(e);)e=e[sn];return e}function ht(e,t){return Le(t[e.index])}function it(e,t){const n=t[e];return dt(n)?n:n[sn]}function es(e){return 64==(64&e[$])}function Tn(e,t){return null==t?null:e[t]}function yh(e){e[pr]=0}function mc(e,t){e[Un]+=t;let n=e,r=e[he];for(;null!==r&&(1===t&&1===n[Un]||-1===t&&0===n[Un]);)r[Un]+=t,n=r,r=r[he]}const H={lFrame:Ih(null),bindingsEnabled:!0};function Dh(){return H.bindingsEnabled}function S(){return H.lFrame.lView}function K(){return H.lFrame.tView}function Be(){let e=bh();for(;null!==e&&64===e.type;)e=e.parent;return e}function bh(){return H.lFrame.currentTNode}function qt(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function gc(){return H.lFrame.isParent}function VS(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,vc(t)}function vc(e){H.lFrame.currentDirectiveIndex=e}function bc(e){H.lFrame.currentQueryIndex=e}function US(e){const t=e[I];return 2===t.type?t.declTNode:1===t.type?e[$e]:null}function Ch(e,t,n){if(n&B.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&B.Host||(i=US(o),null===i||(o=o[hr],10&i.type))););if(null===i)return!1;t=i,e=o}const r=H.lFrame=Th();return r.currentTNode=t,r.lView=e,!0}function Ec(e){const t=Th(),n=e[I];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Th(){const e=H.lFrame,t=null===e?null:e.child;return null===t?Ih(e):t}function Ih(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 Mh(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ah=Mh;function wc(){const e=Mh();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 qn(e){H.lFrame.selectedIndex=e}function ts(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[pr]+=65536),(a>11>16&&(3&e[$])===t){e[$]+=2048,bt(4,a,o);try{o.call(a)}finally{bt(5,a,o)}}}else{bt(4,a,o);try{o.call(a)}finally{bt(5,a,o)}}}const vr=-1;class Mi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Cc(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[hr],n--;return r}let Tc=!0;function ss(e){const t=Tc;return Tc=e,t}const Fh=255,Rh=5;let n0=0;const zt={};function as(e,t){const n=Lh(e,t);if(-1!==n)return n;const r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Ic(r.data,e),Ic(t,null),Ic(r.blueprint,null));const i=Mc(e,t),o=e.injectorIndex;if(function Ph(e){return e!==vr}(i)){const s=is(i),a=os(i,t),c=a[I].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function Ic(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Lh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Mc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=qh(i),null===r)return vr;if(n++,i=i[hr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return vr}function Ac(e,t,n){!function r0(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ei)&&(r=n[Ei]),null==r&&(r=n[Ei]=n0++);const i=r&Fh;t.data[e+(i>>Rh)]|=1<=0?t&Fh:c0:t}(n);if("function"==typeof o){if(!Ch(t,e,r))return r&B.Host?Bh(i,0,r):jh(t,n,r,i);try{const s=o(r);if(null!=s||r&B.Optional)return s;Vo()}finally{Ah()}}else if("number"==typeof o){let s=null,a=Lh(e,t),c=vr,u=r&B.Host?t[qe][$e]:null;for((-1===a||r&B.SkipSelf)&&(c=-1===a?Mc(e,t):t[a+8],c!==vr&&$h(r,!1)?(s=t[I],a=is(c),t=os(c,t)):a=-1);-1!==a;){const l=t[I];if(Uh(o,a,l.data)){const f=s0(a,t,n,s,r,u);if(f!==zt)return f}c=t[a+8],c!==vr&&$h(r,t[I].data[a+8]===u)&&Uh(o,a,t)?(s=l,a=is(c),t=os(c,t)):a=-1}}return i}function s0(e,t,n,r,i,o){const s=t[I],a=s.data[e+8],l=function cs(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,c=e.directiveStart,l=o>>20,d=i?a+l:e.directiveEnd;for(let h=r?a:a+l;h=c&&p.type===n)return h}if(i){const h=s[c];if(h&&kt(h)&&h.type===n)return c}return null}(a,s,n,null==r?Ti(a)&&Tc:r!=s&&0!=(3&a.type),i&B.Host&&o===a);return null!==l?zn(t,s,l,a):zt}function zn(e,t,n,r){let i=e[n];const o=t.data;if(function XS(e){return e instanceof Mi}(i)){const s=i;s.resolving&&function Zw(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new O(-200,`Circular dependency in DI detected for ${e}${n}`)}(X(o[n]));const a=ss(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?vt(s.injectImpl):null;Ch(e,r,B.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function YS(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=fh(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==c&&vt(c),ss(a),s.resolving=!1,Ah()}}return i}function Uh(e,t,n){return!!(n[t+(e>>Rh)]&1<Array.isArray(n)?Gn(n,t):t(n))}function us(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var ot=(()=>((ot=ot||{})[ot.Important=1]="Important",ot[ot.DashCase=2]="DashCase",ot))();const Vc=new Map;let R0=0;const Uc="__ngContext__";function ze(e,t){dt(t)?(e[Uc]=t[Ci],function B0(e){Vc.set(e[Ci],e)}(t)):e[Uc]=t}let $c;function qc(e,t){return $c(e,t)}function Ri(e){const t=e[he];return At(t)?t[he]:t}function zc(e){return hp(e[Si])}function Gc(e){return hp(e[Mt])}function hp(e){for(;null!==e&&!At(e);)e=e[Mt];return e}function Tr(e,t,n,r,i){if(null!=r){let o,s=!1;At(r)?o=r:dt(r)&&(s=!0,r=r[sn]);const a=Le(r);0===e&&null!==n?null==i?Dp(t,n,a):Wn(t,n,a,i||null,!0):1===e&&null!==n?Wn(t,n,a,i||null,!0):2===e?function Zc(e,t,n){const r=function ms(e,t){return e.parentNode(t)}(e,t);r&&function i_(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function a_(e,t,n,r,i){const o=n[Ko];o!==Le(n)&&Tr(t,e,r,o,i);for(let a=Qe;a=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Ut.None||o===Ut.Emulated)return null}return ht(r,n)}}(e,t.parent,n)}function Wn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Dp(e,t,n){e.appendChild(t,n)}function bp(e,t,n,r,i){null!==r?Wn(e,t,n,r,i):Dp(e,t,n)}let Jc,nu,Sp=function wp(e,t,n){return 40&e.type?ht(e,n):null};function gs(e,t,n,r){const i=yp(e,r,t),o=t[G],a=function Ep(e,t,n){return Sp(e,t,n)}(r.parent||t[$e],r,t);if(null!=i)if(Array.isArray(n))for(let c=0;c{const s=o;cu(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&Wp(i,n),n}function Wp(e,t){for(let n=0;n{t.push(o)})}}function cu(e,t,n,r){if(!(e=x(e)))return!1;let i=null,o=Jd(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=Jd(c),!o)return!1;i=c}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of c)cu(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Gn(o.imports,l=>{cu(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}void 0!==u&&Wp(u,t)}if(!a){const u=$n(i)||(()=>new i);t.push({provide:i,useFactory:u,deps:J},{provide:qp,useValue:i,multi:!0},{provide:Up,useValue:()=>V(i),multi:!0})}const c=o.providers;null==c||a||uu(c,l=>{t.push(l)})}}return i!==e&&void 0!==e.providers}function uu(e,t){for(let n of e)ic(n)&&(n=n.\u0275providers),Array.isArray(n)?uu(n,t):t(n)}const j_=re({provide:String,useValue:re});function lu(e){return null!==e&&"object"==typeof e&&j_ in e}function Qn(e){return"function"==typeof e}const fu=new F("Set Injector scope."),Es={},H_={};let du;function ws(){return void 0===du&&(du=new zp),du}class Kn{}class Yp extends Kn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pu(t,s=>this.processProvider(s)),this.records.set($p,Mr(void 0,this)),i.has("environment")&&this.records.set(Kn,Mr(void 0,this));const o=this.records.get(fu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(qp.multi,J,B.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=fr(this),r=vt(void 0);try{return t()}finally{fr(n),vt(r)}}get(t,n=yi,r=B.Default){this.assertNotDestroyed(),r=qo(r);const i=fr(this),o=vt(void 0);try{if(!(r&B.SkipSelf)){let a=this.records.get(t);if(void 0===a){const c=function G_(e){return"function"==typeof e||"object"==typeof e&&e instanceof F}(t)&&Ho(t);a=c&&this.injectableDefInScope(c)?Mr(hu(t),Es):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&B.Self?ws():this.parent).get(t,n=r&B.Optional&&n===yi?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[$o]=s[$o]||[]).unshift(ie(t)),i)throw s;return function dS(e,t,n,r){const i=e[$o];throw t[eh]&&i.unshift(t[eh]),e.message=function hS(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==uS?e.slice(2):e;let i=ie(t);if(Array.isArray(t))i=t.map(ie).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ie(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(cS,"\n ")}`}("\n"+e.message,i,n,r),e[aS]=i,e[$o]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{vt(o),fr(i)}}resolveInjectorInitializers(){const t=fr(this),n=vt(void 0);try{const r=this.get(Up.multi,J,B.Self);for(const i of r)i()}finally{fr(t),vt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(t){let n=Qn(t=x(t))?t:x(t&&t.provide);const r=function $_(e){return lu(e)?Mr(void 0,e.useValue):Mr(function Jp(e,t,n){let r;if(Qn(e)){const i=x(e);return $n(i)||hu(i)}if(lu(e))r=()=>x(e.useValue);else if(function Kp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...cc(e.deps||[]));else if(function Qp(e){return!(!e||!e.useExisting)}(e))r=()=>V(x(e.useExisting));else{const i=x(e&&(e.useClass||e.provide));if(!function q_(e){return!!e.deps}(e))return $n(i)||hu(i);r=()=>new i(...cc(e.deps))}return r}(e),Es)}(t);if(Qn(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Mr(void 0,Es,!0),i.factory=()=>cc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Es&&(n.value=H_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function z_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=x(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function hu(e){const t=Ho(e),n=null!==t?t.factory:$n(e);if(null!==n)return n;if(e instanceof F)throw new O(204,!1);if(e instanceof Function)return function U_(e){const t=e.length;if(t>0)throw function Ni(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new O(204,!1)}function Mr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pu(e,t){for(const n of e)Array.isArray(n)?pu(n,t):n&&ic(n)?pu(n.\u0275providers,t):t(n)}class W_{}class Xp{}class K_{resolveComponentFactory(t){throw function Q_(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ss=(()=>{class e{}return e.NULL=new K_,e})();function Y_(){return Ar(Be(),S())}function Ar(e,t){return new kr(ht(e,t))}let kr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Y_,e})();class em{}let Z_=(()=>{class e{}return e.\u0275prov=Y({token:e,providedIn:"root",factory:()=>null}),e})();class mu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const eC=new mu("15.2.9"),gu={},yu="ngOriginalError";function vu(e){return e[yu]}class Or{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&vu(t);for(;n&&vu(n);)n=vu(n);return n||null}}function rm(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}const im="ng-template";function fC(e,t,n){let r=0,i=!0;for(;ro?"":i[f+1].toLowerCase();const h=8&r?d:null;if(h&&-1!==rm(h,u,0)||2&r&&u!==d){if(Ot(r))return!1;s=!0}}}}else{if(!s&&!Ot(r)&&!Ot(c))return!1;if(s&&Ot(c))continue;s=!1,r=c|1&r}}return Ot(r)||s}function Ot(e){return 0==(1&e)}function pC(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Ot(s)&&(t+=am(o,i),i=""),r=s,o=o||!Ot(r);n++}return""!==i&&(t+=am(o,i)),t}const U={};function dm(e,t=null,n=null,r){const i=hm(e,t,n,r);return i.resolveInjectorInitializers(),i}function hm(e,t=null,n=null,r,i=new Set){const o=[n||J,B_(e)];return r=r||("object"==typeof e?void 0:ie(e)),new Yp(o,t||ws(),r||null,i)}let Yn=(()=>{class e{static create(n,r){if(Array.isArray(n))return dm({name:""},r,n,"");{const i=n.name??"";return dm({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=yi,e.NULL=new zp,e.\u0275prov=Y({token:e,providedIn:"any",factory:()=>V($p)}),e.__NG_ELEMENT_ID__=-1,e})();function k(e,t=B.Default){const n=S();return null===n?V(e,t):Vh(Be(),n,x(e),t)}function bm(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rae&&function cm(e,t,n,r){if(!r)if(3==(3&t[$])){const o=e.preOrderCheckHooks;null!==o&&ns(t,o,n)}else{const o=e.preOrderHooks;null!==o&&rs(t,o,0,n)}qn(n)}(e,t,ae,!1),bt(s?2:0,i),n(r,i)}finally{qn(o),bt(s?3:1,i)}}function Cu(e,t,n){if(hc(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(e,t,r,Hi(e,n,i.hostVars,U),i)}function cT(e,t,n,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let c=0;c0&&Nu(n)}}function Nu(e){for(let r=zc(e);null!==r;r=Gc(r))for(let i=Qe;i0&&Nu(o)}const n=e[I].components;if(null!==n)for(let r=0;r0&&Nu(i)}}function hT(e,t){const n=it(t,e),r=n[I];(function pT(e,t){for(let n=t.length;n-1&&(function Kc(e,t){if(e.length<=Qe)return;const n=Qe+t,r=e[n];if(r){const i=r[_i];null!==i&&i!==e&&mp(i,r),t>0&&(e[n-1][Mt]=r[Mt]);const o=us(e,Qe+t);!function Y0(e,t){Li(e,t,t[G],2,null,null),t[sn]=null,t[$e]=null}(r[I],r);const s=o[$t];null!==s&&s.detachView(o[I]),r[he]=null,r[Mt]=null,r[$]&=-65}return r}(t,r),us(n,r))}this._attachedToViewContainer=!1}!function gp(e,t){if(!(128&t[$])){const n=t[G];n.destroyNode&&Li(e,t,n,3,null,null),function Z0(e){let t=e[Si];if(!t)return Yc(e[I],e);for(;t;){let n=null;if(dt(t))n=t[Si];else{const r=t[Qe];r&&(n=r)}if(!n){for(;t&&!t[Mt]&&t!==e;)dt(t)&&Yc(t[I],t),t=t[he];null===t&&(t=e),dt(t)&&Yc(t[I],t),n=t&&t[Mt]}t=n}}(t)}}(this._lView[I],this._lView)}onDestroy(t){!function Sm(e,t,n,r){const i=Am(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&km(e).push(r,i.length-1))}(this._lView[I],this._lView,null,t)}markForCheck(){Ms(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-65}reattach(){this._lView[$]|=64}detectChanges(){As(this._lView[I],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function X0(e,t){Li(e,t,t[G],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=t}}class mT extends Ui{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;As(t[I],t,t[De],!1)}checkNoChanges(){}get context(){return null}}class xm extends Ss{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new $i(n,this.ngModule)}}function Pm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class yT{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=qo(r);const i=this.injector.get(t,gu,r);return i!==gu||n===gu?i:this.parentInjector.get(t,n,r)}}class $i extends Xp{get inputs(){return Pm(this.componentDef.inputs)}get outputs(){return Pm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function bC(e){return e.map(DC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Kn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new yT(t,o):t,a=s.get(em,null);if(null===a)throw new O(407,!1);const c=s.get(Z_,null),u=a.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=r?function GC(e,t,n){return e.selectRootElement(t,n===Ut.ShadowDom)}(u,r,this.componentDef.encapsulation):Qc(u,l,function gT(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(l)),d=this.componentDef.onPush?288:272,h=Mu(0,null,null,1,0,null,null,null,null,null),p=Cs(null,h,null,d,null,null,a,u,c,s,null);let g,v;Ec(p);try{const m=this.componentDef;let D,y=null;m.findHostDirectiveDefs?(D=[],y=new Map,m.findHostDirectiveDefs(m,D,y),D.push(m)):D=[m];const E=function DT(e,t){const n=e[I],r=ae;return e[r]=t,Pr(n,r,2,"#host",null)}(p,f),C=function bT(e,t,n,r,i,o,s,a){const c=i[I];!function ET(e,t,n,r){for(const i of e)t.mergedAttrs=Ai(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(ks(t,t.mergedAttrs,!0),null!==n&&Mp(r,n,t))}(r,e,t,s);const u=o.createRenderer(t,n),l=Cs(i,wm(n),null,n.onPush?32:16,i[e.index],e,o,u,a||null,null,null);return c.firstCreatePass&&ku(c,e,r.length-1),Is(i,l),i[e.index]=l}(E,f,m,D,p,a,u);v=function gh(e,t){return e.data[t]}(h,ae),f&&function ST(e,t,n,r){if(r)Cc(e,n,["ng-version",eC.full]);else{const{attrs:i,classes:o}=function EC(e){const t=[],n=[];let r=1,i=2;for(;r0&&Ip(e,n,o.join(" "))}}(u,m,f,r),void 0!==n&&function _T(e,t,n){const r=e.projection=[];for(let i=0;is(Le(E[r.index])):r.index;let y=null;if(!s&&a&&(y=function WT(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,d=!1;else{o=ng(r,t,l,o,!1);const E=n.listen(v,i,o);f.push(o,E),u&&u.push(i,D,m,m+1)}}else o=ng(r,t,l,o,!1);const h=r.outputs;let p;if(d&&null!==h&&(p=h[i])){const g=p.length;if(g)for(let v=0;v-1?it(e.index,t):t);let c=tg(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=tg(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&!1===c&&(s.preventDefault(),s.returnValue=!1),c}}function We(e,t=""){const n=S(),r=K(),i=e+ae,o=r.firstCreatePass?Pr(r,i,1,t,null):r.data[i],s=n[i]=function Wc(e,t){return e.createText(t)}(n[G],t);gs(r,n,s,o),qt(o,!1)}const Wr="en-US";let Kg=Wr;class Qr{}class jM{}class Ey extends Qr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new xm(this);const r=function ft(e,t){const n=e[nh]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function ln(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=hm(t,n,[{provide:Qr,useValue:this},{provide:Ss,useValue:this.componentFactoryResolver}],ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Zu extends jM{constructor(t){super(),this.moduleType=t}create(t){return new Ey(this.moduleType,t)}}function tl(e){return t=>{setTimeout(e,void 0,t)}}const dn=class mA extends Ro{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=tl(o),i&&(i=tl(i)),s&&(s=tl(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof Tt&&t.add(a),a}};function Us(...e){}const sv=new F("Application Initializer");let $s=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Us,this.reject=Us,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:c})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(V(sv,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const eo=new F("AppId",{providedIn:"root",factory:function av(){return`${hl()}${hl()}${hl()}`}});function hl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cv=new F("Platform Initializer"),pl=new F("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),pn=new F("LocaleId",{providedIn:"root",factory:()=>Di(pn,B.Optional|B.SkipSelf)||function XA(){return typeof $localize<"u"&&$localize.locale||Wr}()}),rk=(()=>Promise.resolve(0))();function ml(e){typeof Zone>"u"?rk.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class je{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new dn(!1),this.onMicrotaskEmpty=new dn(!1),this.onStable=new dn(!1),this.onError=new dn(!1),typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function ik(){let e=se.requestAnimationFrame,t=se.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function ak(e){const t=()=>{!function sk(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,yl(e),e.isCheckStableRunning=!0,gl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),yl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return fv(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),dv(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return fv(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),dv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,yl(e),gl(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!je.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(je.isInAngularZone())throw new O(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,ok,Us,Us);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const ok={};function gl(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 yl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function fv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dv(e){e._nesting--,gl(e)}class ck{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new dn,this.onMicrotaskEmpty=new dn,this.onStable=new dn,this.onError=new dn}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,i){return t.apply(n,r)}}const hv=new F(""),qs=new F("");let bl,vl=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,bl||(function uk(e){bl=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{je.assertNotInAngularZone(),ml(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ml(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(V(je),V(Dl),V(qs))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),Dl=(()=>{class e{constructor(){this._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 bl?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const mn=!1;let An=null;const pv=new F("AllowMultipleToken"),El=new F("PlatformDestroyListeners"),lk=new F("appBootstrapListener");function gv(e,t,n=[]){const r=`Platform: ${t}`,i=new F(r);return(o=[])=>{let s=wl();if(!s||s.injector.get(pv,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function hk(e){if(An&&!An.get(pv,!1))throw new O(400,!1);An=e;const t=e.get(vv);(function mv(e){const t=e.get(cv,null);t&&t.forEach(n=>n())})(e)}(function yv(e=[],t){return Yn.create({name:t,providers:[{provide:fu,useValue:"platform"},{provide:El,useValue:new Set([()=>An=null])},...e]})}(a,r))}return function mk(e){const t=wl();if(!t)throw new O(401,!1);return t}()}}function wl(){return An?.get(vv)??null}let vv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function bv(e,t){let n;return n="noop"===e?new ck:("zone.js"===e?void 0:e)||new je(t),n}(r?.ngZone,function Dv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:je,useValue:i}];return i.run(()=>{const s=Yn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),c=a.injector.get(Or,null);if(!c)throw new O(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{zs(this._modules,a),u.unsubscribe()})}),function Ev(e,t,n){try{const r=n();return Vu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(c,i,()=>{const u=a.injector.get($s);return u.runInitializers(),u.donePromise.then(()=>(function Yg(e){yt(e,"Expected localeId to be defined"),"string"==typeof e&&(Kg=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(pn,Wr)||Wr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=wv({},r);return function fk(e,t,n){const r=new Zu(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Sl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new O(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new O(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(El,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(V(Yn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function wv(e,t){return Array.isArray(t)?t.reduce(wv,e):{...e,...t}}let Sl=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ve(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ve(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{je.assertNotInAngularZone(),ml(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{je.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=function Yw(...e){const t=Bo(e),n=function $w(e,t){return"number"==typeof Ja(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?wn(r[0]):zd(n)(gi(r,t)):Gd}(o,s.pipe(function Jw(e={}){const{connector:t=(()=>new Ro),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,u=0,l=!1,f=!1;const d=()=>{a?.unsubscribe(),a=void 0},h=()=>{d(),s=c=void 0,l=f=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Hn((g,v)=>{u++,!f&&!l&&d();const m=c=c??t();v.add(()=>{u--,0===u&&!f&&!l&&(a=Za(p,i))}),m.subscribe(v),!s&&u>0&&(s=new pi({next:D=>m.next(D),error:D=>{f=!0,d(),a=Za(h,n,D),m.error(D)},complete:()=>{l=!0,d(),a=Za(h,r),m.complete()}}),wn(g).subscribe(s))})(o)}}()))}bootstrap(n,r){const i=n instanceof Xp;if(!this._injector.get($s).done){!i&&function wi(e){const t=ee(e)||Ue(e)||rt(e);return null!==t&&t.standalone}(n);throw new O(405,mn)}let s;s=i?n:this._injector.get(Ss).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function dk(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Qr),u=s.create(Yn.NULL,[],r||s.selector,a),l=u.location.nativeElement,f=u.injector.get(hv,null);return f?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),zs(this.components,u),f?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new O(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;zs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(lk,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>zs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new O(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(V(je),V(Kn),V(Or))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function zs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nk=gv(null,"core",[]);let xk=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(V(Sl))},e.\u0275mod=Cn({type:e}),e.\u0275inj=tn({}),e})(),Ml=null;function Ks(){return Ml}class Rk{}const Jt=new F("DocumentToken");function Uv(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}let XO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e}),e.\u0275inj=tn({}),e})();class Xv{}class AN extends Rk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class zl extends AN{static makeCurrent(){!function Fk(e){Ml||(Ml=e)}(new zl)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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 kN(){return oo=oo||document.querySelector("base"),oo?oo.getAttribute("href"):null}();return null==n?null:function ON(e){aa=aa||document.createElement("a"),aa.setAttribute("href",e);const t=aa.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){oo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Uv(document.cookie,t)}}let aa,oo=null;const rD=new F("TRANSITION_ID"),xN=[{provide:sv,useFactory:function NN(e,t,n){return()=>{n.get($s).donePromise.then(()=>{const r=Ks(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const ca=new F("EventManagerPlugins");let ua=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const i=this.usageCount;let o=i.get(n)??0;return o+=r,o>0?i.set(n,o):i.delete(n),o}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),so=(()=>{class e extends oD{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(o=>o.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const i=this.doc.createElement("style");i.textContent=r,n.appendChild(i);const o=this.styleRef.get(r);o?o.push(i):this.styleRef.set(r,[i])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(V(Jt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const Gl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Wl=/%COMP%/g,cD=new F("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function uD(e,t){return t.flat(100).map(n=>n.replace(Wl,e))}function lD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ql=(()=>{class e{constructor(n,r,i,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new Kl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(n,r);return i instanceof hD?i.applyToHost(n):i instanceof Yl&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(r.encapsulation){case Ut.Emulated:o=new hD(s,a,r,this.appId,c);break;case Ut.ShadowDom:return new UN(s,a,n,r);default:o=new Yl(s,a,r,c)}o.onDestroy=()=>i.delete(r.id),i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(V(ua),V(so),V(eo),V(cD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();class Kl{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Gl[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(dD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(dD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=Gl[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Gl[r];i?t.removeAttributeNS(i,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,i){i&(ot.DashCase|ot.Important)?t.style.setProperty(n,r,i&ot.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ot.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,lD(r)):this.eventManager.addEventListener(t,n,lD(r))}}function dD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class UN extends Kl{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=uD(i.id,i.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}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(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Yl extends Kl{constructor(t,n,r,i,o=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=uD(o,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class hD extends Yl{constructor(t,n,r,i,o){const s=i+"-"+r.id;super(t,n,r,o,s),this.contentAttr=function jN(e){return"_ngcontent-%COMP%".replace(Wl,e)}(s),this.hostAttr=function VN(e){return"_nghost-%COMP%".replace(Wl,e)}(s)}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}}let $N=(()=>{class e extends iD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)(V(Jt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const pD=["alt","control","meta","shift"],qN={"\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"},zN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let GN=(()=>{class e extends iD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ks().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),pD.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=qN[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),pD.forEach(s=>{s!==i&&(0,zN[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(V(Jt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const gD=[{provide:pl,useValue:"browser"},{provide:cv,useValue:function WN(){zl.makeCurrent()},multi:!0},{provide:Jt,useFactory:function KN(){return function h_(e){nu=e}(document),document},deps:[]}],YN=gv(Nk,"browser",gD),yD=new F(""),vD=[{provide:qs,useClass:class PN{addToWindow(t){se.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},se.getAllAngularTestabilities=()=>t.getAllTestabilities(),se.getAllAngularRootElements=()=>t.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(r=>{const i=se.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(c){s=s||c,o--,0==o&&r(s)};i.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Ks().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:hv,useClass:vl,deps:[je,Dl,qs]},{provide:vl,useClass:vl,deps:[je,Dl,qs]}],DD=[{provide:fu,useValue:"root"},{provide:Or,useFactory:function QN(){return new Or},deps:[]},{provide:ca,useClass:$N,multi:!0,deps:[Jt,je,pl]},{provide:ca,useClass:GN,multi:!0,deps:[Jt]},{provide:Ql,useClass:Ql,deps:[ua,so,eo,cD]},{provide:em,useExisting:Ql},{provide:oD,useExisting:so},{provide:so,useClass:so,deps:[Jt]},{provide:ua,useClass:ua,deps:[ca,je]},{provide:Xv,useClass:FN,deps:[]},[]];let JN=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:eo,useValue:n.appId},{provide:rD,useExisting:eo},xN]}}}return e.\u0275fac=function(n){return new(n||e)(V(yD,12))},e.\u0275mod=Cn({type:e}),e.\u0275inj=tn({providers:[...DD,...vD],imports:[XO,xk]}),e})();typeof window<"u"&&window;var te=(()=>{return(e=te||(te={}))[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",te;var e})();function ao(e){return!!e&&e<7}var Zl="Invariant Violation",wD=Object.setPrototypeOf,ox=void 0===wD?function(e,t){return e.__proto__=t,e}:wD,SD=function(e){function t(n){void 0===n&&(n=Zl);var r=e.call(this,"number"==typeof n?Zl+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Zl,ox(r,t.prototype),r}return It(t,e),t}(Error);function tr(e,t){if(!e)throw new SD(t)}var e,la=["debug","log","warn","error","silent"],ef=la.indexOf("log");function fa(e){return function(){if(la.indexOf(e)>=ef)return(console[e]||console.log).apply(console,arguments)}}(e=tr||(tr={})).debug=fa("debug"),e.log=fa("log"),e.warn=fa("warn"),e.error=fa("error");var tf="3.8.6";function Lt(e){try{return e()}catch{}}const _D=Lt(function(){return globalThis})||Lt(function(){return window})||Lt(function(){return self})||Lt(function(){return global})||Lt(function(){return Lt.constructor("return this")()});var CD=new Map;function nf(e){var t=CD.get(e)||1;return CD.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function TD(e,t){void 0===t&&(t=0);var n=nf("stringifyForDisplay");return JSON.stringify(e,function(r,i){return void 0===i?n:i},t).split(JSON.stringify(n)).join("")}function da(e){return function(t){for(var n=[],r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,a=!1,u=arguments[1];return new o(function(l){return i.subscribe({next:function(f){var d=!a;if(a=!0,!d||s)try{u=r(u,f)}catch(h){return l.error(h)}else u=f},error:function(f){l.error(f)},complete:function(){if(!a&&!s)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(u),l.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,o=new Array(i),s=0;s=0&&a.splice(d,1),u()}});a.push(f)},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[lf]=function(){return this},e.from=function(r){var i="function"==typeof this?this:e;if(null==r)throw new TypeError(r+" is not an object");var o=ha(r,lf);if(o){var s=o.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function ux(e){return e instanceof ce}(s)&&s.constructor===i?s:new i(function(a){return s.subscribe(a)})}if(cf("iterator")&&(o=ha(r,cx)))return new i(function(a){pa(function(){if(!a.closed){for(var u,c=function sx(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 ax(e,t){if(e){if("string"==typeof e)return AD(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 AD(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.")}(o.call(r));!(u=c()).done;)if(a.next(u.value),a.closed)return;a.complete()}})});if(Array.isArray(r))return new i(function(a){pa(function(){if(!a.closed){for(var c=0;c"u"&&(L(1===r.length,71,r.length),n=r[0].name.value),b(b({},e),{definitions:bn([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function ma(e){void 0===e&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function ga(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 L(r,72,n),r||null;default:return null}}function Xr(e){return{__ref:String(e)}}function ne(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Zr(e,t,n,r){if(function vx(e){return"IntValue"===e.kind}(n)||function Dx(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function yx(e){return"BooleanValue"===e.kind}(n)||function gx(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function Ex(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(s){return Zr(i,s.name,s.value,r)}),e[t.value]=i}else if(function bx(e){return"Variable"===e.kind}(n))e[t.value]=(r||{})[n.name.value];else if(function wx(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(s){var a={};return Zr(a,t,s,r),a[t.value]});else if(function Sx(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function _x(e){return"NullValue"===e.kind}(n))throw Ze(81,t.value,n.kind);e[t.value]=null}}af()&&Object.defineProperty(ce,Symbol("extensions"),{value:{symbol:lf,hostReportError:Jr},configurable:!0});var Tx=["connection","include","skip","client","rest","export","nonreactive"],hf=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 i={};return r.forEach(function(a){i[a]=t[a]}),"".concat(n.connection.key,"(").concat(uo(i),")")}return n.connection.key}var o=e;if(t){var s=uo(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){-1===Tx.indexOf(a)&&(n[a]&&Object.keys(n[a]).length?o+="@".concat(a,"(").concat(uo(n[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=uo;return uo=e,t}}),uo=function(t){return JSON.stringify(t,Ix)};function Ix(e,t){return ue(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(n,r){return n[r]=t[r],n},{})),t}function ya(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){return Zr(n,r.name,r.value,t)}),n}return null}function On(e){return e.alias?e.alias.value:e.name.value}function pf(e,t,n){for(var r,i=0,o=t.selections;iRD)return"[Array]";const n=Math.min(Nx,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function Fx(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>RD?"["+function Lx(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(([i,o])=>i+": "+Ea(o,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class Bx{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 LD{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,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 BD={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"]},jx=new Set(Object.keys(BD));function jD(e){const t=e?.kind;return"string"==typeof t&&jx.has(t)}var nr=(()=>(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(nr||(nr={})),nr))(),M=(()=>(function(e){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"}(M||(M={})),M))();const rr=Object.freeze({});function yn(e,t,n=BD){const r=new Map;for(const m of Object.values(M))r.set(m,Df(t,m));let i,l,f,o=Array.isArray(e),s=[e],a=-1,c=[],u=e;const d=[],h=[];do{a++;const m=a===s.length,D=m&&0!==c.length;if(m){if(l=0===h.length?void 0:d[d.length-1],u=f,f=h.pop(),D)if(o){u=u.slice();let E=0;for(const[C,_]of c){const P=C-E;null===_?(u.splice(P,1),E++):u[P]=_}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[E,C]of c)u[E]=C}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(f){if(l=o?a:s[a],u=f[l],null==u)continue;d.push(l)}let y;if(!Array.isArray(u)){var p,g;if(jD(u)||ba(!1,`Invalid AST Node: ${vf(u)}.`),y=(m?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)?.call(t,u,l,f,d,h),y===rr)break;if(!1===y){if(!m){d.pop();continue}}else if(void 0!==y&&(c.push([l,y]),!m)){if(!jD(y)){d.pop();continue}u=y}}var v;void 0===y&&D&&c.push([l,u]),m?d.pop():(i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(u),s=o?u:null!==(v=n[u.kind])&&void 0!==v?v:[],a=-1,c=[],f&&h.push(f),f=u)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function Df(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 mo(e,t){var n=e.directives;return!n||!n.length||function Ux(e){var t=[];return e&&e.length&&e.forEach(function(n){if(function Hx(e){var t=e.name.value;return"skip"===t||"include"===t}(n)){var r=n.arguments,i=n.name.value;L(r&&1===r.length,67,i);var o=r[0];L(o.name&&"if"===o.name.value,68,i);var s=o.value;L(s&&("Variable"===s.kind||"BooleanValue"===s.kind),69,i),t.push({directive:n,ifArgument:o})}}),t}(n).every(function(r){var i=r.directive,o=r.ifArgument,s=!1;return"Variable"===o.value.kind?L(void 0!==(s=t&&t[o.value.name.value]),66,i.name.value):s=o.value.value,"skip"===i.name.value?!s:s})}function ir(e,t,n){var r=new Set(e),i=r.size;return yn(t,{Directive:function(o){if(r.delete(o.name.value)&&(!n||!r.size))return rr}}),n?!r.size:r.size=0});var Ef=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},wf=Symbol(),iP=function(e){var t=bn(bn(bn([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return ue(n)&&n.message||"Error message not found."}).join("\n")},ti=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=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=i||[],u.clientErrors=o||[],u.networkError=s||null,u.message=a||iP(u),u.extraInfo=c,u.__proto__=t.prototype,u}return It(t,e),t}(Error),ge=Array.isArray;function Xt(e){return Array.isArray(e)&&e.length>0}var oP=Object.prototype.hasOwnProperty;function $D(){for(var e=[],t=0;t1)for(var r=new xn,i=1;i=0;--a){var c=s[a],l=isNaN(+c)?{}:[];l[c]=o,o=l}n=r.merge(n,o)}),n}var zD=Object.prototype.hasOwnProperty;function fP(e){var t={};return e.split("\n").forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();t[i]=o}}),t}function GD(e,t){e.status>=300&&Ef(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(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function _f(e){return 9===e||32===e}function go(e){return e>=48&&e<=57}function WD(e){return e>=97&&e<=122||e>=65&&e<=90}function QD(e){return WD(e)||95===e}function mP(e){return WD(e)||go(e)||95===e}function gP(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s0===a?s:s.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function yP(e){let t=0;for(;te.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>A(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Q("(",A(e.variableDefinitions,", "),")"),n=A([e.operation,A([e.name,t]),A(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Q(" = ",n)+Q(" ",A(r," "))},SelectionSet:{leave:({selections:e})=>Bt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Q("",e,": ")+t;let s=o+Q("(",A(n,", "),")");return s.length>80&&(s=o+Q("(\n",Sa(A(n,"\n")),"\n)")),A([s,A(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Q(" ",A(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>A(["...",Q("on ",e),A(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Q("(",A(n,", "),")")} on ${t} ${Q("",A(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function vP(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(h=>0===h.length||_f(h.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=a||c,l=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s);let f="";const d=i&&_f(e.charCodeAt(0));return(l&&!d||o)&&(f+="\n"),f+=n,(l||u)&&(f+="\n"),'"""'+f+'"""'}(e):function DP(e){return`"${e.replace(bP,EP)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+A(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+A(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Q("(",A(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Q("",e,"\n")+A(["schema",A(t," "),Bt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+A(["scalar",t,A(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+A(["type",t,Q("implements ",A(n," & ")),A(r," "),Bt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Q("",e,"\n")+t+(YD(n)?Q("(\n",Sa(A(n,"\n")),"\n)"):Q("(",A(n,", "),")"))+": "+r+Q(" ",A(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Q("",e,"\n")+A([t+": "+n,Q("= ",r),A(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+A(["interface",t,Q("implements ",A(n," & ")),A(r," "),Bt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Q("",e,"\n")+A(["union",t,A(n," "),Q("= ",A(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Q("",e,"\n")+A(["enum",t,A(n," "),Bt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+A([t,A(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Q("",e,"\n")+A(["input",t,A(n," "),Bt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Q("",e,"\n")+"directive @"+t+(YD(n)?Q("(\n",Sa(A(n,"\n")),"\n)"):Q("(",A(n,", "),")"))+(r?" repeatable":"")+" on "+A(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>A(["extend schema",A(e," "),Bt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>A(["extend scalar",e,A(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend type",e,Q("implements ",A(t," & ")),A(n," "),Bt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend interface",e,Q("implements ",A(t," & ")),A(n," "),Bt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>A(["extend union",e,A(t," "),Q("= ",A(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>A(["extend enum",e,A(t," "),Bt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>A(["extend input",e,A(t," "),Bt(n)]," ")}};function A(e,t=""){var n;return null!==(n=e?.filter(r=>r).join(t))&&void 0!==n?n:""}function Bt(e){return Q("{\n",Sa(A(e,"\n")),"\n}")}function Q(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Sa(e){return Q(" ",e.replace(/\n/g,"\n "))}function YD(e){var t;return null!==(t=e?.some(n=>n.includes("\n")))&&void 0!==t&&t}var ri=vn?new WeakMap:void 0,JD=function(e){var t;return t=ri?.get(e),t||(t=KD(e),ri?.set(e,t)),t},MP={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},XD=function(e,t){return t(e)};function Cf(e){return new ce(function(t){t.error(e)})}var eb={kind:M.FIELD,name:{kind:M.NAME,value:"__typename"}};function tb(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===M.FRAGMENT_SPREAD&&tb(t[n.name.value],t)})}function Tf(e){return tb(fo(e)||function Ax(e){L("Document"===e.kind,77),L(e.definitions.length<=1,78);var t=e.definitions[0];return L("FragmentDefinition"===t.kind,79),t}(e),ma(va(e)))?null:e}function rb(e){var t=new Map;return function(r){void 0===r&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function If(e,t){lo(t);for(var n=rb(""),r=rb(""),i=function(m){for(var D=0,y=void 0;D=0;--s)t.definitions[s].kind===M.OPERATION_DEFINITION&&++o;var a=function nb(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 i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(o,s){s(r)&&(i=o)}),i}}(e),c=function(m){return Xt(m)&&m.map(a).some(function(D){return D&&D.remove})},u=new Map,l=!1,f={enter:function(m){if(c(m.directives))return l=!0,null}},d=yn(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(m,D,y,E,C){var _=i(C);_&&_.variables.add(m.name.value)}},FragmentSpread:{enter:function(m,D,y,E,C){if(c(m.directives))return l=!0,null;var _=i(C);_&&_.fragmentSpreads.add(m.name.value)}},FragmentDefinition:{enter:function(m,D,y,E){u.set(JSON.stringify(E),m)},leave:function(m,D,y,E){return m===u.get(JSON.stringify(E))?m:o>0&&m.selectionSet.selections.every(function(_){return _.kind===M.FIELD&&"__typename"===_.name.value})?(r(m.name.value).removed=!0,l=!0,null):void 0}},Directive:{leave:function(m){if(a(m))return l=!0,null}}});if(!l)return t;var h=function(m){return m.transitiveVars||(m.transitiveVars=new Set(m.variables),m.removed||m.fragmentSpreads.forEach(function(D){h(r(D)).transitiveVars.forEach(function(y){m.transitiveVars.add(y)})})),m},p=new Set;d.definitions.forEach(function(m){m.kind===M.OPERATION_DEFINITION?h(n(m.name&&m.name.value)).fragmentSpreads.forEach(function(D){p.add(D)}):m.kind===M.FRAGMENT_DEFINITION&&0===o&&!r(m.name.value).removed&&p.add(m.name.value)}),p.forEach(function(m){h(r(m)).fragmentSpreads.forEach(function(D){p.add(D)})});var v={enter:function(m){if(function(m){return!(p.has(m)&&!r(m).removed)}(m.name.value))return null}};return Tf(yn(d,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave:function(m){if(m.variableDefinitions){var D=h(n(m.name&&m.name.value)).transitiveVars;if(D.size"u")throw Ze(37)}(r||ob);var d={http:{includeExtensions:s,preserveHeaderCase:a},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new ei(function(h){var p=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(h,n),g=h.getContext(),v={};if(g.clientAwareness){var m=g.clientAwareness,D=m.name,y=m.version;D&&(v["apollographql-client-name"]=D),y&&(v["apollographql-client-version"]=y)}var E=b(b({},v),g.headers),C={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:E};if(ir(["client"],h.query)){var _=ib(h.query);if(!_)return Cf(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`."));h.query=_}var ke,P=function ZD(e,t){for(var n=[],r=2;r-1;){if(m=void 0,z=[c.slice(0,v),c.slice(v+a.length)],c=z[1],D=(m=z[0]).indexOf("\r\n\r\n"),y=fP(m.slice(0,D)),(E=y["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(C=m.slice(D))if(_=GD(e,C),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)uP(_)?(P={},"payload"in _&&(P=b({},_.payload)),"errors"in _&&(P=b(b({},P),{extensions:b(b({},"extensions"in P?P.extensions:null),(Ae={},Ae[wf]=_.errors,Ae))})),t(P)):t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2];v=c.indexOf(a)}return[3,1];case 3:return[2]}})})}(hi,tw):function hP(e){return function(t){return t.text().then(function(n){return GD(t,n)}).then(function(n){return t.status>=300&&Ef(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!zD.call(n,"data")&&!zD.call(n,"errors")&&Ef(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}(h)(hi).then(tw)}).then(function(){ke=void 0,Ct.complete()}).catch(function(hi){ke=void 0,function dP(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(hi,Ct)}),function(){ke&&ke.abort()}})})},BP=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,LP(n).request)||this;return r.options=n,r}return It(t,e),t}(ei);const{toString:sb,hasOwnProperty:jP}=Object.prototype,ab=Function.prototype.toString,Af=new Map;function ye(e,t){try{return kf(e,t)}finally{Af.clear()}}const cb=ye;function kf(e,t){if(e===t)return!0;const n=sb.call(e);if(n!==sb.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(lb(e,t))return!0;const i=ub(e),o=ub(t),s=i.length;if(s!==o.length)return!1;for(let a=0;a=0&&e.indexOf(t,n)===n}(i,HP)}}return!1}function ub(e){return Object.keys(e).filter(VP,e)}function VP(e){return void 0!==this[e]}const HP="{ [native code] }";function lb(e,t){let n=Af.get(e);if(n){if(n.has(t))return!0}else Af.set(e,n=new Set);return n.add(t),!1}const $P=()=>Object.create(null),{forEach:qP,slice:zP}=Array.prototype,{hasOwnProperty:GP}=Object.prototype;class Pn{constructor(t=!0,n=$P){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return qP.call(t,r=>n=n.getChildTrie(r)),GP.call(n,"data")?n.data:n.data=this.makeData(zP.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r0},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}(ce);function Db(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(){return this.nextFetchPolicy=r,"function"==typeof r?r.apply(this,arguments):n}}):e.reobserve()}function ZP(e){!1!==globalThis.__DEV__&&L.error(23,e.message,e.stack)}function bb(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&L.debug(24,e)}function Bf(e){return"network-only"===e||"no-cache"===e||"standby"===e}function Eb(e){return e.kind===M.FIELD||e.kind===M.FRAGMENT_SPREAD||e.kind===M.INLINE_FRAGMENT}function sF(){}pb(Lf);class aF{constructor(t=1/0,n=sF){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}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}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)}}let Ve=null;const Sb={};let cF=1;function _b(e){try{return e()}catch{}}const jf="@wry/context:Slot",Cb=_b(()=>globalThis)||_b(()=>global)||Object.create(null),Vf=Cb[jf]||Array[jf]||function(e){try{Object.defineProperty(Cb,jf,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",cF++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=Ve;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===Sb)break;return t!==Ve&&(Ve.slots[this.id]=n),!0}return Ve&&(Ve.slots[this.id]=Sb),!1}getValue(){if(this.hasValue())return Ve.slots[this.id]}withValue(t,n,r,i){const s=Ve;Ve={parent:s,slots:{__proto__:null,[this.id]:t}};try{return n.apply(i,r)}finally{Ve=s}}static bind(t){const n=Ve;return function(){const r=Ve;try{return Ve=n,t.apply(this,arguments)}finally{Ve=r}}}static noContext(t,n,r){if(!Ve)return t.apply(r,n);{const i=Ve;try{return Ve=null,t.apply(r,n)}finally{Ve=i}}}}),vo=new Vf,{hasOwnProperty:dF}=Object.prototype,Uf=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Ta(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Do=[],hF=100;function si(e,t){if(!e)throw new Error(t||"assertion failure")}function Ib(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}let gF=(()=>{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&&!Fn(this))return Mb(this),this.value[0]}recompute(n){return si(!this.recomputing,"already recomputing"),Mb(this),Fn(this)?function yF(e,t){return Pb(e),vo.withValue(e,vF,[e,t]),function bF(e,t){if("function"==typeof e.subscribe)try{Ta(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function DF(e){e.dirty=!1,!Fn(e)&&kb(e)}(e),Ib(e.value)}(this,n):Ib(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,Ab(this),Ta(this))}dispose(){this.setDirty(),Pb(this),$f(this,(n,r)=>{n.setDirty(),Fb(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=Do.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&(Uf(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),Do.push(this.deps),this.deps=null)}}return e.count=0,e})();function Mb(e){const t=vo.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Fn(e)?Ob(t,e):Nb(t,e),t}function vF(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function Fn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Ab(e){$f(e,Ob)}function kb(e){$f(e,Nb)}function $f(e,t){const n=e.parents.size;if(n){const r=Uf(e.parents);for(let i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),xb(e,t),!Fn(e)&&kb(e)}function xb(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Do.length0&&e.childValues.forEach((t,n)=>{Fb(e,n)}),e.forgetDeps(),si(null===e.dirtyChildren)}function Fb(e,t){t.parents.delete(e),e.childValues.delete(t),xb(e,t)}const EF={setDirty:!0,dispose:!0,forget:!0};function Rb(e){const t=new Map,n=e&&e.subscribe;function r(i){const o=vo.getValue();if(o){let s=t.get(i);s||t.set(i,s=new Set),o.dependOn(s),"function"==typeof n&&(Ta(s),s.unsubscribe=n(i))}}return r.dirty=function(o,s){const a=t.get(o);if(a){const c=s&&dF.call(EF,s)?s:"setDirty";Uf(a).forEach(u=>u[c]()),t.delete(o),Ta(a)}},r}let Lb;function wF(...e){return(Lb||(Lb=new Pn("function"==typeof WeakMap))).lookupArray(e)}const qf=new Set;function Ia(e,{max:t=Math.pow(2,16),makeCacheKey:n=wF,keyArgs:r,subscribe:i}=Object.create(null)){const o=new aF(t,l=>l.dispose()),s=function(){const l=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===l)return e.apply(null,arguments);let f=o.get(l);f||(o.set(l,f=new gF(e)),f.subscribe=i,f.forget=()=>o.delete(l));const d=f.recompute(Array.prototype.slice.call(arguments));return o.set(l,f),qf.add(o),vo.hasValue()||(qf.forEach(h=>h.clean()),qf.clear()),d};function a(l){const f=o.get(l);f&&f.setDirty()}function c(l){const f=o.get(l);if(f)return f.peek()}function u(l){return o.delete(l)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:n,keyArgs:r,subscribe:i}),s.dirtyKey=a,s.dirty=function(){a(n.apply(null,arguments))},s.peekKey=c,s.peek=function(){return c(n.apply(null,arguments))},s.forgetKey=u,s.forget=function(){return u(n.apply(null,arguments))},s.makeCacheKey=n,s.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(s)}var zf=new Vf,Bb=new WeakMap;function bo(e){var t=Bb.get(e);return t||Bb.set(e,t={vars:new Set,dep:Rb()}),t}function jb(e){bo(e).vars.forEach(function(t){return t.forgetCache(e)})}function _F(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){bo(c).dep.dirty(r),function CF(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(n);n.clear(),s.forEach(function(c){return c(e)})}}else{var a=zf.getValue();a&&(i(a),bo(a).dep(r))}return e};r.onNextChange=function(o){return n.add(o),function(){n.delete(o)}};var i=r.attachCache=function(o){return t.add(o),bo(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}var Vb=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=$D(n.resolvers,r)}):this.resolvers=$D(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){var n=t.document,r=t.remoteResult,i=t.context,o=t.variables,s=t.onlyRunForcedResolvers,a=void 0!==s&&s;return Vt(this,void 0,void 0,function(){return en(this,function(c){return n?[2,this.resolveDocument(n,r.data,i,o,this.fragmentMatcher,a).then(function(u){return b(b({},r),{data:u.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return ir(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return ib(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,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),Vt(this,void 0,void 0,function(){return en(this,function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(o){return b(b({},n),o.exportedVariables)})]:[2,b({},n)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return yn(t,{Directive:{enter:function(r){if("client"===r.name.value&&r.arguments&&(n=r.arguments.some(function(i){return"always"===i.name.value&&"BooleanValue"===i.value.kind&&!0===i.value.value})))return rr}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:RP(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Vt(this,void 0,void 0,function(){var a,c,u,l,f,d,h,p,g,v;return en(this,function(D){return a=ho(t),c=va(t),u=ma(c),l=this.collectSelectionsToResolve(a,u),d=(f=a.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=(h=this).cache,g=h.client,v={fragmentMap:u,context:b(b({},r),{cache:p,client:g}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,n,v).then(function(y){return{result:y,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Vt(this,void 0,void 0,function(){var o,s,a,c,u,l=this;return en(this,function(f){return o=i.fragmentMap,s=i.context,a=i.variables,c=[r],u=function(d){return Vt(l,void 0,void 0,function(){var h;return en(this,function(g){return(n||i.selectionsToResolve.has(d))&&mo(d,a)?Nn(d)?[2,this.resolveField(d,n,r,i).then(function(v){var m;typeof v<"u"&&c.push(((m={})[On(d)]=v,m))})]:(function Mx(e){return"InlineFragment"===e.kind}(d)?h=d:L(h=o[d.name.value],18,d.name.value),h&&h.typeCondition&&i.fragmentMatcher(r,h.typeCondition.name.value,s)?[2,this.resolveSelectionSet(h.selectionSet,n,r,i).then(function(v){c.push(v)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(u)).then(function(){return Sf(c)})]})})},e.prototype.resolveField=function(t,n,r,i){return Vt(this,void 0,void 0,function(){var o,s,a,c,u,l,f,d,h,p=this;return en(this,function(g){return r?(o=i.variables,s=t.name.value,a=On(t),c=s!==a,u=r[a]||r[s],l=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(f=r.__typename||i.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(h=d[c?s:a])&&(l=Promise.resolve(zf.withValue(this.cache,h,[r,ya(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}])))),[2,l.then(function(v){var m,D;if(void 0===v&&(v=u),t.directives&&t.directives.forEach(function(E){"export"===E.name.value&&E.arguments&&E.arguments.forEach(function(C){"as"===C.name.value&&"StringValue"===C.value.kind&&(i.exportedVariables[C.value.value]=v)})}),!t.selectionSet||null==v)return v;var y=null!==(D=null===(m=t.directives)||void 0===m?void 0:m.some(function(E){return"client"===E.name.value}))&&void 0!==D&&D;return Array.isArray(v)?p.resolveSubSelectedArray(t,n||y,v,i):t.selectionSet?p.resolveSelectionSet(t.selectionSet,n||y,v,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var o=this;return Promise.all(r.map(function(s){return null===s?null:Array.isArray(s)?o.resolveSubSelectedArray(t,n,s,i):t.selectionSet?o.resolveSelectionSet(t.selectionSet,n,s,i):void 0}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(s){return!Array.isArray(s)},i=this.selectionsToResolveCache;return function o(s){if(!i.has(s)){var a=new Set;i.set(s,a),yn(s,{Directive:function(c,u,l,f,d){"client"===c.name.value&&d.forEach(function(h){r(h)&&Eb(h)&&a.add(h)})},FragmentSpread:function(c,u,l,f,d){var h=n[c.name.value];L(h,19,c.name.value);var p=o(h);p.size>0&&(d.forEach(function(g){r(g)&&Eb(g)&&a.add(g)}),a.add(c),p.forEach(function(g){a.add(g)}))}})}return i.get(s)}(t)},e}(),ai=new(vn?WeakMap:Map);function Gf(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return ai.set(e,(ai.get(e)+1)%1e15),n.apply(this,arguments)})}function Hb(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Wf=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;ai.has(r)||(ai.set(r,0),Gf(r,"evict"),Gf(r,"modify"),Gf(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||te.loading;return this.variables&&this.networkStatus!==te.loading&&!ye(this.variables,t.variables)&&(n=te.setVariables),ye(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(){Hb(this),this.dirty=!1},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&ye(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 n=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!ye(r&&r.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():Db(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;Hb(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(ao(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 i=b(b({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return n.setDiff(o)}});(!this.lastWatch||!ye(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===ai.get(this.cache)&&ye(n,r.variables)&&ye(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,s=new xn,a=Xt(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&Xt(t.incremental)){var c=qD(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!==i&&(Qf(t,r.errorPolicy)?this.cache.performTransaction(function(l){if(o.shouldWrite(t,r.variables))l.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:1===i}),o.lastWrite={result:t,variables:r.variables,dmCount:ai.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(t.data=o.lastDiff.diff.result);var f=o.getDiffOptions(r.variables),d=l.diff(f);!o.stopped&&ye(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(d,f),d.complete&&(t.data=d.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=te.ready},e.prototype.markError=function(t){return this.networkStatus=te.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function Qf(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!_a(e);return!r&&n&&e.data&&(r=!0),r}var TF=Object.prototype.hasOwnProperty,IF=function(){function e(t){var n=this,r=t.cache,i=t.link,o=t.defaultOptions,s=t.documentTransform,a=t.queryDeduplication,c=void 0!==a&&a,u=t.onBroadcast,l=t.ssrMode,f=void 0!==l&&l,d=t.clientAwareness,h=void 0===d?{}:d,p=t.localState,g=t.assumeImmutableResults,v=void 0===g?!!r.assumeImmutableResults:g;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(vn?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var m=new hb(function(D){return n.cache.transformDocument(D)},{cache:!1});this.cache=r,this.link=i,this.defaultOptions=o||Object.create(null),this.queryDeduplication=c,this.clientAwareness=h,this.localState=p||new Vb({cache:r}),this.ssrMode=f,this.assumeImmutableResults=v,this.documentTransform=s?m.concat(s).concat(m):m,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(Ze(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var n,r,i=t.mutation,o=t.variables,s=t.optimisticResponse,a=t.updateQueries,c=t.refetchQueries,u=void 0===c?[]:c,l=t.awaitRefetchQueries,f=void 0!==l&&l,d=t.update,h=t.onQueryUpdated,p=t.fetchPolicy,g=void 0===p?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.fetchPolicy)||"network-only":p,v=t.errorPolicy,m=void 0===v?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":v,D=t.keepRootFields,y=t.context;return Vt(this,void 0,void 0,function(){var E,C,_,P;return en(this,function(z){switch(z.label){case 0:return L(i,26),L("network-only"===g||"no-cache"===g,27),E=this.generateMutationId(),i=this.cache.transformForLink(this.transform(i)),C=this.getDocumentInfo(i).hasClientExports,o=this.getVariables(i,o),C?[4,this.localState.addExportedVariables(i,o,y)]:[3,2];case 1:o=z.sent(),z.label=2;case 2:return _=this.mutationStore&&(this.mutationStore[E]={mutation:i,variables:o,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:E,document:i,variables:o,fetchPolicy:g,errorPolicy:m,context:y,updateQueries:a,update:d,keepRootFields:D}),this.broadcastQueries(),P=this,[2,new Promise(function(Ae,ke){return Pf(P.getObservableFromLink(i,b(b({},y),{optimisticResponse:s}),o,!1),function(He){if(_a(He)&&"none"===m)throw new ti({graphQLErrors:Ff(He)});_&&(_.loading=!1,_.error=null);var Dn=b({},He);return"function"==typeof u&&(u=u(Dn)),"ignore"===m&&_a(Dn)&&delete Dn.errors,P.markMutationResult({mutationId:E,result:Dn,document:i,variables:o,fetchPolicy:g,errorPolicy:m,context:y,update:d,updateQueries:a,awaitRefetchQueries:f,refetchQueries:u,removeOptimistic:s?E:void 0,onQueryUpdated:h,keepRootFields:D})}).subscribe({next:function(He){P.broadcastQueries(),(!("hasNext"in He)||!1===He.hasNext)&&Ae(He)},error:function(He){_&&(_.loading=!1,_.error=He),s&&P.cache.removeOptimistic(E),P.broadcastQueries(),ke(He instanceof ti?He:new ti({networkError:He}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;void 0===n&&(n=this.cache);var i=t.result,o=[],s="no-cache"===t.fetchPolicy;if(!s&&Qf(i,t.errorPolicy)){if(ni(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),ni(i)&&Xt(i.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=qD(a.result,i)),typeof c<"u"&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var u=t.updateQueries;u&&this.queries.forEach(function(f,d){var h=f.observableQuery,p=h&&h.queryName;if(p&&TF.call(u,p)){var g=u[p],v=r.queries.get(d),m=v.document,D=v.variables,y=n.diff({query:m,variables:D,returnPartialData:!0,optimistic:!1}),E=y.result;if(y.complete&&E){var _=g(E,{mutationResult:i,queryName:m&&mf(m)||void 0,queryVariables:D});_&&o.push({result:_,dataId:"ROOT_QUERY",query:m,variables:D})}}})}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(f){s||o.forEach(function(g){return f.write(g)});var d=t.update,h=!function cP(e){return ni(e)||function aP(e){return"hasNext"in e&&"data"in e}(e)}(i)||ni(i)&&!i.hasNext;if(d){if(!s){var p=f.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});p.complete&&("incremental"in(i=b(b({},i),{data:p.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&d(f,i,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&h&&f.modify({id:"ROOT_MUTATION",fields:function(g,v){return"__typename"===v.fieldName?g:v.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(f){return l.push(f)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i="function"==typeof t?t(n.variables):t;return this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(b(b({},n),{result:{data:i}}),o)}catch(s){!1!==globalThis.__DEV__&&L.error(s)}},n.mutationId)},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:Vx(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:ir(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:If([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:gf(fo(t)),asQuery:b(b({},t),{definitions:t.definitions.map(function(i){return"OperationDefinition"===i.kind&&"query"!==i.operation?b(b({},i),{operation:"query"}):i})})};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 Wf(this),i=new Lf({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;return void 0===n&&(n=this.generateQueryId()),L(t.query,28),L("Document"===t.query.kind,29),L(!t.returnPartialData,30),L(!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(Ze(32)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=te.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,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(s){"string"==typeof s?i.set(s,!1):function mx(e){return ue(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?i.set(n.transform(s),!1):ue(s)&&s.query&&o.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&&i.has(l)||u&&i.has(u))&&(r.set(a,c),l&&i.set(l,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(s){var a=nf("legacyOneTimeQuery"),c=n.getQuery(a).init({document:s.query,variables:s.variables}),u=new Lf({queryManager:n,queryInfo:c,options:b(b({},s),{fetchPolicy:"network-only"})});L(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(s,a){s||!1!==globalThis.__DEV__&&L.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(i,o){var s=i.options.fetchPolicy;i.resetLastResults(),(t||"standby"!==s&&"cache-only"!==s)&&r.push(i.refetch()),n.getQuery(o).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,i=t.fetchPolicy,o=t.errorPolicy,s=void 0===o?"none":o,a=t.variables,c=t.context,u=void 0===c?{}:c;r=this.transform(r),a=this.getVariables(r,a);var l=function(d){return n.getObservableFromLink(r,u,d).map(function(h){"no-cache"!==i&&(Qf(h,s)&&n.cache.write({query:r,result:h.data,dataId:"ROOT_SUBSCRIPTION",variables:d}),n.broadcastQueries());var p=_a(h),g=function nP(e){return!!e.extensions&&Array.isArray(e.extensions[wf])}(h);if(p||g){var v={};if(p&&(v.graphQLErrors=h.errors),g&&(v.protocolErrors=h.extensions[wf]),"none"===s||g)throw new ti(v)}return"ignore"===s&&delete h.errors,h})};if(this.getDocumentInfo(r).hasClientExports){var f=this.localState.addExportedVariables(r,a,u).then(l);return new ce(function(d){var h=null;return f.then(function(p){return h=p.subscribe(d)},d.error),function(){return h&&h.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,i){var s,o=this;void 0===i&&(i=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 d=this.inFlightLinkObservables,h=this.link,p={query:u,variables:r,operationName:mf(u)||void 0,context:this.prepareContext(b(b({},n),{forceFetch:!i}))};if(n=p.context,i){var g=JD(u),v=d.get(g)||new Map;d.set(g,v);var m=or(r);if(!(a=v.get(m))){var D=new ii([yf(h,p)]);v.set(m,a=D),D.beforeNext(function(){v.delete(m)&&v.size<1&&d.delete(g)})}}else a=new ii([yf(h,p)])}else a=new ii([ce.of({data:{}})]),n=this.prepareContext(n);return l&&(a=Pf(a,function(y){return o.localState.runResolvers({document:l,remoteResult:y,context:n,variables:r})})),a},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return Pf(this.getObservableFromLink(o,r.context,r.variables),function(s){var a=Ff(s),c=a.length>0;if(i>=t.lastRequestId){if(c&&"none"===r.errorPolicy)throw t.markError(new ti({graphQLErrors:a}));t.markResult(s,o,r,n),t.markReady()}var u={data:s.data,loading:!1,networkStatus:te.ready};return c&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=te.error),u},function(s){var a=function rP(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new ti({networkError:s});throw i>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r,i){var o=this;void 0===r&&(r=te.loading),void 0===i&&(i=n.query);var _,P,s=this.getVariables(i,n.variables),a=this.getQuery(t),c=this.defaultOptions.watchQuery,u=n.fetchPolicy,f=n.errorPolicy,h=n.returnPartialData,g=n.notifyOnNetworkStatusChange,m=n.context,y=Object.assign({},n,{query:i,variables:s,fetchPolicy:void 0===u?c&&c.fetchPolicy||"cache-first":u,errorPolicy:void 0===f?c&&c.errorPolicy||"none":f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==g&&g,context:void 0===m?{}:m}),E=function(Ae){y.variables=Ae;var ke=o.fetchQueryByPolicy(a,y,r);return"standby"!==y.fetchPolicy&&ke.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),ke},C=function(){return o.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(Ae){C(),setTimeout(function(){return _.cancel(Ae)})}),this.getDocumentInfo(y.query).hasClientExports)_=new ii(this.localState.addExportedVariables(y.query,y.variables,y.context).then(E).then(function(Ae){return Ae.sources})),P=!0;else{var z=E(y.variables);P=z.fromLink,_=new ii(z.sources)}return _.promise.then(C,C),{concast:_,fromLink:P}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,o=t.optimistic,s=void 0!==o&&o,a=t.removeOptimistic,c=void 0===a?s?nf("refetchQueries"):void 0:a,u=t.onQueryUpdated,l=new Map;i&&this.getObservableQueries(i).forEach(function(d,h){l.set(h,{oq:d,lastDiff:n.getQuery(h).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(d,h,p){var g=d.watcher instanceof Wf&&d.watcher.observableQuery;if(g){if(u){l.delete(g.queryId);var v=u(g,h,p);return!0===v&&(v=g.refetch()),!1!==v&&f.set(g,v),v}null!==u&&l.set(g.queryId,{oq:g,lastDiff:p,diff:h})}}}),l.size&&l.forEach(function(d,h){var m,p=d.oq,g=d.lastDiff,v=d.diff;if(u){if(!v){var D=p.queryInfo;D.reset(),v=D.getDiff()}m=u(p,v,g)}(!u||!0===m)&&(m=p.refetch()),!1!==m&&f.set(p,m),h.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(h)}),c&&this.cache.removeOptimistic(c),f},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,o=n.query,s=n.variables,a=n.fetchPolicy,c=n.refetchWritePolicy,u=n.errorPolicy,l=n.returnPartialData,f=n.context,d=n.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:o,variables:s,networkStatus:r});var p=function(){return t.getDiff()},g=function(E,C){void 0===C&&(C=t.networkStatus||te.loading);var _=E.result;!1!==globalThis.__DEV__&&!l&&!ye(_,{})&&bb(E.missing);var P=function(z){return ce.of(b({data:z,loading:ao(C),networkStatus:C},E.complete?null:{partial:!0}))};return _&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:_},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(z){return P(z.data||void 0)}):"none"===u&&C===te.refetch&&Array.isArray(E.missing)?P(void 0):P(_)},v="no-cache"===a?0:r===te.refetch&&"merge"!==c?1:2,m=function(){return i.getResultsFromLink(t,v,{query:o,variables:s,context:f,fetchPolicy:a,errorPolicy:u})},D=d&&"number"==typeof h&&h!==r&&ao(r);switch(a){default:case"cache-first":return(y=p()).complete?{fromLink:!1,sources:[g(y,t.markReady())]}:l||D?{fromLink:!0,sources:[g(y),m()]}:{fromLink:!0,sources:[m()]};case"cache-and-network":var y;return(y=p()).complete||l||D?{fromLink:!0,sources:[g(y),m()]}:{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[g(p(),t.markReady())]};case"network-only":return D?{fromLink:!0,sources:[g(p()),m()]}:{fromLink:!0,sources:[m()]};case"no-cache":return D?{fromLink:!0,sources:[g(t.getDiff()),m()]}:{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new Wf(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var n=this.localState.prepareContext(t);return b(b({},n),{clientAwareness:this.clientAwareness})},e}();function Kf(e,t){return oi(e,t,t.variables&&{variables:oi(b(b({},e&&e.variables),t.variables))})}var Ub=!1,$b=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Ze(15);var r=t.uri,s=t.cache,a=t.documentTransform,c=t.ssrMode,u=void 0!==c&&c,l=t.ssrForceFetchDelay,f=void 0===l?0:l,d=t.connectToDevTools,h=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:d,p=t.queryDeduplication,g=void 0===p||p,v=t.defaultOptions,m=t.assumeImmutableResults,D=void 0===m?s.assumeImmutableResults:m,y=t.resolvers,E=t.typeDefs,C=t.fragmentMatcher,_=t.name,P=t.version,z=t.link;z||(z=r?new BP({uri:r,credentials:t.credentials,headers:t.headers}):ei.empty()),this.link=z,this.cache=s,this.disableNetworkFetches=u||f>0,this.queryDeduplication=g,this.defaultOptions=v||Object.create(null),this.typeDefs=E,f&&setTimeout(function(){return n.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=tf,this.localState=new Vb({cache:s,client:this,resolvers:y,fragmentMatcher:C}),this.queryManager=new IF({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:a,queryDeduplication:g,ssrMode:u,clientAwareness:{name:_,version:P},localState:this.localState,assumeImmutableResults:D,onBroadcast:h?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),h&&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}!Ub&&!1!==globalThis.__DEV__&&(Ub=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,o=void 0;"string"==typeof i&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1!==globalThis.__DEV__&&L.log("Download the Apollo DevTools for a better development experience: %s",o)}},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=Kf(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=Kf(this.defaultOptions.query,t)),L("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=Kf(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.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 yf(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=[],i=[];n.forEach(function(s,a){r.push(a),i.push(s)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(s){!1!==globalThis.__DEV__&&L.debug(17,s)}),o},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},e}();function AF(e,t){if(!Boolean(e))throw new Error(t??"Unexpected invariant triggered.")}const kF=/\r\n|[\n\r]/g;function Yf(e,t){let n=0,r=1;for(const i of e.body.matchAll(kF)){if("number"==typeof i.index||AF(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function OF(e){return qb(e.source,Yf(e.source,e.start))}function qb(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=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),f=l[i];if(f.length>120){const d=Math.floor(c/80),h=c%80,p=[];for(let g=0;g["|",g]),["|","^".padStart(h)],["|",p[d+1]]])}return u+zb([[s-1+" |",l[i-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function zb(e){const t=e.filter(([r,i])=>void 0!==i),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join("\n")}class Jf extends Error{constructor(t,...n){var r,i,o;const{nodes:s,source:a,positions:c,path:u,originalError:l,extensions:f}=function NF(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=Gb(Array.isArray(s)?s:s?[s]:void 0);const d=Gb(null===(r=this.nodes)||void 0===r?void 0:r.map(p=>p.loc).filter(p=>null!=p));this.source=a??(null==d||null===(i=d[0])||void 0===i?void 0:i.source),this.positions=c??d?.map(p=>p.start),this.locations=c&&a?c.map(p=>Yf(a,p)):d?.map(p=>Yf(p.source,p.start));const h=function MF(e){return"object"==typeof e&&null!==e}(l?.extensions)?l?.extensions:void 0;this.extensions=null!==(o=f??h)&&void 0!==o?o: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,Jf):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"+OF(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+="\n\n"+qb(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 Gb(e){return void 0===e||0===e.length?void 0:e}function Fe(e,t,n){return new Jf(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Ma=(()=>(function(e){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"}(Ma||(Ma={})),Ma))(),w=(()=>(function(e){e.SOF="",e.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"}(w||(w={})),w))();class xF{constructor(t){const n=new LD(w.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!==w.EOF)do{if(t.next)t=t.next;else{const n=FF(this,t.end);t.next=n,n.prev=t,t=n}}while(t.kind===w.COMMENT);return t}}function ci(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Aa(e,t){return Wb(e.charCodeAt(t))&&Qb(e.charCodeAt(t+1))}function Wb(e){return e>=55296&&e<=56319}function Qb(e){return e>=56320&&e<=57343}function sr(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return w.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return'"'===r?"'\"'":`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Ie(e,t,n,r,i){return new LD(t,n,r,e.line,1+n-e.lineStart,i)}function FF(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function HF(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 Fe(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function UF(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||ba(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ba(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class ka{constructor(t,n={}){const r=function zF(e){return qF(e,Yb)}(t)?t:new Yb(t);this._lexer=new xF(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(w.NAME);return this.node(t,{kind:M.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:M.DOCUMENT,definitions:this.many(w.SOF,this.parseDefinition,w.EOF)})}parseDefinition(){if(this.peek(w.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===w.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 Fe(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(w.BRACE_L))return this.node(t,{kind:M.OPERATION_DEFINITION,operation:nr.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(w.NAME)&&(r=this.parseName()),this.node(t,{kind:M.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(w.NAME);switch(t.value){case"query":return nr.QUERY;case"mutation":return nr.MUTATION;case"subscription":return nr.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(w.PAREN_L,this.parseVariableDefinition,w.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:M.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(w.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(w.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(w.DOLLAR),this.node(t,{kind:M.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:M.SELECTION_SET,selections:this.many(w.BRACE_L,this.parseSelection,w.BRACE_R)})}parseSelection(){return this.peek(w.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(w.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:M.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(w.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(w.PAREN_L,t?this.parseConstArgument:this.parseArgument,w.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(w.COLON),this.node(n,{kind:M.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(w.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(w.NAME)?this.node(t,{kind:M.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:M.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:M.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:M.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 w.BRACKET_L:return this.parseList(t);case w.BRACE_L:return this.parseObject(t);case w.INT:return this.advanceLexer(),this.node(n,{kind:M.INT,value:n.value});case w.FLOAT:return this.advanceLexer(),this.node(n,{kind:M.FLOAT,value:n.value});case w.STRING:case w.BLOCK_STRING:return this.parseStringLiteral();case w.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:M.BOOLEAN,value:!0});case"false":return this.node(n,{kind:M.BOOLEAN,value:!1});case"null":return this.node(n,{kind:M.NULL});default:return this.node(n,{kind:M.ENUM,value:n.value})}case w.DOLLAR:if(t){if(this.expectToken(w.DOLLAR),this._lexer.token.kind===w.NAME)throw Fe(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:M.STRING,value:t.value,block:t.kind===w.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:M.LIST,values:this.any(w.BRACKET_L,()=>this.parseValueLiteral(t),w.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:M.OBJECT,fields:this.any(w.BRACE_L,()=>this.parseObjectField(t),w.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(w.COLON),this.node(n,{kind:M.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(w.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(w.AT),this.node(n,{kind:M.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(w.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(w.BRACKET_R),n=this.node(t,{kind:M.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(w.BANG)?this.node(t,{kind:M.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:M.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(w.STRING)||this.peek(w.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(),i=this.many(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);return this.node(t,{kind:M.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(w.COLON);const r=this.parseNamedType();return this.node(t,{kind:M.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:M.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:M.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(w.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseFieldDefinition,w.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(w.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:M.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(w.PAREN_L,this.parseInputValueDef,w.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(w.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(w.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:M.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:M.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:M.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(w.EQUALS)?this.delimitedMany(w.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:M.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(w.BRACE_L,this.parseEnumValueDefinition,w.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:M.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Fe(this._lexer.source,this._lexer.token.start,`${Oa(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(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseInputValueDef,w.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===w.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(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:M.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:M.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(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(w.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:M.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(w.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Ma,n.value))return n;throw this.unexpected(t)}node(t,n){return!0!==this._options.noLocation&&(n.loc=new Bx(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 Fe(this._lexer.source,n.start,`Expected ${Jb(t)}, found ${Oa(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const n=this._lexer.token;if(n.kind!==w.NAME||n.value!==t)throw Fe(this._lexer.source,n.start,`Expected "${t}", found ${Oa(n)}.`);this.advanceLexer()}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===w.NAME&&n.value===t&&(this.advanceLexer(),!0)}unexpected(t){const n=t??this._lexer.token;return Fe(this._lexer.source,n.start,`Unexpected ${Oa(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}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(void 0!==t&&n.kind!==w.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Fe(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Oa(e){const t=e.value;return Jb(e.kind)+(null!=t?` "${t}"`:"")}function Jb(e){return function PF(e){return e===w.BANG||e===w.DOLLAR||e===w.AMP||e===w.PAREN_L||e===w.PAREN_R||e===w.SPREAD||e===w.COLON||e===w.EQUALS||e===w.AT||e===w.BRACKET_L||e===w.BRACKET_R||e===w.BRACE_L||e===w.PIPE||e===w.BRACE_R}(e)?`"${e}"`:e}var Na=new Map,Zf=new Map,Xb=!0,xa=!1;function Zb(e){return e.replace(/[\s,]+/g," ").trim()}function YF(e){var t=Zb(e);if(!Na.has(t)){var n=function GF(e,t){return new ka(e,t).parseDocument()}(e,{experimentalFragmentVariables:xa,allowLegacyFragmentVariables:xa});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Na.set(t,function KF(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&"object"==typeof o&&t.add(o)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function QF(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if("FragmentDefinition"===r.kind){var i=r.name.value,o=function WF(e){return Zb(e.source.body.substring(e.start,e.end))}(r.loc),s=Zf.get(i);s&&!s.has(o)?Xb&&console.warn("Warning: fragment with name "+i+" 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||Zf.set(i,s=new Set),s.add(o),t.has(o)||(t.add(o),n.push(r))}else n.push(r)}),b(b({},e),{definitions:n})}(n)))}return Na.get(t)}function ui(e){for(var t=[],n=1;n(eE.delegate||Date).now(),delegate:void 0};class So{constructor(t,n=So.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}So.now=eE.now;class iR extends So{constructor(t,n=So.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 sR=new class oR extends iR{}(class rR extends nR{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 tE(...e){return function aR(){return zd(1)}()(gi(e,Bo(e)))}function nE(e){return new ve(t=>(e().then(n=>{t.closed||(t.next(n),t.complete())},n=>{t.closed||t.error(n)}),()=>t.unsubscribe()))}class lR{constructor(t){this.zone=t,this.now=Date.now?Date.now:()=>+new Date}schedule(t,n=0,r){return this.zone.run(()=>sR.schedule(t,n,r))}}function rE(e){return e[Fo]=()=>e,e}function iE(e,t){return e.pipe(Xa(new lR(t)))}function oE(e,t,n){return e&&typeof e[t]<"u"?e[t]:n}class dR{constructor(t,n,r){this.obsQuery=t;const i=iE(gi(rE(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?i.pipe(function fR(e){return function(n){return new ve(function(i){const o=e.getCurrentResult(),{loading:s,errors:a,error:c,partial:u,data:l}=o,{partialRefetch:f,fetchPolicy:d}=e.options,h=a||c;return f&&u&&(!l||0===Object.keys(l).length)&&"cache-only"!==d&&!s&&!h&&i.next({...o,loading:!0,networkStatus:te.loading}),n.subscribe(i)})}}(this.obsQuery)):i,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 hR=new F("APOLLO_FLAGS"),sE=new F("APOLLO_OPTIONS"),pR=new F("APOLLO_NAMED_OPTIONS");class aE{constructor(t,n,r){this.ngZone=t,this.flags=n,this._client=r,this.useInitialLoading=oE(n,"useInitialLoading",!1),this.useMutationLoading=oE(n,"useMutationLoading",!1)}watchQuery(t){return new dR(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return nE(()=>this.ensureClient().query({...t}))}mutate(t){return function uR(e,t){return t?e.pipe(function cR(...e){const t=Bo(e);return Hn((n,r)=>{(t?tE(e,n,t):tE(e,n)).subscribe(r)})}({loading:!0}),tt(n=>({...n,loading:!!n.loading}))):e.pipe(tt(n=>({...n,loading:!1})))}(nE(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}subscribe(t,n){const r=gi(rE(this.ensureClient().subscribe({...t})));return n&&!0!==n.useZone?r:iE(r,this.ngZone)}getClient(){return this.client}setClient(t){this.client=t}get client(){return this._client}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)throw new Error("Client has not been defined yet")}}let cE=(()=>{class e extends aE{constructor(n,r,i,o){if(super(n,o),this._ngZone=n,this.map=new Map,r&&this.createDefault(r),i&&"object"==typeof i)for(let s in i)i.hasOwnProperty(s)&&this.create(i[s],s)}create(n,r){ed(r)?this.createDefault(n):this.createNamed(r,n)}default(){return this}use(n){return ed(n)?this.default():this.map.get(n)}createDefault(n){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new $b(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new aE(this._ngZone,this.flags,new $b(r)))}removeClient(n){ed(n)?this._client=void 0:this.map.delete(n)}}return e.\u0275fac=function(n){return new(n||e)(V(je),V(sE,8),V(pR,8),V(hR,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function ed(e){return!e||"default"===e}const mR=[cE];let gR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e}),e.\u0275inj=tn({providers:mR}),e})();const uE=function yR(e,...t){return ui(e,...t)};var vR=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Ia(px)}return e.prototype.batch=function(t){var i,n=this;return this.performTransaction(function(){return i=t.update(n)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),i},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.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,i=Zt(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,o=t.fragmentName,s=Zt(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),o=n(i);return null==o?i:(r.writeQuery(b(b({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),o=n(i);return null==o?i:(r.writeFragment(b(b({},t),{data:o})),o)}})},e}(),lE=function(e){function t(n,r,i,o){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=o,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 It(t,e),t}(Error);function td(e){return!1!==globalThis.__DEV__&&function DR(e){var t=new Set([e]);return t.forEach(function(n){ue(n)&&function bR(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){ue(n[r])&&t.add(n[r])})}),e}(e),e}var Re=Object.prototype.hasOwnProperty;function _o(e){return null==e}function fE(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=_o(r)?_o(i)?void 0:{_id:i}:{id:r}),_o(r)&&!_o(i)&&(r=i),!_o(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var dE={dataIdFromObject:fE,addTypename:!0,resultCaching:!0,canonizeResults:!1};function hE(e){var t=e.canonizeResults;return void 0===t?dE.canonizeResults:t}var pE=/^[_a-z][_0-9a-z]*/i;function Rn(e){var t=e.match(pE);return t?t[0]:e}function nd(e,t,n){return!!ue(t)&&(ge(t)?t.every(function(r){return nd(e,r,n)}):e.selections.every(function(r){if(Nn(r)&&mo(r,n)){var i=On(r);return Re.call(t,i)&&(!r.selectionSet||nd(r.selectionSet,t[i],n))}return!0}))}function li(e){return ue(e)&&!ne(e)&&!ge(e)}function mE(e,t){var n=ma(va(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var Fa=Object.create(null),rd=function(){return Fa},gE=Object.create(null),Co=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(i,o){return td(ne(i)?r.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return ne(i)?r.has(i.__ref):"object"==typeof i},this.toReference=function(i,o){if("string"==typeof i)return Xr(i);if(ne(i))return i;var s=r.policies.identify(i)[0];if(s){var a=Xr(s);return o&&r.merge(s,i),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),Re.call(this.data,t)){var r=this.data[t];if(r&&Re.call(r,n))return r[n]}return"__typename"===n&&Re.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof Ln?this.parent.get(t,n):void 0},e.prototype.lookup=function(t,n){return n&&this.group.depend(t,"__exists"),Re.call(this.data,t)?this.data[t]:this instanceof Ln?this.parent.lookup(t,n):this.policies.rootTypenamesById[t]?Object.create(null):void 0},e.prototype.merge=function(t,n){var i,r=this;ne(t)&&(t=t.__ref),ne(n)&&(n=n.__ref);var o="string"==typeof t?this.lookup(i=t):t,s="string"==typeof n?this.lookup(i=n):n;if(s){L("string"==typeof i,1);var a=new xn(CR).merge(o,s);if(this.data[i]=a,a!==o&&(delete this.refs[i],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach(function(u){if(!o||o[u]!==a[u]){c[u]=1;var l=Rn(u);l!==u&&!r.policies.hasKeyArgs(a.__typename,l)&&(c[l]=1),void 0===a[u]&&!(r instanceof Ln)&&delete a[u]}}),c.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===a.__typename&&delete c.__typename,Object.keys(c).forEach(function(u){return r.group.dirty(i,u)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var o=Object.create(null),s=!1,a=!0,c={DELETE:Fa,INVALIDATE:gE,isReference:ne,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField("string"==typeof u?{fieldName:u,from:l||Xr(t)}:u,{store:r})}};if(Object.keys(i).forEach(function(u){var l=Rn(u),f=i[u];if(void 0!==f){var d="function"==typeof n?n:n[u]||n[l];if(d){var h=d===rd?Fa:d(td(f),b(b({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));if(h===gE)r.group.dirty(t,u);else if(h===Fa&&(h=void 0),h!==f&&(o[u]=h,s=!0,f=h,!1!==globalThis.__DEV__)){var p=function(C){if(void 0===r.lookup(C.__ref))return!1!==globalThis.__DEV__&&L.warn(2,C),!0};if(ne(h))p(h);else if(Array.isArray(h))for(var g=!1,v=void 0,m=0,D=h;m0){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 Ln?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){Re.call(r,s)&&(Object.keys(t.findChildRefIds(s)).forEach(n.add,n),delete r[s])});var i=Object.keys(r);if(i.length){for(var o=this;o instanceof Ln;)o=o.parent;i.forEach(function(s){return o.delete(s)})}return i},e.prototype.findChildRefIds=function(t){if(!Re.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(o){ne(o)&&(n[o.__ref]=!0),ue(o)&&Object.keys(o).forEach(function(s){var a=o[s];ue(a)&&i.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),yE=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?Rb():null,this.keyMaker=new Pn(vn)},e.prototype.depend=function(t,n){if(this.d){this.d(id(t,n));var r=Rn(n);r!==n&&this.d(id(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(id(t,n),"__exists"===n?"forget":"setDirty")},e}();function id(e,t){return t+"#"+e}function vE(e,t){To(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(n){function r(i){var s=i.resultCaching,c=i.seed,u=n.call(this,i.policies,new yE(void 0===s||s))||this;return u.stump=new _R(u),u.storageTrie=new Pn(vn),c&&u.replace(c),u}return It(r,n),r.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t}(Co||(Co={}));var Ln=function(e){function t(n,r,i,o){var s=e.call(this,r.policies,o)||this;return s.id=n,s.parent=r,s.replay=i,s.group=o,i(s),s}return It(t,e),t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var s=r.data[o],a=i.lookup(o);a?s?s!==a&&Object.keys(s).forEach(function(c){ye(s[c],a[c])||r.group.dirty(o,c)}):(r.group.dirty(o,"__exists"),Object.keys(a).forEach(function(c){r.group.dirty(o,c)})):r.delete(o)}),i):i===this.parent?this:i.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 Re.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}(Co),_R=function(e){function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new yE(n.group.caching,n.group))||this}return It(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Ln);function CR(e,t,n){var r=e[n],i=t[n];return ye(r,i)?r:i}function To(e){return!!(e instanceof Co&&e.group.caching)}function DE(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var TR=function(){function e(t){var n=this;this.knownResults=new(vn?WeakMap:Map),this.config=oi(t,{addTypename:!1!==t.addTypename,canonizeResults:hE(t)}),this.canon=t.canon||new Of,this.executeSelectionSet=Ia(function(r){var i,o=r.context.canonizeResults,s=DE(r);s[3]=!o;var a=(i=n.executeSelectionSet).peek.apply(i,s);return a?o?b(b({},a),{result:n.canon.admit(a.result)}):a:(vE(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:DE,makeCacheKey:function(r,i,o,s){if(To(o.store))return o.store.makeCacheKey(r,ne(i)?i.__ref:i,o.varString,s)}}),this.executeSubSelectedArray=Ia(function(r){return vE(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var i=r.field,o=r.array,s=r.context;if(To(s.store))return s.store.makeCacheKey(i,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Of},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,o=void 0===i?"ROOT_QUERY":i,s=t.variables,a=t.returnPartialData,c=void 0===a||a,u=t.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;s=b(b({},gf(PD(r))),s);var p,d=Xr(o),h=this.executeSelectionSet({selectionSet:ho(r).selectionSet,objectOrReference:d,enclosingRef:d,context:b({store:n,query:r,policies:f,variables:s,varString:or(s),canonizeResults:l},mE(r,this.config.fragments))});if(h.missing&&(p=[new lE(IR(h.missing),h.missing,r,s)],!c))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,n,r,i){if(To(i.store)&&this.knownResults.get(t)===r){var o=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,s=t.context;if(ne(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var d,a=s.variables,c=s.policies,l=s.store.getFieldValue(i,"__typename"),f=[],h=new xn;function p(y,E){var C;return y.missing&&(d=h.merge(d,((C={})[E]=y.missing,C))),y.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var g=new Set(r.selections);g.forEach(function(y){var E,C;if(mo(y,a))if(Nn(y)){var _=c.readField({fieldName:y.name.value,field:y,variables:s.variables,from:i},s),P=On(y);void 0===_?Mf.added(y)||(d=h.merge(d,((E={})[P]="Can't find field '".concat(y.name.value,"' on ").concat(ne(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),E))):ge(_)?_=p(n.executeSubSelectedArray({field:y,array:_,enclosingRef:o,context:s}),P):y.selectionSet?null!=_&&(_=p(n.executeSelectionSet({selectionSet:y.selectionSet,objectOrReference:_,enclosingRef:ne(_)?_:o,context:s}),P)):s.canonizeResults&&(_=n.canon.pass(_)),void 0!==_&&f.push(((C={})[P]=_,C))}else{var z=ga(y,s.lookupFragment);if(!z&&y.kind===M.FRAGMENT_SPREAD)throw Ze(9,y.name.value);z&&c.fragmentMatches(z,l)&&z.selectionSet.selections.forEach(g.add,g)}});var m={result:Sf(f),missing:d},D=s.canonizeResults?this.canon.admit(m):td(m);return D.result&&this.knownResults.set(D.result,r),D},e.prototype.execSubSelectedArrayImpl=function(t){var a,n=this,r=t.field,i=t.array,o=t.enclosingRef,s=t.context,c=new xn;function u(l,f){var d;return l.missing&&(a=c.merge(a,((d={})[f]=l.missing,d))),l.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(l,f){return null===l?null:ge(l)?u(n.executeSubSelectedArray({field:r,array:l,enclosingRef:o,context:s}),f):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:l,enclosingRef:ne(l)?l:o,context:s}),f):(!1!==globalThis.__DEV__&&function MR(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){ue(i)&&(L(!ne(i),10,function wR(e,t){return ne(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}(s.store,r,l),l)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:a}},e}();function IR(e){try{JSON.stringify(e,function(t,n){if("string"==typeof n)throw n;return n})}catch(t){return t}}var bE=Object.create(null);function od(e){var t=JSON.stringify(e);return bE[t]||(bE[t]=Object.create(null))}function EE(e){var t=od(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(s,a){return r.readField(a,s)},o=r.keyObject=sd(e,function(s){var a=fi(r.storeObject,s,i);return void 0===a&&n!==r.storeObject&&Re.call(n,s[0])&&(a=fi(n,s,_E)),L(void 0!==a,4,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function wE(e){var t=od(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,s=r.fieldName,a=sd(e,function(u){var l=u[0],f=l.charAt(0);if("@"!==f)if("$"!==f){if(n)return fi(n,u)}else{var g=l.slice(1);if(o&&Re.call(o,g)){var v=u.slice(0);return v[0]=g,fi(o,v)}}else if(i&&Xt(i.directives)){var d=l.slice(1),h=i.directives.find(function(m){return m.name.value===d}),p=h&&ya(h,o);return p&&fi(p,u.slice(1))}}),c=JSON.stringify(a);return(n||"{}"!==c)&&(s+=":"+c),s})}function sd(e,t){var n=new xn;return SE(e).reduce(function(r,i){var o,s=t(i);if(void 0!==s){for(var a=i.length-1;a>=0;--a)(o={})[i[a]]=s,s=o;r=n.merge(r,s)}return r},Object.create(null))}function SE(e){var t=od(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){ge(i)?(SE(i).forEach(function(s){return n.push(r.concat(s))}),r.length=0):(r.push(i),ge(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function _E(e,t){return e[t]}function fi(e,t,n){return n=n||_E,CE(t.reduce(function r(i,o){return ge(i)?i.map(function(s){return r(s,o)}):i&&n(i,o)},e))}function CE(e){return ue(e)?ge(e)?e.map(CE):sd(Object.keys(e).sort(),function(t){return fi(e,t)}):e}function ad(e){return void 0!==e.args?e.args:e.field?ya(e.field,e.variables):null}hf.setStringify(or);var AR=function(){},TE=function(e,t){return t.fieldName},IE=function(e,t,n){return(0,n.mergeObjects)(e,t)},ME=function(e,t){return t},kR=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:fE},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,i=this,o=n&&(n.typename||(null===(r=n.storeObject)||void 0===r?void 0:r.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var c,s=n&&n.storeObject||t,a=b(b({},n),{typename:o,storeObject:s,readField:n&&n.readField||function(){var d=cd(arguments,s);return i.readField(d,{store:i.cache.data,variables:d.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l(b(b({},t),s),a);if(!ge(f)){c=f;break}l=EE(f)}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 i=t[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,c=Zt(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Re.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),o=n.keyFields,s=n.fields;function a(c,u){c.merge="function"==typeof u?u:!0===u?IE:!1===u?ME:c.merge}a(i,n.merge),i.keyFn=!1===o?AR:ge(o)?EE(o):"function"==typeof o?o:i.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 f=l.keyArgs,d=l.read,h=l.merge;u.keyFn=!1===f?TE:ge(f)?wE(f):"function"==typeof f?f:u.keyFn,"function"==typeof d&&(u.read=d),a(u,h)}u.read&&u.merge&&(u.keyFn=u.keyFn||TE)})},e.prototype.setRootTypename=function(t,n){void 0===n&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(L(!i||i===t,5,t),i&&delete this.rootIdsByTypename[i],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(i){n.getSupertypeSet(i,!0).add(r);var o=i.match(pE);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Re.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=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 i.add(u)})}})),i&&i.size&&i.forEach(function(s){var a=n.getTypePolicy(s),c=a.fields,u=Zt(a,["fields"]);Object.assign(r,u),Object.assign(r.fields,c)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(s){n.updateTypePolicy(t,s)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[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,i){var o=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=o.getSupertypeSet(p,!1);g&&g.size&&c.indexOf(g)<0&&c.push(g)},l=!(!r||!this.fuzzySubtypes.size),f=!1,d=0;d1?e[1]:t}:(s=b({},r),Re.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&L.warn(7,TD(Array.from(e))),void 0===s.variables&&(s.variables=n),s}function kE(e){return function(n,r){if(ge(n)||ge(r))throw Ze(8);if(ue(n)&&ue(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(ne(n)&&li(r))return e.merge(n.__ref,r),n;if(li(n)&&ne(r))return e.merge(n,r.__ref),r;if(li(n)&&li(r))return b(b({},n),r)}return r}}function ud(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:b(b({},e),{clientOnly:t,deferred:n})),i}var OR=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,i=n.query,o=n.result,s=n.dataId,a=n.variables,c=n.overwrite,u=fo(i),l=function SR(){return new xn}();a=b(b({},gf(u)),a);var f=b(b({store:t,written:Object.create(null),merge:function(h,p){return l.merge(h,p)},variables:a,varString:or(a)},mE(i,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!ne(d))throw Ze(11,o);return f.incomingById.forEach(function(h,p){var g=h.storeObject,v=h.mergeTree,m=h.fieldNodeSet,D=Xr(p);if(v&&v.map.size){var y=r.applyMerges(v,D,g,f);if(ne(y))return;g=y}if(!1!==globalThis.__DEV__&&!f.overwrite){var E=Object.create(null);m.forEach(function(P){P.selectionSet&&(E[P.name.value]=!0)}),Object.keys(g).forEach(function(P){(function(P){return!0===E[Rn(P)]})(P)&&!function(P){var z=v&&v.map.get(P);return Boolean(z&&z.info&&z.info.merge)}(P)&&function NR(e,t,n,r){var i=function(f){var d=r.getFieldValue(f,n);return"object"==typeof d&&d},o=i(e);if(o){var s=i(t);if(s&&!ne(o)&&!ye(o,s)&&!Object.keys(o).every(function(f){return void 0!==r.getFieldValue(s,f)})){var a=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Rn(n),u="".concat(a,".").concat(c);if(!PE.has(u)){PE.add(u);var l=[];!ge(o)&&!ge(s)&&[o,s].forEach(function(f){var d=r.getFieldValue(f,"__typename");"string"==typeof d&&!l.includes(d)&&l.push(d)}),!1!==globalThis.__DEV__&&L.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,o,s)}}}}(D,g,P,f.store)})}t.merge(p,g)}),t.retain(d.__ref),d},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,o=t.selectionSet,s=t.context,a=t.mergeTree,c=this.cache.policies,u=Object.create(null),l=r&&c.rootTypenamesById[r]||pf(i,o,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var f=function(){var y=cd(arguments,u,s.variables);if(ne(y.from)){var E=s.incomingById.get(y.from.__ref);if(E){var C=c.readField(b(b({},y),{from:E.storeObject}),s);if(void 0!==C)return C}}return c.readField(y,s)},d=new Set;this.flattenFields(o,i,s,l).forEach(function(y,E){var C,_=On(E),P=i[_];if(d.add(E),void 0!==P){var z=c.getStoreFieldName({typename:l,fieldName:E.name.value,field:E,variables:y.variables}),Ae=NE(a,z),ke=n.processFieldValue(P,E,E.selectionSet?ud(y,!1,!1):y,Ae),He=void 0;E.selectionSet&&(ne(ke)||li(ke))&&(He=f("__typename",ke));var Dn=c.getMergeFunction(l,E.name.value,He);Dn?Ae.info={field:E,typename:l,merge:Dn}:xE(a,z),u=y.merge(u,((C={})[z]=ke,C))}else!1!==globalThis.__DEV__&&!y.clientOnly&&!y.deferred&&!Mf.added(E)&&!c.getReadFunction(l,E.name.value)&&!1!==globalThis.__DEV__&&L.error(12,On(E),i)});try{var h=c.identify(i,{typename:l,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:u,readField:f}),g=h[1];r=r||h[0],g&&(u=s.merge(u,g))}catch(y){if(!r)throw y}if("string"==typeof r){var v=Xr(r),m=s.written[r]||(s.written[r]=[]);if(m.indexOf(o)>=0||(m.push(o),this.reader&&this.reader.isFresh(i,v,o,s)))return v;var D=s.incomingById.get(r);return D?(D.storeObject=s.merge(D.storeObject,u),D.mergeTree=ld(D.mergeTree,a),d.forEach(function(y){return D.fieldNodeSet.add(y)})):s.incomingById.set(r,{storeObject:u,mergeTree:Ra(a)?void 0:a,fieldNodeSet:d}),v}return u},e.prototype.processFieldValue=function(t,n,r,i){var o=this;return n.selectionSet&&null!==t?ge(t)?t.map(function(s,a){var c=o.processFieldValue(s,n,r,NE(i,a));return xE(i,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i}):!1!==globalThis.__DEV__?gb(t):t},e.prototype.flattenFields=function(t,n,r,i){void 0===i&&(i=pf(n,t,r.fragmentMap));var o=new Map,s=this.cache.policies,a=new Pn(!1);return function c(u,l){var f=a.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(d){if(mo(d,r.variables)){var h=l.clientOnly,p=l.deferred;if(!(h&&p)&&Xt(d.directives)&&d.directives.forEach(function(m){var D=m.name.value;if("client"===D&&(h=!0),"defer"===D){var y=ya(m,r.variables);(!y||!1!==y.if)&&(p=!0)}}),Nn(d)){var g=o.get(d);g&&(h=h&&g.clientOnly,p=p&&g.deferred),o.set(d,ud(r,h,p))}else{var v=ga(d,r.lookupFragment);if(!v&&d.kind===M.FRAGMENT_SPREAD)throw Ze(13,d.name.value);v&&s.fragmentMatches(v,i,n,r.variables)&&c(v.selectionSet,ud(r,h,p))}}}))}(t,r),o},e.prototype.applyMerges=function(t,n,r,i,o){var s,a=this;if(t.map.size&&!ne(r)){var c=ge(r)||!ne(n)&&!li(n)?void 0:n,u=r;c&&!o&&(o=[ne(c)?c.__ref:c]);var l,f=function(d,h){return ge(d)?"number"==typeof h?d[h]:void 0:i.store.getFieldValue(d,String(h))};t.map.forEach(function(d,h){var p=f(c,h),g=f(u,h);if(void 0!==g){o&&o.push(h);var v=a.applyMerges(d,p,g,i,o);v!==g&&(l=l||new Map).set(h,v),o&&L(o.pop()===h)}}),l&&(r=ge(u)?u.slice(0):b({},u),l.forEach(function(d,h){r[h]=d}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,o&&(s=i.store).getStorage.apply(s,o)):r},e}(),OE=[];function NE(e,t){var n=e.map;return n.has(t)||n.set(t,OE.pop()||{map:new Map}),n.get(t)}function ld(e,t){if(e===t||!t||Ra(t))return e;if(!e||Ra(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,o={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){o.map.set(c,ld(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,ld(t.map.get(a),e.map.get(a)))})}return o}function Ra(e){return!e||!(e.info||e.map.size)}function xE(e,t){var n=e.map,r=n.get(t);r&&Ra(r)&&(OE.push(r),n.delete(t))}var PE=new Set,xR=function(e){function t(n){void 0===n&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new hb(Mf),r.assumeImmutableResults=!0,r.makeVar=_F,r.txCount=0,r.config=function ER(e){return oi(dE,e)}(n),r.addTypename=!!r.config.addTypename,r.policies=new kR({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return It(t,e),t.prototype.init=function(){var n=this.data=new Co.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new OR(this,this.storeReader=new TR({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:hE(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=Ia(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(To(a))return a.makeCacheKey(s.query,s.callback,or({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,i=void 0!==r&&r;try{return this.storeReader.diffQueryAgainstStore(b(b({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof lE)return null;throw o}},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(Re.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 SF(e){bo(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&&jb(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){or.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},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(ne(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){!1!==globalThis.__DEV__&&L.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Re.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(),or.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),jb(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,i=n.update,o=n.optimistic,s=void 0===o||o,a=n.removeOptimistic,c=n.onWatchUpdated,l=function(d){var p=r.data,g=r.optimisticData;++r.txCount,d&&(r.data=r.optimisticData=d);try{return u=i(r)}finally{--r.txCount,r.data=p,r.optimisticData=g}},f=new Set;return c&&!this.txCount&&this.broadcastWatches(b(b({},n),{onWatchUpdated:function(d){return f.add(d),!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&&f.size?(this.broadcastWatches(b(b({},n),{onWatchUpdated:function(d,h){var p=c.call(this,d,h);return!1!==p&&f.delete(d),p}})),f.size&&f.forEach(function(d){return r.maybeBroadcastWatch.dirty(d)})):this.broadcastWatches(n),u},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||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(i){return r.maybeBroadcastWatch(i,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 i=n.lastDiff,o=this.diff(n);r&&(n.optimistic&&"string"==typeof r.optimistic&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&!1===r.onWatchUpdated.call(this,n,o,i))||(!i||!ye(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(vR);class La{}class fd{}class jt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let i;if(i="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(o=>o.toString()),i.length>0){const o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}})}: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 jt?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 jt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof jt?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 i=("a"===t.op?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===o.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)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class LR{encodeKey(t){return FE(t)}encodeValue(t){return FE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const jR=/%(\d[a-f0-9])/gi,VR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function FE(e){return encodeURIComponent(e).replace(jR,(t,n)=>VR[n]??t)}function Ba(e){return`${e}`}class Bn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new LR,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function BR(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+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],i=Array.isArray(r)?r.map(Ba):[Ba(r)];this.map.set(n,i)})):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 i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,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 Bn({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(Ba(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 i=r.indexOf(Ba(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class HR{constructor(){this.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()}}function RE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function LE(e){return typeof Blob<"u"&&e instanceof Blob}function BE(e){return typeof FormData<"u"&&e instanceof FormData}class Io{constructor(t,n,r,i){let o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function UR(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new jt),this.context||(this.context=new HR),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(d,t.setHeaders[d]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((f,d)=>f.set(d,t.setParams[d]),u)),new Io(n,r,o,{params:u,headers:c,context:l,reportProgress:a,responseType:i,withCredentials:s})}}var Me=(()=>((Me=Me||{})[Me.Sent=0]="Sent",Me[Me.UploadProgress=1]="UploadProgress",Me[Me.ResponseHeader=2]="ResponseHeader",Me[Me.DownloadProgress=3]="DownloadProgress",Me[Me.Response=4]="Response",Me[Me.User=5]="User",Me))();class dd{constructor(t,n=200,r="OK"){this.headers=t.headers||new jt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class hd extends dd{constructor(t={}){super(t),this.type=Me.ResponseHeader}clone(t={}){return new hd({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 ja extends dd{constructor(t={}){super(t),this.type=Me.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ja({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class jE extends dd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function pd(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}}let VE=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Io)o=n;else{let c,u;c=i.headers instanceof jt?i.headers:new jt(i.headers),i.params&&(u=i.params instanceof Bn?i.params:new Bn({fromObject:i.params})),o=new Io(n,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=function PR(...e){return gi(e,Bo(e))}(o).pipe(function FR(e,t){return le(t)?Lo(e,t,1):Lo(e,1)}(c=>this.handler.handle(c)));if(n instanceof Io||"events"===i.observe)return s;const a=s.pipe(function RR(e,t){return Hn((n,r)=>{let i=0;n.subscribe(mi(r,o=>e.call(t,o,i++)&&r.next(o)))})}(c=>c instanceof ja));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(tt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(tt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(tt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(tt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}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 Bn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,pd(i,r))}post(n,r,i={}){return this.request("POST",n,pd(i,r))}put(n,r,i={}){return this.request("PUT",n,pd(i,r))}}return e.\u0275fac=function(n){return new(n||e)(V(La))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function HE(e,t){return t(e)}function qR(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}const GR=new F("HTTP_INTERCEPTORS"),Mo=new F("HTTP_INTERCEPTOR_FNS");function WR(){let e=null;return(t,n)=>(null===e&&(e=(Di(GR,{optional:!0})??[]).reduceRight(qR,HE)),e(t,n))}let UE=(()=>{class e extends La{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set(this.injector.get(Mo)));this.chain=r.reduceRight((i,o)=>function zR(e,t,n){return(r,i)=>n.runInContext(()=>t(r,o=>e(o,i)))}(i,o,this.injector),HE)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(V(fd),V(Kn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const JR=/^\)\]\}',?\n/;let qE=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ve(r=>{const i=this.xhrFactory.build();if(i.open(n.method,n.urlWithParams),n.withCredentials&&(i.withCredentials=!0),n.headers.forEach((h,p)=>i.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&i.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();i.responseType="json"!==h?h:"text"}const o=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=i.statusText||"OK",p=new jt(i.getAllResponseHeaders()),g=function XR(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||n.url;return s=new hd({headers:p,status:i.status,statusText:h,url:g}),s},c=()=>{let{headers:h,status:p,statusText:g,url:v}=a(),m=null;204!==p&&(m=typeof i.response>"u"?i.responseText:i.response),0===p&&(p=m?200:0);let D=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof m){const y=m;m=m.replace(JR,"");try{m=""!==m?JSON.parse(m):null}catch(E){m=y,D&&(D=!1,m={error:E,text:m})}}D?(r.next(new ja({body:m,headers:h,status:p,statusText:g,url:v||void 0})),r.complete()):r.error(new jE({error:m,headers:h,status:p,statusText:g,url:v||void 0}))},u=h=>{const{url:p}=a(),g=new jE({error:h,status:i.status||0,statusText:i.statusText||"Unknown Error",url:p||void 0});r.error(g)};let l=!1;const f=h=>{l||(r.next(a()),l=!0);let p={type:Me.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&i.responseText&&(p.partialText=i.responseText),r.next(p)},d=h=>{let p={type:Me.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return i.addEventListener("load",c),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),n.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",d)),i.send(o),r.next({type:Me.Sent}),()=>{i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",c),i.removeEventListener("timeout",u),n.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(V(Xv))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const md=new F("XSRF_ENABLED"),zE=new F("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),GE=new F("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class WE{}let tL=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(V(Jt),V(pl),V(zE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function nL(e,t){const n=e.url.toLowerCase();if(!Di(md)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=Di(WE).getToken(),i=Di(GE);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var we=(()=>((we=we||{})[we.Interceptors=0]="Interceptors",we[we.LegacyInterceptors=1]="LegacyInterceptors",we[we.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",we[we.NoXsrfProtection=3]="NoXsrfProtection",we[we.JsonpSupport=4]="JsonpSupport",we[we.RequestsMadeViaParent=5]="RequestsMadeViaParent",we))();function di(e,t){return{\u0275kind:e,\u0275providers:t}}function rL(...e){const t=[VE,qE,UE,{provide:La,useExisting:UE},{provide:fd,useExisting:qE},{provide:Mo,useValue:nL,multi:!0},{provide:md,useValue:!0},{provide:WE,useClass:tL}];for(const n of e)t.push(...n.\u0275providers);return function L_(e){return{\u0275providers:e}}(t)}const QE=new F("LEGACY_INTERCEPTOR_FN");let oL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e}),e.\u0275inj=tn({providers:[rL(di(we.LegacyInterceptors,[{provide:QE,useFactory:WR},{provide:Mo,useExisting:QE,multi:!0}]))]}),e})();class sL extends ei{constructor(t,n){super(),this.httpClient=t,this.options=n,this.print=KD,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new ce(i=>{const o=r.getContext(),s=(D,y)=>function ar(...e){const t=e.find(n=>typeof n<"u");return typeof t>"u"?e[e.length-1]:t}(o[D],this.options[D],y);let a=s("method","POST");const c=s("includeQuery",!0),u=s("includeExtensions",!1),l=s("uri","graphql"),f=s("withCredentials"),d=s("useMultipart"),h=!0===this.options.useGETForQueries,p=r.query.definitions.some(D=>"OperationDefinition"===D.kind&&"query"===D.operation);h&&p&&(a="GET");const g={method:a,url:"function"==typeof l?l(r):l,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:f,useMultipart:d,headers:this.options.headers}};u&&(g.body.extensions=r.extensions),c&&(g.body.query=this.print(r.query));const v=function JE(e){let t=e.headers&&e.headers instanceof jt?e.headers:new jt(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}(o);g.options.headers=((e,t)=>e&&t?t.keys().reduce((r,i)=>r.set(i,t.getAll(i)),e):t||e)(g.options.headers,v);const m=((e,t,n)=>{const r=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),o=e.body.length;let a,s=e.options&&e.options.useMultipart;if(s){if(o)return new ve(u=>u.error(new Error("File upload is not available when combined with Batching")));if(!r)return new ve(u=>u.error(new Error("File upload is not available when GET is used")));if(!n)return new ve(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(o){if(!r)return new ve(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((f,d)=>{const h=e.body[d];return f[d]=-1!==["variables","extensions"].indexOf(d.toLowerCase())?JSON.stringify(h):h,f},{})};if(s&&r){const u=new FormData;u.append("operations",JSON.stringify(c.body));const l={},f=a.files;let d=0;f.forEach(h=>{l[++d]=h}),u.append("map",JSON.stringify(l)),d=0,f.forEach((h,p)=>{u.append(++d+"",p,p.name)}),c.body=u}return t.request(e.method,e.url,{observe:"response",responseType:"json",reportProgress:!1,...c,...e.options})})(g,this.httpClient,this.options.extractFiles).subscribe({next:D=>{r.setContext({response:D}),i.next(D.body)},error:D=>i.error(D),complete:()=>i.complete()});return()=>{m.closed||m.unsubscribe()}})}request(t){return this.requester(t)}}let aL=(()=>{class e{constructor(n){this.httpClient=n}create(n){return new sL(this.httpClient,n)}}return e.\u0275fac=function(n){return new(n||e)(V(VE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e}),e.\u0275inj=tn({providers:[{provide:sE,useFactory:t=>{const n=new xR;return{link:t.create({uri:"https://graphqlpokemon.favware.tech/v7"}),cache:n,defaultOptions:{query:{fetchPolicy:"network-only",errorPolicy:"all"}}}},deps:[aL]}],imports:[gR]}),e})();class Ao extends Ro{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)}}let gt=(()=>{class e{constructor(){this.raidTierSource=new Ao(""),this.pokemonListSource=new Ao(""),this.teraTypeSource=new Ao(""),this.moveListSource=new Ao(""),this.loadingSource=new Ao(!1),this.raidTier=this.raidTierSource.asObservable(),this.pokemonList=this.pokemonListSource.asObservable(),this.teraType=this.teraTypeSource.asObservable(),this.moveList=this.moveListSource.asObservable(),this.loading=this.loadingSource.asObservable()}changeRaidTier(n){this.raidTierSource.next(n)}changePokemon(n){this.pokemonListSource.next(n)}changeTeraType(n){this.teraTypeSource.next(n)}changeMoveList(n){this.moveListSource.next(n)}changeLoading(n){this.loadingSource.next(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const uL=uE` - query GetPokemon($pokemon: PokemonEnum!) { - getPokemon(pokemon: $pokemon) { - abilities { - first { - name - key - desc - shortDesc - } - second { - name - key - desc - shortDesc - } - hidden { - name - key - desc - shortDesc - } - } - key - num - types { - name - } - baseStats { - hp - attack - defense - specialattack - specialdefense - speed - } - learnsets { - generation8 { - dreamworldMoves { - ...LearnsetMoveFragment - } - eggMoves { - ...LearnsetMoveFragment - } - eventMoves { - ...LearnsetMoveFragment - } - tmMoves { - ...LearnsetMoveFragment - } - tutorMoves { - ...LearnsetMoveFragment - } - virtualTransferMoves { - ...LearnsetMoveFragment - } - levelUpMoves { - generation - move { - ...MoveFragment - } - } - } - } - } - } - - fragment MoveFragment on Move { - key - accuracy - basePower - category - desc - name - pp - priority - shortDesc - target - type - } - fragment LearnsetMoveFragment on LearnsetMove { - generation - move { - ...MoveFragment - } - } -`,lL=uE` - query getMove($move: MovesEnum!) { - getMove(move: $move) { - key - name - shortDesc - type - basePower - pp - category - accuracy - priority - target - desc - } - } -`;let cr=(()=>{class e{constructor(n){this.apollo=n}getAbilities(){return this.pokemon.pipe(tt(n=>n.getPokemon.abilities))}getDexNumber(){return this.pokemon.pipe(tt(n=>n.getPokemon.num))}getMove(n){return this.apollo.query({query:lL,variables:{move:n}}).pipe(tt(r=>r.data))}getMoves(){return this.pokemon.pipe(tt(n=>n.getPokemon.learnsets))}getPokemon(n){return this.pokemon=this.apollo.query({query:uL,variables:{pokemon:n}}).pipe(tt(r=>r.data)),this.pokemon}getStats(){return this.pokemon.pipe(tt(n=>n.getPokemon.baseStats))}getTypes(){return this.pokemon.pipe(tt(n=>n.getPokemon.types))}}return e.\u0275fac=function(n){return new(n||e)(V(cE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Se=(()=>(function(e){e.Bug="Bug",e.Dark="Dark",e.Dragon="Dragon",e.Electric="Electric",e.Fairy="Fairy",e.Fighting="Fighting",e.Fire="Fire",e.Flying="Flying",e.Ghost="Ghost",e.Grass="Grass",e.Ground="Ground",e.Ice="Ice",e.Normal="Normal",e.Poison="Poison",e.Psychic="Psychic",e.Rock="Rock",e.Steel="Steel",e.Water="Water"}(Se||(Se={})),Se))();const gd=[{name:Se.Bug,matchup:{offense:{double:["dark","grass","psychic"],immune:[],normal:["bug","dragon","electric","ground","ice","normal","rock","water"],resisted:["fairy","fighting","fire","flying","ghost","poison","steel"]},defense:{double:["fire","flying","rock"],immune:[],normal:["bug","dark","dragon","electric","fairy","ghost","ice","normal","poison","psychic","steel","water"],resisted:["fighting","grass","ground"]}}},{name:Se.Dark,matchup:{offense:{double:["ghost","psychic"],immune:[],normal:["bug","dragon","electric","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["dark","fairy","fighting"]},defense:{double:["bug","fairy","fighting"],immune:["psychic"],normal:["dragon","electric","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["dark","ghost"]}}},{name:Se.Dragon,matchup:{offense:{double:["dragon"],immune:["fairy"],normal:["bug","dark","electric","fighting","fire","flying","ghost","grass","ground","ice","normal","poison","psychic","rock","water"],resisted:["steel"]},defense:{double:["dragon","fairy","ice"],immune:[],normal:["bug","dark","fighting","flying","ghost","ground","normal","poison","psychic","rock","steel"],resisted:["electric","fire","grass","water"]}}},{name:Se.Electric,matchup:{offense:{double:["flying","water"],immune:["ground"],normal:["bug","dark","fairy","fighting","fire","ghost","ice","normal","poison","psychic","rock","steel"],resisted:["dragon","electric","grass"]},defense:{double:["ground"],immune:[],normal:["bug","dark","dragon","fairy","fighting","fire","ghost","grass","ice","normal","poison","psychic","rock","water"],resisted:["electric","flying","steel"]}}},{name:Se.Fairy,matchup:{offense:{double:["dark","dragon","fighting"],immune:[],normal:["bug","electric","fairy","flying","ghost","grass","ground","ice","normal","psychic","rock","water"],resisted:["fire","poison","steel"]},defense:{double:["poison","steel"],immune:["dragon"],normal:["electric","fairy","fire","flying","ghost","grass","ground","ice","normal","psychic","rock","water"],resisted:["bug","dark","fighting"]}}},{name:Se.Fighting,matchup:{offense:{double:["dark","ice","normal","rock","steel"],immune:["ghost"],normal:["dragon","electric","fighting","fire","grass","ground","water"],resisted:["bug","fairy","flying","poison","psychic"]},defense:{double:["fairy","flying","psychic"],immune:[],normal:["dragon","electric","fighting","fire","ghost","grass","ground","ice","normal","poison","steel","water"],resisted:["bug","dark","rock"]}}},{name:Se.Fire,matchup:{offense:{double:["bug","grass","ice","steel"],immune:[],normal:["dark","electric","fairy","fighting","flying","ghost","ground","normal","poison","psychic"],resisted:["dragon","fire","rock","water"]},defense:{double:["ground","rock","water"],immune:[],normal:["dark","dragon","electric","fighting","flying","ghost","normal","poison","psychic"],resisted:["bug","fairy","fire","grass","ice","steel"]}}},{name:Se.Flying,matchup:{offense:{double:["bug","fighting","grass"],immune:[],normal:["dark","dragon","fairy","fire","flying","ghost","ground","ice","normal","poison","psychic","water"],resisted:["electric","rock","steel"]},defense:{double:["electric","ice","rock"],immune:["ground"],normal:["dark","dragon","fairy","fire","flying","ghost","normal","poison","psychic","steel","water"],resisted:["bug","fighting","grass"]}}},{name:Se.Ghost,matchup:{offense:{double:["ghost","psychic"],immune:["normal"],normal:["bug","dragon","electric","fairy","fighting","fire","flying","grass","ground","ice","poison","rock","steel","water"],resisted:["dark"]},defense:{double:["dark","ghost"],immune:["fighting","normal"],normal:["dragon","electric","fairy","fire","flying","grass","ground","ice","psychic","rock","steel","water"],resisted:["bug","poison"]}}},{name:Se.Grass,matchup:{offense:{double:["ground","rock","water"],immune:[],normal:["dark","electric","fairy","fighting","ghost","ice","normal","psychic"],resisted:["bug","dragon","fire","flying","grass","poison","steel"]},defense:{double:["bug","fire","flying","ice","poison"],immune:[],normal:["dark","dragon","fairy","fighting","ghost","normal","psychic","rock","steel"],resisted:["electric","grass","ground","water"]}}},{name:Se.Ground,matchup:{offense:{double:["electric","fire","poison","rock","steel"],immune:["flying"],normal:["dark","dragon","fairy","fighting","ghost","ground","ice","normal","psychic","water"],resisted:["bug","grass"]},defense:{double:["grass","ice","water"],immune:["electric"],normal:["bug","dark","dragon","fairy","fighting","fire","flying","ghost","ground","normal","psychic","steel"],resisted:["poison","rock"]}}},{name:Se.Ice,matchup:{offense:{double:["dragon","flying","grass","ground"],immune:[],normal:["bug","dark","electric","fairy","fighting","ghost","normal","poison","psychic","rock"],resisted:["fire","ice","steel","water"]},defense:{double:["fighting","fire","rock","steel"],immune:[],normal:["bug","dark","dragon","electric","fairy","flying","ghost","grass","ground","normal","poison","psychic","water"],resisted:["ice"]}}},{name:Se.Normal,matchup:{offense:{double:[],immune:["ghost"],normal:["bug","dark","dragon","electric","fairy","fighting","fire","flying","grass","ground","ice","normal","poison","psychic","water"],resisted:["rock","steel"]},defense:{double:["fighting"],immune:["ghost"],normal:["bug","dark","dragon","electric","fairy","fire","flying","grass","ground","ice","normal","poison","psychic","rock","steel","water"],resisted:[]}}},{name:Se.Poison,matchup:{offense:{double:["fairy","grass"],immune:["steel"],normal:["bug","dark","dragon","electric","fighting","fire","flying","ice","normal","psychic","water"],resisted:["ghost","ground","poison","rock"]},defense:{double:["ground","psychic"],immune:[],normal:["dark","dragon","electric","fire","flying","ghost","ice","normal","rock","steel","water"],resisted:["bug","fairy","fighting","grass","poison"]}}},{name:Se.Psychic,matchup:{offense:{double:["fighting","poison"],immune:["dark"],normal:["bug","dragon","electric","fairy","fire","flying","ghost","grass","ground","ice","normal","rock","water"],resisted:["psychic","steel"]},defense:{double:["bug","dark","ghost"],immune:[],normal:["dragon","electric","fairy","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["fighting","psychic"]}}},{name:Se.Rock,matchup:{offense:{double:["bug","fire","flying","ice"],immune:[],normal:["dark","dragon","electric","fairy","ghost","grass","normal","poison","psychic","rock","water"],resisted:["fighting","ground","steel"]},defense:{double:["fighting","grass","ground","steel","water"],immune:[],normal:["bug","dark","dragon","electric","fairy","ghost","ice","psychic","rock"],resisted:["fire","flying","normal","poison"]}}},{name:Se.Steel,matchup:{offense:{double:["fairy","ice","rock"],immune:[],normal:["bug","dark","dragon","fighting","flying","ghost","grass","ground","normal","poison","psychic"],resisted:["electric","fire","steel","water"]},defense:{double:["fighting","fire","ground"],immune:["poison"],normal:["dark","electric","ghost","water"],resisted:["bug","dragon","fairy","flying","grass","ice","normal","psychic","rock","steel"]}}},{name:Se.Water,matchup:{offense:{double:["fire","ground","rock"],immune:[],normal:["bug","dark","electric","fairy","fighting","flying","ghost","ice","normal","poison","psychic","steel"],resisted:["dragon","grass","water"]},defense:{double:["electric","grass"],immune:[],normal:["bug","dark","dragon","fairy","fighting","flying","ghost","ground","normal","poison","psychic","rock"],resisted:["fire","ice","steel","water"]}}}];let yd=(()=>{class e{advantages(n,r=!1){const i=[];return gd.filter(o=>o.name.includes(n)).forEach(o=>{const s=o.matchup.offense;s.double.forEach(a=>{i.push({name:a,multiplier:2})}),r&&(s.resisted.forEach(a=>{i.push({name:a,multiplier:.5})}),s.immune.forEach(a=>{i.push({name:a,multiplier:0})}))}),i}weaknesses(n){const r=[];return gd.filter(i=>i.name.includes(n)).forEach(i=>{const o=i.matchup.defense;o.double.forEach(s=>{r.push({name:s,multiplier:2})}),o.resisted.forEach(s=>{r.push({name:s,multiplier:.5})}),o.immune.forEach(s=>{r.push({name:s,multiplier:0})})}),r}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ha(e){return e.toLowerCase().replace(/\w/,t=>t.toUpperCase())}function ur(e){(e?[e]:["pokemonTypes","pokemonImageNormal","pokemonImageShiny","pokemonAbility","pokemonStatsWrapper","pokemonMoves","pokemonHerbs","pokemonTypeAdvantages","pokemonTeraWeaknesses","pokemonTeraAdvantages"]).forEach(n=>{document.getElementById(n).innerHTML=""})}function et(e,t){e.innerHTML+=t}function vd(e){return`
${Ha(e.name)} - ${e.multiplier}x
`}function XE(e,t,n){return String(e).padStart(t,n)}let fL=(()=>{class e{constructor(n){this.stateService=n}valueChanged(){const n=document.getElementById("raidTier");this.stateService.changeRaidTier(n.options[n.selectedIndex].value)}}return e.\u0275fac=function(n){return new(n||e)(k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-raid-tier"]],decls:7,vars:0,consts:[["id","raidTier",3,"change"],["value",""],["value","5"],["value","6"]],template:function(n,r){1&n&&(pe(0,"select",0),qr("change",function(){return r.valueChanged()}),pe(1,"option",1),We(2,"-- Tier --"),Ne(),pe(3,"option",2),We(4,"5 Star"),Ne(),pe(5,"option",3),We(6,"6 Star"),Ne()())},encapsulation:2}),e})();const Ua=[{name:"Raichu",info:{moves:["Discharge","Iron Tail","Charm","Nuzzle","Electric Terrain","Thunder Wave"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Arcanine",info:{moves:["Flamethrower","Crunch","Extreme Speed","Fire Fang","Sunny Day","Leer"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slowbro",info:{moves:["Zen Headbutt","Liquidation","Yawn","Water Pulse","Curse"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Cloyster",info:{moves:["Icicle Spear","Hydro Pump","Ice Shard","Supersonic","Shell Smash"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Gengar",info:{moves:["Shadow Ball","Sludge Bomb","Confuse Ray","Spite","Hypnosis"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Scyther",info:{moves:["Aerial Ace","X-Scissor","Slash","Agility","Focus Energy","Swords Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tauros (Fire)",formName:"taurospaldeafire",imageAlt:"-b",info:{moves:["Flare Blitz","Close Combat","Flamethrower","Headbutt","Work Up","Sunny Day"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tauros (Water)",formName:"taurospaldeawater",imageAlt:"-a",info:{moves:["Wave Crash","Close Combat","Surf","Headbutt","Work Up","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Gyarados",info:{moves:["Aqua Tail","Twister","Hurricane","Crunch","Scary Face","Taunt","Dragon Dance","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Ditto",info:{moves:["Transform"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Eevee",info:{moves:["Tera Blast","Take Down","Shadow Ball","Tickle","Yawn","Calm Mind"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Dragonite",info:{moves:["Dragon Rush","Aerial Ace","Extreme Speed","Hurricane","Safeguard","Dragon Dance","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slowking",info:{moves:["Psychic","Surf","Yawn","Water Pulse","Psychic Terrain","Calm Mind"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Scizor",info:{moves:["Iron Head","X-Scissor","Bullet Punch","Slash","Iron Defense","Focus Energy"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Delibird",info:{moves:["Present","Drill Peck","Ice Punch","Blizzard","Snowscape"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Houndoom",info:{moves:["Flamethrower","Crunch","Taunt","Will-O-Wisp","Sunny Day","Howl"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Blissey",info:{moves:["Dazzling Gleam","Hyper Voice","Sing"],specialMoves:["Seismic Toss","Gravity"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Tyranitar",info:{moves:["Rock Slide","Crunch","Screech","Dark Pulse","Dragon Dance","Sandstorm"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Gardevoir",info:{moves:["Psychic","Moonblast","Draining Kiss","Misty Terrain","Calm Mind","Psychic Terrain"],specialMoves:["Disable"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Breloom",info:{moves:["Seed Bomb","Mach Punch","Worry Seed","Headbutt","Grassy Terrain"],specialMoves:["Spore"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slaking",info:{moves:["Facade","Shadow Claw","Play Rough","Swagger","Encore"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hariyama",info:{moves:["Reversal","Brick Break","Brine","Heavy Slam","Scary Face","Taunt","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Sableye",info:{moves:["Shadow Claw","Foul Play","Will-O-Wisp","Night Shade","Flatter","Torment"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Camerupt",info:{moves:["Flamethrower","Earth Power","Yawn","Eruption","Sunny Day"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Altaria",info:{moves:["Dragon Pulse","Hurricane","Sing","Mist","Safeguard"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Glalie",info:{moves:["Freeze-Dry","Crunch","Headbutt","Frost Breath","Snowscape"],specialMoves:["Disable"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Salamence",info:{moves:["Aerial Ace","Hyper Voice","Draco Meteor","Dragon Dance","Focus Energy"],specialMoves:["Dragon Rush"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Staraptor",info:{moves:["Close Combat","Brave Bird","Quick Attack"],specialMoves:["Double-Edge"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Luxray",info:{moves:["Crunch","Wild Charge","Discharge","Thunder Wave","Electric Terrain","Leer"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Drifblim",info:{moves:["Hex","Air Slash","Thunder Wave","Shadow Ball","Will-O-Wisp"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Mismagius",info:{moves:["Mystical Fire","Shadow Ball","Confuse Ray","Taunt","Nasty Plot"],specialMoves:["Light Screen"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Honchkrow",info:{moves:["Night Slash","Hurricane","Haze","Wing Attack","Nasty Plot"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Bronzong",info:{moves:["Flash Cannon","Extrasensory","Metal Sound","Payback","Rain Dance","Calm Mind","Reflect"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Garchomp",info:{moves:["Earthquake","Dragon Claw","Iron Head","Slash","Sandstorm","Bulldoze"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hippowdon",info:{moves:["Earthquake","Yawn","Rock Slide","Body Slam"],specialMoves:["Stockpile"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Abomasnow",info:{moves:["Energy Ball","Ice Punch","Ice Shard","Leer","Blizzard","Snowscape","Aurora Veil"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Weavile",info:{moves:["Ice Punch","Night Slash","Taunt","Facade","Swords Dance"],specialMoves:["Reflect"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Magnezone",info:{moves:["Thunderbolt","Flash Cannon","Tri Attack","Thunder Wave","Magnet Rise","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Gallade",info:{moves:["Psycho Cut","Brick Break","Fury Cutter","Hypnosis","Psychic Terrain"],specialMoves:["Disable","Shadow Sneak"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Froslass",info:{moves:["Frost Breath","Shadow Ball","Scary Face","Draining Kiss","Snowscape","Aurora Veil"],specialMoves:["Disable"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Rotom",info:{moves:["Discharge","Uproar","Hex","Thunder Wave","Charge","Eerie Impulse"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Krookodile",info:{moves:["Earthquake","Crunch","Sand Tomb","Torment","Hone Claws"],specialMoves:["Counter"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Zoroark",info:{moves:["Night Daze","Shadow Claw","Taunt","Hyper Voice","Torment","Nasty Plot"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Gothitelle",info:{moves:["Psychic","Thunder Wave","Thunderbolt","Stored Power","Calm Mind","Light Screen"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Amoonguss",info:{moves:["Energy Ball","Sludge Bomb","Spore","Clear Smog","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Eelektross",info:{moves:["Wild Charge","Flamethrower","Discharge","Crush Claw","Thunder Wave","Coil"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Haxorus",info:{moves:["Dragon Claw","Crunch","Giga Impact","Dragon Dance"],specialMoves:["Harden","First Impression"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Braviary",info:{moves:["Acrobatics","Crush Claw","Superpower","Air Slash","Tailwind","Hone Claws"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hydreigon",info:{moves:["Dark Pulse","Dragon Pulse","Scary Face","Dragon Rush","Taunt","Reflect","Nasty Plot"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Volcarona",info:{moves:["Fire Blast","Bug Buzz","Hurricane","Will-O-Wisp","Sunny Day","Quiver Dance"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Talonflame",info:{moves:["Acrobatics","Flare Blitz","Steel Wing","Heat Wave","Bulk Up"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Florges",info:{moves:["Petal Dance","Moonblast","Psychic","Safeguard","Grassy Terrain","Calm Mind"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Dragalge",info:{moves:["Dragon Pulse","Sludge Bomb","Water Pulse","Toxic","Acid Spray","Draco Meteor"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Clawitzer",info:{moves:["Water Pulse","Dragon Pulse","Aura Sphere","Crabhammer","Rain Dance"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Goodra",info:{moves:["Water Pulse","Dragon Pulse","Sludge Bomb","Power Whip","Rain Dance","Draco Meteor"],specialMoves:["Acid Armor"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Avalugg",info:{moves:["Icicle Crash","Double-Edge","Crunch","Ice Fang","Snowscape","Iron Defense"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Noivern",info:{moves:["Air Slash","Dragon Pulse","Acrobatics","Boomburst","Tailwind"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Mudsdale",info:{moves:["High Horsepower","Body Press","Rock Smash","Heavy Slam","Scary Face","Iron Defense"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tsareena",info:{moves:["High Jump Kick","Power Whip","Stomp","Trop Kick","Reflect","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Oranguru",info:{moves:["Facade","Psychic","Stored Power","Yawn","Calm Mind","Light Screen"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Passimian",info:{moves:["Reversal","Rock Smash","Facade","Gunk Shot","Taunt","Trailblaze","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Mimikyu",info:{moves:["Play Rough","Shadow Claw","Will-O-Wisp","Shadow Sneak","Light Screen","Taunt"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Greedent",info:{moves:["Body Slam","Body Press","Bullet Seed","Tail Whip","Stockpile"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Corviknight",info:{moves:["Steel Wing","Drill Peck","Taunt","Body Press","Iron Defense","Hone Claws"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Coalossal",info:{moves:["Heat Crash","Stone Edge","Incinerate","Ancient Power","Sandstorm","Tar Shot","Fire Blast"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Flapple",info:{moves:["Grav Apple","Dragon Breath","Dragon Rush","Trailblaze","Grassy Terrain","Iron Defense","Dragon Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Appletun",info:{moves:["Apple Acid","Dragon Pulse","Giga Drain","Body Press","Growth"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Toxtricity (Amped)",formName:"toxtricity",info:{moves:["Overdrive","Poison Jab","Nuzzle","Boomburst","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Toxtricity (Low Key)",formName:"toxtricity",imageAlt:"-l",info:{moves:["Overdrive","Poison Jab","Nuzzle","Boomburst","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Polteageist",info:{moves:["Shadow Ball","Mega Drain","Astonish","Will-O-Wisp","Shell Smash"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Hatterene",info:{moves:["Dazzling Gleam","Psychic","Dark Pulse","Charm","Misty Terrain","Calm Mind","Psychic Terrain"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Grimmsnarl",info:{moves:["Spirit Break","False Surrender","Scary Face","Foul Play","Light Screen","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Falinks",info:{moves:["Megahorn","Reversal","Headbutt","Brick Break","No Retreat"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Pincurchin",info:{moves:["Zing Zap","Thunder","Surf","Poison Jab","Rain Dance","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Indeedee (Male)",formName:"indeedee",info:{moves:["Psychic","Hyper Voice","Shadow Ball","Trick Room","Play Nice","Calm Mind"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Indeedee (Female)",formName:"indeedee",imageAlt:"-f",info:{moves:["Psychic","Hyper Voice","Shadow Ball","Trick Room","Play Nice","Calm Mind"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Copperajah",info:{moves:["Heavy Slam","Strength","High Horsepower","Sandstorm","Iron Defense"],specialMoves:["Curse"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Dragapult",info:{moves:["Shadow Ball","Dragon Darts","Thunderbolt","Hex","Reflect","Light Screen"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Pawmot",info:{moves:["Wild Charge","Close Combat","Nuzzle","Double Shock"],specialMoves:["Sweet Kiss"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Arboliva",info:{moves:["Energy Ball","Hyper Voice","Earth Power","Charm","Sunny Day","Growth","Leaf Storm"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Garganacl",info:{moves:["Salt Cure","Rock Slide","Hammer Arm","Sandstorm"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Armarouge",info:{moves:["Armor Cannon","Psychic","Night Shade","Will-O-Wisp","Sunny Day","Calm Mind"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Ceruledge",info:{moves:["Bitter Blade","Shadow Claw","Psycho Cut","Will-O-Wisp","Sunny Day","Swords Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Mabosstiff",info:{moves:["Crunch","Play Rough","Take Down","Swagger","Taunt"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Brambleghast",info:{moves:["Giga Drain","Shadow Ball","Power Whip","Infestation","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tinkaton",info:{moves:["Gigaton Hammer","Play Rough","Brutal Swing","Rock Smash","Thunder Wave"],specialMoves:["Charm","Misty Terrain"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Bombirdier",info:{moves:["Rock Slide","Sucker Punch","Brave Bird","Torment","Knock Off","Feather Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Palafin",info:{moves:["Liquidation","Acrobatics","Charm","Rain Dance","Bulk Up"],specialMoves:["Boomburst"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Revavroom",info:{moves:["Spin Out","Taunt","Gunk Shot","Overheat","Scary Face","Shift Gear"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Orthworm",info:{moves:["Iron Head","Earthquake","Stomping Tantrum","Wrap","Sandstorm","Coil"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Glimmora",info:{moves:["Power Gem","Sludge Bomb","Mortal Spin","Ancient Power","Sandstorm","Tera Blast"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Cetitan",info:{moves:["Ice Spinner","Liquidation","Snowscape"],specialMoves:["Yawn","Entrainment"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Dondozo",info:{moves:["Order Up","Waterfall","Heavy Slam","Tickle","Rain Dance"],specialMoves:["Stockpile"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Tatsugiri (Curly)",formName:"tatsugiri",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Tatsugiri (Droopy)",formName:"tatsugiri",imageAlt:"-d",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Tatsugiri (Stretchy)",formName:"tatsugiri",imageAlt:"-s",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Annihilape",info:{moves:["Shadow Claw","Close Combat","Outrage","Leer","Taunt","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Kingambit",info:{moves:["Iron Head","Night Slash","Torment","Slash","Taunt","Metal Burst"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Baxcalibur",info:{moves:["Dragon Claw","Icicle Crash","Ice Shard","Body Press","Snowscape"],herbs:[{name:"Spicy",chance:10.87}]}}],$a=[{name:"Gengar",info:{moves:["Shadow Ball","Sludge Bomb","Dazzling Gleam","Will-O-Wisp","Hypnosis"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Tauros",formName:"taurospaldea",imageAlt:"-p",info:{moves:["Close Combat","Thrash","Zen Headbutt","Raging Bull","Bulk Up"],specialMoves:["Screech"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Tauros (Fire)",formName:"taurospaldeafire",imageAlt:"-b",info:{moves:["Flare Blitz","Close Combat","Flamethrower","Headbutt","Sunny Day","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Tauros (Water)",formName:"taurospaldeawater",imageAlt:"-a",info:{moves:["Wave Crash","Close Combat","Surf","Headbutt","Rain Dance","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Gyarados",info:{moves:["Aqua Tail","Crunch","Hurricane","Ice Fang","Taunt","Dragon Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Ditto",info:{moves:["Transform"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Vaporeon",info:{moves:["Tera Blast","Surf","Hyper Voice","Rain Dance","Calm Mind"],specialMoves:["Yawn"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Jolteon",info:{moves:["Tera Blast","Thunderbolt","Shadow Ball","Thunder Wave","Electric Terrain","Calm Mind"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Flareon",info:{moves:["Tera Blast","Flare Blitz","Lava Plume","Will-O-Wisp","Sunny Day"],specialMoves:["Curse"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Dragonite",info:{moves:["Dragon Rush","Extreme Speed","Dragon Dance","Aqua Tail","Light Screen"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Espeon",info:{moves:["Tera Blast","Psychic","Psyshock","Psychic Terrain","Calm Mind"],specialMoves:["Tickle"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Umbreon",info:{moves:["Tera Blast","Dark Pulse","Foul Play","Calm Mind"],specialMoves:["Curse","Tickle"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Slowking",info:{moves:["Surf","Psyshock","Trick Room","Flamethrower","Light Screen","Rain Dance","Calm Mind"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Scizor",info:{moves:["X-Scissor","Bullet Punch","Close Combat","Iron Head","Iron Defense","Focus Energy"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Heracross",info:{moves:["Megahorn","Close Combat","Thrash","Leer","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Blissey",info:{moves:["Dazzling Gleam","Hyper Voice","Sing","Light Screen","Defense Curl"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Tyranitar",info:{moves:["Stone Edge","Crunch","Screech","Rock Blast","Iron Defense"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Pelipper",info:{moves:["Hurricane","Hydro Pump","Mist","Supersonic","Rain Dance","Agility"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Gardevoir",info:{moves:["Moonblast","Psychic","Calm Mind","Thunder Wave","Misty Terrain","Psychic Terrain"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Breloom",info:{moves:["Bullet Seed","Low Sweep","Aerial Ace","Grassy Terrain"],specialMoves:["Spore"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Torkoal",info:{moves:["Lava Plume","Yawn","Clear Smog","Body Slam","Sunny Day","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Salamence",info:{moves:["Outrage","Dual Wingbeat","Flamethrower","Tera Blast","Dragon Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Staraptor",info:{moves:["Close Combat","Brave Bird"],specialMoves:["Double-Edge","Feather Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Garchomp",info:{moves:["Outrage","Earthquake","Flamethrower","Rock Slide","Swords Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Hippowdon",info:{moves:["Earthquake","Ice Fang","Yawn","Rock Slide"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Magnezone",info:{moves:["Thunder","Flash Cannon","Tri Attack","Thunder Wave","Rain Dance","Iron Defense","Electric Terrain"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Leafeon",info:{moves:["Tera Blast","Leaf Blade","Charm","Sunny Day","Swords Dance"],specialMoves:["Double Kick"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Glaceon",info:{moves:["Tera Blast","Ice Beam","Blizzard","Charm","Snowscape","Calm Mind"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Gallade",info:{moves:["Psycho Cut","Close Combat","Will-O-Wisp","Aerial Ace","Hypnosis","Psychic Terrain"],specialMoves:["Disable"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Amoonguss",info:{moves:["Energy Ball","Foul Play","Spore","Sludge Bomb","Grassy Terrain"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Haxorus",info:{moves:["Outrage","Crunch","Giga Impact","Dragon Dance"],specialMoves:["First Impression"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Hydreigon",info:{moves:["Dark Pulse","Dragon Pulse","Crunch","Taunt","Work Up","Nasty Plot"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Volcarona",info:{moves:["Bug Buzz","Flamethrower","Hurricane","Tailwind","Amnesia","Sunny Day","Light Screen","Quiver Dance"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Talonflame",info:{moves:["Brave Bird","Flare Blitz","Flamethrower","Tera Blast","Sunny Day","Swords Dance"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Dragalge",info:{moves:["Dragon Pulse","Sludge Bomb","Water Pulse","Toxic","Acid Spray","Draco Meteor"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Clawitzer",info:{moves:["Water Pulse","Dragon Pulse","Aura Sphere","Crabhammer","Rain Dance"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Sylveon",info:{moves:["Tera Blast","Hyper Voice","Moonblast","Misty Terrain","Calm Mind"],specialMoves:["Yawn"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Goodra",info:{moves:["Dragon Pulse","Surf","Sludge Bomb","Power Whip","Rain Dance"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Avalugg",info:{moves:["Icicle Crash","Heavy Slam","Snowscape","Ice Spinner","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Lycanroc",imageAlt:"-d",info:{moves:["Accelerock","Rock Slide","Crunch","Taunt","Sandstorm"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Toxapex",info:{moves:["Water Pulse","Liquidation","Poison Jab","Pin Missile","Chilling Water","Toxic"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Mimikyu",info:{moves:["Play Rough","Shadow Claw","Shadow Sneak","Wood Hammer","Misty Terrain","Swords Dance"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Corviknight",info:{moves:["Iron Head","Drill Peck","Body Press","Hone Claws","Tailwind"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Pincurchin",info:{moves:["Zing Zap","Thunder","Surf","Poison Jab","Thunder Wave","Electric Terrain"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Frosmoth",info:{moves:["Blizzard","Bug Buzz","Hurricane","Snowscape"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Dragapult",info:{moves:["Shadow Ball","Dragon Pulse","Thunderbolt","Flamethrower","Reflect","Light Screen"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Pawmot",info:{moves:["Wild Charge","Close Combat","Double Shock","Nuzzle","Electric Terrain"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Maushold",imageAlt:"-f",info:{moves:["Play Rough","Take Down","Low Kick","Charm","Tidy Up"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Dachsbun",info:{moves:["Play Rough","Double-Edge","Bite","Baby-Doll Eyes"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Garganacl",info:{moves:["Stone Edge","Heavy Slam","Salt Cure","Hammer Arm","Sandstorm","Rock Slide"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Armarouge",info:{moves:["Armor Cannon","Psychic","Night Shade","Will-O-Wisp","Calm Mind","Sunny Day"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Ceruledge",info:{moves:["Bitter Blade","Shadow Claw","Psycho Cut","Will-O-Wisp","Sunny Day"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Kilowattrel",info:{moves:["Hurricane","Thunder","Uproar","Scary Face"],specialMoves:["Charge","Rain Dance"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Mabosstiff",info:{moves:["Crunch","Reversal","Outrage","Take Down","Taunt"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Grafaiai",info:{moves:["Knock Off","Gunk Shot","Take Down","Flatter"],specialMoves:["Toxic"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Toedscruel",info:{moves:["Energy Ball","Earth Power","Spore","Hex","Grassy Terrain"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Klawf",info:{moves:["Stone Edge","Rock Smash","X-Scissor","Sandstorm","Knock Off","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Tinkaton",info:{moves:["Gigaton Hammer","Play Rough","Knock Off","Thunder Wave","Sweet Kiss"],specialMoves:["Misty Terrain"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Bombirdier",info:{moves:["Rock Slide","Acrobatics","Knock Off","Feather Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Revavroom",info:{moves:["Gunk Shot","Overheat","Iron Head","Taunt","Scary Face","Shift Gear"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Cyclizar",info:{moves:["Double-Edge","Dragon Claw","Dragon Pulse","Knock Off","Shift Gear"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Orthworm",info:{moves:["Iron Head","Earthquake","Smack Down","Sandstorm","Coil"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Glimmora",info:{moves:["Power Gem","Sludge Wave","Hyper Beam","Rock Polish","Sandstorm"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Cetitan",info:{moves:["Ice Spinner","Body Slam","Snowscape","Stomping Tantrum"],specialMoves:["Yawn"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Dondozo",info:{moves:["Wave Crash","Order Up","Heavy Slam","Yawn","Rain Dance","Curse"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Annihilape",info:{moves:["Close Combat","Shadow Claw","Assurance","Focus Energy","Bulk Up","Rage Fist"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Clodsire",info:{moves:["Earthquake","Poison Jab","Megahorn","Yawn"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Farigiraf",info:{moves:["Twin Beam","Hyper Voice","Low Kick","Agility"],specialMoves:["Uproar"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Kingambit",info:{moves:["Iron Head","Night Slash","Kowtow Cleave","Thunder Wave","Swords Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Baxcalibur",info:{moves:["Snowscape","Body Press"],specialMoves:["Icicle Spear","Dragon Rush"],herbs:[{name:"Spicy",chance:13.64}]}}];let dL=(()=>{class e{constructor(n,r){this.stateService=n,this.graphqlService=r,this.pokemonList=document.getElementById("pokemonList")}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.populatePokemonList(n)})}ngAfterViewInit(){this.pokemonList=document.getElementById("pokemonList")}populatePokemonList(n){this.pokemonList&&(this.resetPokemonList(),("5"==n?Ua:$a).sort((i,o)=>i.name.localeCompare(o.name)).forEach(i=>{const o=document.createElement("option");o.value=i.name,o.text=i.name,i.formName&&(o.id=i.formName),this.pokemonList.add(o)}))}resetPokemonList(){this.pokemonList.innerHTML="",this.pokemonList.innerHTML=''}valueChanged(){const n=document.getElementById("pokemonList"),i=n.options[n.selectedIndex],o=i.id;ur(),i.value&&(this.graphqlService.getPokemon(o||i.value.toLowerCase()),this.stateService.changePokemon(i.value),document.getElementById("pokemonContent").style.display="none",this.stateService.changeLoading(!0))}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(cr))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-list"]],decls:3,vars:0,consts:[["id","pokemonList",3,"change"],["value",""]],template:function(n,r){1&n&&(pe(0,"select",0),qr("change",function(){return r.valueChanged()}),pe(1,"option",1),We(2,"-- Pokemon --"),Ne()())},encapsulation:2}),e})(),hL=(()=>{class e{constructor(n){this.stateService=n}ngOnInit(){gd.forEach(n=>{const r=document.createElement("option");r.value=n.name,r.text=n.name,document.getElementById("teraList").add(r)})}valueChanged(){const n=document.getElementById("teraList");this.stateService.changeTeraType(n.options[n.selectedIndex].value)}}return e.\u0275fac=function(n){return new(n||e)(k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-tera-type"]],decls:3,vars:0,consts:[["id","teraList",3,"change"],["value",""]],template:function(n,r){1&n&&(pe(0,"select",0),qr("change",function(){return r.valueChanged()}),pe(1,"option",1),We(2,"-- Tera Type --"),Ne()())},encapsulation:2}),e})(),pL=(()=>{class e{constructor(n){this.stateService=n,this.raidTier="",this.pokemonList="",this.teraType=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n}),this.stateService.teraType.subscribe(n=>{this.teraType=n})}shareRaid(){let n=location.origin+"/tera-raid-info/";n+=this.raidTier,n+="/"+this.pokemonList,n+="/"+this.teraType,navigator.clipboard.writeText(n),document.getElementById("shareText").innerText="Copied to Clipboard"}shareRaidMouseOut(){document.getElementById("shareText").innerText="Share Raid"}}return e.\u0275fac=function(n){return new(n||e)(k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-share-raid"]],decls:3,vars:0,consts:[["id","shareRaid",1,"share",3,"click","mouseout"],["id","shareText",1,"shareText"]],template:function(n,r){1&n&&(pe(0,"div",0),qr("click",function(){return r.shareRaid()})("mouseout",function(){return r.shareRaidMouseOut()}),pe(1,"div",1),We(2,"Share Raid"),Ne()())},encapsulation:2}),e})(),mL=(()=>{class e{constructor(n,r){this.grapghqlService=n,this.stateService=r,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setImages()})}setImages(){this.pokemonList&&this.grapghqlService.getDexNumber().subscribe(n=>{let i="";("5"==this.raidTier?Ua:$a).filter(o=>o.name==this.pokemonList).forEach(o=>{o.imageAlt&&(i=o.imageAlt)}),et(document.getElementById("pokemonImageNormal"),`Normal`),et(document.getElementById("pokemonImageShiny"),`Shiny`)})}}return e.\u0275fac=function(n){return new(n||e)(k(cr),k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-images"]],decls:2,vars:0,consts:[["id","pokemonImageNormal",1,"imgNormal"],["id","pokemonImageShiny",1,"imgShiny"]],template:function(n,r){1&n&&at(0,"div",0)(1,"div",1)},encapsulation:2}),e})(),gL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r,this.pokemonList=""}ngOnInit(){this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setTypes()})}setTypes(){this.pokemonList&&this.graphqlService.getTypes().subscribe(n=>{n.forEach(r=>{et(document.getElementById("pokemonTypes"),this.createTypeDisplay(r.name))})})}createTypeDisplay(n){return`
${n}
`}}return e.\u0275fac=function(n){return new(n||e)(k(cr),k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-types"]],decls:1,vars:0,consts:[["id","pokemonTypes"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),yL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r}ngOnInit(){this.stateService.pokemonList.subscribe(n=>{n&&this.setStats()})}setStats(){this.graphqlService.getStats().subscribe(n=>{et(document.getElementById("pokemonStatsWrapper"),this.createStatsDisplay(n))})}createStatsDisplay(n){let r='

Base Stats

';return r+=`

HP

${n.hp}

`,r+=`

Atk

${n.attack}

`,r+=`

Def

${n.defense}

`,r+=`

Sp.Atk

${n.specialattack}

`,r+=`

Sp.Def

${n.specialdefense}

`,r+=`

Spd

${n.speed}

`,r}}return e.\u0275fac=function(n){return new(n||e)(k(cr),k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-stats"]],decls:1,vars:0,consts:[["id","pokemonStatsWrapper"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),vL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setAbilities()})}setAbilities(){if(this.pokemonList){const n=document.getElementById("pokemonAbility");this.graphqlService.getAbilities().subscribe(r=>{et(n,"

Ability:

"),et(n,this.createAbilityDiv(r.first)),r.second&&et(n,this.createAbilityDiv(r.second)),this.canShowHidden()&&r.hidden&&et(n,this.createAbilityDiv(r.hidden,!0))})}}createAbilityDiv(n,r){return`
${n.name}${r?" (H)":""}
`}canShowHidden(){return"6"==this.raidTier||"5"==this.raidTier&&"Ditto"==this.pokemonList}}return e.\u0275fac=function(n){return new(n||e)(k(cr),k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-ability"]],decls:1,vars:0,consts:[["id","pokemonAbility"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),DL=(()=>{class e{constructor(n,r,i){this.stateService=n,this.typeCalcService=r,this.graphqlService=i,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setMoves()})}setMoves(){const n=document.getElementById("pokemonMoves"),r="5"==this.raidTier?Ua:$a,i=[],o=[];let s=[];this.pokemonList&&(r.filter(a=>a.name==this.pokemonList).forEach(a=>{a.info.specialMoves&&a.info.specialMoves.sort((c,u)=>c.localeCompare(u)).forEach(c=>{this.graphqlService.getMove(c.toLowerCase().replaceAll(" ","").replaceAll("-","")).subscribe(u=>{i.push(u.getMove)})})}),this.graphqlService.getMoves().subscribe(a=>{et(n,"

Moves:

"),r.filter(f=>f.name==this.pokemonList).forEach(f=>{f.info.moves.sort((d,h)=>d.localeCompare(h)).forEach(d=>{a.generation8.dreamworldMoves&&a.generation8.dreamworldMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.eggMoves&&a.generation8.eggMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.eventMoves&&a.generation8.eventMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.levelUpMoves&&a.generation8.levelUpMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.tmMoves&&a.generation8.tmMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.tutorMoves&&a.generation8.tutorMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.virtualTransferMoves&&a.generation8.virtualTransferMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)})})}),[...new Map(i.map(f=>[f.key,f])).values()].sort((f,d)=>f.name.localeCompare(d.name)).sort((f,d)=>"Status"!=f.category&&"Status"==d.category?-1:1).forEach(f=>{const d=this.createMoveDiv(f);et(document.getElementById("pokemonMoves"),d),o.push(d),"Status"!=f.category&&s.push(f.type)}),this.stateService.changeMoveList(o.join("")),s=[...new Set(s)];let u=[];s.forEach(f=>{const d=this.typeCalcService.advantages(f);u=u.concat(d)});const l=[];u=[...new Map(u.map(f=>[f.name,f])).values()],u.sort((f,d)=>f.name.localeCompare(d.name)).forEach(f=>{l.push(vd(f))}),l.length&&et(document.getElementById("pokemonTypeAdvantages"),"

Type Advantages:

"+l.join(""))}))}createMoveDiv(n){let r=`
${n.name}`;if(r+='
',r+=`
${n.category.toString()}
`,r+=`
Pwr: ${"0"==n.basePower?"--":n.basePower}
`,r+=`
PP: ${n.pp}
`,r+=`
Acc: ${n.accuracy}
`,r+=`
${"No additional effect."==n.desc?n.shortDesc:n.desc}
`,"Status"!=n.category){const i=this.typeCalcService.advantages(n.type.toString()),o=[];i.forEach(s=>{2==s.multiplier&&o.push(`${Ha(s.name)}`)}),o.length&&(r+=`
Advantages: ${o.join(", ")}
`)}return r+="
",r}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(yd),k(cr))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-moves"]],decls:1,vars:0,consts:[["id","pokemonMoves",1,"pokemonMoves"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),bL=(()=>{class e{constructor(n){this.stateService=n,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setHerbs()})}setHerbs(){this.pokemonList&&(et(document.getElementById("pokemonHerbs"),"

Herbs Dropped:

"),("5"==this.raidTier?Ua:$a).filter(r=>r.name==this.pokemonList).forEach(r=>{r.info.herbs.sort((i,o)=>i.name.localeCompare(o.name)).forEach(i=>{et(document.getElementById("pokemonHerbs"),this.createHerbDiv(i))})}))}createHerbDiv(n){return`
${n.name} - ${n.chance}%
`}}return e.\u0275fac=function(n){return new(n||e)(k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-herbs"]],decls:1,vars:0,consts:[[1,"pokemonHerbs"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),EL=(()=>{class e{constructor(n,r){this.stateService=n,this.typeCalcService=r,this.raidTier="",this.pokemonList="",this.teraType="",this.moveList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.handleChange()}),this.stateService.teraType.subscribe(n=>{this.teraType=n,this.handleChange()}),this.stateService.moveList.subscribe(n=>{this.moveList=n,this.handleChange()})}handleChange(){this.pokemonList&&(ur("pokemonTeraAdvantages"),ur("pokemonTeraWeaknesses"),this.pokemonList&&(this.raidTier&&this.teraType&&this.setTypeWeaknesses(),this.moveList&&this.teraType&&this.moveList.includes("Tera Blast")&&this.setTeraTypeAdvantages()),this.teraType?(this.pokemonList&&this.raidTier&&this.setTypeWeaknesses(),this.moveList.includes("Tera Blast")&&this.setTeraTypeAdvantages()):(ur("pokemonTeraAdvantages"),ur("pokemonTeraWeaknesses")),this.stateService.changeLoading(!1))}setTeraTypeAdvantages(){ur("pokemonTeraAdvantages");const n=[];this.typeCalcService.advantages(this.teraType).forEach(i=>{n.push(vd(i))}),n.length&&et(document.getElementById("pokemonTeraAdvantages"),"

Tera Advantages:

"+n.join(""))}setTypeWeaknesses(){ur("pokemonTeraWeaknesses");const n=[];this.typeCalcService.weaknesses(this.teraType).forEach(i=>{n.push(vd(i))}),n.length&&et(document.getElementById("pokemonTeraWeaknesses"),"

Tera Weaknesses:

"+n.join(""))}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(yd))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-type-matchups"]],decls:3,vars:0,consts:[["id","pokemonTypeAdvantages",1,"pokemonTypeMatchups"],["id","pokemonTeraWeaknesses",1,"pokemonTypeMatchups"],["id","pokemonTeraAdvantages",1,"pokemonTypeMatchups"]],template:function(n,r){1&n&&at(0,"div",0)(1,"div",1)(2,"div",2)},encapsulation:2}),e})(),wL=(()=>{class e{constructor(n){this.stateService=n,this.title="Tera Raid Info"}ngOnInit(){this.stateService.loading.subscribe(n=>{document.getElementById("dataLoading").hidden=!n,0==n&&(document.getElementById("pokemonContent").style.display="")})}ngAfterViewInit(){document.getElementById("dataLoading").hidden=!0,this.deleteCache(),this.autoPopulateSelections()}autoPopulateSelections(n,r){const i=n||window.location.href,o=r||window.location.origin;if(i.replace(o+"/tera-raid-info/","")){const s=i.replace(o+"/tera-raid-info/","").split("/"),a=new Event("change");if(Number(s[0])){const c=document.getElementById("raidTier");c.value=s[0],c.dispatchEvent(a)}if(s[1]){let c=Ha(s[1].replaceAll("%20"," ").toLowerCase());const u=c.match(/(\(.*\))/);if(u){const f=u[0].split(" ");for(let d=0;d{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e,bootstrap:[wL]}),e.\u0275inj=tn({providers:[gt,cr,yd],imports:[JN,cL,oL]}),e})();YN().bootstrapModule(SL).catch(e=>console.error(e))}},le=>{le(le.s=588)}]); \ No newline at end of file