@letscooee/web-sdk 9.5.0 → 9.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
4
4
  `);return r>=0?n.slice(0,r):n}function VE(e,t){return e?t?`${e} ${t}`:e:t||""}var fN=Ct({__forward_ref__:Ct});function Fm(e){return e.__forward_ref__=Fm,e.toString=function(){return or(this())},e}function ir(e){return Rw(e)?e():e}function Rw(e){return typeof e=="function"&&e.hasOwnProperty(fN)&&e.__forward_ref__===Fm}function ie(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Bm(e){return UE(e,Aw)||UE(e,Mw)}function UE(e,t){return e.hasOwnProperty(t)?e[t]:null}function pN(e){return e&&(e[Aw]||e[Mw])||null}function jE(e){return e&&(e.hasOwnProperty(HE)||e.hasOwnProperty(hN))?e[HE]:null}var Aw=Ct({\u0275prov:Ct}),HE=Ct({\u0275inj:Ct}),Mw=Ct({ngInjectableDef:Ct}),hN=Ct({ngInjectorDef:Ct}),ve=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=ie({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ow(e){return e&&!!e.\u0275providers}var mN=Ct({\u0275cmp:Ct}),gN=Ct({\u0275dir:Ct}),yN=Ct({\u0275pipe:Ct}),Nu=Ct({\u0275fac:Ct}),vc=Ct({__NG_ELEMENT_ID__:Ct}),$E=Ct({__NG_ENV_ID__:Ct});function Oc(e){return typeof e=="string"?e:e==null?"":String(e)}function vN(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Oc(e)}function _N(e,t){throw new Re(-200,e)}function Vm(e,t){throw new Re(-201,!1)}var Ge=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ge||{}),Oh;function Pw(){return Oh}function Vn(e){let t=Oh;return Oh=e,t}function kw(e,t,n){let r=Bm(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&Ge.Optional)return null;if(t!==void 0)return t;Vm(e,"Injector")}var EN={},Ec=EN,Ph="__NG_DI_FLAG__",Ru="ngTempTokenPath",wN="ngTokenPath",bN=/\n/gm,CN="\u0275",WE="__source",Os;function SN(){return Os}function ji(e){let t=Os;return Os=e,t}function IN(e,t=Ge.Default){if(Os===void 0)throw new Re(-203,!1);return Os===null?kw(e,void 0,t):Os.get(e,t&Ge.Optional?null:void 0,t)}function Ze(e,t=Ge.Default){return(Pw()||IN)(ir(e),t)}function P(e,t=Ge.Default){return Ze(e,Qu(t))}function Qu(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function kh(e){let t=[];for(let n=0;n<e.length;n++){let r=ir(e[n]);if(Array.isArray(r)){if(r.length===0)throw new Re(900,!1);let i,o=Ge.Default;for(let s=0;s<r.length;s++){let a=r[s],l=DN(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}t.push(Ze(i,o))}else t.push(Ze(r))}return t}function Lw(e,t){return e[Ph]=t,e.prototype[Ph]=t,e}function DN(e){return e[Ph]}function TN(e,t,n,r){let i=e[Ru];throw t[WE]&&i.unshift(t[WE]),e.message=xN(`
5
5
  `+e.message,i,n,r),e[wN]=i,e[Ru]=null,e}function xN(e,t,n,r=null){e=e&&e.charAt(0)===`
6
6
  `&&e.charAt(1)==CN?e.slice(2):e;let i=or(t);if(Array.isArray(t))i=t.map(or).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):or(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(bN,`
7
- `)}`}var Um=Lw(Nw("Optional"),8),NN=Lw(Nw("SkipSelf"),4);function No(e,t){return e.hasOwnProperty(Nu)?e[Nu]:null}function RN(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function AN(e){return e.flat(Number.POSITIVE_INFINITY)}function jm(e,t){e.forEach(n=>Array.isArray(n)?jm(n,t):t(n))}function Fw(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Au(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function MN(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function ON(e,t,n){let r=Pc(e,t);return r>=0?e[r|1]=n:(r=~r,MN(e,r,t,n)),r}function wh(e,t){let n=Pc(e,t);if(n>=0)return e[n|1]}function Pc(e,t){return PN(e,t,1)}function PN(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var Ro={},Wi=[],wc=new ve(""),Bw=new ve("",-1),Vw=new ve(""),Mu=class{get(e,t=Ec){if(t===Ec){let n=new Error(`NullInjectorError: No provider for ${or(e)}!`);throw n.name="NullInjectorError",n}return t}};function Ao(e){return e[mN]||null}function Uw(e){return e[gN]||null}function jw(e){return e[yN]||null}function kN(e){let t=Ao(e)||Uw(e)||jw(e);return t!==null&&t.standalone}function Hw(e){return{\u0275providers:e}}function LN(...e){return{\u0275providers:$w(!0,e),\u0275fromNgModule:!0}}function $w(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return jm(t,s=>{let a=s;Lh(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Ww(i,o),n}function Ww(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];Hm(i,o=>{t(o,r)})}}function Lh(e,t,n,r){if(e=ir(e),!e)return!1;let i=null,o=jE(e),s=!o&&Ao(e);if(!o&&!s){let l=e.ngModule;if(o=jE(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Lh(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{jm(o.imports,d=>{Lh(d,t,n,r)&&(c||=[],c.push(d))})}finally{}c!==void 0&&Ww(c,t)}if(!a){let c=No(i)||(()=>new i);t({provide:i,useFactory:c,deps:Wi},i),t({provide:Vw,useValue:i,multi:!0},i),t({provide:wc,useValue:()=>Ze(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=e;Hm(l,d=>{t(d,c)})}}else return!1;return i!==e&&e.providers!==void 0}function Hm(e,t){for(let n of e)Ow(n)&&(n=n.\u0275providers),Array.isArray(n)?Hm(n,t):t(n)}var FN=Ct({provide:String,useValue:Ct});function Gw(e){return e!==null&&typeof e=="object"&&FN in e}function BN(e){return!!(e&&e.useExisting)}function VN(e){return!!(e&&e.useFactory)}function Fh(e){return typeof e=="function"}var ed=new ve(""),Cu={},UN={},bh;function td(){return bh===void 0&&(bh=new Mu),bh}var Un=class{},bc=class extends Un{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Vh(e,o=>this.processProvider(o)),this.records.set(Bw,Ns(void 0,this)),r.has("environment")&&this.records.set(Un,Ns(void 0,this));let i=this.records.get(ed);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Vw,Wi,Ge.Self))}destroy(){gc(this),this._destroyed=!0;let e=Ve(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Ve(e)}}onDestroy(e){return gc(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){gc(this);let t=ji(this),n=Vn(void 0),r;try{return e()}finally{ji(t),Vn(n)}}get(e,t=Ec,n=Ge.Default){if(gc(this),e.hasOwnProperty($E))return e[$E](this);n=Qu(n);let r,i=ji(this),o=Vn(void 0);try{if(!(n&Ge.SkipSelf)){let a=this.records.get(e);if(a===void 0){let l=zN(e)&&Bm(e);l&&this.injectableDefInScope(l)?a=Ns(Bh(e),Cu):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let s=n&Ge.Self?td():this.parent;return t=n&Ge.Optional&&t===Ec?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[Ru]=s[Ru]||[]).unshift(or(e)),i)throw s;return TN(s,e,"R3InjectorError",this.source)}else throw s}finally{Vn(o),ji(i)}}resolveInjectorInitializers(){let e=Ve(null),t=ji(this),n=Vn(void 0),r;try{let i=this.get(wc,Wi,Ge.Self);for(let o of i)o()}finally{ji(t),Vn(n),Ve(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(or(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=ir(e);let t=Fh(e)?e:ir(e&&e.provide),n=HN(e);if(!Fh(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Ns(void 0,Cu,!0),r.factory=()=>kh(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=Ve(null);try{return t.value===Cu&&(t.value=UN,t.value=t.factory()),typeof t.value=="object"&&t.value&&GN(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{Ve(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=ir(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Bh(e){let t=Bm(e),n=t!==null?t.factory:No(e);if(n!==null)return n;if(e instanceof ve)throw new Re(204,!1);if(e instanceof Function)return jN(e);throw new Re(204,!1)}function jN(e){if(e.length>0)throw new Re(204,!1);let t=pN(e);return t!==null?()=>t.factory(e):()=>new e}function HN(e){if(Gw(e))return Ns(void 0,e.useValue);{let t=$N(e);return Ns(t,Cu)}}function $N(e,t,n){let r;if(Fh(e)){let i=ir(e);return No(i)||Bh(i)}else if(Gw(e))r=()=>ir(e.useValue);else if(VN(e))r=()=>e.useFactory(...kh(e.deps||[]));else if(BN(e))r=()=>Ze(ir(e.useExisting));else{let i=ir(e&&(e.useClass||e.provide));if(WN(e))r=()=>new i(...kh(e.deps));else return No(i)||Bh(i)}return r}function gc(e){if(e.destroyed)throw new Re(205,!1)}function Ns(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function WN(e){return!!e.deps}function GN(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zN(e){return typeof e=="function"||typeof e=="object"&&e instanceof ve}function Vh(e,t){for(let n of e)Array.isArray(n)?Vh(n,t):n&&Ow(n)?Vh(n.\u0275providers,t):t(n)}function zw(e,t){e instanceof bc&&gc(e);let n,r=ji(e),i=Vn(void 0);try{return t()}finally{ji(r),Vn(i)}}function qw(){return Pw()!==void 0||SN()!=null}function Yw(e){if(!qw())throw new Re(-203,!1)}function qN(e){return typeof e=="function"}var _i=0,Se=1,ye=2,Sn=3,Er=4,br=5,Cc=6,Ou=7,en=8,Sc=9,di=10,an=11,Ic=12,GE=13,Us=14,wr=15,Mo=16,Rs=17,fi=18,nd=19,Kw=20,Hi=21,Ch=22,Pu=23,zn=24,Ps=25,vn=26,Zw=1,Oo=7,ku=8,Ls=9,Cn=10;function $i(e){return Array.isArray(e)&&typeof e[Zw]=="object"}function Ei(e){return Array.isArray(e)&&e[Zw]===!0}function Xw(e){return(e.flags&4)!==0}function js(e){return e.componentOffset>-1}function $m(e){return(e.flags&1)===1}function pi(e){return!!e.template}function Lu(e){return(e[ye]&512)!==0}function kc(e){return(e[ye]&256)===256}var Uh=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function Jw(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function YN(e){return e.type.prototype.ngOnChanges&&(e.setInput=ZN),KN}function KN(){let e=eb(this),t=e?.current;if(t){let n=e.previous;if(n===Ro)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ZN(e,t,n,r,i){let o=this.declaredInputs[r],s=eb(e)||XN(e,{previous:Ro,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new Uh(c&&c.currentValue,n,l===Ro),Jw(e,t,i,n)}var Qw="__ngSimpleChanges__";function eb(e){return e[Qw]||null}function XN(e,t){return e[Qw]=t}var zE=null,pt=function(e,t=null,n){zE?.(e,t,n)},tb="svg",JN="math";function Pr(e){for(;Array.isArray(e);)e=e[_i];return e}function nb(e,t){return Pr(t[e])}function Vr(e,t){return Pr(t[e.index])}function Wm(e,t){return e.data[t]}function Gm(e,t){return e[t]}function kr(e,t){let n=t[e];return $i(n)?n:n[_i]}function QN(e){return(e[ye]&4)===4}function zm(e){return(e[ye]&128)===128}function eR(e){return Ei(e[Sn])}function Fs(e,t){return t==null?null:e[t]}function rb(e){e[Rs]=0}function qm(e){e[ye]&1024||(e[ye]|=1024,zm(e)&&Lc(e))}function tR(e,t){for(;e>0;)t=t[Us],e--;return t}function rd(e){return!!(e[ye]&9216||e[zn]?.dirty)}function jh(e){e[di].changeDetectionScheduler?.notify(8),e[ye]&64&&(e[ye]|=1024),rd(e)&&Lc(e)}function Lc(e){e[di].changeDetectionScheduler?.notify(0);let t=Po(e);for(;t!==null&&!(t[ye]&8192||(t[ye]|=8192,!zm(t)));)t=Po(t)}function ib(e,t){if(kc(e))throw new Re(911,!1);e[Hi]===null&&(e[Hi]=[]),e[Hi].push(t)}function nR(e,t){if(e[Hi]===null)return;let n=e[Hi].indexOf(t);n!==-1&&e[Hi].splice(n,1)}function Po(e){let t=e[Sn];return Ei(t)?t[Sn]:t}function ob(e){return e[Ou]??=[]}function sb(e){return e.cleanup??=[]}function rR(e,t,n,r){let i=ob(t);i.push(n),e.firstCreatePass&&sb(e).push(r,i.length-1)}var Ie={lFrame:hb(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Hh=!1;function iR(){return Ie.lFrame.elementDepthCount}function oR(){Ie.lFrame.elementDepthCount++}function sR(){Ie.lFrame.elementDepthCount--}function ab(){return Ie.bindingsEnabled}function aR(){return Ie.skipHydrationRootTNode!==null}function cR(e){return Ie.skipHydrationRootTNode===e}function lR(){Ie.skipHydrationRootTNode=null}function ze(){return Ie.lFrame.lView}function In(){return Ie.lFrame.tView}function Je(e){return Ie.lFrame.contextLView=e,e[en]}function Qe(e){return Ie.lFrame.contextLView=null,e}function Cr(){let e=cb();for(;e!==null&&e.type===64;)e=e.parent;return e}function cb(){return Ie.lFrame.currentTNode}function uR(){let e=Ie.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Hs(e,t){let n=Ie.lFrame;n.currentTNode=e,n.isParent=t}function lb(){return Ie.lFrame.isParent}function dR(){Ie.lFrame.isParent=!1}function fR(){return Ie.lFrame.contextLView}function ub(){return Hh}function qE(e){let t=Hh;return Hh=e,t}function Ym(){let e=Ie.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function pR(e){return Ie.lFrame.bindingIndex=e}function Fc(){return Ie.lFrame.bindingIndex++}function hR(e){let t=Ie.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mR(){return Ie.lFrame.inI18n}function gR(e,t){let n=Ie.lFrame;n.bindingIndex=n.bindingRootIndex=e,$h(t)}function yR(){return Ie.lFrame.currentDirectiveIndex}function $h(e){Ie.lFrame.currentDirectiveIndex=e}function vR(e){let t=Ie.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function db(){return Ie.lFrame.currentQueryIndex}function Km(e){Ie.lFrame.currentQueryIndex=e}function _R(e){let t=e[Se];return t.type===2?t.declTNode:t.type===1?e[br]:null}function fb(e,t,n){if(n&Ge.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&Ge.Host))&&(i=_R(o),!(i===null||(o=o[Us],i.type&10))););if(i===null)return!1;t=i,e=o}let r=Ie.lFrame=pb();return r.currentTNode=t,r.lView=e,!0}function Zm(e){let t=pb(),n=e[Se];Ie.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function pb(){let e=Ie.lFrame,t=e===null?null:e.child;return t===null?hb(e):t}function hb(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function mb(){let e=Ie.lFrame;return Ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var gb=mb;function Xm(){let e=mb();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 ER(e){return(Ie.lFrame.contextLView=tR(e,Ie.lFrame.contextLView))[en]}function zi(){return Ie.lFrame.selectedIndex}function ko(e){Ie.lFrame.selectedIndex=e}function Jm(){let e=Ie.lFrame;return Wm(e.tView,e.selectedIndex)}function Sr(){Ie.lFrame.currentNamespace=tb}function $s(){wR()}function wR(){Ie.lFrame.currentNamespace=null}function bR(){return Ie.lFrame.currentNamespace}var yb=!0;function Qm(){return yb}function eg(e){yb=e}function CR(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=YN(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function vb(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:l,ngOnDestroy:c}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),a&&(e.viewHooks??=[]).push(-n,a),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),c!=null&&(e.destroyHooks??=[]).push(n,c)}}function Su(e,t,n){_b(e,t,3,n)}function Iu(e,t,n,r){(e[ye]&3)===n&&_b(e,t,n,r)}function Sh(e,t){let n=e[ye];(n&3)===t&&(n&=16383,n+=1,e[ye]=n)}function _b(e,t,n,r){let i=r!==void 0?e[Rs]&65535:0,o=r??-1,s=t.length-1,a=0;for(let l=i;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[Rs]+=65536),(a<o||o==-1)&&(SR(e,n,t,l),e[Rs]=(e[Rs]&4294901760)+l+2),l++}function YE(e,t){pt(4,e,t);let n=Ve(null);try{t.call(e)}finally{Ve(n),pt(5,e,t)}}function SR(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[ye]>>14<e[Rs]>>16&&(e[ye]&3)===t&&(e[ye]+=16384,YE(a,o)):YE(a,o)}var ks=-1,Dc=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function IR(e){return e instanceof Dc}function DR(e){return(e.flags&8)!==0}function TR(e){return(e.flags&16)!==0}function xR(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];RR(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function NR(e){return e===3||e===4||e===6}function RR(e){return e.charCodeAt(0)===64}function Tc(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?KE(e,n,i,null,t[++r]):KE(e,n,i,null,null))}}return e}function KE(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var Ih={},Wh=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Qu(n);let r=this.injector.get(e,Ih,n);return r!==Ih||t===Ih?r:this.parentInjector.get(e,t,n)}};function Eb(e){return e!==ks}function Fu(e){return e&32767}function AR(e){return e>>16}function Bu(e,t){let n=AR(e),r=t;for(;n>0;)r=r[Us],n--;return r}var Gh=!0;function Vu(e){let t=Gh;return Gh=e,t}var MR=256,wb=MR-1,bb=5,OR=0,Or={};function PR(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vc)&&(r=n[vc]),r==null&&(r=n[vc]=OR++);let i=r&wb,o=1<<i;t.data[e+(i>>bb)]|=o}function Cb(e,t){let n=Sb(e,t);if(n!==-1)return n;let r=t[Se];r.firstCreatePass&&(e.injectorIndex=t.length,Dh(r.data,e),Dh(t,null),Dh(r.blueprint,null));let i=tg(e,t),o=e.injectorIndex;if(Eb(i)){let s=Fu(i),a=Bu(i,t),l=a[Se].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=i,o}function Dh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Sb(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function tg(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Nb(i),r===null)return ks;if(n++,i=i[Us],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ks}function kR(e,t,n){PR(e,t,n)}function Ib(e,t,n){if(n&Ge.Optional||e!==void 0)return e;Vm(t,"NodeInjector")}function Db(e,t,n,r){if(n&Ge.Optional&&r===void 0&&(r=null),(n&(Ge.Self|Ge.Host))===0){let i=e[Sc],o=Vn(void 0);try{return i?i.get(t,r,n&Ge.Optional):kw(t,r,n&Ge.Optional)}finally{Vn(o)}}return Ib(r,t,n)}function Tb(e,t,n,r=Ge.Default,i){if(e!==null){if(t[ye]&2048&&!(r&Ge.Self)){let s=VR(e,t,n,r,Or);if(s!==Or)return s}let o=xb(e,t,n,r,Or);if(o!==Or)return o}return Db(t,n,r,i)}function xb(e,t,n,r,i){let o=FR(n);if(typeof o=="function"){if(!fb(t,e,r))return r&Ge.Host?Ib(i,n,r):Db(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&Ge.Optional))Vm(n);else return s}finally{gb()}}else if(typeof o=="number"){let s=null,a=Sb(e,t),l=ks,c=r&Ge.Host?t[wr][br]:null;for((a===-1||r&Ge.SkipSelf)&&(l=a===-1?tg(e,t):t[a+8],l===ks||!XE(r,!1)?a=-1:(s=t[Se],a=Fu(l),t=Bu(l,t)));a!==-1;){let d=t[Se];if(ZE(o,a,d.data)){let h=LR(a,t,n,s,r,c);if(h!==Or)return h}l=t[a+8],l!==ks&&XE(r,t[Se].data[a+8]===c)&&ZE(o,a,t)?(s=d,a=Fu(l),t=Bu(l,t)):a=-1}}return i}function LR(e,t,n,r,i,o){let s=t[Se],a=s.data[e+8],l=r==null?js(a)&&Gh:r!=s&&(a.type&3)!==0,c=i&Ge.Host&&o===a,d=Du(a,s,n,l,c);return d!==null?Uu(t,s,d,a):Or}function Du(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,c=e.directiveEnd,d=o>>20,h=r?a:a+d,f=i?a+d:c;for(let g=h;g<f;g++){let m=s[g];if(g<l&&n===m||g>=l&&m.type===n)return g}if(i){let g=s[l];if(g&&pi(g)&&g.type===n)return l}return null}function Uu(e,t,n,r){let i=e[n],o=t.data;if(IR(i)){let s=i;s.resolving&&_N(vN(o[n]));let a=Vu(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Vn(s.injectImpl):null,d=fb(e,r,Ge.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&CR(n,o[n],t)}finally{c!==null&&Vn(c),Vu(a),s.resolving=!1,gb()}}return i}function FR(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vc)?e[vc]:void 0;return typeof t=="number"?t>=0?t&wb:BR:t}function ZE(e,t,n){let r=1<<e;return!!(n[t+(e>>bb)]&r)}function XE(e,t){return!(e&Ge.Self)&&!(e&Ge.Host&&t)}var xo=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Tb(this._tNode,this._lView,e,Qu(n),t)}};function BR(){return new xo(Cr(),ze())}function id(e){return Ju(()=>{let t=e.prototype.constructor,n=t[Nu]||zh(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Nu]||zh(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function zh(e){return Rw(e)?()=>{let t=zh(ir(e));return t&&t()}:No(e)}function VR(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[ye]&2048&&!Lu(s);){let a=xb(o,s,n,r|Ge.Self,Or);if(a!==Or)return a;let l=o.parent;if(!l){let c=s[Kw];if(c){let d=c.get(n,Or,r);if(d!==Or)return d}l=Nb(s),s=s[Us]}o=l}return i}function Nb(e){let t=e[Se],n=t.type;return n===2?t.declTNode:n===1?e[br]:null}function JE(e,t=null,n=null,r){let i=UR(e,t,n,r);return i.resolveInjectorInitializers(),i}function UR(e,t=null,n=null,r,i=new Set){let o=[n||Wi,LN(e)];return r=r||(typeof e=="object"?void 0:or(e)),new bc(o,t||td(),r||null,i)}var bt=class A0{static THROW_IF_NOT_FOUND=Ec;static NULL=new Mu;static create(t,n){if(Array.isArray(t))return JE({name:""},n,t,"");{let r=t.name??"";return JE({name:r},t.parent,t.providers,r)}}static \u0275prov=ie({token:A0,providedIn:"any",factory:()=>Ze(Bw)});static __NG_ELEMENT_ID__=-1},jR=new ve("");jR.__NG_ELEMENT_ID__=e=>{let t=Cr();if(t===null)throw new Re(204,!1);if(t.type&2)return t.value;if(e&Ge.Optional)return null;throw new Re(204,!1)};var Rb=!1,ng=(()=>{class e{static __NG_ELEMENT_ID__=HR;static __NG_ENV_ID__=n=>n}return e})(),qh=class extends ng{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return ib(this._lView,e),()=>nR(this._lView,e)}};function HR(){return new qh(ze())}var hi=class{},od=new ve("",{providedIn:"root",factory:()=>!1}),Ab=new ve(""),rg=new ve(""),sd=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ui(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=ie({token:e,providedIn:"root",factory:()=>new e})}return e})(),Yh=class extends Ne{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,qw()&&(this.destroyRef=P(ng,{optional:!0})??void 0,this.pendingTasks=P(sd,{optional:!0})??void 0)}emit(e){let t=Ve(null);try{super.next(e)}finally{Ve(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let a=e;r=a.next?.bind(a),i=a.error?.bind(a),o=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return e instanceof Bt&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},yt=Yh;function ju(...e){}function Mb(e){let t,n;function r(){e=ju;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function QE(e){return queueMicrotask(()=>e()),()=>{e=ju}}var ig="isAngularZone",Hu=ig+"_ID",$R=0,Ke=class Cd{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new yt(!1);onMicrotaskEmpty=new yt(!1);onStable=new yt(!1);onError=new yt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Rb}=t;if(typeof Zone>"u")throw new Re(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,zR(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ig)===!0}static assertInAngularZone(){if(!Cd.isInAngularZone())throw new Re(909,!1)}static assertNotInAngularZone(){if(Cd.isInAngularZone())throw new Re(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,WR,ju,ju);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)}},WR={};function og(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function GR(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Mb(()=>{e.callbackScheduled=!1,Kh(e),e.isCheckStableRunning=!0,og(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Kh(e)}function zR(e){let t=()=>{GR(e)},n=$R++;e._inner=e._inner.fork({name:"angular",properties:{[ig]:!0,[Hu]:n,[Hu+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(qR(l))return r.invokeTask(o,s,a,l);try{return ew(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),tw(e)}},onInvoke:(r,i,o,s,a,l,c)=>{try{return ew(e),r.invoke(o,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!YR(l)&&t(),tw(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Kh(e),og(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Kh(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ew(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tw(e){e._nesting--,og(e)}var $u=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new yt;onMicrotaskEmpty=new yt;onStable=new yt;onError=new yt;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function qR(e){return Ob(e,"__ignore_ng_zone__")}function YR(e){return Ob(e,"__scheduler_tick__")}function Ob(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var mi=class{_console=console;handleError(e){this._console.error("ERROR",e)}},KR=new ve("",{providedIn:"root",factory:()=>{let e=P(Ke),t=P(mi);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function ZR(){return Ws(Cr(),ze())}function Ws(e,t){return new qt(Vr(e,t))}var qt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ZR}return e})();function XR(e){return e instanceof qt?e.nativeElement:e}function Gs(e,t){let n=sE(e),r=n[li];return t?.equal&&(r.equal=t.equal),n.set=i=>dh(r,i),n.update=i=>aE(r,i),n.asReadonly=JR.bind(n),n}function JR(){let e=this[li];if(e.readonlyFn===void 0){let t=()=>this();t[li]=e,e.readonlyFn=t}return e.readonlyFn}function QR(){return this._results[Symbol.iterator]()}var Zh=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Ne}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=AN(e);(this._changesDetected=!RN(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=QR};function Pb(e){return(e.flags&128)===128}var kb=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(kb||{}),Lb=new Map,eA=0;function tA(){return eA++}function nA(e){Lb.set(e[nd],e)}function Xh(e){Lb.delete(e[nd])}var nw="__ngContext__";function Bc(e,t){$i(t)?(e[nw]=t[nd],nA(t)):e[nw]=t}function Fb(e){return Vb(e[Ic])}function Bb(e){return Vb(e[Er])}function Vb(e){for(;e!==null&&!Ei(e);)e=e[Er];return e}var Jh;function Ub(e){Jh=e}function jb(){if(Jh!==void 0)return Jh;if(typeof document<"u")return document;throw new Re(210,!1)}var Vc=new ve("",{providedIn:"root",factory:()=>rA}),rA="ng",sg=new ve(""),Bo=new ve("",{providedIn:"platform",factory:()=>"unknown"}),Hb=new ve(""),ag=new ve("",{providedIn:"root",factory:()=>jb().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),iA="h",oA="b",$b=!1,sA=new ve("",{providedIn:"root",factory:()=>$b}),cg=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(cg||{}),zs=new ve(""),rw=new Set;function qi(e){rw.has(e)||(rw.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Wb=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=aA}return e})();function aA(){return new Wb(ze(),Cr())}var As=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(As||{}),Gb=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=ie({token:e,providedIn:"root",factory:()=>new e})}return e})(),cA=[As.EarlyRead,As.Write,As.MixedReadWrite,As.Read],lA=(()=>{class e{ngZone=P(Ke);scheduler=P(hi);errorHandler=P(mi,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){P(zs,{optional:!0})}execute(){let n=this.sequences.size>0;n&&pt(16),this.executing=!0;for(let r of cA)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&pt(17)}register(n){let{view:r}=n;r!==void 0?((r[Ps]??=[]).push(n),Lc(r),r[ye]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(cg.AFTER_NEXT_RENDER,n):n()}static \u0275prov=ie({token:e,providedIn:"root",factory:()=>new e})}return e})(),Qh=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,t,n,r,i,o=null){this.impl=e,this.hooks=t,this.view=n,this.once=r,this.snapshot=o,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[Ps];e&&(this.view[Ps]=e.filter(t=>t!==this))}};function lg(e,t){!t?.injector&&Yw(lg);let n=t?.injector??P(bt);return qi("NgAfterRender"),zb(e,n,t,!1)}function Yi(e,t){!t?.injector&&Yw(Yi);let n=t?.injector??P(bt);return qi("NgAfterNextRender"),zb(e,n,t,!0)}function uA(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function zb(e,t,n,r){let i=t.get(Gb);i.impl??=t.get(lA);let o=t.get(zs,null,{optional:!0}),s=n?.phase??As.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(ng):null,l=t.get(Wb,null,{optional:!0}),c=new Qh(i.impl,uA(e,s),l?.view,r,a,o?.snapshot(null));return i.impl.register(c),c}var dA=()=>null;function qb(e,t,n=!1){return dA(e,t,n)}function Yb(e,t){let n=e.contentQueries;if(n!==null){let r=Ve(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];Km(o),a.contentQueries(2,t[s],s)}}}finally{Ve(r)}}}function em(e,t,n){Km(0);let r=Ve(null);try{t(e,n)}finally{Ve(r)}}function Kb(e,t,n){if(Xw(t)){let r=Ve(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{Ve(r)}}}var Lr=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Lr||{}),_u;function fA(){if(_u===void 0&&(_u=null,_c.trustedTypes))try{_u=_c.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _u}function ad(e){return fA()?.createHTML(e)||e}var Eu;function pA(){if(Eu===void 0&&(Eu=null,_c.trustedTypes))try{Eu=_c.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Eu}function iw(e){return pA()?.createHTML(e)||e}var gi=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xw})`}},tm=class extends gi{getTypeName(){return"HTML"}},nm=class extends gi{getTypeName(){return"Style"}},rm=class extends gi{getTypeName(){return"Script"}},im=class extends gi{getTypeName(){return"URL"}},om=class extends gi{getTypeName(){return"ResourceURL"}};function Ur(e){return e instanceof gi?e.changingThisBreaksApplicationSecurity:e}function Ki(e,t){let n=hA(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${xw})`)}return n===t}function hA(e){return e instanceof gi&&e.getTypeName()||null}function Zb(e){return new tm(e)}function Xb(e){return new nm(e)}function Jb(e){return new rm(e)}function Qb(e){return new im(e)}function eC(e){return new om(e)}function mA(e){let t=new am(e);return gA()?new sm(t):t}var sm=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(ad(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},am=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=ad(e),t}};function gA(){try{return!!new window.DOMParser().parseFromString(ad(""),"text/html")}catch{return!1}}var yA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cd(e){return e=String(e),e.match(yA)?e:"unsafe:"+e}function wi(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Uc(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var tC=wi("area,br,col,hr,img,wbr"),nC=wi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rC=wi("rp,rt"),vA=Uc(rC,nC),_A=Uc(nC,wi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),EA=Uc(rC,wi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ow=Uc(tC,_A,EA,vA),iC=wi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wA=wi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bA=wi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),CA=Uc(iC,wA,bA),SA=wi("script,style,template"),cm=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=TA(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=DA(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=sw(e).toLowerCase();if(!ow.hasOwnProperty(t))return this.sanitizedSomething=!0,!SA.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!CA.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;iC[s]&&(a=cd(a)),this.buf.push(" ",o,'="',aw(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=sw(e).toLowerCase();ow.hasOwnProperty(t)&&!tC.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(aw(e))}};function IA(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function DA(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw oC(t);return t}function TA(e){let t=e.firstChild;if(t&&IA(e,t))throw oC(t);return t}function sw(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function oC(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var xA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NA=/([^\#-~ |!])/g;function aw(e){return e.replace(/&/g,"&amp;").replace(xA,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(NA,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var wu;function ug(e,t){let n=null;try{wu=wu||mA(e);let r=t?String(t):"";n=wu.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=wu.getInertBodyElement(r)}while(r!==o);let s=new cm().sanitizeChildren(cw(n)||n);return ad(s)}finally{if(n){let r=cw(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function cw(e){return"content"in e&&RA(e)?e.content:null}function RA(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var jr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(jr||{});function jc(e){let t=sC();return t?iw(t.sanitize(jr.HTML,e)||""):Ki(e,"HTML")?iw(Ur(e)):ug(jb(),Oc(e))}function cn(e){let t=sC();return t?t.sanitize(jr.URL,e)||"":Ki(e,"URL")?Ur(e):cd(Oc(e))}function sC(){let e=ze();return e&&e[di].sanitizer}function aC(e){return e.ownerDocument.defaultView}function AA(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var cC="ng-template";function MA(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&AA(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(dg(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function dg(e){return e.type===4&&e.value!==cC}function OA(e,t,n){let r=e.type===4&&!n?cC:e.value;return t===r}function PA(e,t,n){let r=4,i=e.attrs,o=i!==null?FA(i):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!_r(r)&&!_r(l))return!1;if(s&&_r(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!OA(e,l,n)||l===""&&t.length===1){if(_r(r))return!1;s=!0}}else if(r&8){if(i===null||!MA(e,i,l,n)){if(_r(r))return!1;s=!0}}else{let c=t[++a],d=kA(l,i,dg(e),n);if(d===-1){if(_r(r))return!1;s=!0;continue}if(c!==""){let h;if(d>o?h="":h=i[d+1].toLowerCase(),r&2&&c!==h){if(_r(r))return!1;s=!0}}}}return _r(r)||s}function _r(e){return(e&1)===0}function kA(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return BA(t,e)}function LA(e,t,n=!1){for(let r=0;r<t.length;r++)if(PA(e,t[r],n))return!0;return!1}function FA(e){for(let t=0;t<e.length;t++){let n=e[t];if(NR(n))return t}return e.length}function BA(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function lw(e,t){return e?":not("+t.trim()+")":t}function VA(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!_r(s)&&(t+=lw(o,i),i=""),r=s,o=o||!_r(r);n++}return i!==""&&(t+=lw(o,i)),t}function UA(e){return e.map(VA).join(",")}function jA(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!_r(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var bi={};function HA(e,t){return e.createText(t)}function $A(e,t,n){e.setValue(t,n)}function lC(e,t,n){return e.createElement(t,n)}function Wu(e,t,n,r,i){e.insertBefore(t,n,r,i)}function uC(e,t,n){e.appendChild(t,n)}function uw(e,t,n,r,i){r!==null?Wu(e,t,n,r,i):uC(e,t,n)}function WA(e,t,n){e.removeChild(null,t,n)}function GA(e,t,n){e.setAttribute(t,"style",n)}function zA(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function dC(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&xR(e,t,r),i!==null&&zA(e,t,i),o!==null&&GA(e,t,o)}function fg(e,t,n,r,i,o,s,a,l,c,d){let h=vn+r,f=h+i,g=qA(h,f),m=typeof c=="function"?c():c;return g[Se]={type:e,blueprint:g,template:n,queries:null,viewQuery:a,declTNode:t,data:g.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:m,incompleteFirstPass:!1,ssrId:d}}function qA(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:bi);return n}function YA(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=fg(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function pg(e,t,n,r,i,o,s,a,l,c,d){let h=t.blueprint.slice();return h[_i]=i,h[ye]=r|4|128|8|64|1024,(c!==null||e&&e[ye]&2048)&&(h[ye]|=2048),rb(h),h[Sn]=h[Us]=e,h[en]=n,h[di]=s||e&&e[di],h[an]=a||e&&e[an],h[Sc]=l||e&&e[Sc]||null,h[br]=o,h[nd]=tA(),h[Cc]=d,h[Kw]=c,h[wr]=t.type==2?e[wr]:h,h}function KA(e,t,n){let r=Vr(t,e),i=YA(n),o=e[di].rendererFactory,s=hg(e,pg(e,i,null,fC(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function fC(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function pC(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function hg(e,t){return e[Ic]?e[GE][Er]=t:e[Ic]=t,e[GE]=t,t}function Z(e=1){hC(In(),ze(),zi()+e,!1)}function hC(e,t,n,r){if(!r)if((t[ye]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Su(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Iu(t,i,0,n)}ko(n)}var ld=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ld||{});function lm(e,t,n,r){let i=Ve(null);try{let[o,s,a]=e.inputs[n],l=null;(s&ld.SignalBased)!==0&&(l=t[o][li]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,o):Jw(t,l,o,r)}finally{Ve(i)}}function mC(e,t,n,r,i){let o=zi(),s=r&2;try{ko(-1),s&&t.length>vn&&hC(e,t,vn,!1),pt(s?2:0,i),n(r,i)}finally{ko(o),pt(s?3:1,i)}}function mg(e,t,n){tM(e,t,n),(n.flags&64)===64&&nM(e,t,n)}function gC(e,t,n=Vr){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function ZA(e,t,n,r){let i=r.get(sA,$b)||n===Lr.ShadowDom,o=e.selectRootElement(t,i);return XA(o),o}function XA(e){JA(e)}var JA=()=>null;function QA(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function yC(e,t,n,r,i,o,s,a){if(!a&&gg(t,e,n,r,i)){js(t)&&eM(n,t.index);return}if(t.type&3){let l=Vr(t,n);r=QA(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)}else t.type&12}function eM(e,t){let n=kr(t,e);n[ye]&16||(n[ye]|=64)}function tM(e,t,n){let r=n.directiveStart,i=n.directiveEnd;js(n)&&KA(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Cb(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],l=Uu(t,e,s,n);if(Bc(l,t),o!==null&&sM(t,s-r,l,a,n,o),pi(a)){let c=kr(n.index,t);c[en]=Uu(t,e,s,n)}}}function nM(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=yR();try{ko(o);for(let a=r;a<i;a++){let l=e.data[a],c=t[a];$h(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&rM(l,c)}}finally{ko(-1),$h(s)}}function rM(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function vC(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];LA(t,o.selectors,!1)&&(r??=[],pi(o)?r.unshift(o):r.push(o))}return r}function iM(e,t,n,r,i,o){let s=Vr(e,t);oM(t[an],s,o,e.value,n,r,i)}function oM(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?Oc(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function sM(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];lm(r,n,l,c)}}function _C(e,t){let n=e[Sc],r=n?n.get(mi,null):null;r&&r.handleError(t)}function gg(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],d=s[l+1],h=t.data[c];lm(h,n[c],d,i),a=!0}if(o)for(let l of o){let c=n[l],d=t.data[l];lm(d,c,r,i),a=!0}return a}function aM(e,t){let n=kr(t,e),r=n[Se];cM(r,n);let i=n[_i];i!==null&&n[Cc]===null&&(n[Cc]=qb(i,n[Sc])),pt(18),yg(r,n,n[en]),pt(19,n[en])}function cM(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function yg(e,t,n){Zm(t);try{let r=e.viewQuery;r!==null&&em(1,r,n);let i=e.template;i!==null&&mC(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[fi]?.finishViewCreation(e),e.staticContentQueries&&Yb(e,t),e.staticViewQueries&&em(2,e.viewQuery,n);let o=e.components;o!==null&&lM(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[ye]&=-5,Xm()}}function lM(e,t){for(let n=0;n<t.length;n++)aM(e,t[n])}function ud(e,t,n,r){let i=Ve(null);try{let o=t.tView,s=e[ye]&4096?4096:16,a=pg(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[Mo]=l;let c=e[fi];return c!==null&&(a[fi]=c.createEmbeddedView(o)),yg(o,a,n),a}finally{Ve(i)}}function xc(e,t){return!t||t.firstChild===null||Pb(e)}var uM;function vg(e,t){return uM(e,t)}var Fr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Fr||{});function EC(e){return(e.flags&32)===32}function Ms(e,t,n,r,i){if(r!=null){let o,s=!1;Ei(r)?o=r:$i(r)&&(s=!0,r=r[_i]);let a=Pr(r);e===0&&n!==null?i==null?uC(t,n,a):Wu(t,n,a,i||null,!0):e===1&&n!==null?Wu(t,n,a,i||null,!0):e===2?WA(t,a,s):e===3&&t.destroyNode(a),o!=null&&bM(t,e,o,n,i)}}function dM(e,t){wC(e,t),t[_i]=null,t[br]=null}function fM(e,t,n,r,i,o){r[_i]=i,r[br]=t,fd(e,r,n,1,i,o)}function wC(e,t){t[di].changeDetectionScheduler?.notify(9),fd(e,t,t[an],2,null,null)}function pM(e){let t=e[Ic];if(!t)return Th(e[Se],e);for(;t;){let n=null;if($i(t))n=t[Ic];else{let r=t[Cn];r&&(n=r)}if(!n){for(;t&&!t[Er]&&t!==e;)$i(t)&&Th(t[Se],t),t=t[Sn];t===null&&(t=e),$i(t)&&Th(t[Se],t),n=t&&t[Er]}t=n}}function _g(e,t){let n=e[Ls],r=n.indexOf(t);n.splice(r,1)}function dd(e,t){if(kc(t))return;let n=t[an];n.destroyNode&&fd(e,t,n,3,null,null),pM(t)}function Th(e,t){if(kc(t))return;let n=Ve(null);try{t[ye]&=-129,t[ye]|=256,t[zn]&&uh(t[zn]),mM(e,t),hM(e,t),t[Se].type===1&&t[an].destroy();let r=t[Mo];if(r!==null&&Ei(t[Sn])){r!==t[Sn]&&_g(r,t);let i=t[fi];i!==null&&i.detachView(e)}Xh(t)}finally{Ve(n)}}function hM(e,t){let n=e.cleanup,r=t[Ou];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ou]=null);let i=t[Hi];if(i!==null){t[Hi]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[Pu];if(o!==null){t[Pu]=null;for(let s of o)s.destroy()}}function mM(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Dc)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];pt(4,a,l);try{l.call(a)}finally{pt(5,a,l)}}else{pt(4,i,o);try{o.call(i)}finally{pt(5,i,o)}}}}}function gM(e,t,n){return yM(e,t.parent,n)}function yM(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[_i];if(js(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Lr.None||i===Lr.Emulated)return null}return Vr(r,n)}function vM(e,t,n){return EM(e,t,n)}function _M(e,t,n){return e.type&40?Vr(e,n):null}var EM=_M,dw;function Eg(e,t,n,r){let i=gM(e,r,t),o=t[an],s=r.parent||t[br],a=vM(s,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)uw(o,i,n[l],a,!1);else uw(o,i,n,a,!1);dw!==void 0&&dw(o,r,t,n,i)}function yc(e,t){if(t!==null){let n=t.type;if(n&3)return Vr(t,e);if(n&4)return um(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return yc(e,r);{let i=e[t.index];return Ei(i)?um(-1,i):Pr(i)}}else{if(n&128)return yc(e,t.next);if(n&32)return vg(t,e)()||Pr(e[t.index]);{let r=bC(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Po(e[wr]);return yc(i,r)}else return yc(e,t.next)}}}return null}function bC(e,t){if(t!==null){let n=e[wr][br],r=t.projection;return n.projection[r]}return null}function um(e,t){let n=Cn+e+1;if(n<t.length){let r=t[n],i=r[Se].firstChild;if(i!==null)return yc(r,i)}return t[Oo]}function wg(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&Bc(Pr(a),r),n.flags|=2),!EC(n))if(l&8)wg(e,t,n.child,r,i,o,!1),Ms(t,e,i,a,o);else if(l&32){let c=vg(n,r),d;for(;d=c();)Ms(t,e,i,d,o);Ms(t,e,i,a,o)}else l&16?wM(e,t,r,n,i,o):Ms(t,e,i,a,o);n=s?n.projectionNext:n.next}}function fd(e,t,n,r,i,o){wg(n,r,e.firstChild,t,i,o,!1)}function wM(e,t,n,r,i,o){let s=n[wr],a=s[br].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let c=a[l];Ms(t,e,i,c,o)}else{let l=a,c=s[Sn];Pb(r)&&(l.flags|=128),wg(e,t,l,c,i,o,!0)}}function bM(e,t,n,r,i){let o=n[Oo],s=Pr(n);o!==s&&Ms(t,e,r,o,i);for(let a=Cn;a<n.length;a++){let l=n[a];fd(l[Se],l,e,t,r,o)}}function CM(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Fr.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Fr.Important),e.setStyle(n,r,i,o))}}function Gu(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Pr(o)),Ei(o)&&SM(o,r);let s=n.type;if(s&8)Gu(e,t,n.child,r);else if(s&32){let a=vg(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=bC(t,n);if(Array.isArray(a))r.push(...a);else{let l=Po(t[wr]);Gu(l[Se],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function SM(e,t){for(let n=Cn;n<e.length;n++){let r=e[n],i=r[Se].firstChild;i!==null&&Gu(r[Se],r,i,t)}e[Oo]!==e[_i]&&t.push(e[Oo])}function CC(e){if(e[Ps]!==null){for(let t of e[Ps])t.impl.addSequence(t);e[Ps].length=0}}var SC=[];function IM(e){return e[zn]??DM(e)}function DM(e){let t=SC.pop()??Object.create(xM);return t.lView=e,t}function TM(e){e.lView[zn]!==e&&(e.lView=null,SC.push(e))}var xM=ne(w({},Wl),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Lc(e.lView)},consumerOnSignalRead(){this.lView[zn]=this}});function NM(e){let t=e[zn]??Object.create(RM);return t.lView=e,t}var RM=ne(w({},Wl),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Po(e.lView);for(;t&&!IC(t[Se]);)t=Po(t);t&&qm(t)},consumerOnSignalRead(){this.lView[zn]=this}});function IC(e){return e.type!==2}function DC(e){if(e[Pu]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Pu])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[ye]&8192)}}var AM=100;function TC(e,t=!0,n=0){let r=e[di].rendererFactory,i=!1;i||r.begin?.();try{MM(e,n)}catch(o){throw t&&_C(e,o),o}finally{i||r.end?.()}}function MM(e,t){let n=ub();try{qE(!0),dm(e,t);let r=0;for(;rd(e);){if(r===AM)throw new Re(103,!1);r++,dm(e,1)}}finally{qE(n)}}function OM(e,t,n,r){if(kc(t))return;let i=t[ye],o=!1,s=!1;Zm(t);let a=!0,l=null,c=null;o||(IC(e)?(c=IM(t),l=ch(c)):K_()===null?(a=!1,c=NM(t),l=ch(c)):t[zn]&&(uh(t[zn]),t[zn]=null));try{rb(t),pR(e.bindingStartIndex),n!==null&&mC(e,t,n,2,r);let d=(i&3)===3;if(!o)if(d){let g=e.preOrderCheckHooks;g!==null&&Su(t,g,null)}else{let g=e.preOrderHooks;g!==null&&Iu(t,g,0,null),Sh(t,0)}if(s||PM(t),DC(t),xC(t,0),e.contentQueries!==null&&Yb(e,t),!o)if(d){let g=e.contentCheckHooks;g!==null&&Su(t,g)}else{let g=e.contentHooks;g!==null&&Iu(t,g,1),Sh(t,1)}LM(e,t);let h=e.components;h!==null&&RC(t,h,0);let f=e.viewQuery;if(f!==null&&em(2,f,r),!o)if(d){let g=e.viewCheckHooks;g!==null&&Su(t,g)}else{let g=e.viewHooks;g!==null&&Iu(t,g,2),Sh(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ch]){for(let g of t[Ch])g();t[Ch]=null}o||(CC(t),t[ye]&=-73)}catch(d){throw o||Lc(t),d}finally{c!==null&&(Q_(c,l),a&&TM(c)),Xm()}}function xC(e,t){for(let n=Fb(e);n!==null;n=Bb(n))for(let r=Cn;r<n.length;r++){let i=n[r];NC(i,t)}}function PM(e){for(let t=Fb(e);t!==null;t=Bb(t)){if(!(t[ye]&2))continue;let n=t[Ls];for(let r=0;r<n.length;r++){let i=n[r];qm(i)}}}function kM(e,t,n){pt(18);let r=kr(t,e);NC(r,n),pt(19,r[en])}function NC(e,t){zm(e)&&dm(e,t)}function dm(e,t){let n=e[Se],r=e[ye],i=e[zn],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&lh(i)),o||=!1,i&&(i.dirty=!1),e[ye]&=-9217,o)OM(n,e,n.template,e[en]);else if(r&8192){DC(e),xC(e,1);let s=n.components;s!==null&&RC(e,s,1),CC(e)}}function RC(e,t,n){for(let r=0;r<t.length;r++)kM(e,t[r],n)}function LM(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)ko(~i);else{let o=i,s=n[++r],a=n[++r];gR(s,o);let l=t[o];pt(24,l),a(2,l),pt(25,l)}}}finally{ko(-1)}}function bg(e,t){let n=ub()?64:1088;for(e[di].changeDetectionScheduler?.notify(t);e;){e[ye]|=n;let r=Po(e);if(Lu(e)&&!r)return e;e=r}return null}function AC(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function MC(e,t){let n=Cn+t;if(n<e.length)return e[n]}function pd(e,t,n,r=!0){let i=t[Se];if(FM(i,t,e,n),r){let s=um(n,e),a=t[an],l=a.parentNode(e[Oo]);l!==null&&fM(i,e[br],a,t,l,s)}let o=t[Cc];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function OC(e,t){let n=Nc(e,t);return n!==void 0&&dd(n[Se],n),n}function Nc(e,t){if(e.length<=Cn)return;let n=Cn+t,r=e[n];if(r){let i=r[Mo];i!==null&&i!==e&&_g(i,r),t>0&&(e[n-1][Er]=r[Er]);let o=Au(e,Cn+t);dM(r[Se],r);let s=o[fi];s!==null&&s.detachView(o[Se]),r[Sn]=null,r[Er]=null,r[ye]&=-129}return r}function FM(e,t,n,r){let i=Cn+r,o=n.length;r>0&&(n[i-1][Er]=t),r<o-Cn?(t[Er]=n[i],Fw(n,Cn+r,t)):(n.push(t),t[Er]=null),t[Sn]=n;let s=t[Mo];s!==null&&n!==s&&PC(s,t);let a=t[fi];a!==null&&a.insertView(e),jh(t),t[ye]|=128}function PC(e,t){let n=e[Ls],r=t[Sn];if($i(r))e[ye]|=2;else{let i=r[Sn][wr];t[wr]!==i&&(e[ye]|=2)}n===null?e[Ls]=[t]:n.push(t)}var Lo=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[Se];return Gu(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[en]}get dirty(){return!!(this._lView[ye]&9280)||!!this._lView[zn]?.dirty}set context(e){this._lView[en]=e}get destroyed(){return kc(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Sn];if(Ei(e)){let t=e[ku],n=t?t.indexOf(this):-1;n>-1&&(Nc(e,n),Au(t,n))}this._attachedToViewContainer=!1}dd(this._lView[Se],this._lView)}onDestroy(e){ib(this._lView,e)}markForCheck(){bg(this._cdRefInjectingView||this._lView,4)}markForRefresh(){qm(this._cdRefInjectingView||this._lView)}detach(){this._lView[ye]&=-129}reattach(){jh(this._lView),this._lView[ye]|=128}detectChanges(){this._lView[ye]|=1024,TC(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Lu(this._lView),t=this._lView[Mo];t!==null&&!e&&_g(t,this._lView),wC(this._lView[Se],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Re(902,!1);this._appRef=e;let t=Lu(this._lView),n=this._lView[Mo];n!==null&&!t&&PC(n,this._lView),jh(this._lView)}},Br=(()=>{class e{static __NG_ELEMENT_ID__=UM}return e})(),BM=Br,VM=class extends BM{_declarationLView;_declarationTContainer;elementRef;constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){let r=ud(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n});return new Lo(r)}};function UM(){return Cg(Cr(),ze())}function Cg(e,t){return e.type&4?new VM(t,e,Ws(e,t)):null}function hd(e,t,n,r,i){let o=e.data[t];if(o===null)o=jM(e,t,n,r,i),mR()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=uR();o.injectorIndex=s===null?-1:s.injectorIndex}return Hs(o,!0),o}function jM(e,t,n,r,i){let o=cb(),s=lb(),a=s?o:o&&o.parent,l=e.data[t]=$M(e,a,n,t,r,i);return HM(e,l,o,s),l}function HM(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function $M(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return aR()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var g3=new RegExp(`^(\\d+)*(${oA}|${iA})*(.*)`),WM=()=>null;function Rc(e,t){return WM(e,t)}var fm=class{},zu=class{},pm=class{resolveComponentFactory(e){throw Error(`No component factory found for ${or(e)}.`)}},Gi=class{static NULL=new pm},An=class{},qs=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>GM()}return e})();function GM(){let e=ze(),t=Cr(),n=kr(t.index,e);return($i(n)?n:e)[an]}var zM=(()=>{class e{static \u0275prov=ie({token:e,providedIn:"root",factory:()=>null})}return e})();function fw(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=VE(i,a);else if(o==2){let l=a,c=t[++s];r=VE(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Yt(e,t=Ge.Default){let n=ze();if(n===null)return Ze(e,t);let r=Cr();return Tb(r,n,ir(e),t)}function kC(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a,l=null,c=null,d=YM(s);d===null?a=s:[a,l,c]=d,XM(e,t,n,a,o,l,c)}o!==null&&r!==null&&qM(n,r,o)}function qM(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new Re(-301,!1);r.push(t[i],o)}}function YM(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&pi(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,KM(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function KM(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function ZM(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function XM(e,t,n,r,i,o,s){let a=r.length,l=!1;for(let f=0;f<a;f++){let g=r[f];!l&&pi(g)&&(l=!0,ZM(e,n,f)),kR(Cb(n,t),e,g.type)}rO(n,e.data.length,a);for(let f=0;f<a;f++){let g=r[f];g.providersResolver&&g.providersResolver(g)}let c=!1,d=!1,h=pC(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let g=r[f];if(n.mergedAttrs=Tc(n.mergedAttrs,g.hostAttrs),QM(e,n,t,h,g),nO(h,g,i),s!==null&&s.has(g)){let[b,I]=s.get(g);n.directiveToIndex.set(g.type,[h,b+n.directiveStart,I+n.directiveStart])}else(o===null||!o.has(g))&&n.directiveToIndex.set(g.type,h);g.contentQueries!==null&&(n.flags|=4),(g.hostBindings!==null||g.hostAttrs!==null||g.hostVars!==0)&&(n.flags|=64);let m=g.type.prototype;!c&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!d&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}JM(e,n,o)}function JM(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))pw(0,t,i,r),pw(1,t,i,r),mw(t,r,!1);else{let o=n.get(i);hw(0,t,o,r),hw(1,t,o,r),mw(t,r,!0)}}}function pw(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),LC(t,o)}}function hw(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),LC(t,s)}}function LC(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function mw(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||dg(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let c=i[l];for(let d of c)if(d===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&o.hasOwnProperty(l)){let c=o[l];for(let d=0;d<c.length;d+=2)if(c[d]===t){s??=[],s.push(c[d+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function QM(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=No(i.type,!0)),s=new Dc(o,pi(i),Yt);e.blueprint[r]=s,n[r]=s,eO(e,t,r,pC(e,n,i.hostVars,bi),i)}function eO(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;tO(s)!=a&&s.push(a),s.push(n,r,o)}}function tO(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function nO(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;pi(t)&&(n[""]=e)}}function rO(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function FC(e,t,n,r,i,o,s,a){let l=t.consts,c=Fs(l,s),d=hd(t,e,2,r,c);return o&&kC(t,n,d,Fs(l,a),i),d.mergedAttrs=Tc(d.mergedAttrs,d.attrs),d.attrs!==null&&fw(d,d.attrs,!1),d.mergedAttrs!==null&&fw(d,d.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,d),d}function BC(e,t){vb(e,t),Xw(t)&&e.queries.elementEnd(t)}var hm=class extends Gi{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Ao(e);return new Ac(t,this.ngModule)}};function iO(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&ld.SignalBased)!==0};return i&&(o.transform=i),o})}function oO(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function sO(e,t,n){let r=t instanceof Un?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Wh(n,r):n}function aO(e){let t=e.get(An,null);if(t===null)throw new Re(407,!1);let n=e.get(zM,null),r=e.get(hi,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function cO(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return lC(t,n,n==="svg"?tb:n==="math"?JN:null)}var Ac=class extends zu{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return iO(this.componentDef.inputs)}get outputs(){return oO(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=UA(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){pt(22);let i=Ve(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:jA(this.componentDef.selectors[0]),a=fg(0,null,null,1,0,null,null,null,null,[s],null),l=sO(o,r||this.ngModule,e),c=aO(l),d=c.rendererFactory.createRenderer(null,o),h=n?ZA(d,n,o.encapsulation,l):cO(o,d),f=pg(null,a,null,512|fC(o),null,null,c,d,l,null,qb(h,l,!0));f[vn]=h,Zm(f);let g=null;try{let m=FC(vn,a,f,"#host",()=>[this.componentDef],!0,0);h&&(dC(d,h,m),Bc(h,f)),mg(a,f,m),Kb(a,m,f),BC(a,m),t!==void 0&&lO(m,this.ngContentSelectors,t),g=kr(m.index,f),f[en]=g[en],yg(a,f,null)}catch(m){throw g!==null&&Xh(g),Xh(f),m}finally{pt(23),Xm()}return new mm(this.componentType,f)}finally{Ve(i)}}},mm=class extends fm{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=Wm(t[Se],vn),this.location=Ws(this._tNode,t),this.instance=kr(this._tNode.index,t)[en],this.hostView=this.changeDetectorRef=new Lo(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=gg(n,r[Se],r,e,t);this.previousInputValues.set(e,t);let o=kr(n.index,r);bg(o,1)}get injector(){return new xo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function lO(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Zi=(()=>{class e{static __NG_ELEMENT_ID__=uO}return e})();function uO(){let e=Cr();return UC(e,ze())}var dO=Zi,VC=class extends dO{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Ws(this._hostTNode,this._hostLView)}get injector(){return new xo(this._hostTNode,this._hostLView)}get parentInjector(){let e=tg(this._hostTNode,this._hostLView);if(Eb(e)){let t=Bu(e,this._hostLView),n=Fu(e),r=t[Se].data[n+8];return new xo(r,t)}else return new xo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=gw(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-Cn}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let o=Rc(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(t||{},i,o);return this.insertImpl(s,r,xc(this._hostTNode,o)),s}createComponent(e,t,n,r,i){let o=e&&!qN(e),s;if(o)s=t;else{let g=t||{};s=g.index,n=g.injector,r=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let a=o?e:new Ac(Ao(e)),l=n||this.parentInjector;if(!i&&a.ngModule==null){let g=(o?l:this.parentInjector).get(Un,null);g&&(i=g)}let c=Ao(a.componentType??{}),d=Rc(this._lContainer,c?.id??null),h=d?.firstChild??null,f=a.create(l,r,h,i);return this.insertImpl(f.hostView,s,xc(this._hostTNode,d)),f}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(eR(r)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let a=r[Sn],l=new VC(a,a[br],a[Sn]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(t),o=this._lContainer;return pd(o,r,i,n),e.attachToViewContainerRef(),Fw(xh(o),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=gw(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=Nc(this._lContainer,t);n&&(Au(xh(this._lContainer),t),dd(n[Se],n))}detach(e){let t=this._adjustIndex(e,-1),n=Nc(this._lContainer,t);return n&&Au(xh(this._lContainer),t)!=null?new Lo(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function gw(e){return e[ku]}function xh(e){return e[ku]||(e[ku]=[])}function UC(e,t){let n,r=t[e.index];return Ei(r)?n=r:(n=AC(r,t,null,e),t[e.index]=n,hg(t,n)),pO(n,t,e,r),new VC(n,e,t)}function fO(e,t){let n=e[an],r=n.createComment(""),i=Vr(t,e),o=n.parentNode(i);return Wu(n,o,r,n.nextSibling(i),!1),r}var pO=gO,hO=()=>!1;function mO(e,t,n){return hO(e,t,n)}function gO(e,t,n,r){if(e[Oo])return;let i;n.type&8?i=Pr(r):i=fO(t,n),e[Oo]=i}var gm=class O0{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new O0(this.queryList)}setDirty(){this.queryList.setDirty()}},ym=class N0{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new N0(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Sg(t,n).matches!==null&&this.queries[n].setDirty()}},vm=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=SO(e):this.predicate=e}},_m=class P0{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new P0(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Em=class R0{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new R0(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,yO(n,o)),this.matchTNodeWithReadOption(t,n,Du(n,t,o,!1,!1))}else r===Br?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Du(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===qt||i===Zi||i===Br&&n.type&4)this.addMatch(n.index,-2);else{let o=Du(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function yO(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function vO(e,t){return e.type&11?Ws(e,t):e.type&4?Cg(e,t):null}function _O(e,t,n,r){return n===-1?vO(t,e):n===-2?EO(e,t,r):Uu(e,e[Se],n,t)}function EO(e,t,n){if(n===qt)return Ws(t,e);if(n===Br)return Cg(t,e);if(n===Zi)return UC(t,e)}function jC(e,t,n,r){let i=t[fi].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let d=o[c];a.push(_O(t,d,s[l+1],n.metadata.read))}}i.matches=a}return i.matches}function wm(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=jC(e,t,i,n);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let c=o[a+1],d=t[-l];for(let h=Cn;h<d.length;h++){let f=d[h];f[Mo]===f[Sn]&&wm(f[Se],f,c,r)}if(d[Ls]!==null){let h=d[Ls];for(let f=0;f<h.length;f++){let g=h[f];wm(g[Se],g,c,r)}}}}}return r}function wO(e,t){return e[fi].queries[t].queryList}function bO(e,t,n){let r=new Zh((n&4)===4);return rR(e,t,r,r.destroy),(t[fi]??=new ym).queries.push(new gm(r))-1}function CO(e,t,n){let r=In();return r.firstCreatePass&&(IO(r,new vm(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),bO(r,ze(),t)}function SO(e){return e.split(",").map(t=>t.trim())}function IO(e,t,n){e.queries===null&&(e.queries=new _m),e.queries.track(new Em(t,n))}function Sg(e,t){return e.queries.getByIndex(t)}function DO(e,t){let n=e[Se],r=Sg(n,t);return r.crossesNgTemplate?wm(n,e,t,[]):jC(n,e,r,t)}var yi=class{},qu=class extends yi{injector;componentFactoryResolver=new hm(this);instance=null;constructor(e){super();let t=new bc([...e.providers,{provide:yi,useValue:this},{provide:Gi,useValue:this.componentFactoryResolver}],e.parent||td(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function TO(e,t,n=null){return new qu({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var xO=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=$w(!1,n.type),i=r.length>0?TO([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=ie({token:e,providedIn:"environment",factory:()=>new e(Ze(Un))})}return e})();function St(e){return Ju(()=>{let t=HC(e),n=ne(w({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===kb.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(xO).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Lr.Emulated,styles:e.styles||Wi,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&qi("NgStandalone"),$C(n);let r=e.dependencies;return n.directiveDefs=yw(r,!1),n.pipeDefs=yw(r,!0),n.id=OO(n),n})}function NO(e){return Ao(e)||Uw(e)}function RO(e){return e!==null}function AO(e,t){if(e==null)return Ro;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=ld.None,l=null),n[o]=[r,a,l],t[o]=s}return n}function MO(e){if(e==null)return Ro;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Xi(e){return Ju(()=>{let t=HC(e);return $C(t),t})}function Vo(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function HC(e){let 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,inputConfig:e.inputs||Ro,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Wi,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:AO(e.inputs,t),outputs:MO(e.outputs),debugInfo:null}}function $C(e){e.features?.forEach(t=>t(e))}function yw(e,t){if(!e)return null;let n=t?jw:NO;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(RO)}function OO(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function PO(e){return Object.getPrototypeOf(e.prototype).constructor}function Ys(e){let t=PO(e.type),n=!0,r=[e];for(;t;){let i;if(pi(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Re(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Nh(e.inputs),s.declaredInputs=Nh(e.declaredInputs),s.outputs=Nh(e.outputs);let a=i.hostBindings;a&&VO(e,a);let l=i.viewQuery,c=i.contentQueries;if(l&&FO(e,l),c&&BO(e,c),kO(e,i),dN(e.outputs,i.outputs),pi(i)&&i.data.animation){let d=e.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===Ys&&(n=!1)}}t=Object.getPrototypeOf(t)}LO(r)}function kO(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function LO(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Tc(i.hostAttrs,n=Tc(n,i.hostAttrs))}}function Nh(e){return e===Ro?{}:e===Wi?[]:e}function FO(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function BO(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function VO(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function WC(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function GC(e,t,n){return e[t]=n}function vi(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function UO(e,t,n,r){let i=vi(e,t,n);return vi(e,t+1,r)||i}function jO(e,t,n,r,i,o,s,a,l){let c=t.consts,d=hd(t,e,4,s||null,a||null);ab()&&kC(t,n,d,Fs(c,l),vC),d.mergedAttrs=Tc(d.mergedAttrs,d.attrs),vb(t,d);let h=d.tView=fg(2,d,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,d),h.queries=t.queries.embeddedTView(d)),d}function bm(e,t,n,r,i,o,s,a,l,c){let d=n+vn,h=t.firstCreatePass?jO(d,t,e,r,i,o,s,a,l):t.data[d];Hs(h,!1);let f=HO(t,e,h,n);Qm()&&Eg(t,e,f,h),Bc(f,e);let g=AC(f,e,f,h);return e[d]=g,hg(e,g),mO(g,h,e),$m(h)&&mg(t,e,h),l!=null&&gC(e,h,c),h}function At(e,t,n,r,i,o,s,a){let l=ze(),c=In(),d=Fs(c.consts,o);return bm(l,c,e,t,n,r,i,d,s,a),At}var HO=$O;function $O(e,t,n,r){return eg(!0),t[an].createComment("")}var zC=new ve(""),WO=(()=>{class e{static \u0275prov=ie({token:e,providedIn:"root",factory:()=>new Cm})}return e})(),Cm=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function Ig(e){return!!e&&typeof e.then=="function"}function qC(e){return!!e&&typeof e.subscribe=="function"}var GO=new ve(""),YC=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=P(GO,{optional:!0})??[];injector=P(bt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=zw(this.injector,i);if(Ig(o))n.push(o);else if(qC(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zO=new ve("");function qO(){oE(()=>{throw new Re(600,!1)})}function YO(e){return e.isBoundToModule}var KO=10,sr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=P(KR);afterRenderManager=P(Gb);zonelessEnabled=P(od);rootEffectScheduler=P(WO);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Ne;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=P(sd).hasPendingTasks.pipe(Mr(n=>!n));constructor(){P(zs,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=P(Un);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){pt(10);let i=n instanceof zu;if(!this._injector.get(YC).done){let h=!i&&kN(n),f=!1;throw new Re(405,f)}let o;i?o=n:o=this._injector.get(Gi).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=YO(o)?void 0:this._injector.get(yi),a=r||o.selector,l=o.create(bt.NULL,[],a,s),c=l.location.nativeElement,d=l.injector.get(zC,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Tu(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),pt(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){pt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(cg.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Re(101,!1);let n=Ve(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Ve(n),this.afterTick.next(),pt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(An,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<KO;)pt(14),this.synchronizeOnce(),pt(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)ZO(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>rd(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Tu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(zO,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Tu(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Re(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Tu(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ZO(e,t,n,r){!n&&!rd(e)||TC(e,t,n&&!r?0:1)}function Dg(e,t,n,r){let i=ze(),o=Fc();if(vi(i,o,t)){let s=In(),a=Jm();iM(a,i,e,t,n,r)}return Dg}function KC(e,t,n,r){return vi(e,Fc(),n)?t+Oc(n)+r:bi}function bu(e,t){return e<<17|t<<2}function Fo(e){return e>>17&32767}function XO(e){return(e&2)==2}function JO(e,t){return e&131071|t<<17}function Sm(e){return e|2}function Bs(e){return(e&131068)>>2}function Rh(e,t){return e&-131069|t<<2}function QO(e){return(e&1)===1}function Im(e){return e|1}function e1(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Fo(s),l=Bs(s);e[r]=n;let c=!1,d;if(Array.isArray(n)){let h=n;d=h[1],(d===null||Pc(h,d)>0)&&(c=!0)}else d=n;if(i)if(l!==0){let h=Fo(e[a+1]);e[r+1]=bu(h,a),h!==0&&(e[h+1]=Rh(e[h+1],r)),e[a+1]=JO(e[a+1],r)}else e[r+1]=bu(a,0),a!==0&&(e[a+1]=Rh(e[a+1],r)),a=r;else e[r+1]=bu(l,0),a===0?a=r:e[l+1]=Rh(e[l+1],r),l=r;c&&(e[r+1]=Sm(e[r+1])),vw(e,d,r,!0),vw(e,d,r,!1),t1(t,d,e,r,o),s=bu(a,l),o?t.classBindings=s:t.styleBindings=s}function t1(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Pc(o,t)>=0&&(n[r+1]=Im(n[r+1]))}function vw(e,t,n,r){let i=e[n+1],o=t===null,s=r?Fo(i):Bs(i),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],c=e[s+1];n1(l,t)&&(a=!0,e[s+1]=r?Im(c):Sm(c)),s=r?Fo(c):Bs(c)}a&&(e[n+1]=r?Sm(i):Im(i))}function n1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Pc(e,t)>=0:!1}function Ue(e,t,n){let r=ze(),i=Fc();if(vi(r,i,t)){let o=In(),s=Jm();yC(o,s,r,e,t,r[an],n,!1)}return Ue}function _w(e,t,n,r,i){gg(t,e,n,i?"class":"style",r)}function Ji(e,t,n){return ZC(e,t,n,!1),Ji}function Qi(e,t){return ZC(e,t,null,!0),Qi}function ZC(e,t,n,r){let i=ze(),o=In(),s=hR(2);if(o.firstUpdatePass&&i1(o,e,s,r),t!==bi&&vi(i,s,t)){let a=o.data[zi()];l1(o,a,i,i[an],e,i[s+1]=u1(t,n),r,s)}}function r1(e,t){return t>=e.expandoStartIndex}function i1(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[zi()],s=r1(e,n);d1(o,r)&&t===null&&!s&&(t=!1),t=o1(i,o,t,r),e1(i,o,t,n,s,r)}}function o1(e,t,n,r){let i=vR(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ah(null,e,t,n,r),n=Mc(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Ah(i,e,t,n,r),o===null){let a=s1(e,t,r);a!==void 0&&Array.isArray(a)&&(a=Ah(null,e,t,a[1],r),a=Mc(a,t.attrs,r),a1(e,t,r,a))}else o=c1(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function s1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Bs(r)!==0)return e[Fo(r)]}function a1(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Fo(i)]=r}function c1(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Mc(r,s,n)}return Mc(r,t.attrs,n)}function Ah(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=Mc(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Mc(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ON(e,s,n?!0:t[++o]))}return e===void 0?null:e}function l1(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],d=QO(c)?Ew(l,t,n,i,Bs(c),s):void 0;if(!Yu(d)){Yu(o)||XO(c)&&(o=Ew(l,null,n,i,a,s));let h=nb(zi(),n);CM(r,s,h,i,o)}}function Ew(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let l=e[i],c=Array.isArray(l),d=c?l[1]:l,h=d===null,f=n[i+1];f===bi&&(f=h?Wi:void 0);let g=h?wh(f,r):d===r?f:void 0;if(c&&!Yu(g)&&(g=wh(l,r)),Yu(g)&&(a=g,s))return a;let m=e[i+1];i=s?Fo(m):Bs(m)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=wh(l,r))}return a}function Yu(e){return e!==void 0}function u1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=or(Ur(e)))),e}function d1(e,t){return(e.flags&(t?8:16))!==0}var Dm=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function Mh(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function f1(e,t,n){let r,i,o=0,s=e.length-1,a;if(Array.isArray(t)){let l=t.length-1;for(;o<=s&&o<=l;){let c=e.at(o),d=t[o],h=Mh(o,c,o,d,n);if(h!==0){h<0&&e.updateValue(o,d),o++;continue}let f=e.at(s),g=t[l],m=Mh(s,f,l,g,n);if(m!==0){m<0&&e.updateValue(s,g),s--,l--;continue}let b=n(o,c),I=n(s,f),R=n(o,d);if(Object.is(R,I)){let j=n(l,g);Object.is(j,b)?(e.swap(o,s),e.updateValue(s,g),l--,s--):e.move(s,o),e.updateValue(o,d),o++;continue}if(r??=new Ku,i??=bw(e,o,s,n),Tm(e,r,o,R))e.updateValue(o,d),o++,s++;else if(i.has(R))r.set(b,e.detach(o)),s--;else{let j=e.create(o,t[o]);e.attach(o,j),o++,s++}}for(;o<=l;)ww(e,r,n,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let d=e.at(o),h=c.value,f=Mh(o,d,o,h,n);if(f!==0)f<0&&e.updateValue(o,h),o++,c=l.next();else{r??=new Ku,i??=bw(e,o,s,n);let g=n(o,h);if(Tm(e,r,o,g))e.updateValue(o,h),o++,s++,c=l.next();else if(!i.has(g))e.attach(o,e.create(o,h)),o++,s++,c=l.next();else{let m=n(o,d);r.set(m,e.detach(o)),s--}}}for(;!c.done;)ww(e,r,n,e.length,c.value),c=l.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function Tm(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function ww(e,t,n,r,i){if(Tm(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function bw(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Ku=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function Ut(e,t){qi("NgControlFlow");let n=ze(),r=Fc(),i=n[r]!==bi?n[r]:-1,o=i!==-1?Zu(n,vn+i):void 0,s=0;if(vi(n,r,e)){let a=Ve(null);try{if(o!==void 0&&OC(o,s),e!==-1){let l=vn+e,c=Zu(n,l),d=Am(n[Se],l),h=Rc(c,d.tView.ssrId),f=ud(n,d,t,{dehydratedView:h});pd(c,f,s,xc(d,h))}}finally{Ve(a)}}else if(o!==void 0){let a=MC(o,s);a!==void 0&&(a[en]=t)}}var xm=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-Cn}};function Ci(e,t){return t}var Nm=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function Kt(e,t,n,r,i,o,s,a,l,c,d,h,f){qi("NgControlFlow");let g=ze(),m=In(),b=l!==void 0,I=ze(),R=a?s.bind(I[wr][en]):s,j=new Nm(b,R);I[vn+e]=j,bm(g,m,e+1,t,n,r,i,Fs(m.consts,o)),b&&bm(g,m,e+2,l,c,d,h,Fs(m.consts,f))}var Rm=class extends Dm{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-Cn}at(e){return this.getLView(e)[en].$implicit}attach(e,t){let n=t[Cc];this.needsIndexUpdate||=e!==this.length,pd(this.lContainer,t,e,xc(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,p1(this.lContainer,e)}create(e,t){let n=Rc(this.lContainer,this.templateTNode.tView.ssrId),r=ud(this.hostLView,this.templateTNode,new xm(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){dd(e[Se],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[en].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[en].$index=e}getLView(e){return h1(this.lContainer,e)}};function Zt(e){let t=Ve(null),n=zi();try{let r=ze(),i=r[Se],o=r[n],s=n+1,a=Zu(r,s);if(o.liveCollection===void 0){let c=Am(i,s);o.liveCollection=new Rm(a,r,c)}else o.liveCollection.reset();let l=o.liveCollection;if(f1(l,e,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=Fc(),d=l.length===0;if(vi(r,c,d)){let h=n+2,f=Zu(r,h);if(d){let g=Am(i,h),m=Rc(f,g.tView.ssrId),b=ud(r,g,void 0,{dehydratedView:m});pd(f,b,0,xc(g,m))}else OC(f,0)}}}finally{Ve(t)}}function Zu(e,t){return e[t]}function p1(e,t){return Nc(e,t)}function h1(e,t){return MC(e,t)}function Am(e,t){return Wm(e,t)}function X(e,t,n,r){let i=ze(),o=In(),s=vn+e,a=i[an],l=o.firstCreatePass?FC(s,o,i,t,vC,ab(),n,r):o.data[s],c=m1(o,i,l,a,t,e);i[s]=c;let d=$m(l);return Hs(l,!0),dC(a,c,l),!EC(l)&&Qm()&&Eg(o,i,c,l),(iR()===0||d)&&Bc(c,i),oR(),d&&(mg(o,i,l),Kb(o,l,i)),r!==null&&gC(i,l),X}function Q(){let e=Cr();lb()?dR():(e=e.parent,Hs(e,!1));let t=e;cR(t)&&lR(),sR();let n=In();return n.firstCreatePass&&BC(n,t),t.classesWithoutHost!=null&&DR(t)&&_w(n,t,ze(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&TR(t)&&_w(n,t,ze(),t.stylesWithoutHost,!1),Q}function qe(e,t,n,r){return X(e,t,n,r),Q(),qe}var m1=(e,t,n,r,i,o)=>(eg(!0),lC(r,i,bR()));function _n(){return ze()}var Xu="en-US",g1=Xu;function y1(e){typeof e=="string"&&(g1=e.toLowerCase().replace(/_/g,"-"))}var v1=(e,t,n)=>{};function at(e,t,n,r){let i=ze(),o=In(),s=Cr();return E1(o,i,i[an],s,e,t,r),at}function _1(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[Ou],l=i[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function E1(e,t,n,r,i,o,s){let a=$m(r),l=e.firstCreatePass?sb(e):null,c=t[en],d=ob(t),h=!0;if(r.type&3||s){let f=Vr(r,t),g=s?s(f):f,m=d.length,b=s?R=>s(Pr(R[r.index])):r.index,I=null;if(!s&&a&&(I=_1(e,t,i,r.index)),I!==null){let R=I.__ngLastListenerFn__||I;R.__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,h=!1}else{o=Iw(r,t,c,o),v1(f,i,o);let R=n.listen(g,i,o);d.push(o,R),l&&l.push(i,b,m,m+1)}}else o=Iw(r,t,c,o);if(h){let f=r.outputs?.[i],g=r.hostDirectiveOutputs?.[i];if(g&&g.length)for(let m=0;m<g.length;m+=2){let b=g[m],I=g[m+1];Cw(r,e,t,b,I,i,o,d,l)}if(f&&f.length)for(let m of f)Cw(r,e,t,m,i,i,o,d,l)}}function Cw(e,t,n,r,i,o,s,a,l){let c=n[r],d=t.data[r].outputs[i],h=c[d].subscribe(s),f=a.length;a.push(s,h),l&&l.push(o,e.index,f,-(f+1))}function Sw(e,t,n,r){let i=Ve(null);try{return pt(6,t,n),n(r)!==!1}catch(o){return _C(e,o),!1}finally{pt(7,t,n),Ve(i)}}function Iw(e,t,n,r){return function i(o){if(o===Function)return r;let s=js(e)?kr(e.index,t):t;bg(s,5);let a=Sw(t,n,r,o),l=i.__ngNextListenerFn__;for(;l;)a=Sw(t,n,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function re(e=1){return ER(e)}function jn(e,t,n){return Si(e,"",t,"",n),jn}function Si(e,t,n,r,i){let o=ze(),s=KC(o,t,n,r);if(s!==bi){let a=In(),l=Jm();yC(a,l,o,e,s,o[an],i,!1)}return Si}function eo(e,t,n){CO(e,t,n)}function to(e){let t=ze(),n=In(),r=db();Km(r+1);let i=Sg(n,r);if(e.dirty&&QN(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=DO(t,r);e.reset(o,XR),e.notifyOnChanges()}return!0}return!1}function no(){return wO(ze(),db())}function Tg(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function jt(e,t=""){let n=ze(),r=In(),i=e+vn,o=r.firstCreatePass?hd(r,i,1,t,null):r.data[i],s=w1(r,n,o,t,e);n[i]=s,Qm()&&Eg(r,n,s,o),Hs(o,!1)}var w1=(e,t,n,r,i)=>(eg(!0),HA(t[an],r));function Ks(e){return Ir("",e,""),Ks}function Ir(e,t,n){let r=ze(),i=KC(r,e,t,n);return i!==bi&&b1(r,zi(),i),Ir}function b1(e,t,n){let r=nb(t,e);$A(e[an],r,n)}var XC={};function Hr(e){let t=In(),n=ze(),r=e+vn,i=hd(t,r,128,null,null);return Hs(i,!1),Tg(t,n,r,XC),Hr}function Uo(e){qi("NgLet");let t=In(),n=ze(),r=zi();return Tg(t,n,r,e),e}function Hn(e){let t=fR(),n=Gm(t,vn+e);if(n===XC)throw new Re(314,!1);return n}function JC(e,t,n,r){return e0(ze(),Ym(),e,t,n,r)}function QC(e,t){let n=e[t];return n===bi?void 0:n}function e0(e,t,n,r,i,o){let s=t+n;return vi(e,s,i)?GC(e,s+1,o?r.call(o,i):r(i)):QC(e,s+1)}function C1(e,t,n,r,i,o,s){let a=t+n;return UO(e,a,i,o)?GC(e,a+2,s?r.call(s,i,o):r(i,o)):QC(e,a+2)}function ar(e,t){let n=In(),r,i=e+vn;n.firstCreatePass?(r=S1(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=No(r.type,!0)),s,a=Vn(Yt);try{let l=Vu(!1),c=o();return Vu(l),Tg(n,ze(),i,c),c}finally{Vn(a)}}function S1(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Dr(e,t,n){let r=e+vn,i=ze(),o=Gm(i,r);return n0(i,r)?e0(i,Ym(),t,o.transform,n,o):o.transform(n)}function t0(e,t,n,r){let i=e+vn,o=ze(),s=Gm(o,i);return n0(o,i)?C1(o,Ym(),t,s.transform,n,r,s):s.transform(n,r)}function n0(e,t){return e[Se].data[t].pure}var Vs=class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},xg=new Vs("19.2.0"),I1=(()=>{class e{zone=P(Ke);changeDetectionScheduler=P(hi);applicationRef=P(sr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function D1({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Ke(ne(w({},T1()),{scheduleInRootZone:n})),[{provide:Ke,useFactory:e},{provide:wc,multi:!0,useFactory:()=>{let r=P(I1,{optional:!0});return()=>r.initialize()}},{provide:wc,multi:!0,useFactory:()=>{let r=P(x1);return()=>{r.initialize()}}},t===!0?{provide:Ab,useValue:!0}:[],{provide:rg,useValue:n??Rb}]}function T1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var x1=(()=>{class e{subscription=new Bt;initialized=!1;zone=P(Ke);pendingTasks=P(sd);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ke.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ke.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),r0=(()=>{class e{appRef=P(sr);taskService=P(sd);ngZone=P(Ke);zonelessEnabled=P(od);tracing=P(zs,{optional:!0});disableScheduling=P(Ab,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Bt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Hu):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(P(rg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof $u||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?QE:Mb;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Hu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,QE(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function i0(){return qi("NgZoneless"),Hw([{provide:hi,useExisting:r0},{provide:Ke,useClass:$u},{provide:od,useValue:!0},{provide:rg,useValue:!1},[]])}function N1(){return typeof $localize<"u"&&$localize.locale||Xu}var Ng=new ve("",{providedIn:"root",factory:()=>P(Ng,Ge.Optional|Ge.SkipSelf)||N1()}),Mm=new ve(""),R1=new ve("");function mc(e){return!e.moduleRef}function A1(e){let t=mc(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ke);return n.run(()=>{mc(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mi,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),mc(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Mm);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Mm);s.add(o),e.moduleRef.onDestroy(()=>{Tu(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return O1(r,n,()=>{let o=t.get(YC);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Ng,Xu);if(y1(s||Xu),!t.get(R1,!0))return mc(e)?t.get(sr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(mc(e)){let a=t.get(sr);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return M1(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function M1(e,t){let n=e.injector.get(sr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new Re(-403,!1);t.push(e)}function O1(e,t,n){try{let r=n();return Ig(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var xu=null;function P1(e=[],t){return bt.create({name:t,providers:[{provide:ed,useValue:"platform"},{provide:Mm,useValue:new Set([()=>xu=null])},...e]})}function k1(e=[]){if(xu)return xu;let t=P1(e);return xu=t,qO(),L1(t),t}function L1(e){let t=e.get(sg,null);zw(e,()=>{t?.forEach(n=>n())})}var jo=(()=>{class e{static __NG_ELEMENT_ID__=F1}return e})();function F1(e){return B1(Cr(),ze(),(e&16)===16)}function B1(e,t,n){if(js(e)&&!n){let r=kr(e.index,t);return new Lo(r,r)}else if(e.type&175){let r=t[wr];return new Lo(r,t)}return null}var Om=class{constructor(){}supports(e){return e instanceof Map||WC(e)}create(){return new Pm}},Pm=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let t;for(t=this._mapHead;t!==null;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;t!==null;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;t!==null;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)e(t)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||WC(e)))throw new Re(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,n),this._appendAfter=t,t=t._next;else{let i=this._getOrCreateRecordForKey(r,n);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let n=t;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){let n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,t);let i=r._prev,o=r._next;return i&&(i._next=o),o&&(o._prev=i),r._next=null,r._prev=null,r}let n=new km(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}},km=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function Dw(){return new Rg([new Om])}var Rg=(()=>{class e{static \u0275prov=ie({token:e,providedIn:"root",factory:Dw});factories;constructor(n){this.factories=n}static create(n,r){if(r){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Dw()),deps:[[e,new NN,new Um]]}}find(n){let r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Re(901,!1)}}return e})();function o0(e){pt(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=k1(r),o=[D1({}),{provide:hi,useExisting:r0},...n||[]],s=new qu({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return A1({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{pt(9)}}function Ag(e){let t=Ve(null);try{return e()}finally{Ve(t)}}var Tw=class{[li];constructor(e){this[li]=e}destroy(){this[li].destroy()}};function md(e,t){let n=Ao(e),r=t.elementInjector||td();return new Ac(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var V1={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function U1(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function j1(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Mg;function H1(e,t){if(!Mg){let n=Element.prototype;Mg=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Mg.call(e,t):!1}function $1(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[U1(r)]=[n,i]}),t}function W1(e,t){return t.get(Gi).resolveComponentFactory(e).inputs}function G1(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],l=z1(a,t,i);l!==-1&&r[l].push(a)}return r}function z1(e,t,n){let r=n;return j1(e)&&t.some((i,o)=>i!=="*"&&H1(e,i)?(r=o,!0):!1),r}var q1=10,Og=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Gi).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Pg(this.componentFactory,e,this.inputMap)}},Pg=class{componentFactory;injector;inputMap;eventEmitters=new bo(1);events=this.eventEmitters.pipe(yu(e=>hc(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(Ke),this.appRef=this.injector.get(sr),this.cdScheduler=t.get(hi),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=V1.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},q1))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=bt.create({providers:[],parent:this.injector}),n=G1(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new dt(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},kg=class extends HTMLElement{ngElementEventsSubscription=null};function s0(e,t){let n=W1(e,t.injector),r=t.strategyFactory||new Og(e,t.injector),i=$1(n);class o extends kg{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],a.setInputValue(l,d,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,d){let[h,f]=i[a];this.ngElementStrategy.setInputValue(h,c,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}var l0=null;function Zs(){return l0}function u0(e){l0??=e}var gd=class{},ct=new ve(""),d0=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:()=>P(K1),providedIn:"platform"})}return e})(),K1=(()=>{class e extends d0{_location;_history;_doc=P(ct);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zs().getBaseHref(this._doc)}onPopState(n){let r=Zs().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Zs().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function f0(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function a0(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ho(e){return e&&e[0]!=="?"?`?${e}`:e}var Bg=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:()=>P(X1),providedIn:"root"})}return e})(),Z1=new ve(""),X1=(()=>{class e extends Bg{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??P(ct).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return f0(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Ho(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Ho(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Ho(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(n){return new(n||e)(Ze(d0),Ze(Z1,8))};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vg=(()=>{class e{_subject=new Ne;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=eP(a0(c0(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Ho(r))}normalize(n){return e.stripTrailingSlash(Q1(this._basePath,c0(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ho(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ho(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=Ho;static joinWithSlash=f0;static stripTrailingSlash=a0;static \u0275fac=function(n){return new(n||e)(Ze(Bg))};static \u0275prov=ie({token:e,factory:()=>J1(),providedIn:"root"})}return e})();function J1(){return new Vg(Ze(Bg))}function Q1(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function c0(e){return e.replace(/\/index.html$/,"")}function eP(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}function p0(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var h0=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,i){this._ngEl=n,this._differs=r,this._renderer=i}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[i,o]=n.split("."),s=i.indexOf("-")===-1?void 0:Fr.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(n){return new(n||e)(Yt(qt),Yt(Rg),Yt(qs))};static \u0275dir=Xi({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Ug="browser",tP="server";function m0(e){return e===Ug}function jg(e){return e===tP}var yd=class{},$g=class extends gd{supportsDOMEvents=!0},Wg=class L0 extends $g{static makeCurrent(){u0(new L0)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=nP();return n==null?null:rP(n)}resetBaseElement(){Hc=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return p0(document.cookie,t)}},Hc=null;function nP(){return Hc=Hc||document.querySelector("base"),Hc?Hc.getAttribute("href"):null}function rP(e){return new URL(e,document.baseURI).pathname}var iP=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),Gg=new ve(""),w0=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new Re(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(Ze(Gg),Ze(Ke))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),_d=class{_doc;constructor(e){this._doc=e}manager},vd="ng-app-id";function g0(e){for(let t of e)t.remove()}function y0(e,t){let n=t.createElement("style");return n.textContent=e,n}function oP(e,t,n,r){let i=e.head?.querySelectorAll(`style[${vd}="${t}"],link[${vd}="${t}"]`);if(i)for(let o of i)o.removeAttribute(vd),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function zg(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var b0=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=jg(o),oP(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,y0);r?.forEach(i=>this.addUsage(i,this.external,zg))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(g0(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])g0(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,y0(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,zg(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(vd,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(Ze(ct),Ze(Vc),Ze(ag,8),Ze(Bo))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),Hg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Yg=/%COMP%/g,C0="%COMP%",sP=`_nghost-${C0}`,aP=`_ngcontent-${C0}`,cP=!0,lP=new ve("",{providedIn:"root",factory:()=>cP});function uP(e){return aP.replace(Yg,e)}function dP(e){return sP.replace(Yg,e)}function S0(e,t){return t.map(n=>n.replace(Yg,e))}var v0=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,l,c=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.tracingService=d,this.platformIsServer=jg(a),this.defaultRenderer=new $c(n,s,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Lr.ShadowDom&&(r=ne(w({},r),{encapsulation:Lr.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Ed?i.applyToHost(n):i instanceof Wc&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,f=this.tracingService;switch(r.encapsulation){case Lr.Emulated:o=new Ed(l,c,r,this.appId,d,s,a,h,f);break;case Lr.ShadowDom:return new qg(l,c,n,r,s,a,this.nonce,h,f);default:o=new Wc(l,c,r,d,s,a,h,f);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(Ze(w0),Ze(b0),Ze(Vc),Ze(lP),Ze(ct),Ze(Bo),Ze(Ke),Ze(ag),Ze(zs,8))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),$c=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(Hg[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(_0(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(_0(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new Re(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=Hg[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=Hg[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Fr.DashCase|Fr.Important)?e.style.setProperty(t,n,r&Fr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Fr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=Zs().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function _0(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var qg=class extends $c{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=r.styles;c=S0(r.id,c);for(let h of c){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=h,this.shadowRoot.appendChild(f)}let d=r.getExternalStyles?.();if(d)for(let h of d){let f=zg(h,i);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Wc=class extends $c{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let c=n.styles;this.styles=l?S0(l,c):c,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ed=class extends Wc{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,a,l){let c=r+"-"+n.id;super(e,t,n,i,o,s,a,l,c),this.contentAttr=uP(c),this.hostAttr=dP(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},fP=(()=>{class e extends _d{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(Ze(ct))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),E0=["alt","control","meta","shift"],pP={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},hP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},mP=(()=>{class e extends _d{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zs().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),E0.forEach(c=>{let d=r.indexOf(c);d>-1&&(r.splice(d,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=pP[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),E0.forEach(s=>{if(s!==i){let a=hP[s];a(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 n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(Ze(ct))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})();function I0(e){return o0(gP(e))}function gP(e){return{appProviders:[...wP,...e?.providers??[]],platformProviders:EP}}function yP(){Wg.makeCurrent()}function vP(){return new mi}function _P(){return Ub(document),document}var EP=[{provide:Bo,useValue:Ug},{provide:sg,useValue:yP,multi:!0},{provide:ct,useFactory:_P,deps:[]}],wP=[{provide:ed,useValue:"root"},{provide:mi,useFactory:vP,deps:[]},{provide:Gg,useClass:fP,multi:!0,deps:[ct]},{provide:Gg,useClass:mP,multi:!0,deps:[ct]},v0,b0,w0,{provide:An,useExisting:v0},{provide:yd,useClass:iP,deps:[]},[]],Kg=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=Ze(bP),r},providedIn:"root"})}return e})(),bP=(()=>{class e extends Kg{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case jr.NONE:return r;case jr.HTML:return Ki(r,"HTML")?Ur(r):ug(this._doc,String(r)).toString();case jr.STYLE:return Ki(r,"Style")?Ur(r):r;case jr.SCRIPT:if(Ki(r,"Script"))return Ur(r);throw new Re(5200,!1);case jr.URL:return Ki(r,"URL")?Ur(r):cd(String(r));case jr.RESOURCE_URL:if(Ki(r,"ResourceURL"))return Ur(r);throw new Re(5201,!1);default:throw new Re(5202,!1)}}bypassSecurityTrustHtml(n){return Zb(n)}bypassSecurityTrustStyle(n){return Xb(n)}bypassSecurityTrustScript(n){return Jb(n)}bypassSecurityTrustUrl(n){return Qb(n)}bypassSecurityTrustResourceUrl(n){return eC(n)}static \u0275fac=function(n){return new(n||e)(Ze(ct))};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Dn={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css",widgetURL:"http://localhost:8002/main.js"},qn=Pe($o()),T0="9.5.0",k=class yp{static SDK_VERSION=T0;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_VIDEO_DIALOG_CLOSED="CE Video Dialog Closed";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let t=yp.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");yp.SDK_VERSION_CODE=parseInt(t,10)}},S=class{static log(...e){qn.default.info(...e)}static debug(...e){qn.default.debug(...e)}static error(...e){qn.default.error(...e)}static warn(...e){qn.default.warn(...e)}static info(...e){qn.default.info(...e)}static trace(...e){qn.default.trace(...e)}static configure(e=k.LOG_PREFIX){qn.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${k.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?qn.default.setLevel(qn.default[localStorage.cooeeLogLevel]):qn.default.setLevel(Dn.debug?qn.default.TRACE:qn.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
7
+ `)}`}var Um=Lw(Nw("Optional"),8),NN=Lw(Nw("SkipSelf"),4);function No(e,t){return e.hasOwnProperty(Nu)?e[Nu]:null}function RN(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function AN(e){return e.flat(Number.POSITIVE_INFINITY)}function jm(e,t){e.forEach(n=>Array.isArray(n)?jm(n,t):t(n))}function Fw(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Au(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function MN(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function ON(e,t,n){let r=Pc(e,t);return r>=0?e[r|1]=n:(r=~r,MN(e,r,t,n)),r}function wh(e,t){let n=Pc(e,t);if(n>=0)return e[n|1]}function Pc(e,t){return PN(e,t,1)}function PN(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var Ro={},Wi=[],wc=new ve(""),Bw=new ve("",-1),Vw=new ve(""),Mu=class{get(e,t=Ec){if(t===Ec){let n=new Error(`NullInjectorError: No provider for ${or(e)}!`);throw n.name="NullInjectorError",n}return t}};function Ao(e){return e[mN]||null}function Uw(e){return e[gN]||null}function jw(e){return e[yN]||null}function kN(e){let t=Ao(e)||Uw(e)||jw(e);return t!==null&&t.standalone}function Hw(e){return{\u0275providers:e}}function LN(...e){return{\u0275providers:$w(!0,e),\u0275fromNgModule:!0}}function $w(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return jm(t,s=>{let a=s;Lh(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Ww(i,o),n}function Ww(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];Hm(i,o=>{t(o,r)})}}function Lh(e,t,n,r){if(e=ir(e),!e)return!1;let i=null,o=jE(e),s=!o&&Ao(e);if(!o&&!s){let l=e.ngModule;if(o=jE(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Lh(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{jm(o.imports,d=>{Lh(d,t,n,r)&&(c||=[],c.push(d))})}finally{}c!==void 0&&Ww(c,t)}if(!a){let c=No(i)||(()=>new i);t({provide:i,useFactory:c,deps:Wi},i),t({provide:Vw,useValue:i,multi:!0},i),t({provide:wc,useValue:()=>Ze(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=e;Hm(l,d=>{t(d,c)})}}else return!1;return i!==e&&e.providers!==void 0}function Hm(e,t){for(let n of e)Ow(n)&&(n=n.\u0275providers),Array.isArray(n)?Hm(n,t):t(n)}var FN=Ct({provide:String,useValue:Ct});function Gw(e){return e!==null&&typeof e=="object"&&FN in e}function BN(e){return!!(e&&e.useExisting)}function VN(e){return!!(e&&e.useFactory)}function Fh(e){return typeof e=="function"}var ed=new ve(""),Cu={},UN={},bh;function td(){return bh===void 0&&(bh=new Mu),bh}var Un=class{},bc=class extends Un{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Vh(e,o=>this.processProvider(o)),this.records.set(Bw,Ns(void 0,this)),r.has("environment")&&this.records.set(Un,Ns(void 0,this));let i=this.records.get(ed);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Vw,Wi,Ge.Self))}destroy(){gc(this),this._destroyed=!0;let e=Ve(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Ve(e)}}onDestroy(e){return gc(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){gc(this);let t=ji(this),n=Vn(void 0),r;try{return e()}finally{ji(t),Vn(n)}}get(e,t=Ec,n=Ge.Default){if(gc(this),e.hasOwnProperty($E))return e[$E](this);n=Qu(n);let r,i=ji(this),o=Vn(void 0);try{if(!(n&Ge.SkipSelf)){let a=this.records.get(e);if(a===void 0){let l=zN(e)&&Bm(e);l&&this.injectableDefInScope(l)?a=Ns(Bh(e),Cu):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let s=n&Ge.Self?td():this.parent;return t=n&Ge.Optional&&t===Ec?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[Ru]=s[Ru]||[]).unshift(or(e)),i)throw s;return TN(s,e,"R3InjectorError",this.source)}else throw s}finally{Vn(o),ji(i)}}resolveInjectorInitializers(){let e=Ve(null),t=ji(this),n=Vn(void 0),r;try{let i=this.get(wc,Wi,Ge.Self);for(let o of i)o()}finally{ji(t),Vn(n),Ve(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(or(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=ir(e);let t=Fh(e)?e:ir(e&&e.provide),n=HN(e);if(!Fh(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Ns(void 0,Cu,!0),r.factory=()=>kh(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=Ve(null);try{return t.value===Cu&&(t.value=UN,t.value=t.factory()),typeof t.value=="object"&&t.value&&GN(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{Ve(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=ir(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Bh(e){let t=Bm(e),n=t!==null?t.factory:No(e);if(n!==null)return n;if(e instanceof ve)throw new Re(204,!1);if(e instanceof Function)return jN(e);throw new Re(204,!1)}function jN(e){if(e.length>0)throw new Re(204,!1);let t=pN(e);return t!==null?()=>t.factory(e):()=>new e}function HN(e){if(Gw(e))return Ns(void 0,e.useValue);{let t=$N(e);return Ns(t,Cu)}}function $N(e,t,n){let r;if(Fh(e)){let i=ir(e);return No(i)||Bh(i)}else if(Gw(e))r=()=>ir(e.useValue);else if(VN(e))r=()=>e.useFactory(...kh(e.deps||[]));else if(BN(e))r=()=>Ze(ir(e.useExisting));else{let i=ir(e&&(e.useClass||e.provide));if(WN(e))r=()=>new i(...kh(e.deps));else return No(i)||Bh(i)}return r}function gc(e){if(e.destroyed)throw new Re(205,!1)}function Ns(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function WN(e){return!!e.deps}function GN(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zN(e){return typeof e=="function"||typeof e=="object"&&e instanceof ve}function Vh(e,t){for(let n of e)Array.isArray(n)?Vh(n,t):n&&Ow(n)?Vh(n.\u0275providers,t):t(n)}function zw(e,t){e instanceof bc&&gc(e);let n,r=ji(e),i=Vn(void 0);try{return t()}finally{ji(r),Vn(i)}}function qw(){return Pw()!==void 0||SN()!=null}function Yw(e){if(!qw())throw new Re(-203,!1)}function qN(e){return typeof e=="function"}var _i=0,Se=1,ye=2,Sn=3,Er=4,br=5,Cc=6,Ou=7,en=8,Sc=9,di=10,an=11,Ic=12,GE=13,Us=14,wr=15,Mo=16,Rs=17,fi=18,nd=19,Kw=20,Hi=21,Ch=22,Pu=23,zn=24,Ps=25,vn=26,Zw=1,Oo=7,ku=8,Ls=9,Cn=10;function $i(e){return Array.isArray(e)&&typeof e[Zw]=="object"}function Ei(e){return Array.isArray(e)&&e[Zw]===!0}function Xw(e){return(e.flags&4)!==0}function js(e){return e.componentOffset>-1}function $m(e){return(e.flags&1)===1}function pi(e){return!!e.template}function Lu(e){return(e[ye]&512)!==0}function kc(e){return(e[ye]&256)===256}var Uh=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function Jw(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function YN(e){return e.type.prototype.ngOnChanges&&(e.setInput=ZN),KN}function KN(){let e=eb(this),t=e?.current;if(t){let n=e.previous;if(n===Ro)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ZN(e,t,n,r,i){let o=this.declaredInputs[r],s=eb(e)||XN(e,{previous:Ro,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new Uh(c&&c.currentValue,n,l===Ro),Jw(e,t,i,n)}var Qw="__ngSimpleChanges__";function eb(e){return e[Qw]||null}function XN(e,t){return e[Qw]=t}var zE=null,pt=function(e,t=null,n){zE?.(e,t,n)},tb="svg",JN="math";function Pr(e){for(;Array.isArray(e);)e=e[_i];return e}function nb(e,t){return Pr(t[e])}function Vr(e,t){return Pr(t[e.index])}function Wm(e,t){return e.data[t]}function Gm(e,t){return e[t]}function kr(e,t){let n=t[e];return $i(n)?n:n[_i]}function QN(e){return(e[ye]&4)===4}function zm(e){return(e[ye]&128)===128}function eR(e){return Ei(e[Sn])}function Fs(e,t){return t==null?null:e[t]}function rb(e){e[Rs]=0}function qm(e){e[ye]&1024||(e[ye]|=1024,zm(e)&&Lc(e))}function tR(e,t){for(;e>0;)t=t[Us],e--;return t}function rd(e){return!!(e[ye]&9216||e[zn]?.dirty)}function jh(e){e[di].changeDetectionScheduler?.notify(8),e[ye]&64&&(e[ye]|=1024),rd(e)&&Lc(e)}function Lc(e){e[di].changeDetectionScheduler?.notify(0);let t=Po(e);for(;t!==null&&!(t[ye]&8192||(t[ye]|=8192,!zm(t)));)t=Po(t)}function ib(e,t){if(kc(e))throw new Re(911,!1);e[Hi]===null&&(e[Hi]=[]),e[Hi].push(t)}function nR(e,t){if(e[Hi]===null)return;let n=e[Hi].indexOf(t);n!==-1&&e[Hi].splice(n,1)}function Po(e){let t=e[Sn];return Ei(t)?t[Sn]:t}function ob(e){return e[Ou]??=[]}function sb(e){return e.cleanup??=[]}function rR(e,t,n,r){let i=ob(t);i.push(n),e.firstCreatePass&&sb(e).push(r,i.length-1)}var Ie={lFrame:hb(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Hh=!1;function iR(){return Ie.lFrame.elementDepthCount}function oR(){Ie.lFrame.elementDepthCount++}function sR(){Ie.lFrame.elementDepthCount--}function ab(){return Ie.bindingsEnabled}function aR(){return Ie.skipHydrationRootTNode!==null}function cR(e){return Ie.skipHydrationRootTNode===e}function lR(){Ie.skipHydrationRootTNode=null}function ze(){return Ie.lFrame.lView}function In(){return Ie.lFrame.tView}function Je(e){return Ie.lFrame.contextLView=e,e[en]}function Qe(e){return Ie.lFrame.contextLView=null,e}function Cr(){let e=cb();for(;e!==null&&e.type===64;)e=e.parent;return e}function cb(){return Ie.lFrame.currentTNode}function uR(){let e=Ie.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Hs(e,t){let n=Ie.lFrame;n.currentTNode=e,n.isParent=t}function lb(){return Ie.lFrame.isParent}function dR(){Ie.lFrame.isParent=!1}function fR(){return Ie.lFrame.contextLView}function ub(){return Hh}function qE(e){let t=Hh;return Hh=e,t}function Ym(){let e=Ie.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function pR(e){return Ie.lFrame.bindingIndex=e}function Fc(){return Ie.lFrame.bindingIndex++}function hR(e){let t=Ie.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mR(){return Ie.lFrame.inI18n}function gR(e,t){let n=Ie.lFrame;n.bindingIndex=n.bindingRootIndex=e,$h(t)}function yR(){return Ie.lFrame.currentDirectiveIndex}function $h(e){Ie.lFrame.currentDirectiveIndex=e}function vR(e){let t=Ie.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function db(){return Ie.lFrame.currentQueryIndex}function Km(e){Ie.lFrame.currentQueryIndex=e}function _R(e){let t=e[Se];return t.type===2?t.declTNode:t.type===1?e[br]:null}function fb(e,t,n){if(n&Ge.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&Ge.Host))&&(i=_R(o),!(i===null||(o=o[Us],i.type&10))););if(i===null)return!1;t=i,e=o}let r=Ie.lFrame=pb();return r.currentTNode=t,r.lView=e,!0}function Zm(e){let t=pb(),n=e[Se];Ie.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function pb(){let e=Ie.lFrame,t=e===null?null:e.child;return t===null?hb(e):t}function hb(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function mb(){let e=Ie.lFrame;return Ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var gb=mb;function Xm(){let e=mb();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 ER(e){return(Ie.lFrame.contextLView=tR(e,Ie.lFrame.contextLView))[en]}function zi(){return Ie.lFrame.selectedIndex}function ko(e){Ie.lFrame.selectedIndex=e}function Jm(){let e=Ie.lFrame;return Wm(e.tView,e.selectedIndex)}function Sr(){Ie.lFrame.currentNamespace=tb}function $s(){wR()}function wR(){Ie.lFrame.currentNamespace=null}function bR(){return Ie.lFrame.currentNamespace}var yb=!0;function Qm(){return yb}function eg(e){yb=e}function CR(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=YN(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function vb(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:l,ngOnDestroy:c}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),a&&(e.viewHooks??=[]).push(-n,a),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),c!=null&&(e.destroyHooks??=[]).push(n,c)}}function Su(e,t,n){_b(e,t,3,n)}function Iu(e,t,n,r){(e[ye]&3)===n&&_b(e,t,n,r)}function Sh(e,t){let n=e[ye];(n&3)===t&&(n&=16383,n+=1,e[ye]=n)}function _b(e,t,n,r){let i=r!==void 0?e[Rs]&65535:0,o=r??-1,s=t.length-1,a=0;for(let l=i;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[Rs]+=65536),(a<o||o==-1)&&(SR(e,n,t,l),e[Rs]=(e[Rs]&4294901760)+l+2),l++}function YE(e,t){pt(4,e,t);let n=Ve(null);try{t.call(e)}finally{Ve(n),pt(5,e,t)}}function SR(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[ye]>>14<e[Rs]>>16&&(e[ye]&3)===t&&(e[ye]+=16384,YE(a,o)):YE(a,o)}var ks=-1,Dc=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function IR(e){return e instanceof Dc}function DR(e){return(e.flags&8)!==0}function TR(e){return(e.flags&16)!==0}function xR(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];RR(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function NR(e){return e===3||e===4||e===6}function RR(e){return e.charCodeAt(0)===64}function Tc(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?KE(e,n,i,null,t[++r]):KE(e,n,i,null,null))}}return e}function KE(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var Ih={},Wh=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Qu(n);let r=this.injector.get(e,Ih,n);return r!==Ih||t===Ih?r:this.parentInjector.get(e,t,n)}};function Eb(e){return e!==ks}function Fu(e){return e&32767}function AR(e){return e>>16}function Bu(e,t){let n=AR(e),r=t;for(;n>0;)r=r[Us],n--;return r}var Gh=!0;function Vu(e){let t=Gh;return Gh=e,t}var MR=256,wb=MR-1,bb=5,OR=0,Or={};function PR(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vc)&&(r=n[vc]),r==null&&(r=n[vc]=OR++);let i=r&wb,o=1<<i;t.data[e+(i>>bb)]|=o}function Cb(e,t){let n=Sb(e,t);if(n!==-1)return n;let r=t[Se];r.firstCreatePass&&(e.injectorIndex=t.length,Dh(r.data,e),Dh(t,null),Dh(r.blueprint,null));let i=tg(e,t),o=e.injectorIndex;if(Eb(i)){let s=Fu(i),a=Bu(i,t),l=a[Se].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=i,o}function Dh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Sb(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function tg(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Nb(i),r===null)return ks;if(n++,i=i[Us],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ks}function kR(e,t,n){PR(e,t,n)}function Ib(e,t,n){if(n&Ge.Optional||e!==void 0)return e;Vm(t,"NodeInjector")}function Db(e,t,n,r){if(n&Ge.Optional&&r===void 0&&(r=null),(n&(Ge.Self|Ge.Host))===0){let i=e[Sc],o=Vn(void 0);try{return i?i.get(t,r,n&Ge.Optional):kw(t,r,n&Ge.Optional)}finally{Vn(o)}}return Ib(r,t,n)}function Tb(e,t,n,r=Ge.Default,i){if(e!==null){if(t[ye]&2048&&!(r&Ge.Self)){let s=VR(e,t,n,r,Or);if(s!==Or)return s}let o=xb(e,t,n,r,Or);if(o!==Or)return o}return Db(t,n,r,i)}function xb(e,t,n,r,i){let o=FR(n);if(typeof o=="function"){if(!fb(t,e,r))return r&Ge.Host?Ib(i,n,r):Db(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&Ge.Optional))Vm(n);else return s}finally{gb()}}else if(typeof o=="number"){let s=null,a=Sb(e,t),l=ks,c=r&Ge.Host?t[wr][br]:null;for((a===-1||r&Ge.SkipSelf)&&(l=a===-1?tg(e,t):t[a+8],l===ks||!XE(r,!1)?a=-1:(s=t[Se],a=Fu(l),t=Bu(l,t)));a!==-1;){let d=t[Se];if(ZE(o,a,d.data)){let h=LR(a,t,n,s,r,c);if(h!==Or)return h}l=t[a+8],l!==ks&&XE(r,t[Se].data[a+8]===c)&&ZE(o,a,t)?(s=d,a=Fu(l),t=Bu(l,t)):a=-1}}return i}function LR(e,t,n,r,i,o){let s=t[Se],a=s.data[e+8],l=r==null?js(a)&&Gh:r!=s&&(a.type&3)!==0,c=i&Ge.Host&&o===a,d=Du(a,s,n,l,c);return d!==null?Uu(t,s,d,a):Or}function Du(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,c=e.directiveEnd,d=o>>20,h=r?a:a+d,f=i?a+d:c;for(let g=h;g<f;g++){let m=s[g];if(g<l&&n===m||g>=l&&m.type===n)return g}if(i){let g=s[l];if(g&&pi(g)&&g.type===n)return l}return null}function Uu(e,t,n,r){let i=e[n],o=t.data;if(IR(i)){let s=i;s.resolving&&_N(vN(o[n]));let a=Vu(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Vn(s.injectImpl):null,d=fb(e,r,Ge.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&CR(n,o[n],t)}finally{c!==null&&Vn(c),Vu(a),s.resolving=!1,gb()}}return i}function FR(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vc)?e[vc]:void 0;return typeof t=="number"?t>=0?t&wb:BR:t}function ZE(e,t,n){let r=1<<e;return!!(n[t+(e>>bb)]&r)}function XE(e,t){return!(e&Ge.Self)&&!(e&Ge.Host&&t)}var xo=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Tb(this._tNode,this._lView,e,Qu(n),t)}};function BR(){return new xo(Cr(),ze())}function id(e){return Ju(()=>{let t=e.prototype.constructor,n=t[Nu]||zh(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Nu]||zh(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function zh(e){return Rw(e)?()=>{let t=zh(ir(e));return t&&t()}:No(e)}function VR(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[ye]&2048&&!Lu(s);){let a=xb(o,s,n,r|Ge.Self,Or);if(a!==Or)return a;let l=o.parent;if(!l){let c=s[Kw];if(c){let d=c.get(n,Or,r);if(d!==Or)return d}l=Nb(s),s=s[Us]}o=l}return i}function Nb(e){let t=e[Se],n=t.type;return n===2?t.declTNode:n===1?e[br]:null}function JE(e,t=null,n=null,r){let i=UR(e,t,n,r);return i.resolveInjectorInitializers(),i}function UR(e,t=null,n=null,r,i=new Set){let o=[n||Wi,LN(e)];return r=r||(typeof e=="object"?void 0:or(e)),new bc(o,t||td(),r||null,i)}var bt=class A0{static THROW_IF_NOT_FOUND=Ec;static NULL=new Mu;static create(t,n){if(Array.isArray(t))return JE({name:""},n,t,"");{let r=t.name??"";return JE({name:r},t.parent,t.providers,r)}}static \u0275prov=ie({token:A0,providedIn:"any",factory:()=>Ze(Bw)});static __NG_ELEMENT_ID__=-1},jR=new ve("");jR.__NG_ELEMENT_ID__=e=>{let t=Cr();if(t===null)throw new Re(204,!1);if(t.type&2)return t.value;if(e&Ge.Optional)return null;throw new Re(204,!1)};var Rb=!1,ng=(()=>{class e{static __NG_ELEMENT_ID__=HR;static __NG_ENV_ID__=n=>n}return e})(),qh=class extends ng{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return ib(this._lView,e),()=>nR(this._lView,e)}};function HR(){return new qh(ze())}var hi=class{},od=new ve("",{providedIn:"root",factory:()=>!1}),Ab=new ve(""),rg=new ve(""),sd=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ui(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=ie({token:e,providedIn:"root",factory:()=>new e})}return e})(),Yh=class extends Ne{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,qw()&&(this.destroyRef=P(ng,{optional:!0})??void 0,this.pendingTasks=P(sd,{optional:!0})??void 0)}emit(e){let t=Ve(null);try{super.next(e)}finally{Ve(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let a=e;r=a.next?.bind(a),i=a.error?.bind(a),o=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return e instanceof Bt&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},yt=Yh;function ju(...e){}function Mb(e){let t,n;function r(){e=ju;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function QE(e){return queueMicrotask(()=>e()),()=>{e=ju}}var ig="isAngularZone",Hu=ig+"_ID",$R=0,Ke=class Cd{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new yt(!1);onMicrotaskEmpty=new yt(!1);onStable=new yt(!1);onError=new yt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Rb}=t;if(typeof Zone>"u")throw new Re(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,zR(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ig)===!0}static assertInAngularZone(){if(!Cd.isInAngularZone())throw new Re(909,!1)}static assertNotInAngularZone(){if(Cd.isInAngularZone())throw new Re(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,WR,ju,ju);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)}},WR={};function og(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function GR(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Mb(()=>{e.callbackScheduled=!1,Kh(e),e.isCheckStableRunning=!0,og(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Kh(e)}function zR(e){let t=()=>{GR(e)},n=$R++;e._inner=e._inner.fork({name:"angular",properties:{[ig]:!0,[Hu]:n,[Hu+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(qR(l))return r.invokeTask(o,s,a,l);try{return ew(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),tw(e)}},onInvoke:(r,i,o,s,a,l,c)=>{try{return ew(e),r.invoke(o,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!YR(l)&&t(),tw(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Kh(e),og(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Kh(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ew(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tw(e){e._nesting--,og(e)}var $u=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new yt;onMicrotaskEmpty=new yt;onStable=new yt;onError=new yt;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function qR(e){return Ob(e,"__ignore_ng_zone__")}function YR(e){return Ob(e,"__scheduler_tick__")}function Ob(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var mi=class{_console=console;handleError(e){this._console.error("ERROR",e)}},KR=new ve("",{providedIn:"root",factory:()=>{let e=P(Ke),t=P(mi);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function ZR(){return Ws(Cr(),ze())}function Ws(e,t){return new qt(Vr(e,t))}var qt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ZR}return e})();function XR(e){return e instanceof qt?e.nativeElement:e}function Gs(e,t){let n=sE(e),r=n[li];return t?.equal&&(r.equal=t.equal),n.set=i=>dh(r,i),n.update=i=>aE(r,i),n.asReadonly=JR.bind(n),n}function JR(){let e=this[li];if(e.readonlyFn===void 0){let t=()=>this();t[li]=e,e.readonlyFn=t}return e.readonlyFn}function QR(){return this._results[Symbol.iterator]()}var Zh=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Ne}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=AN(e);(this._changesDetected=!RN(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=QR};function Pb(e){return(e.flags&128)===128}var kb=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(kb||{}),Lb=new Map,eA=0;function tA(){return eA++}function nA(e){Lb.set(e[nd],e)}function Xh(e){Lb.delete(e[nd])}var nw="__ngContext__";function Bc(e,t){$i(t)?(e[nw]=t[nd],nA(t)):e[nw]=t}function Fb(e){return Vb(e[Ic])}function Bb(e){return Vb(e[Er])}function Vb(e){for(;e!==null&&!Ei(e);)e=e[Er];return e}var Jh;function Ub(e){Jh=e}function jb(){if(Jh!==void 0)return Jh;if(typeof document<"u")return document;throw new Re(210,!1)}var Vc=new ve("",{providedIn:"root",factory:()=>rA}),rA="ng",sg=new ve(""),Bo=new ve("",{providedIn:"platform",factory:()=>"unknown"}),Hb=new ve(""),ag=new ve("",{providedIn:"root",factory:()=>jb().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),iA="h",oA="b",$b=!1,sA=new ve("",{providedIn:"root",factory:()=>$b}),cg=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(cg||{}),zs=new ve(""),rw=new Set;function qi(e){rw.has(e)||(rw.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Wb=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=aA}return e})();function aA(){return new Wb(ze(),Cr())}var As=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(As||{}),Gb=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=ie({token:e,providedIn:"root",factory:()=>new e})}return e})(),cA=[As.EarlyRead,As.Write,As.MixedReadWrite,As.Read],lA=(()=>{class e{ngZone=P(Ke);scheduler=P(hi);errorHandler=P(mi,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){P(zs,{optional:!0})}execute(){let n=this.sequences.size>0;n&&pt(16),this.executing=!0;for(let r of cA)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&pt(17)}register(n){let{view:r}=n;r!==void 0?((r[Ps]??=[]).push(n),Lc(r),r[ye]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(cg.AFTER_NEXT_RENDER,n):n()}static \u0275prov=ie({token:e,providedIn:"root",factory:()=>new e})}return e})(),Qh=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,t,n,r,i,o=null){this.impl=e,this.hooks=t,this.view=n,this.once=r,this.snapshot=o,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[Ps];e&&(this.view[Ps]=e.filter(t=>t!==this))}};function lg(e,t){!t?.injector&&Yw(lg);let n=t?.injector??P(bt);return qi("NgAfterRender"),zb(e,n,t,!1)}function Yi(e,t){!t?.injector&&Yw(Yi);let n=t?.injector??P(bt);return qi("NgAfterNextRender"),zb(e,n,t,!0)}function uA(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function zb(e,t,n,r){let i=t.get(Gb);i.impl??=t.get(lA);let o=t.get(zs,null,{optional:!0}),s=n?.phase??As.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(ng):null,l=t.get(Wb,null,{optional:!0}),c=new Qh(i.impl,uA(e,s),l?.view,r,a,o?.snapshot(null));return i.impl.register(c),c}var dA=()=>null;function qb(e,t,n=!1){return dA(e,t,n)}function Yb(e,t){let n=e.contentQueries;if(n!==null){let r=Ve(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];Km(o),a.contentQueries(2,t[s],s)}}}finally{Ve(r)}}}function em(e,t,n){Km(0);let r=Ve(null);try{t(e,n)}finally{Ve(r)}}function Kb(e,t,n){if(Xw(t)){let r=Ve(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{Ve(r)}}}var Lr=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Lr||{}),_u;function fA(){if(_u===void 0&&(_u=null,_c.trustedTypes))try{_u=_c.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _u}function ad(e){return fA()?.createHTML(e)||e}var Eu;function pA(){if(Eu===void 0&&(Eu=null,_c.trustedTypes))try{Eu=_c.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Eu}function iw(e){return pA()?.createHTML(e)||e}var gi=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xw})`}},tm=class extends gi{getTypeName(){return"HTML"}},nm=class extends gi{getTypeName(){return"Style"}},rm=class extends gi{getTypeName(){return"Script"}},im=class extends gi{getTypeName(){return"URL"}},om=class extends gi{getTypeName(){return"ResourceURL"}};function Ur(e){return e instanceof gi?e.changingThisBreaksApplicationSecurity:e}function Ki(e,t){let n=hA(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${xw})`)}return n===t}function hA(e){return e instanceof gi&&e.getTypeName()||null}function Zb(e){return new tm(e)}function Xb(e){return new nm(e)}function Jb(e){return new rm(e)}function Qb(e){return new im(e)}function eC(e){return new om(e)}function mA(e){let t=new am(e);return gA()?new sm(t):t}var sm=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(ad(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},am=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=ad(e),t}};function gA(){try{return!!new window.DOMParser().parseFromString(ad(""),"text/html")}catch{return!1}}var yA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cd(e){return e=String(e),e.match(yA)?e:"unsafe:"+e}function wi(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Uc(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var tC=wi("area,br,col,hr,img,wbr"),nC=wi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rC=wi("rp,rt"),vA=Uc(rC,nC),_A=Uc(nC,wi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),EA=Uc(rC,wi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ow=Uc(tC,_A,EA,vA),iC=wi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wA=wi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bA=wi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),CA=Uc(iC,wA,bA),SA=wi("script,style,template"),cm=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=TA(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=DA(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=sw(e).toLowerCase();if(!ow.hasOwnProperty(t))return this.sanitizedSomething=!0,!SA.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!CA.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;iC[s]&&(a=cd(a)),this.buf.push(" ",o,'="',aw(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=sw(e).toLowerCase();ow.hasOwnProperty(t)&&!tC.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(aw(e))}};function IA(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function DA(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw oC(t);return t}function TA(e){let t=e.firstChild;if(t&&IA(e,t))throw oC(t);return t}function sw(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function oC(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var xA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NA=/([^\#-~ |!])/g;function aw(e){return e.replace(/&/g,"&amp;").replace(xA,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(NA,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var wu;function ug(e,t){let n=null;try{wu=wu||mA(e);let r=t?String(t):"";n=wu.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=wu.getInertBodyElement(r)}while(r!==o);let s=new cm().sanitizeChildren(cw(n)||n);return ad(s)}finally{if(n){let r=cw(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function cw(e){return"content"in e&&RA(e)?e.content:null}function RA(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var jr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(jr||{});function jc(e){let t=sC();return t?iw(t.sanitize(jr.HTML,e)||""):Ki(e,"HTML")?iw(Ur(e)):ug(jb(),Oc(e))}function cn(e){let t=sC();return t?t.sanitize(jr.URL,e)||"":Ki(e,"URL")?Ur(e):cd(Oc(e))}function sC(){let e=ze();return e&&e[di].sanitizer}function aC(e){return e.ownerDocument.defaultView}function AA(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var cC="ng-template";function MA(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&AA(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(dg(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function dg(e){return e.type===4&&e.value!==cC}function OA(e,t,n){let r=e.type===4&&!n?cC:e.value;return t===r}function PA(e,t,n){let r=4,i=e.attrs,o=i!==null?FA(i):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!_r(r)&&!_r(l))return!1;if(s&&_r(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!OA(e,l,n)||l===""&&t.length===1){if(_r(r))return!1;s=!0}}else if(r&8){if(i===null||!MA(e,i,l,n)){if(_r(r))return!1;s=!0}}else{let c=t[++a],d=kA(l,i,dg(e),n);if(d===-1){if(_r(r))return!1;s=!0;continue}if(c!==""){let h;if(d>o?h="":h=i[d+1].toLowerCase(),r&2&&c!==h){if(_r(r))return!1;s=!0}}}}return _r(r)||s}function _r(e){return(e&1)===0}function kA(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return BA(t,e)}function LA(e,t,n=!1){for(let r=0;r<t.length;r++)if(PA(e,t[r],n))return!0;return!1}function FA(e){for(let t=0;t<e.length;t++){let n=e[t];if(NR(n))return t}return e.length}function BA(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function lw(e,t){return e?":not("+t.trim()+")":t}function VA(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!_r(s)&&(t+=lw(o,i),i=""),r=s,o=o||!_r(r);n++}return i!==""&&(t+=lw(o,i)),t}function UA(e){return e.map(VA).join(",")}function jA(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!_r(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var bi={};function HA(e,t){return e.createText(t)}function $A(e,t,n){e.setValue(t,n)}function lC(e,t,n){return e.createElement(t,n)}function Wu(e,t,n,r,i){e.insertBefore(t,n,r,i)}function uC(e,t,n){e.appendChild(t,n)}function uw(e,t,n,r,i){r!==null?Wu(e,t,n,r,i):uC(e,t,n)}function WA(e,t,n){e.removeChild(null,t,n)}function GA(e,t,n){e.setAttribute(t,"style",n)}function zA(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function dC(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&xR(e,t,r),i!==null&&zA(e,t,i),o!==null&&GA(e,t,o)}function fg(e,t,n,r,i,o,s,a,l,c,d){let h=vn+r,f=h+i,g=qA(h,f),m=typeof c=="function"?c():c;return g[Se]={type:e,blueprint:g,template:n,queries:null,viewQuery:a,declTNode:t,data:g.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:m,incompleteFirstPass:!1,ssrId:d}}function qA(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:bi);return n}function YA(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=fg(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function pg(e,t,n,r,i,o,s,a,l,c,d){let h=t.blueprint.slice();return h[_i]=i,h[ye]=r|4|128|8|64|1024,(c!==null||e&&e[ye]&2048)&&(h[ye]|=2048),rb(h),h[Sn]=h[Us]=e,h[en]=n,h[di]=s||e&&e[di],h[an]=a||e&&e[an],h[Sc]=l||e&&e[Sc]||null,h[br]=o,h[nd]=tA(),h[Cc]=d,h[Kw]=c,h[wr]=t.type==2?e[wr]:h,h}function KA(e,t,n){let r=Vr(t,e),i=YA(n),o=e[di].rendererFactory,s=hg(e,pg(e,i,null,fC(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function fC(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function pC(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function hg(e,t){return e[Ic]?e[GE][Er]=t:e[Ic]=t,e[GE]=t,t}function Z(e=1){hC(In(),ze(),zi()+e,!1)}function hC(e,t,n,r){if(!r)if((t[ye]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Su(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Iu(t,i,0,n)}ko(n)}var ld=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ld||{});function lm(e,t,n,r){let i=Ve(null);try{let[o,s,a]=e.inputs[n],l=null;(s&ld.SignalBased)!==0&&(l=t[o][li]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,o):Jw(t,l,o,r)}finally{Ve(i)}}function mC(e,t,n,r,i){let o=zi(),s=r&2;try{ko(-1),s&&t.length>vn&&hC(e,t,vn,!1),pt(s?2:0,i),n(r,i)}finally{ko(o),pt(s?3:1,i)}}function mg(e,t,n){tM(e,t,n),(n.flags&64)===64&&nM(e,t,n)}function gC(e,t,n=Vr){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function ZA(e,t,n,r){let i=r.get(sA,$b)||n===Lr.ShadowDom,o=e.selectRootElement(t,i);return XA(o),o}function XA(e){JA(e)}var JA=()=>null;function QA(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function yC(e,t,n,r,i,o,s,a){if(!a&&gg(t,e,n,r,i)){js(t)&&eM(n,t.index);return}if(t.type&3){let l=Vr(t,n);r=QA(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)}else t.type&12}function eM(e,t){let n=kr(t,e);n[ye]&16||(n[ye]|=64)}function tM(e,t,n){let r=n.directiveStart,i=n.directiveEnd;js(n)&&KA(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Cb(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],l=Uu(t,e,s,n);if(Bc(l,t),o!==null&&sM(t,s-r,l,a,n,o),pi(a)){let c=kr(n.index,t);c[en]=Uu(t,e,s,n)}}}function nM(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=yR();try{ko(o);for(let a=r;a<i;a++){let l=e.data[a],c=t[a];$h(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&rM(l,c)}}finally{ko(-1),$h(s)}}function rM(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function vC(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];LA(t,o.selectors,!1)&&(r??=[],pi(o)?r.unshift(o):r.push(o))}return r}function iM(e,t,n,r,i,o){let s=Vr(e,t);oM(t[an],s,o,e.value,n,r,i)}function oM(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?Oc(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function sM(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];lm(r,n,l,c)}}function _C(e,t){let n=e[Sc],r=n?n.get(mi,null):null;r&&r.handleError(t)}function gg(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],d=s[l+1],h=t.data[c];lm(h,n[c],d,i),a=!0}if(o)for(let l of o){let c=n[l],d=t.data[l];lm(d,c,r,i),a=!0}return a}function aM(e,t){let n=kr(t,e),r=n[Se];cM(r,n);let i=n[_i];i!==null&&n[Cc]===null&&(n[Cc]=qb(i,n[Sc])),pt(18),yg(r,n,n[en]),pt(19,n[en])}function cM(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function yg(e,t,n){Zm(t);try{let r=e.viewQuery;r!==null&&em(1,r,n);let i=e.template;i!==null&&mC(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[fi]?.finishViewCreation(e),e.staticContentQueries&&Yb(e,t),e.staticViewQueries&&em(2,e.viewQuery,n);let o=e.components;o!==null&&lM(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[ye]&=-5,Xm()}}function lM(e,t){for(let n=0;n<t.length;n++)aM(e,t[n])}function ud(e,t,n,r){let i=Ve(null);try{let o=t.tView,s=e[ye]&4096?4096:16,a=pg(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[Mo]=l;let c=e[fi];return c!==null&&(a[fi]=c.createEmbeddedView(o)),yg(o,a,n),a}finally{Ve(i)}}function xc(e,t){return!t||t.firstChild===null||Pb(e)}var uM;function vg(e,t){return uM(e,t)}var Fr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Fr||{});function EC(e){return(e.flags&32)===32}function Ms(e,t,n,r,i){if(r!=null){let o,s=!1;Ei(r)?o=r:$i(r)&&(s=!0,r=r[_i]);let a=Pr(r);e===0&&n!==null?i==null?uC(t,n,a):Wu(t,n,a,i||null,!0):e===1&&n!==null?Wu(t,n,a,i||null,!0):e===2?WA(t,a,s):e===3&&t.destroyNode(a),o!=null&&bM(t,e,o,n,i)}}function dM(e,t){wC(e,t),t[_i]=null,t[br]=null}function fM(e,t,n,r,i,o){r[_i]=i,r[br]=t,fd(e,r,n,1,i,o)}function wC(e,t){t[di].changeDetectionScheduler?.notify(9),fd(e,t,t[an],2,null,null)}function pM(e){let t=e[Ic];if(!t)return Th(e[Se],e);for(;t;){let n=null;if($i(t))n=t[Ic];else{let r=t[Cn];r&&(n=r)}if(!n){for(;t&&!t[Er]&&t!==e;)$i(t)&&Th(t[Se],t),t=t[Sn];t===null&&(t=e),$i(t)&&Th(t[Se],t),n=t&&t[Er]}t=n}}function _g(e,t){let n=e[Ls],r=n.indexOf(t);n.splice(r,1)}function dd(e,t){if(kc(t))return;let n=t[an];n.destroyNode&&fd(e,t,n,3,null,null),pM(t)}function Th(e,t){if(kc(t))return;let n=Ve(null);try{t[ye]&=-129,t[ye]|=256,t[zn]&&uh(t[zn]),mM(e,t),hM(e,t),t[Se].type===1&&t[an].destroy();let r=t[Mo];if(r!==null&&Ei(t[Sn])){r!==t[Sn]&&_g(r,t);let i=t[fi];i!==null&&i.detachView(e)}Xh(t)}finally{Ve(n)}}function hM(e,t){let n=e.cleanup,r=t[Ou];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ou]=null);let i=t[Hi];if(i!==null){t[Hi]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[Pu];if(o!==null){t[Pu]=null;for(let s of o)s.destroy()}}function mM(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Dc)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];pt(4,a,l);try{l.call(a)}finally{pt(5,a,l)}}else{pt(4,i,o);try{o.call(i)}finally{pt(5,i,o)}}}}}function gM(e,t,n){return yM(e,t.parent,n)}function yM(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[_i];if(js(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Lr.None||i===Lr.Emulated)return null}return Vr(r,n)}function vM(e,t,n){return EM(e,t,n)}function _M(e,t,n){return e.type&40?Vr(e,n):null}var EM=_M,dw;function Eg(e,t,n,r){let i=gM(e,r,t),o=t[an],s=r.parent||t[br],a=vM(s,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)uw(o,i,n[l],a,!1);else uw(o,i,n,a,!1);dw!==void 0&&dw(o,r,t,n,i)}function yc(e,t){if(t!==null){let n=t.type;if(n&3)return Vr(t,e);if(n&4)return um(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return yc(e,r);{let i=e[t.index];return Ei(i)?um(-1,i):Pr(i)}}else{if(n&128)return yc(e,t.next);if(n&32)return vg(t,e)()||Pr(e[t.index]);{let r=bC(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Po(e[wr]);return yc(i,r)}else return yc(e,t.next)}}}return null}function bC(e,t){if(t!==null){let n=e[wr][br],r=t.projection;return n.projection[r]}return null}function um(e,t){let n=Cn+e+1;if(n<t.length){let r=t[n],i=r[Se].firstChild;if(i!==null)return yc(r,i)}return t[Oo]}function wg(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&Bc(Pr(a),r),n.flags|=2),!EC(n))if(l&8)wg(e,t,n.child,r,i,o,!1),Ms(t,e,i,a,o);else if(l&32){let c=vg(n,r),d;for(;d=c();)Ms(t,e,i,d,o);Ms(t,e,i,a,o)}else l&16?wM(e,t,r,n,i,o):Ms(t,e,i,a,o);n=s?n.projectionNext:n.next}}function fd(e,t,n,r,i,o){wg(n,r,e.firstChild,t,i,o,!1)}function wM(e,t,n,r,i,o){let s=n[wr],a=s[br].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let c=a[l];Ms(t,e,i,c,o)}else{let l=a,c=s[Sn];Pb(r)&&(l.flags|=128),wg(e,t,l,c,i,o,!0)}}function bM(e,t,n,r,i){let o=n[Oo],s=Pr(n);o!==s&&Ms(t,e,r,o,i);for(let a=Cn;a<n.length;a++){let l=n[a];fd(l[Se],l,e,t,r,o)}}function CM(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Fr.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Fr.Important),e.setStyle(n,r,i,o))}}function Gu(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Pr(o)),Ei(o)&&SM(o,r);let s=n.type;if(s&8)Gu(e,t,n.child,r);else if(s&32){let a=vg(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=bC(t,n);if(Array.isArray(a))r.push(...a);else{let l=Po(t[wr]);Gu(l[Se],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function SM(e,t){for(let n=Cn;n<e.length;n++){let r=e[n],i=r[Se].firstChild;i!==null&&Gu(r[Se],r,i,t)}e[Oo]!==e[_i]&&t.push(e[Oo])}function CC(e){if(e[Ps]!==null){for(let t of e[Ps])t.impl.addSequence(t);e[Ps].length=0}}var SC=[];function IM(e){return e[zn]??DM(e)}function DM(e){let t=SC.pop()??Object.create(xM);return t.lView=e,t}function TM(e){e.lView[zn]!==e&&(e.lView=null,SC.push(e))}var xM=ne(w({},Wl),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Lc(e.lView)},consumerOnSignalRead(){this.lView[zn]=this}});function NM(e){let t=e[zn]??Object.create(RM);return t.lView=e,t}var RM=ne(w({},Wl),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Po(e.lView);for(;t&&!IC(t[Se]);)t=Po(t);t&&qm(t)},consumerOnSignalRead(){this.lView[zn]=this}});function IC(e){return e.type!==2}function DC(e){if(e[Pu]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Pu])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[ye]&8192)}}var AM=100;function TC(e,t=!0,n=0){let r=e[di].rendererFactory,i=!1;i||r.begin?.();try{MM(e,n)}catch(o){throw t&&_C(e,o),o}finally{i||r.end?.()}}function MM(e,t){let n=ub();try{qE(!0),dm(e,t);let r=0;for(;rd(e);){if(r===AM)throw new Re(103,!1);r++,dm(e,1)}}finally{qE(n)}}function OM(e,t,n,r){if(kc(t))return;let i=t[ye],o=!1,s=!1;Zm(t);let a=!0,l=null,c=null;o||(IC(e)?(c=IM(t),l=ch(c)):K_()===null?(a=!1,c=NM(t),l=ch(c)):t[zn]&&(uh(t[zn]),t[zn]=null));try{rb(t),pR(e.bindingStartIndex),n!==null&&mC(e,t,n,2,r);let d=(i&3)===3;if(!o)if(d){let g=e.preOrderCheckHooks;g!==null&&Su(t,g,null)}else{let g=e.preOrderHooks;g!==null&&Iu(t,g,0,null),Sh(t,0)}if(s||PM(t),DC(t),xC(t,0),e.contentQueries!==null&&Yb(e,t),!o)if(d){let g=e.contentCheckHooks;g!==null&&Su(t,g)}else{let g=e.contentHooks;g!==null&&Iu(t,g,1),Sh(t,1)}LM(e,t);let h=e.components;h!==null&&RC(t,h,0);let f=e.viewQuery;if(f!==null&&em(2,f,r),!o)if(d){let g=e.viewCheckHooks;g!==null&&Su(t,g)}else{let g=e.viewHooks;g!==null&&Iu(t,g,2),Sh(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ch]){for(let g of t[Ch])g();t[Ch]=null}o||(CC(t),t[ye]&=-73)}catch(d){throw o||Lc(t),d}finally{c!==null&&(Q_(c,l),a&&TM(c)),Xm()}}function xC(e,t){for(let n=Fb(e);n!==null;n=Bb(n))for(let r=Cn;r<n.length;r++){let i=n[r];NC(i,t)}}function PM(e){for(let t=Fb(e);t!==null;t=Bb(t)){if(!(t[ye]&2))continue;let n=t[Ls];for(let r=0;r<n.length;r++){let i=n[r];qm(i)}}}function kM(e,t,n){pt(18);let r=kr(t,e);NC(r,n),pt(19,r[en])}function NC(e,t){zm(e)&&dm(e,t)}function dm(e,t){let n=e[Se],r=e[ye],i=e[zn],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&lh(i)),o||=!1,i&&(i.dirty=!1),e[ye]&=-9217,o)OM(n,e,n.template,e[en]);else if(r&8192){DC(e),xC(e,1);let s=n.components;s!==null&&RC(e,s,1),CC(e)}}function RC(e,t,n){for(let r=0;r<t.length;r++)kM(e,t[r],n)}function LM(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)ko(~i);else{let o=i,s=n[++r],a=n[++r];gR(s,o);let l=t[o];pt(24,l),a(2,l),pt(25,l)}}}finally{ko(-1)}}function bg(e,t){let n=ub()?64:1088;for(e[di].changeDetectionScheduler?.notify(t);e;){e[ye]|=n;let r=Po(e);if(Lu(e)&&!r)return e;e=r}return null}function AC(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function MC(e,t){let n=Cn+t;if(n<e.length)return e[n]}function pd(e,t,n,r=!0){let i=t[Se];if(FM(i,t,e,n),r){let s=um(n,e),a=t[an],l=a.parentNode(e[Oo]);l!==null&&fM(i,e[br],a,t,l,s)}let o=t[Cc];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function OC(e,t){let n=Nc(e,t);return n!==void 0&&dd(n[Se],n),n}function Nc(e,t){if(e.length<=Cn)return;let n=Cn+t,r=e[n];if(r){let i=r[Mo];i!==null&&i!==e&&_g(i,r),t>0&&(e[n-1][Er]=r[Er]);let o=Au(e,Cn+t);dM(r[Se],r);let s=o[fi];s!==null&&s.detachView(o[Se]),r[Sn]=null,r[Er]=null,r[ye]&=-129}return r}function FM(e,t,n,r){let i=Cn+r,o=n.length;r>0&&(n[i-1][Er]=t),r<o-Cn?(t[Er]=n[i],Fw(n,Cn+r,t)):(n.push(t),t[Er]=null),t[Sn]=n;let s=t[Mo];s!==null&&n!==s&&PC(s,t);let a=t[fi];a!==null&&a.insertView(e),jh(t),t[ye]|=128}function PC(e,t){let n=e[Ls],r=t[Sn];if($i(r))e[ye]|=2;else{let i=r[Sn][wr];t[wr]!==i&&(e[ye]|=2)}n===null?e[Ls]=[t]:n.push(t)}var Lo=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[Se];return Gu(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[en]}get dirty(){return!!(this._lView[ye]&9280)||!!this._lView[zn]?.dirty}set context(e){this._lView[en]=e}get destroyed(){return kc(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Sn];if(Ei(e)){let t=e[ku],n=t?t.indexOf(this):-1;n>-1&&(Nc(e,n),Au(t,n))}this._attachedToViewContainer=!1}dd(this._lView[Se],this._lView)}onDestroy(e){ib(this._lView,e)}markForCheck(){bg(this._cdRefInjectingView||this._lView,4)}markForRefresh(){qm(this._cdRefInjectingView||this._lView)}detach(){this._lView[ye]&=-129}reattach(){jh(this._lView),this._lView[ye]|=128}detectChanges(){this._lView[ye]|=1024,TC(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Lu(this._lView),t=this._lView[Mo];t!==null&&!e&&_g(t,this._lView),wC(this._lView[Se],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Re(902,!1);this._appRef=e;let t=Lu(this._lView),n=this._lView[Mo];n!==null&&!t&&PC(n,this._lView),jh(this._lView)}},Br=(()=>{class e{static __NG_ELEMENT_ID__=UM}return e})(),BM=Br,VM=class extends BM{_declarationLView;_declarationTContainer;elementRef;constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){let r=ud(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n});return new Lo(r)}};function UM(){return Cg(Cr(),ze())}function Cg(e,t){return e.type&4?new VM(t,e,Ws(e,t)):null}function hd(e,t,n,r,i){let o=e.data[t];if(o===null)o=jM(e,t,n,r,i),mR()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=uR();o.injectorIndex=s===null?-1:s.injectorIndex}return Hs(o,!0),o}function jM(e,t,n,r,i){let o=cb(),s=lb(),a=s?o:o&&o.parent,l=e.data[t]=$M(e,a,n,t,r,i);return HM(e,l,o,s),l}function HM(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function $M(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return aR()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var g3=new RegExp(`^(\\d+)*(${oA}|${iA})*(.*)`),WM=()=>null;function Rc(e,t){return WM(e,t)}var fm=class{},zu=class{},pm=class{resolveComponentFactory(e){throw Error(`No component factory found for ${or(e)}.`)}},Gi=class{static NULL=new pm},An=class{},qs=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>GM()}return e})();function GM(){let e=ze(),t=Cr(),n=kr(t.index,e);return($i(n)?n:e)[an]}var zM=(()=>{class e{static \u0275prov=ie({token:e,providedIn:"root",factory:()=>null})}return e})();function fw(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=VE(i,a);else if(o==2){let l=a,c=t[++s];r=VE(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Yt(e,t=Ge.Default){let n=ze();if(n===null)return Ze(e,t);let r=Cr();return Tb(r,n,ir(e),t)}function kC(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a,l=null,c=null,d=YM(s);d===null?a=s:[a,l,c]=d,XM(e,t,n,a,o,l,c)}o!==null&&r!==null&&qM(n,r,o)}function qM(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new Re(-301,!1);r.push(t[i],o)}}function YM(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&pi(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,KM(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function KM(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function ZM(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function XM(e,t,n,r,i,o,s){let a=r.length,l=!1;for(let f=0;f<a;f++){let g=r[f];!l&&pi(g)&&(l=!0,ZM(e,n,f)),kR(Cb(n,t),e,g.type)}rO(n,e.data.length,a);for(let f=0;f<a;f++){let g=r[f];g.providersResolver&&g.providersResolver(g)}let c=!1,d=!1,h=pC(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let g=r[f];if(n.mergedAttrs=Tc(n.mergedAttrs,g.hostAttrs),QM(e,n,t,h,g),nO(h,g,i),s!==null&&s.has(g)){let[b,I]=s.get(g);n.directiveToIndex.set(g.type,[h,b+n.directiveStart,I+n.directiveStart])}else(o===null||!o.has(g))&&n.directiveToIndex.set(g.type,h);g.contentQueries!==null&&(n.flags|=4),(g.hostBindings!==null||g.hostAttrs!==null||g.hostVars!==0)&&(n.flags|=64);let m=g.type.prototype;!c&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!d&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}JM(e,n,o)}function JM(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))pw(0,t,i,r),pw(1,t,i,r),mw(t,r,!1);else{let o=n.get(i);hw(0,t,o,r),hw(1,t,o,r),mw(t,r,!0)}}}function pw(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),LC(t,o)}}function hw(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),LC(t,s)}}function LC(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function mw(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||dg(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let c=i[l];for(let d of c)if(d===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&o.hasOwnProperty(l)){let c=o[l];for(let d=0;d<c.length;d+=2)if(c[d]===t){s??=[],s.push(c[d+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function QM(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=No(i.type,!0)),s=new Dc(o,pi(i),Yt);e.blueprint[r]=s,n[r]=s,eO(e,t,r,pC(e,n,i.hostVars,bi),i)}function eO(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;tO(s)!=a&&s.push(a),s.push(n,r,o)}}function tO(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function nO(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;pi(t)&&(n[""]=e)}}function rO(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function FC(e,t,n,r,i,o,s,a){let l=t.consts,c=Fs(l,s),d=hd(t,e,2,r,c);return o&&kC(t,n,d,Fs(l,a),i),d.mergedAttrs=Tc(d.mergedAttrs,d.attrs),d.attrs!==null&&fw(d,d.attrs,!1),d.mergedAttrs!==null&&fw(d,d.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,d),d}function BC(e,t){vb(e,t),Xw(t)&&e.queries.elementEnd(t)}var hm=class extends Gi{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Ao(e);return new Ac(t,this.ngModule)}};function iO(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&ld.SignalBased)!==0};return i&&(o.transform=i),o})}function oO(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function sO(e,t,n){let r=t instanceof Un?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Wh(n,r):n}function aO(e){let t=e.get(An,null);if(t===null)throw new Re(407,!1);let n=e.get(zM,null),r=e.get(hi,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function cO(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return lC(t,n,n==="svg"?tb:n==="math"?JN:null)}var Ac=class extends zu{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return iO(this.componentDef.inputs)}get outputs(){return oO(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=UA(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){pt(22);let i=Ve(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:jA(this.componentDef.selectors[0]),a=fg(0,null,null,1,0,null,null,null,null,[s],null),l=sO(o,r||this.ngModule,e),c=aO(l),d=c.rendererFactory.createRenderer(null,o),h=n?ZA(d,n,o.encapsulation,l):cO(o,d),f=pg(null,a,null,512|fC(o),null,null,c,d,l,null,qb(h,l,!0));f[vn]=h,Zm(f);let g=null;try{let m=FC(vn,a,f,"#host",()=>[this.componentDef],!0,0);h&&(dC(d,h,m),Bc(h,f)),mg(a,f,m),Kb(a,m,f),BC(a,m),t!==void 0&&lO(m,this.ngContentSelectors,t),g=kr(m.index,f),f[en]=g[en],yg(a,f,null)}catch(m){throw g!==null&&Xh(g),Xh(f),m}finally{pt(23),Xm()}return new mm(this.componentType,f)}finally{Ve(i)}}},mm=class extends fm{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=Wm(t[Se],vn),this.location=Ws(this._tNode,t),this.instance=kr(this._tNode.index,t)[en],this.hostView=this.changeDetectorRef=new Lo(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=gg(n,r[Se],r,e,t);this.previousInputValues.set(e,t);let o=kr(n.index,r);bg(o,1)}get injector(){return new xo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function lO(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Zi=(()=>{class e{static __NG_ELEMENT_ID__=uO}return e})();function uO(){let e=Cr();return UC(e,ze())}var dO=Zi,VC=class extends dO{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Ws(this._hostTNode,this._hostLView)}get injector(){return new xo(this._hostTNode,this._hostLView)}get parentInjector(){let e=tg(this._hostTNode,this._hostLView);if(Eb(e)){let t=Bu(e,this._hostLView),n=Fu(e),r=t[Se].data[n+8];return new xo(r,t)}else return new xo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=gw(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-Cn}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let o=Rc(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(t||{},i,o);return this.insertImpl(s,r,xc(this._hostTNode,o)),s}createComponent(e,t,n,r,i){let o=e&&!qN(e),s;if(o)s=t;else{let g=t||{};s=g.index,n=g.injector,r=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let a=o?e:new Ac(Ao(e)),l=n||this.parentInjector;if(!i&&a.ngModule==null){let g=(o?l:this.parentInjector).get(Un,null);g&&(i=g)}let c=Ao(a.componentType??{}),d=Rc(this._lContainer,c?.id??null),h=d?.firstChild??null,f=a.create(l,r,h,i);return this.insertImpl(f.hostView,s,xc(this._hostTNode,d)),f}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(eR(r)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let a=r[Sn],l=new VC(a,a[br],a[Sn]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(t),o=this._lContainer;return pd(o,r,i,n),e.attachToViewContainerRef(),Fw(xh(o),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=gw(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=Nc(this._lContainer,t);n&&(Au(xh(this._lContainer),t),dd(n[Se],n))}detach(e){let t=this._adjustIndex(e,-1),n=Nc(this._lContainer,t);return n&&Au(xh(this._lContainer),t)!=null?new Lo(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function gw(e){return e[ku]}function xh(e){return e[ku]||(e[ku]=[])}function UC(e,t){let n,r=t[e.index];return Ei(r)?n=r:(n=AC(r,t,null,e),t[e.index]=n,hg(t,n)),pO(n,t,e,r),new VC(n,e,t)}function fO(e,t){let n=e[an],r=n.createComment(""),i=Vr(t,e),o=n.parentNode(i);return Wu(n,o,r,n.nextSibling(i),!1),r}var pO=gO,hO=()=>!1;function mO(e,t,n){return hO(e,t,n)}function gO(e,t,n,r){if(e[Oo])return;let i;n.type&8?i=Pr(r):i=fO(t,n),e[Oo]=i}var gm=class O0{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new O0(this.queryList)}setDirty(){this.queryList.setDirty()}},ym=class N0{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new N0(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Sg(t,n).matches!==null&&this.queries[n].setDirty()}},vm=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=SO(e):this.predicate=e}},_m=class P0{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new P0(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Em=class R0{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new R0(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,yO(n,o)),this.matchTNodeWithReadOption(t,n,Du(n,t,o,!1,!1))}else r===Br?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Du(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===qt||i===Zi||i===Br&&n.type&4)this.addMatch(n.index,-2);else{let o=Du(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function yO(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function vO(e,t){return e.type&11?Ws(e,t):e.type&4?Cg(e,t):null}function _O(e,t,n,r){return n===-1?vO(t,e):n===-2?EO(e,t,r):Uu(e,e[Se],n,t)}function EO(e,t,n){if(n===qt)return Ws(t,e);if(n===Br)return Cg(t,e);if(n===Zi)return UC(t,e)}function jC(e,t,n,r){let i=t[fi].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let d=o[c];a.push(_O(t,d,s[l+1],n.metadata.read))}}i.matches=a}return i.matches}function wm(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=jC(e,t,i,n);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let c=o[a+1],d=t[-l];for(let h=Cn;h<d.length;h++){let f=d[h];f[Mo]===f[Sn]&&wm(f[Se],f,c,r)}if(d[Ls]!==null){let h=d[Ls];for(let f=0;f<h.length;f++){let g=h[f];wm(g[Se],g,c,r)}}}}}return r}function wO(e,t){return e[fi].queries[t].queryList}function bO(e,t,n){let r=new Zh((n&4)===4);return rR(e,t,r,r.destroy),(t[fi]??=new ym).queries.push(new gm(r))-1}function CO(e,t,n){let r=In();return r.firstCreatePass&&(IO(r,new vm(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),bO(r,ze(),t)}function SO(e){return e.split(",").map(t=>t.trim())}function IO(e,t,n){e.queries===null&&(e.queries=new _m),e.queries.track(new Em(t,n))}function Sg(e,t){return e.queries.getByIndex(t)}function DO(e,t){let n=e[Se],r=Sg(n,t);return r.crossesNgTemplate?wm(n,e,t,[]):jC(n,e,r,t)}var yi=class{},qu=class extends yi{injector;componentFactoryResolver=new hm(this);instance=null;constructor(e){super();let t=new bc([...e.providers,{provide:yi,useValue:this},{provide:Gi,useValue:this.componentFactoryResolver}],e.parent||td(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function TO(e,t,n=null){return new qu({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var xO=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=$w(!1,n.type),i=r.length>0?TO([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=ie({token:e,providedIn:"environment",factory:()=>new e(Ze(Un))})}return e})();function St(e){return Ju(()=>{let t=HC(e),n=ne(w({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===kb.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(xO).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Lr.Emulated,styles:e.styles||Wi,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&qi("NgStandalone"),$C(n);let r=e.dependencies;return n.directiveDefs=yw(r,!1),n.pipeDefs=yw(r,!0),n.id=OO(n),n})}function NO(e){return Ao(e)||Uw(e)}function RO(e){return e!==null}function AO(e,t){if(e==null)return Ro;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=ld.None,l=null),n[o]=[r,a,l],t[o]=s}return n}function MO(e){if(e==null)return Ro;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Xi(e){return Ju(()=>{let t=HC(e);return $C(t),t})}function Vo(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function HC(e){let 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,inputConfig:e.inputs||Ro,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Wi,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:AO(e.inputs,t),outputs:MO(e.outputs),debugInfo:null}}function $C(e){e.features?.forEach(t=>t(e))}function yw(e,t){if(!e)return null;let n=t?jw:NO;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(RO)}function OO(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function PO(e){return Object.getPrototypeOf(e.prototype).constructor}function Ys(e){let t=PO(e.type),n=!0,r=[e];for(;t;){let i;if(pi(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Re(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Nh(e.inputs),s.declaredInputs=Nh(e.declaredInputs),s.outputs=Nh(e.outputs);let a=i.hostBindings;a&&VO(e,a);let l=i.viewQuery,c=i.contentQueries;if(l&&FO(e,l),c&&BO(e,c),kO(e,i),dN(e.outputs,i.outputs),pi(i)&&i.data.animation){let d=e.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===Ys&&(n=!1)}}t=Object.getPrototypeOf(t)}LO(r)}function kO(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function LO(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Tc(i.hostAttrs,n=Tc(n,i.hostAttrs))}}function Nh(e){return e===Ro?{}:e===Wi?[]:e}function FO(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function BO(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function VO(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function WC(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function GC(e,t,n){return e[t]=n}function vi(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function UO(e,t,n,r){let i=vi(e,t,n);return vi(e,t+1,r)||i}function jO(e,t,n,r,i,o,s,a,l){let c=t.consts,d=hd(t,e,4,s||null,a||null);ab()&&kC(t,n,d,Fs(c,l),vC),d.mergedAttrs=Tc(d.mergedAttrs,d.attrs),vb(t,d);let h=d.tView=fg(2,d,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,d),h.queries=t.queries.embeddedTView(d)),d}function bm(e,t,n,r,i,o,s,a,l,c){let d=n+vn,h=t.firstCreatePass?jO(d,t,e,r,i,o,s,a,l):t.data[d];Hs(h,!1);let f=HO(t,e,h,n);Qm()&&Eg(t,e,f,h),Bc(f,e);let g=AC(f,e,f,h);return e[d]=g,hg(e,g),mO(g,h,e),$m(h)&&mg(t,e,h),l!=null&&gC(e,h,c),h}function At(e,t,n,r,i,o,s,a){let l=ze(),c=In(),d=Fs(c.consts,o);return bm(l,c,e,t,n,r,i,d,s,a),At}var HO=$O;function $O(e,t,n,r){return eg(!0),t[an].createComment("")}var zC=new ve(""),WO=(()=>{class e{static \u0275prov=ie({token:e,providedIn:"root",factory:()=>new Cm})}return e})(),Cm=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function Ig(e){return!!e&&typeof e.then=="function"}function qC(e){return!!e&&typeof e.subscribe=="function"}var GO=new ve(""),YC=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=P(GO,{optional:!0})??[];injector=P(bt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=zw(this.injector,i);if(Ig(o))n.push(o);else if(qC(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zO=new ve("");function qO(){oE(()=>{throw new Re(600,!1)})}function YO(e){return e.isBoundToModule}var KO=10,sr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=P(KR);afterRenderManager=P(Gb);zonelessEnabled=P(od);rootEffectScheduler=P(WO);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Ne;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=P(sd).hasPendingTasks.pipe(Mr(n=>!n));constructor(){P(zs,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=P(Un);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){pt(10);let i=n instanceof zu;if(!this._injector.get(YC).done){let h=!i&&kN(n),f=!1;throw new Re(405,f)}let o;i?o=n:o=this._injector.get(Gi).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=YO(o)?void 0:this._injector.get(yi),a=r||o.selector,l=o.create(bt.NULL,[],a,s),c=l.location.nativeElement,d=l.injector.get(zC,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Tu(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),pt(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){pt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(cg.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Re(101,!1);let n=Ve(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Ve(n),this.afterTick.next(),pt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(An,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<KO;)pt(14),this.synchronizeOnce(),pt(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)ZO(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>rd(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Tu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(zO,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Tu(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Re(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Tu(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ZO(e,t,n,r){!n&&!rd(e)||TC(e,t,n&&!r?0:1)}function Dg(e,t,n,r){let i=ze(),o=Fc();if(vi(i,o,t)){let s=In(),a=Jm();iM(a,i,e,t,n,r)}return Dg}function KC(e,t,n,r){return vi(e,Fc(),n)?t+Oc(n)+r:bi}function bu(e,t){return e<<17|t<<2}function Fo(e){return e>>17&32767}function XO(e){return(e&2)==2}function JO(e,t){return e&131071|t<<17}function Sm(e){return e|2}function Bs(e){return(e&131068)>>2}function Rh(e,t){return e&-131069|t<<2}function QO(e){return(e&1)===1}function Im(e){return e|1}function e1(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Fo(s),l=Bs(s);e[r]=n;let c=!1,d;if(Array.isArray(n)){let h=n;d=h[1],(d===null||Pc(h,d)>0)&&(c=!0)}else d=n;if(i)if(l!==0){let h=Fo(e[a+1]);e[r+1]=bu(h,a),h!==0&&(e[h+1]=Rh(e[h+1],r)),e[a+1]=JO(e[a+1],r)}else e[r+1]=bu(a,0),a!==0&&(e[a+1]=Rh(e[a+1],r)),a=r;else e[r+1]=bu(l,0),a===0?a=r:e[l+1]=Rh(e[l+1],r),l=r;c&&(e[r+1]=Sm(e[r+1])),vw(e,d,r,!0),vw(e,d,r,!1),t1(t,d,e,r,o),s=bu(a,l),o?t.classBindings=s:t.styleBindings=s}function t1(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Pc(o,t)>=0&&(n[r+1]=Im(n[r+1]))}function vw(e,t,n,r){let i=e[n+1],o=t===null,s=r?Fo(i):Bs(i),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],c=e[s+1];n1(l,t)&&(a=!0,e[s+1]=r?Im(c):Sm(c)),s=r?Fo(c):Bs(c)}a&&(e[n+1]=r?Sm(i):Im(i))}function n1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Pc(e,t)>=0:!1}function Ue(e,t,n){let r=ze(),i=Fc();if(vi(r,i,t)){let o=In(),s=Jm();yC(o,s,r,e,t,r[an],n,!1)}return Ue}function _w(e,t,n,r,i){gg(t,e,n,i?"class":"style",r)}function Ji(e,t,n){return ZC(e,t,n,!1),Ji}function Qi(e,t){return ZC(e,t,null,!0),Qi}function ZC(e,t,n,r){let i=ze(),o=In(),s=hR(2);if(o.firstUpdatePass&&i1(o,e,s,r),t!==bi&&vi(i,s,t)){let a=o.data[zi()];l1(o,a,i,i[an],e,i[s+1]=u1(t,n),r,s)}}function r1(e,t){return t>=e.expandoStartIndex}function i1(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[zi()],s=r1(e,n);d1(o,r)&&t===null&&!s&&(t=!1),t=o1(i,o,t,r),e1(i,o,t,n,s,r)}}function o1(e,t,n,r){let i=vR(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ah(null,e,t,n,r),n=Mc(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Ah(i,e,t,n,r),o===null){let a=s1(e,t,r);a!==void 0&&Array.isArray(a)&&(a=Ah(null,e,t,a[1],r),a=Mc(a,t.attrs,r),a1(e,t,r,a))}else o=c1(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function s1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Bs(r)!==0)return e[Fo(r)]}function a1(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Fo(i)]=r}function c1(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Mc(r,s,n)}return Mc(r,t.attrs,n)}function Ah(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=Mc(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Mc(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ON(e,s,n?!0:t[++o]))}return e===void 0?null:e}function l1(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],d=QO(c)?Ew(l,t,n,i,Bs(c),s):void 0;if(!Yu(d)){Yu(o)||XO(c)&&(o=Ew(l,null,n,i,a,s));let h=nb(zi(),n);CM(r,s,h,i,o)}}function Ew(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let l=e[i],c=Array.isArray(l),d=c?l[1]:l,h=d===null,f=n[i+1];f===bi&&(f=h?Wi:void 0);let g=h?wh(f,r):d===r?f:void 0;if(c&&!Yu(g)&&(g=wh(l,r)),Yu(g)&&(a=g,s))return a;let m=e[i+1];i=s?Fo(m):Bs(m)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=wh(l,r))}return a}function Yu(e){return e!==void 0}function u1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=or(Ur(e)))),e}function d1(e,t){return(e.flags&(t?8:16))!==0}var Dm=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function Mh(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function f1(e,t,n){let r,i,o=0,s=e.length-1,a;if(Array.isArray(t)){let l=t.length-1;for(;o<=s&&o<=l;){let c=e.at(o),d=t[o],h=Mh(o,c,o,d,n);if(h!==0){h<0&&e.updateValue(o,d),o++;continue}let f=e.at(s),g=t[l],m=Mh(s,f,l,g,n);if(m!==0){m<0&&e.updateValue(s,g),s--,l--;continue}let b=n(o,c),I=n(s,f),R=n(o,d);if(Object.is(R,I)){let j=n(l,g);Object.is(j,b)?(e.swap(o,s),e.updateValue(s,g),l--,s--):e.move(s,o),e.updateValue(o,d),o++;continue}if(r??=new Ku,i??=bw(e,o,s,n),Tm(e,r,o,R))e.updateValue(o,d),o++,s++;else if(i.has(R))r.set(b,e.detach(o)),s--;else{let j=e.create(o,t[o]);e.attach(o,j),o++,s++}}for(;o<=l;)ww(e,r,n,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let d=e.at(o),h=c.value,f=Mh(o,d,o,h,n);if(f!==0)f<0&&e.updateValue(o,h),o++,c=l.next();else{r??=new Ku,i??=bw(e,o,s,n);let g=n(o,h);if(Tm(e,r,o,g))e.updateValue(o,h),o++,s++,c=l.next();else if(!i.has(g))e.attach(o,e.create(o,h)),o++,s++,c=l.next();else{let m=n(o,d);r.set(m,e.detach(o)),s--}}}for(;!c.done;)ww(e,r,n,e.length,c.value),c=l.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function Tm(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function ww(e,t,n,r,i){if(Tm(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function bw(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Ku=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function Ut(e,t){qi("NgControlFlow");let n=ze(),r=Fc(),i=n[r]!==bi?n[r]:-1,o=i!==-1?Zu(n,vn+i):void 0,s=0;if(vi(n,r,e)){let a=Ve(null);try{if(o!==void 0&&OC(o,s),e!==-1){let l=vn+e,c=Zu(n,l),d=Am(n[Se],l),h=Rc(c,d.tView.ssrId),f=ud(n,d,t,{dehydratedView:h});pd(c,f,s,xc(d,h))}}finally{Ve(a)}}else if(o!==void 0){let a=MC(o,s);a!==void 0&&(a[en]=t)}}var xm=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-Cn}};function Ci(e,t){return t}var Nm=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function Kt(e,t,n,r,i,o,s,a,l,c,d,h,f){qi("NgControlFlow");let g=ze(),m=In(),b=l!==void 0,I=ze(),R=a?s.bind(I[wr][en]):s,j=new Nm(b,R);I[vn+e]=j,bm(g,m,e+1,t,n,r,i,Fs(m.consts,o)),b&&bm(g,m,e+2,l,c,d,h,Fs(m.consts,f))}var Rm=class extends Dm{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-Cn}at(e){return this.getLView(e)[en].$implicit}attach(e,t){let n=t[Cc];this.needsIndexUpdate||=e!==this.length,pd(this.lContainer,t,e,xc(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,p1(this.lContainer,e)}create(e,t){let n=Rc(this.lContainer,this.templateTNode.tView.ssrId),r=ud(this.hostLView,this.templateTNode,new xm(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){dd(e[Se],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[en].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[en].$index=e}getLView(e){return h1(this.lContainer,e)}};function Zt(e){let t=Ve(null),n=zi();try{let r=ze(),i=r[Se],o=r[n],s=n+1,a=Zu(r,s);if(o.liveCollection===void 0){let c=Am(i,s);o.liveCollection=new Rm(a,r,c)}else o.liveCollection.reset();let l=o.liveCollection;if(f1(l,e,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=Fc(),d=l.length===0;if(vi(r,c,d)){let h=n+2,f=Zu(r,h);if(d){let g=Am(i,h),m=Rc(f,g.tView.ssrId),b=ud(r,g,void 0,{dehydratedView:m});pd(f,b,0,xc(g,m))}else OC(f,0)}}}finally{Ve(t)}}function Zu(e,t){return e[t]}function p1(e,t){return Nc(e,t)}function h1(e,t){return MC(e,t)}function Am(e,t){return Wm(e,t)}function X(e,t,n,r){let i=ze(),o=In(),s=vn+e,a=i[an],l=o.firstCreatePass?FC(s,o,i,t,vC,ab(),n,r):o.data[s],c=m1(o,i,l,a,t,e);i[s]=c;let d=$m(l);return Hs(l,!0),dC(a,c,l),!EC(l)&&Qm()&&Eg(o,i,c,l),(iR()===0||d)&&Bc(c,i),oR(),d&&(mg(o,i,l),Kb(o,l,i)),r!==null&&gC(i,l),X}function Q(){let e=Cr();lb()?dR():(e=e.parent,Hs(e,!1));let t=e;cR(t)&&lR(),sR();let n=In();return n.firstCreatePass&&BC(n,t),t.classesWithoutHost!=null&&DR(t)&&_w(n,t,ze(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&TR(t)&&_w(n,t,ze(),t.stylesWithoutHost,!1),Q}function qe(e,t,n,r){return X(e,t,n,r),Q(),qe}var m1=(e,t,n,r,i,o)=>(eg(!0),lC(r,i,bR()));function _n(){return ze()}var Xu="en-US",g1=Xu;function y1(e){typeof e=="string"&&(g1=e.toLowerCase().replace(/_/g,"-"))}var v1=(e,t,n)=>{};function at(e,t,n,r){let i=ze(),o=In(),s=Cr();return E1(o,i,i[an],s,e,t,r),at}function _1(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[Ou],l=i[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function E1(e,t,n,r,i,o,s){let a=$m(r),l=e.firstCreatePass?sb(e):null,c=t[en],d=ob(t),h=!0;if(r.type&3||s){let f=Vr(r,t),g=s?s(f):f,m=d.length,b=s?R=>s(Pr(R[r.index])):r.index,I=null;if(!s&&a&&(I=_1(e,t,i,r.index)),I!==null){let R=I.__ngLastListenerFn__||I;R.__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,h=!1}else{o=Iw(r,t,c,o),v1(f,i,o);let R=n.listen(g,i,o);d.push(o,R),l&&l.push(i,b,m,m+1)}}else o=Iw(r,t,c,o);if(h){let f=r.outputs?.[i],g=r.hostDirectiveOutputs?.[i];if(g&&g.length)for(let m=0;m<g.length;m+=2){let b=g[m],I=g[m+1];Cw(r,e,t,b,I,i,o,d,l)}if(f&&f.length)for(let m of f)Cw(r,e,t,m,i,i,o,d,l)}}function Cw(e,t,n,r,i,o,s,a,l){let c=n[r],d=t.data[r].outputs[i],h=c[d].subscribe(s),f=a.length;a.push(s,h),l&&l.push(o,e.index,f,-(f+1))}function Sw(e,t,n,r){let i=Ve(null);try{return pt(6,t,n),n(r)!==!1}catch(o){return _C(e,o),!1}finally{pt(7,t,n),Ve(i)}}function Iw(e,t,n,r){return function i(o){if(o===Function)return r;let s=js(e)?kr(e.index,t):t;bg(s,5);let a=Sw(t,n,r,o),l=i.__ngNextListenerFn__;for(;l;)a=Sw(t,n,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function re(e=1){return ER(e)}function jn(e,t,n){return Si(e,"",t,"",n),jn}function Si(e,t,n,r,i){let o=ze(),s=KC(o,t,n,r);if(s!==bi){let a=In(),l=Jm();yC(a,l,o,e,s,o[an],i,!1)}return Si}function eo(e,t,n){CO(e,t,n)}function to(e){let t=ze(),n=In(),r=db();Km(r+1);let i=Sg(n,r);if(e.dirty&&QN(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=DO(t,r);e.reset(o,XR),e.notifyOnChanges()}return!0}return!1}function no(){return wO(ze(),db())}function Tg(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function jt(e,t=""){let n=ze(),r=In(),i=e+vn,o=r.firstCreatePass?hd(r,i,1,t,null):r.data[i],s=w1(r,n,o,t,e);n[i]=s,Qm()&&Eg(r,n,s,o),Hs(o,!1)}var w1=(e,t,n,r,i)=>(eg(!0),HA(t[an],r));function Ks(e){return Ir("",e,""),Ks}function Ir(e,t,n){let r=ze(),i=KC(r,e,t,n);return i!==bi&&b1(r,zi(),i),Ir}function b1(e,t,n){let r=nb(t,e);$A(e[an],r,n)}var XC={};function Hr(e){let t=In(),n=ze(),r=e+vn,i=hd(t,r,128,null,null);return Hs(i,!1),Tg(t,n,r,XC),Hr}function Uo(e){qi("NgLet");let t=In(),n=ze(),r=zi();return Tg(t,n,r,e),e}function Hn(e){let t=fR(),n=Gm(t,vn+e);if(n===XC)throw new Re(314,!1);return n}function JC(e,t,n,r){return e0(ze(),Ym(),e,t,n,r)}function QC(e,t){let n=e[t];return n===bi?void 0:n}function e0(e,t,n,r,i,o){let s=t+n;return vi(e,s,i)?GC(e,s+1,o?r.call(o,i):r(i)):QC(e,s+1)}function C1(e,t,n,r,i,o,s){let a=t+n;return UO(e,a,i,o)?GC(e,a+2,s?r.call(s,i,o):r(i,o)):QC(e,a+2)}function ar(e,t){let n=In(),r,i=e+vn;n.firstCreatePass?(r=S1(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=No(r.type,!0)),s,a=Vn(Yt);try{let l=Vu(!1),c=o();return Vu(l),Tg(n,ze(),i,c),c}finally{Vn(a)}}function S1(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Dr(e,t,n){let r=e+vn,i=ze(),o=Gm(i,r);return n0(i,r)?e0(i,Ym(),t,o.transform,n,o):o.transform(n)}function t0(e,t,n,r){let i=e+vn,o=ze(),s=Gm(o,i);return n0(o,i)?C1(o,Ym(),t,s.transform,n,r,s):s.transform(n,r)}function n0(e,t){return e[Se].data[t].pure}var Vs=class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},xg=new Vs("19.2.0"),I1=(()=>{class e{zone=P(Ke);changeDetectionScheduler=P(hi);applicationRef=P(sr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function D1({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Ke(ne(w({},T1()),{scheduleInRootZone:n})),[{provide:Ke,useFactory:e},{provide:wc,multi:!0,useFactory:()=>{let r=P(I1,{optional:!0});return()=>r.initialize()}},{provide:wc,multi:!0,useFactory:()=>{let r=P(x1);return()=>{r.initialize()}}},t===!0?{provide:Ab,useValue:!0}:[],{provide:rg,useValue:n??Rb}]}function T1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var x1=(()=>{class e{subscription=new Bt;initialized=!1;zone=P(Ke);pendingTasks=P(sd);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ke.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ke.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),r0=(()=>{class e{appRef=P(sr);taskService=P(sd);ngZone=P(Ke);zonelessEnabled=P(od);tracing=P(zs,{optional:!0});disableScheduling=P(Ab,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Bt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Hu):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(P(rg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof $u||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?QE:Mb;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Hu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,QE(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function i0(){return qi("NgZoneless"),Hw([{provide:hi,useExisting:r0},{provide:Ke,useClass:$u},{provide:od,useValue:!0},{provide:rg,useValue:!1},[]])}function N1(){return typeof $localize<"u"&&$localize.locale||Xu}var Ng=new ve("",{providedIn:"root",factory:()=>P(Ng,Ge.Optional|Ge.SkipSelf)||N1()}),Mm=new ve(""),R1=new ve("");function mc(e){return!e.moduleRef}function A1(e){let t=mc(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ke);return n.run(()=>{mc(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mi,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),mc(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Mm);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Mm);s.add(o),e.moduleRef.onDestroy(()=>{Tu(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return O1(r,n,()=>{let o=t.get(YC);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Ng,Xu);if(y1(s||Xu),!t.get(R1,!0))return mc(e)?t.get(sr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(mc(e)){let a=t.get(sr);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return M1(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function M1(e,t){let n=e.injector.get(sr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new Re(-403,!1);t.push(e)}function O1(e,t,n){try{let r=n();return Ig(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var xu=null;function P1(e=[],t){return bt.create({name:t,providers:[{provide:ed,useValue:"platform"},{provide:Mm,useValue:new Set([()=>xu=null])},...e]})}function k1(e=[]){if(xu)return xu;let t=P1(e);return xu=t,qO(),L1(t),t}function L1(e){let t=e.get(sg,null);zw(e,()=>{t?.forEach(n=>n())})}var jo=(()=>{class e{static __NG_ELEMENT_ID__=F1}return e})();function F1(e){return B1(Cr(),ze(),(e&16)===16)}function B1(e,t,n){if(js(e)&&!n){let r=kr(e.index,t);return new Lo(r,r)}else if(e.type&175){let r=t[wr];return new Lo(r,t)}return null}var Om=class{constructor(){}supports(e){return e instanceof Map||WC(e)}create(){return new Pm}},Pm=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let t;for(t=this._mapHead;t!==null;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;t!==null;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;t!==null;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)e(t)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||WC(e)))throw new Re(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,n),this._appendAfter=t,t=t._next;else{let i=this._getOrCreateRecordForKey(r,n);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let n=t;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){let n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,t);let i=r._prev,o=r._next;return i&&(i._next=o),o&&(o._prev=i),r._next=null,r._prev=null,r}let n=new km(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}},km=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function Dw(){return new Rg([new Om])}var Rg=(()=>{class e{static \u0275prov=ie({token:e,providedIn:"root",factory:Dw});factories;constructor(n){this.factories=n}static create(n,r){if(r){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Dw()),deps:[[e,new NN,new Um]]}}find(n){let r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Re(901,!1)}}return e})();function o0(e){pt(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=k1(r),o=[D1({}),{provide:hi,useExisting:r0},...n||[]],s=new qu({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return A1({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{pt(9)}}function Ag(e){let t=Ve(null);try{return e()}finally{Ve(t)}}var Tw=class{[li];constructor(e){this[li]=e}destroy(){this[li].destroy()}};function md(e,t){let n=Ao(e),r=t.elementInjector||td();return new Ac(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var V1={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function U1(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function j1(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Mg;function H1(e,t){if(!Mg){let n=Element.prototype;Mg=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Mg.call(e,t):!1}function $1(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[U1(r)]=[n,i]}),t}function W1(e,t){return t.get(Gi).resolveComponentFactory(e).inputs}function G1(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],l=z1(a,t,i);l!==-1&&r[l].push(a)}return r}function z1(e,t,n){let r=n;return j1(e)&&t.some((i,o)=>i!=="*"&&H1(e,i)?(r=o,!0):!1),r}var q1=10,Og=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Gi).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Pg(this.componentFactory,e,this.inputMap)}},Pg=class{componentFactory;injector;inputMap;eventEmitters=new bo(1);events=this.eventEmitters.pipe(yu(e=>hc(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(Ke),this.appRef=this.injector.get(sr),this.cdScheduler=t.get(hi),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=V1.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},q1))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=bt.create({providers:[],parent:this.injector}),n=G1(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new dt(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},kg=class extends HTMLElement{ngElementEventsSubscription=null};function s0(e,t){let n=W1(e,t.injector),r=t.strategyFactory||new Og(e,t.injector),i=$1(n);class o extends kg{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],a.setInputValue(l,d,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,d){let[h,f]=i[a];this.ngElementStrategy.setInputValue(h,c,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}var l0=null;function Zs(){return l0}function u0(e){l0??=e}var gd=class{},ct=new ve(""),d0=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:()=>P(K1),providedIn:"platform"})}return e})(),K1=(()=>{class e extends d0{_location;_history;_doc=P(ct);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zs().getBaseHref(this._doc)}onPopState(n){let r=Zs().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Zs().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function f0(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function a0(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ho(e){return e&&e[0]!=="?"?`?${e}`:e}var Bg=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:()=>P(X1),providedIn:"root"})}return e})(),Z1=new ve(""),X1=(()=>{class e extends Bg{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??P(ct).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return f0(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Ho(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Ho(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Ho(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(n){return new(n||e)(Ze(d0),Ze(Z1,8))};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vg=(()=>{class e{_subject=new Ne;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=eP(a0(c0(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Ho(r))}normalize(n){return e.stripTrailingSlash(Q1(this._basePath,c0(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ho(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ho(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=Ho;static joinWithSlash=f0;static stripTrailingSlash=a0;static \u0275fac=function(n){return new(n||e)(Ze(Bg))};static \u0275prov=ie({token:e,factory:()=>J1(),providedIn:"root"})}return e})();function J1(){return new Vg(Ze(Bg))}function Q1(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function c0(e){return e.replace(/\/index.html$/,"")}function eP(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}function p0(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var h0=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,i){this._ngEl=n,this._differs=r,this._renderer=i}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[i,o]=n.split("."),s=i.indexOf("-")===-1?void 0:Fr.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(n){return new(n||e)(Yt(qt),Yt(Rg),Yt(qs))};static \u0275dir=Xi({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Ug="browser",tP="server";function m0(e){return e===Ug}function jg(e){return e===tP}var yd=class{},$g=class extends gd{supportsDOMEvents=!0},Wg=class L0 extends $g{static makeCurrent(){u0(new L0)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=nP();return n==null?null:rP(n)}resetBaseElement(){Hc=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return p0(document.cookie,t)}},Hc=null;function nP(){return Hc=Hc||document.querySelector("base"),Hc?Hc.getAttribute("href"):null}function rP(e){return new URL(e,document.baseURI).pathname}var iP=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),Gg=new ve(""),w0=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new Re(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(Ze(Gg),Ze(Ke))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),_d=class{_doc;constructor(e){this._doc=e}manager},vd="ng-app-id";function g0(e){for(let t of e)t.remove()}function y0(e,t){let n=t.createElement("style");return n.textContent=e,n}function oP(e,t,n,r){let i=e.head?.querySelectorAll(`style[${vd}="${t}"],link[${vd}="${t}"]`);if(i)for(let o of i)o.removeAttribute(vd),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function zg(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var b0=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=jg(o),oP(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,y0);r?.forEach(i=>this.addUsage(i,this.external,zg))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(g0(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])g0(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,y0(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,zg(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(vd,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(Ze(ct),Ze(Vc),Ze(ag,8),Ze(Bo))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),Hg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Yg=/%COMP%/g,C0="%COMP%",sP=`_nghost-${C0}`,aP=`_ngcontent-${C0}`,cP=!0,lP=new ve("",{providedIn:"root",factory:()=>cP});function uP(e){return aP.replace(Yg,e)}function dP(e){return sP.replace(Yg,e)}function S0(e,t){return t.map(n=>n.replace(Yg,e))}var v0=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,l,c=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.tracingService=d,this.platformIsServer=jg(a),this.defaultRenderer=new $c(n,s,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Lr.ShadowDom&&(r=ne(w({},r),{encapsulation:Lr.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Ed?i.applyToHost(n):i instanceof Wc&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,f=this.tracingService;switch(r.encapsulation){case Lr.Emulated:o=new Ed(l,c,r,this.appId,d,s,a,h,f);break;case Lr.ShadowDom:return new qg(l,c,n,r,s,a,this.nonce,h,f);default:o=new Wc(l,c,r,d,s,a,h,f);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(Ze(w0),Ze(b0),Ze(Vc),Ze(lP),Ze(ct),Ze(Bo),Ze(Ke),Ze(ag),Ze(zs,8))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),$c=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(Hg[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(_0(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(_0(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new Re(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=Hg[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=Hg[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Fr.DashCase|Fr.Important)?e.style.setProperty(t,n,r&Fr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Fr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=Zs().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function _0(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var qg=class extends $c{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=r.styles;c=S0(r.id,c);for(let h of c){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=h,this.shadowRoot.appendChild(f)}let d=r.getExternalStyles?.();if(d)for(let h of d){let f=zg(h,i);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Wc=class extends $c{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let c=n.styles;this.styles=l?S0(l,c):c,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ed=class extends Wc{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,a,l){let c=r+"-"+n.id;super(e,t,n,i,o,s,a,l,c),this.contentAttr=uP(c),this.hostAttr=dP(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},fP=(()=>{class e extends _d{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(Ze(ct))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})(),E0=["alt","control","meta","shift"],pP={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},hP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},mP=(()=>{class e extends _d{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zs().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),E0.forEach(c=>{let d=r.indexOf(c);d>-1&&(r.splice(d,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=pP[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),E0.forEach(s=>{if(s!==i){let a=hP[s];a(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 n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(Ze(ct))};static \u0275prov=ie({token:e,factory:e.\u0275fac})}return e})();function I0(e){return o0(gP(e))}function gP(e){return{appProviders:[...wP,...e?.providers??[]],platformProviders:EP}}function yP(){Wg.makeCurrent()}function vP(){return new mi}function _P(){return Ub(document),document}var EP=[{provide:Bo,useValue:Ug},{provide:sg,useValue:yP,multi:!0},{provide:ct,useFactory:_P,deps:[]}],wP=[{provide:ed,useValue:"root"},{provide:mi,useFactory:vP,deps:[]},{provide:Gg,useClass:fP,multi:!0,deps:[ct]},{provide:Gg,useClass:mP,multi:!0,deps:[ct]},v0,b0,w0,{provide:An,useExisting:v0},{provide:yd,useClass:iP,deps:[]},[]],Kg=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=Ze(bP),r},providedIn:"root"})}return e})(),bP=(()=>{class e extends Kg{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case jr.NONE:return r;case jr.HTML:return Ki(r,"HTML")?Ur(r):ug(this._doc,String(r)).toString();case jr.STYLE:return Ki(r,"Style")?Ur(r):r;case jr.SCRIPT:if(Ki(r,"Script"))return Ur(r);throw new Re(5200,!1);case jr.URL:return Ki(r,"URL")?Ur(r):cd(String(r));case jr.RESOURCE_URL:if(Ki(r,"ResourceURL"))return Ur(r);throw new Re(5201,!1);default:throw new Re(5202,!1)}}bypassSecurityTrustHtml(n){return Zb(n)}bypassSecurityTrustStyle(n){return Xb(n)}bypassSecurityTrustScript(n){return Jb(n)}bypassSecurityTrustUrl(n){return Qb(n)}bypassSecurityTrustResourceUrl(n){return eC(n)}static \u0275fac=function(n){return new(n||e)(Ze(ct))};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Dn={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css",widgetURL:"http://localhost:8002/main.js"},qn=Pe($o()),T0="9.5.1",k=class yp{static SDK_VERSION=T0;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_VIDEO_DIALOG_CLOSED="CE Video Dialog Closed";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let t=yp.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");yp.SDK_VERSION_CODE=parseInt(t,10)}},S=class{static log(...e){qn.default.info(...e)}static debug(...e){qn.default.debug(...e)}static error(...e){qn.default.error(...e)}static warn(...e){qn.default.warn(...e)}static info(...e){qn.default.info(...e)}static trace(...e){qn.default.trace(...e)}static configure(e=k.LOG_PREFIX){qn.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${k.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?qn.default.setLevel(qn.default[localStorage.cooeeLogLevel]):qn.default.setLevel(Dn.debug?qn.default.TRACE:qn.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
8
8
  display: inline-block;
9
9
  font-size: 14px;
10
10
  background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
@@ -43,7 +43,7 @@ Url: ${Xd(e)}`),!0)}function Lk(e,t){return e.type||!t||!t.length?!1:Uk(e).some(
43
43
  `)+" ".concat(l,"\\").concat(c,"/"))}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return fB(e,t);if(e===void 0)return null;if(e instanceof Date||WF(e)){var d=e.getTime(),h=d>-1&&d<2534023188e5;return t.legacy?t.relaxed&&h?{$date:e.getTime()}:{$date:WI(e)}:t.relaxed&&h?{$date:WI(e)}:{$date:{$numberLong:e.getTime().toString()}}}if(typeof e=="number"&&(!t.relaxed||!isFinite(e))){if(Math.floor(e)===e){var f=e>=nD&&e<=tD,g=e>=iD&&e<=rD;if(f)return{$numberInt:e.toString()};if(g)return{$numberLong:e.toString()}}return{$numberDouble:e.toString()}}if(e instanceof RegExp||$F(e)){var m=e.flags;if(m===void 0){var b=e.toString().match(/[gimuy]*$/);b&&(m=b[0])}var I=new cl(e.source,m);return I.toExtendedJSON(t)}return e!=null&&typeof e=="object"?hB(e,t):e}var pB={Binary:function(e){return new rs(e.value(),e.sub_type)},Code:function(e){return new _f(e.code,e.scope)},DBRef:function(e){return new al(e.collection||e.namespace,e.oid,e.db,e.fields)},Decimal128:function(e){return new bv(e.bytes)},Double:function(e){return new Ef(e.value)},Int32:function(e){return new wf(e.value)},Long:function(e){return ce.fromBits(e.low!=null?e.low:e.low_,e.low!=null?e.high:e.high_,e.low!=null?e.unsigned:e.unsigned_)},MaxKey:function(){return new Cv},MinKey:function(){return new Sv},ObjectID:function(e){return new rn(e)},ObjectId:function(e){return new rn(e)},BSONRegExp:function(e){return new cl(e.pattern,e.options)},Symbol:function(e){return new Iv(e.value)},Timestamp:function(e){return eD.fromBits(e.low,e.high)}};function hB(e,t){if(e==null||typeof e!="object")throw new ns("not an object instance");var n=e._bsontype;if(typeof n>"u"){var r={};for(var i in e){t.seenObjects.push({propertyName:i,obj:null});try{var o=so(e[i],t);i==="__proto__"?Object.defineProperty(r,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):r[i]=o}finally{t.seenObjects.pop()}}return r}else if(uB(e)){var s=e;if(typeof s.toExtendedJSON!="function"){var a=pB[e._bsontype];if(!a)throw new Lt("Unrecognized or invalid _bsontype: "+e._bsontype);s=a(s)}return n==="Code"&&s.scope?s=new _f(s.code,so(s.scope,t)):n==="DBRef"&&s.oid&&(s=new al(so(s.collection,t),so(s.oid,t),so(s.db,t),so(s.fields,t))),s.toExtendedJSON(t)}else throw new ns("_bsontype must be a string, but was: "+typeof n)}var GI;(function(e){function t(o,s){var a=Object.assign({},{relaxed:!0,legacy:!1},s);return typeof a.relaxed=="boolean"&&(a.strict=!a.relaxed),typeof a.strict=="boolean"&&(a.relaxed=!a.strict),JSON.parse(o,function(l,c){if(l.indexOf("\0")!==-1)throw new ns("BSON Document field names cannot contain null bytes, found: ".concat(JSON.stringify(l)));return oD(c,a)})}e.parse=t;function n(o,s,a,l){a!=null&&typeof a=="object"&&(l=a,a=0),s!=null&&typeof s=="object"&&!Array.isArray(s)&&(l=s,s=void 0,a=0);var c=Object.assign({relaxed:!0,legacy:!1},l,{seenObjects:[{propertyName:"(root)",obj:null}]}),d=so(o,c);return JSON.stringify(d,s,a)}e.stringify=n;function r(o,s){return s=s||{},JSON.parse(n(o,s))}e.serialize=r;function i(o,s){return s=s||{},t(JSON.stringify(o),s)}e.deserialize=i})(GI||(GI={}));var zI,qI=KI();qI.Map?zI=qI.Map:zI=function(){function e(t){t===void 0&&(t=[]),this._keys=[],this._values={};for(var n=0;n<t.length;n++)if(t[n]!=null){var r=t[n],i=r[0],o=r[1];this._keys.push(i),this._values[i]={v:o,i:this._keys.length-1}}}return e.prototype.clear=function(){this._keys=[],this._values={}},e.prototype.delete=function(t){var n=this._values[t];return n==null?!1:(delete this._values[t],this._keys.splice(n.i,1),!0)},e.prototype.entries=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?[r,t._values[r].v]:void 0,done:r===void 0}}}},e.prototype.forEach=function(t,n){n=n||this;for(var r=0;r<this._keys.length;r++){var i=this._keys[r];t.call(n,this._values[i].v,i,n)}},e.prototype.get=function(t){return this._values[t]?this._values[t].v:void 0},e.prototype.has=function(t){return this._values[t]!=null},e.prototype.keys=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?r:void 0,done:r===void 0}}}},e.prototype.set=function(t,n){return this._values[t]?(this._values[t].v=n,this):(this._keys.push(t),this._values[t]={v:n,i:this._keys.length-1},this)},e.prototype.values=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?t._values[r].v:void 0,done:r===void 0}}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!1,configurable:!0}),e}();var XY=ce.fromNumber(zF),JY=ce.fromNumber(qF),vv=new Uint8Array(8),QY=new DataView(vv.buffer,vv.byteOffset,vv.byteLength),mB=1024*1024*17,e9=rt.alloc(mB),ya=class{triggerID;nudgeID;engagementID;contentID;shortID;contentType;variation;props;objective;onsiteDeliveryType;holdout;constructor(e){e=e||{},this.triggerID=e.id||e.triggerID,this.nudgeID=e.nudgeID,this.shortID=e.shortID,this.contentType=e.contentType,this.engagementID=e.engagementID,this.contentID=e.contentID,this.variation=e.variation,this.props=e.props,this.objective=e.objective,this.onsiteDeliveryType=e.onsiteDeliveryType,this.holdout=e.holdout}},Ye=class{constructor(e,t={},n,r){this.name=e,this.properties=t,this.id=r?new rn(r):new rn,this.occurred=new Date,n&&(this.trigger=new ya(n)),this.newEvent=!r}trigger;items;videos;id;newEvent;cart;currentItem;deviceProps;landingPage;occurred;page;sessionID;sessionNumber;locale},ul=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},va=class extends ul{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(e,t,n,r,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=i}},Ea=class extends ul{templateRef;viewContainerRef;context;injector;constructor(e,t,n,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Dv=class extends ul{element;constructor(e){super(),this.element=e instanceof qt?e.nativeElement:e}},wa=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof va)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ea)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Dv)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},bf=class extends wa{outletElement;_appRef;_defaultInjector;_document;constructor(e,t,n,r,i){super(),this.outletElement=e,this._appRef=n,this._defaultInjector=r,this._document=i}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,r=n.get(yi,null,{optional:!0})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:r,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let n=this._appRef,r=e.injector||this._defaultInjector||bt.NULL,i=r.get(Un,n.injector);t=md(e.component,{elementInjector:r,environmentInjector:i,projectableNodes:e.projectableNodes||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(n);r!==-1&&t.remove(r)}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},Tv=(()=>{class e extends wa{_moduleRef=P(yi,{optional:!0});_document=P(ct);_viewContainerRef=P(Zi);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}attached=new yt;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,i=r.createComponent(n.component,{index:r.length,injector:n.injector||r.injector,projectableNodes:n.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return r!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=n,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}attachDomPortal=n=>{let r=n.element;r.parentNode;let i=this._document.createComment("dom-portal");n.setAttachedHost(this),r.parentNode.insertBefore(i,r),this._getRootNode().appendChild(r),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(r,i)})};_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Xi({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ys]})}return e})();function sD(e){return e.buttons===0||e.detail===0}function aD(e){let t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var xv;function yB(){if(xv==null){let e=typeof document<"u"?document.head:null;xv=!!(e&&(e.createShadowRoot||e.attachShadow))}return xv}function cD(e){if(yB()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Cf(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function Ni(e){return e.composedPath?e.composedPath()[0]:e.target}function Ri(e,t,n,r,i){let o=parseInt(xg.major),s=parseInt(xg.minor);return o>19||o===19&&s>0||o===0&&s===0?e.listen(t,n,r,i):(t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)})}var Nv;try{Nv=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Nv=!1}var $n=(()=>{class e{_platformId=P(Bo);isBrowser=this._platformId?m0(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Nv)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dl;function vB(){if(dl==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dl=!0}))}finally{dl=dl||!1}return dl}function lD(e){return vB()?e:!!e.capture}function ba(e){return e instanceof qt?e.nativeElement:e}var _B=new ve("cdk-input-modality-detector-options"),EB={ignoreKeys:[18,17,224,91,16]},uD=650,Rv={passive:!0,capture:!0},wB=(()=>{class e{_platform=P($n);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ui(null);_options;_lastTouchMs=0;_onKeydown=n=>{this._options?.ignoreKeys?.some(r=>r===n.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ni(n))};_onMousedown=n=>{Date.now()-this._lastTouchMs<uD||(this._modality.next(sD(n)?"keyboard":"mouse"),this._mostRecentTarget=Ni(n))};_onTouchstart=n=>{if(aD(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ni(n)};constructor(){let n=P(Ke),r=P(ct),i=P(_B,{optional:!0});if(this._options=w(w({},EB),i),this.modalityDetected=this._modality.pipe(Eh(1)),this.modalityChanged=this.modalityDetected.pipe(gu()),this._platform.isBrowser){let o=P(An).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[Ri(o,r,"keydown",this._onKeydown,Rv),Ri(o,r,"mousedown",this._onMousedown,Rv),Ri(o,r,"touchstart",this._onTouchstart,Rv)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n())}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),If=function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e}(If||{}),bB=new ve("cdk-focus-monitor-default-options"),Sf=lD({passive:!0,capture:!0}),dD=(()=>{class e{_ngZone=P(Ke);_platform=P($n);_inputModalityDetector=P(wB);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=P(ct,{optional:!0});_stopInputModalityDetector=new Ne;constructor(){let n=P(bB,{optional:!0});this._detectionMode=n?.detectionMode||If.IMMEDIATE}_rootNodeFocusAndBlurListener=n=>{let r=Ni(n);for(let i=r;i;i=i.parentElement)n.type==="focus"?this._onFocus(n,i):this._onBlur(n,i)};monitor(n,r=!1){let i=ba(n);if(!this._platform.isBrowser||i.nodeType!==1)return So();let o=cD(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new Ne,rootNode:o};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=ba(n),i=this._elementInfo.get(r);i&&(i.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(i))}focusVia(n,r,i){let o=ba(n),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,r,l)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(i))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===If.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===If.IMMEDIATE){clearTimeout(this._originTimeoutId);let i=this._originFromTouchInteraction?uD:1;this._originTimeoutId=setTimeout(()=>this._origin=null,i)}})}_onFocus(n,r){let i=this._elementInfo.get(r),o=Ni(n);!i||!i.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),i)}_onBlur(n,r){let i=this._elementInfo.get(r);!i||i.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(i,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,i=this._rootNodeFocusListenerCount.get(r)||0;i||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Sf),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Sf)}),this._rootNodeFocusListenerCount.set(r,i+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(xs(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let i=this._rootNodeFocusListenerCount.get(r);i>1?this._rootNodeFocusListenerCount.set(r,i-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Sf),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sf),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,i){this._setClasses(n,r),this._emitOrigin(i,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((i,o)=>{(o===n||i.checkChildren&&o.contains(n))&&r.push([o,i])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:i}=this._inputModalityDetector;if(i!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(r))return!0}return!1}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Df=new WeakMap,fl=(()=>{class e{_appRef;_injector=P(bt);_environmentInjector=P(Un);load(n){let r=this._appRef=this._appRef||this._injector.get(sr),i=Df.get(r);i||(i={loaders:new Set,refs:[]},Df.set(r,i),r.onDestroy(()=>{Df.get(r)?.refs.forEach(o=>o.destroy()),Df.delete(r)})),i.loaders.has(n)||(i.loaders.add(n),i.refs.push(md(n,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fD=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=St({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
44
44
  `],encapsulation:2,changeDetection:0})}return e})();function Av(e){return Array.isArray(e)?e:[e]}var Ov=(()=>{class e{_platform=P($n);constructor(){}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return SB(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=CB(MB(n));if(r&&(pD(r)===-1||!this.isVisible(r)))return!1;let i=n.nodeName.toLowerCase(),o=pD(n);return n.hasAttribute("contenteditable")?o!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!RB(n)?!1:i==="audio"?n.hasAttribute("controls")?o!==-1:!1:i==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return AB(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function CB(e){try{return e.frameElement}catch{return null}}function SB(e){return!!(e.offsetWidth||e.offsetHeight||typeof e.getClientRects=="function"&&e.getClientRects().length)}function IB(e){let t=e.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function DB(e){return xB(e)&&e.type=="hidden"}function TB(e){return NB(e)&&e.hasAttribute("href")}function xB(e){return e.nodeName.toLowerCase()=="input"}function NB(e){return e.nodeName.toLowerCase()=="a"}function hD(e){if(!e.hasAttribute("tabindex")||e.tabIndex===void 0)return!1;let t=e.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function pD(e){if(!hD(e))return null;let t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function RB(e){let t=e.nodeName.toLowerCase(),n=t==="input"&&e.type;return n==="text"||n==="password"||t==="select"||t==="textarea"}function AB(e){return DB(e)?!1:IB(e)||TB(e)||e.hasAttribute("contenteditable")||hD(e)}function MB(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}var Mv=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_enabled=!0;constructor(e,t,n,r,i=!1,o){this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._injector=o,i||this.attachAnchors()}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let r=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(r)return r}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?Yi(e,{injector:this._injector}):setTimeout(e)}},mD=(()=>{class e{_checker=P(Ov);_ngZone=P(Ke);_document=P(ct);_injector=P(bt);constructor(){P(fl).load(fD)}create(n,r=!1){return new Mv(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Pv(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function $t(e){return e==null?"":typeof e=="string"?e:`${e}px`}var OB=new ve("cdk-dir-doc",{providedIn:"root",factory:PB});function PB(){return P(ct)}var kB=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function LB(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?kB.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var pl=(()=>{class e{value="ltr";change=new yt;constructor(){let n=P(OB,{optional:!0});if(n){let r=n.body?n.body.dir:null,i=n.documentElement?n.documentElement.dir:null;this.value=LB(r||i||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),is;function gD(){if(is==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return is=!1,is;if("scrollBehavior"in document.documentElement.style)is=!0;else{let e=Element.prototype.scrollTo;e?is=!/\{\s*\[native code\]\s*\}/.test(e.toString()):is=!1}}return is}var FB=20,yD=(()=>{class e{_ngZone=P(Ke);_platform=P($n);_renderer=P(An).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Ne;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=FB){return this._platform.isBrowser?new dt(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=n>0?this._scrolled.pipe(mu(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):So()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let i=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(Do(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_scrollableContainsElement(n,r){let i=ba(r),o=n.getElementRef().nativeElement;do if(i==o)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),BB=20,kv=(()=>{class e{_platform=P($n);_listeners;_viewportSize;_change=new Ne;_document=P(ct,{optional:!0});constructor(){let n=P(Ke),r=P(An).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=o=>this._change.next(o);this._listeners=[r.listen("window","resize",i),r.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+i,right:n.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),i=n.documentElement,o=i.getBoundingClientRect(),s=-o.top||n.body.scrollTop||r.scrollY||i.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||i.scrollLeft||0;return{top:s,left:a}}change(n=BB){return n>0?this._change.pipe(mu(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Lv={},Tf=(()=>{class e{_appId=P(Vc);getId(n){return this._appId!=="ng"&&(n+=this._appId),Lv.hasOwnProperty(n)||(Lv[n]=0),`${n}${Lv[n]++}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vD(e,...t){return t.length?t.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var _D=gD(),Fv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,t){this._viewportRuler=e,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=$t(-this._previousScrollPosition.left),e.style.top=$t(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,n=e.style,r=t.style,i=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),_D&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_D&&(n.scrollBehavior=i,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}},Bv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Do(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},xf=class{enable(){}disable(){}attach(){}};function Vv(e,t){return t.some(n=>{let r=e.bottom<n.top,i=e.top>n.bottom,o=e.right<n.left,s=e.left>n.right;return r||i||o||s})}function ED(e,t){return t.some(n=>{let r=e.top<n.top,i=e.bottom>n.bottom,o=e.left<n.left,s=e.right>n.right;return r||i||o||s})}var Uv=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Vv(t,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},UB=(()=>{class e{_scrollDispatcher=P(yD);_viewportRuler=P(kv);_ngZone=P(Ke);_document=P(ct);constructor(){}noop=()=>new xf;close=n=>new Bv(this._scrollDispatcher,this._ngZone,this._viewportRuler,n);block=()=>new Fv(this._viewportRuler,this._document);reposition=n=>new Uv(this._scrollDispatcher,this._viewportRuler,this._ngZone,n);static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hl=class{positionStrategy;scrollStrategy=new xf;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n])}}},jv=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}},DD=(()=>{class e{_attachedOverlays=[];_document=P(ct);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jB=(()=>{class e extends DD{_ngZone=P(Ke);_renderer=P(An).createRenderer(null,null);_cleanupKeydown;add(n){super.add(n),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=n=>{let r=this._attachedOverlays;for(let i=r.length-1;i>-1;i--)if(r[i]._keydownEvents.observers.length>0){this._ngZone.run(()=>r[i]._keydownEvents.next(n));break}};static \u0275fac=(()=>{let n;return function(r){return(n||(n=id(e)))(r||e)}})();static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),HB=(()=>{class e extends DD{_platform=P($n);_ngZone=P(Ke);_renderer=P(An).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(n){if(super.add(n),!this._isAttached){let r=this._document.body,i={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[Ri(this._renderer,r,"pointerdown",this._pointerDownListener,i),Ri(this._renderer,r,"click",this._clickListener,i),Ri(this._renderer,r,"auxclick",this._clickListener,i),Ri(this._renderer,r,"contextmenu",this._clickListener,i)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(n=>n()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=n=>{this._pointerDownEventTarget=Ni(n)};_clickListener=n=>{let r=Ni(n),i=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){let a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(wD(a.overlayElement,r)||wD(a.overlayElement,i))break;let l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(n)):l.next(n)}};static \u0275fac=(()=>{let n;return function(r){return(n||(n=id(e)))(r||e)}})();static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wD(e,t){let n=typeof ShadowRoot<"u"&&ShadowRoot,r=t;for(;r;){if(r===e)return!0;r=n&&r instanceof ShadowRoot?r.host:r.parentNode}return!1}var TD=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=St({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
45
45
  `],encapsulation:2,changeDetection:0})}return e})(),Nf=(()=>{class e{_platform=P($n);_containerElement;_document=P(ct);_styleLoader=P(fl);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||Pv()){let i=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;o<i.length;o++)i[o].remove()}let r=this._document.createElement("div");r.classList.add(n),Pv()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}_loadStyles(){this._styleLoader.load(TD)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hv=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,r){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",r)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},Ca=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Ne;_attachments=new Ne;_detachments=new Ne;_positionStrategy;_scrollStrategy;_locationChanges=Bt.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new Ne;_outsidePointerEvents=new Ne;_renders=new Ne;_afterRenderRef;_afterNextRenderRef;constructor(e,t,n,r,i,o,s,a,l,c=!1,d,h){this._portalOutlet=e,this._host=t,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._location=a,this._outsideClickDispatcher=l,this._animationsDisabled=c,this._injector=d,this._renderer=h,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Ag(()=>lg(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Yi(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=w(w({},this._config),e),this._updateElementSize()}setDirection(e){this._config=ne(w({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=$t(this._config.width),e.height=$t(this._config.height),e.minWidth=$t(this._config.minWidth),e.minHeight=$t(this._config.minHeight),e.maxWidth=$t(this._config.maxWidth),e.maxHeight=$t(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Hv(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,t,n){let r=Av(t||[]).filter(i=>!!i);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(xs(hc(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}},bD="cdk-overlay-connected-position-bounding-box",$B=/([A-Za-z%]+)$/,$v=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Ne;_resizeSubscription=Bt.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,r,i){this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(bD),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,t=this._overlayRect,n=this._viewportRect,r=this._containerRect,i=[],o;for(let s of this._preferredPositions){let a=this._getOriginPoint(e,r,s),l=this._getOverlayPoint(a,t,s),c=this._getOverlayFit(l,t,n,s);if(c.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,a);return}if(this._canFitWithFlexibleDimensions(c,l,n)){i.push({position:s,origin:a,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(a,s)});continue}(!o||o.overlayFit.visibleArea<c.visibleArea)&&(o={overlayFit:c,overlayPoint:l,originPoint:a,position:s,overlayRect:t})}if(i.length){let s=null,a=-1;for(let l of i){let c=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);c>a&&(a=c,s=l)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&os(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(bD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,n){let r;if(n.originX=="center")r=e.left+e.width/2;else{let o=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;r=n.originX=="start"?o:s}t.left<0&&(r-=t.left);let i;return n.originY=="center"?i=e.top+e.height/2:i=n.originY=="top"?e.top:e.bottom,t.top<0&&(i-=t.top),{x:r,y:i}}_getOverlayPoint(e,t,n){let r;n.overlayX=="center"?r=-t.width/2:n.overlayX==="start"?r=this._isRtl()?-t.width:0:r=this._isRtl()?0:-t.width;let i;return n.overlayY=="center"?i=-t.height/2:i=n.overlayY=="top"?0:-t.height,{x:e.x+r,y:e.y+i}}_getOverlayFit(e,t,n,r){let i=SD(t),{x:o,y:s}=e,a=this._getOffset(r,"x"),l=this._getOffset(r,"y");a&&(o+=a),l&&(s+=l);let c=0-o,d=o+i.width-n.width,h=0-s,f=s+i.height-n.height,g=this._subtractOverflows(i.width,c,d),m=this._subtractOverflows(i.height,h,f),b=g*m;return{visibleArea:b,isCompletelyWithinViewport:i.width*i.height===b,fitsInViewportVertically:m===i.height,fitsInViewportHorizontally:g==i.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let r=n.bottom-t.y,i=n.right-t.x,o=CD(this._overlayRef.getConfig().minHeight),s=CD(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportVertically||o!=null&&o<=r,l=e.fitsInViewportHorizontally||s!=null&&s<=i;return a&&l}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=SD(t),i=this._viewportRect,o=Math.max(e.x+r.width-i.width,0),s=Math.max(e.y+r.height-i.height,0),a=Math.max(i.top-n.top-e.y,0),l=Math.max(i.left-n.left-e.x,0),c=0,d=0;return r.width<=i.width?c=l||-o:c=e.x<this._viewportMargin?i.left-n.left-e.x:0,r.height<=i.height?d=a||-s:d=e.y<this._viewportMargin?i.top-n.top-e.y:0,this._previousPushAmount={x:c,y:d},{x:e.x+c,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!WB(this._lastScrollVisibility,n)){let r=new jv(e,n);this._positionChanges.next(r)}this._lastScrollVisibility=n}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let i=0;i<t.length;i++)t[i].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,r=this._isRtl(),i,o,s;if(t.overlayY==="top")o=e.y,i=n.height-o+this._viewportMargin;else if(t.overlayY==="bottom")s=n.height-e.y+this._viewportMargin*2,i=n.height-s+this._viewportMargin;else{let f=Math.min(n.bottom-e.y+n.top,e.y),g=this._lastBoundingBoxSize.height;i=f*2,o=e.y-f,i>g&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-g/2)}let a=t.overlayX==="start"&&!r||t.overlayX==="end"&&r,l=t.overlayX==="end"&&!r||t.overlayX==="start"&&r,c,d,h;if(l)h=n.width-e.x+this._viewportMargin*2,c=e.x-this._viewportMargin;else if(a)d=e.x,c=n.right-e.x;else{let f=Math.min(n.right-e.x+n.left,e.x),g=this._lastBoundingBoxSize.width;c=f*2,d=e.x-f,c>g&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-g/2)}return{top:o,left:d,bottom:s,right:h,width:c,height:i}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=$t(n.height),r.top=$t(n.top),r.bottom=$t(n.bottom),r.width=$t(n.width),r.left=$t(n.left),r.right=$t(n.right),t.overlayX==="center"?r.alignItems="center":r.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?r.justifyContent="center":r.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",i&&(r.maxHeight=$t(i)),o&&(r.maxWidth=$t(o))}this._lastBoundingBoxSize=n,os(this._boundingBox.style,r)}_resetBoundingBoxStyles(){os(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){os(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){let n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){let c=this._viewportRuler.getViewportScrollPosition();os(n,this._getExactOverlayY(t,e,c)),os(n,this._getExactOverlayX(t,e,c))}else n.position="static";let s="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(s+=`translateX(${a}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=$t(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=$t(o.maxWidth):i&&(n.maxWidth="")),os(this._pane.style,n)}_getExactOverlayY(e,t,n){let r={top:"",bottom:""},i=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),e.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;r.bottom=`${o-(i.y+this._overlayRect.height)}px`}else r.top=$t(i.y);return r}_getExactOverlayX(e,t,n){let r={left:"",right:""},i=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let o;if(this._isRtl()?o=e.overlayX==="end"?"left":"right":o=e.overlayX==="end"?"right":"left",o==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(i.x+this._overlayRect.width)}px`}else r.left=$t(i.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ED(e,n),isOriginOutsideView:Vv(e,n),isOverlayClipped:ED(t,n),isOverlayOutsideView:Vv(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Av(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof qt)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}};function os(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function CD(e){if(typeof e!="number"&&e!=null){let[t,n]=e.split($B);return!n||n==="px"?parseFloat(t):null}return e||null}function SD(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}function WB(e,t){return e===t?!0:e.isOriginClipped===t.isOriginClipped&&e.isOriginOutsideView===t.isOriginOutsideView&&e.isOverlayClipped===t.isOverlayClipped&&e.isOverlayOutsideView===t.isOverlayOutsideView}var ID="cdk-global-overlay-wrapper",Wv=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(ID),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:i,maxWidth:o,maxHeight:s}=n,a=(r==="100%"||r==="100vw")&&(!o||o==="100%"||o==="100vw"),l=(i==="100%"||i==="100vh")&&(!s||s==="100%"||s==="100vh"),c=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",g="",m="";a?m="flex-start":c==="center"?(m="center",h?g=d:f=d):h?c==="left"||c==="end"?(m="flex-end",f=d):(c==="right"||c==="start")&&(m="flex-start",g=d):c==="left"||c==="start"?(m="flex-start",f=d):(c==="right"||c==="end")&&(m="flex-end",g=d),e.position=this._cssPosition,e.marginLeft=a?"0":f,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=a?"0":g,t.justifyContent=m,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(ID),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},GB=(()=>{class e{_viewportRuler=P(kv);_document=P(ct);_platform=P($n);_overlayContainer=P(Nf);constructor(){}global(){return new Wv}flexibleConnectedTo(n){return new $v(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Gv=(()=>{class e{scrollStrategies=P(UB);_overlayContainer=P(Nf);_positionBuilder=P(GB);_keyboardDispatcher=P(jB);_injector=P(bt);_ngZone=P(Ke);_document=P(ct);_directionality=P(pl);_location=P(Vg);_outsideClickDispatcher=P(HB);_animationsModuleType=P(Hb,{optional:!0});_idGenerator=P(Tf);_renderer=P(An).createRenderer(null,null);_appRef;_styleLoader=P(fl);constructor(){}create(n){this._styleLoader.load(TD);let r=this._createHostElement(),i=this._createPaneElement(r),o=this._createPortalOutlet(i),s=new hl(n);return s.direction=s.direction||this._directionality.value,new Ca(o,r,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Un),this._renderer)}position(){return this._positionBuilder}_createPaneElement(n){let r=this._document.createElement("div");return r.id=this._idGenerator.getId("cdk-overlay-"),r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(sr)),new bf(n,null,this._appRef,this._injector,this._document)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zB(e,t){}var Sa=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext},qB=(()=>{class e extends wa{_elementRef=P(qt);_focusTrapFactory=P(mD);_config;_interactivityChecker=P(Ov);_ngZone=P(Ke);_overlayRef=P(Ca);_focusMonitor=P(dD);_renderer=P(qs);_platform=P($n);_document=P(ct,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=P(jo);_injector=P(bt);_isDestroyed=!1;constructor(){super(),this._config=P(Sa,{optional:!0})||new Sa,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(n){this._ariaLabelledByQueue.push(n),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(n){let r=this._ariaLabelledByQueue.indexOf(n);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._contentAttached(),r}attachTemplatePortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._contentAttached(),r}attachDomPortal=n=>{this._portalOutlet.hasAttached();let r=this._portalOutlet.attachDomPortal(n);return this._contentAttached(),r};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{o(),s(),n.removeAttribute("tabindex")},o=this._renderer.listen(n,"blur",i),s=this._renderer.listen(n,"mousedown",i)})),n.focus(r)}_focusByCssSelector(n,r){let i=this._elementRef.nativeElement.querySelector(n);i&&this._forceFocus(i,r)}_trapFocus(n){this._isDestroyed||Yi(()=>{let r=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||r.focus(n);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(n)||this._focusDialogContainer(n);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',n);break;default:this._focusByCssSelector(this._config.autoFocus,n);break}},{injector:this._injector})}_restoreFocus(){let n=this._config.restoreFocus,r=null;if(typeof n=="string"?r=this._document.querySelector(n):typeof n=="boolean"?r=n?this._elementFocusedBeforeDialogWasOpened:null:n&&(r=n),this._config.restoreFocus&&r&&typeof r.focus=="function"){let i=Cf(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(n){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus(n)}_containsFocus(){let n=this._elementRef.nativeElement,r=Cf();return n===r||n.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Cf()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=St({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&eo(Tv,7),n&2){let i;to(i=no())&&(r._portalOutlet=i.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&Dg("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[Ys],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&At(0,zB,0,0,"ng-template",0)},dependencies:[Tv],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
46
- `],encapsulation:2})}return e})(),Ai=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new Ne;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,t){this.overlayRef=e,this.config=t,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!vD(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(e,t){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(e),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},YB=new ve("DialogScrollStrategy",{providedIn:"root",factory:()=>{let e=P(Gv);return()=>e.scrollStrategies.block()}}),ml=new ve("DialogData"),KB=new ve("DefaultDialogConfig"),xD=(()=>{class e{_overlay=P(Gv);_injector=P(bt);_defaultOptions=P(KB,{optional:!0});_parentDialog=P(e,{optional:!0,skipSelf:!0});_overlayContainer=P(Nf);_idGenerator=P(Tf);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Ne;_afterOpenedAtThisLevel=new Ne;_ariaHiddenElements=new Map;_scrollStrategy=P(YB);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=_h(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(To(void 0)));constructor(){}open(n,r){let i=this._defaultOptions||new Sa;r=w(w({},i),r),r.id=r.id||this._idGenerator.getId("cdk-dialog-"),r.id&&this.getDialogById(r.id);let o=this._getOverlayConfig(r),s=this._overlay.create(o),a=new Ai(s,r),l=this._attachContainer(s,a,r);return a.containerInstance=l,this._attachDialogContent(n,a,l,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){zv(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){zv(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),zv(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new hl({positionStrategy:n.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,width:n.width,height:n.height,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}_attachContainer(n,r,i){let o=i.injector||i.viewContainerRef?.injector,s=[{provide:Sa,useValue:i},{provide:Ai,useValue:r},{provide:Ca,useValue:n}],a;i.container?typeof i.container=="function"?a=i.container:(a=i.container.type,s.push(...i.container.providers(i))):a=qB;let l=new va(a,i.viewContainerRef,bt.create({parent:o||this._injector,providers:s}));return n.attach(l).instance}_attachDialogContent(n,r,i,o){if(n instanceof Br){let s=this._createInjector(o,r,i,void 0),a={$implicit:o.data,dialogRef:r};o.templateContext&&(a=w(w({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new Ea(n,null,a,s))}else{let s=this._createInjector(o,r,i,this._injector),a=i.attachComponentPortal(new va(n,o.viewContainerRef,s));r.componentRef=a,r.componentInstance=a.instance}}_createInjector(n,r,i,o){let s=n.injector||n.viewContainerRef?.injector,a=[{provide:ml,useValue:n.data},{provide:Ai,useValue:r}];return n.providers&&(typeof n.providers=="function"?a.push(...n.providers(r,n,i)):a.push(...n.providers)),n.direction&&(!s||!s.get(pl,null,{optional:!0}))&&a.push({provide:pl,useValue:{value:n.direction,change:So()}}),bt.create({parent:s||o,providers:a})}_removeOpenDialog(n,r){let i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let n=this._overlayContainer.getContainerElement();if(n.parentElement){let r=n.parentElement.children;for(let i=r.length-1;i>-1;i--){let o=r[i];o!==n&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zv(e,t){let n=e.length;for(;n--;)t(e[n])}var En=class{static injectScriptURL(e,t){if(!e)return;let n=document.createElement("script");n.id=t??"",n.src=e,n.defer=!0,e.includes("localhost")&&(n.type="module"),document.head.appendChild(n)}static injectRawScript(e){if(!e)return;let t=document.createElement("script");t.id="cooee-app-script",t.innerHTML=e,document.head.appendChild(t)}static injectRawCSS(e,t=document.head){if(!e)return;let n=document.createElement("style");n.textContent=e,t.appendChild(n)}static injectStylesheet(e,t=document.head){if(!e)return;let n=document.createElement("link");n.rel="stylesheet",n.href=e,e==="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"&&(n.crossOrigin="anonymous",n.onload=r=>{let i=r.currentTarget?.sheet?.cssRules;if(i){for(let o of i)if(o.type==CSSRule.FONT_FACE_RULE){let s=e.split("/"),a=s.slice(0,s.length-1).join("/"),l=o.cssText;l=l.replace(/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g,`url("${a}/$4")`);let c=document.createElement("style");c.appendChild(document.createTextNode(l)),document.head.appendChild(c)}}}),t.appendChild(n)}},Yv=Pe(Yn());function ZB(e,t){if(e&1&&(X(0,"div",11),jt(1,"OPEN CART "),Q()),e&2){let n=re();Qi("animate-slide-up-enter",n.atcClicked)("hidden",!n.atcClicked)}}function XB(e,t){if(e&1&&(X(0,"div",11),jt(1,"ADD TO CART "),Q()),e&2){let n=re();Qi("animate-slide-up-exit",n.atcClicked)("hidden",n.atcClicked)}}var Ia=class af{items;clicked=new yt;performCTA=new yt;atcClicked=!1;clickAddToCart(t,n){t.stopPropagation(),this.performCTA.emit({item:n,cta:this.atcClicked?Yv.ClickActionType.OPEN_CART:Yv.ClickActionType.ADD_TO_CART}),this.atcClicked=!0}static \u0275fac=function(t){return new(t||af)};static \u0275cmp=St({type:af,selectors:[["cooee-product-card"]],inputs:{items:"items"},outputs:{clicked:"clicked",performCTA:"performCTA"},decls:15,vars:12,consts:[[1,"lc:absolute","lc:flex","lc:bottom-2","lc:gap-2","lc:w-full","lc:z-10"],[1,"lc:flex","lc:px-20","lc:w-full"],["id","lc-single-product","tabindex","{0}",1,"lc:flex","lc:flex-col","lc:gap-1","lc:bg-white/50","lc:rounded-lg","lc:p-2","lc:w-full","lc:cursor-pointer","lc:backdrop-blur-xs",3,"click","keydown"],[1,"lc:flex","lc:gap-2","lc:w-full","lc:p-1"],["id","lc-item-image",1,"lc:w-16","lc:h-16","lc:object-cover","lc:box-border","lc:rounded-lg",3,"alt","src"],[1,"lc:flex","lc:flex-col","lc:gap-1","lc:text-xs"],["id","lc-item-name",1,"lc:font-semibold","lc:line-clamp-2"],["id","lc-item-price"],["id","lc-cta-button","tabindex","{0}",1,"lc:py-2","lc:rounded","lc:w-full","lc:text-center","lc:font-normal","lc:cursor-pointer",3,"click","keydown"],[1,"lc:text-white","lc:text-lg","lc:font-bold",3,"animate-slide-up-enter","hidden"],[1,"lc:text-white","lc:text-lg","lc:font-bold",3,"animate-slide-up-exit","hidden"],[1,"lc:text-white","lc:text-lg","lc:font-bold"]],template:function(t,n){if(t&1){let r=_n();X(0,"div",0)(1,"div",1),Hr(2),X(3,"div",2),at("click",function(){Je(r);let i=Hn(2);return Qe(n.clicked.emit(i))})("keydown",function(){Je(r);let i=Hn(2);return Qe(n.clicked.emit(i))}),X(4,"div",3),qe(5,"img",4),X(6,"div",5)(7,"span",6),jt(8),Q(),X(9,"span",7),jt(10),ar(11,"cooeeCurrency"),Q()()(),X(12,"div",8),at("click",function(i){Je(r);let o=Hn(2);return Qe(n.clickAddToCart(i,o))})("keydown",function(i){Je(r);let o=Hn(2);return Qe(n.clickAddToCart(i,o))}),At(13,ZB,2,4,"div",9)(14,XB,2,4,"div",10),Q()()()()}if(t&2){Z(2);let r=Uo(n.items==null?null:n.items[0]);Z(3),jn("alt",r.name),Ue("src",r.imageURL,cn),Z(3),Ir(" ",r.name," "),Z(2),Ir(" ",Dr(11,10,r.price)," "),Z(2),Qi("lc:bg-pink-500",!n.atcClicked)("lc:bg-black",n.atcClicked),Z(),Ut(n.atcClicked?13:14)}},dependencies:[Xr],styles:["@keyframes _ngcontent-%COMP%_slideUpExit{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}@keyframes _ngcontent-%COMP%_slideUpEnter{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}[_nghost-%COMP%] .animate-slide-up-exit[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideUpExit .3s ease-out forwards}[_nghost-%COMP%] .animate-slide-up-enter[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideUpEnter .3s ease-out forwards}"]})},ht=class{static COOEE_URL_PREFIX="?from=cooee";static isShopify(){return!!window.Shopify}static getShopName(){if(this.isShopify())return window.Shopify.shop?.split(".")?.[0]}static getPageName(){if(!this.isShopify())return;let e=new URL(window.location.href).pathname.slice(1).split("/"),t=e[0];if(t==="")return"home";if(t==="collections")return e[2]==="products"?"product":"collection";if(t==="products")return"product";if(t==="cart")return"cart";if(location.href.includes("thank_you"))return"thank_you"}static getProductSlug(e){let t=(e.includes("://")?new URL(e).pathname:e).match(/\/products\/([^/]+?)(?:\.html)?$/);return t?t[1]:null}static getRootPrefix(){return window.Shopify?.routes?.root??"/"}static getCartURL(e){return this.getRootPrefix()+e+this.COOEE_URL_PREFIX}},ND=Pe(Xv()),JB=(0,ND.default)(fetch),Rf=class{static async getAjaxItem(e){let t=this.getItemSlug(e);if(!t)return;let n,r=ht.getRootPrefix()+`products/${t}.js`;try{n=await(await JB(r)).json()}catch(i){S.error(`Failed to fetch ${r}`,i);let o=_t.getInstance();i instanceof Response?o.captureMessage(`Shopify product fetch failed ${i.status}`,"error",{mID:e.mID,path:r}):o.captureException(i,{mID:e.mID,path:r});return}if(!n){S.error("Item not found after AJAX call for:",e.mID);return}return n}static getItemSlug(e){if(e.link)try{let t=new URL(e.link).pathname.match(/\/products\/([^/]+?)(?:\.html)?$/);return t?t[1]:void 0}catch{return}}},Af=Pe(Yn()),QB=(e,t)=>t.id;function e2(e,t){if(e&1&&qe(0,"img",10),e&2){let n=t.$implicit,r=re(2);Ue("src",n,cn)("alt",r.item.name)}}function t2(e,t){if(e&1&&Kt(0,e2,1,2,"img",10,Ci),e&2){let n=re();Zt(n.ajaxItem.images)}}function n2(e,t){if(e&1&&qe(0,"img",10),e&2){let n=re();Ue("src",n.item.imageURL,cn)("alt",n.item.name)}}function r2(e,t){if(e&1){let n=_n();X(0,"div",20),at("click",function(){let r=Je(n).$implicit,i=re();return Qe(i.selectedVariant=r)})("keydown",function(){let r=Je(n).$implicit,i=re();return Qe(i.selectedVariant=r)}),X(1,"span",21),jt(2),Q()()}if(e&2){let n=t.$implicit,r=re();Qi("lc:bg-pink-100",(r.selectedVariant==null?null:r.selectedVariant.id)===n.id)("lc:border-pink-300",(r.selectedVariant==null?null:r.selectedVariant.id)===n.id)("lc:text-pink-700",(r.selectedVariant==null?null:r.selectedVariant.id)===n.id),Z(2),Ks(n.title)}}function i2(e,t){if(e&1&&(X(0,"div",16)(1,"h4",22),jt(2,"Description"),Q(),qe(3,"div",23),ar(4,"safeHtml"),Q()),e&2){let n=re();Z(3),Ue("innerHTML",Dr(4,1,n.ajaxItem==null?null:n.ajaxItem.description),jc)}}function o2(e,t){e&1&&jt(0," OPEN CART ")}function s2(e,t){e&1&&jt(0," ADD TO CART ")}var Da=class cf{item;closeModel=new yt;performCTA=new yt;atcClicked=!1;selectedVariant=null;availableVariants=[];ajaxItem;ClickActionType=Af.ClickActionType;async ngOnInit(){this.ajaxItem=await Rf.getAjaxItem(this.item),this.processVariants()}closeDialog(){this.closeModel.emit()}clickAddToCart(t){t.vID=this.selectedVariant?.id,t.vName=this.selectedVariant?.public_title,this.performCTA.emit({item:t,cta:this.atcClicked?Af.ClickActionType.OPEN_CART:Af.ClickActionType.ADD_TO_CART}),this.atcClicked=!0}processVariants(){this.availableVariants=this.ajaxItem?.variants.filter(t=>t.available)??[],this.selectedVariant=this.availableVariants[0]}static \u0275fac=function(t){return new(t||cf)};static \u0275cmp=St({type:cf,selectors:[["cooee-product-modal"]],inputs:{item:"item"},outputs:{closeModel:"closeModel",performCTA:"performCTA"},decls:29,vars:7,consts:[[1,"lc:bg-white","lc:flex","lc:flex-col","lc:h-full","lc:w-full"],[1,"lc:flex","lc:items-center","lc:justify-between","lc:px-4","lc:py-3","lc:border-b"],[1,"lc:text-xl","lc:font-bold"],[1,"lc:bg-transparent","lc:text-black/50","lc:border-0","lc:cursor-pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000"],["d","M0 0h24v24H0V0z","fill","none"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"],[1,"lc:flex-1","lc:overflow-y-auto","lc:p-4"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:gap-4"],[1,"lc:w-full","lc:flex","lc:overflow-x-auto","lc:gap-2","lc:flex-nowrap"],[1,"lc:w-28","lc:h-28","lc:object-contain",3,"src","alt"],[1,"lc:flex","lc:flex-col","lc:gap-2","lc:mt-4","lc:w-full"],[1,"lc:text-lg","lc:font-bold","lc:m-0"],[1,"lc:text-pink-600","lc:font-bold","lc:text-lg"],[1,"lc:flex","lc:flex-wrap","lc:gap-2","lc:pt-2","lc:w-full"],["tabindex","{0}",1,"lc:px-3","lc:py-2","lc:rounded-lg","lc:bg-gray-100","lc:text-gray-800","lc:text-sm","lc:cursor-pointer","lc:border","lc:border-gray-200","lc:flex","lc:items-center","lc:gap-1",3,"lc:bg-pink-100","lc:border-pink-300","lc:text-pink-700"],[1,"lc:mt-4","lc:border-t","lc:pt-4","lc:w-full"],[1,"lc:flex","lc:justify-center","lc:items-center","lc:px-4","lc:py-4","lc:bg-black/30","lc:rounded-lg","lc:gap-4","lc:rounded-b-none","lc:shadow-zinc-400"],["tabindex","{0}",1,"lc:bg-black","lc:text-white","lc:px-4","lc:py-2","lc:rounded-lg","lc:font-semibold","lc:w-1/2","lc:flex","lc:justify-center","lc:cursor-pointer",3,"click","keydown"],["tabindex","{0}",1,"lc:bg-pink-100","lc:text-pink-600","lc:px-4","lc:py-2","lc:rounded-lg","lc:font-semibold","lc:w-1/2","lc:flex","lc:justify-center","lc:cursor-pointer",3,"click","keydown"],["tabindex","{0}",1,"lc:px-3","lc:py-2","lc:rounded-lg","lc:bg-gray-100","lc:text-gray-800","lc:text-sm","lc:cursor-pointer","lc:border","lc:border-gray-200","lc:flex","lc:items-center","lc:gap-1",3,"click","keydown"],[1,"lc:truncate","lc:max-w-[200px]"],[1,"lc:font-semibold","lc:m-0"],[3,"innerHTML"]],template:function(t,n){t&1&&(X(0,"div",0)(1,"div",1)(2,"h2",2),jt(3,"Shop Now"),Q(),X(4,"button",3),at("click",function(){return n.closeDialog()}),Sr(),X(5,"svg",4),qe(6,"path",5)(7,"path",6),Q()()(),$s(),X(8,"div",7)(9,"div",8)(10,"div",9),At(11,t2,2,0)(12,n2,1,2,"img",10),Q(),X(13,"div",11)(14,"h3",12),jt(15),Q(),X(16,"span",13),jt(17),ar(18,"cooeeCurrency"),Q()(),X(19,"div",14),Kt(20,r2,3,7,"div",15,QB),Q(),At(22,i2,5,3,"div",16),Q()(),X(23,"div",17)(24,"div",18),at("click",function(){return n.clickAddToCart(n.item)})("keydown",function(){return n.clickAddToCart(n.item)}),At(25,o2,1,0)(26,s2,1,0),Q(),X(27,"div",19),at("click",function(){return n.performCTA.emit({item:n.item,cta:n.ClickActionType.GO_TO_PRODUCT})})("keydown",function(){return n.performCTA.emit({item:n.item,cta:n.ClickActionType.GO_TO_PRODUCT})}),jt(28," MORE INFO "),Q()()()),t&2&&(Z(11),Ut(!(n.ajaxItem==null||n.ajaxItem.images==null)&&n.ajaxItem.images.length?11:12),Z(4),Ks(n.item.name),Z(2),Ir(" ",Dr(18,5,(n.selectedVariant==null?null:n.selectedVariant.price)/100)," "),Z(3),Zt(n.availableVariants),Z(2),Ut(n.ajaxItem!=null&&n.ajaxItem.description?22:-1),Z(3),Ut(n.atcClicked?25:26))},dependencies:[pa,Xr],styles:["[_nghost-%COMP%]{display:block;background:#fff;height:70vh;border-top-left-radius:16px;border-top-right-radius:16px;overflow:hidden}"]})};function a2(e,t){e&1&&(Sr(),X(0,"svg",1),qe(1,"path",2)(2,"path",3),Q())}function c2(e,t){e&1&&(Sr(),X(0,"svg",1),qe(1,"path",2)(2,"path",4),Q())}var Ta=class Of{muted;buttonClicked=new yt;static \u0275fac=function(t){return new(t||Of)};static \u0275cmp=St({type:Of,selectors:[["cooee-mute-toggle"]],inputs:{muted:"muted"},outputs:{buttonClicked:"buttonClicked"},decls:3,vars:1,consts:[["id","lc-mute-button",1,"lc:bg-black/50","lc:rounded-full","lc:w-12","lc:h-12","lc:flex","lc:items-center","lc:justify-center","lc:border-none","lc:cursor-pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M4.34 2.93L2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06c1.34-.3 2.57-.92 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM10 15.17L7.83 13H5v-2h2.83l.88-.88L10 11.41v3.76zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8l-1.88 1.88L12 7.76zm4.5 8c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"],["d","M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"]],template:function(t,n){t&1&&(X(0,"button",0),at("click",function(){return n.buttonClicked.emit()}),At(1,a2,3,0,":svg:svg",1)(2,c2,3,0,":svg:svg",1),Q()),t&2&&(Z(),Ut(n.muted?1:2))},encapsulation:2})},xa=class Pf{width;static \u0275fac=function(t){return new(t||Pf)};static \u0275cmp=St({type:Pf,selectors:[["cooee-video-progress-bar"]],inputs:{width:"width"},decls:4,vars:2,consts:[[1,"lc:absolute","lc:top-1","lc:w-full","lc:z-10"],[1,"lc:px-2"],[1,"lc:h-1","lc:w-full","lc:bg-gray-700","lc:mb-2"],[1,"lc:h-1","lc:bg-pink-500"]],template:function(t,n){t&1&&(X(0,"div",0)(1,"div",1)(2,"div",2),qe(3,"div",3),Q()()()),t&2&&(Z(3),Ji("width",n.width,"%"))},encapsulation:2})},vo=Pe(Yn()),RT=Pe(Mf()),AT=Pe($o()),l2=" daum[ /]| deusu/| yadirectfetcher|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<![hg]m)score|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\btime/|\\||^<|^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[^ ]{50,}$|^\\d+\\b|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^active|^ad muncher|^amaya|^avsdevicesdk/|^biglotron|^bot|^bw/|^clamav[ /]|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\(compatible;?(?:\\s\\w+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|^{{.*}}$|adscanner/|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|cookiehubscan|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|evc-batch/|exaleadcloudview|feed|firephp|functionize|gomezagent|headless|httrack|hubspot marketing grader|hydra|ibisbrowser|infrawatch|insight|inspect|iplabel|ips-agent|java(?!;)|jsjcw_scanner|library|linkcheck|mail\\.ru/|manager|measure|neustar wpm|node|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|perl|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scanner\\.|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|zgrab",u2=/bot|crawl|http|lighthouse|scan|search|spider/i,gl;function d2(){if(gl instanceof RegExp)return gl;try{gl=new RegExp(l2,"i")}catch{gl=u2}return gl}function MD(e){return!!e&&d2().test(e)}var OD=Pe(Jv()),yl=class{static UTM_PARAMS=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_id"];static TW_PARAMS={utm_source:"tw_source",utm_campaign:"tw_campaign"};static getReferrer(){if(document.referrer)return document.referrer.replace(location.origin,"")}static getUTMParams(){let e;try{e=new OD.URLBuilder(location.href)}catch{return{}}let t={};this.UTM_PARAMS.forEach(r=>{let i=e.getQueryParam(r);i&&(t[r]=i)});let n={};return Object.keys(this.TW_PARAMS).forEach(r=>{let i=e.getQueryParam(this.TW_PARAMS[r]);i&&(n[r]=i)}),w(w({},n),t)}},ei=class U0{origin;path;qs;name;referrer;utmSource;utmMedium;utmCampaign;utmId;utmTerm;utmContent;constructor(t){this.name=t.name,this.path=t.path,this.qs=t.qs,this.referrer=t.referrer,this.utmSource=t.utmSource||t.utm_source,this.utmMedium=t.utmMedium||t.utm_medium,this.utmCampaign=t.utmCampaign||t.utm_campaign,this.utmId=t.utmId||t.utm_id,this.utmTerm=t.utmTerm||t.utm_term,this.utmContent=t.utmContent||t.utm_content}static parseFromCurrent(){let t=location.pathname==="/"?location.pathname:location.pathname.replace(/\/+$/,"");return new U0(w({origin:location.origin,path:t,qs:location.search,referrer:yl.getReferrer(),name:Ae.get().pageName},yl.getUTMParams()))}},ke=class{static storage=new Map;static get(e){return this.storage.has(e)||this.storage.set(e,e.getInstance()),this.storage.get(e)}},Qv={d:(e,t)=>{for(var n in t)Qv.o(t,n)&&!Qv.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},e_={};Qv.d(e_,{A:()=>m2,k:()=>t_});var p2=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(c){try{l(r.next(c))}catch(d){o(d)}}function a(c){try{l(r.throw(c))}catch(d){o(d)}}function l(c){var d;c.done?i(c.value):(d=c.value,d instanceof n?d:new n(function(h){h(d)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},h2=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&d[0]?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[2&d[0],i.value]),d[0]){case 0:case 1:i=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,r=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){s.label=d[1];break}if(d[0]===6&&s.label<i[1]){s.label=i[1],i=d;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(d);break}i[2]&&s.ops.pop(),s.trys.pop();continue}d=t.call(e,s)}catch(h){d=[6,h],r=0}finally{n=i=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([l,c])}}};function t_(){return p2(this,void 0,Promise,function(){return h2(this,function(_a){switch(_a.label){case 0:return[4,new Promise(function(resolve,reject){var browserName="Unknown";function __callback(e){resolve({isPrivate:e,browserName})}function identifyChromium(){var e=navigator.userAgent;return e.match(/Chrome/)?navigator.brave!==void 0?"Brave":e.match(/Edg/)?"Edge":e.match(/OPR/)?"Opera":"Chrome":"Chromium"}function assertEvalToString(e){return e===eval.toString().length}function feid(){var toFixedEngineID=0;try{eval("(-1).toFixed(-1);")}catch(e){toFixedEngineID=e.message.length}return toFixedEngineID}function isSafari(){return feid()===44}function isChrome(){return feid()===51}function isFirefox(){return feid()===25}function isMSIE(){return navigator.msSaveBlob!==void 0&&assertEvalToString(39)}function newSafariTest(){var e=String(Math.random());try{window.indexedDB.open(e,1).onupgradeneeded=function(t){var n,r,i=(n=t.target)===null||n===void 0?void 0:n.result;try{i.createObjectStore("test",{autoIncrement:!0}).put(new Blob),__callback(!1)}catch(s){var o=s;return s instanceof Error&&(o=(r=s.message)!==null&&r!==void 0?r:s),typeof o!="string"?void __callback(!1):void __callback(o.includes("BlobURLs are not yet supported"))}finally{i.close(),window.indexedDB.deleteDatabase(e)}}}catch{__callback(!1)}}function oldSafariTest(){var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch{return void __callback(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch{return void __callback(!0)}__callback(!1)}function safariPrivateTest(){navigator.maxTouchPoints!==void 0?newSafariTest():oldSafariTest()}function getQuotaLimit(){var e=window;return e.performance!==void 0&&e.performance.memory!==void 0&&e.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824}function storageQuotaChromePrivateTest(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(e,t){__callback(Math.round(t/1048576)<2*Math.round(getQuotaLimit()/1048576))},function(e){reject(new Error("detectIncognito somehow failed to query storage quota: "+e.message))})}function oldChromePrivateTest(){(0,window.webkitRequestFileSystem)(0,1,function(){__callback(!1)},function(){__callback(!0)})}function chromePrivateTest(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?storageQuotaChromePrivateTest():oldChromePrivateTest()}function firefoxPrivateTest(){__callback(navigator.serviceWorker===void 0)}function msiePrivateTest(){__callback(window.indexedDB===void 0)}function main(){isSafari()?(browserName="Safari",safariPrivateTest()):isChrome()?(browserName=identifyChromium(),chromePrivateTest()):isFirefox()?(browserName="Firefox",firefoxPrivateTest()):isMSIE()?(browserName="Internet Explorer",msiePrivateTest()):reject(new Error("detectIncognito cannot determine the browser"))}main()})];case 1:return[2,_a.sent()]}})})}typeof window<"u"&&(window.detectIncognito=t_);var m2=t_,PD=e_.A,wZ=e_.k,DT=Pe($o()),kD=Pe(n_()),Zn=class Bi{static DOCUMENT_STANDARD_MODE="CSS1Compat";static _instance;parentContainer;scalingFactor=1;doc=document;parser=new kD.default;constructor(){}static get(){return Bi._instance||(Bi._instance=new Bi),Bi._instance}getUAParser(){return this.parser}getWidth(){return this.parentContainer&&this.parentContainer!==document.body?this.parentContainer.clientWidth:document.compatMode===Bi.DOCUMENT_STANDARD_MODE?document.documentElement.clientWidth:window.innerWidth}getHeight(){return this.isParentNotBody()?this.parentContainer.clientHeight:document.compatMode===Bi.DOCUMENT_STANDARD_MODE?document.documentElement.clientHeight:window.innerHeight}isMobile(){return this.parser.getDevice().type==="mobile"}calculateScalingFactor(t){let n=t.max,r=t.cont.w,i=t.cont.h,o=t.spc,s=Bi.get().getWidth(),a=Bi.get().getHeight();n&&(s=s?Math.min(s,n):n,a=a?Math.min(a,n):n),a&&(s-=o.getHorizontal(),a-=o.getVertical(),s/a<r/i?this.scalingFactor=s/r:this.scalingFactor=a/i,this.scalingFactor=Math.min(this.scalingFactor,1))}getScalingFactor(){return this.scalingFactor}createElement(t){return this.doc.createElement(t)}appendChild(t,n){t.appendChild(n)}setStyles(t,n){Object.assign(t.style,n)}setStyle(t,n,r){if(n){if(!r){t.style.removeProperty(n);return}t.style.setProperty(n,r,"important")}}setAttribute(t,n,r){t.setAttribute(n,r)}removeInApp(t){let n=document.querySelector(`.${t.rootClassName}`);n&&n.parentElement.removeChild(n)}setParentContainer(t){this.parentContainer=t,this.parentContainer&&this.isParentNotBody()&&this.setStyle(this.parentContainer,"position","relative")}isParentNotBody(){return this.parentContainer!==document.body}},kf=class{parser;result={};constructor(){this.parser=Zn.get().getUAParser()}async get(){let e=this.result;return this.getDeviceMemory(),this.getNetworkType(),this.getOrientation(),await this.getBatteryInfo(),await this.getLocation(),e.locale=navigator.language,e.display={w:screen.width,h:screen.height,pd:screen.pixelDepth,dpi:this.getDPI()},e.win={ow:window.outerWidth,oh:window.outerHeight,iw:window.innerWidth,ih:window.innerHeight,dpr:window.devicePixelRatio},e.browser={name:this.parser.getBrowser().name,ver:this.parser.getBrowser().version},e.device={model:this.parser.getDevice().model,type:this.parser.getDevice().type,vendor:this.parser.getDevice().vendor},e.os={name:this.parser.getOS().name,ver:this.parser.getOS().version},e.navigatorUA=navigator.userAgent,e.isHeadless=navigator.webdriver,e}getDeviceMemory(){let e=navigator;if(!e.deviceMemory)return;let t=e.deviceMemory;this.result.mem={tot:t*1024}}getNetworkType(){let e=navigator,t=e.connection||e.mozConnection||e.webkitConnection;t?.effectiveType&&(this.result.net={type:t.effectiveType})}getOrientation(){let e=screen.orientation?.type;e&&(this.result.orientation=e)}getDPI(){let e=document.createElement("div");e.setAttribute("style","height: 1in; left: -100%; position: absolute; top: -100%; width: 1in;"),document.body.appendChild(e);let t=window.devicePixelRatio||1,n=e.offsetWidth*t;return document.body.removeChild(e),n}async getLocation(){if(!(!navigator.geolocation||!navigator.permissions||(await navigator.permissions.query({name:"geolocation"})).state!="granted"))return new Promise(e=>{navigator.geolocation.getCurrentPosition(t=>{this.result.coords=[t.coords.latitude,t.coords.longitude],e()},()=>e())})}async getBatteryInfo(){if("getBattery"in navigator)try{let e=await navigator.getBattery();this.result.bat={l:e.level*100,c:e.charging}}catch{}}},Ra=class{isLocked=!1;queue=[];async acquire(){if(this.isLocked)await new Promise(e=>this.queue.push(e));else{this.isLocked=!0;return}}release(){if(this.queue.length>0){let e=this.queue.shift();e&&e()}else this.isLocked=!1}},je=class F0{static CURRENT;token;items;total_price;original_total_price;currency;item_count;attributes;lock=new Ra;constructor(){}static getCurrent(){return this.CURRENT||(this.CURRENT=new F0),this.CURRENT}async getNormalisedCart(t){await this.fetchCartFromShopify(t);let n=this.convertToCooeeCart();return t&&await vt.set(Ce.CURRENT_CART,n),n}async addCooeeAttributes(){await this.lock.acquire();let t=await un.get(Ce.ID),n=await vt.get(Ce.DEVICE_ID);if(this.attributes?.letscooee_did===n&&this.attributes?.letscooee_sid===t){S.debug("Not calling Shopify update.js API.","Current attributes:",this.attributes),this.lock.release();return}let r={letscooee_did:n,letscooee_sid:t,__letscooee_time:new Date().toLocaleString()};S.debug("Updating Shopify cart with attributes:",r);let i=ht.getCartURL("cart/update.js"),o=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:r})})).json();S.debug("Updated cart attributes",JSON.stringify(o)),this.update(o),this.lock.release()}update(t){return this.token=t.token,this.items=t.items,this.total_price=t.total_price,this.original_total_price=t.original_total_price,this.currency=t.currency,this.item_count=t.item_count,this.attributes=t.attributes,Ae.get().currencyCode=this.currency,S.log("Updated ShopifyCart",this),this}toString(){return`ShopifyCart(token: ${this.token}, itemCount: ${this.item_count})`}convertToCooeeCart(){return{amount:this.total_price/100,originalAmount:this.original_total_price/100,currency:this.currency,itemCount:this.item_count,items:this.normaliseItems(this.items),token:this.token}}normaliseItems(t){if(!t)return S.error("No item received to be sent"),[];Array.isArray(t)||(t=[t]);let n=[];for(let r of t){if(!r.id||!r.title){S.warn("Invalid item received",r);continue}let i={name:r.title,quantity:+r.quantity||1,mID:r.product_id?.toString(),vID:r.id.toString(),price:+r.price/100||0,properties:r.properties},o=r.selling_plan_allocation?.selling_plan;if(!o){n.push(i);continue}i.sellingPlanAllocation={sellingPlan:{fixedSellingPlan:o.fixed_selling_plan,id:o.id,name:o.name,recurringDeliveries:o.recurring_deliveries}},n.push(i)}return n}async fetchCartFromShopify(t){if(!t&&this.token){S.debug("Not fetching cart");return}S.debug("Fetching cart");let n=ht.getCartURL("cart.js"),r=await(await fetch(n)).json();this.update(r)}},ss=(e=>(e[e.LOW=1]="LOW",e[e.MEDIUM=2]="MEDIUM",e[e.HIGH=3]="HIGH",e))(ss||{}),Aa=class{static trackDeviceID(e){this.isInstalled()}static trackIntent(e){if(!this.isInstalled())return;let t=ss[e]?.toLowerCase();t&&(S.debug(`Sending ${t} intent to MS Clarity`),window.clarity("set","Cooee Intent",t))}static isInstalled(){return window.clarity&&typeof window.clarity=="function"}},hr=class{static isOn=!1;static element;static watch(){let e=S.getDebugParam();(e==="1"||e==="on")&&Le.getInstance().updateDeviceProps({debugTill:this.getDebugMillis()}),e==="on"?sessionStorage.cooeeDebug="1":e==="off"&&sessionStorage.removeItem("cooeeDebug"),sessionStorage.cooeeDebug&&(this.isOn=!0,this.renderDebugBar())}static prepend(e){if(!this.isOn)return;let t=document.createElement("div");t.innerHTML="&#x2022; "+new Date().toLocaleString()+" - "+e,this.element.prepend(t)}static renderDebugBar(){this.element=document.createElement("div"),this.element.id="cooee-debugger",this.element.setAttribute("draggable","true"),document.body.appendChild(this.element)}static dragElement(){let e=0,t=0,n=0,r=0,i=a=>{a=a||window.event,a.preventDefault(),n=a.clientX,r=a.clientY,document.onmouseup=s,document.onmousemove=o},o=a=>{a=a||window.event,a.preventDefault(),e=n-a.clientX,t=r-a.clientY,n=a.clientX,r=a.clientY,this.element.style.top=this.element.offsetTop-t+"px",this.element.style.left=this.element.offsetLeft-e+"px"},s=()=>{document.onmouseup=null,document.onmousemove=null};this.element.onmousedown=i}static getDebugMillis(){return new Date().getTime()+6*60*60*1e3}},_l=class extends ro{static storeName="app";static{this.storage=ta(this.storeName)}},Lf=Pe($o()),ti=class j0{static INSTANCE=new j0;topics={};constructor(){}static get(){return this.INSTANCE}broadcast(t,n){this.topics[t]||(this.topics[t]=new Ne),this.topics[t].next(n)}subscriber(t){return this.topics[t]||(this.topics[t]=new Ne),this.topics[t].asObservable()}},Wt=class ci{static DEFAULT_SELECTOR="cart-drawer";static _instance;inShadow=!1;cartDrawerElement;cartDrawerShadowElement;configWebsite=Dt.get().website??{};currentState=!1;drawerSubject=new ui({open:!1,firstOpen:!1});mutationObserver;firstOpen=!0;selector;shadowParentElementSelector;iconSelector=['button[drawer-to-open="cart-drawer"]','a[href="/cart"]',".header__icon--cart","#cart-icon-bubble",".cart-icon-bubble",".cart-count",'a[onclick*="handleFloCartBtn"]'].join(",");cartSelector=[ci.DEFAULT_SELECTOR,"#halo-cart-sidebar",'[role="dialog"][class*="cart" i]','[id*="section-cart" i]',"#sidebar-cart","#rebuy-cart","#mini-cart","#flo-cart-wrapper","#drawer-cart","#UpcartPopupBackDrop",'[id$="CartDrawer" i]'].join(",");constructor(){this.initialize(),document.addEventListener(k.CTA_AFTER_REFRESH_UI,this.updateBubble.bind(this))}get element(){return this.cartDrawerElement}static get(){return ci._instance||(ci._instance=new ci),ci._instance}static forceUpdate(){ci._instance=new ci}isOpen(){let t=this.inShadow?this.isPresent():this.isVisible();return Lf.default.log(`Cart drawer is currently ${t?"open":"close"}`),t}open(){if(this.isOpen()){S.log("Drawer is already open");return}document.dispatchEvent(new CustomEvent(k.CTA_OPEN_CART_EVENT));let t=document.querySelector(this.iconSelector);if(!t){S.debug("No clickable cart icon found with selector",this.iconSelector);return}t.click()}onToggle(){return this.drawerSubject}isShopifyDefaultDrawer(){return this.element?.tagName.toLowerCase()===ci.DEFAULT_SELECTOR}isMiniCart(){return this.isShopifyDefaultDrawer()&&this.element?.id==="mini-cart"}refreshUI(t,n=!0){if(this.isMiniCart()&&this.element?._rerenderCart)this.element._rerenderCart({detail:{cart:t}});else if(this.isShopifyDefaultDrawer())this.element?.renderContents&&t&&(this.element.classList.remove("is-empty"),this.element.renderContents?.(t));else if(this.element?.onCartDrawerUpdate)this.element.onCartDrawerUpdate();else if(window.cartGiftUpdate){if(!t?.items?.[0])return;let r=t.items[0].id,i=t.items[0].quantity,o=t.items[0].price;window.cartGiftUpdate(r,o,i,"","ADD_TO_CART")}else if(window.icartCartActivityEvent)window.icartCartActivityEvent();else if(window.theme?.CartDrawer)window.theme?.CartDrawer.init?new window.theme.CartDrawer().init():new window.theme.CartDrawer;else if(window.Hs_CartDrawer?.updateSlideCart)window.Hs_CartDrawer.updateSlideCart();else if(window.theme?.fetch_side_cart)window.theme.fetch_side_cart();else if(window.theme?.Cart?.updateCart)window.theme.Cart.updateCart();else if(window.cartUpdate)window.cartUpdate();else if(this.element?._onCartRefresh)this.element._onCartRefresh();else if(window.cart?.getCart)window.cart.getCart();else if(this.element?.tagName?.toLowerCase()==="cart-drawer-component")document.dispatchEvent(new CustomEvent("action:cart:updateCartandShowCart"));else if(this.element?.id==="sidebar-cart")document.body.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0,detail:{}}));else if(this.element?.id==="quick-cart"){let r=document.querySelector('a[href="/cart"]');r&&r.click()}else S.info("No method found to update the cart without refreshing");document.dispatchEvent(new CustomEvent(k.CTA_AFTER_REFRESH_UI)),n&&ti.get().broadcast(k.CART_UPDATE_BROADCAST)}async initialize(){let t=this.configWebsite.cartDrawerSelector;if(!t){await this.findCartDrawer();return}let n=t.split(k.SHADOW_SPLITTER);n.length===1?(this.selector=n[0],await this.findCartDrawer()):(this.inShadow=!0,this.shadowParentElementSelector=n[0]?.trim(),this.selector=n[1]?.trim(),await this.findCartDrawerWithShadow())}async findCartDrawer(){if(!ht.isShopify())return;let t=this.selector||this.cartSelector;if(this.cartDrawerElement=await de.retrySelector(t),!this.cartDrawerElement){Lf.default.warn("Max attempts exhausted to find cart drawer");return}Lf.default.log("Found",this.cartDrawerElement,`from selector: ${t}`),this.createMutationObservers()}async findCartDrawerWithShadow(){if(!ht.isShopify()||!this.shadowParentElementSelector)return;let t=(await de.retrySelector(this.shadowParentElementSelector))?.shadowRoot;t?.mode==="open"&&(this.cartDrawerShadowElement=t,this.createMutationObservers())}isVisible(){if(!this.cartDrawerElement)return!1;let t=this.cartDrawerElement.getBoundingClientRect(),n=(window.innerHeight||document.documentElement.clientHeight)+.5,r=(window.innerWidth||document.documentElement.clientWidth)+.5,i=t.top<=n&&t.bottom>=0,o=t.left<=r&&t.right>=0,s=i&&o,a=this.cartDrawerElement.tagName.toLowerCase()===ci.DEFAULT_SELECTOR&&this.cartDrawerElement.open,l=getComputedStyle(this.cartDrawerElement),c=l.display!=="none"&&l.visibility!=="hidden"&&parseFloat(l.opacity)>0,d=!this.cartDrawerElement.hidden,h=this.cartDrawerElement.offsetWidth>0||this.cartDrawerElement.offsetHeight>0||this.cartDrawerElement.getClientRects().length>0,f=l.transform.match(/matrix\(([^)]+)\)/),g=0,m=0;if(f){let q=f[1].split(", ").map(parseFloat);g=q[4],m=q[5]}let b=g+t.left>r||g+t.right<0||m+t.top>n||m+t.bottom<0,I=Math.max(0,Math.min(t.right,r)-Math.max(t.left,0)),R=Math.max(0,Math.min(t.bottom,n)-Math.max(t.top,0)),j=I*R,U=t.width*t.height,M=U>0&&j/U>=.1;return(s||a||!b)&&c&&d&&h&&M}createMutationObservers(){!this.cartDrawerElement&&!this.cartDrawerShadowElement||(de.onNodesRemoved(this.cartDrawerElement,()=>{this.initialize()}),this.watchForCartToggle())}watchForCartToggle(){let t=this.cartDrawerElement||this.cartDrawerShadowElement,n=new Ne;this.mutationObserver?.disconnect(),this.mutationObserver=new MutationObserver(()=>{n.next()}),this.mutationObserver.observe(t,{attributes:!0,subtree:!0,childList:this.inShadow}),n.pipe(vr(500)).subscribe(()=>{let r=this.isOpen();this.currentState!==r&&(this.currentState=r,this.drawerSubject.next({open:r,firstOpen:this.firstOpen}),this.firstOpen&&(this.firstOpen=!1))})}isPresent(){return!this.selector||!this.cartDrawerShadowElement?!1:!!this.cartDrawerShadowElement.querySelector(this.selector)}async updateBubble(){let t=(await je.getCurrent().getNormalisedCart(!0)).itemCount,n=document.querySelector(".cart-link__bubble");n&&(n.innerText=t+"")}},Ff=class{static processConfiguration(){let e=Dt.get();!e.gaMeasurementID||!e.gaEnabled||this.sendClientID()}static async sendClientID(){let e=await this.getClientID();e&&Le.getInstance().updateDeviceProps({gaClientID:e})}static async getClientID(){let e=await vt.get(Ce.GA_CLIENT_ID),t=await this.getClientIDViaGTag();if(e!==t)return await vt.set(Ce.GA_CLIENT_ID,t),t}static async getClientIDViaGTag(){let e=Dt.get().gaMeasurementID;if(!(!e||!window.gtag))return new Promise(t=>{window.gtag("get",e,"client_id",n=>{t(n)})})}},ST=Pe(lf()),Fn=Pe(Yn()),po=Pe(Mf()),L_=Pe(i_()),Hf,nt,UD,c_,as,LD,jD,o_,HD,l_,s_,a_,g2,El={},$D=[],y2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,u_=Array.isArray;function ao(e,t){for(var n in t)e[n]=t[n];return e}function d_(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function f_(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Hf.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Uf(e,s,r,i,null)}function Uf(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++UD,__i:-1,__u:0};return i==null&&nt.vnode!=null&&nt.vnode(o),o}function ri(e){return e.children}function ni(e,t){this.props=e,this.context=t}function Ma(e,t){if(t==null)return e.__?Ma(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ma(e):null}function WD(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return WD(e)}}function FD(e){(!e.__d&&(e.__d=!0)&&as.push(e)&&!jf.__r++||LD!==nt.debounceRendering)&&((LD=nt.debounceRendering)||jD)(jf)}function jf(){var e,t,n,r,i,o,s,a;for(as.sort(o_);e=as.shift();)e.__d&&(t=as.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=ao({},i)).__v=i.__v+1,nt.vnode&&nt.vnode(r),p_(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??Ma(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,qD(s,r,a),r.__e!=o&&WD(r)),as.length>t&&as.sort(o_));jf.__r=0}function GD(e,t,n,r,i,o,s,a,l,c,d){var h,f,g,m,b,I,R=r&&r.__k||$D,j=t.length;for(l=v2(n,t,R,l,j),h=0;h<j;h++)(g=n.__k[h])!=null&&(f=g.__i===-1?El:R[g.__i]||El,g.__i=h,I=p_(e,g,f,i,o,s,a,l,c,d),m=g.__e,g.ref&&f.ref!=g.ref&&(f.ref&&h_(f.ref,null,g),d.push(g.ref,g.__c||m,g)),b==null&&m!=null&&(b=m),4&g.__u||f.__k===g.__k?l=zD(g,l,e):typeof g.type=="function"&&I!==void 0?l=I:m&&(l=m.nextSibling),g.__u&=-7);return n.__e=b,l}function v2(e,t,n,r,i){var o,s,a,l,c,d=n.length,h=d,f=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+f,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Uf(null,s,null,null,null):u_(s)?Uf(ri,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Uf(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(c=s.__i=_2(s,n,l,h))!==-1&&(h--,(a=n[c])&&(a.__u|=2)),a==null||a.__v===null?(c==-1&&f--,typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,s.__u|=4))):e.__k[o]=null;if(h)for(o=0;o<d;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Ma(a)),YD(a,a));return r}function zD(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=zD(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ma(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function _2(e,t,n,r){var i,o,s=e.key,a=e.type,l=t[n];if(l===null||l&&s==l.key&&a===l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&(2&l.__u)==0&&s==l.key&&a===l.type)return i;i--}if(o<t.length){if((l=t[o])&&(2&l.__u)==0&&s==l.key&&a===l.type)return o;o++}}return-1}function BD(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||y2.test(t)?n:n+"px"}function Vf(e,t,n,r,i){var o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||BD(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||BD(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(HD,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=l_,e.addEventListener(t,o?a_:s_,o)):e.removeEventListener(t,o?a_:s_,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function VD(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=l_++;else if(t.t<n.u)return;return n(nt.event?nt.event(t):t)}}}function p_(e,t,n,r,i,o,s,a,l,c){var d,h,f,g,m,b,I,R,j,U,M,q,xe,st,V,he,ee,ue=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=nt.__b)&&d(t);e:if(typeof ue=="function")try{if(R=t.props,j="prototype"in ue&&ue.prototype.render,U=(d=ue.contextType)&&r[d.__c],M=d?U?U.props.value:d.__:r,n.__c?I=(h=t.__c=n.__c).__=h.__E:(j?t.__c=h=new ue(R,M):(t.__c=h=new ni(R,M),h.constructor=ue,h.render=w2),U&&U.sub(h),h.props=R,h.state||(h.state={}),h.context=M,h.__n=r,f=h.__d=!0,h.__h=[],h._sb=[]),j&&h.__s==null&&(h.__s=h.state),j&&ue.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=ao({},h.__s)),ao(h.__s,ue.getDerivedStateFromProps(R,h.__s))),g=h.props,m=h.state,h.__v=t,f)j&&ue.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),j&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(j&&ue.getDerivedStateFromProps==null&&R!==g&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(R,M),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(R,h.__s,M)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(h.props=R,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Oe){Oe&&(Oe.__=t)}),q=0;q<h._sb.length;q++)h.__h.push(h._sb[q]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(R,h.__s,M),j&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(g,m,b)})}if(h.context=M,h.props=R,h.__P=e,h.__e=!1,xe=nt.__r,st=0,j){for(h.state=h.__s,h.__d=!1,xe&&xe(t),d=h.render(h.props,h.state,h.context),V=0;V<h._sb.length;V++)h.__h.push(h._sb[V]);h._sb=[]}else do h.__d=!1,xe&&xe(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++st<25);h.state=h.__s,h.getChildContext!=null&&(r=ao(ao({},r),h.getChildContext())),j&&!f&&h.getSnapshotBeforeUpdate!=null&&(b=h.getSnapshotBeforeUpdate(g,m)),a=GD(e,u_(he=d!=null&&d.type===ri&&d.key==null?d.props.children:d)?he:[he],t,n,r,i,o,s,a,l,c),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),I&&(h.__E=h.__=null)}catch(Oe){if(t.__v=null,l||o!=null)if(Oe.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else for(ee=o.length;ee--;)d_(o[ee]);else t.__e=n.__e,t.__k=n.__k;nt.__e(Oe,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=E2(n.__e,t,n,r,i,o,s,l,c);return(d=nt.diffed)&&d(t),128&t.__u?void 0:a}function qD(e,t,n){for(var r=0;r<n.length;r++)h_(n[r],n[++r],n[++r]);nt.__c&&nt.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){nt.__e(o,i.__v)}})}function E2(e,t,n,r,i,o,s,a,l){var c,d,h,f,g,m,b,I=n.props,R=t.props,j=t.type;if(j=="svg"?i="http://www.w3.org/2000/svg":j=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((g=o[c])&&"setAttribute"in g==!!j&&(j?g.localName==j:g.nodeType==3)){e=g,o[c]=null;break}}if(e==null){if(j==null)return document.createTextNode(R);e=document.createElementNS(i,j,R.is&&R),a&&(nt.__m&&nt.__m(t,o),a=!1),o=null}if(j===null)I===R||a&&e.data===R||(e.data=R);else{if(o=o&&Hf.call(e.childNodes),I=n.props||El,!a&&o!=null)for(I={},c=0;c<e.attributes.length;c++)I[(g=e.attributes[c]).name]=g.value;for(c in I)if(g=I[c],c!="children"){if(c=="dangerouslySetInnerHTML")h=g;else if(!(c in R)){if(c=="value"&&"defaultValue"in R||c=="checked"&&"defaultChecked"in R)continue;Vf(e,c,null,g,i)}}for(c in R)g=R[c],c=="children"?f=g:c=="dangerouslySetInnerHTML"?d=g:c=="value"?m=g:c=="checked"?b=g:a&&typeof g!="function"||I[c]===g||Vf(e,c,g,I[c],i);if(d)a||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=""),GD(e,u_(f)?f:[f],t,n,r,j=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Ma(n,0),a,l),o!=null)for(c=o.length;c--;)d_(o[c]);a||(c="value",j=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||j=="progress"&&!m||j=="option"&&m!==I[c])&&Vf(e,c,m,I[c],i),c="checked",b!==void 0&&b!==e[c]&&Vf(e,c,b,I[c],i))}return e}function h_(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){nt.__e(i,n)}}function YD(e,t,n){var r,i;if(nt.unmount&&nt.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||h_(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){nt.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&YD(r[i],t,n||typeof e.type!="function");n||d_(e.__e),e.__c=e.__=e.__e=void 0}function w2(e,t,n){return this.constructor(e,n)}function KD(e,t,n){var r,i,o,s;t==document&&(t=document.documentElement),nt.__&&nt.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],p_(t,e=(!r&&n||t).__k=f_(ri,null,[e]),i||El,El,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Hf.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),qD(o,e,s)}Hf=$D.slice,nt={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},UD=0,c_=function(e){return e!=null&&e.constructor==null},ni.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ao({},this.state),typeof e=="function"&&(e=e(ao({},n),this.props)),e&&ao(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),FD(this))},ni.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),FD(this))},ni.prototype.render=ri,as=[],jD=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o_=function(e,t){return e.__v.__b-t.__v.__b},jf.__r=0,HD=/(PointerCapture)$|Capture$/i,l_=0,s_=VD(!1),a_=VD(!0),g2=0;var g_,Xn,m_,ZD,XD=0,oT=[],on=nt,JD=on.__b,QD=on.__r,eT=on.diffed,tT=on.__c,nT=on.unmount,rT=on.__;function b2(e,t){on.__h&&on.__h(Xn,e,XD||t),XD=0;var n=Xn.__H||(Xn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function v_(e,t){var n=b2(g_++,7);return I2(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function C2(){for(var e;e=oT.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($f),e.__H.__h.forEach(y_),e.__H.__h=[]}catch(t){e.__H.__h=[],on.__e(t,e.__v)}}on.__b=function(e){Xn=null,JD&&JD(e)},on.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rT&&rT(e,t)},on.__r=function(e){QD&&QD(e),g_=0;var t=(Xn=e.__c).__H;t&&(m_===Xn?(t.__h=[],Xn.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach($f),t.__h.forEach(y_),t.__h=[],g_=0)),m_=Xn},on.diffed=function(e){eT&&eT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(oT.push(t)!==1&&ZD===on.requestAnimationFrame||((ZD=on.requestAnimationFrame)||S2)(C2)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),m_=Xn=null},on.__c=function(e,t){t.some(function(n){try{n.__h.forEach($f),n.__h=n.__h.filter(function(r){return!r.__||y_(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],on.__e(r,n.__v)}}),tT&&tT(e,t)},on.unmount=function(e){nT&&nT(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{$f(r)}catch(i){t=i}}),n.__H=void 0,t&&on.__e(t,n.__v))};var iT=typeof requestAnimationFrame=="function";function S2(e){var t,n=function(){clearTimeout(r),iT&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);iT&&(t=requestAnimationFrame(n))}function $f(e){var t=Xn,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Xn=t}function y_(e){var t=Xn;e.__c=e.__(),Xn=t}function I2(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}var D2=Symbol.for("preact-signals");function E_(){if(Oa>1)Oa--;else{for(var e,t=!1;wl!==void 0;){var n=wl;for(wl=void 0,__++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&aT(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(__=0,Oa--,t)throw e}}var Et=void 0,wl=void 0,Oa=0,__=0,Wf=0;function sT(e){if(Et!==void 0){var t=e.n;if(t===void 0||t.t!==Et)return t={i:0,S:e,p:Et.s,n:void 0,t:Et,e:void 0,x:void 0,r:t},Et.s!==void 0&&(Et.s.n=t),Et.s=t,e.n=t,32&Et.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Et.s,t.n=void 0,Et.s.n=t,Et.s=t),t}}function sn(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}sn.prototype.brand=D2;sn.prototype.h=function(){return!0};sn.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};sn.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};sn.prototype.subscribe=function(e){var t=this;return wn(function(){var n=t.value,r=Et;Et=void 0;try{e(n)}finally{Et=r}})};sn.prototype.valueOf=function(){return this.value};sn.prototype.toString=function(){return this.value+""};sn.prototype.toJSON=function(){return this.value};sn.prototype.peek=function(){var e=Et;Et=void 0;try{return this.value}finally{Et=e}};Object.defineProperty(sn.prototype,"value",{get:function(){var e=sT(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(__>100)throw new Error("Cycle detected");this.v=e,this.i++,Wf++,Oa++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{E_()}}}});function mr(e){return new sn(e)}function aT(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function cT(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function lT(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Pa(e){sn.call(this,void 0),this.x=e,this.s=void 0,this.g=Wf-1,this.f=4}(Pa.prototype=new sn).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Wf))return!0;if(this.g=Wf,this.f|=1,this.i>0&&!aT(this))return this.f&=-2,!0;var e=Et;try{cT(this),Et=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Et=e,lT(this),this.f&=-2,!0};Pa.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}sn.prototype.S.call(this,e)};Pa.prototype.U=function(e){if(this.t!==void 0&&(sn.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Pa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Pa.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=sT(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function w_(e){return new Pa(e)}function uT(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Oa++;var n=Et;Et=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,b_(e),r}finally{Et=n,E_()}}}function b_(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,uT(e)}function T2(e){if(Et!==this)throw new Error("Out-of-order effect");lT(this),Et=e,this.f&=-2,8&this.f&&b_(this),E_()}function bl(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}bl.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};bl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,uT(this),cT(this),Oa++;var e=Et;return Et=this,T2.bind(this,e)};bl.prototype.N=function(){2&this.f||(this.f|=2,this.o=wl,wl=this)};bl.prototype.d=function(){this.f|=8,1&this.f||b_(this)};function wn(e){var t=new bl(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var S_,C_;function ka(e,t){nt[e]=t.bind(null,nt[e]||function(){})}function Gf(e){C_&&C_(),C_=e&&e.S()}function dT(e){var t=this,n=e.data,r=N2(n);r.value=n;var i=v_(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var s,a=t.__$u.S(),l=i.value;a(),c_(l)||((s=t.base)==null?void 0:s.nodeType)!==3?(t.__$f|=1,t.setState({})):t.base.data=l},w_(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}dT.displayName="_st";Object.defineProperties(sn.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:dT},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ka("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var o=r[i];o instanceof sn&&(n||(t.__np=n={}),n[i]=o,r[i]=o.peek())}}e(t)});ka("__r",function(e,t){Gf();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var o;return wn(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),S_=r,Gf(n),e(t)});ka("__e",function(e,t,n,r){Gf(),S_=void 0,e(t,n,r)});ka("diffed",function(e,t){Gf(),S_=void 0;var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var o=n.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else n.U=o={};for(var l in r){var c=o[l],d=r[l];c===void 0?(c=x2(n,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});function x2(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,o=mr(n);return{o:function(s,a){o.value=s,r=a},d:wn(function(){var s=o.value.value;r[t]!==s&&(r[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}ka("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var o=r[i];o&&o.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)});ka("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)});ni.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function N2(e){return v_(function(){return mr(e)},[])}var zf=class{url;alt;constructor(e){e.alt&&(this.alt=e.alt),this.url=e.url}},qf=class{d;cmp;effective;constructor(e={}){this.d=e.d,this.cmp=e.cmp,this.effective=this.d}},I_=class{id;mID;name;groupID;groupName;isSelected;constructor(e){e??={},this.id=e.id,this.mID=e.mID,this.name=e.name,this.groupID=e.groupID,this.groupName=e.groupName,this.isSelected=e.isSelected??!1}},ii=class{mID;name;imgs;link;price;sku;isAvailable;quantity;sellingPlans;selectedSellingPlan;effectivePrice;constructor(e){e=e??{},this.mID=e.mID,this.name=e.name,this.imgs=e.imgs?.map(t=>new zf(t))??[],this.link=e.link,this.price=new qf(e.price),this.sku=e.sku,this.isAvailable=e.isAvailable,this.quantity=e.quantity,this.effectivePrice=mr(this.price.effective),e.sellingPlans?.length&&(this.selectedSellingPlan=mr(void 0)),this.sellingPlans=e.sellingPlans?.map(t=>{let n=new I_(t);return n.isSelected&&(this.selectedSellingPlan.value=n),n})}getOneImage(){return this.imgs[0]?.url}changeSellingPlan(e){this.selectedSellingPlan.value=e}},Wn=class{id;mID;name;status;ctg;imgs;videos;portraitVideos;vars;desc;sDesc;link;slug;quantity;category;meta;reviews;selectedOrFirstVariant;selected=mr(!0);constructor(e){this.update(e),this.selectedOrFirstVariant=mr(this.selectedVariant)}get imageURL(){return this.imgs?.[0]?.url}get secondaryImageURL(){return this.imgs?.[1]?.url}get getVariantImages(){return this.selectedOrFirstVariant.value.imgs}get variantImage(){return this.getVariantImages[0]?.url}get variantSecondaryImage(){return this.getVariantImages[1]?.url}get selectedVariant(){return this.vars.find(e=>e.isAvailable)??this.vars[0]}set variants(e){this.vars=e,this.selectedOrFirstVariant.value=this.selectedVariant}update(e){return this.id=e.id,this.mID=e.mID,this.name=e.name,this.status=e.status,this.ctg=e.ctg,this.imgs=e.imgs,this.desc=e.desc,this.sDesc=e.sDesc,this.link=e.link,this.slug=e.slug,this.quantity=e.quantity,this.meta=e.meta,this.category=e.category,this.videos=e.videos,this.reviews=e.reviews,this.portraitVideos=e.videos?.filter(t=>t.orientation==="PORTRAIT"),e.vars&&(this.vars=e.vars.map(t=>new ii(t))),this}toEmbed(e){return e=e??this.selectedOrFirstVariant.value,new ln({id:this.id,mID:this.mID,vID:e.mID,vName:e.name,name:this.name,link:this.link,slug:this.slug,price:e.price.d,imageURL:e.getOneImage()??this.imgs?.[0].url})}},Yf=class{id;mID;handle;title;imageURL;constructor(e){e??={},this.id=e.id,this.mID=e.mID,this.handle=e.handle,this.title=e.title,this.imageURL=e.imageURL}},D_=class{enabled;constructor(e){this.enabled=e.enabled}},T_=class extends D_{max;min;constructor(e){e??={},super(e),this.min=e.min,this.max=e.max}},Kf=class{productQuantity;constructor(e){e??={},this.productQuantity=new T_(e.productQuantity)}},cs=class{s;g;i;constructor(e){e.s&&(this.s=new Ot(e.s)),e.g&&(this.g=new Cl(e.g)),this.i=e.i}get solid(){return this.s}get glossy(){return this.g}get img(){return this.i}},Sl="a-f\\d",R2=`#?[${Sl}]{3}[${Sl}]?`,A2=`#?[${Sl}]{6}([${Sl}]{2})?`,M2=new RegExp(`[^#${Sl}]`,"gi"),O2=new RegExp(`^${R2}$|^${A2}$`,"i");function x_(e,t={}){if(typeof e!="string"||M2.test(e)||!O2.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let n=1;e.length===8&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let r=Number.parseInt(e,16),i=r>>16,o=r>>8&255,s=r&255,a=typeof t.alpha=="number"?t.alpha:n;if(t.format==="array")return[i,o,s,a];if(t.format==="css"){let l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${i} ${o} ${s}${l})`}return{red:i,green:o,blue:s,alpha:a}}var Ot=class{h;a=100;g;constructor(e){e??={},this.h=e.h,this.a=e.a,this.g=e.g}get hex(){return this.h}get grad(){return this.g}get rgba(){if(!this.hex)return"";try{return x_(this.hex,{format:"css",alpha:this.getAlpha()})}catch(e){return console.error("Invalid hex",e),"#000000"}}getAlpha(){return(this.a??100)/100}},ls=class{s;r;w;c;constructor(e){this.s=e.s,this.r=e.r,this.w=e.w,e.c&&(this.c=new Ot(e.c))}get radius(){return this.r}get width(){return this.w}get color(){return this.c}get style(){return fT[this.s??1]}},fT=(e=>(e[e.SOLID=1]="SOLID",e[e.DASHED=2]="DASHED",e))(fT||{}),Cl=class V0{static DEFAULT_FALLBACK=new Ot({h:"#000000",a:50});r;c;fb;constructor(t){this.r=t.r,t.c&&(this.c=new Ot(t.c)),t.fb&&(this.fb=new Ot(t.fb))}get radius(){return this.r}get color(){return this.c}get fallback(){return this.fb??V0.DEFAULT_FALLBACK}},Il=class{blur;spr;clr;x;y;constructor(e){e=e??{},this.blur=e.blur??0,this.spr=e.spr??0,this.x=e.x??0,this.y=e.y??0,this.clr=new Ot(e.clr)}getStyle(e){return`${this.x*e}px ${this.y*e}px ${this.blur*e}px ${this.spr*e}px ${this.clr.rgba}`}},Mi=class{pl;pr;pt;pb;ml;mr;mt;mb;cent;constructor(e){e=e??{},this.pl=e.pl??0,this.pr=e.pr??0,this.pt=e.pt??0,this.pb=e.pb??0,this.ml=e.ml??0,this.mr=e.mr??0,this.mt=e.mt??0,this.mb=e.mb??0,this.cent=e.cent??!1}getHorizontal(){return this.pl+this.pr}getVertical(){return this.pt+this.pb}getPaddingCSS(){return`${this.pt}px ${this.pr}px ${this.pb}px ${this.pl}px`}},us=class{rot;constructor(e){e?.rot&&(this.rot=e.rot)}get rotate(){return this.rot}},Jn=class{t;bg;br;clc;shd;spc;trf;a;w;h;x;y;constructor(e){this.t=e.t,e.bg&&(this.bg=new cs(e.bg)),e.br&&(this.br=new ls(e.br)),e.shd&&(this.shd=new Il(e.shd)),e.spc&&(this.spc=new Mi(e.spc)),this.trf=new us(e.trf),this.clc=e.clc,this.w=e.w,this.h=e.h,this.x=e.x,this.y=e.y,this.a=e.a}get alpha(){return this.a??100}get type(){return this.t}get typeAsString(){return Nt[this.t]}get click(){return this.clc}},Nt=(e=>(e[e.IMAGE=1]="IMAGE",e[e.TEXT=2]="TEXT",e[e.BUTTON=3]="BUTTON",e[e.FLEXBOX=4]="FLEXBOX",e[e.MULTI_COLUMN=5]="MULTI_COLUMN",e[e.CHECKBOX=6]="CHECKBOX",e[e.PRODUCTS=11]="PRODUCTS",e[e.PRODUCT=12]="PRODUCT",e[e.PRODUCT_IMAGE=13]="PRODUCT_IMAGE",e[e.PRODUCT_TITLE=14]="PRODUCT_TITLE",e[e.PRODUCT_VARIATIONS=15]="PRODUCT_VARIATIONS",e[e.PRODUCT_VARIATIONS_SELLING_PLANS=16]="PRODUCT_VARIATIONS_SELLING_PLANS",e[e.PRODUCT_BUTTON=18]="PRODUCT_BUTTON",e[e.PRODUCT_RATING=19]="PRODUCT_RATING",e[e.EMAIL_INPUT=51]="EMAIL_INPUT",e[e.PHONE_INPUT=52]="PHONE_INPUT",e[e.COUNTDOWN_TIMER=61]="COUNTDOWN_TIMER",e[e.CAROUSEL=62]="CAROUSEL",e[e.SHAPE=100]="SHAPE",e))(Nt||{}),ds=class extends Jn{constructor(e){super(e)}},Oi=class extends Jn{src;constructor(e){super(e),this.src=e.src}},La=(e=>(e[e.START=0]="START",e[e.CENTER=1]="CENTER",e[e.END=2]="END",e[e.JUSTIFY=3]="JUSTIFY",e))(La||{}),Zf=class{name;fonts;constructor(e){e=e??{},e.name&&(e.name=e.name!=="Arial"?e.name:""),this.name=e.name,this.fonts=e.fonts?.map(t=>new N_(t))}},N_=class{style;url;constructor(e){e=e??{},this.style=e.style,this.url=e.url}getFontDescriptor(){return{style:this.style===2||this.style===4?"italic":"normal",weight:this.style===4||this.style===3?"700":"400"}}getURL(){return`url('${this.url}') format('truetype')`}},bn=class{fw;fs;fam;fmly;lh=1.2;ls;s;tc;ta;td;tdc;constructor(e){this.update(e)}get alignment(){return La[this.ta]}get letterSpacing(){return this.ls?this.ls+"px":"normal"}update(e){e=e??{},e.lh&&(this.lh=e.lh),e.tdc&&(this.tdc=new Ot(e.tdc)),this.td=e.td,this.fs=e.s??e.fs??60,this.tc=new Ot(e.tc),this.ta=e.ta??1,this.fw=e.fw??400,this.ls=e.ls??0,this.tc.h??="#000000",this.fam=new Zf(e.fam??e.fmly)}resize(e){this.s*=e,this.ls*=e}},oi=class extends Jn{typo;constructor(e){super(e);let t=w(w({},e.f),e.typo);e.alg&&(t.ta=e.alg),e.c&&(t.tc=e.c),this.typo=new bn(t)}get color(){return this.typography.tc}get typography(){return this.typo}},co=class extends oi{prs;constructor(e){super(e),this.prs=e.prs}get parts(){return this.prs}},Xf=class extends Jn{o;constructor(e){super(e),this.o=e.o??5,this.w=this.w??1080,this.h=this.h??1920}getOrigin(){return this.o}},Fa=class{dd;hh;mm;ss;date;constructor(e){e??={},this.dd=e.dd??0,this.hh=e.hh??0,this.mm=e.mm??0,this.ss=e.ss??0,this.date=e.date?new Date(e.date):void 0}start(e,t){let n=new Date;e===2?(n.setSeconds(n.getSeconds()+this.ss),n.setMinutes(n.getMinutes()+this.mm),n.setHours(n.getHours()+this.hh),n.setDate(n.getDate()+this.dd)):n=this.date??new Date;let r=window.setInterval(()=>{let i=new Date().getTime(),o=n.getTime()-i;if(o<1){clearInterval(r);return}let s=Math.floor(o/(1e3*60*60*24)),a=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),l=Math.floor(o%(1e3*60*60)/(1e3*60)),c=Math.floor(o%(1e3*60)/1e3);t({days:s,hours:a,minutes:l,seconds:c})},1e3);return r}},Ba=class extends oi{gap;timer;timerType;horizontal;lblPos;show;constructor(e){e??={},super(e),this.gap=e.gap,this.timerType=e.type,this.timer=new Fa(e.timer),this.show=e.show??{day:!0,hour:!0,minute:!0,second:!0},this.horizontal=e.horizontal,this.lblPos=e.lblPos}},Jf=class{txt;c;constructor(e){e??={},this.txt=e.txt,this.c=new Ot(e.c??{})}get text(){return this.txt}get color(){return this.c}},lo=class extends oi{ph;constructor(e){super(e),this.ph=new Jf(e.ph)}get placeholderText(){return this.ph.text}get placeholderColor(){return this.ph.color.rgba}},Va=class extends lo{constructor(e){e??={},super(e)}},Ua=class extends lo{},ja=class extends lo{},Ha=class extends Oi{},Qf=class{en;ex;constructor(e){e=e??{},this.en=e.en,this.ex=e.ex}getEnterAnimation(){switch(this.en){case 2:return[{transform:"translateY(-100%)"},{transform:"translateY(0%)"}];case 3:return[{transform:"translateY(100%)"},{transform:"translateY(0%)"}];case 4:return[{transform:"translateX(-100%)"},{transform:"translateX(0%)"}];case 5:return[{transform:"translateX(100%)"},{transform:"translateX(0%)"}];case 6:return[{transform:"translate(-100%, -100%)"},{transform:"translate(0%, 0%)"}];case 7:return[{transform:"translate(100%, -100%)"},{transform:"translate(0%, 0%)"}];case 8:return[{transform:"translate(-100%, 100%)"},{transform:"translate(0%, 0%)"}];case 9:return[{transform:"translate(100%, 100%)"},{transform:"translate(0%, 0%)"}];case 10:return[{transform:"scale(0.1)"},{transform:"scale(1)"}];default:return[]}}getExitAnimation(){switch(this.ex){case 2:return[{transform:"translateY(0%)"},{transform:"translateY(-100%)"}];case 3:return[{transform:"translateY(0%)"},{transform:"translateY(100%)"}];case 4:return[{transform:"translateX(0%)"},{transform:"translateX(-100%)"}];case 5:return[{transform:"translateX(0%)"},{transform:"translateX(100%)"}];case 6:return[{transform:"translate(0%, 0%)"},{transform:"translate(-100%, -100%)"}];case 7:return[{transform:"translate(0%, 0%)"},{transform:"translate(100%, -100%)"}];case 8:return[{transform:"translate(0%, 0%)"},{transform:"translate(-100%, 100%)"}];case 9:return[{transform:"translate(0%, 0%)"},{transform:"translate(100%, 100%)"}];case 10:return[{transform:"scale(1)"},{transform:"scale(0)"}];default:return[]}}},Dl=class extends Jn{gvt;max;cover;anim;embedded;position;constructor(e){e=e??{},super(e),this.gvt=e.gvt??5,this.max=e.max,this.cover=e.cover??!0,this.anim=new Qf(e.anim),this.embedded=e.embedded,this.position=e.position??1,this.spc||(this.spc=new Mi({pl:k.IN_APP_DEFAULT_PADDING,pr:k.IN_APP_DEFAULT_PADDING,pt:k.IN_APP_DEFAULT_PADDING,pb:k.IN_APP_DEFAULT_PADDING}))}isEmbedded(){return this.position===2&&!!this.embedded}getEmbeddedSelector(){return`.letscooee-engagement.container-${this.embedded}`}},ep=class extends Dl{cont;elems=[];mob;constructor(e){e=e??{},super(e),this.cont=new Xf(e.cont),this.mob=new Dl(e.mob),this.bg||(this.bg=this.cont.bg,delete this.cont.bg),e.elems.forEach(t=>{t.t===1?this.elems.push(new Oi(t)):t.t===2?this.elems.push(new co(t)):t.t===3?this.elems.push(new co(t)):t.t===100?this.elems.push(new ds(t)):t.t===51?this.elems.push(new Ua(t)):t.t===52?this.elems.push(new ja(t)):t.t===61?this.elems.push(new Ba(t)):t.t===15||t.t===16?this.elems.push(new Va(t)):t.t===13&&this.elems.push(new Ha(t))})}getStylesForWrapper(){if(this.cover)return{};let e;return this.gvt===1?e={top:0,left:0}:this.gvt===2?e={top:0,left:"50%",transform:"translateX(-50%)"}:this.gvt===3?e={top:0,right:0}:this.gvt===6?e={top:"50%",right:0,transform:"translateY(-50%)"}:this.gvt===9?e={bottom:0,right:0}:this.gvt===8?e={bottom:0,left:"50%",transform:"translateX(-50%)"}:this.gvt===7?e={bottom:0,left:0}:this.gvt===4?e={top:"50%",left:0,transform:"translateY(-50%)"}:e={top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"},e.overflow="visible",e}getFlexStylesForContainer(){let e={display:"flex",flexDirection:"row"},t,n;return this.gvt===1?(t="flex-start",n="flex-start"):this.gvt===2?(t="center",n="flex-start"):this.gvt===3?(t="flex-end",n="flex-start"):this.gvt===4?(t="flex-start",n="center"):this.gvt===6?(t="flex-end",n="center"):this.gvt===7?(t="flex-start",n="flex-end"):this.gvt===8?(t="center",n="flex-end"):this.gvt===9?(t="flex-end",n="flex-end"):(t="center",n="center"),e.alignItems=n,e.justifyContent=t,e.overflow="visible",e}overrideForMobileView(){this.max=this.mob.max??this.max,this.cover=this.mob.cover??this.cover,this.gvt=this.mob.gvt??this.gvt,this.bg=this.mob.bg??this.bg,this.spc=this.mob.spc??this.spc,this.anim=this.mob.anim??this.anim,this.position=this.mob.position??this.position,this.embedded=this.mob.embedded??this.embedded}},$a=class{gap;dir;wrap;jc;ai;scroll;constructor(e){e??={},this.gap=e.gap??0,this.dir=e.dir??"row",this.wrap=e.wrap??"nowrap",this.jc=e.jc??"flex-start",this.ai=e.ai??"flex-start",this.scroll=e.scroll}},tp=class{of;disp;pos;top;bottom;left;right;zIndex;constructor(e){e??={},this.of=e.of,this.disp=e.disp,this.pos=e.pos,this.top=e.top,this.bottom=e.bottom,this.left=e.left,this.right=e.right,this.zIndex=e.zIndex}},np=class{w;h;maxW;maxH;minW;minH;constructor(e){e??={},this.w=e.w??"100%",this.h=e.h??"auto",this.maxW=e.maxW,this.maxH=e.maxH,this.minW=e.minW,this.minH=e.minH}},rp=class{size;bg;br;spc;typo;lout;flex;constructor(e){e??={},this.spc=new Mi(e.spc),e.size&&(this.size=new np(e.size)),e.bg&&(this.bg=new cs(e.bg)),e.br&&(this.br=new ls(e.br)),e.typo&&(this.typo=new bn(e.typo)),e.lout&&(this.lout=new tp(e.lout)),e.flex&&(this.flex=new $a(e.flex))}},Wa=class{sm;lg;constructor(e){e??={},this.sm=new rp(e.sm),this.lg=new rp(e.lg)}},pn=class{t;style;hide;when;clc;constructor(e,t){t??={},this.t=e,this.style=new Wa(t.style),this.hide=t.hide,t.when?.op&&(this.when=t.when),t.clc&&(this.clc=t.clc)}get stringType(){return Nt[this.t]}},hn=class extends pn{text;constructor(e,t){e?.style?.lg?.typo?.s&&delete e.style.lg.typo.s,e?.style?.sm?.typo?.s&&delete e.style.sm.typo.s,super(t??2,e),e??={},this.text=e.text}},fs=class extends hn{constructor(e,t){super(e,t??3)}},Ga=class extends pn{value;constructor(e){super(6,e),e??={},this.value=e.value}},za=class extends hn{constructor(e=15,t){super(t,e)}},ip=class extends pn{c;iconSize;showSingleStar;fullStar;halfStart;constructor(e){super(19,e),e??={},this.c=new Ot(e.c),this.iconSize=e.iconSize??24,this.showSingleStar=e.showSingleStar??!1,this.fullStar=e.fullStar,this.halfStart=e.halfStart}},pT=Pe($o()),R_=class{enabled;type;color;constructor(e){e??={},this.enabled=e.enabled,this.type=e.type,this.color=new Ot(e.color)}},A_=class{size;enabled;color;constructor(e){e??={},this.enabled=e.enabled,this.size=e.size,this.color=new Ot(e.color)}},Tl=class{navigation;pagination;autoplay;maxInRow;gap;slidesPerView;constructor(e){e??={},this.navigation=new A_(e.navigation),this.pagination=new R_(e.pagination),this.autoplay=e.autoplay,this.slidesPerView=e.slidesPerView??1,this.maxInRow=e.maxInRow??e.slidesPerView??4,this.gap=e.gap??0}},op=class extends pn{conf;slide;formData;values;allowedTypes;constructor(e){super(62,e),e&&this.update(e)}update(e){e??={},this.slide=Qn.getParsedElement(e.slide),this.formData=e.formData,this.values=e.values,this.conf=new Tl(e.conf),this.allowedTypes=e.allowedTypes}},sp=class extends hn{gap;timer;timerType;horizontal;lblPos;show;constructor(e){e??={},super(e,61),this.gap=e.gap,this.timerType=e.type,this.timer=new Fa(e.timer),this.show=e.show??{days:!0,hours:!0,minutes:!0,seconds:!0},this.horizontal=e.horizontal,this.lblPos=e.lblPos}},uo=class extends pn{elems;constructor(e){super(4,e),this.update(e)}update(e){e??={},this.elems??=[],e.elems?.forEach(t=>{let n=Qn.getParsedElement(t);n&&this.elems.push(n)})}},ps=class extends pn{src;sm;lg;constructor(e,t){super(t??1,e),e&&this.update(e)}update(e){this.src=e.src,this.sm=e.sm,this.lg=e.lg}},Qn=class H0{static getParsedElements(t){let n=[];return t?.forEach(r=>{let i=H0.getParsedElement(r);i&&n.push(i)}),n}static getParsedElement(t){switch(t.t){case 2:return new hn(t);case 3:return new fs(t);case 6:return new Ga(t);case 11:return new ap(t);case 12:return new fo(t);case 61:return new sp(t);case 4:return new uo(t);case 1:return new ps(t);case 13:return new ps(t,13);case 14:return new hn(t,14);case 15:case 16:return new za(t.t,t);case 18:return new fs(t,18);case 62:return new op(t);case 19:return new ip(t);default:pT.default.error("Unknown element type",t.t);return}}static parseAlignmentToJustifyContent(t){switch(t){case 1:return"center";case 2:return"flex-end";case 0:return"flex-start";default:return"flex-start"}}},fo=class extends pn{img;title;desc;price;compareAt;btn;variantDD;show;symbol;cBox;elems;noLinks;constructor(e){if(e??={},super(12,e),this.show=e.show,this.elems=Qn.getParsedElements(e.elems),this.noLinks=e.noLinks,!this.elems.length){e.cBox&&this.elems.push(new Ga(e.cBox)),this.elems.push(new ps(e.img,13));let t=new hn(e.title,14);t.hide=!e.show?.title,t.text="{{ product.name }}",this.elems.push(t);let n=new hn(e.price);n.text="{{ product.price }}",n.hide=!e.show?.price;let r=new hn(e.compareAt);r.text="{{ product.compare_price }}",r.hide=!e.show?.price,e.compareAt||(r.style=new Wa(n.style),r.style.lg.typo=new bn(ne(w({},r.style.lg.typo),{td:"line-through"})),r.style.sm.typo=new bn(ne(w({},r.style.sm.typo),{td:"line-through"})));let i=new uo({style:{lg:{spc:{mb:10},flex:{dir:"row",gap:10,ai:"center",jc:Qn.parseAlignmentToJustifyContent(n.style.lg.typo?.ta)}}}});i.elems.push(r),i.elems.push(n),this.elems.push(i);let o=new za(15,e.variantDD);if(o.hide=!e.show?.variantDD,this.elems.push(o),e.btn){let s=new fs(e.btn,18);s.hide=!e.show?.btn,this.elems.push(s)}}e.symbol&&(this.symbol=new hn(e.symbol))}},ap=class extends pn{conf;prod;constructor(e){super(11,e),e??={},this.conf=new M_(e.conf),this.prod=new fo(e.prod)}},cp=class extends Tl{disp;maxItems;constructor(e){e??={},super(e),this.disp=e.disp,this.maxItems=e.maxItems}},M_=class{lg;sm;constructor(e){e??={},this.lg=new cp(e.lg),this.sm=new cp(e.sm)}},lp=class extends uo{constructor(e){super(e)}},qa=class{cont;elems=[];constructor(e){e=e??{},this.cont=new lp(e.cont),e.elems?.forEach(t=>{this.addRawElement(t)})}addRawElement(e){let t=Qn.getParsedElement(e);return t&&this.elems.push(t),t}},hT=Pe(Yn()),O_=class{minValue;rewardType;label;reachingText;reachedText;discount;items;calculatedAlignment;constructor(e){this.minValue=e.minValue,this.rewardType=e.rewardType,this.label=e.label,this.reachingText=e.reachingText,this.reachedText=e.reachedText,this.discount=e.discount,this.items=e.items?.map(t=>new ln(t))}},up=class{layout;milestones;constructor(e){this.layout=e.layout??hT.ProgressBarLayout.ICONS,this.milestones=e.milestones?.map(t=>new O_(t))??[]}},dp=class{applyDiscountOnMinimum;constructor(e){this.applyDiscountOnMinimum=e.applyDiscountOnMinimum}},fp=class{id;alt;sources;items;constructor(e={}){this.id=e.id,this.alt=e.alt,this.sources=e.sources,this.items=e.items?e.items.map(t=>new ln(t)):[]}},P_=(e=>(e.GALLERY="GALLERY",e.CURRENT_PRODUCT="CURRENT_PRODUCT",e))(P_||{}),k_=(e=>(e.SWIPER="SWIPER",e.STORY="STORY",e))(k_||{}),pp=class{videos;source;template;heading;constructor(e={}){this.videos=e.videos?.map(t=>new fp(t))??[],this.source=e.source,this.template=e.template,this.heading=e.heading}},F_=class{engagementID;shortID;contentType;delay;onsiteDeliveryType;objective;redirectBehaviour;constructor(e){this.shortID=e.shortID,this.contentType=e.contentType,this.engagementID=e.engagementID,this.delay=e.delay??0,this.redirectBehaviour=e.redirectBehaviour,this.onsiteDeliveryType=e.onsiteDeliveryType,this.objective=e.objective}isAnySplit(){return this.isABTesting()||this.isExclusionTesting()}isExclusionTesting(){return this.contentType===Fn.EngagementContentType.EXCLUSION}isABTesting(){return this.contentType===Fn.EngagementContentType.ABTESTING}isSingleContent(){return this.contentType===Fn.EngagementContentType.SINGLE}},er=class $0 extends F_{static SWIPER_ELEMENTS=new Set([11,62]);nudgeID;contentID;variation;ian;widget;discount;placement;promotionType;contentSource;manipulation;klaviyoFormID;hasMultiplePlacement;skipSubscribedItems;progressBarConfig;bundleConfig;content;previewType;occurred;id;currency;props;items;nonMutableItems;embeddedItems;bundleFrom;collections;customerData;discountData=mr({});constructor(t){super(t),this.id=t.id,this.nudgeID=t.nudgeID,this.currency=Ae.get().currencyCode??"USD",this.contentID=t.contentID,this.variation=t.variation,t.widget&&(this.widget=new qa(t.widget)),this.previewType=t.previewType,this.occurred=t.occurred??new Date,this.props=t.props,this.embeddedItems=t.embeddedItems?.map(n=>new ln(n)),this.items=t.items?.map(n=>new Wn(n))??[],this.nonMutableItems=t.items?.map(n=>new Wn(n))??[],this.collections=t.collections?.map(n=>new Yf(n))??[],this.discount=t.discount,this.placement=t.placement,this.customerData=t.customerData,this.ian=t.ian?this.processPopup(t.ian):void 0,this.promotionType=t.promotionType,this.manipulation=new Kf(t.manipulation),this.contentSource=t.contentSource,this.klaviyoFormID=t.klaviyoFormID,this.hasMultiplePlacement=t.hasMultiplePlacement,this.skipSubscribedItems=t.skipSubscribedItems,t.progressBarConfig&&(this.progressBarConfig=new up(t.progressBarConfig)),t.bundleConfig&&(this.bundleConfig=new dp(t.bundleConfig)),t.bundleFrom&&(this.bundleFrom=new Wn(t.bundleFrom)),t.content?.videoConfig&&(this.content={videoConfig:new pp(t.content.videoConfig)})}shouldDelay(){return this.delay>0}sentryContext(){return{id:this.id,shortID:this.shortID,currency:this.currency,contentType:this.contentType,objective:this.objective,onsiteDeliveryType:this.onsiteDeliveryType,engagementID:this.engagementID,contentID:this.contentID,nudgeID:this.nudgeID,variation:this.variation}}getDelaySeconds(){let t=new Date().getTime()-this.occurred.getTime();return this.delay*1e3-t}isBundle(){return this.objective===Fn.EngagementObjective.BUNDLE_AND_UPSELL}isCartEmbed(){return this.onsiteDeliveryType===Fn.OnsiteDeliveryType.CART_EMBED}isPageEmbed(){return this.onsiteDeliveryType===Fn.OnsiteDeliveryType.PAGE_EMBED}isProgressBar(){return this.objective===Fn.EngagementObjective.PROGRESS_BAR}isSubscriptionUpsell(){return this.objective===Fn.EngagementObjective.SUBSCRIPTION_UPSELL}isCartRecovery(){return this.objective===Fn.EngagementObjective.CART_RECOVERY}isProductPromotion(){return this.objective===Fn.EngagementObjective.PRODUCT_PROMOTION}isProductPromoted(){return this.isProductPromotion()||this.isBundle()||this.isCartRecovery()}isBYOB(){return this.objective===Fn.EngagementObjective.BYOB}isShoppableVideo(){return this.objective===Fn.EngagementObjective.SHOPPABLE_VIDEO}processPopup(t){let n=JSON.stringify(t),r=this.items[0],i={},o={};if(r){let l=r.selectedOrFirstVariant.value;i={name:r.name,id:r.mID,link:r.link,vID:l.mID,image:r.variantImage,price:de.formatCurrency(l.price.d),comparePrice:de.formatCurrency(l.price.cmp),quantity:r.quantity},o={quantity:l.quantity}}let s={productCount:je.getCurrent().item_count},a=fn.render(n,{product:i,variant:o,cart:s,discount:this.discount,customer:this.customerData});return r&&(a=a.replace(new RegExp(k.PLACEHOLDER_IMAGE,"gi"),r.variantImage??r.imageURL)),new ep(JSON.parse(a))}calculateDiscountData(t,n){let r=L_.ArrayUtils.sum(t,o=>o.selectedOrFirstVariant.value.price.d),i={actualPrice:r,discountAmount:0,discountPercentage:0,discountedPrice:r};if(!t?.length||!n||!this.discount?.type){this.discountData.value=this.formatCurrencyAndNumber(i);return}if(po.DiscountType.BXGY===this.discount.type&&this.discount.values?.length)i.discountPercentage=this.discount.values[0],this.updateEffectivePrice(t,i.discountPercentage,!0),i.discountAmount=i.actualPrice-L_.ArrayUtils.sum(t,o=>o.selectedOrFirstVariant.value.effectivePrice.value);else if([po.DiscountType.UNIQUE_FLAT_ITEMS,po.DiscountType.STATIC].includes(this.discount.type)&&this.discount.values?.length)i.discountPercentage=this.discount.values[0],i.discountAmount=i.actualPrice*i.discountPercentage/100,this.updateEffectivePrice(t,i.discountPercentage);else if(this.discount.type===po.DiscountType.UNIQUE_FIXED_ITEMS&&this.discount.values?.length)i.discountAmount=i.actualPrice-this.discount.values[0],i.discountPercentage=i.discountAmount/i.actualPrice*100,this.updateEffectivePrice(t,i.discountPercentage);else if(this.discount.type===po.DiscountType.UNIQUE_CHEAPEST_ITEM_FREE){t.sort((s,a)=>a.selectedOrFirstVariant.value.price.d-s.selectedOrFirstVariant.value.price.d);let o=t[t.length-1];o.selectedOrFirstVariant.value.effectivePrice.value=0,i.discountAmount=o.selectedOrFirstVariant.value.price.d,i.discountPercentage=i.discountAmount/i.actualPrice*100}i.discountedPrice=i.actualPrice-i.discountAmount,this.discountData.value=this.formatCurrencyAndNumber(i)}getPrivateAttributesForLineItem(){return Dt.get().skipItemAttribute?{}:{[k.VIA]:"Cooee",[k.CAMPAIGN_ATTRIBUTE]:this.shortID,[k.CONTENT_ATTRIBUTE]:this.contentID}}getKVFormatPrivateAttributesForLineItem(){return Dt.get().skipItemAttribute?[]:[{key:k.VIA,value:"Cooee"},{key:k.CAMPAIGN_ATTRIBUTE,value:this.shortID},{key:k.CONTENT_ATTRIBUTE,value:this.contentID}]}isBundleDiscount(){return[po.DiscountType.UNIQUE_FIXED_ITEMS,po.DiscountType.UNIQUE_FLAT_ITEMS].includes(this.discount.type)}isBundleOnCartDrawer(){return this.isBundle()&&this.isCartEmbed()}isBundleOnPDP(){return this.isPageEmbed()&&this.isBundle()}hasSwiperElement(){let t=this.widget?.elems.find(r=>$0.SWIPER_ELEMENTS.has(r.t));if(!t)return!1;if(t.t===62)return!0;let n=Zn.get().isMobile()?"sm":"lg";return t.conf[n].disp===2}toString(){return`Engagement(id=${this.shortID})`}getCartMagicVariables(){let t=je.getCurrent();return{productCount:t.item_count,amount:de.formatCurrency(t.total_price/100),originalAmount:de.formatCurrency(t.original_total_price/100)}}updateEffectivePrice(t,n,r=!1){let i=Ae.get().getCurrentItem();t.forEach(o=>{let s=o.selectedOrFirstVariant.value,a=s.price;if(r&&o.mID===i.mID)s.effectivePrice.value=a.d;else{let l=a.d*n/100;s.effectivePrice.value=a.d-l}})}formatCurrencyAndNumber(t){if(!t)return{};let n={discountPercentage:de.formatNumber(t.discountPercentage??0),discountCode:this.discount?.code};return["actualPrice","discountAmount","discountedPrice"].map(r=>{n[r]=de.formatCurrency(t[r])}),n}},Fl=Pe(Yn()),vT=Pe(i_()),_T=Pe(ea()),Ya=class{constructor(e,t){this._startTime=e,this._triggerData=t}intervals=[];selectedEmbeddedItems;renderer;closeCallback;inputFields=[];get startTime(){return this._startTime}get triggerData(){return this._triggerData}get inputs(){return this.inputFields}get rootClassName(){let e=this.triggerData.shortID??this.triggerData.id.slice(-6);return e==="test"&&(e="test-"+this.startTime.getTime().toString()),k.IN_APP_WRAPPER_NAME+"-"+e}get selectedItems(){return this.triggerData.items.filter(e=>e.selected.value)}get shouldGiveFBTDiscount(){let e=this.selectedItems.length;return this.triggerData.bundleConfig?.applyDiscountOnMinimum?this.triggerData.bundleConfig.applyDiscountOnMinimum<=e:e===this.triggerData.items.length}onClose(e){this.closeCallback=e}closeInApp(e,t){t??={};let n=(new Date().getTime()-this.startTime.getTime())/1e3,r=w({eventName:e,duration:n},t);this.stopIntervals(),this.closeCallback&&this.closeCallback(r)}addInputField(e,t){this.inputFields.push({id:e,type:t,isValid:!1})}updateValidation(e,t){this.inputFields.forEach(n=>{if(n.id===e){n.isValid=t;return}})}hasManipulatedProductQuantity(){let e=this.triggerData.manipulation.productQuantity;return e?.enabled&&e.min!=null&&e.max!=null}getManipulatedQuantity(e){let{min:t=1,max:n=100}=this.triggerData.manipulation.productQuantity;if(t>n)return S.error("Invalid range: min should be less than or equal to max."),e;if(e>=t&&e<=n)return e;let r=e%100;return r<t?t:r>n?n:r}stopIntervals(){this.intervals.forEach(e=>clearInterval(e))}},ET=Pe($o()),mT=Pe(Xv()),hs=class{static _flags={};static getFlags(){return this._flags}static setFlags(e){this._flags=e??{}}static isECommerceApp(){return ht.isShopify()}},k2=(0,mT.default)(fetch),L2={retryDelay:k.API_CALL_RETRY_DELAY,retryOn:(e,t,n)=>e>=k.API_CALL_MAX_ATTEMPTS?!1:!!(t!==null||n?.status&&n?.status>=500)},Nn=class z0{static INSTANCE;apiToken="";firstSeen="";constructor(){}static getInstance(){return this.INSTANCE||(this.INSTANCE=new z0),this.INSTANCE}async validateSession(t){return this.post("/v1/event/validate-session",t)}updateUserData(t){this.put("/v1/user/update",t).then(async n=>{S.log("Updated user profile"),await ms.getInstance().storeAndPopulateAuthData(n)}).catch(n=>{S.error("Error saving user profile",n)})}trackOrder(t){this.post("/v1/event/track-order",t).then(()=>{S.log("Sent Order")}).catch(n=>{S.error("Error sending track order",n)})}generateDiscount(t){return this.post("/v1/event/generate-discount",t)}updateDeviceProps(t){this.put("/v1/device/update",t).then(()=>{S.log("Updated device property")}).catch(async n=>{S.error("Error saving device property",n)})}setAPIToken(t){this.apiToken=t??""}setFirstSeen(t){this.firstSeen=t?.toUTCString()??""}get(t){return this.requestBackend("GET",t)}post(t,n){return this.requestBackend("POST",t,n)}put(t,n){return this.requestBackend("PUT",t,n)}async requestBackend(t,n,r){if(!hs.isECommerceApp()&&!hs.getFlags().allowEvents)return S.log(`Rejecting ${t} ${n} as this is not e-commerce app`),Promise.reject();n.startsWith("http")||(n=Dn.apiURL+n);let i=this.getDefaultHeaders(),o="keepalive"in new Request("");if(r&&!o&&JSON.stringify(r).includes("CE App Background"))try{return this.performXMLHttpRequest(n,i,r)}catch(a){return _t.getInstance().captureException(a,{body:JSON.stringify(r)}),{}}let s={method:t,headers:i,keepalive:!0};return r&&(s.body=JSON.stringify(r)),this.request(n,s)}async request(t,n){let r=w(w({},L2),n),i=await k2(t,r);if(!i.ok)throw i;return i.json()}performXMLHttpRequest(t,n,r){return new Promise((i,o)=>{let s=new XMLHttpRequest;s.open("POST",t,!0),n.forEach((a,l)=>{s.setRequestHeader(l,a)}),s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE)if(s.status>=200&&s.status<300)try{s.getResponseHeader("Content-Type")?.includes("application/json")?i(JSON.parse(s.responseText)):o(new Error("Content-Type of response header is not json"))}catch(a){o(a)}else o(new Error(`Received status - ${s.status}(${s.statusText})`))},s.onerror=()=>{o(new Error("Network error occurred during the request."))},s.send(JSON.stringify(r))})}getDefaultHeaders(){let t=new Headers;return t.set("content-type","application/json"),t.set("cooee-sdk",k.SDK),t.set("cooee-sdk-code",k.SDK_VERSION_CODE.toString()),t.set("cooee-sdk-version",k.SDK_VERSION),t.set("cooee-first-seen",this.firstSeen),this.apiToken&&t.append("cooee-sdk-token",this.apiToken),Dn.debug&&t.set("cooee-sdk-debug",String(1)),t}},Ka=class{static sentryService=_t.getInstance();static httpApiService=Nn.getInstance();static async refreshItems(e){if(e.isCartEmbed()&&!e.isSubscriptionUpsell()){let i=(await je.getCurrent().getNormalisedCart()).items.map(o=>o.mID);e.items=e.items.filter(o=>!i.includes(o.mID))}if(Dt.get().currencyCount<=1)return e.items;let t=e.items.length,n=e.items.map(i=>this.updatedItem(i,e.engagementID)),r=(await Promise.all(n)).filter(i=>i!=null);if(t&&!r.length){let i="Failed to fetch any product from Ajax API",o=new Ye(k.EVENT_CAMPAIGN_FAILED,{reason:i,currency:e.currency},e);throw Le.getInstance().sendEvent(o),new Error(i)}if(e.isCartRecovery()){let i=je.getCurrent().items,o=[];for(let s of r)for(let a of s.vars){if(!a.isAvailable)continue;let l=i.find(h=>h.variant_id.toString()===a.mID);if(!l)continue;let c=new Wn(s);c.name=l.title;let d=new ii(a);d.name=l.variant_title,d.price.d=l.discounted_price/100,c.variants=[d],o.push(c)}return o}return r}static async updatedItem(e,t){let n=e,r,i=ht.getRootPrefix()+`products/${n.slug}.js`;try{r=await this.httpApiService.request(i)}catch(s){return S.error(`Failed to fetch ${i}`,s),s instanceof Response?this.sentryService.captureMessage(`Shopify product fetch failed ${s.status}`,"error",{item:n,path:i},{"engagement.id":t}):this.sentryService.captureException(s,{item:n,path:i},{"engagement.id":t}),null}if(!r)return S.error("Item not found after AJAX call for:",n),null;n.name=r.title;let o=n.selectedOrFirstVariant.value;return n.vars.map(s=>{let a=r.variants.find(l=>l.id===+s.mID);s.name=a.title,s.isAvailable=a.available,s.price.d=a.price?a.price/100:a.price,s.price.effective=s.price.d,s.price.cmp=a.compare_at_price?a.compare_at_price/100:a.compare_at_price,+o.mID===a.id&&(o.effectivePrice.value=s.price.d)}),n}},Za=class{constructor(e){this.scalingFactor=e}getLayoutStyles(e){if(!e)return{display:"block"};let t={display:e.disp};return e.of&&(t.objectFit=e.of),e.pos==="absolute"&&(t.width="auto !important",t.position="absolute",t.right=e.right+"px",t.left=e.left+"px",t.top=e.top+"px",t.bottom=e.bottom+"px"),t}getSizeStyles(e){let t={};return e?.w&&(t.width=e.w),e?.h&&(t.height=e.h),e?.maxW&&(t.maxWidth=e.maxW),e?.maxH&&(t.maxHeight=e.maxH),e?.minW&&(t.minWidth=e.minW),e?.minH&&(t.minHeight=e.minH),t}getBorderStyles(e){if(!e)return{};let t={};return e.radius&&e.radius>0&&(t.borderRadius=this.getSizePx(e.radius)),e.width&&e.width>0&&(t.borderWidth=this.getSizePx(e.width),t.borderStyle=e.style?.toLowerCase(),e.color?this.getColourStyles(e.color,"border-color",t):t.borderColor="black"),t}getFlexStyles(e){return e?{gap:e.gap+"px",flexWrap:e.wrap,flexDirection:e.dir,justifyContent:e.jc,alignItems:e.ai,width:"100%"}:{}}getSpaceStyles(e){let t={};return e?(t.paddingTop=this.getSizePx(e.pt),t.paddingBottom=this.getSizePx(e.pb),t.paddingLeft=this.getSizePx(e.pl),t.paddingRight=this.getSizePx(e.pr),t.marginTop=this.getSizePx(e.mt),t.marginBottom=this.getSizePx(e.mb),t.marginLeft=e.cent?"auto":this.getSizePx(e.ml),t.marginRight=e.cent?"auto":this.getSizePx(e.mr),t):(t.margin="0 !important",t.padding="unset",t)}getBackgroundStyles(e){if(!e)return{};let t={};if(e.glossy){let n="backdrop-filter",r="-webkit-"+n,i=`blur(${e.glossy.radius}px)`;if(!CSS.supports(r,i)&&!CSS.supports(n,i))return{background:e.glossy.fallback.rgba};if(t[r]=i,t[n]=i,e.glossy.color)return this.getColourStyles(e.glossy.color,"background",t)}else if(e.solid){if(e.solid.grad)return this.getGradientStyles(e.solid.grad,"background",t);if(e.solid.hex)return{backgroundColor:e.solid.rgba}}else if(e.img){if(!e.img.src)return{};let n=(e.img.a??0)/100;t.background=`linear-gradient(rgba(0, 0, 0, ${n}), rgba(0, 0, 0, ${n})),url("${e.img.src}") no-repeat center`,t.backgroundSize="cover",e.img.a&&(t["-webkit-backdrop-filter"]=`opacity(${e.img.a})`,t.backdropFilter=`opacity(${e.img.a})`)}return t}getGradientStyles(e,t,n){if(n??={},e.type==="LINEAR"){let r=`linear-gradient(${e.ang}deg, ${e.c1}, ${e.c2}`;e.c3&&(r+=`, ${e.c3}`),r+=")",n[t]=r}return n}getColourStyles(e,t="color",n){return n??={},e?e.grad?this.getGradientStyles(e.grad,t,n):(e.hex&&(n[t]=e.rgba),n):n}getSizePx(e){return this.getScaledSize(e)+"px"}getScaledSize(e){return(e??0)*this.scalingFactor}},mt=class extends ni{stylesConverter=new Za(1);renderer=Zn.get();mediaStyle={};deviceTypeKey;clickExecutor;componentWillMount(){this.deviceTypeKey=this.renderer.isMobile()?"sm":"lg",this.clickExecutor=new ho(this.props.triggerContext,this.props.element)}getCompiledStyles(){return this.putStyleAccordingToDevice(),w(w(ne(w(w(w(w(w(w({},this.stylesConverter.getFlexStyles(this.mediaStyle.flex)),this.stylesConverter.getBackgroundStyles(this.mediaStyle.bg)),this.stylesConverter.getBorderStyles(this.mediaStyle.br)),this.stylesConverter.getSizeStyles(this.mediaStyle.size)),this.stylesConverter.getSpaceStyles(this.mediaStyle.spc)),this.stylesConverter.getLayoutStyles(this.mediaStyle.lout)),{boxSizing:"border-box",outline:"none"}),this.getComponentStyles()),this.props.style)}matchWhenCondition(e){if(!e?.op)return!0;let{lhs:t,rhs:n}=e;switch(e.op){case"eq":return t===n;case"gt":return+t>+n;case"gte":return+t>=+n;case"lt":return+t<+n;case"lte":return+t<=+n;case"ne":return t!==n;case"null":return t==null;case"empty":return t.trim()==="";default:return S.error(`Invalid operator found for when condition - ${e.op}`),!1}}putStyleAccordingToDevice(){let e=this.props.element;this.mediaStyle=e.style.lg,this.renderer.isMobile()&&e.style.sm&&Object.keys(e.style.sm).length&&(this.mediaStyle=w(w({},this.mediaStyle),e.style.sm))}sendTriggerClicked(e,t){this.clickExecutor.sendTriggerClicked(e,t)}async onClick(e){await this.clickExecutor.execute(e)}},F2=0,dne=Array.isArray;function W(e,t,n,r,i,o){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--F2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return nt.vnode&&nt.vnode(c),c}var tr=class extends mt{componentDidMount(){this.setState(()=>({text:this.props.element.text})),wn(this.onChange.bind(this))}componentWillReceiveProps(e){this.props.element=e.element,this.onChange()}render(){let e=this.getCompiledStyles(),t=this.state.text;return t||(e.display="none",t=""),W("div",{style:e,onClick:this.customOnClick.bind(this),className:"lc-text",children:W("span",{style:this.getSpanStyle(),dangerouslySetInnerHTML:{__html:t}})})}customOnClick(){this.props.onClick&&this.props.onClick("title")}onChange(){if(this.props.element.text==null)return;let e=this.props.triggerContext.triggerData,t={bundle:e.discountData.value,customer:e.customerData,cart:e.getCartMagicVariables()},n=fn.render(JSON.stringify(this.props.element),t),r=new hn(JSON.parse(n));if(!this.matchWhenCondition(r.when)){this.setState(()=>({text:""}));return}this.setState(()=>({text:r.text}))}getTypoStyles(){let e={},t=this.mediaStyle.typo??new bn;return e.letterSpacing=t.letterSpacing,e.fontSize=t.fs+"px",e.lineHeight=t.lh,e.fontFamily=t.fam.name||"inherit",e.textAlign=t.alignment,e.fontWeight=t.fw,e.textDecoration=t.td??"none",this.stylesConverter.getColourStyles(t.tc,"color",e),e}getComponentStyles(){return w({},this.getTypoStyles())}getSpanStyle(){return{overflow:"hidden",display:"-webkit-box",webkitBoxOrient:"vertical",webkitLineClamp:2,color:"inherit",fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit"}}},gs=class extends tr{render(){return W("div",{style:this.getCompiledStyles(),className:"lc-button",onClick:()=>this.onClick({item:this.props.item}),children:W("span",{style:this.getSpanStyle(),dangerouslySetInnerHTML:{__html:this.state.text}})})}getComponentStyles(){return ne(w({},super.getComponentStyles()),{cursor:"pointer"})}},B_=class extends ni{render(){if(this.props.element.show[this.props.label.toLowerCase()])return this.props.element.lblPos==="end"?W("div",{style:w(w({},this.getElementStyle()),this.props.styles),children:[W("span",{children:this.props.time}),W("span",{style:this.getTimeLabelStyle(),children:this.props.label})]}):W("div",{style:w(w({},this.getElementStyle()),this.props.styles),children:[W("span",{style:this.getTimeLabelStyle(),children:this.props.label}),W("span",{children:this.props.time})]})}getDesign(){}getTimeLabelStyle(){return{fontSize:"0.5em",alignContent:"center"}}getElementStyle(){let e={display:"flex",flexDirection:"column",placeContent:"center center",textAlign:"center"};return this.props.element.horizontal&&(e.gridTemplateColumns="repeat(2, minmax(0, 1fr))"),e}},xl=class extends tr{labels={Days:"00",Hours:"00",Minutes:"00",Seconds:"00"};componentWillMount(){super.componentWillMount(),this.setState(()=>w({},this.labels)),this.processAndStartTimer()}render(){return W("div",{style:this.getLabelsParentStyle(),children:Object.keys(this.labels).map(e=>W(B_,{styles:this.getCompiledStyles(),label:e,time:this.state[e],element:this.props.element}))})}getLabelsParentStyle(){return{display:"grid",justifyContent:"center",gridTemplateColumns:"repeat(4, auto)",gap:this.stylesConverter.getSizePx(this.props.element.gap)}}getDisplayStyles(){return{display:"grid",placeContent:"center center"}}getComponentStyles(){return w(w({},super.getComponentStyles()),this.getDisplayStyles())}processAndStartTimer(){this.props.element.timer.start(this.props.element.timerType,e=>{this.labels.Days=String(e.days).padStart(2,"0"),this.labels.Hours=String(e.hours).padStart(2,"0"),this.labels.Minutes=String(e.minutes).padStart(2,"0"),this.labels.Seconds=String(e.seconds).padStart(2,"0"),this.setState(()=>w({},this.labels))})}},Nl=class extends mt{componentDidMount(){wn(()=>{this.setState(()=>({checked:this.props.item.selected.value}))})}render(){return W("div",{style:this.getCompiledStyles(),className:"lc-checkbox",children:W("input",{type:"checkbox",checked:this.state.checked,onChange:this.onChange.bind(this),style:{appearance:"auto"}})})}onChange(e){let{checked:t}=e.target;this.props.item.selected.value=t}getTypoStyles(){let e={},t=this.mediaStyle.typo??new bn;return e.textAlign=t.alignment,e.justifyContent=t.alignment,e}getComponentStyles(){return ne(w({},this.getTypoStyles()),{display:"flex"})}},Pi=class extends mt{constructor(e,t){super(e,t)}render(){let e=this.props.element[this.deviceTypeKey],t=e?.src||this.props.element.src||this.props.element.lg?.src;return W("img",{onClick:this.customOnClick.bind(this),className:"lc-image",alt:e?.name||"Image",onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),src:t,style:this.getCompiledStyles()})}customOnClick(){this.props.onClick&&this.props.onClick("image")}getComponentStyles(){let e=this.mediaStyle.lout;if(!e||e.pos!=="absolute")return{};let t={zIndex:e.zIndex};return this.mediaStyle.size?.w&&(t.width=this.mediaStyle.size.w),this.mediaStyle.size?.h&&(t.height=this.mediaStyle.size.h),t}handleMouseEnter(e){let t=this.props.element[this.deviceTypeKey]?.secondarySrc;t&&(e.currentTarget.src=t)}handleMouseLeave(e){e.currentTarget.src=this.props.element[this.deviceTypeKey]?.src}},ki=class extends mt{render(){if(!(this.props.element.hide||!this.matchWhenCondition(this.props.element.when)))return W("div",{style:this.getCompiledStyles(),class:"lc-flexbox",children:W(mo,{elements:this.props.elements,element:this.props.element,triggerContext:this.props.triggerContext})})}getComponentStyles(){let e=this.mediaStyle.flex??new $a,t={display:"flex",gap:e.gap+"px",flexWrap:e.wrap,flexDirection:e.dir,justifyContent:e.jc,alignItems:e.ai};return e.wrap==="nowrap"&&e.scroll&&(e.dir==="column"?t["overflow-y"]="auto":t["overflow-x"]="auto"),t}},Rl=class extends ki{render(){if(!(this.props.element.hide||!this.matchWhenCondition(this.props.element.when)))return W("div",{style:this.getCompiledStyles(),class:"lc-flexbox",children:W(Xa,{elements:this.props.elements,element:this.props.element,triggerContext:this.props.triggerContext,item:this.props.item,noLinks:this.props.noLinks})})}},Al=class extends mt{render(){return W("select",{style:this.getCompiledStyles(),value:this.props.selectedVariant.selectedSellingPlan.value?.mID??"",onChange:this.onChange.bind(this),disabled:this.state.disabled,className:"lc-dropdown",children:this.createSelectItems()})}componentDidMount(){wn(()=>{this.setState(()=>({disabled:this.props.triggerContext.triggerData.isBundle()?!this.props.item.selected.value:!1}))})}getTypoStyles(){let e={},t=this.mediaStyle.typo??new bn;return e.letterSpacing=t.letterSpacing,e.fontSize=t.fs+"px",e.lineHeight=t.lh,e.fontFamily="inherit",e.textAlign=t.alignment,e.fontWeight=t.fw,this.stylesConverter.getColourStyles(t.tc,"color",e),e.boxShadow="none",e}getComponentStyles(){let e={};return this.props.selectedVariant.sellingPlans?.length||(e.visibility="hidden"),w(w({},e),this.getTypoStyles())}createSelectItems(){let e=[],t=this.props.selectedVariant;if(!t.sellingPlans?.length)return[];this.props.triggerContext.triggerData.skipSubscribedItems?t.selectedSellingPlan.value||(t.sellingPlans[0].isSelected=!0,t.changeSellingPlan(t.sellingPlans[0])):e.push(W("option",{value:"",selected:!t.selectedSellingPlan,children:"One time purchase"}));for(let n of t.sellingPlans??[])e.push(W("option",{value:n.mID,selected:n.isSelected,children:n.name}));return e}onChange(e){let t=e.target.value;t?this.props.selectedVariant.selectedSellingPlan.value=this.props.selectedVariant.sellingPlans.find(n=>n.mID===t):this.props.selectedVariant.selectedSellingPlan.value=void 0}},gT=Pe(lf()),Ml=class extends mt{colorRegex=new RegExp('fill="#[a-zA-Z0-9]+"');constructor(){super(),fn.escape=gT.MustacheUtils.escapeHtml}render(){let e=this.getCompiledStyles(),t=this.getRating();return t||(e.display="none",t=""),W("div",{style:e,className:"lc-star-rating",dangerouslySetInnerHTML:{__html:t}})}getRating(){let e=this.props.element.fullStar,t=this.props.element.halfStart,n={size:this.props.element.iconSize,color:this.props.element.c.hex};e=fn.render(e,{svg:n}),t=fn.render(t,{svg:n});let r=this.props.review;if(!r?.rating)return"";let i="";if(this.props.element.showSingleStar)i=e;else{let o=5,s=`${r.rating}`.split(".");for(let a=0;a<+s[0];a++)i+=e,o--;s[1]&&(i+=t,o--);for(let a=0;a<o;a++)i+=e.replace(this.colorRegex,'fill="#f1f1f1')}return i}getComponentStyles(){return{display:"flex",alignItems:"center"}}},Ol=class extends mt{render(){return W("select",{style:this.getCompiledStyles(),value:this.props.item.selectedOrFirstVariant.value.mID,onChange:this.onChange.bind(this),disabled:this.state.disabled,className:"lc-dropdown",children:this.createSelectItems()})}componentDidMount(){wn(()=>{this.setState(()=>({disabled:this.props.triggerContext.triggerData.isBundle()?!this.props.item.selected.value:!1}))})}getTypoStyles(){let e={},t=this.mediaStyle.typo??new bn;return e.letterSpacing=t.letterSpacing,e.fontSize=t.fs+"px",e.lineHeight=t.lh,e.fontFamily="inherit",e.textAlign=t.alignment,e.fontWeight=t.fw,this.stylesConverter.getColourStyles(t.tc,"color",e),e.boxShadow="none",e}getComponentStyles(){let e={};return this.props.item.vars?.length===1&&this.props.item.vars[0].name==="Default Title"&&(e.visibility="hidden"),w(w({},e),this.getTypoStyles())}createSelectItems(){let e=[];for(let t of this.props.item.vars)e.push(W("option",{value:t.mID,disabled:!t.isAvailable,children:t.name}));return e}onChange(e){let t=e.target.value;this.props.item.selectedOrFirstVariant.value=this.props.item.vars.find(n=>n.mID===t)}},Xa=class extends mt{constructor(e,t){super(e,t),this.setState(()=>({decoration:"unset"}))}renderElement(e){if(!(e.hide||!this.matchWhenCondition(e.when))){if(e.t===4){let t=e;return W(Rl,{element:t,triggerContext:this.props.triggerContext,elements:t.elems,item:this.props.item,noLinks:this.props.noLinks})}if(e.t===6)return this.props.triggerContext.triggerData.isBundle()?W(Nl,{element:e,item:this.props.item,triggerContext:this.props.triggerContext}):void 0;if(e.t===13){let t=e,n=this.props.item,r=n.variantImage??n.imageURL,i=n.variantSecondaryImage??n.secondaryImageURL;t.lg=t.sm={src:r,name:n.name,secondarySrc:i};let o=W(Pi,{element:t,onClick:this.customOnClick.bind(this),triggerContext:this.props.triggerContext});return this.props.noLinks?o:W("a",{href:this.props.item.selectedOrFirstVariant.value.link,style:{display:"block"},children:o})}if(e.t===14)return this.renderProductTitle(e);if(e.t===15){let t=e;return this.props.triggerContext.triggerData.isCartEmbed()&&this.props.item.vars?.length===1&&this.props.item.vars[0].name==="Default Title"?void 0:W(Ol,{element:t,item:this.props.item,triggerContext:this.props.triggerContext})}return e.t===16?W(Al,{element:e,selectedVariant:this.props.item.selectedOrFirstVariant.value,item:this.props.item,triggerContext:this.props.triggerContext}):e.t===19?W(Ml,{element:e,triggerContext:this.props.triggerContext,review:this.props.item.reviews}):e.t===18||e.t===3?W(gs,{element:e,item:this.props.item,triggerContext:this.props.triggerContext}):W(mo,{elements:[e],element:this.props.element,triggerContext:this.props.triggerContext})}}render(){return this.props.elements.map(e=>this.renderElement(e))}getComponentStyles(){return{}}renderProductTitle(e){let t=W(tr,{element:e,onClick:this.customOnClick.bind(this),triggerContext:this.props.triggerContext});return this.props.noLinks?t:W("a",{href:this.props.item.selectedOrFirstVariant.value.link,style:{display:"block",textDecoration:this.state.decoration},onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),children:t})}customOnClick(e){this.sendTriggerClicked([this.props.item.toEmbed()],{from:e})}onMouseEnter(){this.setState(()=>({decoration:"underline"}))}onMouseLeave(){this.setState(()=>({decoration:"unset"}))}},yT=Pe(Mf()),ys=class extends mt{productElement;constructor(e,t){super(e,t),this.setState(()=>({decoration:"unset"}))}render(){let e=JSON.stringify(this.props.element),t=fn.render(e,this.getProductData());if(this.productElement=new fo(JSON.parse(t)),!(this.productElement.hide||!this.matchWhenCondition(this.productElement.when)))return W("div",{style:w({},this.getCompiledStyles()),class:"lc-single-product",children:W(Xa,{element:this.productElement,elements:this.productElement.elems,triggerContext:this.props.triggerContext,item:this.props.item,noLinks:this.productElement.noLinks})})}getComponentStyles(){return{flexShrink:0}}getProductData(){if(!this.props.item)return{};let e=this.props.item.selectedOrFirstVariant.value,t=e.price,n=this.props.item.name,r=this.props.item.category,i=de.formatCurrency(t.d,!0),o=this.props.item.variantImage??this.props.item.imageURL,s=this.props.item.meta,a=this.props.item.reviews?.rating,l=this.props.item.reviews?.totalReviews,c=t.cmp&&t.cmp>t.d,d=this.props.triggerContext.hasManipulatedProductQuantity()?this.props.triggerContext.getManipulatedQuantity(this.props.item.quantity):this.props.item.quantity,h={name:n,price:i,quantity:d,image_url:o,meta:s,category:r,rating:a,reviews:l},f=e.effectivePrice.value!==t.d;f&&(h.effective_price=de.formatCurrency(e.effectivePrice.value));let g=this.props.triggerContext.triggerData.discount.type===yT.DiscountType.BXGY;if(!f&&g&&(h.effective_price=de.formatCurrency(e.effectivePrice.value),h.price=""),c){h.compare_price=de.formatCurrency(t.cmp);let b=t.cmp-t.d;h.discount_percent=(b/t.cmp*100).toFixed(0),h.discount_price=de.formatCurrency(b)}let m={name:e.name,quantity:this.props.triggerContext.hasManipulatedProductQuantity()?this.props.triggerContext.getManipulatedQuantity(e.quantity):e.quantity};return{product:h,variant:m,svg:{color:()=>"{{svg.color}}",size:()=>"{{svg.size}}"}}}};function hp(){return new Promise(e=>{let t="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js";if(Array.from(document.scripts).some(r=>r.src.includes(t))){e();return}let n=document.createElement("script");n.src=t,n.onload=()=>{e()},document.body.appendChild(n)})}function mp(e,t){if(!e||!window.Swiper)return;let n=new window.Swiper(e,{loop:!0,slidesPerView:t.maxInRow,spaceBetween:t.gap+"px",pagination:{type:t.pagination.type,el:e.querySelector(".swiper-pagination"),clickable:!0,renderBullet:(r,i)=>`
46
+ `],encapsulation:2})}return e})(),Ai=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new Ne;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,t){this.overlayRef=e,this.config=t,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!vD(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(e,t){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(e),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},YB=new ve("DialogScrollStrategy",{providedIn:"root",factory:()=>{let e=P(Gv);return()=>e.scrollStrategies.block()}}),ml=new ve("DialogData"),KB=new ve("DefaultDialogConfig"),xD=(()=>{class e{_overlay=P(Gv);_injector=P(bt);_defaultOptions=P(KB,{optional:!0});_parentDialog=P(e,{optional:!0,skipSelf:!0});_overlayContainer=P(Nf);_idGenerator=P(Tf);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Ne;_afterOpenedAtThisLevel=new Ne;_ariaHiddenElements=new Map;_scrollStrategy=P(YB);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=_h(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(To(void 0)));constructor(){}open(n,r){let i=this._defaultOptions||new Sa;r=w(w({},i),r),r.id=r.id||this._idGenerator.getId("cdk-dialog-"),r.id&&this.getDialogById(r.id);let o=this._getOverlayConfig(r),s=this._overlay.create(o),a=new Ai(s,r),l=this._attachContainer(s,a,r);return a.containerInstance=l,this._attachDialogContent(n,a,l,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){zv(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){zv(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),zv(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new hl({positionStrategy:n.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,width:n.width,height:n.height,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}_attachContainer(n,r,i){let o=i.injector||i.viewContainerRef?.injector,s=[{provide:Sa,useValue:i},{provide:Ai,useValue:r},{provide:Ca,useValue:n}],a;i.container?typeof i.container=="function"?a=i.container:(a=i.container.type,s.push(...i.container.providers(i))):a=qB;let l=new va(a,i.viewContainerRef,bt.create({parent:o||this._injector,providers:s}));return n.attach(l).instance}_attachDialogContent(n,r,i,o){if(n instanceof Br){let s=this._createInjector(o,r,i,void 0),a={$implicit:o.data,dialogRef:r};o.templateContext&&(a=w(w({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new Ea(n,null,a,s))}else{let s=this._createInjector(o,r,i,this._injector),a=i.attachComponentPortal(new va(n,o.viewContainerRef,s));r.componentRef=a,r.componentInstance=a.instance}}_createInjector(n,r,i,o){let s=n.injector||n.viewContainerRef?.injector,a=[{provide:ml,useValue:n.data},{provide:Ai,useValue:r}];return n.providers&&(typeof n.providers=="function"?a.push(...n.providers(r,n,i)):a.push(...n.providers)),n.direction&&(!s||!s.get(pl,null,{optional:!0}))&&a.push({provide:pl,useValue:{value:n.direction,change:So()}}),bt.create({parent:s||o,providers:a})}_removeOpenDialog(n,r){let i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let n=this._overlayContainer.getContainerElement();if(n.parentElement){let r=n.parentElement.children;for(let i=r.length-1;i>-1;i--){let o=r[i];o!==n&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ie({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zv(e,t){let n=e.length;for(;n--;)t(e[n])}var En=class{static injectScriptURL(e,t){if(!e)return;let n=document.createElement("script");n.id=t??"",n.src=e,n.defer=!0,e.includes("localhost")&&(n.type="module"),document.head.appendChild(n)}static injectRawScript(e){if(!e)return;let t=document.createElement("script");t.id="cooee-app-script",t.innerHTML=e,document.head.appendChild(t)}static injectRawCSS(e,t=document.head){if(!e)return;let n=document.createElement("style");n.textContent=e,t.appendChild(n)}static injectStylesheet(e,t=document.head){if(!e)return;let n=document.createElement("link");n.rel="stylesheet",n.href=e,e==="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"&&(n.crossOrigin="anonymous",n.onload=r=>{let i=r.currentTarget?.sheet?.cssRules;if(i){for(let o of i)if(o.type==CSSRule.FONT_FACE_RULE){let s=e.split("/"),a=s.slice(0,s.length-1).join("/"),l=o.cssText;l=l.replace(/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g,`url("${a}/$4")`);let c=document.createElement("style");c.appendChild(document.createTextNode(l)),document.head.appendChild(c)}}}),t.appendChild(n)}},Yv=Pe(Yn());function ZB(e,t){if(e&1&&(X(0,"div",11),jt(1,"OPEN CART "),Q()),e&2){let n=re();Qi("animate-slide-up-enter",n.atcClicked)("hidden",!n.atcClicked)}}function XB(e,t){if(e&1&&(X(0,"div",11),jt(1,"ADD TO CART "),Q()),e&2){let n=re();Qi("animate-slide-up-exit",n.atcClicked)("hidden",n.atcClicked)}}var Ia=class af{items;clicked=new yt;performCTA=new yt;atcClicked=!1;clickAddToCart(t,n){t.stopPropagation(),this.performCTA.emit({item:n,cta:this.atcClicked?Yv.ClickActionType.OPEN_CART:Yv.ClickActionType.ADD_TO_CART}),this.atcClicked=!0}static \u0275fac=function(t){return new(t||af)};static \u0275cmp=St({type:af,selectors:[["cooee-product-card"]],inputs:{items:"items"},outputs:{clicked:"clicked",performCTA:"performCTA"},decls:15,vars:12,consts:[[1,"lc:absolute","lc:flex","lc:bottom-2","lc:gap-2","lc:w-full","lc:z-10"],[1,"lc:flex","lc:px-20","lc:w-full"],["id","lc-single-product","tabindex","{0}",1,"lc:flex","lc:flex-col","lc:gap-1","lc:bg-white/50","lc:rounded-lg","lc:p-2","lc:w-full","lc:cursor-pointer","lc:backdrop-blur-xs",3,"click","keydown"],[1,"lc:flex","lc:gap-2","lc:w-full","lc:p-1"],["id","lc-item-image",1,"lc:w-16","lc:h-16","lc:object-cover","lc:box-border","lc:rounded-lg",3,"alt","src"],[1,"lc:flex","lc:flex-col","lc:gap-1","lc:text-xs"],["id","lc-item-name",1,"lc:font-semibold","lc:line-clamp-2"],["id","lc-item-price"],["id","lc-cta-button","tabindex","{0}",1,"lc:py-2","lc:rounded","lc:w-full","lc:text-center","lc:font-normal","lc:cursor-pointer",3,"click","keydown"],[1,"lc:text-white","lc:text-lg","lc:font-bold",3,"animate-slide-up-enter","hidden"],[1,"lc:text-white","lc:text-lg","lc:font-bold",3,"animate-slide-up-exit","hidden"],[1,"lc:text-white","lc:text-lg","lc:font-bold"]],template:function(t,n){if(t&1){let r=_n();X(0,"div",0)(1,"div",1),Hr(2),X(3,"div",2),at("click",function(){Je(r);let i=Hn(2);return Qe(n.clicked.emit(i))})("keydown",function(){Je(r);let i=Hn(2);return Qe(n.clicked.emit(i))}),X(4,"div",3),qe(5,"img",4),X(6,"div",5)(7,"span",6),jt(8),Q(),X(9,"span",7),jt(10),ar(11,"cooeeCurrency"),Q()()(),X(12,"div",8),at("click",function(i){Je(r);let o=Hn(2);return Qe(n.clickAddToCart(i,o))})("keydown",function(i){Je(r);let o=Hn(2);return Qe(n.clickAddToCart(i,o))}),At(13,ZB,2,4,"div",9)(14,XB,2,4,"div",10),Q()()()()}if(t&2){Z(2);let r=Uo(n.items==null?null:n.items[0]);Z(3),jn("alt",r.name),Ue("src",r.imageURL,cn),Z(3),Ir(" ",r.name," "),Z(2),Ir(" ",Dr(11,10,r.price)," "),Z(2),Qi("lc:bg-pink-500",!n.atcClicked)("lc:bg-black",n.atcClicked),Z(),Ut(n.atcClicked?13:14)}},dependencies:[Xr],styles:["@keyframes _ngcontent-%COMP%_slideUpExit{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}@keyframes _ngcontent-%COMP%_slideUpEnter{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}[_nghost-%COMP%] .animate-slide-up-exit[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideUpExit .3s ease-out forwards}[_nghost-%COMP%] .animate-slide-up-enter[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideUpEnter .3s ease-out forwards}"]})},ht=class{static COOEE_URL_PREFIX="?from=cooee";static isShopify(){return!!window.Shopify}static getShopName(){if(this.isShopify())return window.Shopify.shop?.split(".")?.[0]}static getPageName(){if(!this.isShopify())return;let e=new URL(window.location.href).pathname.slice(1).split("/"),t=e[0];if(t==="")return"home";if(t==="collections")return e[2]==="products"?"product":"collection";if(t==="products")return"product";if(t==="cart")return"cart";if(location.href.includes("thank_you"))return"thank_you"}static getProductSlug(e){let t=(e.includes("://")?new URL(e).pathname:e).match(/\/products\/([^/]+?)(?:\.html)?$/);return t?t[1]:null}static getRootPrefix(){return window.Shopify?.routes?.root??"/"}static getCartURL(e){return this.getRootPrefix()+e+this.COOEE_URL_PREFIX}},ND=Pe(Xv()),JB=(0,ND.default)(fetch),Rf=class{static async getAjaxItem(e){let t=this.getItemSlug(e);if(!t)return;let n,r=ht.getRootPrefix()+`products/${t}.js`;try{n=await(await JB(r)).json()}catch(i){S.error(`Failed to fetch ${r}`,i);let o=_t.getInstance();i instanceof Response?o.captureMessage(`Shopify product fetch failed ${i.status}`,"error",{mID:e.mID,path:r}):o.captureException(i,{mID:e.mID,path:r});return}if(!n){S.error("Item not found after AJAX call for:",e.mID);return}return n}static getItemSlug(e){if(e.link)try{let t=new URL(e.link).pathname.match(/\/products\/([^/]+?)(?:\.html)?$/);return t?t[1]:void 0}catch{return}}},Af=Pe(Yn()),QB=(e,t)=>t.id;function e2(e,t){if(e&1&&qe(0,"img",10),e&2){let n=t.$implicit,r=re(2);Ue("src",n,cn)("alt",r.item.name)}}function t2(e,t){if(e&1&&Kt(0,e2,1,2,"img",10,Ci),e&2){let n=re();Zt(n.ajaxItem.images)}}function n2(e,t){if(e&1&&qe(0,"img",10),e&2){let n=re();Ue("src",n.item.imageURL,cn)("alt",n.item.name)}}function r2(e,t){if(e&1){let n=_n();X(0,"div",20),at("click",function(){let r=Je(n).$implicit,i=re();return Qe(i.selectedVariant=r)})("keydown",function(){let r=Je(n).$implicit,i=re();return Qe(i.selectedVariant=r)}),X(1,"span",21),jt(2),Q()()}if(e&2){let n=t.$implicit,r=re();Qi("lc:bg-pink-100",(r.selectedVariant==null?null:r.selectedVariant.id)===n.id)("lc:border-pink-300",(r.selectedVariant==null?null:r.selectedVariant.id)===n.id)("lc:text-pink-700",(r.selectedVariant==null?null:r.selectedVariant.id)===n.id),Z(2),Ks(n.title)}}function i2(e,t){if(e&1&&(X(0,"div",16)(1,"h4",22),jt(2,"Description"),Q(),qe(3,"div",23),ar(4,"safeHtml"),Q()),e&2){let n=re();Z(3),Ue("innerHTML",Dr(4,1,n.ajaxItem==null?null:n.ajaxItem.description),jc)}}function o2(e,t){e&1&&jt(0," OPEN CART ")}function s2(e,t){e&1&&jt(0," ADD TO CART ")}var Da=class cf{item;closeModel=new yt;performCTA=new yt;atcClicked=!1;selectedVariant=null;availableVariants=[];ajaxItem;ClickActionType=Af.ClickActionType;async ngOnInit(){this.ajaxItem=await Rf.getAjaxItem(this.item),this.processVariants()}closeDialog(){this.closeModel.emit()}clickAddToCart(t){t.vID=this.selectedVariant?.id,t.vName=this.selectedVariant?.public_title,this.performCTA.emit({item:t,cta:this.atcClicked?Af.ClickActionType.OPEN_CART:Af.ClickActionType.ADD_TO_CART}),this.atcClicked=!0}processVariants(){this.availableVariants=this.ajaxItem?.variants.filter(t=>t.available)??[],this.selectedVariant=this.availableVariants[0]}static \u0275fac=function(t){return new(t||cf)};static \u0275cmp=St({type:cf,selectors:[["cooee-product-modal"]],inputs:{item:"item"},outputs:{closeModel:"closeModel",performCTA:"performCTA"},decls:29,vars:7,consts:[[1,"lc:bg-white","lc:flex","lc:flex-col","lc:h-full","lc:w-full"],[1,"lc:flex","lc:items-center","lc:justify-between","lc:px-4","lc:py-3","lc:border-b"],[1,"lc:text-xl","lc:font-bold"],[1,"lc:bg-transparent","lc:text-black/50","lc:border-0","lc:cursor-pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000"],["d","M0 0h24v24H0V0z","fill","none"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"],[1,"lc:flex-1","lc:overflow-y-auto","lc:p-4"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:gap-4"],[1,"lc:w-full","lc:flex","lc:overflow-x-auto","lc:gap-2","lc:flex-nowrap"],[1,"lc:w-28","lc:h-28","lc:object-contain",3,"src","alt"],[1,"lc:flex","lc:flex-col","lc:gap-2","lc:mt-4","lc:w-full"],[1,"lc:text-lg","lc:font-bold","lc:m-0"],[1,"lc:text-pink-600","lc:font-bold","lc:text-lg"],[1,"lc:flex","lc:flex-wrap","lc:gap-2","lc:pt-2","lc:w-full"],["tabindex","{0}",1,"lc:px-3","lc:py-2","lc:rounded-lg","lc:bg-gray-100","lc:text-gray-800","lc:text-sm","lc:cursor-pointer","lc:border","lc:border-gray-200","lc:flex","lc:items-center","lc:gap-1",3,"lc:bg-pink-100","lc:border-pink-300","lc:text-pink-700"],[1,"lc:mt-4","lc:border-t","lc:pt-4","lc:w-full"],[1,"lc:flex","lc:justify-center","lc:items-center","lc:px-4","lc:py-4","lc:bg-black/30","lc:rounded-lg","lc:gap-4","lc:rounded-b-none","lc:shadow-zinc-400"],["tabindex","{0}",1,"lc:bg-black","lc:text-white","lc:px-4","lc:py-2","lc:rounded-lg","lc:font-semibold","lc:w-1/2","lc:flex","lc:justify-center","lc:cursor-pointer",3,"click","keydown"],["tabindex","{0}",1,"lc:bg-pink-100","lc:text-pink-600","lc:px-4","lc:py-2","lc:rounded-lg","lc:font-semibold","lc:w-1/2","lc:flex","lc:justify-center","lc:cursor-pointer",3,"click","keydown"],["tabindex","{0}",1,"lc:px-3","lc:py-2","lc:rounded-lg","lc:bg-gray-100","lc:text-gray-800","lc:text-sm","lc:cursor-pointer","lc:border","lc:border-gray-200","lc:flex","lc:items-center","lc:gap-1",3,"click","keydown"],[1,"lc:truncate","lc:max-w-[200px]"],[1,"lc:font-semibold","lc:m-0"],[3,"innerHTML"]],template:function(t,n){t&1&&(X(0,"div",0)(1,"div",1)(2,"h2",2),jt(3,"Shop Now"),Q(),X(4,"button",3),at("click",function(){return n.closeDialog()}),Sr(),X(5,"svg",4),qe(6,"path",5)(7,"path",6),Q()()(),$s(),X(8,"div",7)(9,"div",8)(10,"div",9),At(11,t2,2,0)(12,n2,1,2,"img",10),Q(),X(13,"div",11)(14,"h3",12),jt(15),Q(),X(16,"span",13),jt(17),ar(18,"cooeeCurrency"),Q()(),X(19,"div",14),Kt(20,r2,3,7,"div",15,QB),Q(),At(22,i2,5,3,"div",16),Q()(),X(23,"div",17)(24,"div",18),at("click",function(){return n.clickAddToCart(n.item)})("keydown",function(){return n.clickAddToCart(n.item)}),At(25,o2,1,0)(26,s2,1,0),Q(),X(27,"div",19),at("click",function(){return n.performCTA.emit({item:n.item,cta:n.ClickActionType.GO_TO_PRODUCT})})("keydown",function(){return n.performCTA.emit({item:n.item,cta:n.ClickActionType.GO_TO_PRODUCT})}),jt(28," MORE INFO "),Q()()()),t&2&&(Z(11),Ut(!(n.ajaxItem==null||n.ajaxItem.images==null)&&n.ajaxItem.images.length?11:12),Z(4),Ks(n.item.name),Z(2),Ir(" ",Dr(18,5,(n.selectedVariant==null?null:n.selectedVariant.price)/100)," "),Z(3),Zt(n.availableVariants),Z(2),Ut(n.ajaxItem!=null&&n.ajaxItem.description?22:-1),Z(3),Ut(n.atcClicked?25:26))},dependencies:[pa,Xr],styles:["[_nghost-%COMP%]{display:block;background:#fff;height:70vh;border-top-left-radius:16px;border-top-right-radius:16px;overflow:hidden}"]})};function a2(e,t){e&1&&(Sr(),X(0,"svg",1),qe(1,"path",2)(2,"path",3),Q())}function c2(e,t){e&1&&(Sr(),X(0,"svg",1),qe(1,"path",2)(2,"path",4),Q())}var Ta=class Of{muted;buttonClicked=new yt;static \u0275fac=function(t){return new(t||Of)};static \u0275cmp=St({type:Of,selectors:[["cooee-mute-toggle"]],inputs:{muted:"muted"},outputs:{buttonClicked:"buttonClicked"},decls:3,vars:1,consts:[["id","lc-mute-button",1,"lc:bg-black/50","lc:rounded-full","lc:w-12","lc:h-12","lc:flex","lc:items-center","lc:justify-center","lc:border-none","lc:cursor-pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M4.34 2.93L2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06c1.34-.3 2.57-.92 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM10 15.17L7.83 13H5v-2h2.83l.88-.88L10 11.41v3.76zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8l-1.88 1.88L12 7.76zm4.5 8c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"],["d","M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"]],template:function(t,n){t&1&&(X(0,"button",0),at("click",function(){return n.buttonClicked.emit()}),At(1,a2,3,0,":svg:svg",1)(2,c2,3,0,":svg:svg",1),Q()),t&2&&(Z(),Ut(n.muted?1:2))},encapsulation:2})},xa=class Pf{width;static \u0275fac=function(t){return new(t||Pf)};static \u0275cmp=St({type:Pf,selectors:[["cooee-video-progress-bar"]],inputs:{width:"width"},decls:4,vars:2,consts:[[1,"lc:absolute","lc:top-1","lc:w-full","lc:z-10"],[1,"lc:px-2"],[1,"lc:h-1","lc:w-full","lc:bg-gray-700","lc:mb-2"],[1,"lc:h-1","lc:bg-pink-500"]],template:function(t,n){t&1&&(X(0,"div",0)(1,"div",1)(2,"div",2),qe(3,"div",3),Q()()()),t&2&&(Z(3),Ji("width",n.width,"%"))},encapsulation:2})},vo=Pe(Yn()),RT=Pe(Mf()),AT=Pe($o()),l2=" daum[ /]| deusu/| yadirectfetcher|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<![hg]m)score|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\btime/|\\||^<|^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[^ ]{50,}$|^\\d+\\b|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^active|^ad muncher|^amaya|^avsdevicesdk/|^biglotron|^bot|^bw/|^clamav[ /]|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\(compatible;?(?:\\s\\w+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|^{{.*}}$|adscanner/|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|cookiehubscan|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|evc-batch/|exaleadcloudview|feed|firephp|functionize|gomezagent|headless|httrack|hubspot marketing grader|hydra|ibisbrowser|infrawatch|insight|inspect|iplabel|ips-agent|java(?!;)|jsjcw_scanner|library|linkcheck|mail\\.ru/|manager|measure|neustar wpm|node|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|perl|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scanner\\.|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|zgrab",u2=/bot|crawl|http|lighthouse|scan|search|spider/i,gl;function d2(){if(gl instanceof RegExp)return gl;try{gl=new RegExp(l2,"i")}catch{gl=u2}return gl}function MD(e){return!!e&&d2().test(e)}var OD=Pe(Jv()),yl=class{static UTM_PARAMS=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_id"];static TW_PARAMS={utm_source:"tw_source",utm_campaign:"tw_campaign"};static getReferrer(){if(document.referrer)return document.referrer.replace(location.origin,"")}static getUTMParams(){let e;try{e=new OD.URLBuilder(location.href)}catch{return{}}let t={};this.UTM_PARAMS.forEach(r=>{let i=e.getQueryParam(r);i&&(t[r]=i)});let n={};return Object.keys(this.TW_PARAMS).forEach(r=>{let i=e.getQueryParam(this.TW_PARAMS[r]);i&&(n[r]=i)}),w(w({},n),t)}},ei=class U0{origin;path;qs;name;referrer;utmSource;utmMedium;utmCampaign;utmId;utmTerm;utmContent;constructor(t){this.name=t.name,this.path=t.path,this.qs=t.qs,this.referrer=t.referrer,this.utmSource=t.utmSource||t.utm_source,this.utmMedium=t.utmMedium||t.utm_medium,this.utmCampaign=t.utmCampaign||t.utm_campaign,this.utmId=t.utmId||t.utm_id,this.utmTerm=t.utmTerm||t.utm_term,this.utmContent=t.utmContent||t.utm_content}static parseFromCurrent(){let t=location.pathname==="/"?location.pathname:location.pathname.replace(/\/+$/,"");return new U0(w({origin:location.origin,path:t,qs:location.search,referrer:yl.getReferrer(),name:Ae.get().pageName},yl.getUTMParams()))}},ke=class{static storage=new Map;static get(e){return this.storage.has(e)||this.storage.set(e,e.getInstance()),this.storage.get(e)}},Qv={d:(e,t)=>{for(var n in t)Qv.o(t,n)&&!Qv.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},e_={};Qv.d(e_,{A:()=>m2,k:()=>t_});var p2=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(c){try{l(r.next(c))}catch(d){o(d)}}function a(c){try{l(r.throw(c))}catch(d){o(d)}}function l(c){var d;c.done?i(c.value):(d=c.value,d instanceof n?d:new n(function(h){h(d)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},h2=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&d[0]?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[2&d[0],i.value]),d[0]){case 0:case 1:i=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,r=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){s.label=d[1];break}if(d[0]===6&&s.label<i[1]){s.label=i[1],i=d;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(d);break}i[2]&&s.ops.pop(),s.trys.pop();continue}d=t.call(e,s)}catch(h){d=[6,h],r=0}finally{n=i=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([l,c])}}};function t_(){return p2(this,void 0,Promise,function(){return h2(this,function(_a){switch(_a.label){case 0:return[4,new Promise(function(resolve,reject){var browserName="Unknown";function __callback(e){resolve({isPrivate:e,browserName})}function identifyChromium(){var e=navigator.userAgent;return e.match(/Chrome/)?navigator.brave!==void 0?"Brave":e.match(/Edg/)?"Edge":e.match(/OPR/)?"Opera":"Chrome":"Chromium"}function assertEvalToString(e){return e===eval.toString().length}function feid(){var toFixedEngineID=0;try{eval("(-1).toFixed(-1);")}catch(e){toFixedEngineID=e.message.length}return toFixedEngineID}function isSafari(){return feid()===44}function isChrome(){return feid()===51}function isFirefox(){return feid()===25}function isMSIE(){return navigator.msSaveBlob!==void 0&&assertEvalToString(39)}function newSafariTest(){var e=String(Math.random());try{window.indexedDB.open(e,1).onupgradeneeded=function(t){var n,r,i=(n=t.target)===null||n===void 0?void 0:n.result;try{i.createObjectStore("test",{autoIncrement:!0}).put(new Blob),__callback(!1)}catch(s){var o=s;return s instanceof Error&&(o=(r=s.message)!==null&&r!==void 0?r:s),typeof o!="string"?void __callback(!1):void __callback(o.includes("BlobURLs are not yet supported"))}finally{i.close(),window.indexedDB.deleteDatabase(e)}}}catch{__callback(!1)}}function oldSafariTest(){var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch{return void __callback(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch{return void __callback(!0)}__callback(!1)}function safariPrivateTest(){navigator.maxTouchPoints!==void 0?newSafariTest():oldSafariTest()}function getQuotaLimit(){var e=window;return e.performance!==void 0&&e.performance.memory!==void 0&&e.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824}function storageQuotaChromePrivateTest(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(e,t){__callback(Math.round(t/1048576)<2*Math.round(getQuotaLimit()/1048576))},function(e){reject(new Error("detectIncognito somehow failed to query storage quota: "+e.message))})}function oldChromePrivateTest(){(0,window.webkitRequestFileSystem)(0,1,function(){__callback(!1)},function(){__callback(!0)})}function chromePrivateTest(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?storageQuotaChromePrivateTest():oldChromePrivateTest()}function firefoxPrivateTest(){__callback(navigator.serviceWorker===void 0)}function msiePrivateTest(){__callback(window.indexedDB===void 0)}function main(){isSafari()?(browserName="Safari",safariPrivateTest()):isChrome()?(browserName=identifyChromium(),chromePrivateTest()):isFirefox()?(browserName="Firefox",firefoxPrivateTest()):isMSIE()?(browserName="Internet Explorer",msiePrivateTest()):reject(new Error("detectIncognito cannot determine the browser"))}main()})];case 1:return[2,_a.sent()]}})})}typeof window<"u"&&(window.detectIncognito=t_);var m2=t_,PD=e_.A,wZ=e_.k,DT=Pe($o()),kD=Pe(n_()),Zn=class Bi{static DOCUMENT_STANDARD_MODE="CSS1Compat";static _instance;parentContainer;scalingFactor=1;doc=document;parser=new kD.default;constructor(){}static get(){return Bi._instance||(Bi._instance=new Bi),Bi._instance}getUAParser(){return this.parser}getWidth(){return this.parentContainer&&this.parentContainer!==document.body?this.parentContainer.clientWidth:document.compatMode===Bi.DOCUMENT_STANDARD_MODE?document.documentElement.clientWidth:window.innerWidth}getHeight(){return this.isParentNotBody()?this.parentContainer.clientHeight:document.compatMode===Bi.DOCUMENT_STANDARD_MODE?document.documentElement.clientHeight:window.innerHeight}isMobile(){return this.parser.getDevice().type==="mobile"}calculateScalingFactor(t){let n=t.max,r=t.cont.w,i=t.cont.h,o=t.spc,s=Bi.get().getWidth(),a=Bi.get().getHeight();n&&(s=s?Math.min(s,n):n,a=a?Math.min(a,n):n),a&&(s-=o.getHorizontal(),a-=o.getVertical(),s/a<r/i?this.scalingFactor=s/r:this.scalingFactor=a/i,this.scalingFactor=Math.min(this.scalingFactor,1))}getScalingFactor(){return this.scalingFactor}createElement(t){return this.doc.createElement(t)}appendChild(t,n){t.appendChild(n)}setStyles(t,n){Object.assign(t.style,n)}setStyle(t,n,r){if(n){if(!r){t.style.removeProperty(n);return}t.style.setProperty(n,r,"important")}}setAttribute(t,n,r){t.setAttribute(n,r)}removeInApp(t){let n=document.querySelector(`.${t.rootClassName}`);n&&n.parentElement.removeChild(n)}setParentContainer(t){this.parentContainer=t,this.parentContainer&&this.isParentNotBody()&&this.setStyle(this.parentContainer,"position","relative")}isParentNotBody(){return this.parentContainer!==document.body}},kf=class{parser;result={};constructor(){this.parser=Zn.get().getUAParser()}async get(){let e=this.result;return this.getDeviceMemory(),this.getNetworkType(),this.getOrientation(),await this.getBatteryInfo(),await this.getLocation(),e.locale=navigator.language,e.display={w:screen.width,h:screen.height,pd:screen.pixelDepth,dpi:this.getDPI()},e.win={ow:window.outerWidth,oh:window.outerHeight,iw:window.innerWidth,ih:window.innerHeight,dpr:window.devicePixelRatio},e.browser={name:this.parser.getBrowser().name,ver:this.parser.getBrowser().version},e.device={model:this.parser.getDevice().model,type:this.parser.getDevice().type,vendor:this.parser.getDevice().vendor},e.os={name:this.parser.getOS().name,ver:this.parser.getOS().version},e.navigatorUA=navigator.userAgent,e.isHeadless=navigator.webdriver,e}getDeviceMemory(){let e=navigator;if(!e.deviceMemory)return;let t=e.deviceMemory;this.result.mem={tot:t*1024}}getNetworkType(){let e=navigator,t=e.connection||e.mozConnection||e.webkitConnection;t?.effectiveType&&(this.result.net={type:t.effectiveType})}getOrientation(){let e=screen.orientation?.type;e&&(this.result.orientation=e)}getDPI(){let e=document.createElement("div");e.setAttribute("style","height: 1in; left: -100%; position: absolute; top: -100%; width: 1in;"),document.body.appendChild(e);let t=window.devicePixelRatio||1,n=e.offsetWidth*t;return document.body.removeChild(e),n}async getLocation(){if(!(!navigator.geolocation||!navigator.permissions||(await navigator.permissions.query({name:"geolocation"})).state!="granted"))return new Promise(e=>{navigator.geolocation.getCurrentPosition(t=>{this.result.coords=[t.coords.latitude,t.coords.longitude],e()},()=>e())})}async getBatteryInfo(){if("getBattery"in navigator)try{let e=await navigator.getBattery();this.result.bat={l:e.level*100,c:e.charging}}catch{}}},Ra=class{isLocked=!1;queue=[];async acquire(){if(this.isLocked)await new Promise(e=>this.queue.push(e));else{this.isLocked=!0;return}}release(){if(this.queue.length>0){let e=this.queue.shift();e&&e()}else this.isLocked=!1}},je=class F0{static CURRENT;token;items;total_price;original_total_price;currency;item_count;attributes;lock=new Ra;constructor(){}static getCurrent(){return this.CURRENT||(this.CURRENT=new F0),this.CURRENT}async getNormalisedCart(t){await this.fetchCartFromShopify(t);let n=this.convertToCooeeCart();return t&&await vt.set(Ce.CURRENT_CART,n),n}async addCooeeAttributes(){await this.lock.acquire();let t=await un.get(Ce.ID),n=await vt.get(Ce.DEVICE_ID);if(this.attributes?.letscooee_did===n&&this.attributes?.letscooee_sid===t){S.debug("Not calling Shopify update.js API.","Current attributes:",this.attributes),this.lock.release();return}let r={letscooee_did:n,letscooee_sid:t,__letscooee_time:new Date().toLocaleString()};S.debug("Updating Shopify cart with attributes:",r);let i=ht.getCartURL("cart/update.js"),o=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:r})})).json();S.debug("Updated cart attributes",JSON.stringify(o)),this.update(o),this.lock.release()}update(t){return this.token=t.token,this.items=t.items,this.total_price=t.total_price,this.original_total_price=t.original_total_price,this.currency=t.currency,this.item_count=t.item_count,this.attributes=t.attributes,Ae.get().currencyCode=this.currency,S.log("Updated ShopifyCart",this),this}toString(){return`ShopifyCart(token: ${this.token}, itemCount: ${this.item_count})`}convertToCooeeCart(){return{amount:this.total_price/100,originalAmount:this.original_total_price/100,currency:this.currency,itemCount:this.item_count,items:this.normaliseItems(this.items),token:this.token}}normaliseItems(t){if(!t)return S.error("No item received to be sent"),[];Array.isArray(t)||(t=[t]);let n=[];for(let r of t){if(!r.id||!r.title){S.warn("Invalid item received",r);continue}let i={name:r.title,quantity:+r.quantity||1,mID:r.product_id?.toString(),vID:r.id.toString(),price:+r.price/100||0,properties:r.properties},o=r.selling_plan_allocation?.selling_plan;if(!o){n.push(i);continue}i.sellingPlanAllocation={sellingPlan:{fixedSellingPlan:o.fixed_selling_plan,id:o.id,name:o.name,recurringDeliveries:o.recurring_deliveries}},n.push(i)}return n}async fetchCartFromShopify(t){if(!t&&this.token){S.debug("Not fetching cart");return}S.debug("Fetching cart");let n=ht.getCartURL("cart.js"),r=await(await fetch(n)).json();this.update(r)}},ss=(e=>(e[e.LOW=1]="LOW",e[e.MEDIUM=2]="MEDIUM",e[e.HIGH=3]="HIGH",e))(ss||{}),Aa=class{static trackDeviceID(e){this.isInstalled()}static trackIntent(e){if(!this.isInstalled())return;let t=ss[e]?.toLowerCase();t&&(S.debug(`Sending ${t} intent to MS Clarity`),window.clarity("set","Cooee Intent",t))}static isInstalled(){return window.clarity&&typeof window.clarity=="function"}},hr=class{static isOn=!1;static element;static watch(){let e=S.getDebugParam();(e==="1"||e==="on")&&Le.getInstance().updateDeviceProps({debugTill:this.getDebugMillis()}),e==="on"?sessionStorage.cooeeDebug="1":e==="off"&&sessionStorage.removeItem("cooeeDebug"),sessionStorage.cooeeDebug&&(this.isOn=!0,this.renderDebugBar())}static prepend(e){if(!this.isOn)return;let t=document.createElement("div");t.innerHTML="&#x2022; "+new Date().toLocaleString()+" - "+e,this.element.prepend(t)}static renderDebugBar(){this.element=document.createElement("div"),this.element.id="cooee-debugger",this.element.setAttribute("draggable","true"),document.body.appendChild(this.element)}static dragElement(){let e=0,t=0,n=0,r=0,i=a=>{a=a||window.event,a.preventDefault(),n=a.clientX,r=a.clientY,document.onmouseup=s,document.onmousemove=o},o=a=>{a=a||window.event,a.preventDefault(),e=n-a.clientX,t=r-a.clientY,n=a.clientX,r=a.clientY,this.element.style.top=this.element.offsetTop-t+"px",this.element.style.left=this.element.offsetLeft-e+"px"},s=()=>{document.onmouseup=null,document.onmousemove=null};this.element.onmousedown=i}static getDebugMillis(){return new Date().getTime()+6*60*60*1e3}},_l=class extends ro{static storeName="app";static{this.storage=ta(this.storeName)}},Lf=Pe($o()),ti=class j0{static INSTANCE=new j0;topics={};constructor(){}static get(){return this.INSTANCE}broadcast(t,n){this.topics[t]||(this.topics[t]=new Ne),this.topics[t].next(n)}subscriber(t){return this.topics[t]||(this.topics[t]=new Ne),this.topics[t].asObservable()}},Wt=class ci{static DEFAULT_SELECTOR="cart-drawer";static _instance;inShadow=!1;cartDrawerElement;cartDrawerShadowElement;configWebsite=Dt.get().website??{};currentState=!1;drawerSubject=new ui({open:!1,firstOpen:!1});mutationObserver;firstOpen=!0;selector;shadowParentElementSelector;iconSelector=['button[drawer-to-open="cart-drawer"]','a[href="/cart"]',".header__icon--cart","#cart-icon-bubble",".cart-icon-bubble",".cart-count",'a[onclick*="handleFloCartBtn"]'].join(",");cartSelector=[ci.DEFAULT_SELECTOR,"#halo-cart-sidebar",'[role="dialog"][class*="cart" i]','[id*="section-cart" i]',"#sidebar-cart","#rebuy-cart","#mini-cart","#flo-cart-wrapper","#drawer-cart","#UpcartPopupBackDrop",'[id$="CartDrawer" i]'].join(",");constructor(){this.initialize(),document.addEventListener(k.CTA_AFTER_REFRESH_UI,this.updateBubble.bind(this))}get element(){return this.cartDrawerElement}static get(){return ci._instance||(ci._instance=new ci),ci._instance}static forceUpdate(){ci._instance=new ci}isOpen(){let t=this.inShadow?this.isPresent():this.isVisible();return Lf.default.log(`Cart drawer is currently ${t?"open":"close"}`),t}open(){if(this.isOpen()){S.log("Drawer is already open");return}document.dispatchEvent(new CustomEvent(k.CTA_OPEN_CART_EVENT));let t=document.querySelector(this.iconSelector);if(!t){S.debug("No clickable cart icon found with selector",this.iconSelector);return}t.click()}onToggle(){return this.drawerSubject}isShopifyDefaultDrawer(){return this.element?.tagName.toLowerCase()===ci.DEFAULT_SELECTOR}isMiniCart(){return this.isShopifyDefaultDrawer()&&this.element?.id==="mini-cart"}refreshUI(t,n=!0){if(this.isMiniCart()&&this.element?._rerenderCart)this.element._rerenderCart({detail:{cart:t}});else if(this.isShopifyDefaultDrawer())this.element?.renderContents&&t&&(this.element.classList.remove("is-empty"),this.element.renderContents?.(t));else if(this.element?.onCartDrawerUpdate)this.element.onCartDrawerUpdate();else if(window.cartGiftUpdate){if(!t?.items?.[0])return;let r=t.items[0].id,i=t.items[0].quantity,o=t.items[0].price;window.cartGiftUpdate(r,o,i,"","ADD_TO_CART")}else if(window.icartCartActivityEvent)window.icartCartActivityEvent();else if(window.theme?.CartDrawer)window.theme?.CartDrawer.init?new window.theme.CartDrawer().init():new window.theme.CartDrawer;else if(window.Hs_CartDrawer?.updateSlideCart)window.Hs_CartDrawer.updateSlideCart();else if(window.theme?.fetch_side_cart)window.theme.fetch_side_cart();else if(window.theme?.Cart?.updateCart)window.theme.Cart.updateCart();else if(window.cartUpdate)window.cartUpdate();else if(this.element?._onCartRefresh)this.element._onCartRefresh();else if(window.cart?.getCart)window.cart.getCart();else if(this.element?.tagName?.toLowerCase()==="cart-drawer-component")document.dispatchEvent(new CustomEvent("action:cart:updateCartandShowCart"));else if(this.element?.id==="sidebar-cart")document.body.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0,detail:{}}));else if(this.element?.id==="quick-cart"){let r=document.querySelector('a[href="/cart"]');r&&r.click()}else window.Shopify?.KT_onItemAdded?window.Shopify.KT_onItemAdded():S.info("No method found to update the cart without refreshing");document.dispatchEvent(new CustomEvent(k.CTA_AFTER_REFRESH_UI)),n&&ti.get().broadcast(k.CART_UPDATE_BROADCAST)}async initialize(){let t=this.configWebsite.cartDrawerSelector;if(!t){await this.findCartDrawer();return}let n=t.split(k.SHADOW_SPLITTER);n.length===1?(this.selector=n[0],await this.findCartDrawer()):(this.inShadow=!0,this.shadowParentElementSelector=n[0]?.trim(),this.selector=n[1]?.trim(),await this.findCartDrawerWithShadow())}async findCartDrawer(){if(!ht.isShopify())return;let t=this.selector||this.cartSelector;if(this.cartDrawerElement=await de.retrySelector(t),!this.cartDrawerElement){Lf.default.warn("Max attempts exhausted to find cart drawer");return}Lf.default.log("Found",this.cartDrawerElement,`from selector: ${t}`),this.createMutationObservers()}async findCartDrawerWithShadow(){if(!ht.isShopify()||!this.shadowParentElementSelector)return;let t=(await de.retrySelector(this.shadowParentElementSelector))?.shadowRoot;t?.mode==="open"&&(this.cartDrawerShadowElement=t,this.createMutationObservers())}isVisible(){if(!this.cartDrawerElement)return!1;let t=this.cartDrawerElement.getBoundingClientRect(),n=(window.innerHeight||document.documentElement.clientHeight)+.5,r=(window.innerWidth||document.documentElement.clientWidth)+.5,i=t.top<=n&&t.bottom>=0,o=t.left<=r&&t.right>=0,s=i&&o,a=this.cartDrawerElement.tagName.toLowerCase()===ci.DEFAULT_SELECTOR&&this.cartDrawerElement.open,l=getComputedStyle(this.cartDrawerElement),c=l.display!=="none"&&l.visibility!=="hidden"&&parseFloat(l.opacity)>0,d=!this.cartDrawerElement.hidden,h=this.cartDrawerElement.offsetWidth>0||this.cartDrawerElement.offsetHeight>0||this.cartDrawerElement.getClientRects().length>0,f=l.transform.match(/matrix\(([^)]+)\)/),g=0,m=0;if(f){let q=f[1].split(", ").map(parseFloat);g=q[4],m=q[5]}let b=g+t.left>r||g+t.right<0||m+t.top>n||m+t.bottom<0,I=Math.max(0,Math.min(t.right,r)-Math.max(t.left,0)),R=Math.max(0,Math.min(t.bottom,n)-Math.max(t.top,0)),j=I*R,U=t.width*t.height,M=U>0&&j/U>=.1;return(s||a||!b)&&c&&d&&h&&M}createMutationObservers(){!this.cartDrawerElement&&!this.cartDrawerShadowElement||(de.onNodesRemoved(this.cartDrawerElement,()=>{this.initialize()}),this.watchForCartToggle())}watchForCartToggle(){let t=this.cartDrawerElement||this.cartDrawerShadowElement,n=new Ne;this.mutationObserver?.disconnect(),this.mutationObserver=new MutationObserver(()=>{n.next()}),this.mutationObserver.observe(t,{attributes:!0,subtree:!0,childList:this.inShadow}),n.pipe(vr(500)).subscribe(()=>{let r=this.isOpen();this.currentState!==r&&(this.currentState=r,this.drawerSubject.next({open:r,firstOpen:this.firstOpen}),this.firstOpen&&(this.firstOpen=!1))})}isPresent(){return!this.selector||!this.cartDrawerShadowElement?!1:!!this.cartDrawerShadowElement.querySelector(this.selector)}async updateBubble(){let t=(await je.getCurrent().getNormalisedCart(!0)).itemCount,n=document.querySelector(".cart-link__bubble");n&&(n.innerText=t+"")}},Ff=class{static processConfiguration(){let e=Dt.get();!e.gaMeasurementID||!e.gaEnabled||this.sendClientID()}static async sendClientID(){let e=await this.getClientID();e&&Le.getInstance().updateDeviceProps({gaClientID:e})}static async getClientID(){let e=await vt.get(Ce.GA_CLIENT_ID),t=await this.getClientIDViaGTag();if(e!==t)return await vt.set(Ce.GA_CLIENT_ID,t),t}static async getClientIDViaGTag(){let e=Dt.get().gaMeasurementID;if(!(!e||!window.gtag))return new Promise(t=>{window.gtag("get",e,"client_id",n=>{t(n)})})}},ST=Pe(lf()),Fn=Pe(Yn()),po=Pe(Mf()),L_=Pe(i_()),Hf,nt,UD,c_,as,LD,jD,o_,HD,l_,s_,a_,g2,El={},$D=[],y2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,u_=Array.isArray;function ao(e,t){for(var n in t)e[n]=t[n];return e}function d_(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function f_(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Hf.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Uf(e,s,r,i,null)}function Uf(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++UD,__i:-1,__u:0};return i==null&&nt.vnode!=null&&nt.vnode(o),o}function ri(e){return e.children}function ni(e,t){this.props=e,this.context=t}function Ma(e,t){if(t==null)return e.__?Ma(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ma(e):null}function WD(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return WD(e)}}function FD(e){(!e.__d&&(e.__d=!0)&&as.push(e)&&!jf.__r++||LD!==nt.debounceRendering)&&((LD=nt.debounceRendering)||jD)(jf)}function jf(){var e,t,n,r,i,o,s,a;for(as.sort(o_);e=as.shift();)e.__d&&(t=as.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=ao({},i)).__v=i.__v+1,nt.vnode&&nt.vnode(r),p_(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??Ma(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,qD(s,r,a),r.__e!=o&&WD(r)),as.length>t&&as.sort(o_));jf.__r=0}function GD(e,t,n,r,i,o,s,a,l,c,d){var h,f,g,m,b,I,R=r&&r.__k||$D,j=t.length;for(l=v2(n,t,R,l,j),h=0;h<j;h++)(g=n.__k[h])!=null&&(f=g.__i===-1?El:R[g.__i]||El,g.__i=h,I=p_(e,g,f,i,o,s,a,l,c,d),m=g.__e,g.ref&&f.ref!=g.ref&&(f.ref&&h_(f.ref,null,g),d.push(g.ref,g.__c||m,g)),b==null&&m!=null&&(b=m),4&g.__u||f.__k===g.__k?l=zD(g,l,e):typeof g.type=="function"&&I!==void 0?l=I:m&&(l=m.nextSibling),g.__u&=-7);return n.__e=b,l}function v2(e,t,n,r,i){var o,s,a,l,c,d=n.length,h=d,f=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+f,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Uf(null,s,null,null,null):u_(s)?Uf(ri,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Uf(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(c=s.__i=_2(s,n,l,h))!==-1&&(h--,(a=n[c])&&(a.__u|=2)),a==null||a.__v===null?(c==-1&&f--,typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,s.__u|=4))):e.__k[o]=null;if(h)for(o=0;o<d;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Ma(a)),YD(a,a));return r}function zD(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=zD(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ma(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function _2(e,t,n,r){var i,o,s=e.key,a=e.type,l=t[n];if(l===null||l&&s==l.key&&a===l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&(2&l.__u)==0&&s==l.key&&a===l.type)return i;i--}if(o<t.length){if((l=t[o])&&(2&l.__u)==0&&s==l.key&&a===l.type)return o;o++}}return-1}function BD(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||y2.test(t)?n:n+"px"}function Vf(e,t,n,r,i){var o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||BD(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||BD(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(HD,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=l_,e.addEventListener(t,o?a_:s_,o)):e.removeEventListener(t,o?a_:s_,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function VD(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=l_++;else if(t.t<n.u)return;return n(nt.event?nt.event(t):t)}}}function p_(e,t,n,r,i,o,s,a,l,c){var d,h,f,g,m,b,I,R,j,U,M,q,xe,st,V,he,ee,ue=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=nt.__b)&&d(t);e:if(typeof ue=="function")try{if(R=t.props,j="prototype"in ue&&ue.prototype.render,U=(d=ue.contextType)&&r[d.__c],M=d?U?U.props.value:d.__:r,n.__c?I=(h=t.__c=n.__c).__=h.__E:(j?t.__c=h=new ue(R,M):(t.__c=h=new ni(R,M),h.constructor=ue,h.render=w2),U&&U.sub(h),h.props=R,h.state||(h.state={}),h.context=M,h.__n=r,f=h.__d=!0,h.__h=[],h._sb=[]),j&&h.__s==null&&(h.__s=h.state),j&&ue.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=ao({},h.__s)),ao(h.__s,ue.getDerivedStateFromProps(R,h.__s))),g=h.props,m=h.state,h.__v=t,f)j&&ue.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),j&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(j&&ue.getDerivedStateFromProps==null&&R!==g&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(R,M),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(R,h.__s,M)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(h.props=R,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Oe){Oe&&(Oe.__=t)}),q=0;q<h._sb.length;q++)h.__h.push(h._sb[q]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(R,h.__s,M),j&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(g,m,b)})}if(h.context=M,h.props=R,h.__P=e,h.__e=!1,xe=nt.__r,st=0,j){for(h.state=h.__s,h.__d=!1,xe&&xe(t),d=h.render(h.props,h.state,h.context),V=0;V<h._sb.length;V++)h.__h.push(h._sb[V]);h._sb=[]}else do h.__d=!1,xe&&xe(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++st<25);h.state=h.__s,h.getChildContext!=null&&(r=ao(ao({},r),h.getChildContext())),j&&!f&&h.getSnapshotBeforeUpdate!=null&&(b=h.getSnapshotBeforeUpdate(g,m)),a=GD(e,u_(he=d!=null&&d.type===ri&&d.key==null?d.props.children:d)?he:[he],t,n,r,i,o,s,a,l,c),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),I&&(h.__E=h.__=null)}catch(Oe){if(t.__v=null,l||o!=null)if(Oe.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else for(ee=o.length;ee--;)d_(o[ee]);else t.__e=n.__e,t.__k=n.__k;nt.__e(Oe,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=E2(n.__e,t,n,r,i,o,s,l,c);return(d=nt.diffed)&&d(t),128&t.__u?void 0:a}function qD(e,t,n){for(var r=0;r<n.length;r++)h_(n[r],n[++r],n[++r]);nt.__c&&nt.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){nt.__e(o,i.__v)}})}function E2(e,t,n,r,i,o,s,a,l){var c,d,h,f,g,m,b,I=n.props,R=t.props,j=t.type;if(j=="svg"?i="http://www.w3.org/2000/svg":j=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((g=o[c])&&"setAttribute"in g==!!j&&(j?g.localName==j:g.nodeType==3)){e=g,o[c]=null;break}}if(e==null){if(j==null)return document.createTextNode(R);e=document.createElementNS(i,j,R.is&&R),a&&(nt.__m&&nt.__m(t,o),a=!1),o=null}if(j===null)I===R||a&&e.data===R||(e.data=R);else{if(o=o&&Hf.call(e.childNodes),I=n.props||El,!a&&o!=null)for(I={},c=0;c<e.attributes.length;c++)I[(g=e.attributes[c]).name]=g.value;for(c in I)if(g=I[c],c!="children"){if(c=="dangerouslySetInnerHTML")h=g;else if(!(c in R)){if(c=="value"&&"defaultValue"in R||c=="checked"&&"defaultChecked"in R)continue;Vf(e,c,null,g,i)}}for(c in R)g=R[c],c=="children"?f=g:c=="dangerouslySetInnerHTML"?d=g:c=="value"?m=g:c=="checked"?b=g:a&&typeof g!="function"||I[c]===g||Vf(e,c,g,I[c],i);if(d)a||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=""),GD(e,u_(f)?f:[f],t,n,r,j=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Ma(n,0),a,l),o!=null)for(c=o.length;c--;)d_(o[c]);a||(c="value",j=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||j=="progress"&&!m||j=="option"&&m!==I[c])&&Vf(e,c,m,I[c],i),c="checked",b!==void 0&&b!==e[c]&&Vf(e,c,b,I[c],i))}return e}function h_(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){nt.__e(i,n)}}function YD(e,t,n){var r,i;if(nt.unmount&&nt.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||h_(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){nt.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&YD(r[i],t,n||typeof e.type!="function");n||d_(e.__e),e.__c=e.__=e.__e=void 0}function w2(e,t,n){return this.constructor(e,n)}function KD(e,t,n){var r,i,o,s;t==document&&(t=document.documentElement),nt.__&&nt.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],p_(t,e=(!r&&n||t).__k=f_(ri,null,[e]),i||El,El,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Hf.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),qD(o,e,s)}Hf=$D.slice,nt={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},UD=0,c_=function(e){return e!=null&&e.constructor==null},ni.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ao({},this.state),typeof e=="function"&&(e=e(ao({},n),this.props)),e&&ao(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),FD(this))},ni.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),FD(this))},ni.prototype.render=ri,as=[],jD=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o_=function(e,t){return e.__v.__b-t.__v.__b},jf.__r=0,HD=/(PointerCapture)$|Capture$/i,l_=0,s_=VD(!1),a_=VD(!0),g2=0;var g_,Xn,m_,ZD,XD=0,oT=[],on=nt,JD=on.__b,QD=on.__r,eT=on.diffed,tT=on.__c,nT=on.unmount,rT=on.__;function b2(e,t){on.__h&&on.__h(Xn,e,XD||t),XD=0;var n=Xn.__H||(Xn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function v_(e,t){var n=b2(g_++,7);return I2(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function C2(){for(var e;e=oT.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($f),e.__H.__h.forEach(y_),e.__H.__h=[]}catch(t){e.__H.__h=[],on.__e(t,e.__v)}}on.__b=function(e){Xn=null,JD&&JD(e)},on.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rT&&rT(e,t)},on.__r=function(e){QD&&QD(e),g_=0;var t=(Xn=e.__c).__H;t&&(m_===Xn?(t.__h=[],Xn.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach($f),t.__h.forEach(y_),t.__h=[],g_=0)),m_=Xn},on.diffed=function(e){eT&&eT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(oT.push(t)!==1&&ZD===on.requestAnimationFrame||((ZD=on.requestAnimationFrame)||S2)(C2)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),m_=Xn=null},on.__c=function(e,t){t.some(function(n){try{n.__h.forEach($f),n.__h=n.__h.filter(function(r){return!r.__||y_(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],on.__e(r,n.__v)}}),tT&&tT(e,t)},on.unmount=function(e){nT&&nT(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{$f(r)}catch(i){t=i}}),n.__H=void 0,t&&on.__e(t,n.__v))};var iT=typeof requestAnimationFrame=="function";function S2(e){var t,n=function(){clearTimeout(r),iT&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);iT&&(t=requestAnimationFrame(n))}function $f(e){var t=Xn,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Xn=t}function y_(e){var t=Xn;e.__c=e.__(),Xn=t}function I2(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}var D2=Symbol.for("preact-signals");function E_(){if(Oa>1)Oa--;else{for(var e,t=!1;wl!==void 0;){var n=wl;for(wl=void 0,__++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&aT(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(__=0,Oa--,t)throw e}}var Et=void 0,wl=void 0,Oa=0,__=0,Wf=0;function sT(e){if(Et!==void 0){var t=e.n;if(t===void 0||t.t!==Et)return t={i:0,S:e,p:Et.s,n:void 0,t:Et,e:void 0,x:void 0,r:t},Et.s!==void 0&&(Et.s.n=t),Et.s=t,e.n=t,32&Et.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Et.s,t.n=void 0,Et.s.n=t,Et.s=t),t}}function sn(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}sn.prototype.brand=D2;sn.prototype.h=function(){return!0};sn.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};sn.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};sn.prototype.subscribe=function(e){var t=this;return wn(function(){var n=t.value,r=Et;Et=void 0;try{e(n)}finally{Et=r}})};sn.prototype.valueOf=function(){return this.value};sn.prototype.toString=function(){return this.value+""};sn.prototype.toJSON=function(){return this.value};sn.prototype.peek=function(){var e=Et;Et=void 0;try{return this.value}finally{Et=e}};Object.defineProperty(sn.prototype,"value",{get:function(){var e=sT(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(__>100)throw new Error("Cycle detected");this.v=e,this.i++,Wf++,Oa++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{E_()}}}});function mr(e){return new sn(e)}function aT(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function cT(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function lT(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Pa(e){sn.call(this,void 0),this.x=e,this.s=void 0,this.g=Wf-1,this.f=4}(Pa.prototype=new sn).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Wf))return!0;if(this.g=Wf,this.f|=1,this.i>0&&!aT(this))return this.f&=-2,!0;var e=Et;try{cT(this),Et=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Et=e,lT(this),this.f&=-2,!0};Pa.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}sn.prototype.S.call(this,e)};Pa.prototype.U=function(e){if(this.t!==void 0&&(sn.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Pa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Pa.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=sT(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function w_(e){return new Pa(e)}function uT(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Oa++;var n=Et;Et=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,b_(e),r}finally{Et=n,E_()}}}function b_(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,uT(e)}function T2(e){if(Et!==this)throw new Error("Out-of-order effect");lT(this),Et=e,this.f&=-2,8&this.f&&b_(this),E_()}function bl(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}bl.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};bl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,uT(this),cT(this),Oa++;var e=Et;return Et=this,T2.bind(this,e)};bl.prototype.N=function(){2&this.f||(this.f|=2,this.o=wl,wl=this)};bl.prototype.d=function(){this.f|=8,1&this.f||b_(this)};function wn(e){var t=new bl(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var S_,C_;function ka(e,t){nt[e]=t.bind(null,nt[e]||function(){})}function Gf(e){C_&&C_(),C_=e&&e.S()}function dT(e){var t=this,n=e.data,r=N2(n);r.value=n;var i=v_(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var s,a=t.__$u.S(),l=i.value;a(),c_(l)||((s=t.base)==null?void 0:s.nodeType)!==3?(t.__$f|=1,t.setState({})):t.base.data=l},w_(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}dT.displayName="_st";Object.defineProperties(sn.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:dT},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ka("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var o=r[i];o instanceof sn&&(n||(t.__np=n={}),n[i]=o,r[i]=o.peek())}}e(t)});ka("__r",function(e,t){Gf();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var o;return wn(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),S_=r,Gf(n),e(t)});ka("__e",function(e,t,n,r){Gf(),S_=void 0,e(t,n,r)});ka("diffed",function(e,t){Gf(),S_=void 0;var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var o=n.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else n.U=o={};for(var l in r){var c=o[l],d=r[l];c===void 0?(c=x2(n,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});function x2(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,o=mr(n);return{o:function(s,a){o.value=s,r=a},d:wn(function(){var s=o.value.value;r[t]!==s&&(r[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}ka("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var o=r[i];o&&o.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)});ka("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)});ni.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function N2(e){return v_(function(){return mr(e)},[])}var zf=class{url;alt;constructor(e){e.alt&&(this.alt=e.alt),this.url=e.url}},qf=class{d;cmp;effective;constructor(e={}){this.d=e.d,this.cmp=e.cmp,this.effective=this.d}},I_=class{id;mID;name;groupID;groupName;isSelected;constructor(e){e??={},this.id=e.id,this.mID=e.mID,this.name=e.name,this.groupID=e.groupID,this.groupName=e.groupName,this.isSelected=e.isSelected??!1}},ii=class{mID;name;imgs;link;price;sku;isAvailable;quantity;sellingPlans;selectedSellingPlan;effectivePrice;constructor(e){e=e??{},this.mID=e.mID,this.name=e.name,this.imgs=e.imgs?.map(t=>new zf(t))??[],this.link=e.link,this.price=new qf(e.price),this.sku=e.sku,this.isAvailable=e.isAvailable,this.quantity=e.quantity,this.effectivePrice=mr(this.price.effective),e.sellingPlans?.length&&(this.selectedSellingPlan=mr(void 0)),this.sellingPlans=e.sellingPlans?.map(t=>{let n=new I_(t);return n.isSelected&&(this.selectedSellingPlan.value=n),n})}getOneImage(){return this.imgs[0]?.url}changeSellingPlan(e){this.selectedSellingPlan.value=e}},Wn=class{id;mID;name;status;ctg;imgs;videos;portraitVideos;vars;desc;sDesc;link;slug;quantity;category;meta;reviews;selectedOrFirstVariant;selected=mr(!0);constructor(e){this.update(e),this.selectedOrFirstVariant=mr(this.selectedVariant)}get imageURL(){return this.imgs?.[0]?.url}get secondaryImageURL(){return this.imgs?.[1]?.url}get getVariantImages(){return this.selectedOrFirstVariant.value.imgs}get variantImage(){return this.getVariantImages[0]?.url}get variantSecondaryImage(){return this.getVariantImages[1]?.url}get selectedVariant(){return this.vars.find(e=>e.isAvailable)??this.vars[0]}set variants(e){this.vars=e,this.selectedOrFirstVariant.value=this.selectedVariant}update(e){return this.id=e.id,this.mID=e.mID,this.name=e.name,this.status=e.status,this.ctg=e.ctg,this.imgs=e.imgs,this.desc=e.desc,this.sDesc=e.sDesc,this.link=e.link,this.slug=e.slug,this.quantity=e.quantity,this.meta=e.meta,this.category=e.category,this.videos=e.videos,this.reviews=e.reviews,this.portraitVideos=e.videos?.filter(t=>t.orientation==="PORTRAIT"),e.vars&&(this.vars=e.vars.map(t=>new ii(t))),this}toEmbed(e){return e=e??this.selectedOrFirstVariant.value,new ln({id:this.id,mID:this.mID,vID:e.mID,vName:e.name,name:this.name,link:this.link,slug:this.slug,price:e.price.d,imageURL:e.getOneImage()??this.imgs?.[0].url})}},Yf=class{id;mID;handle;title;imageURL;constructor(e){e??={},this.id=e.id,this.mID=e.mID,this.handle=e.handle,this.title=e.title,this.imageURL=e.imageURL}},D_=class{enabled;constructor(e){this.enabled=e.enabled}},T_=class extends D_{max;min;constructor(e){e??={},super(e),this.min=e.min,this.max=e.max}},Kf=class{productQuantity;constructor(e){e??={},this.productQuantity=new T_(e.productQuantity)}},cs=class{s;g;i;constructor(e){e.s&&(this.s=new Ot(e.s)),e.g&&(this.g=new Cl(e.g)),this.i=e.i}get solid(){return this.s}get glossy(){return this.g}get img(){return this.i}},Sl="a-f\\d",R2=`#?[${Sl}]{3}[${Sl}]?`,A2=`#?[${Sl}]{6}([${Sl}]{2})?`,M2=new RegExp(`[^#${Sl}]`,"gi"),O2=new RegExp(`^${R2}$|^${A2}$`,"i");function x_(e,t={}){if(typeof e!="string"||M2.test(e)||!O2.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let n=1;e.length===8&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let r=Number.parseInt(e,16),i=r>>16,o=r>>8&255,s=r&255,a=typeof t.alpha=="number"?t.alpha:n;if(t.format==="array")return[i,o,s,a];if(t.format==="css"){let l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${i} ${o} ${s}${l})`}return{red:i,green:o,blue:s,alpha:a}}var Ot=class{h;a=100;g;constructor(e){e??={},this.h=e.h,this.a=e.a,this.g=e.g}get hex(){return this.h}get grad(){return this.g}get rgba(){if(!this.hex)return"";try{return x_(this.hex,{format:"css",alpha:this.getAlpha()})}catch(e){return console.error("Invalid hex",e),"#000000"}}getAlpha(){return(this.a??100)/100}},ls=class{s;r;w;c;constructor(e){this.s=e.s,this.r=e.r,this.w=e.w,e.c&&(this.c=new Ot(e.c))}get radius(){return this.r}get width(){return this.w}get color(){return this.c}get style(){return fT[this.s??1]}},fT=(e=>(e[e.SOLID=1]="SOLID",e[e.DASHED=2]="DASHED",e))(fT||{}),Cl=class V0{static DEFAULT_FALLBACK=new Ot({h:"#000000",a:50});r;c;fb;constructor(t){this.r=t.r,t.c&&(this.c=new Ot(t.c)),t.fb&&(this.fb=new Ot(t.fb))}get radius(){return this.r}get color(){return this.c}get fallback(){return this.fb??V0.DEFAULT_FALLBACK}},Il=class{blur;spr;clr;x;y;constructor(e){e=e??{},this.blur=e.blur??0,this.spr=e.spr??0,this.x=e.x??0,this.y=e.y??0,this.clr=new Ot(e.clr)}getStyle(e){return`${this.x*e}px ${this.y*e}px ${this.blur*e}px ${this.spr*e}px ${this.clr.rgba}`}},Mi=class{pl;pr;pt;pb;ml;mr;mt;mb;cent;constructor(e){e=e??{},this.pl=e.pl??0,this.pr=e.pr??0,this.pt=e.pt??0,this.pb=e.pb??0,this.ml=e.ml??0,this.mr=e.mr??0,this.mt=e.mt??0,this.mb=e.mb??0,this.cent=e.cent??!1}getHorizontal(){return this.pl+this.pr}getVertical(){return this.pt+this.pb}getPaddingCSS(){return`${this.pt}px ${this.pr}px ${this.pb}px ${this.pl}px`}},us=class{rot;constructor(e){e?.rot&&(this.rot=e.rot)}get rotate(){return this.rot}},Jn=class{t;bg;br;clc;shd;spc;trf;a;w;h;x;y;constructor(e){this.t=e.t,e.bg&&(this.bg=new cs(e.bg)),e.br&&(this.br=new ls(e.br)),e.shd&&(this.shd=new Il(e.shd)),e.spc&&(this.spc=new Mi(e.spc)),this.trf=new us(e.trf),this.clc=e.clc,this.w=e.w,this.h=e.h,this.x=e.x,this.y=e.y,this.a=e.a}get alpha(){return this.a??100}get type(){return this.t}get typeAsString(){return Nt[this.t]}get click(){return this.clc}},Nt=(e=>(e[e.IMAGE=1]="IMAGE",e[e.TEXT=2]="TEXT",e[e.BUTTON=3]="BUTTON",e[e.FLEXBOX=4]="FLEXBOX",e[e.MULTI_COLUMN=5]="MULTI_COLUMN",e[e.CHECKBOX=6]="CHECKBOX",e[e.PRODUCTS=11]="PRODUCTS",e[e.PRODUCT=12]="PRODUCT",e[e.PRODUCT_IMAGE=13]="PRODUCT_IMAGE",e[e.PRODUCT_TITLE=14]="PRODUCT_TITLE",e[e.PRODUCT_VARIATIONS=15]="PRODUCT_VARIATIONS",e[e.PRODUCT_VARIATIONS_SELLING_PLANS=16]="PRODUCT_VARIATIONS_SELLING_PLANS",e[e.PRODUCT_BUTTON=18]="PRODUCT_BUTTON",e[e.PRODUCT_RATING=19]="PRODUCT_RATING",e[e.EMAIL_INPUT=51]="EMAIL_INPUT",e[e.PHONE_INPUT=52]="PHONE_INPUT",e[e.COUNTDOWN_TIMER=61]="COUNTDOWN_TIMER",e[e.CAROUSEL=62]="CAROUSEL",e[e.SHAPE=100]="SHAPE",e))(Nt||{}),ds=class extends Jn{constructor(e){super(e)}},Oi=class extends Jn{src;constructor(e){super(e),this.src=e.src}},La=(e=>(e[e.START=0]="START",e[e.CENTER=1]="CENTER",e[e.END=2]="END",e[e.JUSTIFY=3]="JUSTIFY",e))(La||{}),Zf=class{name;fonts;constructor(e){e=e??{},e.name&&(e.name=e.name!=="Arial"?e.name:""),this.name=e.name,this.fonts=e.fonts?.map(t=>new N_(t))}},N_=class{style;url;constructor(e){e=e??{},this.style=e.style,this.url=e.url}getFontDescriptor(){return{style:this.style===2||this.style===4?"italic":"normal",weight:this.style===4||this.style===3?"700":"400"}}getURL(){return`url('${this.url}') format('truetype')`}},bn=class{fw;fs;fam;fmly;lh=1.2;ls;s;tc;ta;td;tdc;constructor(e){this.update(e)}get alignment(){return La[this.ta]}get letterSpacing(){return this.ls?this.ls+"px":"normal"}update(e){e=e??{},e.lh&&(this.lh=e.lh),e.tdc&&(this.tdc=new Ot(e.tdc)),this.td=e.td,this.fs=e.s??e.fs??60,this.tc=new Ot(e.tc),this.ta=e.ta??1,this.fw=e.fw??400,this.ls=e.ls??0,this.tc.h??="#000000",this.fam=new Zf(e.fam??e.fmly)}resize(e){this.s*=e,this.ls*=e}},oi=class extends Jn{typo;constructor(e){super(e);let t=w(w({},e.f),e.typo);e.alg&&(t.ta=e.alg),e.c&&(t.tc=e.c),this.typo=new bn(t)}get color(){return this.typography.tc}get typography(){return this.typo}},co=class extends oi{prs;constructor(e){super(e),this.prs=e.prs}get parts(){return this.prs}},Xf=class extends Jn{o;constructor(e){super(e),this.o=e.o??5,this.w=this.w??1080,this.h=this.h??1920}getOrigin(){return this.o}},Fa=class{dd;hh;mm;ss;date;constructor(e){e??={},this.dd=e.dd??0,this.hh=e.hh??0,this.mm=e.mm??0,this.ss=e.ss??0,this.date=e.date?new Date(e.date):void 0}start(e,t){let n=new Date;e===2?(n.setSeconds(n.getSeconds()+this.ss),n.setMinutes(n.getMinutes()+this.mm),n.setHours(n.getHours()+this.hh),n.setDate(n.getDate()+this.dd)):n=this.date??new Date;let r=window.setInterval(()=>{let i=new Date().getTime(),o=n.getTime()-i;if(o<1){clearInterval(r);return}let s=Math.floor(o/(1e3*60*60*24)),a=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),l=Math.floor(o%(1e3*60*60)/(1e3*60)),c=Math.floor(o%(1e3*60)/1e3);t({days:s,hours:a,minutes:l,seconds:c})},1e3);return r}},Ba=class extends oi{gap;timer;timerType;horizontal;lblPos;show;constructor(e){e??={},super(e),this.gap=e.gap,this.timerType=e.type,this.timer=new Fa(e.timer),this.show=e.show??{day:!0,hour:!0,minute:!0,second:!0},this.horizontal=e.horizontal,this.lblPos=e.lblPos}},Jf=class{txt;c;constructor(e){e??={},this.txt=e.txt,this.c=new Ot(e.c??{})}get text(){return this.txt}get color(){return this.c}},lo=class extends oi{ph;constructor(e){super(e),this.ph=new Jf(e.ph)}get placeholderText(){return this.ph.text}get placeholderColor(){return this.ph.color.rgba}},Va=class extends lo{constructor(e){e??={},super(e)}},Ua=class extends lo{},ja=class extends lo{},Ha=class extends Oi{},Qf=class{en;ex;constructor(e){e=e??{},this.en=e.en,this.ex=e.ex}getEnterAnimation(){switch(this.en){case 2:return[{transform:"translateY(-100%)"},{transform:"translateY(0%)"}];case 3:return[{transform:"translateY(100%)"},{transform:"translateY(0%)"}];case 4:return[{transform:"translateX(-100%)"},{transform:"translateX(0%)"}];case 5:return[{transform:"translateX(100%)"},{transform:"translateX(0%)"}];case 6:return[{transform:"translate(-100%, -100%)"},{transform:"translate(0%, 0%)"}];case 7:return[{transform:"translate(100%, -100%)"},{transform:"translate(0%, 0%)"}];case 8:return[{transform:"translate(-100%, 100%)"},{transform:"translate(0%, 0%)"}];case 9:return[{transform:"translate(100%, 100%)"},{transform:"translate(0%, 0%)"}];case 10:return[{transform:"scale(0.1)"},{transform:"scale(1)"}];default:return[]}}getExitAnimation(){switch(this.ex){case 2:return[{transform:"translateY(0%)"},{transform:"translateY(-100%)"}];case 3:return[{transform:"translateY(0%)"},{transform:"translateY(100%)"}];case 4:return[{transform:"translateX(0%)"},{transform:"translateX(-100%)"}];case 5:return[{transform:"translateX(0%)"},{transform:"translateX(100%)"}];case 6:return[{transform:"translate(0%, 0%)"},{transform:"translate(-100%, -100%)"}];case 7:return[{transform:"translate(0%, 0%)"},{transform:"translate(100%, -100%)"}];case 8:return[{transform:"translate(0%, 0%)"},{transform:"translate(-100%, 100%)"}];case 9:return[{transform:"translate(0%, 0%)"},{transform:"translate(100%, 100%)"}];case 10:return[{transform:"scale(1)"},{transform:"scale(0)"}];default:return[]}}},Dl=class extends Jn{gvt;max;cover;anim;embedded;position;constructor(e){e=e??{},super(e),this.gvt=e.gvt??5,this.max=e.max,this.cover=e.cover??!0,this.anim=new Qf(e.anim),this.embedded=e.embedded,this.position=e.position??1,this.spc||(this.spc=new Mi({pl:k.IN_APP_DEFAULT_PADDING,pr:k.IN_APP_DEFAULT_PADDING,pt:k.IN_APP_DEFAULT_PADDING,pb:k.IN_APP_DEFAULT_PADDING}))}isEmbedded(){return this.position===2&&!!this.embedded}getEmbeddedSelector(){return`.letscooee-engagement.container-${this.embedded}`}},ep=class extends Dl{cont;elems=[];mob;constructor(e){e=e??{},super(e),this.cont=new Xf(e.cont),this.mob=new Dl(e.mob),this.bg||(this.bg=this.cont.bg,delete this.cont.bg),e.elems.forEach(t=>{t.t===1?this.elems.push(new Oi(t)):t.t===2?this.elems.push(new co(t)):t.t===3?this.elems.push(new co(t)):t.t===100?this.elems.push(new ds(t)):t.t===51?this.elems.push(new Ua(t)):t.t===52?this.elems.push(new ja(t)):t.t===61?this.elems.push(new Ba(t)):t.t===15||t.t===16?this.elems.push(new Va(t)):t.t===13&&this.elems.push(new Ha(t))})}getStylesForWrapper(){if(this.cover)return{};let e;return this.gvt===1?e={top:0,left:0}:this.gvt===2?e={top:0,left:"50%",transform:"translateX(-50%)"}:this.gvt===3?e={top:0,right:0}:this.gvt===6?e={top:"50%",right:0,transform:"translateY(-50%)"}:this.gvt===9?e={bottom:0,right:0}:this.gvt===8?e={bottom:0,left:"50%",transform:"translateX(-50%)"}:this.gvt===7?e={bottom:0,left:0}:this.gvt===4?e={top:"50%",left:0,transform:"translateY(-50%)"}:e={top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"},e.overflow="visible",e}getFlexStylesForContainer(){let e={display:"flex",flexDirection:"row"},t,n;return this.gvt===1?(t="flex-start",n="flex-start"):this.gvt===2?(t="center",n="flex-start"):this.gvt===3?(t="flex-end",n="flex-start"):this.gvt===4?(t="flex-start",n="center"):this.gvt===6?(t="flex-end",n="center"):this.gvt===7?(t="flex-start",n="flex-end"):this.gvt===8?(t="center",n="flex-end"):this.gvt===9?(t="flex-end",n="flex-end"):(t="center",n="center"),e.alignItems=n,e.justifyContent=t,e.overflow="visible",e}overrideForMobileView(){this.max=this.mob.max??this.max,this.cover=this.mob.cover??this.cover,this.gvt=this.mob.gvt??this.gvt,this.bg=this.mob.bg??this.bg,this.spc=this.mob.spc??this.spc,this.anim=this.mob.anim??this.anim,this.position=this.mob.position??this.position,this.embedded=this.mob.embedded??this.embedded}},$a=class{gap;dir;wrap;jc;ai;scroll;constructor(e){e??={},this.gap=e.gap??0,this.dir=e.dir??"row",this.wrap=e.wrap??"nowrap",this.jc=e.jc??"flex-start",this.ai=e.ai??"flex-start",this.scroll=e.scroll}},tp=class{of;disp;pos;top;bottom;left;right;zIndex;constructor(e){e??={},this.of=e.of,this.disp=e.disp,this.pos=e.pos,this.top=e.top,this.bottom=e.bottom,this.left=e.left,this.right=e.right,this.zIndex=e.zIndex}},np=class{w;h;maxW;maxH;minW;minH;constructor(e){e??={},this.w=e.w??"100%",this.h=e.h??"auto",this.maxW=e.maxW,this.maxH=e.maxH,this.minW=e.minW,this.minH=e.minH}},rp=class{size;bg;br;spc;typo;lout;flex;constructor(e){e??={},this.spc=new Mi(e.spc),e.size&&(this.size=new np(e.size)),e.bg&&(this.bg=new cs(e.bg)),e.br&&(this.br=new ls(e.br)),e.typo&&(this.typo=new bn(e.typo)),e.lout&&(this.lout=new tp(e.lout)),e.flex&&(this.flex=new $a(e.flex))}},Wa=class{sm;lg;constructor(e){e??={},this.sm=new rp(e.sm),this.lg=new rp(e.lg)}},pn=class{t;style;hide;when;clc;constructor(e,t){t??={},this.t=e,this.style=new Wa(t.style),this.hide=t.hide,t.when?.op&&(this.when=t.when),t.clc&&(this.clc=t.clc)}get stringType(){return Nt[this.t]}},hn=class extends pn{text;constructor(e,t){e?.style?.lg?.typo?.s&&delete e.style.lg.typo.s,e?.style?.sm?.typo?.s&&delete e.style.sm.typo.s,super(t??2,e),e??={},this.text=e.text}},fs=class extends hn{constructor(e,t){super(e,t??3)}},Ga=class extends pn{value;constructor(e){super(6,e),e??={},this.value=e.value}},za=class extends hn{constructor(e=15,t){super(t,e)}},ip=class extends pn{c;iconSize;showSingleStar;fullStar;halfStart;constructor(e){super(19,e),e??={},this.c=new Ot(e.c),this.iconSize=e.iconSize??24,this.showSingleStar=e.showSingleStar??!1,this.fullStar=e.fullStar,this.halfStart=e.halfStart}},pT=Pe($o()),R_=class{enabled;type;color;constructor(e){e??={},this.enabled=e.enabled,this.type=e.type,this.color=new Ot(e.color)}},A_=class{size;enabled;color;constructor(e){e??={},this.enabled=e.enabled,this.size=e.size,this.color=new Ot(e.color)}},Tl=class{navigation;pagination;autoplay;maxInRow;gap;slidesPerView;constructor(e){e??={},this.navigation=new A_(e.navigation),this.pagination=new R_(e.pagination),this.autoplay=e.autoplay,this.slidesPerView=e.slidesPerView??1,this.maxInRow=e.maxInRow??e.slidesPerView??4,this.gap=e.gap??0}},op=class extends pn{conf;slide;formData;values;allowedTypes;constructor(e){super(62,e),e&&this.update(e)}update(e){e??={},this.slide=Qn.getParsedElement(e.slide),this.formData=e.formData,this.values=e.values,this.conf=new Tl(e.conf),this.allowedTypes=e.allowedTypes}},sp=class extends hn{gap;timer;timerType;horizontal;lblPos;show;constructor(e){e??={},super(e,61),this.gap=e.gap,this.timerType=e.type,this.timer=new Fa(e.timer),this.show=e.show??{days:!0,hours:!0,minutes:!0,seconds:!0},this.horizontal=e.horizontal,this.lblPos=e.lblPos}},uo=class extends pn{elems;constructor(e){super(4,e),this.update(e)}update(e){e??={},this.elems??=[],e.elems?.forEach(t=>{let n=Qn.getParsedElement(t);n&&this.elems.push(n)})}},ps=class extends pn{src;sm;lg;constructor(e,t){super(t??1,e),e&&this.update(e)}update(e){this.src=e.src,this.sm=e.sm,this.lg=e.lg}},Qn=class H0{static getParsedElements(t){let n=[];return t?.forEach(r=>{let i=H0.getParsedElement(r);i&&n.push(i)}),n}static getParsedElement(t){switch(t.t){case 2:return new hn(t);case 3:return new fs(t);case 6:return new Ga(t);case 11:return new ap(t);case 12:return new fo(t);case 61:return new sp(t);case 4:return new uo(t);case 1:return new ps(t);case 13:return new ps(t,13);case 14:return new hn(t,14);case 15:case 16:return new za(t.t,t);case 18:return new fs(t,18);case 62:return new op(t);case 19:return new ip(t);default:pT.default.error("Unknown element type",t.t);return}}static parseAlignmentToJustifyContent(t){switch(t){case 1:return"center";case 2:return"flex-end";case 0:return"flex-start";default:return"flex-start"}}},fo=class extends pn{img;title;desc;price;compareAt;btn;variantDD;show;symbol;cBox;elems;noLinks;constructor(e){if(e??={},super(12,e),this.show=e.show,this.elems=Qn.getParsedElements(e.elems),this.noLinks=e.noLinks,!this.elems.length){e.cBox&&this.elems.push(new Ga(e.cBox)),this.elems.push(new ps(e.img,13));let t=new hn(e.title,14);t.hide=!e.show?.title,t.text="{{ product.name }}",this.elems.push(t);let n=new hn(e.price);n.text="{{ product.price }}",n.hide=!e.show?.price;let r=new hn(e.compareAt);r.text="{{ product.compare_price }}",r.hide=!e.show?.price,e.compareAt||(r.style=new Wa(n.style),r.style.lg.typo=new bn(ne(w({},r.style.lg.typo),{td:"line-through"})),r.style.sm.typo=new bn(ne(w({},r.style.sm.typo),{td:"line-through"})));let i=new uo({style:{lg:{spc:{mb:10},flex:{dir:"row",gap:10,ai:"center",jc:Qn.parseAlignmentToJustifyContent(n.style.lg.typo?.ta)}}}});i.elems.push(r),i.elems.push(n),this.elems.push(i);let o=new za(15,e.variantDD);if(o.hide=!e.show?.variantDD,this.elems.push(o),e.btn){let s=new fs(e.btn,18);s.hide=!e.show?.btn,this.elems.push(s)}}e.symbol&&(this.symbol=new hn(e.symbol))}},ap=class extends pn{conf;prod;constructor(e){super(11,e),e??={},this.conf=new M_(e.conf),this.prod=new fo(e.prod)}},cp=class extends Tl{disp;maxItems;constructor(e){e??={},super(e),this.disp=e.disp,this.maxItems=e.maxItems}},M_=class{lg;sm;constructor(e){e??={},this.lg=new cp(e.lg),this.sm=new cp(e.sm)}},lp=class extends uo{constructor(e){super(e)}},qa=class{cont;elems=[];constructor(e){e=e??{},this.cont=new lp(e.cont),e.elems?.forEach(t=>{this.addRawElement(t)})}addRawElement(e){let t=Qn.getParsedElement(e);return t&&this.elems.push(t),t}},hT=Pe(Yn()),O_=class{minValue;rewardType;label;reachingText;reachedText;discount;items;calculatedAlignment;constructor(e){this.minValue=e.minValue,this.rewardType=e.rewardType,this.label=e.label,this.reachingText=e.reachingText,this.reachedText=e.reachedText,this.discount=e.discount,this.items=e.items?.map(t=>new ln(t))}},up=class{layout;milestones;constructor(e){this.layout=e.layout??hT.ProgressBarLayout.ICONS,this.milestones=e.milestones?.map(t=>new O_(t))??[]}},dp=class{applyDiscountOnMinimum;constructor(e){this.applyDiscountOnMinimum=e.applyDiscountOnMinimum}},fp=class{id;alt;sources;items;constructor(e={}){this.id=e.id,this.alt=e.alt,this.sources=e.sources,this.items=e.items?e.items.map(t=>new ln(t)):[]}},P_=(e=>(e.GALLERY="GALLERY",e.CURRENT_PRODUCT="CURRENT_PRODUCT",e))(P_||{}),k_=(e=>(e.SWIPER="SWIPER",e.STORY="STORY",e))(k_||{}),pp=class{videos;source;template;heading;constructor(e={}){this.videos=e.videos?.map(t=>new fp(t))??[],this.source=e.source,this.template=e.template,this.heading=e.heading}},F_=class{engagementID;shortID;contentType;delay;onsiteDeliveryType;objective;redirectBehaviour;constructor(e){this.shortID=e.shortID,this.contentType=e.contentType,this.engagementID=e.engagementID,this.delay=e.delay??0,this.redirectBehaviour=e.redirectBehaviour,this.onsiteDeliveryType=e.onsiteDeliveryType,this.objective=e.objective}isAnySplit(){return this.isABTesting()||this.isExclusionTesting()}isExclusionTesting(){return this.contentType===Fn.EngagementContentType.EXCLUSION}isABTesting(){return this.contentType===Fn.EngagementContentType.ABTESTING}isSingleContent(){return this.contentType===Fn.EngagementContentType.SINGLE}},er=class $0 extends F_{static SWIPER_ELEMENTS=new Set([11,62]);nudgeID;contentID;variation;ian;widget;discount;placement;promotionType;contentSource;manipulation;klaviyoFormID;hasMultiplePlacement;skipSubscribedItems;progressBarConfig;bundleConfig;content;previewType;occurred;id;currency;props;items;nonMutableItems;embeddedItems;bundleFrom;collections;customerData;discountData=mr({});constructor(t){super(t),this.id=t.id,this.nudgeID=t.nudgeID,this.currency=Ae.get().currencyCode??"USD",this.contentID=t.contentID,this.variation=t.variation,t.widget&&(this.widget=new qa(t.widget)),this.previewType=t.previewType,this.occurred=t.occurred??new Date,this.props=t.props,this.embeddedItems=t.embeddedItems?.map(n=>new ln(n)),this.items=t.items?.map(n=>new Wn(n))??[],this.nonMutableItems=t.items?.map(n=>new Wn(n))??[],this.collections=t.collections?.map(n=>new Yf(n))??[],this.discount=t.discount,this.placement=t.placement,this.customerData=t.customerData,this.ian=t.ian?this.processPopup(t.ian):void 0,this.promotionType=t.promotionType,this.manipulation=new Kf(t.manipulation),this.contentSource=t.contentSource,this.klaviyoFormID=t.klaviyoFormID,this.hasMultiplePlacement=t.hasMultiplePlacement,this.skipSubscribedItems=t.skipSubscribedItems,t.progressBarConfig&&(this.progressBarConfig=new up(t.progressBarConfig)),t.bundleConfig&&(this.bundleConfig=new dp(t.bundleConfig)),t.bundleFrom&&(this.bundleFrom=new Wn(t.bundleFrom)),t.content?.videoConfig&&(this.content={videoConfig:new pp(t.content.videoConfig)})}shouldDelay(){return this.delay>0}sentryContext(){return{id:this.id,shortID:this.shortID,currency:this.currency,contentType:this.contentType,objective:this.objective,onsiteDeliveryType:this.onsiteDeliveryType,engagementID:this.engagementID,contentID:this.contentID,nudgeID:this.nudgeID,variation:this.variation}}getDelaySeconds(){let t=new Date().getTime()-this.occurred.getTime();return this.delay*1e3-t}isBundle(){return this.objective===Fn.EngagementObjective.BUNDLE_AND_UPSELL}isCartEmbed(){return this.onsiteDeliveryType===Fn.OnsiteDeliveryType.CART_EMBED}isPageEmbed(){return this.onsiteDeliveryType===Fn.OnsiteDeliveryType.PAGE_EMBED}isProgressBar(){return this.objective===Fn.EngagementObjective.PROGRESS_BAR}isSubscriptionUpsell(){return this.objective===Fn.EngagementObjective.SUBSCRIPTION_UPSELL}isCartRecovery(){return this.objective===Fn.EngagementObjective.CART_RECOVERY}isProductPromotion(){return this.objective===Fn.EngagementObjective.PRODUCT_PROMOTION}isProductPromoted(){return this.isProductPromotion()||this.isBundle()||this.isCartRecovery()}isBYOB(){return this.objective===Fn.EngagementObjective.BYOB}isShoppableVideo(){return this.objective===Fn.EngagementObjective.SHOPPABLE_VIDEO}processPopup(t){let n=JSON.stringify(t),r=this.items[0],i={},o={};if(r){let l=r.selectedOrFirstVariant.value;i={name:r.name,id:r.mID,link:r.link,vID:l.mID,image:r.variantImage,price:de.formatCurrency(l.price.d),comparePrice:de.formatCurrency(l.price.cmp),quantity:r.quantity},o={quantity:l.quantity}}let s={productCount:je.getCurrent().item_count},a=fn.render(n,{product:i,variant:o,cart:s,discount:this.discount,customer:this.customerData});return r&&(a=a.replace(new RegExp(k.PLACEHOLDER_IMAGE,"gi"),r.variantImage??r.imageURL)),new ep(JSON.parse(a))}calculateDiscountData(t,n){let r=L_.ArrayUtils.sum(t,o=>o.selectedOrFirstVariant.value.price.d),i={actualPrice:r,discountAmount:0,discountPercentage:0,discountedPrice:r};if(!t?.length||!n||!this.discount?.type){this.discountData.value=this.formatCurrencyAndNumber(i);return}if(po.DiscountType.BXGY===this.discount.type&&this.discount.values?.length)i.discountPercentage=this.discount.values[0],this.updateEffectivePrice(t,i.discountPercentage,!0),i.discountAmount=i.actualPrice-L_.ArrayUtils.sum(t,o=>o.selectedOrFirstVariant.value.effectivePrice.value);else if([po.DiscountType.UNIQUE_FLAT_ITEMS,po.DiscountType.STATIC].includes(this.discount.type)&&this.discount.values?.length)i.discountPercentage=this.discount.values[0],i.discountAmount=i.actualPrice*i.discountPercentage/100,this.updateEffectivePrice(t,i.discountPercentage);else if(this.discount.type===po.DiscountType.UNIQUE_FIXED_ITEMS&&this.discount.values?.length)i.discountAmount=i.actualPrice-this.discount.values[0],i.discountPercentage=i.discountAmount/i.actualPrice*100,this.updateEffectivePrice(t,i.discountPercentage);else if(this.discount.type===po.DiscountType.UNIQUE_CHEAPEST_ITEM_FREE){t.sort((s,a)=>a.selectedOrFirstVariant.value.price.d-s.selectedOrFirstVariant.value.price.d);let o=t[t.length-1];o.selectedOrFirstVariant.value.effectivePrice.value=0,i.discountAmount=o.selectedOrFirstVariant.value.price.d,i.discountPercentage=i.discountAmount/i.actualPrice*100}i.discountedPrice=i.actualPrice-i.discountAmount,this.discountData.value=this.formatCurrencyAndNumber(i)}getPrivateAttributesForLineItem(){return Dt.get().skipItemAttribute?{}:{[k.VIA]:"Cooee",[k.CAMPAIGN_ATTRIBUTE]:this.shortID,[k.CONTENT_ATTRIBUTE]:this.contentID}}getKVFormatPrivateAttributesForLineItem(){return Dt.get().skipItemAttribute?[]:[{key:k.VIA,value:"Cooee"},{key:k.CAMPAIGN_ATTRIBUTE,value:this.shortID},{key:k.CONTENT_ATTRIBUTE,value:this.contentID}]}isBundleDiscount(){return[po.DiscountType.UNIQUE_FIXED_ITEMS,po.DiscountType.UNIQUE_FLAT_ITEMS].includes(this.discount.type)}isBundleOnCartDrawer(){return this.isBundle()&&this.isCartEmbed()}isBundleOnPDP(){return this.isPageEmbed()&&this.isBundle()}hasSwiperElement(){let t=this.widget?.elems.find(r=>$0.SWIPER_ELEMENTS.has(r.t));if(!t)return!1;if(t.t===62)return!0;let n=Zn.get().isMobile()?"sm":"lg";return t.conf[n].disp===2}toString(){return`Engagement(id=${this.shortID})`}getCartMagicVariables(){let t=je.getCurrent();return{productCount:t.item_count,amount:de.formatCurrency(t.total_price/100),originalAmount:de.formatCurrency(t.original_total_price/100)}}updateEffectivePrice(t,n,r=!1){let i=Ae.get().getCurrentItem();t.forEach(o=>{let s=o.selectedOrFirstVariant.value,a=s.price;if(r&&o.mID===i.mID)s.effectivePrice.value=a.d;else{let l=a.d*n/100;s.effectivePrice.value=a.d-l}})}formatCurrencyAndNumber(t){if(!t)return{};let n={discountPercentage:de.formatNumber(t.discountPercentage??0),discountCode:this.discount?.code};return["actualPrice","discountAmount","discountedPrice"].map(r=>{n[r]=de.formatCurrency(t[r])}),n}},Fl=Pe(Yn()),vT=Pe(i_()),_T=Pe(ea()),Ya=class{constructor(e,t){this._startTime=e,this._triggerData=t}intervals=[];selectedEmbeddedItems;renderer;closeCallback;inputFields=[];get startTime(){return this._startTime}get triggerData(){return this._triggerData}get inputs(){return this.inputFields}get rootClassName(){let e=this.triggerData.shortID??this.triggerData.id.slice(-6);return e==="test"&&(e="test-"+this.startTime.getTime().toString()),k.IN_APP_WRAPPER_NAME+"-"+e}get selectedItems(){return this.triggerData.items.filter(e=>e.selected.value)}get shouldGiveFBTDiscount(){let e=this.selectedItems.length;return this.triggerData.bundleConfig?.applyDiscountOnMinimum?this.triggerData.bundleConfig.applyDiscountOnMinimum<=e:e===this.triggerData.items.length}onClose(e){this.closeCallback=e}closeInApp(e,t){t??={};let n=(new Date().getTime()-this.startTime.getTime())/1e3,r=w({eventName:e,duration:n},t);this.stopIntervals(),this.closeCallback&&this.closeCallback(r)}addInputField(e,t){this.inputFields.push({id:e,type:t,isValid:!1})}updateValidation(e,t){this.inputFields.forEach(n=>{if(n.id===e){n.isValid=t;return}})}hasManipulatedProductQuantity(){let e=this.triggerData.manipulation.productQuantity;return e?.enabled&&e.min!=null&&e.max!=null}getManipulatedQuantity(e){let{min:t=1,max:n=100}=this.triggerData.manipulation.productQuantity;if(t>n)return S.error("Invalid range: min should be less than or equal to max."),e;if(e>=t&&e<=n)return e;let r=e%100;return r<t?t:r>n?n:r}stopIntervals(){this.intervals.forEach(e=>clearInterval(e))}},ET=Pe($o()),mT=Pe(Xv()),hs=class{static _flags={};static getFlags(){return this._flags}static setFlags(e){this._flags=e??{}}static isECommerceApp(){return ht.isShopify()}},k2=(0,mT.default)(fetch),L2={retryDelay:k.API_CALL_RETRY_DELAY,retryOn:(e,t,n)=>e>=k.API_CALL_MAX_ATTEMPTS?!1:!!(t!==null||n?.status&&n?.status>=500)},Nn=class z0{static INSTANCE;apiToken="";firstSeen="";constructor(){}static getInstance(){return this.INSTANCE||(this.INSTANCE=new z0),this.INSTANCE}async validateSession(t){return this.post("/v1/event/validate-session",t)}updateUserData(t){this.put("/v1/user/update",t).then(async n=>{S.log("Updated user profile"),await ms.getInstance().storeAndPopulateAuthData(n)}).catch(n=>{S.error("Error saving user profile",n)})}trackOrder(t){this.post("/v1/event/track-order",t).then(()=>{S.log("Sent Order")}).catch(n=>{S.error("Error sending track order",n)})}generateDiscount(t){return this.post("/v1/event/generate-discount",t)}updateDeviceProps(t){this.put("/v1/device/update",t).then(()=>{S.log("Updated device property")}).catch(async n=>{S.error("Error saving device property",n)})}setAPIToken(t){this.apiToken=t??""}setFirstSeen(t){this.firstSeen=t?.toUTCString()??""}get(t){return this.requestBackend("GET",t)}post(t,n){return this.requestBackend("POST",t,n)}put(t,n){return this.requestBackend("PUT",t,n)}async requestBackend(t,n,r){if(!hs.isECommerceApp()&&!hs.getFlags().allowEvents)return S.log(`Rejecting ${t} ${n} as this is not e-commerce app`),Promise.reject();n.startsWith("http")||(n=Dn.apiURL+n);let i=this.getDefaultHeaders(),o="keepalive"in new Request("");if(r&&!o&&JSON.stringify(r).includes("CE App Background"))try{return this.performXMLHttpRequest(n,i,r)}catch(a){return _t.getInstance().captureException(a,{body:JSON.stringify(r)}),{}}let s={method:t,headers:i,keepalive:!0};return r&&(s.body=JSON.stringify(r)),this.request(n,s)}async request(t,n){let r=w(w({},L2),n),i=await k2(t,r);if(!i.ok)throw i;return i.json()}performXMLHttpRequest(t,n,r){return new Promise((i,o)=>{let s=new XMLHttpRequest;s.open("POST",t,!0),n.forEach((a,l)=>{s.setRequestHeader(l,a)}),s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE)if(s.status>=200&&s.status<300)try{s.getResponseHeader("Content-Type")?.includes("application/json")?i(JSON.parse(s.responseText)):o(new Error("Content-Type of response header is not json"))}catch(a){o(a)}else o(new Error(`Received status - ${s.status}(${s.statusText})`))},s.onerror=()=>{o(new Error("Network error occurred during the request."))},s.send(JSON.stringify(r))})}getDefaultHeaders(){let t=new Headers;return t.set("content-type","application/json"),t.set("cooee-sdk",k.SDK),t.set("cooee-sdk-code",k.SDK_VERSION_CODE.toString()),t.set("cooee-sdk-version",k.SDK_VERSION),t.set("cooee-first-seen",this.firstSeen),this.apiToken&&t.append("cooee-sdk-token",this.apiToken),Dn.debug&&t.set("cooee-sdk-debug",String(1)),t}},Ka=class{static sentryService=_t.getInstance();static httpApiService=Nn.getInstance();static async refreshItems(e){if(e.isCartEmbed()&&!e.isSubscriptionUpsell()){let i=(await je.getCurrent().getNormalisedCart()).items.map(o=>o.mID);e.items=e.items.filter(o=>!i.includes(o.mID))}if(Dt.get().currencyCount<=1)return e.items;let t=e.items.length,n=e.items.map(i=>this.updatedItem(i,e.engagementID)),r=(await Promise.all(n)).filter(i=>i!=null);if(t&&!r.length){let i="Failed to fetch any product from Ajax API",o=new Ye(k.EVENT_CAMPAIGN_FAILED,{reason:i,currency:e.currency},e);throw Le.getInstance().sendEvent(o),new Error(i)}if(e.isCartRecovery()){let i=je.getCurrent().items,o=[];for(let s of r)for(let a of s.vars){if(!a.isAvailable)continue;let l=i.find(h=>h.variant_id.toString()===a.mID);if(!l)continue;let c=new Wn(s);c.name=l.title;let d=new ii(a);d.name=l.variant_title,d.price.d=l.discounted_price/100,c.variants=[d],o.push(c)}return o}return r}static async updatedItem(e,t){let n=e,r,i=ht.getRootPrefix()+`products/${n.slug}.js`;try{r=await this.httpApiService.request(i)}catch(s){return S.error(`Failed to fetch ${i}`,s),s instanceof Response?this.sentryService.captureMessage(`Shopify product fetch failed ${s.status}`,"error",{item:n,path:i},{"engagement.id":t}):this.sentryService.captureException(s,{item:n,path:i},{"engagement.id":t}),null}if(!r)return S.error("Item not found after AJAX call for:",n),null;n.name=r.title;let o=n.selectedOrFirstVariant.value;return n.vars.map(s=>{let a=r.variants.find(l=>l.id===+s.mID);s.name=a.title,s.isAvailable=a.available,s.price.d=a.price?a.price/100:a.price,s.price.effective=s.price.d,s.price.cmp=a.compare_at_price?a.compare_at_price/100:a.compare_at_price,+o.mID===a.id&&(o.effectivePrice.value=s.price.d)}),n}},Za=class{constructor(e){this.scalingFactor=e}getLayoutStyles(e){if(!e)return{display:"block"};let t={display:e.disp};return e.of&&(t.objectFit=e.of),e.pos==="absolute"&&(t.width="auto !important",t.position="absolute",t.right=e.right+"px",t.left=e.left+"px",t.top=e.top+"px",t.bottom=e.bottom+"px"),t}getSizeStyles(e){let t={};return e?.w&&(t.width=e.w),e?.h&&(t.height=e.h),e?.maxW&&(t.maxWidth=e.maxW),e?.maxH&&(t.maxHeight=e.maxH),e?.minW&&(t.minWidth=e.minW),e?.minH&&(t.minHeight=e.minH),t}getBorderStyles(e){if(!e)return{};let t={};return e.radius&&e.radius>0&&(t.borderRadius=this.getSizePx(e.radius)),e.width&&e.width>0&&(t.borderWidth=this.getSizePx(e.width),t.borderStyle=e.style?.toLowerCase(),e.color?this.getColourStyles(e.color,"border-color",t):t.borderColor="black"),t}getFlexStyles(e){return e?{gap:e.gap+"px",flexWrap:e.wrap,flexDirection:e.dir,justifyContent:e.jc,alignItems:e.ai,width:"100%"}:{}}getSpaceStyles(e){let t={};return e?(t.paddingTop=this.getSizePx(e.pt),t.paddingBottom=this.getSizePx(e.pb),t.paddingLeft=this.getSizePx(e.pl),t.paddingRight=this.getSizePx(e.pr),t.marginTop=this.getSizePx(e.mt),t.marginBottom=this.getSizePx(e.mb),t.marginLeft=e.cent?"auto":this.getSizePx(e.ml),t.marginRight=e.cent?"auto":this.getSizePx(e.mr),t):(t.margin="0 !important",t.padding="unset",t)}getBackgroundStyles(e){if(!e)return{};let t={};if(e.glossy){let n="backdrop-filter",r="-webkit-"+n,i=`blur(${e.glossy.radius}px)`;if(!CSS.supports(r,i)&&!CSS.supports(n,i))return{background:e.glossy.fallback.rgba};if(t[r]=i,t[n]=i,e.glossy.color)return this.getColourStyles(e.glossy.color,"background",t)}else if(e.solid){if(e.solid.grad)return this.getGradientStyles(e.solid.grad,"background",t);if(e.solid.hex)return{backgroundColor:e.solid.rgba}}else if(e.img){if(!e.img.src)return{};let n=(e.img.a??0)/100;t.background=`linear-gradient(rgba(0, 0, 0, ${n}), rgba(0, 0, 0, ${n})),url("${e.img.src}") no-repeat center`,t.backgroundSize="cover",e.img.a&&(t["-webkit-backdrop-filter"]=`opacity(${e.img.a})`,t.backdropFilter=`opacity(${e.img.a})`)}return t}getGradientStyles(e,t,n){if(n??={},e.type==="LINEAR"){let r=`linear-gradient(${e.ang}deg, ${e.c1}, ${e.c2}`;e.c3&&(r+=`, ${e.c3}`),r+=")",n[t]=r}return n}getColourStyles(e,t="color",n){return n??={},e?e.grad?this.getGradientStyles(e.grad,t,n):(e.hex&&(n[t]=e.rgba),n):n}getSizePx(e){return this.getScaledSize(e)+"px"}getScaledSize(e){return(e??0)*this.scalingFactor}},mt=class extends ni{stylesConverter=new Za(1);renderer=Zn.get();mediaStyle={};deviceTypeKey;clickExecutor;componentWillMount(){this.deviceTypeKey=this.renderer.isMobile()?"sm":"lg",this.clickExecutor=new ho(this.props.triggerContext,this.props.element)}getCompiledStyles(){return this.putStyleAccordingToDevice(),w(w(ne(w(w(w(w(w(w({},this.stylesConverter.getFlexStyles(this.mediaStyle.flex)),this.stylesConverter.getBackgroundStyles(this.mediaStyle.bg)),this.stylesConverter.getBorderStyles(this.mediaStyle.br)),this.stylesConverter.getSizeStyles(this.mediaStyle.size)),this.stylesConverter.getSpaceStyles(this.mediaStyle.spc)),this.stylesConverter.getLayoutStyles(this.mediaStyle.lout)),{boxSizing:"border-box",outline:"none"}),this.getComponentStyles()),this.props.style)}matchWhenCondition(e){if(!e?.op)return!0;let{lhs:t,rhs:n}=e;switch(e.op){case"eq":return t===n;case"gt":return+t>+n;case"gte":return+t>=+n;case"lt":return+t<+n;case"lte":return+t<=+n;case"ne":return t!==n;case"null":return t==null;case"empty":return t.trim()==="";default:return S.error(`Invalid operator found for when condition - ${e.op}`),!1}}putStyleAccordingToDevice(){let e=this.props.element;this.mediaStyle=e.style.lg,this.renderer.isMobile()&&e.style.sm&&Object.keys(e.style.sm).length&&(this.mediaStyle=w(w({},this.mediaStyle),e.style.sm))}sendTriggerClicked(e,t){this.clickExecutor.sendTriggerClicked(e,t)}async onClick(e){await this.clickExecutor.execute(e)}},F2=0,dne=Array.isArray;function W(e,t,n,r,i,o){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--F2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return nt.vnode&&nt.vnode(c),c}var tr=class extends mt{componentDidMount(){this.setState(()=>({text:this.props.element.text})),wn(this.onChange.bind(this))}componentWillReceiveProps(e){this.props.element=e.element,this.onChange()}render(){let e=this.getCompiledStyles(),t=this.state.text;return t||(e.display="none",t=""),W("div",{style:e,onClick:this.customOnClick.bind(this),className:"lc-text",children:W("span",{style:this.getSpanStyle(),dangerouslySetInnerHTML:{__html:t}})})}customOnClick(){this.props.onClick&&this.props.onClick("title")}onChange(){if(this.props.element.text==null)return;let e=this.props.triggerContext.triggerData,t={bundle:e.discountData.value,customer:e.customerData,cart:e.getCartMagicVariables()},n=fn.render(JSON.stringify(this.props.element),t),r=new hn(JSON.parse(n));if(!this.matchWhenCondition(r.when)){this.setState(()=>({text:""}));return}this.setState(()=>({text:r.text}))}getTypoStyles(){let e={},t=this.mediaStyle.typo??new bn;return e.letterSpacing=t.letterSpacing,e.fontSize=t.fs+"px",e.lineHeight=t.lh,e.fontFamily=t.fam.name||"inherit",e.textAlign=t.alignment,e.fontWeight=t.fw,e.textDecoration=t.td??"none",this.stylesConverter.getColourStyles(t.tc,"color",e),e}getComponentStyles(){return w({},this.getTypoStyles())}getSpanStyle(){return{overflow:"hidden",display:"-webkit-box",webkitBoxOrient:"vertical",webkitLineClamp:2,color:"inherit",fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit"}}},gs=class extends tr{render(){return W("div",{style:this.getCompiledStyles(),className:"lc-button",onClick:()=>this.onClick({item:this.props.item}),children:W("span",{style:this.getSpanStyle(),dangerouslySetInnerHTML:{__html:this.state.text}})})}getComponentStyles(){return ne(w({},super.getComponentStyles()),{cursor:"pointer"})}},B_=class extends ni{render(){if(this.props.element.show[this.props.label.toLowerCase()])return this.props.element.lblPos==="end"?W("div",{style:w(w({},this.getElementStyle()),this.props.styles),children:[W("span",{children:this.props.time}),W("span",{style:this.getTimeLabelStyle(),children:this.props.label})]}):W("div",{style:w(w({},this.getElementStyle()),this.props.styles),children:[W("span",{style:this.getTimeLabelStyle(),children:this.props.label}),W("span",{children:this.props.time})]})}getDesign(){}getTimeLabelStyle(){return{fontSize:"0.5em",alignContent:"center"}}getElementStyle(){let e={display:"flex",flexDirection:"column",placeContent:"center center",textAlign:"center"};return this.props.element.horizontal&&(e.gridTemplateColumns="repeat(2, minmax(0, 1fr))"),e}},xl=class extends tr{labels={Days:"00",Hours:"00",Minutes:"00",Seconds:"00"};componentWillMount(){super.componentWillMount(),this.setState(()=>w({},this.labels)),this.processAndStartTimer()}render(){return W("div",{style:this.getLabelsParentStyle(),children:Object.keys(this.labels).map(e=>W(B_,{styles:this.getCompiledStyles(),label:e,time:this.state[e],element:this.props.element}))})}getLabelsParentStyle(){return{display:"grid",justifyContent:"center",gridTemplateColumns:"repeat(4, auto)",gap:this.stylesConverter.getSizePx(this.props.element.gap)}}getDisplayStyles(){return{display:"grid",placeContent:"center center"}}getComponentStyles(){return w(w({},super.getComponentStyles()),this.getDisplayStyles())}processAndStartTimer(){this.props.element.timer.start(this.props.element.timerType,e=>{this.labels.Days=String(e.days).padStart(2,"0"),this.labels.Hours=String(e.hours).padStart(2,"0"),this.labels.Minutes=String(e.minutes).padStart(2,"0"),this.labels.Seconds=String(e.seconds).padStart(2,"0"),this.setState(()=>w({},this.labels))})}},Nl=class extends mt{componentDidMount(){wn(()=>{this.setState(()=>({checked:this.props.item.selected.value}))})}render(){return W("div",{style:this.getCompiledStyles(),className:"lc-checkbox",children:W("input",{type:"checkbox",checked:this.state.checked,onChange:this.onChange.bind(this),style:{appearance:"auto"}})})}onChange(e){let{checked:t}=e.target;this.props.item.selected.value=t}getTypoStyles(){let e={},t=this.mediaStyle.typo??new bn;return e.textAlign=t.alignment,e.justifyContent=t.alignment,e}getComponentStyles(){return ne(w({},this.getTypoStyles()),{display:"flex"})}},Pi=class extends mt{constructor(e,t){super(e,t)}render(){let e=this.props.element[this.deviceTypeKey],t=e?.src||this.props.element.src||this.props.element.lg?.src;return W("img",{onClick:this.customOnClick.bind(this),className:"lc-image",alt:e?.name||"Image",onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),src:t,style:this.getCompiledStyles()})}customOnClick(){this.props.onClick&&this.props.onClick("image")}getComponentStyles(){let e=this.mediaStyle.lout;if(!e||e.pos!=="absolute")return{};let t={zIndex:e.zIndex};return this.mediaStyle.size?.w&&(t.width=this.mediaStyle.size.w),this.mediaStyle.size?.h&&(t.height=this.mediaStyle.size.h),t}handleMouseEnter(e){let t=this.props.element[this.deviceTypeKey]?.secondarySrc;t&&(e.currentTarget.src=t)}handleMouseLeave(e){e.currentTarget.src=this.props.element[this.deviceTypeKey]?.src}},ki=class extends mt{render(){if(!(this.props.element.hide||!this.matchWhenCondition(this.props.element.when)))return W("div",{style:this.getCompiledStyles(),class:"lc-flexbox",children:W(mo,{elements:this.props.elements,element:this.props.element,triggerContext:this.props.triggerContext})})}getComponentStyles(){let e=this.mediaStyle.flex??new $a,t={display:"flex",gap:e.gap+"px",flexWrap:e.wrap,flexDirection:e.dir,justifyContent:e.jc,alignItems:e.ai};return e.wrap==="nowrap"&&e.scroll&&(e.dir==="column"?t["overflow-y"]="auto":t["overflow-x"]="auto"),t}},Rl=class extends ki{render(){if(!(this.props.element.hide||!this.matchWhenCondition(this.props.element.when)))return W("div",{style:this.getCompiledStyles(),class:"lc-flexbox",children:W(Xa,{elements:this.props.elements,element:this.props.element,triggerContext:this.props.triggerContext,item:this.props.item,noLinks:this.props.noLinks})})}},Al=class extends mt{render(){return W("select",{style:this.getCompiledStyles(),value:this.props.selectedVariant.selectedSellingPlan.value?.mID??"",onChange:this.onChange.bind(this),disabled:this.state.disabled,className:"lc-dropdown",children:this.createSelectItems()})}componentDidMount(){wn(()=>{this.setState(()=>({disabled:this.props.triggerContext.triggerData.isBundle()?!this.props.item.selected.value:!1}))})}getTypoStyles(){let e={},t=this.mediaStyle.typo??new bn;return e.letterSpacing=t.letterSpacing,e.fontSize=t.fs+"px",e.lineHeight=t.lh,e.fontFamily="inherit",e.textAlign=t.alignment,e.fontWeight=t.fw,this.stylesConverter.getColourStyles(t.tc,"color",e),e.boxShadow="none",e}getComponentStyles(){let e={};return this.props.selectedVariant.sellingPlans?.length||(e.visibility="hidden"),w(w({},e),this.getTypoStyles())}createSelectItems(){let e=[],t=this.props.selectedVariant;if(!t.sellingPlans?.length)return[];this.props.triggerContext.triggerData.skipSubscribedItems?t.selectedSellingPlan.value||(t.sellingPlans[0].isSelected=!0,t.changeSellingPlan(t.sellingPlans[0])):e.push(W("option",{value:"",selected:!t.selectedSellingPlan,children:"One time purchase"}));for(let n of t.sellingPlans??[])e.push(W("option",{value:n.mID,selected:n.isSelected,children:n.name}));return e}onChange(e){let t=e.target.value;t?this.props.selectedVariant.selectedSellingPlan.value=this.props.selectedVariant.sellingPlans.find(n=>n.mID===t):this.props.selectedVariant.selectedSellingPlan.value=void 0}},gT=Pe(lf()),Ml=class extends mt{colorRegex=new RegExp('fill="#[a-zA-Z0-9]+"');constructor(){super(),fn.escape=gT.MustacheUtils.escapeHtml}render(){let e=this.getCompiledStyles(),t=this.getRating();return t||(e.display="none",t=""),W("div",{style:e,className:"lc-star-rating",dangerouslySetInnerHTML:{__html:t}})}getRating(){let e=this.props.element.fullStar,t=this.props.element.halfStart,n={size:this.props.element.iconSize,color:this.props.element.c.hex};e=fn.render(e,{svg:n}),t=fn.render(t,{svg:n});let r=this.props.review;if(!r?.rating)return"";let i="";if(this.props.element.showSingleStar)i=e;else{let o=5,s=`${r.rating}`.split(".");for(let a=0;a<+s[0];a++)i+=e,o--;s[1]&&(i+=t,o--);for(let a=0;a<o;a++)i+=e.replace(this.colorRegex,'fill="#f1f1f1')}return i}getComponentStyles(){return{display:"flex",alignItems:"center"}}},Ol=class extends mt{render(){return W("select",{style:this.getCompiledStyles(),value:this.props.item.selectedOrFirstVariant.value.mID,onChange:this.onChange.bind(this),disabled:this.state.disabled,className:"lc-dropdown",children:this.createSelectItems()})}componentDidMount(){wn(()=>{this.setState(()=>({disabled:this.props.triggerContext.triggerData.isBundle()?!this.props.item.selected.value:!1}))})}getTypoStyles(){let e={},t=this.mediaStyle.typo??new bn;return e.letterSpacing=t.letterSpacing,e.fontSize=t.fs+"px",e.lineHeight=t.lh,e.fontFamily="inherit",e.textAlign=t.alignment,e.fontWeight=t.fw,this.stylesConverter.getColourStyles(t.tc,"color",e),e.boxShadow="none",e}getComponentStyles(){let e={};return this.props.item.vars?.length===1&&this.props.item.vars[0].name==="Default Title"&&(e.visibility="hidden"),w(w({},e),this.getTypoStyles())}createSelectItems(){let e=[];for(let t of this.props.item.vars)e.push(W("option",{value:t.mID,disabled:!t.isAvailable,children:t.name}));return e}onChange(e){let t=e.target.value;this.props.item.selectedOrFirstVariant.value=this.props.item.vars.find(n=>n.mID===t)}},Xa=class extends mt{constructor(e,t){super(e,t),this.setState(()=>({decoration:"unset"}))}renderElement(e){if(!(e.hide||!this.matchWhenCondition(e.when))){if(e.t===4){let t=e;return W(Rl,{element:t,triggerContext:this.props.triggerContext,elements:t.elems,item:this.props.item,noLinks:this.props.noLinks})}if(e.t===6)return this.props.triggerContext.triggerData.isBundle()?W(Nl,{element:e,item:this.props.item,triggerContext:this.props.triggerContext}):void 0;if(e.t===13){let t=e,n=this.props.item,r=n.variantImage??n.imageURL,i=n.variantSecondaryImage??n.secondaryImageURL;t.lg=t.sm={src:r,name:n.name,secondarySrc:i};let o=W(Pi,{element:t,onClick:this.customOnClick.bind(this),triggerContext:this.props.triggerContext});return this.props.noLinks?o:W("a",{href:this.props.item.selectedOrFirstVariant.value.link,style:{display:"block"},children:o})}if(e.t===14)return this.renderProductTitle(e);if(e.t===15){let t=e;return this.props.triggerContext.triggerData.isCartEmbed()&&this.props.item.vars?.length===1&&this.props.item.vars[0].name==="Default Title"?void 0:W(Ol,{element:t,item:this.props.item,triggerContext:this.props.triggerContext})}return e.t===16?W(Al,{element:e,selectedVariant:this.props.item.selectedOrFirstVariant.value,item:this.props.item,triggerContext:this.props.triggerContext}):e.t===19?W(Ml,{element:e,triggerContext:this.props.triggerContext,review:this.props.item.reviews}):e.t===18||e.t===3?W(gs,{element:e,item:this.props.item,triggerContext:this.props.triggerContext}):W(mo,{elements:[e],element:this.props.element,triggerContext:this.props.triggerContext})}}render(){return this.props.elements.map(e=>this.renderElement(e))}getComponentStyles(){return{}}renderProductTitle(e){let t=W(tr,{element:e,onClick:this.customOnClick.bind(this),triggerContext:this.props.triggerContext});return this.props.noLinks?t:W("a",{href:this.props.item.selectedOrFirstVariant.value.link,style:{display:"block",textDecoration:this.state.decoration},onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),children:t})}customOnClick(e){this.sendTriggerClicked([this.props.item.toEmbed()],{from:e})}onMouseEnter(){this.setState(()=>({decoration:"underline"}))}onMouseLeave(){this.setState(()=>({decoration:"unset"}))}},yT=Pe(Mf()),ys=class extends mt{productElement;constructor(e,t){super(e,t),this.setState(()=>({decoration:"unset"}))}render(){let e=JSON.stringify(this.props.element),t=fn.render(e,this.getProductData());if(this.productElement=new fo(JSON.parse(t)),!(this.productElement.hide||!this.matchWhenCondition(this.productElement.when)))return W("div",{style:w({},this.getCompiledStyles()),class:"lc-single-product",children:W(Xa,{element:this.productElement,elements:this.productElement.elems,triggerContext:this.props.triggerContext,item:this.props.item,noLinks:this.productElement.noLinks})})}getComponentStyles(){return{flexShrink:0}}getProductData(){if(!this.props.item)return{};let e=this.props.item.selectedOrFirstVariant.value,t=e.price,n=this.props.item.name,r=this.props.item.category,i=de.formatCurrency(t.d,!0),o=this.props.item.variantImage??this.props.item.imageURL,s=this.props.item.meta,a=this.props.item.reviews?.rating,l=this.props.item.reviews?.totalReviews,c=t.cmp&&t.cmp>t.d,d=this.props.triggerContext.hasManipulatedProductQuantity()?this.props.triggerContext.getManipulatedQuantity(this.props.item.quantity):this.props.item.quantity,h={name:n,price:i,quantity:d,image_url:o,meta:s,category:r,rating:a,reviews:l},f=e.effectivePrice.value!==t.d;f&&(h.effective_price=de.formatCurrency(e.effectivePrice.value));let g=this.props.triggerContext.triggerData.discount.type===yT.DiscountType.BXGY;if(!f&&g&&(h.effective_price=de.formatCurrency(e.effectivePrice.value),h.price=""),c){h.compare_price=de.formatCurrency(t.cmp);let b=t.cmp-t.d;h.discount_percent=(b/t.cmp*100).toFixed(0),h.discount_price=de.formatCurrency(b)}let m={name:e.name,quantity:this.props.triggerContext.hasManipulatedProductQuantity()?this.props.triggerContext.getManipulatedQuantity(e.quantity):e.quantity};return{product:h,variant:m,svg:{color:()=>"{{svg.color}}",size:()=>"{{svg.size}}"}}}};function hp(){return new Promise(e=>{let t="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js";if(Array.from(document.scripts).some(r=>r.src.includes(t))){e();return}let n=document.createElement("script");n.src=t,n.onload=()=>{e()},document.body.appendChild(n)})}function mp(e,t){if(!e||!window.Swiper)return;let n=new window.Swiper(e,{loop:!0,slidesPerView:t.maxInRow,spaceBetween:t.gap+"px",pagination:{type:t.pagination.type,el:e.querySelector(".swiper-pagination"),clickable:!0,renderBullet:(r,i)=>`
47
47
  <span class="${i}"
48
48
  style="background-color: ${t.pagination.color?.rgba};"></span>
49
49
  `,renderProgressbar:r=>`