UNPKG

altair-static

Version:

Static package for altair graphql client

3 lines (2 loc) 3.15 MB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8d05df30-ecdb-59b8-bd6e-3fed53b4ec8c")}catch(e){}}(); (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[792],{80012:(se,U,p)=>{"use strict";p.d(U,{PL:()=>w,YK:()=>O});var Q=p(35121),B=p(4215),P=p(48767),I=p(18698),N=p(14181),F=p(34791),S=p(79392),T=p(85491);const O=function(){var C=(0,Q.A)(function*(k,$,H,{maxDepth:j=2,tabSize:_=2}={}){const R=k.getType(H);if(!(R instanceof B.bh))return{generated:"",metas:[]};const g=R.getFields()[$];if(!g)return{generated:"",metas:[]};const x=v(k,R),{node:Y,metas:G}=b(g,{maxDepth:j,currentDepth:0}),ee={kind:P.b.SELECTION_SET,selections:[Y]},oe={kind:P.b.DOCUMENT,definitions:[x?y(x,ee):M(R,ee)]};return{generated:yield(0,T.G)((0,I.print)(oe),_),metas:G}});return function($,H,j){return C.apply(this,arguments)}}(),v=(C,k)=>new Map([[C.getQueryType(),"query"],[C.getMutationType(),"mutation"],[C.getSubscriptionType(),"subscription"]]).get(k),y=(C,k)=>({kind:P.b.OPERATION_DEFINITION,operation:C,name:void 0,variableDefinitions:[],directives:[],selectionSet:k}),M=(C,k)=>({kind:P.b.FRAGMENT_DEFINITION,name:{kind:P.b.NAME,value:"____"},variableDefinitions:[],directives:[],typeCondition:{kind:P.b.NAMED_TYPE,name:{kind:P.b.NAME,value:C.name}},selectionSet:k}),w=(C,{maxDepth:k=1,currentDepth:$=0}={})=>{let H=[];const j={kind:P.b.SELECTION_SET,selections:[]};if(!C)return{selectionSet:j,metas:H};const _=(0,B.MR)(C);if(!(_ instanceof B.bh||_ instanceof B.VA))return{selectionSet:j,metas:H};if((0,B.zf)(C))return{selectionSet:j,metas:H};if($>=k)return{selectionSet:j,metas:H};const R=_&&_.getFields();return j.selections=Object.entries(R).map(([g,x])=>{const{node:Y,metas:G}=b(x,{maxDepth:k,currentDepth:$});return H=[...H,...G],Y}),{selectionSet:j,metas:H}},b=(C,{maxDepth:k=1,currentDepth:$=0}={})=>{const H=C.args.map(g=>({kind:P.b.ARGUMENT,name:{kind:P.b.NAME,value:g.name},value:V(g.type,g.defaultValue)})),{selectionSet:j,metas:_}=w(C.type,{maxDepth:k,currentDepth:$+1});return{node:{kind:P.b.FIELD,alias:void 0,name:{kind:P.b.NAME,value:C.name},arguments:H,directives:[],selectionSet:j},metas:[{hasArgs:!!H.length},..._]}},V=(C,k,{currentDepth:$=0,maxDepth:H=2}={})=>L(C,k,{currentDepth:$,maxDepth:H})??{kind:P.b.STRING,value:"_____"},L=(C,k,{currentDepth:$=0,maxDepth:H=2}={})=>{const j=(0,N.K)(k,C);if(j)return j;if((0,B.bd)(C)&&(C=C.ofType),(0,B.Fs)(C))return{kind:P.b.LIST,values:[V(C.ofType,void 0,{currentDepth:$+1,maxDepth:H})]};if((0,B.YQ)(C)||(0,B.qK)(C)){if($>=H)return;const R=[];for(const g of Object.values(C.getFields()))if((0,B.YX)(g)){const x=L(g.type,void 0,{currentDepth:$+1,maxDepth:H});x&&R.push({kind:P.b.OBJECT_FIELD,name:{kind:P.b.NAME,value:g.name},value:x})}return{kind:P.b.OBJECT,fields:R}}if(C instanceof B.Zb){const R=C.getValues()[0];return R?(0,N.K)(R.name,C):void 0}switch((0,S.Uz)(C)){case"String":return(0,N.K)("string",F.FV);case"Boolean":return(0,N.K)(!0,F.kk);case"Int":return(0,N.K)(1,F.Fh)}}},79392:(se,U,p)=>{"use strict";p.d(U,{Cs:()=>F,Ew:()=>w,J1:()=>M,Nh:()=>b,RY:()=>y,Uz:()=>S,nF:()=>k,rl:()=>C});var Q=p(4215),B=p(48767),P=p(85470),I=p(41888),N=p(44246);const F=$=>$.trim().replace(/[^A-Za-z0-9]/g,"_").replace(/_+/g,"_").substr(0,20)+(1e3*Math.random()).toFixed(0),S=$=>(0,Q.MR)($).toString(),T=$=>`${$}Fields`,O=$=>({kind:B.b.FRAGMENT_SPREAD,name:{kind:B.b.NAME,value:$}}),v=($,H)=>Object.entries($).map(([j,_])=>{const R=H.getType(j),g=R&&R.getFields();return{kind:B.b.FRAGMENT_DEFINITION,name:{kind:B.b.NAME,value:T(j)},typeCondition:{kind:B.b.NAMED_TYPE,name:{kind:B.b.NAME,value:j}},selectionSet:{kind:B.b.SELECTION_SET,selections:_.map(x=>{const Y=g&&g[x];return{kind:B.b.FIELD,name:{kind:B.b.NAME,value:x},type:Y?Y.type.inspect():""}})}}}),y=($,H,j)=>{const _=new P.D(j);return(0,I.YR)($,(0,P.S)(_,{Field:{enter(g){_.enter(g);const x=_.getType();if(x){const Y=S(x),G=H[Y];if(G&&g.selectionSet&&G.every(ee=>!!g.selectionSet.selections.find(oe=>"name"in oe&&oe.name.value===ee)))return{...g,selectionSet:{...g.selectionSet,selections:[...g.selectionSet.selections.filter(ee=>"name"in ee&&!G.includes(ee.name.value)),O(T(Y))]}}}},leave(g){_.leave(g)}}}))},M=($,H)=>{const j=new P.D(H),_={name:"root",count:0,fields:[],children:{}},R={root:_};function g(G){const ee=(0,Q.MR)(G),oe=ee.toString();return R[oe]||={name:oe,count:0,type:ee,fields:[],children:{}}}const x={enter(G){j.enter(G);const ee=j.getType();if(G.type=ee,ee&&!(0,Q.zf)((0,Q.MR)(ee))){const oe=g(ee);if(oe.count++,G.selectionSet&&G.selectionSet.selections){const xe=G.selectionSet.selections.filter(Te=>!Te.selectionSet||!Te.selectionSet.selections).filter(Te=>Te.kind===B.b.FIELD).filter(Te=>Te.name&&Te.name.value).map(Te=>Te.name&&Te.name.value).filter(Boolean);oe.fields.push(xe)}const ce=j.getParentType();ce?g(ce).children[oe.name]=oe:_.children[oe.name]=oe}return G},leave(G){j.leave(G)}};return(0,I.YR)($,(0,P.S)(j,{OperationDefinition:x,Field:x})),{map:R,tree:_}},w=$=>{const H={};return Object.values($.map).forEach(j=>{j.count>=2&&j.fields.length&&j.fields[0]?.forEach(_=>{j.fields.slice(1).every(R=>R.includes(_))&&(H[j.name]||=[]).push(_)})}),H},b=($,H,j)=>(0,I.YR)($,{Document:_=>({..._,definitions:_.definitions.concat(v(H,j))})}),L=($,H)=>(($,H)=>(0,N.F)($,H))($.value,H),C=($,H,j)=>{const _={};let R=[];const g=new P.D(H);return{document:(0,I.YR)($,{enter(Y){if(g.enter(Y),Y.kind===B.b.ARGUMENT){const G=g.getFieldDef();if(Y.value.kind!==B.b.VARIABLE&&G&&G.args){const ee=G.args.find(oe=>oe.name===Y.name.value);if(ee){let oe=ee.name;_[oe]&&(oe=F(ee.name));const ce={name:oe,value:L(Y,j),type:ee.type.inspect()};return _[oe]=ce,R.push(ce),{...Y,value:{kind:B.b.VARIABLE,name:{kind:B.b.NAME,value:oe}}}}}}},leave(Y){if(g.leave(Y),Y.kind===B.b.OPERATION_DEFINITION){const G={...Y,variableDefinitions:(Y.variableDefinitions||[]).concat(R.map(oe=>({kind:B.b.VARIABLE_DEFINITION,variable:{kind:B.b.VARIABLE,name:{kind:B.b.NAME,value:oe.name}},type:{kind:B.b.NAMED_TYPE,name:{kind:B.b.NAME,value:oe.type}}})))},ee=Y.name||{kind:B.b.NAME,value:F("refactored")};return G.name=ee,R=[],G}}}),variables:Object.entries(_).reduce((Y,[G,ee])=>(Y[G]=ee.value,Y),{})}},k=$=>$.replace(/[[\]!]/g,"")},85491:(se,U,p)=>{"use strict";p.d(U,{G:()=>B});var Q=p(35121);const B=function(){var P=(0,Q.A)(function*(I,N=2){const F=yield p.e(996).then(p.bind(p,85996)),S=yield p.e(257).then(p.bind(p,3257));return F.format(I,{parser:"graphql",plugins:[S],tabWidth:N})});return function(N){return P.apply(this,arguments)}}()},12564:(se,U,p)=>{"use strict";p.d(U,{A:()=>Q});const Q=B=>[B.getQueryType(),B.getMutationType(),B.getSubscriptionType()].filter(Boolean)},11327:(se,U,p)=>{"use strict";function Q(t,n){return Object.is(t,n)}let B=null,P=!1,I=1;const N=Symbol("SIGNAL");function F(t){const n=B;return B=t,n}const v={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function y(t){if(P)throw new Error("");if(null===B)return;B.consumerOnSignalRead(t);const n=B.nextProducerIndex++;g(B),n<B.producerNode.length&&B.producerNode[n]!==t&&R(B)&&_(B.producerNode[n],B.producerIndexOfThis[n]),B.producerNode[n]!==t&&(B.producerNode[n]=t,B.producerIndexOfThis[n]=R(B)?j(t,B,n):0),B.producerLastReadVersion[n]=t.version}function w(t){if((!R(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==I)){if(!t.producerMustRecompute(t)&&!$(t))return t.dirty=!1,void(t.lastCleanEpoch=I);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=I}}function b(t){if(void 0===t.liveConsumerNode)return;const n=P;P=!0;try{for(const e of t.liveConsumerNode)e.dirty||L(e)}finally{P=n}}function V(){return!1!==B?.consumerAllowSignalWrites}function L(t){t.dirty=!0,b(t),t.consumerMarkedDirty?.(t)}function C(t){return t&&(t.nextProducerIndex=0),F(t)}function k(t,n){if(F(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(R(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)_(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function $(t){g(t);for(let n=0;n<t.producerNode.length;n++){const e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(w(e),i!==e.version))return!0}return!1}function H(t){if(g(t),R(t))for(let n=0;n<t.producerNode.length;n++)_(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function j(t,n,e){if(x(t),0===t.liveConsumerNode.length&&Y(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=j(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(n)-1}function _(t,n){if(x(t),1===t.liveConsumerNode.length&&Y(t))for(let i=0;i<t.producerNode.length;i++)_(t.producerNode[i],t.producerIndexOfThis[i]);const e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){const i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];g(r),r.producerIndexOfThis[i]=n}}function R(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function g(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function x(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Y(t){return void 0!==t.producerNode}function G(t){const n=Object.create(xe);n.computation=t;const e=()=>{if(w(n),y(n),n.value===ce)throw n.error;return n.value};return e[N]=n,e}const ee=Symbol("UNSET"),oe=Symbol("COMPUTING"),ce=Symbol("ERRORED"),xe={...v,value:ee,dirty:!0,error:null,equal:Q,producerMustRecompute:t=>t.value===ee||t.value===oe,producerRecomputeValue(t){if(t.value===oe)throw new Error("Detected cycle in computations.");const n=t.value;t.value=oe;const e=C(t);let i;try{i=t.computation()}catch(r){i=ce,t.error=r}finally{k(t,e)}n!==ee&&n!==ce&&i!==ce&&t.equal(n,i)?t.value=n:(t.value=i,t.version++)}};let Ae=function Te(){throw new Error};function ue(){Ae()}let he=null;function Pe(t,n){V()||ue(),t.equal(t.value,n)||(t.value=n,function St(t){t.version++,function M(){I++}(),b(t),he?.()}(t))}const pt={...v,equal:Q,value:void 0};const tn=()=>{},ae={...v,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{null!==t.schedule&&t.schedule(t.ref)},hasRun:!1,cleanupFn:tn};var pe=p(38821),Le=p(46391),Qe=p(27569);const Ke=(0,Qe.L)(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Je=p(83176),$e=p(77846);let _e=(()=>{class t extends pe.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ge(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ke}next(e){(0,$e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){(0,$e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){(0,$e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Le.Kn:(this.currentObservers=null,o.push(e),new Le.yU(()=>{this.currentObservers=null,(0,Je.o)(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new pe.c;return e.source=this,e}}return t.create=(n,e)=>new Ge(n,e),t})();class Ge extends _e{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Le.Kn}}class Fe extends _e{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}var st=p(4706),Tt=p(67500);function We(t,n){return(0,st.N)((e,i)=>{let r=0;e.subscribe((0,Tt._)(i,o=>{i.next(t.call(n,o,r++))}))})}const Ai="https://g.co/ng/security#xss";class et extends Error{constructor(n,e){super(function Bn(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}const Kn=Symbol("InputSignalNode#UNSET"),Ki={...pt,transformFn:void 0,applyValueToInputSignal(t,n){Pe(t,n)}};function Ao(t,n){const e=Object.create(Ki);function i(){if(y(e),e.value===Kn)throw new et(-950,!1);return e.value}return e.value=t,e.transformFn=n?.transform,i[N]=e,i}function cr(t){return{toString:t}.toString()}const mr="__parameters__";function xa(t,n,e){return cr(()=>{const i=function Ea(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const h=l.hasOwnProperty(mr)?l[mr]:Object.defineProperty(l,mr,{value:[]})[mr];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const be=globalThis;function lt(t){for(let n in t)if(t[n]===lt)return n;throw Error("Could not find renamed property on target object.")}function an(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function rn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(rn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function oi(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const ja=lt({__forward_ref__:lt});function Vn(t){return t.__forward_ref__=Vn,t.toString=function(){return rn(this())},t}function An(t){return Pu(t)?t():t}function Pu(t){return"function"==typeof t&&t.hasOwnProperty(ja)&&t.__forward_ref__===Vn}function ot(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Zt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Mf(t){return J6(t,Df)||J6(t,$m)}function J6(t,n){return t.hasOwnProperty(n)?t[n]:null}function zf(t){return t&&(t.hasOwnProperty(Af)||t.hasOwnProperty(Aw))?t[Af]:null}const Df=lt({\u0275prov:lt}),Af=lt({\u0275inj:lt}),$m=lt({ngInjectableDef:lt}),Aw=lt({ngInjectorDef:lt});class rt{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ot({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function u1(t){return t&&!!t.\u0275providers}const d1=lt({\u0275cmp:lt}),qm=lt({\u0275dir:lt}),h1=lt({\u0275pipe:lt}),Ym=lt({\u0275mod:lt}),_l=lt({\u0275fac:lt}),p1=lt({__NG_ELEMENT_ID__:lt}),ry=lt({__NG_ENV_ID__:lt});function jn(t){return"string"==typeof t?t:null==t?"":String(t)}function Wm(t,n){throw new et(-201,!1)}var Mi=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Mi||{});let Pf;function sy(){return Pf}function Es(t){const n=Pf;return Pf=t,n}function ay(t,n,e){const i=Mf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Mi.Optional?null:void 0!==n?n:void Wm()}const Hd={},Rf="__NG_DI_FLAG__",Nf="ngTempTokenPath",m1=/\n/gm,Gm="__source";let xs;function Mc(t){const n=xs;return xs=t,n}function Nw(t,n=Mi.Default){if(void 0===xs)throw new et(-203,!1);return null===xs?ay(t,void 0,n):xs.get(t,n&Mi.Optional?null:void 0,n)}function Ee(t,n=Mi.Default){return(sy()||Nw)(An(t),n)}function ht(t,n=Mi.Default){return Ee(t,Lf(n))}function Lf(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Km(t){const n=[];for(let e=0;e<t.length;e++){const i=An(t[e]);if(Array.isArray(i)){if(0===i.length)throw new et(900,!1);let r,o=Mi.Default;for(let s=0;s<i.length;s++){const a=i[s],l=Lw(a);"number"==typeof l?-1===l?r=a.token:o|=l:r=a}n.push(Ee(r,o))}else n.push(Ee(i))}return n}function jd(t,n){return t[Rf]=n,t.prototype[Rf]=n,t}function Lw(t){return t[Rf]}const Ce=jd(xa("Inject",t=>({token:t})),-1),Ie=jd(xa("Optional"),8),Ve=jd(xa("Self"),2),qe=jd(xa("SkipSelf"),4);function ut(t,n){return t.hasOwnProperty(_l)?t[_l]:null}function Lt(t,n){t.forEach(e=>Array.isArray(e)?Lt(e,n):n(e))}function Qt(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ft(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Ii(t,n,e){let i=mo(t,n);return i>=0?t[1|i]=e:(i=~i,function Si(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function to(t,n){const e=mo(t,n);if(e>=0)return t[1|e]}function mo(t,n){return function Jm(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}(t,n,1)}const $a={},qi=[],bl=new rt(""),nF=new rt("",-1),Fw=new rt("");class uy{get(n,e=Hd){if(e===Hd){const i=new Error(`NullInjectorError: No provider for ${rn(n)}!`);throw i.name="NullInjectorError",i}return e}}var dy=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(dy||{}),$l=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}($l||{}),$d=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}($d||{});function O4e(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}function Vw(t,n,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const o=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,o)}else{const o=r,s=e[++i];rF(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),i++}}return i}function iF(t){return 3===t||4===t||6===t}function rF(t){return 64===t.charCodeAt(0)}function eg(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||oF(t,e,r,null,-1===e||2===e?n[++i]:null)}}return t}function oF(t,n,e,i,r){let o=0,s=t.length;if(-1===n)s=-1;else for(;o<t.length;){const a=t[o++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=o-1;break}}}for(;o<t.length;){const a=t[o];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(t[o+1]=r));if(i===t[o+1])return void(t[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),null!==i&&t.splice(o++,0,i),null!==r&&t.splice(o++,0,r)}const sF="ng-template";function T4e(t,n,e,i){let r=0;if(i){for(;r<n.length&&"string"==typeof n[r];r+=2)if("class"===n[r]&&-1!==O4e(n[r+1].toLowerCase(),e,0))return!0}else if(Bw(t))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&"string"==typeof(o=n[r]);)if(o.toLowerCase()===e)return!0}return!1}function Bw(t){return 4===t.type&&t.value!==sF}function k4e(t,n,e){return n===(4!==t.type||e?t.value:sF)}function E4e(t,n,e){let i=4;const r=t.attrs,o=null!==r?function z4e(t){for(let n=0;n<t.length;n++)if(iF(t[n]))return n;return t.length}(r):0;let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!k4e(t,l,e)||""===l&&1===n.length){if(Ul(i))return!1;s=!0}}else if(8&i){if(null===r||!T4e(t,r,l,e)){if(Ul(i))return!1;s=!0}}else{const c=n[++a],u=x4e(l,r,Bw(t),e);if(-1===u){if(Ul(i))return!1;s=!0;continue}if(""!==c){let h;if(h=u>o?"":r[u+1].toLowerCase(),2&i&&c!==h){if(Ul(i))return!1;s=!0}}}}else{if(!s&&!Ul(i)&&!Ul(l))return!1;if(s&&Ul(l))continue;s=!1,i=l|1&i}}return Ul(i)||s}function Ul(t){return!(1&t)}function x4e(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){const s=n[r];if(s===t)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function D4e(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function aF(t,n,e=!1){for(let i=0;i<n.length;i++)if(E4e(t,n[i],e))return!0;return!1}function A4e(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function lF(t,n){return t?":not("+n.trim()+")":n}function I4e(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Ul(s)&&(n+=lF(o,r),r=""),i=s,o=o||!Ul(i);e++}return""!==r&&(n+=lF(o,r)),n}function at(t){return cr(()=>{const n=uF(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===dy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||$l.Emulated,styles:t.styles||qi,_:null,schemas:t.schemas||null,tView:null,id:""};dF(e);const i=t.dependencies;return e.directiveDefs=hy(i,!1),e.pipeDefs=hy(i,!0),e.id=function V4e(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of e)n=Math.imul(31,n)+r.charCodeAt(0)|0;return n+=2147483648,"c"+n}(e),e})}function N4e(t){return Oi(t)||Qo(t)}function L4e(t){return null!==t}function Jt(t){return cr(()=>({type:t.type,bootstrap:t.bootstrap||qi,declarations:t.declarations||qi,imports:t.imports||qi,exports:t.exports||qi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function cF(t,n){if(null==t)return $a;const e={};for(const i in t)if(t.hasOwnProperty(i)){const r=t[i];let o,s,a=$d.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(e[o]=a!==$d.None?[i,a]:i,n[o]=s):e[o]=i}return e}function Dt(t){return cr(()=>{const n=uF(t);return dF(n),n})}function At(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Oi(t){return t[d1]||null}function Qo(t){return t[qm]||null}function ds(t){return t[h1]||null}function Ms(t,n){const e=t[Ym]||null;if(!e&&!0===n)throw new Error(`Type ${rn(t)} does not have '\u0275mod' property.`);return e}function uF(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||$a,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||qi,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cF(t.inputs,n),outputs:cF(t.outputs),debugInfo:null}}function dF(t){t.features?.forEach(n=>n(t))}function hy(t,n){if(!t)return null;const e=n?ds:N4e;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(L4e)}function Vf(t){return{\u0275providers:t}}function B4e(...t){return{\u0275providers:Hw(0,t),\u0275fromNgModule:!0}}function Hw(t,...n){const e=[],i=new Set;let r;const o=s=>{e.push(s)};return Lt(n,s=>{const a=s;py(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&hF(r,o),e}function hF(t,n){for(let e=0;e<t.length;e++){const{ngModule:i,providers:r}=t[e];jw(r,o=>{n(o,i)})}}function py(t,n,e,i){if(!(t=An(t)))return!1;let r=null,o=zf(t);const s=!o&&Oi(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=zf(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)py(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Lt(o.imports,u=>{py(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&hF(c,n)}if(!a){const c=ut(r)||(()=>new r);n({provide:r,useFactory:c,deps:qi},r),n({provide:Fw,useValue:r,multi:!0},r),n({provide:bl,useValue:()=>Ee(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=t;jw(l,u=>{n(u,c)})}}}return r!==t&&void 0!==t.providers}function jw(t,n){for(let e of t)u1(e)&&(e=e.\u0275providers),Array.isArray(e)?jw(e,n):n(e)}const H4e=lt({provide:String,useValue:lt});function $w(t){return null!==t&&"object"==typeof t&&H4e in t}function g1(t){return"function"==typeof t}const Uw=new rt(""),fy={},$4e={};let Qw;function my(){return void 0===Qw&&(Qw=new uy),Qw}class Ma{}class Bf extends Ma{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Yw(n,s=>this.processProvider(s)),this.records.set(nF,Hf(void 0,this)),r.has("environment")&&this.records.set(Ma,Hf(void 0,this));const o=this.records.get(Uw);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Fw,qi,Mi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=F(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),F(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=Mc(this),i=Es(void 0);try{return n()}finally{Mc(e),Es(i)}}get(n,e=Hd,i=Mi.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(ry))return n[ry](this);i=Lf(i);const o=Mc(this),s=Es(void 0);try{if(!(i&Mi.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function W4e(t){return"function"==typeof t||"object"==typeof t&&t instanceof rt}(n)&&Mf(n);l=c&&this.injectableDefInScope(c)?Hf(qw(n),fy):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&Mi.Self?my():this.parent).get(n,e=i&Mi.Optional&&e===Hd?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Nf]=a[Nf]||[]).unshift(rn(n)),o)throw a;return function Xm(t,n,e,i){const r=t[Nf];throw n[Gm]&&r.unshift(n[Gm]),t.message=function cy(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=rn(n);if(Array.isArray(n))r=n.map(rn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):rn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(m1,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Nf]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{Es(s),Mc(o)}}resolveInjectorInitializers(){const n=F(null),e=Mc(this),i=Es(void 0);try{const o=this.get(bl,qi,Mi.Self);for(const s of o)s()}finally{Mc(e),Es(i),F(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(rn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new et(205,!1)}processProvider(n){let e=g1(n=An(n))?n:An(n&&n.provide);const i=function Q4e(t){return $w(t)?Hf(void 0,t.useValue):Hf(mF(t),fy)}(n);if(!g1(n)&&!0===n.multi){let r=this.records.get(e);r||(r=Hf(void 0,fy,!0),r.factory=()=>Km(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=F(null);try{return e.value===fy&&(e.value=$4e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Y4e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{F(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=An(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function qw(t){const n=Mf(t),e=null!==n?n.factory:ut(t);if(null!==e)return e;if(t instanceof rt)throw new et(204,!1);if(t instanceof Function)return function U4e(t){if(t.length>0)throw new et(204,!1);const e=function ey(t){return t&&(t[Df]||t[$m])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new et(204,!1)}function mF(t,n,e){let i;if(g1(t)){const r=An(t);return ut(r)||qw(r)}if($w(t))i=()=>An(t.useValue);else if(function fF(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Km(t.deps||[]));else if(function pF(t){return!(!t||!t.useExisting)}(t))i=()=>Ee(An(t.useExisting));else{const r=An(t&&(t.useClass||t.provide));if(!function q4e(t){return!!t.deps}(t))return ut(r)||qw(r);i=()=>new r(...Km(t.deps))}return i}function Hf(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Yw(t,n){for(const e of t)Array.isArray(e)?Yw(e,n):e&&u1(e)?Yw(e.\u0275providers,n):n(e)}function Ru(t,n){t instanceof Bf&&t.assertNotDestroyed();const i=Mc(t),r=Es(void 0);try{return n()}finally{Mc(i),Es(r)}}function gF(){return void 0!==sy()||null!=function Rw(){return xs}()}function gy(t){if(!gF())throw new et(-203,!1)}const vF=Function;const no=0,Vt=1,zn=2,Io=3,Ql=4,hs=5,na=6,$f=7,Ir=8,Po=9,zc=10,Un=11,ng=12,_F=13,Uf=14,io=15,y1=16,Qf=17,Nu=18,qf=19,bF=20,Qd=21,vy=22,Cl=23,bn=25,Gw=1,Dc=7,Yf=9,bo=10;var by=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(by||{});function Yo(t){return Array.isArray(t)&&"object"==typeof t[Gw]}function zs(t){return Array.isArray(t)&&!0===t[Gw]}function Zw(t){return!!(4&t.flags)}function v1(t){return t.componentOffset>-1}function Cy(t){return!(1&~t.flags)}function ql(t){return!!t.template}function rg(t){return!!(512&t[zn])}class o3e{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function TF(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Bt(){return kF}function kF(t){return t.type.prototype.ngOnChanges&&(t.setInput=a3e),s3e}function s3e(){const t=xF(this),n=t?.current;if(n){const e=t.previous;if(e===$a)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function a3e(t,n,e,i,r){const o=this.declaredInputs[i],s=xF(t)||function l3e(t,n){return t[EF]=n}(t,{previous:$a,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new o3e(c&&c.currentValue,e,l===$a),TF(t,n,r,e)}Bt.ngInherit=!0;const EF="__ngSimpleChanges__";function xF(t){return t[EF]||null}const Ac=function(t,n,e){};function Yi(t){for(;Array.isArray(t);)t=t[no];return t}function og(t,n){return Yi(n[t])}function ia(t,n){return Yi(n[t.index])}function sg(t,n){return t.data[n]}function _1(t,n){return t[n]}function Ua(t,n){const e=n[t];return Yo(e)?e:e[no]}function tS(t){return!(128&~t[zn])}function wl(t,n){return null==n?null:t[n]}function DF(t){t[Qf]=0}function AF(t){1024&t[zn]||(t[zn]|=1024,tS(t)&&Sy(t))}function wy(t){return!!(9216&t[zn]||t[Cl]?.dirty)}function nS(t){t[zc].changeDetectionScheduler?.notify(8),64&t[zn]&&(t[zn]|=1024),wy(t)&&Sy(t)}function Sy(t){t[zc].changeDetectionScheduler?.notify(0);let n=Lu(t);for(;null!==n&&!(8192&n[zn])&&(n[zn]|=8192,tS(n));)n=Lu(n)}function Oy(t,n){if(!(256&~t[zn]))throw new et(911,!1);null===t[Qd]&&(t[Qd]=[]),t[Qd].push(n)}function Lu(t){const n=t[Io];return zs(n)?n[Io]:n}const Qn={lFrame:QF(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let PF=!1;function RF(){return Qn.bindingsEnabled}function b1(){return null!==Qn.skipHydrationRootTNode}function Ct(){return Qn.lFrame.lView}function vi(){return Qn.lFrame.tView}function ne(t){return Qn.lFrame.contextLView=t,t[Ir]}function ie(t){return Qn.lFrame.contextLView=null,t}function ur(){let t=NF();for(;null!==t&&64===t.type;)t=t.parent;return t}function NF(){return Qn.lFrame.currentTNode}function Yl(t,n){const e=Qn.lFrame;e.currentTNode=t,e.isParent=n}function oS(){return Qn.lFrame.isParent}function sS(){Qn.lFrame.isParent=!1}function VF(){return PF}function BF(t){PF=t}function ra(){const t=Qn.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Wl(){return Qn.lFrame.bindingIndex++}function Vu(t){const n=Qn.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function w3e(t,n){const e=Qn.lFrame;e.bindingIndex=e.bindingRootIndex=t,aS(n)}function aS(t){Qn.lFrame.currentDirectiveIndex=t}function lS(t){const n=Qn.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function cS(){return Qn.lFrame.currentQueryIndex}function ky(t){Qn.lFrame.currentQueryIndex=t}function O3e(t){const n=t[Vt];return 2===n.type?n.declTNode:1===n.type?t[hs]:null}function $F(t,n,e){if(e&Mi.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Mi.Host||(r=O3e(o),null===r||(o=o[Uf],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Qn.lFrame=UF();return i.currentTNode=n,i.lView=t,!0}function uS(t){const n=UF(),e=t[Vt];Qn.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function UF(){const t=Qn.lFrame,n=null===t?null:t.child;return null===n?QF(t):n}function QF(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function qF(){const t=Qn.lFrame;return Qn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const YF=qF;function dS(){const t=qF();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ps(){return Qn.lFrame.selectedIndex}function C1(t){Qn.lFrame.selectedIndex=t}function Pr(){const t=Qn.lFrame;return sg(t.tView,t.selectedIndex)}function Ey(){Qn.lFrame.currentNamespace="svg"}let GF=!0;function lg(){return GF}function Ic(t){GF=t}function xy(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),null!=u&&(t.destroyHooks??=[]).push(e,u)}}function My(t,n,e){ZF(t,n,3,e)}function zy(t,n,e,i){(3&t[zn])===e&&ZF(t,n,e,i)}function hS(t,n){let e=t[zn];(3&e)===n&&(e&=16383,e+=1,t[zn]=e)}function ZF(t,n,e,i){const o=i??-1,s=n.length-1;let a=0;for(let l=void 0!==i?65535&t[Qf]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[Qf]+=65536),(a<o||-1==o)&&(z3e(t,e,n,l),t[Qf]=(4294901760&t[Qf])+l+2),l++}function KF(t,n){Ac(4,t,n);const e=F(null);try{n.call(t)}finally{F(e),Ac(5,t,n)}}function z3e(t,n,e,i){const r=e[i]<0,o=e[i+1],a=t[r?-e[i]:e[i]];r?t[zn]>>14<t[Qf]>>16&&(3&t[zn])===n&&(t[zn]+=16384,KF(a,o)):KF(a,o)}const Wf=-1;class cg{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}const fS={};class w1{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Lf(i);const r=this.injector.get(n,fS,i);return r!==fS||e===fS?r:this.parentInjector.get(n,e,i)}}function mS(t){return t!==Wf}function ug(t){return 32767&t}function dg(t,n){let e=function R3e(t){return t>>16}(t),i=n;for(;e>0;)i=i[Uf],e--;return i}let gS=!0;function Dy(t){const n=gS;return gS=t,n}const JF=255,eV=5;let L3e=0;const Pc={};function Ay(t,n){const e=tV(t,n);if(-1!==e)return e;const i=n[Vt];i.firstCreatePass&&(t.injectorIndex=n.length,yS(i.data,t),yS(n,null),yS(i.blueprint,null));const r=Iy(t,n),o=t.injectorIndex;if(mS(r)){const s=ug(r),a=dg(r,n),l=a[Vt].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function yS(t,n){t.push(0,0,0,0,0,0,0,0,n)}function tV(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Iy(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=lV(r),null===i)return Wf;if(e++,r=r[Uf],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Wf}function vS(t,n,e){!function F3e(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(p1)&&(i=e[p1]),null==i&&(i=e[p1]=L3e++);const r=i&JF;n.data[t+(r>>eV)]|=1<<r}(t,n,e)}function nV(t,n,e){if(e&Mi.Optional||void 0!==t)return t;Wm()}function iV(t,n,e,i){if(e&Mi.Optional&&void 0===i&&(i=null),!(e&(Mi.Self|Mi.Host))){const r=t[Po],o=Es(void 0);try{return r?r.get(n,i,e&Mi.Optional):ay(n,i,e&Mi.Optional)}finally{Es(o)}}return nV(i,0,e)}function rV(t,n,e,i=Mi.Default,r){if(null!==t){if(2048&n[zn]&&!(i&Mi.Self)){const s=function $3e(t,n,e,i,r){let o=t,s=n;for(;null!==o&&null!==s&&2048&s[zn]&&!(512&s[zn]);){const a=oV(o,s,e,i|Mi.Self,Pc);if(a!==Pc)return a;let l=o.parent;if(!l){const c=s[bF];if(c){const u=c.get(e,Pc,i);if(u!==Pc)return u}l=lV(s),s=s[Uf]}o=l}return r}(t,n,e,i,Pc);if(s!==Pc)return s}const o=oV(t,n,e,i,Pc);if(o!==Pc)return o}return iV(n,e,i,r)}function oV(t,n,e,i,r){const o=function H3e(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(p1)?t[p1]:void 0;return"number"==typeof n?n>=0?n&JF:j3e:n}(e);if("function"==typeof o){if(!$F(n,t,i))return i&Mi.Host?nV(r,0,i):iV(n,e,i,r);try{let s;if(s=o(i),null!=s||i&Mi.Optional)return s;Wm()}finally{YF()}}else if("number"==typeof o){let s=null,a=tV(t,n),l=Wf,c=i&Mi.Host?n[io][hs]:null;for((-1===a||i&Mi.SkipSelf)&&(l=-1===a?Iy(t,n):n[a+8],l!==Wf&&aV(i,!1)?(s=n[Vt],a=ug(l),n=dg(l,n)):a=-1);-1!==a;){const u=n[Vt];if(sV(o,a,u.data)){const h=B3e(a,n,e,s,i,c);if(h!==Pc)return h}l=n[a+8],l!==Wf&&aV(i,n[Vt].data[a+8]===c)&&sV(o,a,n)?(s=u,a=ug(l),n=dg(l,n)):a=-1}}return r}function B3e(t,n,e,i,r,o){const s=n[Vt],a=s.data[t+8],u=Py(a,s,e,null==i?v1(a)&&gS:i!=s&&!!(3&a.type),r&Mi.Host&&o===a);return null!==u?S1(n,s,u,a):Pc}function Py(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,f=r?a+u:t.directiveEnd;for(let m=i?a:a+u;m<f;m++){const E=s[m];if(m<l&&e===E||m>=l&&E.type===e)return m}if(r){const m=s[l];if(m&&ql(m)&&m.type===e)return l}return null}function S1(t,n,e,i){let r=t[e];const o=n.data;if(function D3e(t){return t instanceof cg}(r)){const s=r;s.resolving&&function Pw(t,n){throw n&&n.join(" > "),new et(-200,t)}(function Bi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():jn(t)}(o[e]));const a=Dy(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Es(s.injectImpl):null;$F(t,i,Mi.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function M3e(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=kF(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],n)}finally{null!==c&&Es(c),Dy(a),s.resolving=!1,YF()}}return r}function sV(t,n,e){return!!(e[n+(t>>eV)]&1<<t)}function aV(t,n){return!(t&Mi.Self||t&Mi.Host&&n)}class Wo{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return rV(this._tNode,this._lView,n,Lf(i),e)}}function j3e(){return new Wo(ur(),Ct())}function dr(t){return cr(()=>{const n=t.prototype.constructor,e=n[_l]||_S(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[_l]||_S(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function _S(t){return Pu(t)?()=>{const n=_S(An(t));return n&&n()}:ut(t)}function lV(t){const n=t[Vt],e=n.type;return 2===e?n.declTNode:1===e?t[hs]:null}function pV(t,n=null,e=null,i){const r=fV(t,n,e,i);return r.resolveInjectorInitializers(),r}function fV(t,n=null,e=null,i,r=new Set){const o=[e||qi,B4e(t)];return i=i||("object"==typeof t?void 0:rn(t)),new Bf(o,n||my(),i||null,r)}class gr{static{this.THROW_IF_NOT_FOUND=Hd}static{this.NULL=new uy}static create(n,e){if(Array.isArray(n))return pV({name:""},e,n,"");{const i=n.name??"";return pV({name:i},n.parent,n.providers,i)}}static{this.\u0275prov=ot({token:gr,providedIn:"any",factory:()=>Ee(nF)})}static{this.__NG_ELEMENT_ID__=-1}}new rt("").__NG_ELEMENT_ID__=t=>{const n=ur();if(null===n)throw new et(204,!1);if(2&n.type)return n.value;if(t&Mi.Optional)return null;throw new et(204,!1)};function CS(t){return t.ngOriginalError}const gV=!0;let Kf=(()=>{class t{static{this.__NG_ELEMENT_ID__=J3e}static{this.__NG_ENV_ID__=e=>e}}return t})();class X3e extends Kf{constructor(n){super(),this._lView=n}onDestroy(n){return Oy(this._lView,n),()=>function iS(t,n){if(null===t[Qd])return;const e=t[Qd].indexOf(n);-1!==e&&t[Qd].splice(e,1)}(this._lView,n)}}function J3e(){return new X3e(Ct())}let Bu=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Fe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=ot({token:t,providedIn:"root",factory:()=>new t})}}return t})();const Se=class e8e extends _e{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,gF()&&(this.destroyRef=ht(Kf,{optional:!0})??void 0,this.pendingTasks=ht(Bu,{optional:!0})??void 0)}emit(n){const e=F(null);try{super.next(n)}finally{F(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Le.yU&&n.add(a),a}wrapInTimeout(n){return e=>{const i=this.pendingTasks?.add();setTimeout(()=>{n(e),void 0!==i&&this.pendingTasks?.remove(i)})}}};function Ny(...t){}function yV(t){let n,e;function i(){t=Ny;try{void 0!==e&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(e),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),"function"==typeof requestAnimationFrame&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function vV(t){return queueMicrotask(()=>t()),()=>{t=Ny}}const wS="isAngularZone",Ly=wS+"_ID";let t8e=0;class Ut{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Se(!1),this.onMicrotaskEmpty=new Se(!1),this.onStable=new Se(!1),this.onError=new Se(!1);const{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=gV}=n;if(typeof Zone>"u")throw new et(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,function r8e(t){const n=()=>{!function i8e(t){function n(){yV(()=>{t.callbackScheduled=!1,OS(t),t.isCheckStableRunning=!0,SS(t),t.isCheckStableRunning=!1})}t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),OS(t))}(t)},e=t8e++;t._inner=t._inner.fork({name:"angular",properties:{[wS]:!0,[Ly]:e,[Ly+e]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(function o8e(t){return CV(t,"__ignore_ng_zone__")}(l))return i.invokeTask(o,s,a,l);try{return _V(t),i.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&n(),bV(t)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return _V(t),i.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!function s8e(t){return CV(t,"__scheduler_tick__")}(l)&&n(),bV(t)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,OS(t),SS(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(wS)}static assertInAngularZone(){if(!Ut.isInAngularZone())throw new et(909,!1)}static assertNotInAngularZone(){if(Ut.isInAngularZone())throw new et(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,n8e,Ny,Ny);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const n8e={};function SS(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function OS(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&!0===t.callbackScheduled)}function _V(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bV(t){t._nesting--,SS(t)}class TS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Se,this.onMicrotaskEmpty=new Se,this.onStable=new Se,this.onError=new Se}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}function CV(t,n){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0]?.data?.[n]}class Qa{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&CS(n);for(;e&&CS(e);)e=CS(e);return e||null}}const l8e=new rt("",{providedIn:"root",factory:()=>{const t=ht(Ut),n=ht(Qa);return e=>t.runOutsideAngular(()=>n.handleError(e))}});class wV{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=ht(Qa,{optional:!0}),this.destroyRef=ht(Kf),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new et(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{const e=this.listeners?.indexOf(n);void 0!==e&&-1!==e&&this.listeners?.splice(e,1)}}}emit(n){if(this.destroyed)throw new et(953,!1);if(null===this.listeners)return;const e=F(null);try{for(const i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{F(e)}}}function Hu(t){return new wV}function SV(t,n){return Ao(t,n)}const is=(SV.required=function c8e(t){return Ao(Kn,t)},SV);function u8e(){return Xf(ur(),Ct())}function Xf(t,n){return new Kt(ia(t,n))}let Kt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=u8e}}return t})();function OV(t){return t instanceof Kt?t.nativeElement:t}function d8e(){return this._results[Symbol.iterator]()}class O1{get changes(){return this._changes??=new Se}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=O1.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=d8e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function _t(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function wt(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}n