PageSourceSearch

https://www.futek.com/main-weeiqz4g.js

js futek.com collected 2026-09-25 14:01:22 UTC 862,982 bytes, 349 lines download raw bytes

1import{b as zu}from"./chunk-GPUW65OL.js";import"./chunk-ICU3RGPI.js";import{a as Zf}from"./chunk-AJZ6K3WA.js";import{b as Yf}from"./chunk-GPK7HBBV.js";import{a as p0}from"./chunk-6DNREUBT.js";import"./chunk-ANJOYJYX.js";import"./chunk-3SX2F44P.js";import"./chunk-MMVJUNT2.js";import"./chunk-KAGO6UKP.js";import"./chunk-GBHPBWHX.js";import{b as Gn}from"./chunk-HI4XWG22.js";import{a as C0}from"./chunk-2LRQRRXE.js";import{a as il}from"./chunk-S5BIYREC.js";import{a as Vf}from"./chunk-Q3F2BTUD.js";import{a as nl}from"./chunk-D5SET7ZR.js";import"./chunk-6HG7PKVC.js";import{a as Df,b as S0,c as x0}from"./chunk-AF34HNCT.js";import"./chunk-CTBEVMUO.js";import{b as $u}from"./chunk-2FVCGZRJ.js";import{b as v0}from"./chunk-5WWGJRQZ.js";import"./chunk-BG4ZG7S6.js";import{a as Hf}from"./chunk-4RSD4HMO.js";import{a as t0}from"./chunk-GSVXG26R.js";import{a as n0}from"./chunk-5EA26AUE.js";import{a as Jf,c as e0,d as Wu}from"./chunk-SEZJFHW7.js";import{a as g0}from"./chunk-OBSZZO2Y.js";import{a as m0,e as f0}from"./chunk-TB7OVN47.js";import{a as Rf}from"./chunk-VQNASVMS.js";import{a as Nf,b as Gu,c as os,d as Gf,e as c0,f as u0,g as qu}from"./chunk-VTID4JGE.js";import{a as qn,b as l0}from"./chunk-MAT5762K.js";import"./chunk-3MHP62PP.js";import{b as ls,e as s0}from"./chunk-IBHTAMX4.js";import"./chunk-SVSITSR5.js";import"./chunk-2SDBJNMJ.js";import"./chunk-AMCFBL7G.js";import"./chunk-2Y7DQS6Q.js";import{a as ur}from"./chunk-2AGERO5T.js";import{c as tl}from"./chunk-ZJKDYWEW.js";import"./chunk-CZGRVIAI.js";import{a as _0}from"./chunk-4KMLHAWW.js";import{a as el,b as as}from"./chunk-BNG46WKZ.js";import{$a as ui,$b as $a,$c as mo,A as Dm,Aa as jm,Ab as Ga,Ac as Xa,Ad as Za,B as Nm,Ba as v,Bc as ts,C as Lm,Cc as Cf,Cd as Hi,D as lr,Da as Qm,Db as Li,Dc as pi,E as Bm,Ea as po,Eb as Et,Ec as ns,Ed as ln,F as Fa,Fa as mt,Fb as nt,G as cr,Ga as ai,Gb as Yr,Gc as is,H as Rm,Ha as Ft,Hd as Ja,I as ot,Ia as Ht,Ib as nf,J as Re,Ja as p,Jb as rf,Jc as rs,K as Rt,Ka as u,Kc as Vu,L as we,La as k,Lc as Ka,M as Fm,Ma as nn,Mb as sf,Mc as Ya,Md as $n,N as me,Na as rn,Nc as Fi,O as Rn,Oa as Xm,Od as Vi,P as Ha,Pa as $,Pb as de,Pd as pr,Q as ne,Qb as of,R as Se,Ra as N,Rc as Vn,S as Me,Sa as S,Sb as af,Sc as bf,Se as d0,T as Fn,Tb as lf,Tc as Un,U as Hm,Ub as Bi,Uc as wf,Ud as At,Va as Km,Vb as Hu,Vc as yf,W as Kr,Wa as xt,Wb as cf,Wc as Ef,X as Vm,Xa as Ym,Xb as uf,Xc as Tf,Xd as Uf,Y as Du,Yb as pf,Yc as Mf,Yd as Wn,Z as A,Za as li,Zb as df,Zc as Pf,Zd as $f,_ as I,_a as ci,_b as hf,_c as Af,_d as Wf,a as P,ab as He,ac as sn,ad as on,b as _e,bb as f,bc as Wa,bd as If,be as qf,ca as uo,cb as F,cc as mf,cd as ft,d as Pm,da as Um,db as R,dc as ff,dd as it,de as zf,ea as Va,eb as Zm,ec as Tt,ed as kf,ee as jf,fa as Di,fb as J,fc as Mt,fd as Uu,fe as Qf,g as h,ga as Gm,gb as ee,gc as Zr,gd as Of,h as co,ha as $m,hb as te,hc as Jr,i as Am,ia as Ge,ib as Ni,ic as qa,id as Y,ie as Xf,if as h0,j as ke,ja as Nu,jb as Jm,jc as Pt,jd as Lf,je as Kf,k as Na,kb as tt,kc as es,lb as Pn,lc as za,ld as Bf,m as La,ma as $e,mc as gf,n as Bt,na as X,nb as Bu,nc as _f,ne as i0,o as Ba,oc as vf,od as Vt,oe as r0,p as tn,pc as Sf,pd as an,pe as o0,q as je,qa as Wm,qb as fe,qd as Ff,qe as a0,r as Im,rb as xe,s as Ou,sa as m,sb as ho,sc as Ri,t as km,ta as U,u as ar,ub as We,v as Om,va as qm,vb as ef,vc as ja,w as Ra,wa as Ua,wb as Ru,wc as Qa,x as Qr,xa as Lu,xb as tf,xc as xf,y as Xr,ya as zm,yc as Ce,yd as ss,z as Qe,za as M,zb as Fu,zc as Hn}from"./chunk-GLMOMHUQ.js";var b0=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*
1)`,"g"),Es=class n{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){let t=[],i=(l,c)=>{c.notSelectors.length>0&&!c.element&&c.classNames.length==0&&c.attrs.length==0&&(c.element="*"),l.push(c)},r=new n,s,o=r,a=!1;for(b0.lastIndex=0;s=b0.exec(e);){if(s[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new n,r.notSelectors.push(o)}let l=s[2];if(l){let d=s[3];d==="#"?o.addAttribute("id",l.slice(1)):d==="."?o.addClassName(l.slice(1)):o.setElement(l)}let c=s[4];if(c&&o.addAttribute(o.unescapeAttribute(c),s[6]),s[7]&&(a=!1,o=r),s[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(t,r),r=o=new n}}return i(t,r),t}unescapeAttribute(e){let t="",i=!1;for(let r=0;r<e.length;r++){let s=e.charAt(r);if(s==="\\"){i=!0;continue}if(s==="$"&&!i)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);i=!1,t+=s}return t}escapeAttribute(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&this.classNames.length==0&&this.attrs.length==0&&this.notSelectors.length===0}hasElementSelector(){return!!this.element}
1setElement(e=null){this.element=e}getAttrs(){let e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,t=""){this.attrs.push(e,t&&t.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(t=>e+=`.${t}`),this.attrs)for(let t=0;t<this.attrs.length;t+=2){let i=this.escapeAttribute(this.attrs[t]),r=this.attrs[t+1];e+=`[${i}${r?"="+r:""}]`}return this.notSelectors.forEach(t=>e+=`:not(${t})`),e}},dl=class n{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(e){let t=new n;return t.addSelectables(e,null),t}addSelectables(e,t){let i=null;e.length>1&&(i=new gp(e),this._listContexts.push(i));for(let r=0;r<e.length;r++)this._addSelectable(e[r],t,i)}_addSelectable(e,t,i){let r=this,s=e.element,o=e.classNames,a=e.attrs,l=new _p(e,t,i);if(s&&(a.length===0&&o.length===0?this._addTerminal(r._elementMap,s,l):r=this._addPartial(r._elementPartialMap,s)),o)for(let c=0;c<o.length;c++){let d=a.length===0&&c===o.length-1,_=o[c];d?this._addTerminal(r._classMap,_,l):r=this._addPartial(r._classPartialMap,_)}if(a)for(let c=0;c<a.length;c+=2){let d=c===a.length-2,_=a[c],x=a[c+1];if(d){let w=r._attrValueMap,C=w.get(_);C||(C=new Map,w.set(_,C)),this._addTerminal(C,x,l)}else{let w=r._attrValuePartialMap,C=w.get(_);C||(C=new Map,w.set(_,C)),r=this._addPartial(C,x)}}}_addTerminal(e,t,i){let r=e.get(t);r||(r=[],e.set(t,r)),r.push(i)}_addPartial(e,t){let i=e.get(t);return i||(i=new n,e.set(t,i)),i}match(e,t){let i=!1,r=e.element,s=e.classNames,o=e.attrs;for(let a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(i=this._matchTerminal(this._elementMap,r,e,t)||i,i=this._matchPartial(this._elementPartialMap,r,e,t)||i,s)for(let a=0;a<s.length;a++){let l=s[a];i=this._matchTerminal(this._classMap,l,e,t)||i,i=this._matchPartial(this._classPartialMap,l,e,t)||i}if(o)for(let a=0;a<o.length;a+=2){let l=o[a],c=o[a+1],d=this._attrValueMap.get(l);c&&(i=this._matchTerminal(d,"",e,t)||i),i=this._matchTerminal(d,c,e,t)||i;let _=this._attrValuePartialMap.get(l);c&&(i=this._matchPartial(_,"",e,t)||i),i=this._matchPartial(_,c,e,t)||i}return i}_matchTerminal(e,t,i,r){if(!e||typeof t!="string")return!1;let s=e.get(t)||[],o=e.get("*");if(o&&(s=s.concat(o)),s.length===0)return!1;let a,l=!1;for(let c=0;c<s.length;c++)a=s[c],l=a.finalize(i,r)||l;return l}_matchPartial(e,t,i,r){if(!e||typeof t!="string")return!1;let s=e.get(t);return s?s.match(i,r):!1}},gp=class{constructor(e){this.selectors=e,this.alreadyMatched=!1}},_p=class{constructor(e,t,i){this.selector=e,this.cbContext=t,this.listContext=i,this.notSelectors=e.notSelectors}finalize(e,t){let i=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(i=!dl.createNotMatcher(this.notSelectors).match(e,null)),i&&t&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),i}};
1var mr=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(mr||{}),qd=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(qd||{}),vo=function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n}(vo||{}),w0={name:"custom-elements"},y0={name:"no-errors-schema"};var Ne=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(Ne||{});function o2(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...e]}function a2(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return n.element?[5,n.element,...n.attrs,...e]:n.attrs.length?[3,...n.attrs,...e]:n.classNames&&n.classNames.length?[9,...n.classNames]:[]}function l2(n){let e=o2(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(i=>a2(i)):[];return e.concat(...t)}function zd(n){return n?Es.parse(n).map(l2):[]}var hl;function c2(n){return h2(d2(n.nodes).join("")+`[${n.meaning}]`)}function u2(n,e){return n.id||f1(n,e)}function f1(n,e){let t=new vp(e),i=n.nodes.map(r=>r.visit(t,null));return g1(i.join(""),n.meaning)}var ml=class{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(i=>i.visit(this)).join(", ")}]`}visitIcu(e,t){let i=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expression}, ${e.type}, ${i.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map(i=>i.visit(this)).join(", ")}</ph name="${e.closeName}">`}visitPlaceholder(e,t){return e.value?`<ph name="${e.name}">${e.value}</ph>`:`<ph name="${e.name}"/>`}visitIcuPlaceholder(e,t){return`<ph icu name="${e.name}">${e.value.visit(this)}</ph>`}visitBlockPlaceholder(e,t){return`<ph block name="${e.startName}">${e.children.map(i=>i.visit(this)).join(", ")}</ph name="${e.closeName}">`}},p2=new ml;function d2(n){return n.map(e=>e.visit(p2,null))}var vp=class extends ml{constructor(e){super(),this.preservePlaceholders=e}visitPlaceholder(e,t){return this.preservePlaceholders?super.visitPlaceholder(e,t):`<ph name="${e.name}"/>`}visitIcu(e){let t=Object.keys(e.cases).map(i=>`${i} {${e.cases[i].visit(this)}}`);return`{${e.type}, ${t.join(", ")}}`}};function h2(n){hl??=new TextEncoder;let e=[...hl.encode(n)],t=g2(e,jd.Big),i=e.length*8,r=new Uint32Array(80),s=1732584193,o=4023233417,a=2562383102,l=271733878,c=3285377520;t[i>>5]|=128<<24-i%32,t[(i+64>>9<<4)+15]=i;for(let d=0;d<t.length;d+=16){let _=s,x=o,w=a,C=l,T=c;for(let D=0;D<80;D++){D<16?r[D]=t[d+D]:r[D]=ju(r[D-3]^r[D-8]^r[D-14]^r[D-16],1);let L=m2(D,o,a,l),B=L[0],re=L[1],le=[ju(s,5),B,c,re,r[D]].reduce(cs);c=l,l=a,a=ju(o,30),o=s,s=le}s=cs(s,_),o=cs(o,x),a=cs(a,w),l=cs(l,C),c=cs(c,T)}return fo(s)+fo(o)+fo(a)+fo(l)+fo(c)}function fo(n){return(n>>>0).toString(16).padStart(8,"0")}function m2(n,e,t,i){return n<20?[e&t|~e&i,1518500249]:n<40?[e^t^i,1859775393]:n<60?[e&t|e&i|t&i,2400959708]:[e^t^i,3395469782]}function E0(n){hl??=new TextEncoder;let e=hl.encode(n),t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=T0(t,e.length,0),r=T0(t,e.length,102072);return i==0&&(r==0||r==1)&&(i=i^319790063,r=r^-1801410264),BigInt.asUintN(32,BigInt(i))<<BigInt(32)|BigInt.asUintN(32,BigInt(r))}function g1(n,e=""){let t=E0(n);return e&&(t=BigInt.asUintN(64,t<<BigInt(1))|t>>BigInt(63)&BigInt(1),t+=E0(e)),BigInt.asUintN(63,t).toString()}function T0(n,e,t){let i=2654435769,r=2654435769,s=0,o=e-12;for(;s<=o;s+=12){i+=n.getUint32(s,!0),r+=n.getUint32(s+4,!0),t+=n.getUint32(s+8,!0);let l=M0(i,r,t);i=l[0],r=l[1],t=l[2]}let a=e-s;return t+=e,a>=4?(i+=n.getUint32(s,!0),s+=4,a>=8?(r+=n.getUint32(s,!0),s+=4,a>=9&&(t+=n.getUint8(s++)<<8),a>=10&&(t+=n.getUint8(s++)<<16),a===11&&(t+=n.getUint8(s++)<<24)):(a>=5&&(r+=n.getUint8(s++)),a>=6&&(r+=n.getUint8(s++)<<8),a===7&&(r+=n.getUint8(s++)<<16))):(a>=1&&(i+=n.getUint8(s++)),a>=2&&(i+=n.getUint8(s++)<<8),a===3&&(i+=n.getUint8(s++)<<16)),M0(i,r,t)[2]}
1function M0(n,e,t){return n-=e,n-=t,n^=t>>>13,e-=t,e-=n,e^=n<<8,t-=n,t-=e,t^=e>>>13,n-=e,n-=t,n^=t>>>12,e-=t,e-=n,e^=n<<16,t-=n,t-=e,t^=e>>>5,n-=e,n-=t,n^=t>>>3,e-=t,e-=n,e^=n<<10,t-=n,t-=e,t^=e>>>15,[n,e,t]}var jd=function(n){return n[n.Little=0]="Little",n[n.Big=1]="Big",n}(jd||{});function cs(n,e){return f2(n,e)[1]}function f2(n,e){let t=(n&65535)+(e&65535),i=(n>>>16)+(e>>>16)+(t>>>16);return[i>>>16,i<<16|t&65535]}function ju(n,e){return n<<e|n>>>32-e}function g2(n,e){let t=n.length+3>>>2,i=[];for(let r=0;r<t;r++)i[r]=_2(n,r*4,e);return i}function P0(n,e){return e>=n.length?0:n[e]}function _2(n,e,t){let i=0;if(t===jd.Big)for(let r=0;r<4;r++)i+=P0(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)i+=P0(n,e+r)<<8*r;return i}var _1=function(n){return n[n.None=0]="None",n[n.Const=1]="Const",n}(_1||{}),fl=class{constructor(e=_1.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Pi=function(n){return n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None",n}(Pi||{}),Yn=class extends fl{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}},Sn=class extends fl{constructor(e,t,i=null){super(t),this.value=e,this.typeParams=i}visitType(e,t){return e.visitExpressionType(this,t)}};var ga=new Yn(Pi.Dynamic),_n=new Yn(Pi.Inferred),v2=new Yn(Pi.Bool),IN=new Yn(Pi.Int),Qd=new Yn(Pi.Number),v1=new Yn(Pi.String),kN=new Yn(Pi.Function),Zn=new Yn(Pi.None),Oo=function(n){return n[n.Minus=0]="Minus",n[n.Plus=1]="Plus",n}(Oo||{}),W=function(n){return n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Identical=2]="Identical",n[n.NotIdentical=3]="NotIdentical",n[n.Minus=4]="Minus",n[n.Plus=5]="Plus",n[n.Divide=6]="Divide",n[n.Multiply=7]="Multiply",n[n.Modulo=8]="Modulo",n[n.And=9]="And",n[n.Or=10]="Or",n[n.BitwiseOr=11]="BitwiseOr",n[n.BitwiseAnd=12]="BitwiseAnd",n[n.Lower=13]="Lower",n[n.LowerEquals=14]="LowerEquals",n[n.Bigger=15]="Bigger",n[n.BiggerEquals=16]="BiggerEquals",n[n.NullishCoalesce=17]="NullishCoalesce",n}(W||{});function S2(n,e){return n==null||e==null?n==e:n.isEquivalent(e)}function S1(n,e,t){let i=n.length;if(i!==e.length)return!1;for(let r=0;r<i;r++)if(!t(n[r],e[r]))return!1;return!0}function zt(n,e){return S1(n,e,(t,i)=>t.isEquivalent(i))}var Ae=class{constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new jt(this,e,null,t)}key(e,t,i){return new wi(this,e,t,i)}callFn(e,t,i){return new wt(this,e,null,t,i)}instantiate(e,t,i){return new No(this,e,t,i)}conditional(e,t=null,i){return new bi(this,e,t,null,i)}equals(e,t){return new be(W.Equals,this,e,null,t)}notEquals(e,t){return new be(W.NotEquals,this,e,null,t)}identical(e,t){return new be(W.Identical,this,e,null,t)}notIdentical(e,t){return new be(W.NotIdentical,this,e,null,t)}minus(e,t){return new be(W.Minus,this,e,null,t)}plus(e,t){return new be(W.Plus,this,e,null,t)}divide(e,t){return new be(W.Divide,this,e,null,t)}multiply(e,t){return new be(W.Multiply,this,e,null,t)}modulo(e,t){return new be(W.Modulo,this,e,null,t)}and(e,t){return new be(W.And,this,e,null,t)}bitwiseOr(e,t,i=!0){return new be(W.BitwiseOr,this,e,null,t,i)}bitwiseAnd(e,t,i=!0){return new be(W.BitwiseAnd,this,e,null,t,i)}or(e,t){return new be(W.Or,this,e,null,t)}lower(e,t){return new be(W.Lower,this,e,null,t)}lowerEquals(e,t){return new be(W.LowerEquals,this,e,null,t)}bigger(e,t){return new be(W.Bigger,this,e,null,t)}biggerEquals(e,t){return new be(W.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(y2,e)}nullishCoalesce(e,t){return new be(W.NullishCoalesce,this,e,null,t)}toStmt(){return new wn(this,null)}},Cn=class n extends Ae{constructor(e,t,i){super(t,i),this.name=e}isEquivalent(e){return e instanceof n&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new n(this.name,this.type,this.sourceSpan)}set(e){return new gl(this.name,e,null,this.sourceSpan)}},Ts=class n extends Ae{constructor(e,t,i){super(t,i),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof n&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},pe=class n extends Ae{constructor(e,t,i){super(t,i),this.node=e}isEquivalent(e){return e instanceof n&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}clone(){return new n(this.node,this.type,this.sourceSpan)}},gl=class n extends Ae{constructor(e,t,i,r){super(i||t.type,r),this.name=e,this.value=t}isEquivalent(e){return e instanceof n&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}
1visitExpression(e,t){return e.visitWriteVarExpr(this,t)}clone(){return new n(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new vt(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(_n,ut.Final)}},Do=class n extends Ae{constructor(e,t,i,r,s){super(r||i.type,s),this.receiver=e,this.index=t,this.value=i}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},Ms=class n extends Ae{constructor(e,t,i,r,s){super(r||i.type,s),this.receiver=e,this.name=t,this.value=i}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}clone(){return new n(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},wt=class n extends Ae{constructor(e,t,i,r,s=!1){super(i,r),this.fn=e,this.args=t,this.pure=s}get receiver(){return this.fn}isEquivalent(e){return e instanceof n&&this.fn.isEquivalent(e.fn)&&zt(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new n(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}},_l=class n extends Ae{constructor(e,t,i,r){super(i,r),this.tag=e,this.template=t}isEquivalent(e){return e instanceof n&&this.tag.isEquivalent(e.tag)&&S1(this.template.elements,e.template.elements,(t,i)=>t.text===i.text)&&zt(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateExpr(this,t)}clone(){return new n(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},No=class n extends Ae{constructor(e,t,i,r){super(i,r),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof n&&this.classExpr.isEquivalent(e.classExpr)&&zt(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new n(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},dt=class n extends Ae{constructor(e,t,i){super(t,i),this.value=e}isEquivalent(e){return e instanceof n&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new n(this.value,this.type,this.sourceSpan)}},Sp=class n{constructor(e,t){this.elements=e,this.expressions=t}clone(){return new n(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}},xp=class n{constructor(e,t,i){this.text=e,this.sourceSpan=t,this.rawText=i??t?.toString()??Cp(ul(e))}clone(){return new n(this.text,this.sourceSpan,this.rawText)}},br=class{constructor(e,t){this.text=e,this.sourceSpan=t}},bs=class{constructor(e,t,i){this.text=e,this.sourceSpan=t,this.associatedMessage=i}},x2="|",A0="@@",C2="\u241F",vl=class n extends Ae{constructor(e,t,i,r,s){super(v1,s),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=i,this.expressions=r}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,t){return e.visitLocalizedString(this,t)}clone(){return new n(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(e=>e.clone()),this.sourceSpan)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}${x2}${e}`),this.metaBlock.customId&&(e=`${e}${A0}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}${C2}${t}`}),I0(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){let t=this.placeHolderNames[e-1],i=this.messageParts[e],r=t.text;return t.associatedMessage?.legacyIds.length===0&&(r+=`${A0}${g1(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),I0(r,i.text,this.getMessagePartSourceSpan(e))}},ul=n=>n.replace(/\\/g,"\\\\"),b2=n=>n.replace(/^:/,"\\:"),w2=n=>n.replace(/:/g,"\\:"),Cp=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function I0(n,e,t){return n===""?{cooked:e,raw:Cp(b2(ul(e))),range:t}:{cooked:`:${n}:${e}`,raw:Cp(`:${w2(ul(n))}:${ul(e)}`),range:t}}var Ar=class n extends Ae{constructor(e,t,i=null,r){super(t,r),this.value=e,this.typeParams=i}isEquivalent(e){return e instanceof n&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}
1visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new n(this.value,this.type,this.typeParams,this.sourceSpan)}};var bi=class n extends Ae{constructor(e,t,i=null,r,s){super(r||t.type,s),this.condition=e,this.falseCase=i,this.trueCase=t}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&S2(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){return new n(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}};var Lo=class n extends Ae{constructor(e,t){super(v2,t),this.condition=e}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}clone(){return new n(this.condition.clone(),this.sourceSpan)}},st=class n{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}clone(){return new n(this.name,this.type)}},_i=class n extends Ae{constructor(e,t,i,r,s){super(i,r),this.params=e,this.statements=t,this.name=s}isEquivalent(e){return(e instanceof n||e instanceof Ro)&&zt(this.params,e.params)&&zt(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new Ro(e,this.params,this.statements,this.type,t,this.sourceSpan)}clone(){return new n(this.params.map(e=>e.clone()),this.statements,this.type,this.sourceSpan,this.name)}},Ir=class n extends Ae{constructor(e,t,i,r){super(i,r),this.params=e,this.body=t}isEquivalent(e){return!(e instanceof n)||!zt(this.params,e.params)?!1:this.body instanceof Ae&&e.body instanceof Ae?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?zt(this.body,e.body):!1}isConstant(){return!1}visitExpression(e,t){return e.visitArrowFunctionExpr(this,t)}clone(){return new n(this.params.map(e=>e.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new vt(e,this,_n,t,this.sourceSpan)}},Ps=class n extends Ae{constructor(e,t,i,r,s=!0){super(i||Qd,r),this.operator=e,this.expr=t,this.parens=s}isEquivalent(e){return e instanceof n&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}clone(){return new n(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},be=class n extends Ae{constructor(e,t,i,r,s,o=!0){super(r||t.type,s),this.operator=e,this.rhs=i,this.parens=o,this.lhs=t}isEquivalent(e){return e instanceof n&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new n(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}},jt=class n extends Ae{constructor(e,t,i,r){super(i,r),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new Ms(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},wi=class n extends Ae{constructor(e,t,i,r){super(i,r),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new Do(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},bn=class n extends Ae{constructor(e,t,i){super(t,i),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof n&&zt(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new n(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},As=class n{constructor(e,t,i){this.key=e,this.value=t,this.quoted=i}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new n(this.key,this.value.clone(),this.quoted)}},In=class n extends Ae{constructor(e,t,i){super(t,i),this.entries=e,this.valueType=null,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof n&&zt(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){let e=this.entries.map(t=>t.clone());return new n(e,this.type,this.sourceSpan)}};var Bo=new dt(null,null,null),y2=new dt(null,_n,null),ut=function(n){return n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static",n}(ut||{}),bp=class{constructor(e,t,i){this.text=e,this.multiline=t,this.trailingNewline=i}toString(){return this.multiline?` ${this.text} `:this.text}},Sl=class extends bp{constructor(e){super("",!0,!0),this.tags=e}toString(){return A2(this.tags)}},kr=class{constructor(e=ut.None,t=null,i){this.modifiers=e,this.sourceSpan=t,this.leadingComments=i}hasModifier(e){return(this.modifiers&e)!==0}
1addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},vt=class n extends kr{constructor(e,t,i,r,s,o){super(r,s,o),this.name=e,this.value=t,this.type=i||t&&t.type||null}isEquivalent(e){return e instanceof n&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}},Ro=class n extends kr{constructor(e,t,i,r,s,o,a){super(s,o,a),this.name=e,this.params=t,this.statements=i,this.type=r||null}isEquivalent(e){return e instanceof n&&zt(this.params,e.params)&&zt(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}},wn=class n extends kr{constructor(e,t,i){super(ut.None,t,i),this.expr=e}isEquivalent(e){return e instanceof n&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}},Ot=class n extends kr{constructor(e,t=null,i){super(ut.None,t,i),this.value=e}isEquivalent(e){return e instanceof n&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}},xl=class n extends kr{constructor(e,t,i=[],r,s){super(ut.None,r,s),this.condition=e,this.trueCase=t,this.falseCase=i}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&zt(this.trueCase,e.trueCase)&&zt(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}};function E2(n=[]){return new Sl(n)}function ue(n,e,t){return new Cn(n,e,t)}function q(n,e=null,t){return new Ar(n,null,e,t)}function pt(n,e,t){return new Sn(n,e,t)}function Ac(n){return new Ts(n)}function Pe(n,e,t){return new bn(n,e,t)}function yt(n,e=null){return new In(n.map(t=>new As(t.key,t.value,t.quoted)),e,null)}function T2(n,e){return new Lo(n,e)}function zs(n,e,t,i,r){return new _i(n,e,t,i,r)}function Jn(n,e,t,i){return new Ir(n,e,t,i)}function Ic(n,e,t,i,r){return new xl(n,e,t,i,r)}function M2(n,e,t,i){return new _l(n,e,t,i)}function E(n,e,t){return new dt(n,e,t)}function P2(n,e,t,i,r){return new vl(n,e,t,i,r)}function k0(n){let e="";if(n.tagName&&(e+=` @${n.tagName}`),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+n.text.replace(/@/g,"\\@")}return e}function A2(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${k0(n[0])} `;let e=`*
2`;for(let t of n)e+=" *",e+=k0(t).replace(/\n/g,`
3 * `),e+=`
4`;return e+=" ",e}var I2="_c",O0=ue("<unknown>"),k2={},O2=50,Cl=class n extends Ae{constructor(e){super(e.type),this.resolved=e,this.shared=!1,this.original=e}visitExpression(e,t){return t===k2?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(e){this.resolved=e,this.shared=!0}},bl=class{constructor(e=!1){this.isClosureCompilerEnabled=e,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.sharedConstants=new Map,this._claimedNames=new Map,this.nextNameIndex=0}getConstLiteral(e,t){if(e instanceof dt&&!D0(e)||e instanceof Cl)return e;let i=ws.INSTANCE.keyOf(e),r=this.literals.get(i),s=!1;if(r||(r=new Cl(e),this.literals.set(i,r),s=!0),!s&&!r.shared||s&&t){let o=this.freshName(),a,l;this.isClosureCompilerEnabled&&D0(e)?(a=ue(o).set(new _i([],[new Ot(e)])),l=ue(o).callFn([])):(a=ue(o).set(e),l=ue(o)),this.statements.push(a.toDeclStmt(_n,ut.Final)),r.fixup(l)}return r}getSharedConstant(e,t){let i=e.keyOf(t);if(!this.sharedConstants.has(i)){let r=this.freshName();this.sharedConstants.set(i,ue(r)),this.statements.push(e.toSharedConstantDeclaration(r,t))}return this.sharedConstants.get(i)}getLiteralFactory(e){if(e instanceof bn){let t=e.entries.map(r=>r.isConstant()?r:O0),i=ws.INSTANCE.keyOf(Pe(t));return this._getLiteralFactory(i,e.entries,r=>Pe(r))}else{let t=yt(e.entries.map(r=>({key:r.key,value:r.value.isConstant()?r.value:O0,quoted:r.quoted}))),i=ws.INSTANCE.keyOf(t);return this._getLiteralFactory(i,e.entries.map(r=>r.value),r=>yt(r.map((s,o)=>({key:e.entries[o].key,value:s,quoted:e.entries[o].quoted}))))}}getSharedFunctionReference(e,t,i=!0){let r=e instanceof Ir;for(let o of this.statements)if(r&&o instanceof vt&&o.value?.isEquivalent(e)||!r&&o instanceof Ro&&e instanceof _i&&e.isEquivalent(o))return ue(o.name);let s=i?this.uniqueName(t):t;return this.statements.push(e instanceof _i?e.toDeclStmt(s,ut.Final):new vt(s,e,_n,ut.Final,e.sourceSpan)),ue(s)}_getLiteralFactory(e,t,i){let r=this.literalFactories.get(e),s=t.filter(o=>!o.isConstant());if(!r){let o=t.map((d,_)=>d.isConstant()?this.getConstLiteral(d,!0):ue(`a${_}`)),a=o.filter(D2).map(d=>new st(d.name,ga)),l=Jn(a,i(o),_n),c=this.freshName();this.statements.push(ue(c).set(l).toDeclStmt(_n,ut.Final)),r=ue(c),this.literalFactories.set(e,r)}return{literalFactory:r,literalFactoryArguments:s}}uniqueName(e,t=!0){let i=this._claimedNames.get(e)??0,r=i===0&&!t?`${e}`:`${e}${i}`;return this._claimedNames.set(e,i+1),r}freshName(){return this.uniqueName(I2)}},Tc=class Tc{keyOf(e){if(e instanceof dt&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof dt)return String(e.value);if(e instanceof bn){let t=[];for(let i of e.entries)t.push(this.keyOf(i));return`[${t.join(",")}]`}else if(e instanceof In){let t=[];for(let i of e.entries){let r=i.key;i.quoted&&(r=`"${r}"`),t.push(r+":"+this.keyOf(i.value))}return`{${t.join(",")}}`}else{if(e instanceof Ar)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Cn)return`read(${e.name})`;if(e instanceof Ts)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};Tc.INSTANCE=new Tc;var ws=Tc;function D2(n){return n instanceof Cn}function D0(n){return n instanceof dt&&typeof n.value=="string"&&n.value.length>=O2}var y="@angular/core",b=(()=>{let e=class e{};e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.core={name:null,moduleName:y},e.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:y},e.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:y},e.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:y},e.element={name:"\u0275\u0275element",moduleName:y},e.elementStart={name:"\u0275\u0275elementStart",moduleName:y},e.elementEnd={name:"\u0275\u0275elementEnd",moduleName:y},e.advance={name:"\u0275\u0275advance",moduleName:y},e.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:y},e.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:y},e.attribute={name:"\u0275\u0275attribute",moduleName:y},e.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:y},e.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:y},e.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:y},e.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:y},e.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:y},e.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:y},e.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:y},e.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:y},e.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:y},e.classProp={name:"\u0275\u0275classProp",moduleName:y},e.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:y},e.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:y},e.elementContainer={name:"\u0275\u0275elementContainer",moduleName:y},e.styleMap={name:"\u0275\u0275styleMap",moduleName:y},e.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:y},e.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:y},e.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:y},e.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:y},e.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:y},e.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:y},e.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:y},e.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:y},e.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:y},e.classMap={name:"\u0275\u0275classMap",moduleName:y},e.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:y},e.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:y},e.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:y},e.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:y},e.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:y},e.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:y},e.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:y},e.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:y},e.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:y},e.styleProp={name:"\u0275\u0275styleProp",moduleName:y},e.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:y},e.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:y},e.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:y},e.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:y},e.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:y},e.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:y},e.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:y},e.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:y},e.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:y},e.nextContext={name:"\u0275\u0275nextContext",moduleName:y}
4,e.resetView={name:"\u0275\u0275resetView",moduleName:y},e.templateCreate={name:"\u0275\u0275template",moduleName:y},e.defer={name:"\u0275\u0275defer",moduleName:y},e.deferWhen={name:"\u0275\u0275deferWhen",moduleName:y},e.deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:y},e.deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:y},e.deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:y},e.deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:y},e.deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:y},e.deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:y},e.deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:y},e.deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:y},e.deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:y},e.deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:y},e.deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:y},e.deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:y},e.deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:y},e.deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:y},e.conditional={name:"\u0275\u0275conditional",moduleName:y},e.repeater={name:"\u0275\u0275repeater",moduleName:y},e.repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:y},e.repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:y},e.repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:y},e.componentInstance={name:"\u0275\u0275componentInstance",moduleName:y},e.text={name:"\u0275\u0275text",moduleName:y},e.enableBindings={name:"\u0275\u0275enableBindings",moduleName:y},e.disableBindings={name:"\u0275\u0275disableBindings",moduleName:y},e.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:y},e.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:y},e.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:y},e.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:y},e.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:y},e.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:y},e.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:y},e.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:y},e.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:y},e.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:y},e.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:y},e.restoreView={name:"\u0275\u0275restoreView",moduleName:y},e.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:y},e.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:y},e.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:y},e.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:y},e.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:y},e.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:y},e.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:y},e.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:y},e.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:y},e.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:y},e.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:y},e.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:y},e.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:y},e.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:y},e.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:y},e.hostProperty={name:"\u0275\u0275hostProperty",moduleName:y},e.property={name:"\u0275\u0275property",moduleName:y},e.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:y},e.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:y},e.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:y},e.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:y},e.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:y},e.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:y},e.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:y},e.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:y},e.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:y},e.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:y}
4,e.i18n={name:"\u0275\u0275i18n",moduleName:y},e.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:y},e.i18nExp={name:"\u0275\u0275i18nExp",moduleName:y},e.i18nStart={name:"\u0275\u0275i18nStart",moduleName:y},e.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:y},e.i18nApply={name:"\u0275\u0275i18nApply",moduleName:y},e.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:y},e.pipe={name:"\u0275\u0275pipe",moduleName:y},e.projection={name:"\u0275\u0275projection",moduleName:y},e.projectionDef={name:"\u0275\u0275projectionDef",moduleName:y},e.reference={name:"\u0275\u0275reference",moduleName:y},e.inject={name:"\u0275\u0275inject",moduleName:y},e.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:y},e.directiveInject={name:"\u0275\u0275directiveInject",moduleName:y},e.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:y},e.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:y},e.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:y},e.forwardRef={name:"forwardRef",moduleName:y},e.resolveForwardRef={name:"resolveForwardRef",moduleName:y},e.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:y},e.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:y},e.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:y},e.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:y},e.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:y},e.resolveBody={name:"\u0275\u0275resolveBody",moduleName:y},e.getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:y},e.defineComponent={name:"\u0275\u0275defineComponent",moduleName:y},e.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:y},e.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:y},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:y},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:y},e.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:y},e.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:y},e.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:y},e.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:y},e.defineDirective={name:"\u0275\u0275defineDirective",moduleName:y},e.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:y},e.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:y},e.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:y},e.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:y},e.defineInjector={name:"\u0275\u0275defineInjector",moduleName:y},e.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:y},e.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:y},e.ModuleWithProviders={name:"ModuleWithProviders",moduleName:y},e.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:y},e.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:y},e.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:y},e.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:y},e.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:y},e.definePipe={name:"\u0275\u0275definePipe",moduleName:y},e.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:y},e.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:y},e.declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:y},e.setClassMetadata={name:"\u0275setClassMetadata",moduleName:y},e.setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:y},e.setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:y},e.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:y},e.viewQuery={name:"\u0275\u0275viewQuery",moduleName:y},e.loadQuery={name:"\u0275\u0275loadQuery",moduleName:y},e.contentQuery={name:"\u0275\u0275contentQuery",moduleName:y},e.viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:y},e.contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:y},e.queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:y},e.twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:y},e.twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:y},e.twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:y},e.declareLet={name:"\u0275\u0275declareLet",moduleName:y},e.storeLet={name:"\u0275\u0275storeLet",moduleName:y},e.readContextLet={name:"\u0275\u0275readContextLet",moduleName:y},e.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:y},e.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:y},e.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:y},e.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:y},e.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:y},e.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:y},e.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:y},e.listener={name:"\u0275\u0275listener",moduleName:y}
4,e.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:y},e.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:y},e.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:y},e.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:y},e.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:y},e.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:y},e.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:y},e.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:y},e.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:y},e.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:y},e.InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:y},e.UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:y},e.unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:y};let n=e;return n})(),N2=/-+([a-z0-9])/g;function L2(n){return n.replace(N2,(...e)=>e[1].toUpperCase())}function B2(n,e){return x1(n,":",e)}function R2(n,e){return x1(n,".",e)}function x1(n,e,t){let i=n.indexOf(e);return i==-1?t:[n.slice(0,i).trim(),n.slice(i+1).trim()]}function F2(n){let e=[];for(let t=0;t<n.length;t++){let i=n.charCodeAt(t);if(i>=55296&&i<=56319&&n.length>t+1){let r=n.charCodeAt(t+1);r>=56320&&r<=57343&&(t++,i=(i-55296<<10)+r-56320+65536)}i<=127?e.push(i):i<=2047?e.push(i>>6&31|192,i&63|128):i<=65535?e.push(i>>12|224,i>>6&63|128,i&63|128):i<=2097151&&e.push(i>>18&7|240,i>>12&63|128,i>>6&63|128,i&63|128)}return e}function C1(n){if(typeof n=="string")return n;if(Array.isArray(n))return"["+n.map(C1).join(", ")+"]";if(n==null)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;if(!n.toString)return"object";let e=n.toString();if(e==null)return""+e;let t=e.indexOf(`
5`);return t===-1?e:e.substring(0,t)}var wp=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},wo=globalThis;var H2=3,V2="# sourceMappingURL=data:application/json;base64,",yp=class{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,t=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,t,i,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(t!=null&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(e==null)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(i==null||r==null))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:i,sourceCol0:r}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let e=new Map,t=[],i=[];Array.from(this.sourcesContent.keys()).forEach((c,d)=>{e.set(c,d),t.push(c),i.push(this.sourcesContent.get(c)||null)});let r="",s=0,o=0,a=0,l=0;return this.lines.forEach(c=>{s=0,r+=c.map(d=>{let _=rl(d.col0-s);return s=d.col0,d.sourceUrl!=null&&(_+=rl(e.get(d.sourceUrl)-o),o=e.get(d.sourceUrl),_+=rl(d.sourceLine0-a),a=d.sourceLine0,_+=rl(d.sourceCol0-l),l=d.sourceCol0),_}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:H2,sourceRoot:"",sources:t,sourcesContent:i,mappings:r}}toJsComment(){return this.hasMappings?"//"+V2+U2(JSON.stringify(this,null,0)):""}};function U2(n){let e="",t=F2(n);for(let i=0;i<t.length;){let r=t[i++],s=i<t.length?t[i++]:null,o=i<t.length?t[i++]:null;e+=So(r>>2),e+=So((r&3)<<4|(s===null?0:s>>4)),e+=s===null?"=":So((s&15)<<2|(o===null?0:o>>6)),e+=s===null||o===null?"=":So(o&63)}return e}function rl(n){n=n<0?(-n<<1)+1:n<<1;let e="";do{let t=n&31;n=n>>5,n>0&&(t=t|32),e+=So(t)}while(n>0);return e}var G2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
5+/";function So(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return G2[n]}var $2=/'|\\|\n|\r|\$/g,W2=/^[$A-Z_][0-9A-Z_$]*$/i,Ep="  ",wl=class{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}},Tp=class n{static createRoot(){return new n(0)}constructor(e){this._indent=e,this._lines=[new wl(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,t=""){this.print(e||null,t,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*Ep.length+this._currentLine.partsLength}print(e,t,i=!1){t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),i&&this._lines.push(new wl(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?N0(e.indent)+e.parts.join(""):"").join(`
6`)}toSourceMapGenerator(e,t=0){let i=new yp(e),r=!1,s=()=>{r||(i.addSource(e," ").addMapping(0,e,0,0),r=!0)};for(let o=0;o<t;o++)i.addLine(),s();return this.sourceLines.forEach((o,a)=>{i.addLine();let l=o.srcSpans,c=o.parts,d=o.indent*Ep.length,_=0;for(;_<l.length&&!l[_];)d+=c[_].length,_++;for(_<l.length&&a===0&&d===0?r=!0:s();_<l.length;){let x=l[_],w=x.start.file,C=x.start.line,T=x.start.col;for(i.addSource(w.url,w.content).addMapping(d,w.url,C,T),d+=c[_].length,_++;_<l.length&&(x===l[_]||!l[_]);)d+=c[_].length,_++}}),i}spanOf(e,t){let i=this._lines[e];if(i){let r=t-N0(i.indent).length;for(let s=0;s<i.parts.length;s++){let o=i.parts[s];if(o.length>r)return i.srcSpans[s];r-=o.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},Mp=class{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(e.leadingComments!==void 0)for(let i of e.leadingComments)i instanceof Sl?t.print(e,`/*${i.toString()}*/`,i.trailingNewline):i.multiline?t.print(e,`/* ${i.text} */`,i.trailingNewline):i.text.split(`
7`).forEach(r=>{t.println(e,`// ${r}`)})}visitExpressionStmt(e,t){return this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";"),null}visitReturnStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");let i=e.falseCase!=null&&e.falseCase.length>0;return e.trueCase.length<=1&&!i?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),i&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null}visitWriteVarExpr(e,t){let i=t.lineIsEmpty();return i||t.print(e,"("),t.print(e,`${e.name} = `),e.value.visitExpression(this,t),i||t.print(e,")"),null}visitWriteKeyExpr(e,t){let i=t.lineIsEmpty();return i||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),i||t.print(e,")"),null}visitWritePropExpr(e,t){let i=t.lineIsEmpty();return i||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,`.${e.name} = `),e.value.visitExpression(this,t),i||t.print(e,")"),null}visitInvokeFunctionExpr(e,t){let i=e.fn instanceof Ir;return i&&t.print(e.fn,"("),e.fn.visitExpression(this,t),i&&t.print(e.fn,")"),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitTaggedTemplateExpr(e,t){e.tag.visitExpression(this,t),t.print(e,"`"+e.template.elements[0].rawText);for(let i=1;i<e.template.elements.length;i++)t.print(e,"${"),e.template.expressions[i-1].visitExpression(this,t),t.print(e,`}${e.template.elements[i].rawText}`);return t.print(e,"`"),null}visitWrappedNodeExpr(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)}visitReadVarExpr(e,t){return t.print(e,e.name),null}visitInstantiateExpr(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitLiteralExpr(e,t){let i=e.value;return typeof i=="string"?t.print(e,vr(i,this._escapeDollarInStrings)):t.print(e,`${i}`),null}visitLocalizedString(e,t){let i=e.serializeI18nHead();t.print(e,"$localize `"+i.raw);for(let r=1;r<e.messageParts.length;r++)t.print(e,"${"),e.expressions[r-1].visitExpression(this,t),t.print(e,`}${e.serializeI18nTemplatePart(r).raw}`);return t.print(e,"`"),null}visitConditionalExpr(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null}visitDynamicImportExpr(e,t){t.print(e,`import(${e.url})`)}visitNotExpr(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null}visitUnaryOperatorExpr(e,t){let i;switch(e.operator){case Oo.Plus:i="+";break;case Oo.Minus:i="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&t.print(e,"("),t.print(e,i),e.expr.visitExpression(this,t),e.parens&&t.print(e,")"),null}visitBinaryOperatorExpr(e,t){let i;switch(e.operator){case W.Equals:i="==";break;case W.Identical:i="===";break;case W.NotEquals:i="!=";break;case W.NotIdentical:i="!==";break;case W.And:i="&&";break;case W.BitwiseOr:i="|";break;case W.BitwiseAnd:i="&";break;case W.Or:i="||";break;case W.Plus:i="+";break;case W.Minus:i="-";break;case W.Divide:i="/";break;case W.Multiply:i="*";break;case W.Modulo:i="%";break;case W.Lower:i="<";break;case W.LowerEquals:i="<=";break;case W.Bigger:i=">";break;case W.BiggerEquals:i=">=";break;case W.NullishCoalesce:i="??";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&t.print(e,"("),e.lhs.visitExpression(this,t),t.print(e,` ${i} `),e.rhs.visitExpression(this,t),e.parens&&t.print(e,")"),null}visitReadPropExpr(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null}visitReadKeyExpr(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null}visitLiteralArrayExpr(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null}visitLiteralMapExpr(e,t){return t.print(e,"{"),this.visitAllObjects(i=>{t.print(e,`${vr(i.key,this._escapeDollarInStrings,i.quoted)}:`),i.value.visitExpression(this,t)},e.entries,t,","),t.print(e,"}"),null}visitCommaExpr(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null}visitAllExpressions(e,t,i){this.visitAllObjects(r=>r.visitExpression(this,t),e,t,i)}visitAllObjects(e,t,i,r){let s=!1;for(let o=0;o<t.length;o++)o>0&&(i.lineLength()>80?(i.print(null,r,!0),s||(i.incIndent(),i.incIndent(),s=!0)):i.print(null,r,!1)),e(t[o]);s&&(i.decIndent(),i.decIndent())}visitAllStatements(e,t){e.forEach(i=>
7i.visitStatement(this,t))}};function vr(n,e,t=!0){if(n==null)return null;let i=n.replace($2,(...s)=>s[0]=="$"?e?"\\$":"$":s[0]==`
8`?"\\n":s[0]=="\r"?"\\r":`\\${s[0]}`);return t||!W2.test(i)?`'${i}'`:i}function N0(n){let e="";for(let t=0;t<n;t++)e+=Ep;return e}function kc(n,e){if(e===0)return pt(n);let t=[];for(let i=0;i<e;i++)t.push(ga);return pt(n,void 0,t)}function q2(n,e){let t=vr(e,!1,!1);return t!==e?`${n}[${t}]`:`${n}.${e}`}function z2(n){return j2("ngJitMode",n)}function j2(n,e){let t=new Ar({name:n,moduleName:null}),i=new be(W.Identical,new Ts(t),E("undefined")),r=new be(W.Or,i,t,void 0,void 0,!0);return new be(W.And,r,e)}function Ke(n){let e=new pe(n);return{value:e,type:e}}function Sr(n,e){let t=Pe(n.map(i=>i.value));return e?Jn([],t):t}function Xd(n,e){return{expression:n,forwardRef:e}}function Q2({expression:n,forwardRef:e}){switch(e){case 0:case 1:return n;case 2:return X2(n)}}function X2(n){return q(b.forwardRef).callFn([Jn([],n)])}var yl=function(n){return n[n.Class=0]="Class",n[n.Function=1]="Function",n}(yl||{}),di=function(n){return n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule",n}(di||{});function fr(n){let e=ue("__ngFactoryType__"),t=null,i=B0(n)?e:new be(W.Or,e,n.type.value),r=null;n.deps!==null?n.deps!=="invalid"&&(r=new No(i,L0(n.deps,n.target))):(t=ue(`\u0275${n.name}_BaseFactory`),r=t.callFn([i]));let s=[],o=null;function a(c){let d=ue("__ngConditionalFactory__");s.push(d.set(Bo).toDeclStmt());let _=r!==null?d.set(r).toStmt():q(b.invalidFactory).callFn([]).toStmt();return s.push(Ic(e,[_],[d.set(c).toStmt()])),d}if(B0(n)){let c=L0(n.delegateDeps,n.target),d=new(n.delegateType===yl.Class?No:wt)(n.delegate,c);o=a(d)}else ex(n)?o=a(n.expression):o=r;if(o===null)s.push(q(b.invalidFactory).callFn([]).toStmt());else if(t!==null){let c=q(b.getInheritedFactory).callFn([n.type.value]),d=new be(W.Or,t,t.set(c));s.push(new Ot(d.callFn([i])))}else s.push(new Ot(o));let l=zs([new st(e.name,ga)],s,_n,void 0,`${n.name}_Factory`);return t!==null&&(l=Jn([],[new vt(t.name),new Ot(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:K2(n)}}function K2(n){let e=n.deps!==null&&n.deps!=="invalid"?Z2(n.deps):Zn;return pt(q(b.FactoryDeclaration,[kc(n.type.type,n.typeArgumentCount),e]))}function L0(n,e){return n.map((t,i)=>Y2(t,e,i))}function Y2(n,e,t){if(n.token===null)return q(b.invalidFactoryDep).callFn([E(t)]);if(n.attributeNameType===null){let i=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(e===di.Pipe?16:0),r=i!==0||n.optional?E(i):null,s=[n.token];r&&s.push(r);let o=tx(e);return q(o).callFn(s)}else return q(b.injectAttribute).callFn([n.token])}function Z2(n){let e=!1,t=n.map(i=>{let r=J2(i);return r!==null?(e=!0,r):E(null)});return e?pt(Pe(t)):Zn}function J2(n){let e=[];return n.attributeNameType!==null&&e.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&e.push({key:"optional",value:E(!0),quoted:!1}),n.host&&e.push({key:"host",value:E(!0),quoted:!1}),n.self&&e.push({key:"self",value:E(!0),quoted:!1}),n.skipSelf&&e.push({key:"skipSelf",value:E(!0),quoted:!1}),e.length>0?yt(e):null}function B0(n){return n.delegateType!==void 0}function ex(n){return n.expression!==void 0}function tx(n){switch(n){case di.Component:case di.Directive:case di.Pipe:return b.directiveInject;case di.NgModule:case di.Injectable:default:return b.inject}}var Fo=class{constructor(e,t,i,r){this.input=t,this.errLocation=i,this.ctxLocation=r,this.message=`Parser Error: ${e} ${i} [${t}] in ${r}`}},Or=class{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new $t(e+this.start,e+this.end)}},Ue=class{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},Is=class extends Ue{constructor(e,t,i){super(e,t),this.nameSpan=i}},Ct=class extends Ue{visit(e,t=null){}},vi=class extends Ue{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},wr=class extends vi{visit(e,t=null){return e.visitThisReceiver?.(this,t)}},ks=class extends Ue{constructor(e,t,i){super(e,t),this.expressions=i}visit(e,t=null){return e.visitChain(this,t)}},Ho=class extends Ue{constructor(e,t,i,r,s){super(e,t),this.condition=i,this.trueExp=r,this.falseExp=s}visit(e,t=null){return e.visitConditional(this,t)}},Dr=class extends Is{constructor(e,t,i,r,s){super(e,t,i),this.receiver=r,this.name=s}visit(e,t=null){return e.visitPropertyRead(this,t)}},El=class extends Is{constructor(e,t,i,r,s,o){super(e,t,i),this.receiver=r,this.name=s,this.value=o}visit(e,t=null){return e.visitPropertyWrite(this,t)}},Tl=class extends Is{constructor(e,t,i,r,s){super(e,t,i),this.receiver=r,this.name=s}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},Os=class extends Ue{constructor(e,t,i,r){super(e,t),this.receiver=i,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}},Ml=class extends Ue{constructor(e,t,i,r){super(e,t),this.receiver=i,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},Pl=class extends Ue{constructor(e,t,i,r,s){super(e,t),this.receiver=i,this.key=r,this.value=s}visit(e,t=null){return e.visitKeyedWrite(this,t)}},Al=class extends Is{constructor(e,t,i,r,s,o){super(e,t,o),this.exp=i,this.name=r,this.args=s}visit(e,t=null){return e.visitPipe(this,t)}},dn=class extends Ue{constructor(e,t,i){super(e,t),this.value=i}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},Il=class extends Ue{constructor(e,t,i){super(e,t),this.expressions=i}visit(e,t=null){return e.visitLiteralArray(this,t)}},kl=class extends Ue{constructor(e,t,i,r){super(e,t),this.keys=i,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}},Nr=class extends Ue{constructor(e,t,i,r){super(e,t),this.strings=i,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}},pn=class extends Ue{constructor(e,t,i,r,s){super(e,t),this.operation=i,this.left=r,this.right=s}visit(e,t=null){return e.visitBinary(this,t)}},Vo=class n extends pn{static createMinus(e,t,i){return new n(e,t,"-",i,"-",new dn(e,t,0),i)}static createPlus(e,t,i){return new n(e,t,"+",i,"-",i,new dn(e,t,0))}constructor(e,t,i,r,s,o,a){super(e,t,s,o,a),this.operator=i,this.expr=r,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},Uo=class extends Ue{constructor(e,t,i){super(e,t),this.expression=i}visit(e,t=null){return e.visitPrefixNot(this,t)}},Go=class extends Ue{constructor(e,t,i){super(e,t),this.expression=i}visit(e,t=null){return e.visitNonNullAssert(this,t)}},Ol=class extends Ue{constructor(e,t,i,r,s){super(e,t),this.receiver=i,this.args=r,this.argumentSpan=s}visit(e,t=null){return e.visitCall(this,t)}},Dl=class extends Ue{constructor(e,t,i,r,s){super(e,t),this.receiver=i,this.args=r,this.argumentSpan=s}visit(e,t=null){return e.visitSafeCall(this,t)}},$t=class{constructor(e,t){this.start=e,this.end=t}},mn=class extends Ue{constructor(e,t,i,r,s){super(new Or(0,t===null?0:t.length),new $t(r,t===null?r:r+t.length)),this.ast=e,this.source=t,this.location=i,this.errors=s}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},$o=class{constructor(e,t,i){this.sourceSpan=e,this.key=t,this.value=i}},Pp=class{constructor(e,t,i){this.sourceSpan=e,this.key=t,this.value=i}},Nl=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(let i of e)this.visit(i,t)}};var yo=class{constructor(e,t,i,r,s,o){this.name=e,this.expression=t,this.type=i,this.sourceSpan=r,this.keySpan=s,this.valueSpan=o,this.isLiteral=this.t
8ype===qi.LITERAL_ATTR,this.isAnimation=this.type===qi.ANIMATION}},qi=function(n){return n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION",n[n.TWO_WAY=3]="TWO_WAY",n}(qi||{}),xn=function(n){return n[n.Regular=0]="Regular",n[n.Animation=1]="Animation",n[n.TwoWay=2]="TwoWay",n}(xn||{}),Ll=class{constructor(e,t,i,r,s,o,a){this.name=e,this.targetOrPhase=t,this.type=i,this.handler=r,this.sourceSpan=s,this.handlerSpan=o,this.keySpan=a}},Ap=class{constructor(e,t,i,r,s){this.name=e,this.value=t,this.sourceSpan=i,this.keySpan=r,this.valueSpan=s}},De=function(n){return n[n.Property=0]="Property",n[n.Attribute=1]="Attribute",n[n.Class=2]="Class",n[n.Style=3]="Style",n[n.Animation=4]="Animation",n[n.TwoWay=5]="TwoWay",n}(De||{}),Bl=class{constructor(e,t,i,r,s,o,a,l){this.name=e,this.type=t,this.securityContext=i,this.value=r,this.unit=s,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l}},jn=function(n){return n[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA",n}(jn||{});function kn(n,e=!0){if(n[0]!=":")return[null,n];let t=n.indexOf(":",1);if(t===-1){if(e)throw new Error(`Unsupported format "${n}" expecting ":namespace:name"`);return[null,n]}return[n.slice(1,t),n.slice(t+1)]}function R0(n){return kn(n)[1]==="ng-container"}function Ip(n){return kn(n)[1]==="ng-content"}function nx(n){return kn(n)[1]==="ng-template"}function kp(n){return n===null?null:kn(n)[0]}function Op(n,e){return n?`:${n}:${e}`:e}var Ds=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){throw new Error("visit() not implemented for Comment")}},fi=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){return e.visitText(this)}},Ns=class{constructor(e,t,i){this.value=e,this.sourceSpan=t,this.i18n=i}visit(e){return e.visitBoundText(this)}},Ls=class{constructor(e,t,i,r,s,o){this.name=e,this.value=t,this.sourceSpan=i,this.keySpan=r,this.valueSpan=s,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Dp=class n{constructor(e,t,i,r,s,o,a,l,c){this.name=e,this.type=t,this.securityContext=i,this.value=r,this.unit=s,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l,this.i18n=c}static fromBoundElementProperty(e,t){if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new n(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,t)}visit(e){return e.visitBoundAttribute(this)}},Np=class n{constructor(e,t,i,r,s,o,a,l){this.name=e,this.type=t,this.handler=i,this.target=r,this.phase=s,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=l}static fromParsedEvent(e){let t=e.type===xn.Regular?e.targetOrPhase:null,i=e.type===xn.Animation?e.targetOrPhase:null;if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new n(e.name,e.type,e.handler,t,i,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},yn=class{constructor(e,t,i,r,s,o,a,l,c,d){this.name=e,this.attributes=t,this.inputs=i,this.outputs=r,this.children=s,this.references=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=d}visit(e){return e.visitElement(this)}},yi=class{constructor(e,t,i,r){this.nameSpan=e,this.sourceSpan=t,this.prefetchSpan=i,this.whenOrOnSourceSpan=r}visit(e){return e.visitDeferredTrigger(this)}},Lp=class extends yi{constructor(e,t,i,r){super(null,t,i,r),this.value=e}},Bp=class extends yi{},Rp=class extends yi{},Rl=class extends yi{constructor(e,t,i,r,s){super(t,i,r,s),this.reference=e}},Fp=class extends yi{constructor(e,t,i,r,s){super(t,i,r,s),this.delay=e}},Fl=class extends yi{constructor(e,t,i,r,s){super(t,i,r,s),this.reference=e}},Hl=class extends yi{constructor(e,t,i,r,s){super(t,i,r,s),this.reference=e}},En=class{constructor(e,t,i,r){this.nameSpan=e,this.sourceSpan=t,this.startSourceSpan=i,this.endSourceSpan=r}},Wo=class extends En{constructor(e,t,i,r,s,o,a){super(i,r,s,o),this.children=e,this.minimumTime=t,this.i18n=a}visit(e){return e.visitDeferredBlockPlaceholder(this)}}
8,qo=class extends En{constructor(e,t,i,r,s,o,a,l){super(r,s,o,a),this.children=e,this.afterTime=t,this.minimumTime=i,this.i18n=l}visit(e){return e.visitDeferredBlockLoading(this)}},zo=class extends En{constructor(e,t,i,r,s,o){super(t,i,r,s),this.children=e,this.i18n=o}visit(e){return e.visitDeferredBlockError(this)}},Lr=class extends En{constructor(e,t,i,r,s,o,a,l,c,d,_,x){super(a,l,d,_),this.children=e,this.placeholder=r,this.loading=s,this.error=o,this.mainBlockSpan=c,this.i18n=x,this.triggers=t,this.prefetchTriggers=i,this.definedTriggers=Object.keys(t),this.definedPrefetchTriggers=Object.keys(i)}visit(e){return e.visitDeferredBlock(this)}visitAll(e){this.visitTriggers(this.definedTriggers,this.triggers,e),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,e),Qu(e,this.children);let t=[this.placeholder,this.loading,this.error].filter(i=>i!==null);Qu(e,t)}visitTriggers(e,t,i){Qu(i,e.map(r=>t[r]))}},Vl=class extends En{constructor(e,t,i,r,s,o,a){super(a,r,s,o),this.expression=e,this.cases=t,this.unknownBlocks=i}visit(e){return e.visitSwitchBlock(this)}},jo=class extends En{constructor(e,t,i,r,s,o,a){super(o,i,r,s),this.expression=e,this.children=t,this.i18n=a}visit(e){return e.visitSwitchBlockCase(this)}},Bs=class extends En{constructor(e,t,i,r,s,o,a,l,c,d,_,x,w){super(x,l,d,_),this.item=e,this.expression=t,this.trackBy=i,this.trackKeywordSpan=r,this.contextVariables=s,this.children=o,this.empty=a,this.mainBlockSpan=c,this.i18n=w}visit(e){return e.visitForLoopBlock(this)}},Qo=class extends En{constructor(e,t,i,r,s,o){super(s,t,i,r),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}},Ul=class extends En{constructor(e,t,i,r,s){super(s,t,i,r),this.branches=e}visit(e){return e.visitIfBlock(this)}},yr=class extends En{constructor(e,t,i,r,s,o,a,l){super(a,r,s,o),this.expression=e,this.children=t,this.expressionAlias=i,this.i18n=l}visit(e){return e.visitIfBlockBranch(this)}},Gl=class{constructor(e,t,i){this.name=e,this.sourceSpan=t,this.nameSpan=i}visit(e){return e.visitUnknownBlock(this)}},Xo=class{constructor(e,t,i,r,s){this.name=e,this.value=t,this.sourceSpan=i,this.nameSpan=r,this.valueSpan=s}visit(e){return e.visitLetDeclaration(this)}},Wt=class{constructor(e,t,i,r,s,o,a,l,c,d,_,x){this.tagName=e,this.attributes=t,this.inputs=i,this.outputs=r,this.templateAttrs=s,this.children=o,this.references=a,this.variables=l,this.sourceSpan=c,this.startSourceSpan=d,this.endSourceSpan=_,this.i18n=x}visit(e){return e.visitTemplate(this)}},Rs=class{constructor(e,t,i,r,s){this.selector=e,this.attributes=t,this.children=i,this.sourceSpan=r,this.i18n=s,this.name="ng-content"}visit(e){return e.visitContent(this)}},Ki=class{constructor(e,t,i,r,s){this.name=e,this.value=t,this.sourceSpan=i,this.keySpan=r,this.valueSpan=s}visit(e){return e.visitVariable(this)}},Ko=class{constructor(e,t,i,r,s){this.name=e,this.value=t,this.sourceSpan=i,this.keySpan=r,this.valueSpan=s}visit(e){return e.visitReference(this)}},$l=class{constructor(e,t,i,r){this.vars=e,this.placeholders=t,this.sourceSpan=i,this.i18n=r}visit(e){return e.visitIcu(this)}};function Qu(n,e){let t=[];if(n.visit)for(let i of e)n.visit(i)||i.visit(n);else for(let i of e){let r=i.visit(n);r&&t.push(r)}return t}var bt=class{constructor(e,t,i,r,s,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=i,this.meaning=r,this.description=s,this.customId=o,this.legacyIds=[],this.id=this.customId,this.messageString=ix(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}},gr=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitText(this,t)}},Si=class{constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}},Wl=class{constructor(e,t,i,r,s){this.expression=e,this.type=t,this.cases=i,this.sourceSpan=r,this.expressionPlaceholder=s}visit(e,t){return e.visitIcu(this,t)}},Yi=class{constructor(e,t,i,r,s,o,a,l,c){this.tag=e,this.attrs=t,this.startName=i,this.closeName=r,this.children=s,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,t){return e.visitTagPlaceholder(this,t)}},ql=class{constructor(e,t,i){this.value=e,this.name=t,this.sourceSpan=i}visit(e,t){return e.visitPlaceholder(this,t)}},Fs=class{constructor(e,t,i){this.value=e,this.name=t,this.sourceSpan=i}visit(e,t){return e.visitIcuPlaceholder(this,t)}},Zi=class{constructor(e,t,i,r,s,o,a,l){this.name=e,this.parameters=t,this.startName=i,this.closeName=r,this.children=s,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=l}visit(e,t){return e.visitBlockPlaceholder(this,t)}};function ix(n){let e=new Hp;return n.map(i=>i.visit(e)).join("")}var Hp=class{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(i=>`${i} {${e.cases[i].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){let t=e.children.map(i=>i.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let t=e.children.map(i=>i.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}};var Vp=class{visitTag(e){let t=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${t}/>`;let i=e.children.map(r=>r.visit(this));return`<${e.name}${t}>${i.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){let t=Object.keys(e).map(i=>`${i}="${e[i]}"`).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [
9${e.dtd}
10]>`}},ON=new Vp;function rx(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var b1="i18n",Up="i18n-",sx="VAR_";function w1(n){return n===b1||n.startsWith(Up)}function ox(n){return n.attrs.some(e=>w1(e.name))}function y1(n){return n.nodes[0]}function Kd(n={},e){let t={};
10return n&&Object.keys(n).length&&Object.keys(n).forEach(i=>t[_a(i,e)]=n[i]),t}function _a(n,e=!0){let t=rx(n);if(!e)return t;let i=t.split("_");if(i.length===1)return n.toLowerCase();let r;/^\d+$/.test(i[i.length-1])&&(r=i.pop());let s=i.shift().toLowerCase();return i.length&&(s+=i.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),r?`${s}_${r}`:s}var ax=/[-.]/,Yd="_t",Yo="ctx",Zd="rf";function E1(n,e){let t=null;return()=>(t||(n(new vt(Yd,void 0,ga)),t=ue(e)),t)}function _s(n){return Array.isArray(n)?Pe(n.map(_s)):E(n,_n)}function F0(n,e){let t=Object.getOwnPropertyNames(n);return t.length===0?null:yt(t.map(i=>{let r=n[i],s,o,a,l;if(typeof r=="string")s=i,a=i,o=r,l=_s(o);else{a=i,s=r.classPropertyName,o=r.bindingPropertyName;let c=o!==s,d=r.transformFunction!==null,_=vo.None;if(r.isSignal&&(_|=vo.SignalBased),d&&(_|=vo.HasDecoratorInputTransform),e&&(c||d||_!==vo.None)){let x=[E(_),_s(o)];(c||d)&&(x.push(_s(s)),d&&x.push(r.transformFunction)),l=Pe(x)}else l=_s(o)}return{key:a,quoted:ax.test(a),value:l}}))}var Ji=class{constructor(){this.values=[]}set(e,t){if(t){let i=this.values.find(r=>r.key===e);i?i.value=t:this.values.push({key:e,value:t,quoted:!1})}}toLiteralMap(){return yt(this.values)}};function lx(n){let e=n instanceof yn?n.name:"ng-template",t=cx(n),i=new Es,r=kn(e)[1];return i.setElement(r),Object.getOwnPropertyNames(t).forEach(s=>{let o=kn(s)[1],a=t[s];i.addAttribute(o,a),s.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(c=>i.addClassName(c))}),i}function cx(n){let e={};return n instanceof Wt&&n.tagName!=="ng-template"?n.templateAttrs.forEach(t=>e[t.name]=""):(n.attributes.forEach(t=>{w1(t.name)||(e[t.name]=t.value)}),n.inputs.forEach(t=>{(t.type===De.Property||t.type===De.TwoWay)&&(e[t.name]="")}),n.outputs.forEach(t=>{e[t.name]=""})),e}function H0(n,e){let t=null,i={name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:[],target:di.Injectable};if(n.useClass!==void 0){let a=n.useClass.expression.isEquivalent(n.type.value),l;n.deps!==void 0&&(l=n.deps),l!==void 0?t=fr(_e(P({},i),{delegate:n.useClass.expression,delegateDeps:l,delegateType:yl.Class})):a?t=fr(i):t={statements:[],expression:V0(n.type.value,n.useClass.expression,e)}}else n.useFactory!==void 0?n.deps!==void 0?t=fr(_e(P({},i),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:yl.Function})):t={statements:[],expression:Jn([],n.useFactory.callFn([]))}:n.useValue!==void 0?t=fr(_e(P({},i),{expression:n.useValue.expression})):n.useExisting!==void 0?t=fr(_e(P({},i),{expression:q(b.inject).callFn([n.useExisting.expression])})):t={statements:[],expression:V0(n.type.value,n.type.value,e)};let r=n.type.value,s=new Ji;return s.set("token",r),s.set("factory",t.expression),n.providedIn.expression.value!==null&&s.set("providedIn",Q2(n.providedIn)),{expression:q(b.\u0275\u0275defineInjectable).callFn([s.toLiteralMap()],void 0,!0),type:ux(n),statements:t.statements}}function ux(n){return new Sn(q(b.InjectableDeclaration,[kc(n.type.type,n.typeArgumentCount)]))}function V0(n,e,t){if(n.node===e.node)return e.prop("\u0275fac");if(!t)return U0(e);let i=q(b.resolveForwardRef).callFn([e]);return U0(i)}function U0(n){let e=new st("__ngFactoryType__",ga);return Jn([e],n.prop("\u0275fac").callFn([ue(e.name)]))}var px=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function dx(n,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${n}' to be an array, [start, end].`);if(e!=null){let t=e[0],i=e[1];px.forEach(r=>{if(r.test(t)||r.test(i))throw new Error(`['${t}', '${i}'] contains unusable interpolation symbol.`)})}}var zl=class n{static fromArray(e){return e?(dx("interpolation",e),new n(e[0],e[1])):Qn}constructor(e,t){this.start=e,this.end=t}},Qn=new zl("{{","}}"),hx=new Set(["switch"]),gt=0,mx=8,Jd=9,Er=10,T1=11,M1=12,eh=13,P1=32,Gp=33,Zo=34,A1=35,th=36,fx=37,jl=38,Jo=39,xi=40,An=41,gx=42,I1=43,vn=44,Ql=45,ms=46,hi=47,zi=58,Ut=59,vs=60,xr=61,Wi=62,G0=63,nh=48,_x=55,k1=57,js=65,vx=69,Sx=70,xx=88,Oc=90,ys=91,Eo=92,Ss=93,Cx=94,va=95,Br=97,bx=98,wx=101,ih=102,O1=110,D1=114,N1=116,L1=117,B1=118,R1=120,Sa=122,Xn=123,$0=124,It=125,F1=160;var Xu=64,yx=96;function ea(n){return n>=Jd&&n<=P1||n==F1}function zn(n){return nh<=n&&n<=k1}function ta(n){return n>=Br&&n<=Sa||n>=js&&n<=Oc}function Ex(n){return n>=Br&&n<=ih||n>=js&&n<=Sx||zn(n)}function rh(n){return n===Er||n===eh}function W0(n){return nh<=n&&n<=_x}function To(n){return n===Jo||n===Zo||n===yx}var na=class n{constructor(e,t,i,r){this.file=e,this.offset=t,this.line=i,this.col=r}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let t=this.file.content,i=t.length,r=this.offset,s=this.line,o=this.col;for(;r>0&&e<0;)if(r--,e++,t.charCodeAt(r)==Er){s--;let l=t.substring(0,r-1).lastIndexOf(String.fromCharCode(Er));o=l>0?r-l:r}else o--;for(;r<i&&e>0;){let a=t.charCodeAt(r);r++,e--,a==Er?(s++,o=0):o++}return new n(this.file,r,s,o)}getContext(e,t){let i=this.file.content,r=this.offset;if(r!=null){r>i.length-1&&(r=i.length-1);let s=r,o=0,a=0;for(;o<e&&r>0&&(r--,o++,!(i[r]==`
11`&&++a==t)););for(o=0,a=0;o<e&&s<i.length-1&&(s++,o++,!(i[s]==`
12`&&++a==t)););return{before:i.substring(r,this.offset),after:i.substring(this.offset,s+1)}}return null}},Xl=class{constructor(e,t){this.content=e,this.url=t}},se=class{constructor(e,t,i=e,r=null){this.start=e,this.end=t,this.fullStart=i,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Qi=function(n){return n[n.WARNING=0]="WARNING",n[n.ERROR=1]="ERROR",n}(Qi||{}),ie=class{constructor(e,t,i=Qi.ERROR){this.span=e,this.msg=t,this.level=i}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Qi[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function Tx(n,e,t){let i=`in ${n} ${e} in ${t}`,r=new Xl("",i);return new se(new na(r,-1,-1,-1),new na(r,-1,-1,-1))}var Mx=0;function Px(n){if(!n||!n.reference)return null;let e=n.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let t=C1(e);return t.indexOf("(")>=0?(t=`anonymous_${Mx++}`,e.__anonymousType=t):t=Mo(t),t}function Mo(n){return n.replace(/\W/g,"_")}
12var q0='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',$p=class extends Mp{constructor(){super(!1)}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,t){return t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitTaggedTemplateExpr(e,t){let i=e.template.elements;return e.tag.visitExpression(this,t),t.print(e,`(${q0}(`),t.print(e,`[${i.map(r=>vr(r.text,!1)).join(", ")}], `),t.print(e,`[${i.map(r=>vr(r.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}visitFunctionExpr(e,t){return t.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitArrowFunctionExpr(e,t){if(t.print(e,"("),this._visitParams(e.params,t),t.print(e,") =>"),Array.isArray(e.body))t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.print(e,"}");else{let i=e.body instanceof In;i&&t.print(e,"("),e.body.visitExpression(this,t),i&&t.print(e,")")}return null}visitDeclareFunctionStmt(e,t){return t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitLocalizedString(e,t){t.print(e,`$localize(${q0}(`);let i=[e.serializeI18nHead()];for(let r=1;r<e.messageParts.length;r++)i.push(e.serializeI18nTemplatePart(r));return t.print(e,`[${i.map(r=>vr(r.cooked,!1)).join(", ")}], `),t.print(e,`[${i.map(r=>vr(r.raw,!1)).join(", ")}])`),e.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects(i=>t.print(null,i.name),e,t,",")}},sl;function Ax(){if(sl===void 0){let n=wo.trustedTypes;if(sl=null,n)try{sl=n.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return sl}function Ix(n){return Ax()?.createScript(n)||n}function z0(...n){if(!wo.trustedTypes)return new Function(...n);let e=n.slice(0,-1).join(","),t=n[n.length-1],i=`(function anonymous(${e}
13) { ${t}
14})`,r=wo.eval(Ix(i));return r.bind===void 0?new Function(...n):(r.toString=()=>i,r.bind(wo))}var Wp=class{evaluateStatements(e,t,i,r){let s=new qp(i),o=Tp.createRoot();return t.length>0&&!kx(t[0])&&(t=[E("use strict").toStmt(),...t]),s.visitAllStatements(t,o),s.createReturnStmt(o),this.evaluateCode(e,o,s.getArgs(),r)}evaluateCode(e,t,i,r){let s=`"use strict";${t.toSource()}
15//# sourceURL=${e}`,o=[],a=[];for(let c in i)a.push(i[c]),o.push(c);if(r){let c=z0(...o.concat("return null;")).toString(),d=c.slice(0,c.indexOf("return null;")).split(`
16`).length-1;s+=`
17${t.toSourceMapGenerator(e,d).toJsComment()}`}let l=z0(...o.concat(s));return this.executeFunction(l,a)}executeFunction(e,t){return e(...t)}},qp=class extends $p{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new Ot(new In(this._evalExportedVars.map(i=>new As(i,ue(i),!1)))).visitStatement(this,e)}getArgs(){let e={};for(let t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e}visitExternalExpr(e,t){return this._emitReferenceToExternal(e,this.refResolver.resolveExternalReference(e.value),t),null}visitWrappedNodeExpr(e,t){return this._emitReferenceToExternal(e,e.node,t),null}visitDeclareVarStmt(e,t){return e.hasModifier(ut.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareVarStmt(e,t)}visitDeclareFunctionStmt(e,t){return e.hasModifier(ut.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareFunctionStmt(e,t)}_emitReferenceToExternal(e,t,i){let r=this._evalArgValues.indexOf(t);if(r===-1){r=this._evalArgValues.length,this._evalArgValues.push(t);let s=Px({reference:t})||"val";this._evalArgNames.push(`jit_${s}_${r}`)}i.print(e,this._evalArgNames[r])}};function kx(n){return n.isEquivalent(E("use strict").toStmt())}function j0(n){let e=new Ji;n.providers!==null&&e.set("providers",n.providers),n.imports.length>0&&e.set("imports",Pe(n.imports));let t=q(b.defineInjector).callFn([e.toLiteralMap()],void 0,!0),i=Ox(n);return{expression:t,type:i,statements:[]}}function Ox(n){return new Sn(q(b.InjectorDeclaration,[new Sn(n.type.type)]))}var zp=class{constructor(e){this.context=e}
17resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},Kl=function(n){return n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit",n}(Kl||{}),Xi=function(n){return n[n.Global=0]="Global",n[n.Local=1]="Local",n}(Xi||{});function Dx(n){let e=[],t=new Ji;if(t.set("type",n.type.value),n.kind===Xi.Global&&n.bootstrap.length>0&&t.set("bootstrap",Sr(n.bootstrap,n.containsForwardDecls)),n.selectorScopeMode===Kl.Inline)n.declarations.length>0&&t.set("declarations",Sr(n.declarations,n.containsForwardDecls)),n.imports.length>0&&t.set("imports",Sr(n.imports,n.containsForwardDecls)),n.exports.length>0&&t.set("exports",Sr(n.exports,n.containsForwardDecls));else if(n.selectorScopeMode===Kl.SideEffect){let s=Bx(n);s!==null&&e.push(s)}n.schemas!==null&&n.schemas.length>0&&t.set("schemas",Pe(n.schemas.map(s=>s.value))),n.id!==null&&(t.set("id",n.id),e.push(q(b.registerNgModuleType).callFn([n.type.value,n.id]).toStmt()));let i=q(b.defineNgModule).callFn([t.toLiteralMap()],void 0,!0),r=Lx(n);return{expression:i,type:r,statements:e}}function Nx(n){let e=new Ji;return e.set("type",new pe(n.type)),n.bootstrap!==void 0&&e.set("bootstrap",new pe(n.bootstrap)),n.declarations!==void 0&&e.set("declarations",new pe(n.declarations)),n.imports!==void 0&&e.set("imports",new pe(n.imports)),n.exports!==void 0&&e.set("exports",new pe(n.exports)),n.schemas!==void 0&&e.set("schemas",new pe(n.schemas)),n.id!==void 0&&e.set("id",new pe(n.id)),q(b.defineNgModule).callFn([e.toLiteralMap()])}function Lx(n){if(n.kind===Xi.Local)return new Sn(n.type.value);let{type:e,declarations:t,exports:i,imports:r,includeImportTypes:s,publicDeclarationTypes:o}=n;return new Sn(q(b.NgModuleDeclaration,[new Sn(e.type),o===null?Ku(t):Rx(o),s?Ku(r):Zn,Ku(i)]))}function Bx(n){let e=new Ji;if(n.kind===Xi.Global?n.declarations.length>0&&e.set("declarations",Sr(n.declarations,n.containsForwardDecls)):n.declarationsExpression&&e.set("declarations",n.declarationsExpression),n.kind===Xi.Global?n.imports.length>0&&e.set("imports",Sr(n.imports,n.containsForwardDecls)):n.importsExpression&&e.set("imports",n.importsExpression),n.kind===Xi.Global?n.exports.length>0&&e.set("exports",Sr(n.exports,n.containsForwardDecls)):n.exportsExpression&&e.set("exports",n.exportsExpression),n.kind===Xi.Local&&n.bootstrapExpression&&e.set("bootstrap",n.bootstrapExpression),Object.keys(e.values).length===0)return null;let t=new wt(q(b.setNgModuleScope),[n.type.value,e.toLiteralMap()]),i=z2(t),r=new _i([],[i.toStmt()]);return new wt(r,[]).toStmt()}function Ku(n){let e=n.map(t=>Ac(t.type));return n.length>0?pt(Pe(e)):Zn}function Rx(n){let e=n.map(t=>Ac(t));return n.length>0?pt(Pe(e)):Zn}function Q0(n){let e=[];e.push({key:"name",value:E(n.pipeName),quoted:!1}),e.push({key:"type",value:n.type.value,quoted:!1}),e.push({key:"pure",value:E(n.pure),quoted:!1}),n.isStandalone&&e.push({key:"standalone",value:E(!0),quoted:!1});let t=q(b.definePipe).callFn([yt(e)],void 0,!0),i=Fx(n);return{expression:t,type:i,statements:[]}}function Fx(n){return new Sn(q(b.PipeDeclaration,[kc(n.type.type,n.typeArgumentCount),new Sn(new dt(n.pipeName)),new Sn(new dt(n.isStandalone))]))}var Dc=function(n){return n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule",n}(Dc||{}),Hx=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),Vx=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],jp=class{constructor(){this._animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g}shimCssText(e,t,i=""){let r=[];e=e.replace(Yx,a=>{if(a.match(Zx))r.push(a);else{let l=a.match(Kx);r.push((l?.join("")??"")+`
18`)}return ah}),e=this._insertDirectives(e);let s=this._scopeCssText(e,t,i),o=0;return s.replace(Jx,()=>r[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,t){let i=new Set,r=ol(e,s=>this._scopeLocalKeyframeDeclarations(s,t,i));return ol(r,s=>this._scopeAnimationRule(s,t,i))}_scopeLocalKeyframeDeclarations(e,t,i){return _e(P({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,s,o,a,l)=>(i.add(Z0(a,o)),`${s}${o}${t}_${a}${o}${l}`))})}_scopeAnimationKeyframe(e,t,i){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,s,o,a,l)=>(a=`${i.has(Z0(a,o))?t+"_":""}${a}
18`,`${s}${o}${a}${o}${l}`))}_scopeAnimationRule(e,t,i){let r=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(s,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(l,c,d="",_,x)=>_?`${c}${this._scopeAnimationKeyframe(`${d}${_}${d}`,t,i)}`:Hx.has(x)?l:`${c}${this._scopeAnimationKeyframe(x,t,i)}`));return r=r.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(s,o,a)=>`${o}${a.split(",").map(l=>this._scopeAnimationKeyframe(l,t,i)).join(",")}`),_e(P({},e),{content:r})}_insertPolyfillDirectivesInCssText(e){return e.replace(Ux,function(...t){return t[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(Gx,(...t)=>{let i=t[0].replace(t[1],"").replace(t[2],"");return t[4]+i})}_scopeCssText(e,t,i){let r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeKeyframesRelatedCss(e,t),e=this._scopeSelectors(e,t,i)),e=e+`
19`+r,e.trim()}_extractUnscopedRulesFromCssText(e){let t="",i;for(X0.lastIndex=0;(i=X0.exec(e))!==null;){let r=i[0].replace(i[2],"").replace(i[1],i[4]);t+=r+`
20
21`}return t}_convertColonHost(e){return e.replace($x,(t,i,r)=>{if(i){let s=[],o=i.split(",").map(a=>a.trim());for(let a of o){if(!a)break;let l=hr+a.replace(Yl,"")+r;s.push(l)}return s.join(",")}else return hr+r})}_convertColonHostContext(e){return e.replace(Wx,t=>{let i=[[]],r;for(;r=qx.exec(t);){let s=(r[1]??"").trim().split(",").map(a=>a.trim()).filter(a=>a!==""),o=i.length;uC(i,s.length);for(let a=0;a<s.length;a++)for(let l=0;l<o;l++)i[l+a*o].push(s[a]);t=r[2]}return i.map(s=>cC(s,t)).join(", ")})}_convertShadowDOMSelectors(e){return zx.reduce((t,i)=>t.replace(i," "),e)}_scopeSelectors(e,t,i){return ol(e,r=>{let s=r.selector,o=r.content;return r.selector[0]!=="@"?s=this._scopeSelector(r.selector,t,i):Vx.some(a=>r.selector.startsWith(a))?o=this._scopeSelectors(r.content,t,i):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(r.content)),new ia(s,o)})}_stripScopingSelectors(e){return ol(e,t=>{let i=t.selector.replace(Y0," ").replace(K0," ");return new ia(i,t.content)})}_scopeSelector(e,t,i){return e.split(/ ?, ?/).map(r=>r.split(Y0)).map(r=>{let[s,...o]=r;return[(l=>this._selectorNeedsScoping(l,t)?this._applySelectorScope(l,t,i):l)(s),...o].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){let t=/\[/g,i=/\]/g;return e=e.replace(t,"\\[").replace(i,"\\]"),new RegExp("^("+e+")"+jx,"m")}_applySimpleSelectorScope(e,t,i){if(xs.lastIndex=0,xs.test(e)){let r=`[${i}]`;return e.replace(K0,(s,o)=>o.replace(/([^:]*)(:*)(.*)/,(a,l,c,d)=>l+r+c+d)).replace(xs,r+" ")}return t+" "+e}_applySelectorScope(e,t,i){let r=/\[is=([^\]]*)\]/g;t=t.replace(r,(T,...D)=>D[0]);let s="["+t+"]",o=T=>{let D=T.trim();if(!D)return T;if(T.includes(hr))D=this._applySimpleSelectorScope(T,t,i);else{let L=T.replace(xs,"");if(L.length>0){let B=L.match(/([^:]*)(:*)(.*)/);B&&(D=B[1]+s+B[2]+B[3])}}return D},a=new Qp(e);e=a.content();let l="",c=0,d,_=/( |>|\+|~(?!=))\s*/g,w=!e.includes(hr);for(;(d=_.exec(e))!==null;){let T=d[1],D=e.slice(c,d.index);if(D.match(/__esc-ph-(\d+)__/)&&e[d.index+1]?.match(/[a-fA-F\d]/))continue;w=w||D.includes(hr);let L=w?o(D):D;l+=`${L} ${T} `,c=_.lastIndex}let C=e.substring(c);return w=w||C.includes(hr),l+=w?o(C):C,a.restore(l)}_insertPolyfillHostInCssText(e){return e.replace(Xx,sh).replace(Qx,Yl)}},Qp=class{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(t,i)=>{let r=`__esc-ph-${this.index}__`;return this.placeholders.push(i),this.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(t,i,r)=>{let s=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,i+s})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(t,i)=>this.placeholders[+i])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(i,r)=>{let s=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,s})}},Ux=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Gx=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,X0=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Yl="-shadowcsshost",sh="-shadowcsscontext",oh="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",$x=new RegExp(Yl+oh,"gim"),Wx=new RegExp(sh+oh,"gim"),qx=new RegExp(sh+oh,"im"),hr=Yl+"-no-combinator",K0=/-sha
21dowcsshost-no-combinator([^\s]*)/,zx=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Y0=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,jx="([>\\s~+[.,{:][\\s\\S]*)?$",xs=/-shadowcsshost/gim,Qx=/:host/gim,Xx=/:host-context/gim,Kx=/\r?\n/g,Yx=/\/\*[\s\S]*?\*\//g,Zx=/\/\*\s*#\s*source(Mapping)?URL=/g,ah="%COMMENT%",Jx=new RegExp(ah,"g"),Yu="%BLOCK%",eC=new RegExp(`(\\s*(?:${ah}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),tC=new Map([["{","}"]]),H1="%COMMA_IN_PLACEHOLDER%",V1="%SEMI_IN_PLACEHOLDER%",U1="%COLON_IN_PLACEHOLDER%",nC=new RegExp(H1,"g"),iC=new RegExp(V1,"g"),rC=new RegExp(U1,"g"),ia=class{constructor(e,t){this.selector=e,this.content=t}};function ol(n,e){let t=aC(n),i=sC(t,tC,Yu),r=0,s=i.escapedString.replace(eC,(...o)=>{let a=o[2],l="",c=o[4],d="";c&&c.startsWith("{"+Yu)&&(l=i.blocks[r++],c=c.substring(Yu.length+1),d="{");let _=e(new ia(a,l));return`${o[1]}${_.selector}${o[3]}${d}${_.content}${c}`});return lC(s)}var Xp=class{constructor(e,t){this.escapedString=e,this.blocks=t}};function sC(n,e,t){let i=[],r=[],s=0,o=0,a=-1,l,c;for(let d=0;d<n.length;d++){let _=n[d];_==="\\"?d++:_===c?(s--,s===0&&(r.push(n.substring(a,d)),i.push(t),o=d,a=-1,l=c=void 0)):_===l?s++:s===0&&e.has(_)&&(l=_,c=e.get(_),s=1,a=d+1,i.push(n.substring(o,a)))}return a!==-1?(r.push(n.substring(a)),i.push(t)):i.push(n.substring(o)),new Xp(i.join(""),r)}var oC={";":V1,",":H1,":":U1};function aC(n){let e=n,t=null;for(let i=0;i<e.length;i++){let r=e[i];if(r==="\\")i++;else if(t!==null)if(r===t)t=null;else{let s=oC[r];s&&(e=`${e.substr(0,i)}${s}${e.substr(i+1)}`,i+=s.length-1)}else(r==="'"||r==='"')&&(t=r)}return e}function lC(n){let e=n.replace(nC,",");return e=e.replace(iC,";"),e=e.replace(rC,":"),e}function Z0(n,e){return e?n.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):n}function cC(n,e){let t=hr;xs.lastIndex=0;let i=xs.test(e);if(n.length===0)return t+e;let r=[n.pop()||""];for(;n.length>0;){let s=r.length,o=n.pop();for(let a=0;a<s;a++){let l=r[a];r[s*2+a]=l+" "+o,r[s+a]=o+" "+l,r[a]=o+l}}return r.map(s=>i?`${s}${e}`:`${s}${t}${e}, ${s} ${t}${e}`).join(",")}function uC(n,e){let t=n.length;for(let i=1;i<e;i++)for(let r=0;r<t;r++)n[r+i*t]=n[r].slice(0)}var g=function(n){return n[n.ListEnd=0]="ListEnd",n[n.Statement=1]="Statement",n[n.Variable=2]="Variable",n[n.ElementStart=3]="ElementStart",n[n.Element=4]="Element",n[n.Template=5]="Template",n[n.ElementEnd=6]="ElementEnd",n[n.ContainerStart=7]="ContainerStart",n[n.Container=8]="Container",n[n.ContainerEnd=9]="ContainerEnd",n[n.DisableBindings=10]="DisableBindings",n[n.Conditional=11]="Conditional",n[n.EnableBindings=12]="EnableBindings",n[n.Text=13]="Text",n[n.Listener=14]="Listener",n[n.InterpolateText=15]="InterpolateText",n[n.Binding=16]="Binding",n[n.Property=17]="Property",n[n.StyleProp=18]="StyleProp",n[n.ClassProp=19]="ClassProp",n[n.StyleMap=20]="StyleMap",n[n.ClassMap=21]="ClassMap",n[n.Advance=22]="Advance",n[n.Pipe=23]="Pipe",n[n.Attribute=24]="Attribute",n[n.ExtractedAttribute=25]="ExtractedAttribute",n[n.Defer=26]="Defer",n[n.DeferOn=27]="DeferOn",n[n.DeferWhen=28]="DeferWhen",n[n.I18nMessage=29]="I18nMessage",n[n.HostProperty=30]="HostProperty",n[n.Namespace=31]="Namespace",n[n.ProjectionDef=32]="ProjectionDef",n[n.Projection=33]="Projection",n[n.RepeaterCreate=34]="RepeaterCreate",n[n.Repeater=35]="Repeater",n[n.TwoWayProperty=36]="TwoWayProperty",n[n.TwoWayListener=37]="TwoWayListener",n[n.DeclareLet=38]="DeclareLet",n[n.StoreLet=39]="StoreLet",n[n.I18nStart=40]="I18nStart",n[n.I18n=41]="I18n",n[n.I18nEnd=42]="I18nEnd",n[n.I18nExpression=43]="I18nExpression",n[n.I18nApply=44]="I18nApply",n[n.IcuStart=45]="IcuStart",n[n.IcuEnd=46]="IcuEnd",n[n.IcuPlaceholder=47]="IcuPlaceholder",n[n.I18nContext=48]="I18nContext",n[n.I18nAttributes=49]="I18nAttributes",n}(g||{}),z=function(n){return n[n.LexicalRead=0]="LexicalRead",n[n.Context=1]="Context",n[n.TrackContext=2]="TrackContext",n[n.ReadVariable=3]="ReadVariable",n[n.NextContext=4]="NextContext",n[n.Reference=5]="Reference",n[n.StoreLet=6]="StoreLet",n[n.ContextLetReference=7]="ContextLetReference",n[n.GetCurrentView=8]="GetCurrentView",n[n.RestoreView=9]="RestoreView",n[n.ResetView=10]="ResetView",n[n.PureFunctionExpr=11]="PureFunctionExpr",n[n.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",n[n.PipeBinding=13]="PipeBinding",n[n.PipeBindingVariadic=14]="PipeBindingVariadic",n[n.SafePropertyRead=15]="SafePropertyRead",n[n.SafeKeyedRead=16]="SafeKeyedRead",n[n.SafeInvokeFunction=17]="SafeInvokeFunction",n[n.SafeTernaryExpr=18]="SafeTernaryExpr",n[n.EmptyExpr=19]="EmptyExpr",n[n.AssignTemporaryExpr=20]="AssignTemporaryExpr",n[n.ReadTemporaryExpr=21]="ReadTemporaryExpr",n[n.SlotLiteralExpr=22]="SlotLiteralExpr",n[n.ConditionalCase=23]="ConditionalCase",n[n.Const
21Collected=24]="ConstCollected",n[n.TwoWayBindingSet=25]="TwoWayBindingSet",n}(z||{}),fn=function(n){return n[n.None=0]="None",n[n.AlwaysInline=1]="AlwaysInline",n}(fn||{}),rt=function(n){return n[n.Context=0]="Context",n[n.Identifier=1]="Identifier",n[n.SavedView=2]="SavedView",n[n.Alias=3]="Alias",n}(rt||{}),Qt=function(n){return n[n.Normal=0]="Normal",n[n.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder",n}(Qt||{}),j=function(n){return n[n.Attribute=0]="Attribute",n[n.ClassName=1]="ClassName",n[n.StyleProperty=2]="StyleProperty",n[n.Property=3]="Property",n[n.Template=4]="Template",n[n.I18n=5]="I18n",n[n.Animation=6]="Animation",n[n.TwoWayProperty=7]="TwoWayProperty",n}(j||{}),ra=function(n){return n[n.Creation=0]="Creation",n[n.Postproccessing=1]="Postproccessing",n}(ra||{}),Qs=function(n){return n[n.I18nText=0]="I18nText",n[n.I18nAttribute=1]="I18nAttribute",n}(Qs||{}),Oe=function(n){return n[n.None=0]="None",n[n.ElementTag=1]="ElementTag",n[n.TemplateTag=2]="TemplateTag",n[n.OpenTag=4]="OpenTag",n[n.CloseTag=8]="CloseTag",n[n.ExpressionIndex=16]="ExpressionIndex",n}(Oe||{}),_t=function(n){return n[n.HTML=0]="HTML",n[n.SVG=1]="SVG",n[n.Math=2]="Math",n}(_t||{}),Be=function(n){return n[n.Idle=0]="Idle",n[n.Immediate=1]="Immediate",n[n.Timer=2]="Timer",n[n.Hover=3]="Hover",n[n.Interaction=4]="Interaction",n[n.Viewport=5]="Viewport",n}(Be||{}),Cr=function(n){return n[n.RootI18n=0]="RootI18n",n[n.Icu=1]="Icu",n[n.Attr=2]="Attr",n}(Cr||{}),qt=function(n){return n[n.NgTemplate=0]="NgTemplate",n[n.Structural=1]="Structural",n[n.Block=2]="Block",n}(qt||{}),G1=Symbol("ConsumesSlot"),lh=Symbol("DependsOnSlotContext"),Xs=Symbol("ConsumesVars"),Nc=Symbol("UsesVarOffset"),ni={[G1]:!0,numSlotsUsed:1},Xt={[lh]:!0},Nt={[Xs]:!0};function Ks(n){return n[G1]===!0}function Zl(n){return n[lh]===!0}function Zu(n){return n[Xs]===!0}function J0(n){return n[Nc]===!0}function ei(n){return P({kind:g.Statement,statement:n},ae)}function ji(n,e,t,i){return P({kind:g.Variable,xref:n,variable:e,initializer:t,flags:i},ae)}var ae={debugListId:null,prev:null,next:null};function pC(n,e,t){return P(P(P({kind:g.InterpolateText,target:n,interpolation:e,sourceSpan:t},Xt),Nt),ae)}var qe=class{constructor(e,t,i){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=i,i.length!==0&&i.length!==t.length)throw new Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${i.length}`)}};function Rr(n,e,t,i,r,s,o,a,l,c,d){return P({kind:g.Binding,bindingKind:e,target:n,name:t,expression:i,unit:r,securityContext:s,isTextAttribute:o,isStructuralTemplateAttribute:a,templateKind:l,i18nContext:null,i18nMessage:c,sourceSpan:d},ae)}function dC(n,e,t,i,r,s,o,a,l,c){return P(P(P({kind:g.Property,target:n,name:e,expression:t,isAnimationTrigger:i,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:o,i18nContext:a,i18nMessage:l,sourceSpan:c},Xt),Nt),ae)}function hC(n,e,t,i,r,s,o,a,l){return P(P(P({kind:g.TwoWayProperty,target:n,name:e,expression:t,securityContext:i,sanitizer:null,isStructuralTemplateAttribute:r,templateKind:s,i18nContext:o,i18nMessage:a,sourceSpan:l},Xt),Nt),ae)}function mC(n,e,t,i,r){return P(P(P({kind:g.StyleProp,target:n,name:e,expression:t,unit:i,sourceSpan:r},Xt),Nt),ae)}function fC(n,e,t,i){return P(P(P({kind:g.ClassProp,target:n,name:e,expression:t,sourceSpan:i},Xt),Nt),ae)}function gC(n,e,t){return P(P(P({kind:g.StyleMap,target:n,expression:e,sourceSpan:t},Xt),Nt),ae)}function _C(n,e,t){return P(P(P({kind:g.ClassMap,target:n,expression:e,sourceSpan:t},Xt),Nt),ae)}function vC(n,e,t,i,r,s,o,a,l,c){return P(P(P({kind:g.Attribute,target:n,namespace:e,name:t,expression:i,securityContext:r,sanitizer:null,isTextAttribute:s,isStructuralTemplateAttribute:o,templateKind:a,i18nContext:null,i18nMessage:l,sourceSpan:c},Xt),Nt),ae)}function SC(n,e){return P({kind:g.Advance,delta:n,sourceSpan:e},ae)}function $1(n,e,t,i){return P(P(P({kind:g.Conditional,target:n,test:e,conditions:t,processed:null,sourceSpan:i,contextValue:null},ae),Xt),Nt)}function xC(n,e,t,i){return P(P({kind:g.Repeater,target:n,targetSlot:e,collection:t,sourceSpan:i},ae),Xt)}function CC(n,e,t,i){return P(P(P({kind:g.DeferWhen,target:n,expr:e,prefetch:t,sourceSpan:i},ae),Xt),Nt)}function W1(n,e,t,i,r,s,o,a,l,c,d){return P(P(P({kind:g.I18nExpression,context:n,target:e,i18nOwner:t,handle:i,expression:r,icuPlaceholder:s,i18nPlaceholder:o,resolutionTime:a,usage:l,name:c,sourceSpan:d},ae),Nt),Xt)}function bC(n,e,t){return P({kind:g.I18nApply,owner:n,handle:e,sourceSpan:t},ae)}function wC(n,e,t,i){return P(P(P({kind:g.StoreLet,target:n,declaredName:e,value:t,sourceSpan:i},Xt),Nt),ae)}var eg,tg,ng,ig,rg,sg,og,ag;function ti(n){return n instanceof Ie}var Ie=class extends Ae{constructor(e=null){super(null,e)}},ct=class n extends Ie{constructor(e){super(),this.name=e,this.kind=z.LexicalRead}visitExpression(e,t){}isEquivalent(e){return this.name===e.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.name)}},Jl=class n extends Ie{constructor(e,t,i){super(),this.target=e,this.targetSlot=t,this.offset=i,this.kind=z.Reference}visitExpression(){}isEquivalent(e){return e instanceof n&&e.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.target,this.targetSlot,this.offset)}},Mc=class Mc extends Ie{constructor(e,t,i){super(),this.target=e,this.value=t,this.sourceSpan=i,this.kind=z.StoreLet,this[eg]=!0,this[tg]=!0}visitExpression(){}isEquivalent(e){return e instanceof Mc&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,t){this.value=V(this.value,e,t)}clone(){return new Mc(this.target,this.value,this.sourceSpan)}};eg=Xs,tg=lh;var sa=Mc,oa=class n extends Ie{constructor(e,t){super(),this.target=e,this.targetSlot=t,this.kind=z.ContextLetReference}visitExpression(){}isEquivalent(e){return e instanceof n&&e.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.target,this.targetSlot)}},Ei=class n extends Ie{constructor(e){super(),this.view=e,this.kind=z.Context}visitExpression(){}isEquivalent(e){return e instanceof n&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.view)}},ec=class n extends Ie{constructor(e){super(),this.view=e,this.kind=z.TrackContext}visitExpression(){}isEquivalent(e){return e instanceof n&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.view)}},tc=class n extends Ie{constructor(){super(),this.kind=z.NextContext,this.steps=1}visitExpression(){}isEquivalent(e){return e instanceof n&&e.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let e=new n;return e.steps=this.steps,e}},Kp=class n extends Ie{constructor(){super(),this.kind=z.GetCurrentView}visitExpression(){}isEquivalent(e){return e instanceof n}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n}},nc=class n extends Ie{constructor(e){super(),this.view=e,this.kind=z.RestoreView}visitExpression(e,t){typeof this.view!="number"&&this.view.visitExpression(e,t)}isEquivalent(e){return!(e instanceof n)||typeof e.view!=typeof this.view?!1:typeof this.view=="number"?this.view===e.view:this.view.isEquivalent(e.view)}isConstant(){return!1}transformInternalExpressions(e,t){typeof this.view!="number"&&(this.view=V(this.view,e,t))}clone(){return new n(this.view instanceof Ae?this.view.clone():this.view)}},Yp=class n extends Ie{constructor(e){super(),this.expr=e,this.kind=z.ResetView}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}transformInternalExpressions(e,t){this.expr=V(this.expr,e,t)}clone(){return new n(this.expr.clone())}},ic=class n extends Ie{constructor(e,t){super(),this.target=e,this.value=t,this.kind=z.TwoWayBindingSet}visitExpression(e,t){this.target.visitExpression(e,t),this.value.visitExpression(e,t)}isEquivalent(e){return this.target.isEquivalent(e.target)&&this.value.isEquivalent(e.value)}isConstant(){return!1}transformInternalExpressions(e,t){this.target=V(this.target,e,t),this.value=V(this.value,e,t)}clone(){return new n(this.target,this.value)}},Ci=class n extends Ie{constructor(e){super(),this.xref=e,this.kind=z.ReadVariable,this.name=null}visitExpression(){}isEquivalent(e){return e instanceof n&&e.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let e=new n(this.xref);return e.name=this.name,e}},Pc=class Pc extends Ie{constructor(e,t){super(),this.kind=z.PureFunctionExpr,this[ng]=!0,this[ig]=!0,this.varOff
21set=null,this.fn=null,this.body=e,this.args=t}visitExpression(e,t){this.body?.visitExpression(e,t);for(let i of this.args)i.visitExpression(e,t)}isEquivalent(e){return!(e instanceof Pc)||e.args.length!==this.args.length?!1:e.body!==null&&this.body!==null&&e.body.isEquivalent(this.body)&&e.args.every((t,i)=>t.isEquivalent(this.args[i]))}isConstant(){return!1}transformInternalExpressions(e,t){this.body!==null?this.body=V(this.body,e,t|ye.InChildOperation):this.fn!==null&&(this.fn=V(this.fn,e,t));for(let i=0;i<this.args.length;i++)this.args[i]=V(this.args[i],e,t)}clone(){let e=new Pc(this.body?.clone()??null,this.args.map(t=>t.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}};ng=Xs,ig=Nc;var Fr=Pc,Hs=class n extends Ie{constructor(e){super(),this.index=e,this.kind=z.PureFunctionParameterExpr}visitExpression(){}isEquivalent(e){return e instanceof n&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new n(this.index)}},gh=class gh extends Ie{constructor(e,t,i,r){super(),this.target=e,this.targetSlot=t,this.name=i,this.args=r,this.kind=z.PipeBinding,this[rg]=!0,this[sg]=!0,this.varOffset=null}visitExpression(e,t){for(let i of this.args)i.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){for(let i=0;i<this.args.length;i++)this.args[i]=V(this.args[i],e,t)}clone(){let e=new gh(this.target,this.targetSlot,this.name,this.args.map(t=>t.clone()));return e.varOffset=this.varOffset,e}};rg=Xs,sg=Nc;var Hr=gh,_h=class _h extends Ie{constructor(e,t,i,r,s){super(),this.target=e,this.targetSlot=t,this.name=i,this.args=r,this.numArgs=s,this.kind=z.PipeBindingVariadic,this[og]=!0,this[ag]=!0,this.varOffset=null}visitExpression(e,t){this.args.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.args=V(this.args,e,t)}clone(){let e=new _h(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}};og=Xs,ag=Nc;var rc=_h,Vs=class n extends Ie{constructor(e,t){super(),this.receiver=e,this.name=t,this.kind=z.SafePropertyRead}get index(){return this.name}visitExpression(e,t){this.receiver.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=V(this.receiver,e,t)}clone(){return new n(this.receiver.clone(),this.name)}},Us=class n extends Ie{constructor(e,t,i){super(i),this.receiver=e,this.index=t,this.kind=z.SafeKeyedRead}visitExpression(e,t){this.receiver.visitExpression(e,t),this.index.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=V(this.receiver,e,t),this.index=V(this.index,e,t)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},er=class n extends Ie{constructor(e,t){super(),this.receiver=e,this.args=t,this.kind=z.SafeInvokeFunction}visitExpression(e,t){this.receiver.visitExpression(e,t);for(let i of this.args)i.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=V(this.receiver,e,t);for(let i=0;i<this.args.length;i++)this.args[i]=V(this.args[i],e,t)}clone(){return new n(this.receiver.clone(),this.args.map(e=>e.clone()))}},Gs=class n extends Ie{constructor(e,t){super(),this.guard=e,this.expr=t,this.kind=z.SafeTernaryExpr}visitExpression(e,t){this.guard.visitExpression(e,t),this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.guard=V(this.guard,e,t),this.expr=V(this.expr,e,t)}clone(){return new n(this.guard.clone(),this.expr.clone())}},aa=class n extends Ie{constructor(){super(...arguments),this.kind=z.EmptyExpr}visitExpression(e,t){}isEquivalent(e){return e instanceof n}isConstant(){return!0}clone(){return new n}transformInternalExpressions(){}},On=class n extends Ie{constructor(e,t){super(),this.expr=e,this.xref=t,this.kind=z.AssignTemporaryExpr,this.name=null}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.expr=V(this.expr,e,t)}clone(){let e=new n(this.expr.clone(),this.xref);return e.name=this.name,e}},Ti=class n extends Ie{constructor(e){super(),this.xref=e,this.kind=z.ReadTemporaryExpr,this.name=null}visitExpression(e,t){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(e,t){}clone(){let e=new n(this.xref);return e.name=this.name,e}},sc=class n extends Ie{constructor(e){super(),this.slot=e,this.kind=z.SlotLiteralExpr}visitExpression(e,t){}isEquivalent(e){return e instanceof n&&e.slot===this.slot}isConstant(){return!0}clone(){return new n(this.slot)}transformInternalExpressions(){}},oc=class n extends Ie{constructor(e,t,i,r=null){super(),this.expr=e,this.target=t,this.targetSlot=i,this.alias=r,this.kind=z.ConditionalCase}visitExpression(e,t){this.expr!==null&&this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&e.expr===this.expr}isConstant(){return!0}clone(){return new n(this.expr,this.target,this.targetSlot)}transformInternalExpressions(e,t){this.expr!==null&&(this.expr=V(this.expr,e,t))}},la=class n extends Ie{constructor(e){super(),this.expr=e,this.kind=z.ConstCollected}transformInternalExpressions(e,t){this.expr=e(this.expr,t)}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n?this.expr.isEquivalent(e.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr)}};function St(n,e){Ze(n,(t,i)=>(e(t,i),t),ye.None)}var ye=function(n){return n[n.None=0]="None",n[n.InChildOperation=1]="InChildOperation",n}(ye||{});function Ju(n,e,t){for(let i=0;i<n.expressions.length;i++)n.expressions[i]=V(n.expressions[i],e,t)}function Ze(n,e,t){switch(n.kind){case g.StyleProp:case g.StyleMap:case g.ClassProp:case g.ClassMap:case g.Binding:n.expression instanceof qe?Ju(n.expression,e,t):n.expression=V(n.expression,e,t);break;case g.Property:case g.HostProperty:case g.Attribute:n.expression instanceof qe?Ju(n.expression,e,t):n.expression=V(n.expression,e,t),n.sanitizer=n.sanitizer&&V(n.sanitizer,e,t);break;case g.TwoWayProperty:n.expression=V(n.expression,e,t),n.sanitizer=n.sanitizer&&V(n.sanitizer,e,t);break;case g.I18nExpression:n.expression=V(n.expression,e,t);break;case g.InterpolateText:Ju(n.interpolation,e,t);break;case g.Statement:ac(n.statement,e,t);break;case g.Variable:n.initializer=V(n.initializer,e,t);break;case g.Conditional:for(let i of n.conditions)i.expr!==null&&(i.expr=V(i.expr,e,t));n.processed!==null&&(n.processed=V(n.processed,e,t)),n.contextValue!==null&&(n.contextValue=V(n.contextValue,e,t));break;case g.Listener:case g.TwoWayListener:for(let i of n.handlerOps)Ze(i,e,t|ye.InChildOperation);break;case g.ExtractedAttribute:n.expression=n.expression&&V(n.expression,e,t),n.trustedValueFn=n.trustedValueFn&&V(n.trustedValueFn,e,t);break;case g.RepeaterCreate:n.track=V(n.track,e,t),n.trackByFn!==null&&(n.trackByFn=V(n.trackByFn,e,t));break;case g.Repeater:n.collection=V(n.collection,e,t);break;case g.Defer:n.loadingConfig!==null&&(n.loadingConfig=V(n.loadingConfig,e,t)),n.placeholderConfig!==null&&(n.placeholderConfig=V(n.placeholderConfig,e,t)),n.resolverFn!==null&&(n.resolverFn=V(n.resolverFn,e,t));break;case g.I18nMessage:for(let[i,r]of n.params)n.params.set(i,V(r,e,t));for(let[i,r]of n.postprocessingParams)n.postprocessingParams.set(i,V(r,e,t));break;case g.DeferWhen:n.expr=V(n.expr,e,t);break;case g.StoreLet:n.value=V(n.value,e,t);break;case g.Advance:case g.Container:case g.ContainerEnd:case g.ContainerStart:case g.DeferOn:case g.DisableBindings:case g.Element:case g.ElementEnd:case g.ElementStart:case g.EnableBindings:case g.I18n:case g.I18nApply:case g.I18nContext:case g.I18nEnd:case g.I18nStart:case g.IcuEnd:case g.IcuStart:case g.Namespace:case g.Pipe:case g.Projection:case g.ProjectionDef:case g.Template:case g.Text:case g.I18nAttributes:case g.IcuPlaceholder:case g.DeclareLet
21:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${g[n.kind]}`)}}function V(n,e,t){if(n instanceof Ie)n.transformInternalExpressions(e,t);else if(n instanceof be)n.lhs=V(n.lhs,e,t),n.rhs=V(n.rhs,e,t);else if(n instanceof Ps)n.expr=V(n.expr,e,t);else if(n instanceof jt)n.receiver=V(n.receiver,e,t);else if(n instanceof wi)n.receiver=V(n.receiver,e,t),n.index=V(n.index,e,t);else if(n instanceof Ms)n.receiver=V(n.receiver,e,t),n.value=V(n.value,e,t);else if(n instanceof Do)n.receiver=V(n.receiver,e,t),n.index=V(n.index,e,t),n.value=V(n.value,e,t);else if(n instanceof wt){n.fn=V(n.fn,e,t);for(let i=0;i<n.args.length;i++)n.args[i]=V(n.args[i],e,t)}else if(n instanceof bn)for(let i=0;i<n.entries.length;i++)n.entries[i]=V(n.entries[i],e,t);else if(n instanceof In)for(let i=0;i<n.entries.length;i++)n.entries[i].value=V(n.entries[i].value,e,t);else if(n instanceof bi)n.condition=V(n.condition,e,t),n.trueCase=V(n.trueCase,e,t),n.falseCase!==null&&(n.falseCase=V(n.falseCase,e,t));else if(n instanceof Ts)n.expr=V(n.expr,e,t);else if(n instanceof gl)n.value=V(n.value,e,t);else if(n instanceof vl)for(let i=0;i<n.expressions.length;i++)n.expressions[i]=V(n.expressions[i],e,t);else if(n instanceof Lo)n.condition=V(n.condition,e,t);else if(n instanceof _l)n.tag=V(n.tag,e,t),n.template.expressions=n.template.expressions.map(i=>V(i,e,t));else if(n instanceof Ir)if(Array.isArray(n.body))for(let i=0;i<n.body.length;i++)ac(n.body[i],e,t);else n.body=V(n.body,e,t);else if(!(n instanceof pe)){if(!(n instanceof Cn||n instanceof Ar||n instanceof dt))throw new Error(`Unhandled expression kind: ${n.constructor.name}`)}return e(n,t)}function ac(n,e,t){if(n instanceof wn)n.expr=V(n.expr,e,t);else if(n instanceof Ot)n.value=V(n.value,e,t);else if(n instanceof vt)n.value!==void 0&&(n.value=V(n.value,e,t));else if(n instanceof xl){n.condition=V(n.condition,e,t);for(let i of n.trueCase)ac(i,e,t);for(let i of n.falseCase)ac(i,e,t)}else throw new Error(`Unhandled statement kind: ${n.constructor.name}`)}function q1(n){return n instanceof dt&&typeof n.value=="string"}var O=(()=>{let e=class e{constructor(){this.debugListId=e.nextListId++,this.head={kind:g.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.tail={kind:g.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.head.next=this.tail,this.tail.prev=this.head}push(i){if(Array.isArray(i)){for(let s of i)this.push(s);return}e.assertIsNotEnd(i),e.assertIsUnowned(i),i.debugListId=this.debugListId;let r=this.tail.prev;i.prev=r,r.next=i,i.next=this.tail,this.tail.prev=i}prepend(i){if(i.length===0)return;for(let o of i)e.assertIsNotEnd(o),e.assertIsUnowned(o),o.debugListId=this.debugListId;let r=this.head.next,s=this.head;for(let o of i)s.next=o,o.prev=s,s=o;s.next=r,r.prev=s}*[Symbol.iterator](){let i=this.head.next;for(;i!==this.tail;){e.assertIsOwned(i,this.debugListId);let r=i.next;yield i,i=r}}*reversed(){let i=this.tail.prev;for(;i!==this.head;){e.assertIsOwned(i,this.debugListId);let r=i.prev;yield i,i=r}}static replace(i,r){e.assertIsNotEnd(i),e.assertIsNotEnd(r),e.assertIsOwned(i),e.assertIsUnowned(r),r.debugListId=i.debugListId,i.prev!==null&&(i.prev.next=r,r.prev=i.prev),i.next!==null&&(i.next.prev=r,r.next=i.next),i.debugListId=null,i.prev=null,i.next=null}static replaceWithMany(i,r){if(r.length===0){e.remove(i);return}e.assertIsNotEnd(i),e.assertIsOwned(i);let s=i.debugListId;i.debugListId=null;for(let _ of r)e.assertIsNotEnd(_),e.assertIsUnowned(_);let{prev:o,next:a}=i;i.prev=null,i.next=null;let l=o;for(let _ of r)this.assertIsUnowned(_),_.debugListId=s,l.next=_,_.prev=l,_.next=null,l=_;let c=r[0],d=l;o!==null&&(o.next=c,c.prev=o),a!==null&&(a.prev=d,d.next=a)}static remove(i){e.assertIsNotEnd(i),e.assertIsOwned(i),i.prev.next=i.next,i.next.prev=i.prev,i.debugListId=null,i.prev=null,i.next=null}static insertBefore(i,r){if(Array.isArray(i)){for(let s of i)this.insertBefore(s,r);return}if(e.assertIsOwned(r),r.prev===null)throw new Error("AssertionError: illegal operation on list start");e.assertIsNotEnd(i),e.assertIsUnowned(i),i.debugListId=r.debugListId,i.prev=null,r.prev.next=i,i.prev=r.prev,i.next=r,r.prev=i}static insertAfter(i,r){if(e.assertIsOwned(r),r.next===null)throw new Error("AssertionError: illegal operation on list end");e.assertIsNotEnd(i),e.assertIsUnowned(i),i.debugListId=r.debugListId,r.next.prev=i,i.next=r.next,i.prev=r,r.next=i}static assertIsUnowned(i){if(i.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${g[i.kind]}`)}static assertIsOwned(i,r){if(i.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${g[i.kind]}`);if(r!==void 0&&i.debugListId!==r)throw new Error(`AssertionError: node belongs to the wrong list (expected ${r}, actual ${i.debugListId})`)}static assertIsNotEnd(i){if(i.kind===g.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}};e.nextListId=0;let n=e;return n})(),Dt=class{constructor(){this.slot=null}},yC=new Set([g.Element,g.ElementStart,g.Container,g.ContainerStart,g.Template,g.RepeaterCreate]);function tr(n){return yC.has(n.kind)}function EC(n,e,t,i,r,s){return P(P({kind:g.ElementStart,xref:e,tag:n,handle:new Dt,attributes:null,localRefs:[],nonBindable:!1,namespace:t,i18nPlaceholder:i,startSourceSpan:r,wholeSourceSpan:s},ni),ae)}function Lc(n,e,t,i,r,s,o,a){return P(P({kind:g.Template,xref:n,templateKind:e,attributes:null,tag:t,handle:new Dt,functionNameSuffix:i,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:s,startSourceSpan:o,wholeSourceSpan:a},ni),ae)}function TC(n,e,t,i,r,s,o,a,l,c){return _e(P(P(P({kind:g.RepeaterCreate,attributes:null,xref:n,handle:new Dt,emptyView:e,track:i,trackByFn:null,tag:t,emptyTag:s,emptyAttributes:null,functionNameSuffix:"For",namespace:_t.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:r,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:l,wholeSourceSpan:c}
21,ni),ae),Nt),{numSlotsUsed:e===null?2:3})}function MC(n,e){return P({kind:g.ElementEnd,xref:n,sourceSpan:e},ae)}function PC(n){return P({kind:g.DisableBindings,xref:n},ae)}function AC(n){return P({kind:g.EnableBindings,xref:n},ae)}function z1(n,e,t,i){return P(P({kind:g.Text,xref:n,handle:new Dt,initialValue:e,icuPlaceholder:t,sourceSpan:i},ni),ae)}function ch(n,e,t,i,r,s,o,a,l){let c=new O;return c.push(r),P({kind:g.Listener,target:n,targetSlot:e,tag:i,hostListener:a,name:t,handlerOps:c,handlerFnName:null,consumesDollarEvent:!1,isAnimationListener:s!==null,animationPhase:s,eventTarget:o,sourceSpan:l},ae)}function j1(n,e,t,i,r,s){let o=new O;return o.push(r),P({kind:g.TwoWayListener,target:n,targetSlot:e,tag:i,name:t,handlerOps:o,handlerFnName:null,sourceSpan:s},ae)}function Q1(n,e,t){return P(P({kind:g.Pipe,xref:n,handle:e,name:t},ae),ni)}function IC(n){return P({kind:g.Namespace,active:n},ae)}function kC(n){return P({kind:g.ProjectionDef,def:n},ae)}function OC(n,e,t,i,r){return _e(P(P({kind:g.Projection,xref:n,handle:new Dt,selector:e,i18nPlaceholder:t,fallbackView:i,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:r},ae),ni),{numSlotsUsed:i===null?1:2})}function gn(n,e,t,i,r,s,o,a){return P({kind:g.ExtractedAttribute,target:n,bindingKind:e,namespace:t,name:i,expression:r,i18nContext:s,i18nMessage:o,securityContext:a,trustedValueFn:null},ae)}function DC(n,e,t,i,r,s){return _e(P(P({kind:g.Defer,xref:n,handle:new Dt,mainView:e,mainSlot:t,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:i,resolverFn:r,sourceSpan:s},ae),ni),{numSlotsUsed:2})}function dr(n,e,t,i){return P({kind:g.DeferOn,defer:n,trigger:e,prefetch:t,sourceSpan:i},ae)}function NC(n,e,t){return P(P({kind:g.DeclareLet,xref:n,declaredName:e,sourceSpan:t,handle:new Dt},ni),ae)}function LC(n,e,t,i,r,s,o,a){return P({kind:g.I18nMessage,xref:n,i18nContext:e,i18nBlock:t,message:i,messagePlaceholder:r,params:s,postprocessingParams:o,needsPostprocessing:a,subMessages:[]},ae)}function Bc(n,e,t,i){return P(P({kind:g.I18nStart,xref:n,handle:new Dt,root:t??n,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:i},ae),ni)}function Rc(n,e){return P({kind:g.I18nEnd,xref:n,sourceSpan:e},ae)}function BC(n,e,t,i){return P({kind:g.IcuStart,xref:n,message:e,messagePlaceholder:t,context:null,sourceSpan:i},ae)}function RC(n){return P({kind:g.IcuEnd,xref:n},ae)}function FC(n,e,t){return P({kind:g.IcuPlaceholder,xref:n,name:e,strings:t,expressionPlaceholders:[]},ae)}function ep(n,e,t,i,r){if(t===null&&n!==Cr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return P({kind:g.I18nContext,contextKind:n,xref:e,i18nBlock:t,message:i,sourceSpan:r,params:new Map,postprocessingParams:new Map},ae)}function X1(n,e,t){return P(P({kind:g.I18nAttributes,xref:n,handle:e,target:t,i18nAttributesConfig:null},ae),ni)}function HC(n,e,t,i,r,s){return P(P({kind:g.HostProperty,name:n,expression:e,isAnimationTrigger:t,i18nContext:i,securityContext:r,sanitizer:null,sourceSpan:s},Nt),ae)}var K1="CTX_REF_MARKER",H=function(n){return n[n.Tmpl=0]="Tmpl",n[n.Host=1]="Host",n[n.Both=2]="Both",n}(H||{}),lc=class{constructor(e,t,i){this.componentName=e,this.pool=t,this.compatibility=i,this.kind=H.Both,this.nextXrefId=0}allocateXrefId(){return this.nextXrefId++}},ca=class extends lc{constructor(e,t,i,r,s,o,a){super(e,t,i),this.relativeContextFilePath=r,this.i18nUseExternalIds=s,this.deferMeta=o,this.allDeferrableDepsFn=a,this.kind=H.Tmpl,this.fnSuffix="Template",this.views=new Map,this.contentSelectors=null,this.consts=[],this.constsInitializers=[],this.root=new Kn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(e){let t=new Kn(this,this.allocateXrefId(),e);return this.views.set(t.xref,t),t}get units(){return this.views.values()}addConst(e,t){for(let r=0;r<this.consts.length;r++)if(this.consts[r].isEquivalent(e))return r;let i=this.consts.length;
21return this.consts.push(e),t&&this.constsInitializers.push(...t),i}},cc=class{constructor(e){this.xref=e,this.create=new O,this.update=new O,this.fnName=null,this.vars=null}*ops(){for(let e of this.create)if(yield e,e.kind===g.Listener||e.kind===g.TwoWayListener)for(let t of e.handlerOps)yield t;for(let e of this.update)yield e}},Kn=class extends cc{constructor(e,t,i){super(t),this.job=e,this.parent=i,this.contextVariables=new Map,this.aliases=new Set,this.decls=null}},uc=class extends lc{constructor(e,t,i){super(e,t,i),this.kind=H.Host,this.fnSuffix="HostBindings",this.root=new Zp(this)}get units(){return[this.root]}},Zp=class extends cc{constructor(e){super(0),this.job=e,this.attributes=null}};function VC(n){for(let e of n.units)for(let t of e.ops())Ze(t,UC,ye.None)}function UC(n){if(n instanceof wt&&n.fn instanceof ct&&n.fn.name==="$any"){if(n.args.length!==1)throw new Error("The $any builtin function expects exactly one argument.");return n.args[0]}return n}function GC(n){let e=new Map;for(let t of n.units)for(let i of t.create)i.kind===g.I18nContext&&e.set(i.xref,i);for(let t of n.units)for(let i of t.update)i.kind===g.I18nExpression&&$C(e,i)&&O.insertAfter(bC(i.i18nOwner,i.handle,null),i)}function $C(n,e){if(e.next?.kind!==g.I18nExpression)return!0;let t=n.get(e.context),i=n.get(e.next.context);if(t===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(i===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return t.i18nBlock!==null?t.i18nBlock!==i.i18nBlock:e.i18nOwner!==e.next.i18nOwner}function WC(n){for(let e of n.units){let t=e.update.head,i=[],r=null;for(let s of e.create){if(s.kind===g.I18nStart)r={blockXref:s.xref,lastSlotConsumer:s.xref};else if(s.kind===g.I18nEnd){for(let o of i)o.target=r.lastSlotConsumer,O.insertBefore(o,t);i.length=0,r=null}if(Ks(s))for(r!==null&&(r.lastSlotConsumer=s.xref);t.next!==null;){if(r!==null&&t.kind===g.I18nExpression&&t.usage===Qs.I18nText&&t.i18nOwner===r.blockXref){let o=t;t=t.next,O.remove(o),i.push(o);continue}if(Zl(t)&&t.target!==s.xref)break;t=t.next}}}}function uh(n){let e=new Map;for(let t of n.create)Ks(t)&&(e.set(t.xref,t),t.kind===g.RepeaterCreate&&t.emptyView!==null&&e.set(t.emptyView,t));return e}function qC(n){for(let e of n.units){let t=uh(e);
21for(let i of e.ops())switch(i.kind){case g.Attribute:zC(e,i,t);break;case g.Property:if(!i.isAnimationTrigger){let r;i.i18nMessage!==null&&i.templateKind===null?r=j.I18n:i.isStructuralTemplateAttribute?r=j.Template:r=j.Property,O.insertBefore(gn(i.target,r,null,i.name,null,null,null,i.securityContext),fs(t,i.target))}break;case g.TwoWayProperty:O.insertBefore(gn(i.target,j.TwoWayProperty,null,i.name,null,null,null,i.securityContext),fs(t,i.target));break;case g.StyleProp:case g.ClassProp:e.job.compatibility===Qt.TemplateDefinitionBuilder&&i.expression instanceof aa&&O.insertBefore(gn(i.target,j.Property,null,i.name,null,null,null,Ne.STYLE),fs(t,i.target));break;case g.Listener:if(!i.isAnimationListener){let r=gn(i.target,j.Property,null,i.name,null,null,null,Ne.NONE);if(n.kind===H.Host){if(n.compatibility)break;e.create.push(r)}else O.insertBefore(r,fs(t,i.target))}break;case g.TwoWayListener:if(n.kind!==H.Host){let r=gn(i.target,j.Property,null,i.name,null,null,null,Ne.NONE);O.insertBefore(r,fs(t,i.target))}break}}}function fs(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an element-like target.");return t}function zC(n,e,t){if(e.expression instanceof qe)return;let i=e.isTextAttribute||e.expression.isConstant();if(n.job.compatibility===Qt.TemplateDefinitionBuilder&&(i&&=e.isTextAttribute),i){let r=gn(e.target,e.isStructuralTemplateAttribute?j.Template:j.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(n.job.kind===H.Host)n.create.push(r);else{let s=fs(t,e.target);O.insertBefore(r,s)}O.remove(e)}}function jC(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an element-like target.");return t}function QC(n){let e=new Map;for(let t of n.units)for(let i of t.create)tr(i)&&e.set(i.xref,i);for(let t of n.units)for(let i of t.ops())if(i.kind===g.Binding)switch(i.bindingKind){case j.Attribute:if(i.name==="ngNonBindable"){O.remove(i);let r=jC(e,i.target);r.nonBindable=!0}else{let[r,s]=kn(i.name);O.replace(i,vC(i.target,r,s,i.expression,i.securityContext,i.isTextAttribute,i.isStructuralTemplateAttribute,i.templateKind,i.i18nMessage,i.sourceSpan))}break;case j.Property:case j.Animation:n.kind===H.Host?O.replace(i,HC(i.name,i.expression,i.bindingKind===j.Animation,i.i18nContext,i.securityContext,i.sourceSpan)):O.replace(i,dC(i.target,i.name,i.expression,i.bindingKind===j.Animation,i.securityContext,i.isStructuralTemplateAttribute,i.templateKind,i.i18nContext,i.i18nMessage,i.sourceSpan));break;case j.TwoWayProperty:if(!(i.expression instanceof Ae))throw new Error(`Expected value of two-way property binding "${i.name}" to be an expression`);O.replace(i,hC(i.target,i.name,i.expression,i.securityContext,i.isStructuralTemplateAttribute,i.templateKind,i.i18nContext,i.i18nMessage,i.sourceSpan));break;case j.I18n:case j.ClassName:case j.StyleProperty:throw new Error(`Unhandled binding of kind ${j[i.bindingKind]}`)}}var XC=new Set([b.attribute,b.classProp,b.element,b.elementContainer,b.elementContainerEnd,b.elementContainerStart,b.elementEnd,b.elementStart,b.hostProperty,b.i18nExp,b.listener,b.listener,b.property,b.styleProp,b.stylePropInterpolate1,b.stylePropInterpolate2,b.stylePropInterpolate3,b.stylePropInterpolate4,b.stylePropInterpolate5,b.stylePropInterpolate6,b.stylePropInterpolate7,b.stylePropInterpolate8,b.stylePropInterpolateV,b.syntheticHostListener,b.syntheticHostProperty,b.templateCreate,b.twoWayProperty,b.twoWayListener,b.declareLet]),KC=256;function YC(n){for(let e of n.units)lg(e.create),lg(e.update)}function lg(n){let e=null;for(let t of n){if(t.kind!==g.Statement||!(t.statement instanceof wn)){e=null;continue}if(!(t.statement.expr instanceof wt)||!(t.statement.expr.fn instanceof Ar)){e=null;continue}let i=t.statement.expr.fn.value;if(!XC.has(i)){e=null;continue}if(e!==null&&e.instruction===i&&e.length<KC){let r=e.expression.callFn(t.statement.expr.args,t.statement.expr.sourceSpan,t.statement.expr.pure);e.expression=r,e.op.statement=r.toStmt(),e.length++,O.remove(t)}else e={op:t,instruction:i,expression:t.statement.expr,length:1}}}function ZC(n){for(let e of n.units)for(let t of e.update)t.kind===g.Attribute&&t.expression instanceof qe&&t.expression.strings.length===2&&t.expression.strings.every(r=>r==="")&&(t.expression=t.expression.expressions[0])}
21function JC(n){for(let e of n.units)for(let t of e.ops()){if(t.kind!==g.Conditional)continue;let i,r=t.conditions.findIndex(o=>o.expr===null);if(r>=0){let o=t.conditions.splice(r,1)[0].targetSlot;i=new sc(o)}else i=E(-1);let s=t.test==null?null:new On(t.test,n.allocateXrefId());for(let o=t.conditions.length-1;o>=0;o--){let a=t.conditions[o];if(a.expr!==null){if(s!==null){let l=o===0?s:new Ti(s.xref);a.expr=new be(W.Identical,l,a.expr)}else if(a.alias!==null){let l=n.allocateXrefId();a.expr=new On(a.expr,l),t.contextValue=new Ti(l)}i=new bi(a.expr,new sc(a.targetSlot),i)}}t.processed=i,t.conditions=[]}}var eb=new Map([["&&",W.And],[">",W.Bigger],[">=",W.BiggerEquals],["|",W.BitwiseOr],["&",W.BitwiseAnd],["/",W.Divide],["==",W.Equals],["===",W.Identical],["<",W.Lower],["<=",W.LowerEquals],["-",W.Minus],["%",W.Modulo],["*",W.Multiply],["!=",W.NotEquals],["!==",W.NotIdentical],["??",W.NullishCoalesce],["||",W.Or],["+",W.Plus]]);function Y1(n){let e=new Map([["svg",_t.SVG],["math",_t.Math]]);return n===null?_t.HTML:e.get(n)??_t.HTML}function tb(n){let e=new Map([["svg",_t.SVG],["math",_t.Math]]);for(let[t,i]of e.entries())if(i===n)return t;return null}function nb(n,e){return e===_t.HTML?n:`:${tb(e)}:${n}`}function $s(n){return Array.isArray(n)?Pe(n.map($s)):E(n)}function ib(n){let e=new Map;for(let t of n.units)for(let i of t.create)if(i.kind===g.ExtractedAttribute){let r=e.get(i.target)||new Jp(n.compatibility);e.set(i.target,r),r.add(i.bindingKind,i.name,i.expression,i.namespace,i.trustedValueFn),O.remove(i)}if(n instanceof ca)for(let t of n.units)for(let i of t.create)if(i.kind==g.Projection){let r=e.get(i.xref);if(r!==void 0){let s=ed(r);s.entries.length>0&&(i.attributes=s)}}else tr(i)&&(i.attributes=cg(n,e,i.xref),i.kind===g.RepeaterCreate&&i.emptyView!==null&&(i.emptyAttributes=cg(n,e,i.emptyView)));else if(n instanceof uc)for(let[t,i]of e.entries()){if(t!==n.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let r=ed(i);r.entries.length>0&&(n.root.attributes=r)}}function cg(n,e,t){let i=e.get(t);if(i!==void 0){let r=ed(i);if(r.entries.length>0)return n.addConst(r)}return null}var us=Object.freeze([]),Jp=class{get attributes(){return this.byKind.get(j.Attribute)??us}get classes(){return this.byKind.get(j.ClassName)??us}get styles(){return this.byKind.get(j.StyleProperty)??us}get bindings(){return this.propertyBindings??us}get template(){return this.byKind.get(j.Template)??us}get i18n(){return this.byKind.get(j.I18n)??us}constructor(e){this.compatibility=e,this.known=new Map,this.byKind=new Map,this.propertyBindings=null,this.projectAs=null}isKnown(e,t){let i=this.known.get(e)??new Set;return this.known.set(e,i),i.has(t)?!0:(i.add(t),!1)}add(e,t,i,r,s){if(!(this.compatibility===Qt.TemplateDefinitionBuilder&&(e===j.Attribute||e===j.ClassName||e===j.StyleProperty))&&this.isKnown(e,t))return;if(t==="ngProjectAs"){if(i===null||!(i instanceof dt)||i.value==null||typeof i.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=i.value.toString()}let a=this.arrayFor(e);if(a.push(...rb(r,t)),e===j.Attribute||e===j.StyleProperty){if(i===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(s!==null){if(!q1(i))throw Error("AssertionError: extracted attribute value should be string literal");a.push(M2(s,new Sp([new xp(i.value)],[]),void 0,i.sourceSpan))}else a.push(i)}}arrayFor(e){return e===j.Property||e===j.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function rb(n,e){let t=E(e);return n?[E(0),E(n),t]:[t]}function ed({attributes:n,bindings:e,classes:t,i18n:i,projectAs:r,styles:s,template:o}){let a=[...n];if(r!==null){let l=zd(r)[0];a.push(E(5),$s(l))}return t.length>0&&a.push(E(1),...t),s.length>0&&a.push(E(2),...s),e.length>0&&a.push(E(3),...e),o.length>0&&a.push(E(4),...o),i.length>0&&a.push(E(6),...i),Pe(a)}function sb(n){let e=new Map;for(let t of n.units){for(let i of t.create)i.kind===g.I18nAttributes&&e.set(i.target,i
21);for(let i of t.update)switch(i.kind){case g.Property:case g.Attribute:if(i.i18nContext===null||!(i.expression instanceof qe))continue;let r=e.get(i.target);if(r===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(r.target!==i.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let s=[];for(let o=0;o<i.expression.expressions.length;o++){let a=i.expression.expressions[o];if(i.expression.i18nPlaceholders.length!==i.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${i.expression.i18nPlaceholders.length} placeholders and ${i.expression.expressions.length} expressions`);s.push(W1(i.i18nContext,r.target,r.xref,r.handle,a,null,i.expression.i18nPlaceholders[o],ra.Creation,Qs.I18nAttribute,i.name,i.sourceSpan))}O.replaceWithMany(i,s);break}}}function ob(n){for(let e of n.units)for(let t of e.create)if(t.kind===g.Defer){if(t.resolverFn!==null)continue;if(t.ownResolverFn!==null){if(t.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let i=e.fnName?.replace("_Template","");t.resolverFn=n.pool.getSharedFunctionReference(t.ownResolverFn,`${i}_Defer_${t.handle.slot}_DepsFn`,!1)}}}function ab(n){let e=new Map;for(let r of n.units)for(let s of r.ops())switch(s.kind){case g.Binding:case g.Property:case g.Attribute:case g.ExtractedAttribute:if(s.i18nMessage===null)continue;if(!e.has(s.i18nMessage)){let o=ep(Cr.Attr,n.allocateXrefId(),null,s.i18nMessage,null);r.create.push(o),e.set(s.i18nMessage,o.xref)}s.i18nContext=e.get(s.i18nMessage);break}let t=new Map;for(let r of n.units)for(let s of r.create)switch(s.kind){case g.I18nStart:if(s.xref===s.root){let o=ep(Cr.RootI18n,n.allocateXrefId(),s.xref,s.message,null);r.create.push(o),s.context=o.xref,t.set(s.xref,o)}break}for(let r of n.units)for(let s of r.create)if(s.kind===g.I18nStart&&s.xref!==s.root){let o=t.get(s.root);if(o===void 0)throw Error("AssertionError: Root i18n block i18n context should have been created.");s.context=o.xref,t.set(s.xref,o)}let i=null;for(let r of n.units)for(let s of r.create)switch(s.kind){case g.I18nStart:i=s;break;case g.I18nEnd:i=null;break;case g.IcuStart:if(i===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(s.message.id!==i.message.id){let o=ep(Cr.Icu,n.allocateXrefId(),i.root,s.message,null);r.create.push(o),s.context=o.xref}else s.context=i.context,t.get(i.xref).contextKind=Cr.Icu;break}}function lb(n){let e=new Map;for(let t of n.units)for(let i of t.update.reversed())if(i.kind===g.Binding&&i.isTextAttribute){let r=e.get(i.target)||new Set;r.has(i.name)&&n.compatibility===Qt.TemplateDefinitionBuilder&&(i.name==="style"||i.name==="class")&&O.remove(i),r.add(i.name),e.set(i.target,r)}}function cb(n){for(let e of n.units)for(let t of e.create)t.kind===g.Defer&&(t.placeholderMinimumTime!==null&&(t.placeholderConfig=new la($s([t.placeholderMinimumTime]))),(t.loadingMinimumTime!==null||t.loadingAfterTime!==null)&&(t.loadingConfig=new la($s([t.loadingMinimumTime,t.loadingAfterTime]))))}function ub(n){let e=new Map;function t(r){if(e.has(r.xref))return e.get(r.xref);let s=new td;for(let o of r.create)if(!(!tr(o)||o.localRefs===null)){if(!Array.isArray(o.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(let a of o.localRefs)a.target===""&&s.targets.set(a.name,{xref:o.xref,slot:o.handle})}return e.set(r.xref,s),s}function i(r,s,o){switch(s.trigger.kind){case Be.Idle:case Be.Immediate:case Be.Timer:return;case Be.Hover:case Be.Interaction:case Be.Viewport:if(s.trigger.targetName===null){if(o===null)throw new Error("defer on trigger with no target name must have a placeholder block");let c=n.views.get(o);if(c==null)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(let d of c.create)if(Ks(d)&&(tr(d)||d.kind===g.Projection)){s.trigger.targetXref=d.xref,s.trigger.targetView=o,s.trigger.targetSlotViewSteps=-1,s.trigger.targetSlot=d.handle;return}return}let a=o!==null?n.views.get(o):r,l=o!==null?-1:0;for(;a!==null;){let c=t(a);if(c.targets.has(s.trigger.targetName)){let{xref:d,slot:_}=c.targets.get(s.trigger.targetName);s.trigger.targetXref=d,s.trigger.targetView=a.xref,s.trigger.targetSlotViewSteps=l,s.trigger.targetSlot=_;return}a=a.parent!==null?n.views.get(a.parent):null,l++}break;default:throw new Error(`Trigger kind ${s.trigger.kind} not handled`)}}for(let r of n.units){let s=new Map;for(let o of r.create)switch(o.kind){case g.Defer:s.set(o.xref,o);break;case g.DeferOn:let a=s.get(o.defer);i(r,o,a.placeholderView);break}}}var td=class{constructor(){this.targets=new Map}},pb=new Map([[g.ElementEnd,[g.ElementStart,g.Element]],[g.ContainerEnd,[g.ContainerStart,g.Container]],[g.I18nEnd,[g.I18nStart,g.I18n]]]),db=new Set([g.Pipe]);function hb(n){for(let e of n.units)for(let t of e.create){let i=pb.get(t.kind);if(i===void 0)continue;let[r,s]=i,o=t.prev;
21for(;o!==null&&db.has(o.kind);)o=o.prev;o!==null&&o.kind===r&&(o.kind=s,O.remove(t))}}function mb(n){for(let e of n.units)for(let t of e.ops())Ze(t,i=>xb(i,{job:n}),ye.None),Ze(t,Cb,ye.None)}var DN=[wt,bn,In,er,Hr].map(n=>n.constructor.name);function cn(n){return n instanceof Ps?cn(n.expr):n instanceof be?cn(n.lhs)||cn(n.rhs):n instanceof bi?n.falseCase&&cn(n.falseCase)?!0:cn(n.condition)||cn(n.trueCase):n instanceof Lo?cn(n.condition):n instanceof On?cn(n.expr):n instanceof jt?cn(n.receiver):n instanceof wi?cn(n.receiver)||cn(n.index):n instanceof wt||n instanceof bn||n instanceof In||n instanceof er||n instanceof Hr}function fb(n){let e=new Set;return V(n,t=>(t instanceof On&&e.add(t.xref),t),ye.None),e}function gb(n,e,t){return V(n,i=>{if(i instanceof On&&e.has(i.xref)){let r=new Ti(i.xref);return t.job.compatibility===Qt.TemplateDefinitionBuilder?new On(r,r.xref):r}return i},ye.None),n}function ps(n,e,t){let i;if(cn(n)){let r=t.job.allocateXrefId();i=[new On(n,r),new Ti(r)]}else i=[n,n.clone()],gb(i[1],fb(i[0]),t);return new Gs(i[0],e(i[1]))}function _b(n){return n instanceof Vs||n instanceof Us||n instanceof er}function vb(n){return n instanceof jt||n instanceof wi||n instanceof wt}function Z1(n){return _b(n)||vb(n)}function Sb(n){if(Z1(n)&&n.receiver instanceof Gs){let e=n.receiver;for(;e.expr instanceof Gs;)e=e.expr;return e}return null}function xb(n,e){if(!Z1(n))return n;let t=Sb(n);if(t){if(n instanceof wt)return t.expr=t.expr.callFn(n.args),n.receiver;if(n instanceof jt)return t.expr=t.expr.prop(n.name),n.receiver;if(n instanceof wi)return t.expr=t.expr.key(n.index),n.receiver;if(n instanceof er)return t.expr=ps(t.expr,i=>i.callFn(n.args),e),n.receiver;if(n instanceof Vs)return t.expr=ps(t.expr,i=>i.prop(n.name),e),n.receiver;if(n instanceof Us)return t.expr=ps(t.expr,i=>i.key(n.index),e),n.receiver}else{if(n instanceof er)return ps(n.receiver,i=>i.callFn(n.args),e);if(n instanceof Vs)return ps(n.receiver,i=>i.prop(n.name),e);if(n instanceof Us)return ps(n.receiver,i=>i.key(n.index),e)}return n}function Cb(n){return n instanceof Gs?new bi(new be(W.Equals,n.guard,Bo),Bo,n.expr):n}var ug="\uFFFD",bb="#",wb="*",yb="/",Eb=":",Tb="[",Mb="]",Pb="|";function Ab(n){let e=new Map,t=new Map,i=new Map;for(let s of n.units)for(let o of s.create)switch(o.kind){case g.I18nContext:let a=Ib(n,o);s.create.push(a),e.set(o.xref,a),i.set(o.xref,o);break;case g.I18nStart:t.set(o.xref,o);break}let r=null;for(let s of n.units)for(let o of s.create)switch(o.kind){case g.IcuStart:r=o,O.remove(o);let a=i.get(o.context);if(a.contextKind!==Cr.Icu)continue;let l=t.get(a.i18nBlock);if(l.context===a.xref)continue;let c=t.get(l.root),d=e.get(c.context);if(d===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let _=e.get(a.xref);_.messagePlaceholder=o.messagePlaceholder,d.subMessages.push(_.xref);break;case g.IcuEnd:r=null,O.remove(o);break;case g.IcuPlaceholder:if(r===null||r.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(r.context).postprocessingParams.set(o.name,E(kb(o))),O.remove(o);break}}function Ib(n,e,t){let i=pg(e.params),r=pg(e.postprocessingParams),s=[...e.params.values()].some(o=>o.length>1);return LC(n.allocateXrefId(),e.xref,e.i18nBlock,e.message,t??null,i,r,s)}function kb(n){if(n.strings.length!==n.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${n.strings.length} strings and ${n.expressionPlaceholders.length} expressions`);let e=n.expressionPlaceholders.map(Cs);return n.strings.flatMap((t,i)=>[t,e[i]||""]).join("")}function pg(n){let e=new Map;for(let[t,i]of n){let r=Ob(i);r!==null&&e.set(t,E(r))}return e}function Ob(n){if(n.length===0)return null;let e=n.map(t=>Cs(t));return e.length===1?e[0]:`${Tb}${e.join(Pb)}${Mb}`}function Cs(n){if(n.flags&Oe.ElementTag&&n.flags&Oe.TemplateTag){if(typeof n.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let r=Cs(_e(P({},n),{value:n.value.element,flags:n.flags&~Oe.TemplateTag})),s=Cs(_e(P({},n),{value:n.value.template,flags:n.flags&~Oe.ElementTag}));return n.flags&Oe.OpenTag&&n.flags&Oe.CloseTag?`${s}${r}${s}`:n.flags&Oe.CloseTag?`${r}${s}`:`${s}${r}`}if(n.flags&Oe.OpenTag&&n.flags&Oe.CloseTag)return`${Cs(_e(P({},n),{flags:n.flags&~Oe.CloseTag}))}${Cs(_e(P({},n),{flags:n.flags&~Oe.OpenTag}))}`;if(n.flags===Oe.None)return`${n.value}`;let e="",t="";n.flags&Oe.ElementTag?e=bb:n.flags&Oe.TemplateTag&&(e=wb),e!==""&&(t=n.flags&Oe.CloseTag?yb:"");let i=n.subTemplateIndex===null?"":`${Eb}${n.subTemplateIndex}`;return`${ug}${t}${e}${n.value}${i}${ug}`}function Db(n){for(let e of n.units){let t=new Map;for(let r of e.create){if(Ks(r)){if(r.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;t.set(r.xref,r.handle.slot)}let i=0;for(let r of e.update){let s=null;if(Zl(r)?s=r:St(r,a=>{s===null&&Zl(a)&&(s=a)}),s===null)continue;if(!t.has(s.target))throw new Error(`AssertionError: reference to unknown slot for target ${s.target}`);let o=t.get(s.target);if(i!==o){let a=o-i;
21if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");O.insertBefore(SC(a,s.sourceSpan),r),i=o}}}}function Nb(n){let e=n.compatibility===Qt.TemplateDefinitionBuilder,t=[],i=0;for(let r of n.units)for(let s of r.create)s.kind===g.Projection&&(t.push(s.selector),s.projectionSlotIndex=i++);if(t.length>0){let r=null;if(t.length>1||t[0]!=="*"){let s=t.map(o=>o==="*"?o:zd(o));r=n.pool.getConstLiteral($s(s),e)}n.contentSelectors=n.pool.getConstLiteral($s(t),e),n.root.create.prepend([kC(r)])}}function Lb(n){xo(n.root,null)}function xo(n,e){let t=Bb(n,e);for(let i of n.create)switch(i.kind){case g.Template:xo(n.job.views.get(i.xref),t);break;case g.Projection:i.fallbackView!==null&&xo(n.job.views.get(i.fallbackView),t);break;case g.RepeaterCreate:xo(n.job.views.get(i.xref),t),i.emptyView&&xo(n.job.views.get(i.emptyView),t);break;case g.Listener:case g.TwoWayListener:i.handlerOps.prepend(nd(n,t,!0));break}n.update.prepend(nd(n,t,!1))}function Bb(n,e){let t={view:n.xref,viewContextVariable:{kind:rt.Context,name:null,view:n.xref},contextVariables:new Map,aliases:n.aliases,references:[],letDeclarations:[],parent:e};for(let i of n.contextVariables.keys())t.contextVariables.set(i,{kind:rt.Identifier,name:null,identifier:i,local:!1});for(let i of n.create)switch(i.kind){case g.ElementStart:case g.Template:if(!Array.isArray(i.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let r=0;r<i.localRefs.length;r++)t.references.push({name:i.localRefs[r].name,targetId:i.xref,targetSlot:i.handle,offset:r,variable:{kind:rt.Identifier,name:null,identifier:i.localRefs[r].name,local:!1}});break;case g.DeclareLet:t.letDeclarations.push({targetId:i.xref,targetSlot:i.handle,variable:{kind:rt.Identifier,name:null,identifier:i.declaredName,local:!1}});break}return t}function nd(n,e,t){let i=[];e.view!==n.xref&&i.push(ji(n.job.allocateXrefId(),e.viewContextVariable,new tc,fn.None));let r=n.job.views.get(e.view);for(let[s,o]of r.contextVariables){let a=new Ei(e.view),l=o===K1?a:new jt(a,o);i.push(ji(n.job.allocateXrefId(),e.contextVariables.get(s),l,fn.None))}for(let s of r.aliases)i.push(ji(n.job.allocateXrefId(),s,s.expression.clone(),fn.AlwaysInline));for(let s of e.references)i.push(ji(n.job.allocateXrefId(),s.variable,new Jl(s.targetId,s.targetSlot,s.offset),fn.None));if(e.view!==n.xref||t)for(let s of e.letDeclarations)i.push(ji(n.job.allocateXrefId(),s.variable,new oa(s.targetId,s.targetSlot),fn.None));return e.parent!==null&&i.push(...nd(n,e.parent,!1)),i}function Rb(n){for(let e of n.units)for(let t of e.ops())Ze(t,i=>i instanceof la?E(n.addConst(i.expr)):i,ye.None)}var dg="style.",hg="class.",Fb="style!",mg="class!",fg="!important";function Hb(n){for(let e of n.root.update)if(e.kind===g.Binding&&e.bindingKind===j.Property)if(e.name.endsWith(fg)&&(e.name=e.name.substring(0,e.name.length-fg.length)),e.name.startsWith(dg)){e.bindingKind=j.StyleProperty,e.name=e.name.substring(dg.length),Vb(e.name)||(e.name=Ub(e.name));let{property:t,suffix:i}=tp(e.name);e.name=t,e.unit=i}else e.name.startsWith(Fb)?(e.bindingKind=j.StyleProperty,e.name="style"):e.name.startsWith(hg)?(e.bindingKind=j.ClassName,e.name=tp(e.name.substring(hg.length)).property):e.name.startsWith(mg)&&(e.bindingKind=j.ClassName,e.name=tp(e.name.substring(mg.length)).property)}function Vb(n){return n.startsWith("--")}function Ub(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function tp(n){let e=n.indexOf("!important");e!==-1&&(n=e>0?n.substring(0,e):"");let t=null,i=n,r=n.lastIndexOf(".");return r>0&&(t=n.slice(r+1),i=n.substring(0,r)),{property:i,suffix:t}}function id(n,e=!1){return yt(Object.keys(n).map(t=>({key:t,quoted:e,value:n[t]})))}var rd=class{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}formatPh(e){return`{${_a(e,!1)}}`}},Gb=new rd;function J1(n){return n.visit(Gb)}var nr=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},Vr=class extends nr{constructor(e,t,i,r){super(t,r),this.value=e,this.tokens=i}visit(e,t){return e.visitText(this,t)}},Tr=class extends nr{constructor(e,t,i,r,s,o){super(r,o),this.switchValue=e,this.type=t,this.cases=i,this.switchValueSourceSpan=s}visit(e,t){return e.visitExpansion(this,t)}},pc=class{constructor(e,t,i,r,s){this.value=e,this.expression=t,this.sourceSpan=i,this.valueSourceSpan=r,this.expSourceSpan=s}visit(e,t){return e.visitExpansionCase(this,t)}},sd=class extends nr{constructor(e,t,i,r,s,o,a){super(i,a),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=s,this.valueTokens=o}visit(e,t){return e.visitAttribute(this,t)}},un=class extends nr{constructor(e,t,i,r,s,o=null,a){super(r,a),this.name=e,this.attrs=t,this.children=i,this.startSourceSpan=s,this.endSourceSpan=o}visit(e,t){return e.visitElement(this,t)}},ua=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}},hn=class extends nr{constructor(e,t,i,r,s,o,a=null,l){super(r,l),this.name=e,this.parameters=t,this.children=i,this.nameSpan=s,this.startSourceSpan=o,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}},dc=class{constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}},hc=class{constructor(e,t,i,r,s){this.name=e,this.value=t,this.sourceSpan=i,this.nameSpan=r,this.valueSpan=s}visit(e,t){return e.visitLetDeclaration(this,t)}};function Ve(n,e,t=null){let i=[],r=n.visit?s=>n.visit(s,t)||s.visit(n,t):s=>s.visit(n,t);return e.forEach(s=>
21{let o=r(s);o&&i.push(o)}),i}var mc={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}
21",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:`
22`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",N
22otSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"	",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickS
22pace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslo
22pe:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A
221",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil
22:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslas
22h:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},e_="\uE500";mc.ngsp=e_;var Po=class extends ie{constructor(e,t,i){super(i,e),this.tokenType=t}},od=class{constructor(e,t,i){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=i}};function $b(n,e,t,i={}){let r=new ld(new Xl(n,e),t,i);return r.tokenize(),new od(Zb(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}var Wb=/\r\n?/g;function go(n){return`Unexpected character "${n===gt?"EOF":String.fromCharCode(n)}"`}function gg(n){return`Unknown entity "${n}" - use the "&#<decimal>;" or  "&#x<hex>;" syntax`}function qb(n,e){return`Unable to parse entity "${e}" - ${n} character reference entities must end with ";"`}var ad=function(n){return n.HEX="hexadecimal",n.DEC="decimal",n}(ad||{}),Ao=class{constructor(e){this.error=e}},ld=class{constructor(e,t,i){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=i.tokenizeExpansionForms||!1,this._interpolationConfig=i.interpolationConfig||Qn,this._leadingTriviaCodePoints=i.leadingTriviaChars&&i.leadingTriviaChars.map(s=>s.codePointAt(0)||0);let r=i.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=i.escapedString?new cd(e,r):new fc(e,r),this._preserveLineEndings=i.preserveLineEndings||
22!1,this._i18nNormalizeLineEndingsInICUs=i.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=i.tokenizeBlocks??!0,this._tokenizeLet=i.tokenizeLet??!0;try{this._cursor.init()}catch(s){this.handleError(s)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Wb,`
23`)}tokenize(){for(;this._cursor.peek()!==gt;){let e=this._cursor.clone();try{this._attemptCharCode(vs)?this._attemptCharCode(Gp)?this._attemptCharCode(ys)?this._consumeCdata(e):this._attemptCharCode(Ql)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(hi)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Xu&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(Xu)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(It)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(33),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(i=>ea(i)?!e:Yb(i)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(24,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===xi)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Xe),this._attemptCharCode(An))this._attemptCharCodeUntilFn(Xe);else{t.type=28;return}this._attemptCharCode(Xn)?(this._beginToken(25),this._endToken([])):t.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Sg);this._cursor.peek()!==An&&this._cursor.peek()!==gt;){this._beginToken(27);let e=this._cursor.clone(),t=null,i=0;for(;this._cursor.peek()!==Ut&&this._cursor.peek()!==gt||t!==null;){let r=this._cursor.peek();if(r===Eo)this._cursor.advance();else if(r===t)t=null;else if(t===null&&To(r))t=r;else if(r===xi&&t===null)i++;else if(r===An&&t===null){if(i===0)break;i>0&&i--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Sg)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),ea(this._cursor.peek()))this._attemptCharCodeUntilFn(Xe);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=32;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Xe),!this._attemptCharCode(xr)){t.type=32;return}this._attemptCharCodeUntilFn(r=>Xe(r)&&!rh(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===Ut?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(t.type=32,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(i=>ta(i)||i===th||i===va||t&&zn(i)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==gt;){let t=this._cursor.peek();if(t===Ut)break;To(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(i=>i===Eo?(this._cursor.advance(),!1):i===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Xb(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===It){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new Po("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new Po("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let i={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(i),this._currentTokenStart=null,this._currentTokenType=null,i}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let i=new Po(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Ao(i)}handleError(e){if(e instanceof pa&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Ao)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Kb(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(go(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let i=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=i,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(go(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let i=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(i)<t)throw this._createError(go(this._cursor.peek()),this._cursor.getSpan(i))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(A1)){let i=this._attemptCharCode(R1)||this._attemptCharCode(xx),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(jb),this._cursor.peek()!=Ut){this._cursor.advance();let o=i?ad.HEX:ad.DEC;throw this._createError(qb(o,this._cursor.getChars(t)),this._cursor.getSpan())}let s=this._cursor.getChars(r);this._cursor.advance();try{let o=parseInt(s,i?16:10);this._endToken([String.fromCharCode(o),this._cursor.getChars(t)])}catch{throw this._createError(gg(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let i=this._cursor.clone();if(this._attemptCharCodeUntilFn(Qb),this._cursor.peek()!=Ut)this._beginToken(e,t),this._cursor=i,this._endToken(["&"]);else{let r=this._cursor.getChars(i);this._cursor.advance();let s=mc[r];if(!s)throw this._createError(gg(r),this._cursor.getSpan(t));this._endToken([s,`&${r};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);let i=[];for(;;){let r=this._cursor.clone(),s=t();if(this._cursor=r,s)break;e&&this._cursor.peek()===jl?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(6),this._beginToken(6)):i.push(this._readChar())}this._endToken([this._processCarriageReturns(i.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(Ql),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);let t=this._cursor.clone();this._attemptUntilChar(Wi);let i=this._cursor.getChars(t);this._cursor.advance(),this._endToken([i])}_consumePrefixAndName(){let e=this._cursor.clone(),t="";for(;this._cursor.peek()!==zi&&!zb(this._cursor.peek());)this._cursor.advance();let i;this._cursor.peek()===zi?(t=this._cursor.getChars(e),this._cursor.advance(),i=this._cursor.clone()):i=e,this._requireCharCodeUntilFn(_g,t===""?0:1);let r=this._cursor.getChars(i);return[t,r]}_consumeTagOpen(e){let t,i,r;try{if(!ta(this._cursor.peek()))throw this._createError(go(this._cursor.peek()),this._cursor.getSpan(e));for(r=this._consumeTagOpenStart(e),i=r.parts[0],t=r.parts[1],this._attemptCharCodeUntilFn(Xe);
23this._cursor.peek()!==hi&&this._cursor.peek()!==Wi&&this._cursor.peek()!==vs&&this._cursor.peek()!==gt;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Xe),this._attemptCharCode(xr)&&(this._attemptCharCodeUntilFn(Xe),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Xe);this._consumeTagOpenEnd()}catch(o){if(o instanceof Ao){r?r.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let s=this._getTagDefinition(t).getContentType(i);s===jn.RAW_TEXT?this._consumeRawTextWithTagClose(i,t,!1):s===jn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(i,t,!0)}_consumeRawTextWithTagClose(e,t,i){this._consumeRawText(i,()=>!this._attemptCharCode(vs)||!this._attemptCharCode(hi)||(this._attemptCharCodeUntilFn(Xe),!this._attemptStrCaseInsensitive(t))?!1:(this._attemptCharCodeUntilFn(Xe),this._attemptCharCode(Wi))),this._beginToken(3),this._requireCharCodeUntilFn(r=>r===Wi,3),this._cursor.advance(),this._endToken([e,t])}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(e===Jo||e===Zo)throw this._createError(go(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();this._endToken(t)}_consumeAttributeValue(){if(this._cursor.peek()===Jo||this._cursor.peek()===Zo){let e=this._cursor.peek();this._consumeQuote(e);let t=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,t,t),this._consumeQuote(e)}else{let e=()=>_g(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(hi)?2:1;this._beginToken(e),this._requireCharCode(Wi),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Xe);let t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Xe),this._requireCharCode(Wi),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Xn),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(vn),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(vn),this._attemptCharCodeUntilFn(Xe),this._beginToken(7);let i=this._readUntil(vn);this._endToken([i]),this._requireCharCode(vn),this._attemptCharCodeUntilFn(Xe)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(Xn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Xe),this._beginToken(21),this._requireCharCode(Xn),this._endToken([]),this._attemptCharCodeUntilFn(Xe),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(It),this._endToken([]),this._attemptCharCodeUntilFn(Xe),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(It),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,i,r){this._beginToken(e);let s=[];for(;!i();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(s.join(""))],o),s.length=0,this._consumeInterpolation(t,o,r),this._beginToken(e)):this._cursor.peek()===jl?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(e),this._beginToken(e)):s.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(s.join(""))])}_consumeInterpolation(e,t,i){let r=[];this._beginToken(e,t),r.push(this._interpolationConfig.start);let s=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==gt&&(i===null||!i());){let l=this._cursor.clone();if(this._isTagStart()){this._cursor=l,r.push(this._getProcessedChars(s,l)),this._endToken(r);return}if(o===null)if(this._attemptStr(this._interpolationConfig.end)){r.push(this._getProcessedChars(s,l)),r.push(this._interpolationConfig.end),this._endToken(r);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===Eo?this._cursor.advance():c===o?o=null:!a&&o===null&&To(c)&&(o=c)}r.push(this._getProcessedChars(s,this._cursor)),this._endToken(r)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===gt||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===It&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._cursor.peek()===Xu||this._cursor.peek()===It))}
23_isTagStart(){if(this._cursor.peek()===vs){let e=this._cursor.clone();e.advance();let t=e.peek();if(Br<=t&&t<=Sa||js<=t&&t<=Oc||t===hi||t===Gp)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==Xn)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}};function Xe(n){return!ea(n)||n===gt}function _g(n){return ea(n)||n===Wi||n===vs||n===hi||n===Jo||n===Zo||n===xr||n===gt}function zb(n){return(n<Br||Sa<n)&&(n<js||Oc<n)&&(n<nh||n>k1)}function jb(n){return n===Ut||n===gt||!Ex(n)}function Qb(n){return n===Ut||n===gt||!ta(n)}function Xb(n){return n!==It}function Kb(n,e){return vg(n)===vg(e)}function vg(n){return n>=Br&&n<=Sa?n-Br+js:n}function Yb(n){return ta(n)||zn(n)||n===va}function Sg(n){return n!==Ut&&Xe(n)}function Zb(n){let e=[],t;for(let i=0;i<n.length;i++){let r=n[i];t&&t.type===5&&r.type===5||t&&t.type===16&&r.type===16?(t.parts[0]+=r.parts[0],t.sourceSpan.end=r.sourceSpan.end):(t=r,e.push(t))}return e}var fc=class n{constructor(e,t){if(e instanceof n){this.file=e.file,this.input=e.input,this.end=e.end;let i=e.state;this.state={peek:i.peek,offset:i.offset,line:i.line,column:i.column}}else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new n(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){e=e||this;let i=e;if(t)for(;this.diff(e)>0&&t.indexOf(e.peek())!==-1;)i===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e),s=this.locationFromCursor(this),o=i!==e?this.locationFromCursor(i):r;return new se(r,s,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new pa('Unexpected character "EOF"',this);let t=this.charAt(e.offset);t===Er?(e.line++,e.column=0):rh(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?gt:this.charAt(e.offset)}locationFromCursor(e){return new na(e.file,e.state.offset,e.state.line,e.state.column)}},cd=class n extends fc{constructor(e,t){e instanceof n?(super(e),this.internalState=P({},e.internalState)):(super(e,t),this.internalState=this.state)}
23advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new n(this)}getChars(e){let t=e.clone(),i="";for(;t.internalState.offset<this.internalState.offset;)i+=String.fromCodePoint(t.peek()),t.advance();return i}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===Eo)if(this.internalState=P({},this.state),this.advanceState(this.internalState),e()===O1)this.state.peek=Er;else if(e()===D1)this.state.peek=eh;else if(e()===B1)this.state.peek=T1;else if(e()===N1)this.state.peek=Jd;else if(e()===bx)this.state.peek=mx;else if(e()===ih)this.state.peek=M1;else if(e()===L1)if(this.advanceState(this.internalState),e()===Xn){this.advanceState(this.internalState);let t=this.clone(),i=0;for(;e()!==It;)this.advanceState(this.internalState),i++;this.state.peek=this.decodeHexDigits(t,i)}else{let t=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,4)}else if(e()===R1){this.advanceState(this.internalState);let t=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,2)}else if(W0(e())){let t="",i=0,r=this.clone();for(;W0(e())&&i<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),i++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else rh(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let i=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(i,16);if(isNaN(r))throw e.state=e.internalState,new pa("Invalid hexadecimal escape sequence",e);return r}},pa=class{constructor(e,t){this.msg=e,this.cursor=t}},at=class n extends ie{static create(e,t,i){return new n(e,t,i)}constructor(e,t,i){super(t,i),this.elementName=e}},gc=class{constructor(e,t){this.rootNodes=e,this.errors=t}},ud=class{constructor(e){this.getTagDefinition=e}parse(e,t,i){let r=$b(e,t,this.getTagDefinition,i),s=new pd(r.tokens,this.getTagDefinition);return s.build(),new gc(s.rootNodes,r.errors.concat(s.errors))}},pd=class n{constructor(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==33;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?this._consumeEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof hn&&this.errors.push(at.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){let t=this._advanceIf(7),i=this._advanceIf(11),r=t!=null?t.parts[0].trim():null,s=i==null?e.sourceSpan:new se(e.sourceSpan.start,i.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new ua(r,s))}_consumeExpansion(e){let t=this._advance(),i=this._advance(),r=[];for(;this._peek.type===20;){let o=this._parseExpansionCase();if(!o)return;r.push(o)}if(this._peek.type!==23){this.errors.push(at.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let s=new se(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Tr(t.parts[0],i.parts[0],r,s,t.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==21)return this.errors.push(at.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let t=this._advance(),i=this._collectExpansionExpTokens(t);if(!i)return null;let r=this._advance();i.push({type:33,parts:[],sourceSpan:r.sourceSpan});let s=new n(i,this.getTagDefinition);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;let o=new se(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart),a=new se(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart);return new pc(e.parts[0],s.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){let t=[],i=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&i.push(this._peek.type),this._peek.type===22)if(xg(i,21)){if(i.pop(),i.length===0)return t}else return this.errors.push(at.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(xg(i,19))i.pop();else return this.errors.push(at.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===33)return this.errors.push(at.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){let t=[e],i=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===`
24`){let s=this._getContainer();s!=null&&s.children.length===0&&this.getTagDefinition(s.name).ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?r+=e.parts.join("").replace(/&([^;]+);/g,Cg):e.type===9?r+=e.parts[0]:r+=e.parts.join("");if(r.length>0){let s=e.sourceSpan;this._addToParent(new Vr(r,new se(i.start,s.end,i.fullStart,i.details),t))}}_closeVoidElement(){let e=this._getContainer();e instanceof un&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[t,i]=e.parts,r=[];for(;this._peek.type===14;)r.push(this._consumeAttr(this._advance()));let s=this._getElementFullName(t,i,this._getClosestParentElement()),o=!1;if(this._peek.type===2){this._advance(),o=!0;let x=this.getTagDefinition(s);x.canSelfClose||kp(s)!==null||x.isVoid||this.errors.push(at.create(s,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),o=!1);let a=this._peek.sourceSpan.fullStart,l=new se(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new se(e.sourceSpan.start,a,e.sourceSpan.fullStart),d=new un(s,r,[],l,c,void 0),_=this._getContainer();this._pushContainer(d,_ instanceof un&&this.getTagDefinition(_.name).isClosedByChild(d.name)),o?this._popContainer(s,un,l):e.type===4&&(this._popContainer(s,un,null),this.errors.push(at.create(s,l,`Opening tag "${s}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let t=this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(this.getTagDefinition(t).isVoid)this.errors.push(at.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,un,e.sourceSpan)){let i=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(at.create(t,e.sourceSpan,i))}}_popContainer(e,t,i){let r=!1;for(let s=this._containerStack.length-1;s>=0;s--){let o=this._containerStack[s];if((o.name===e||e===null)&&o instanceof t)return o.endSourceSpan=i,o.sourceSpan.end=i!==null?i.end:o.sourceSpan.end,this._containerStack.splice(s,this._containerStack.length-s),!r;(o instanceof hn||o instanceof un&&!this.getTagDefinition(o.name).closedByParent)&&(r=!0)}return!1}_consumeAttr(e){let t=Op(e.parts[0],e.parts[1]),i=e.sourceSpan.end;this._peek.type===15&&this._advance();let r="",s=[],o,a;if(this._peek.type===16)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let d=this._advance();s.push(d),d.type===17?r+=d.parts.join("").replace(/&([^;]+);/g,Cg):d.type===9?r+=d.parts[0]:r+=d.parts.join(""),a=i=d.sourceSpan.end}this._peek.type===15&&(i=this._advance().sourceSpan.end);let c=o&&a&&new se(o.start,a,o.fullStart);return new sd(t,r,new se(e.sourceSpan.start,i,e.sourceSpan.fullStart),e.sourceSpan,c,s.length>0?s:void 0,void 0)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===27;){let a=this._advance();t.push(new dc(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let i=this._peek.sourceSpan.fullStart,r=new se(e.sourceSpan.start,i,e.sourceSpan.fullStart),s=new se(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=new hn(e.parts[0],t,[],r,e.sourceSpan,s);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,hn,e.sourceSpan)||this.errors.push(at.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===27;){let a=this._advance();t.push(new dc(a.parts[0],a.sourceSpan))}let i=this._peek.sourceSpan.fullStart,r=new se(e.sourceSpan.start,i,e.sourceSpan.fullStart),s=new se(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=new hn(e.parts[0],t,[],r,e.sourceSpan,s);this._pushContainer(o,!1),this._popContainer(null,hn,null),this.errors.push(at.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let t=e.parts[0],i,r;if(this._peek.type!==30){this.errors.push(at.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));return}else i=this._advance();if(this._peek.type!==31){this.errors.push(at.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));return}else r=this._advance();let s=r.sourceSpan.fullStart,o=new se(e.sourceSpan.start,s,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(t),l=e.sourceSpan.start.moveBy(a),c=new se(l,e.sourceSpan.end),d=new hc(t,i.parts[0],o,c,i.sourceSpan);this._addToParent(d)}_consumeIncompleteLet(e){let t=e.parts[0]??"",i=t?` "${t}"`:"";if(t.length>0){let r=e.sourceSpan.toString().lastIndexOf(t),s=e.sourceSpan.start.moveBy(r),o=new se(s,e.sourceSpan.end),a=new se(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new hc(t,"",e.sourceSpan,o,a);this._addToParent(l)}this.errors.push(at.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${i}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof un)return this._containerStack[e];return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t,i){if(e===""&&(e=this.getTagDefinition(t).implicitNamespacePrefix||"",e===""&&i!=null)){let r=kn(i.name)[1];this.getTagDefinition(r).preventNamespaceInheritance||(e=kp(i.name))}return Op(e,t)}};function xg(n,e){return n.length>0&&n[n.length-1]===e}function Cg(n,e){return mc[e]!==void 0?mc[e]||n:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):n}
24var t_="ngPreserveWhitespaces",Jb=new Set(["pre","template","textarea","script","style"]),n_=` \f
25\r	\v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,ew=new RegExp(`[^${n_}]`),tw=new RegExp(`[${n_}]{2,}`,"g");function nw(n){return n.some(e=>e.name===t_)}function i_(n){return n.replace(new RegExp(e_,"g")," ")}var _c=class{constructor(e,t,i=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=t,this.requireContext=i,this.icuExpansionDepth=0}visitElement(e,t){if(Jb.has(e.name)||nw(e.attrs)){let r=new un(e.name,gs(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(r,e),r}let i=new un(e.name,e.attrs,gs(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(i,e),i}visitAttribute(e,t){return e.name!==t_?e:null}visitText(e,t){let i=e.value.match(ew),r=t&&(t.prev instanceof Tr||t.next instanceof Tr);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(i||r){let o=e.tokens.map(d=>d.type===5?ow(d):d);if(!this.preserveSignificantWhitespace&&o.length>0){let d=o[0];o.splice(0,1,iw(d,t));let _=o[o.length-1];o.splice(o.length-1,1,rw(_,t))}let a=s_(e.value),l=this.preserveSignificantWhitespace?a:sw(a,t),c=new Vr(l,e.sourceSpan,o,e.i18n);return this.originalNodeMap?.set(c,e),c}return null}visitComment(e,t){return e}visitExpansion(e,t){this.icuExpansionDepth++;let i;try{i=new Tr(e.switchValue,e.type,gs(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(i,e),i}visitExpansionCase(e,t){let i=new pc(e.value,gs(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(i,e),i}visitBlock(e,t){let i=new hn(e.name,e.parameters,gs(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(i,e),i}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}visit(e,t){if(this.requireContext&&!t)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function iw(n,e){return n.type!==5||!!e?.prev?n:r_(n,i=>i.trimStart())}function rw(n,e){return n.type!==5||!!e?.next?n:r_(n,i=>i.trimEnd())}function sw(n,e){let t=!e?.prev,i=!e?.next,r=t?n.trimStart():n;return i?r.trimEnd():r}function ow({type:n,parts:e,sourceSpan:t}){return{type:n,parts:[s_(e[0])],sourceSpan:t}}function r_({type:n,parts:e,sourceSpan:t},i){return{type:n,parts:[i(e[0])],sourceSpan:t}}function s_(n){return i_(n).replace(tw," ")}function gs(n,e){let t=[];return e.forEach((i,r)=>{let s={prev:e[r-1],next:e[r+1]},o=i.visit(n,s);o&&t.push(o)}),t}var he=function(n){return n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.Error=7]="Error",n}(he||{}),aw=["var","let","as","null","undefined","true","false","if","else","this"],da=class{tokenize(e){let t=new dd(e),i=[],r=t.scanToken();for(;r!=null;)i.push(r),r=t.scanToken();return i}},Dn=class{constructor(e,t,i,r,s){this.index=e,this.end=t,this.type=i,this.numValue=r,this.strValue=s}isCharacter(e){return this.type==he.Character&&this.numValue==e}isNumber(){return this.type==he.Number}isString(){return this.type==he.String}isOperator(e){return this.type==he.Operator&&this.strValue==e}isIdentifier(){return this.type==he.Identifier}isPrivateIdentifier(){return this.type==he.PrivateIdentifier}isKeyword(){return this.type==he.Keyword}isKeywordLet(){return this.type==he.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==he.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==he.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==he.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==he.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==he.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==he.Keyword&&this.strValue=="this"}isError(){return this.type==he.Error}toNumber(){return this.type==he.Number?this.numValue:-1}toString(){switch(this.type){case he.Character:case he.Identifier:case he.Keyword:case he.Operator:case he.PrivateIdentifier:case he.String:case he.Error:return this.strValue;case he.Number:return this.numValue.toString();default:return null}}};function bg(n,e,t){return new Dn(n,e,he.Character,t,String.fromCharCode(t))}function lw(n,e,t){return new Dn(n,e,he.Identifier,0,t)}function cw(n,e,t){return new Dn(n,e,he.PrivateIdentifier,0,t)}function uw(n,e,t){return new Dn(n,e,he.Keyword,0,t)}function np(n,e,t){return new Dn(n,e,he.Operator,0,t)}function pw(n,e,t){return new Dn(n,e,he.String,0,t)}function dw(n,e,t){return new Dn(n,e,he.Number,t,"")}function hw(n,e,t){return new Dn(n,e,he.Error,0,t)}var ip=new Dn(-1,-1,he.Character,0,""),dd=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?gt:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,i=this.peek,r=this.index;for(;i<=P1;)if(++r>=t){i=gt;break}else i=e.charCodeAt(r);if(this.peek=i,this.index=r,r>=t)return null;if(wg(i))return this.scanIdentifier();if(zn(i))return this.scanNumber(r);let s=r;switch(i){case ms:return this.advance(),zn(this.peek)?this.scanNumber(s):bg(s,this.index,ms);case xi:case An:case Xn:case It:case ys:case Ss:case vn:case zi:case Ut:return this.scanCharacter(s,i);case Jo:case Zo:return this.scanString();case A1:return this.scanPrivateIdentifier();case I1:case Ql:case gx:case hi:case fx:case Cx:return this.scanOperator(s,Str
25ing.fromCharCode(i));case G0:return this.scanQuestion(s);case vs:case Wi:return this.scanComplexOperator(s,String.fromCharCode(i),xr,"=");case Gp:case xr:return this.scanComplexOperator(s,String.fromCharCode(i),xr,"=",xr,"=");case jl:return this.scanComplexOperator(s,"&",jl,"&");case $0:return this.scanComplexOperator(s,"|",$0,"|");case F1:for(;ea(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(i)}]`,0)}scanCharacter(e,t){return this.advance(),bg(e,this.index,t)}scanOperator(e,t){return this.advance(),np(e,this.index,t)}scanComplexOperator(e,t,i,r,s,o){this.advance();let a=t;return this.peek==i&&(this.advance(),a+=r),s!=null&&this.peek==s&&(this.advance(),a+=o),np(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();yg(this.peek);)this.advance();let t=this.input.substring(e,this.index);return aw.indexOf(t)>-1?uw(e,this.index,t):lw(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!wg(this.peek))return this.error("Invalid character [#]",-1);for(;yg(this.peek);)this.advance();let t=this.input.substring(e,this.index);return cw(e,this.index,t)}scanNumber(e){let t=this.index===e,i=!1;for(this.advance();;){if(!zn(this.peek))if(this.peek===va){if(!zn(this.input.charCodeAt(this.index-1))||!zn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);i=!0}else if(this.peek===ms)t=!1;else if(mw(this.peek)){if(this.advance(),fw(this.peek)&&this.advance(),!zn(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let r=this.input.substring(e,this.index);i&&(r=r.replace(/_/g,""));let s=t?_w(r):parseFloat(r);return dw(e,this.index,s)}scanString(){let e=this.index,t=this.peek;this.advance();let i="",r=this.index,s=this.input;for(;this.peek!=t;)if(this.peek==Eo){i+=s.substring(r,this.index);let a;if(this.advance(),this.peek==L1){let l=s.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(l))a=parseInt(l,16);else return this.error(`Invalid unicode escape [\\u${l}]`,0);for(let c=0;c<5;c++)this.advance()}else a=gw(this.peek),this.advance();i+=String.fromCharCode(a),r=this.index}else{if(this.peek==gt)return this.error("Unterminated quote",0);this.advance()}let o=s.substring(r,this.index);return this.advance(),pw(e,this.index,i+o)}scanQuestion(e){this.advance();let t="?";return(this.peek===G0||this.peek===ms)&&(t+=this.peek===ms?".":"?",this.advance()),np(e,this.index,t)}error(e,t){let i=this.index+t;return hw(i,this.index,`Lexer Error: ${e} at column ${i} in expression [${this.input}]`)}};function wg(n){return Br<=n&&n<=Sa||js<=n&&n<=Oc||n==va||n==th}function yg(n){return ta(n)||zn(n)||n==va||n==th}function mw(n){return n==wx||n==vx}function fw(n){return n==Ql||n==I1}function gw(n){switch(n){case O1:return Er;case ih:return M1;case D1:return eh;case N1:return Jd;case B1:return T1;default:return n}}function _w(n){let e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}var hd=class{constructor(e,t,i){this.strings=e,this.expressions=t,this.offsets=i}},md=class{constructor(e,t,i){this.templateBindings=e,this.warnings=t,this.errors=i}},vc=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,i,r=Qn){this._checkNoInterpolation(e,t,r);let s=this._stripComments(e),o=this._lexer.tokenize(s),a=new _r(e,t,i,o,1,this.errors,0).parseChain();return new mn(a,e,t,i,this.errors)}parseBinding(e,t,i,r=Qn){let s=this._parseBindingAst(e,t,i,r);return new mn(s,e,t,i,this.errors)}checkSimpleExpression(e){let t=new fd;return e.visit(t),t.errors}parseSimpleBinding(e,t,i,r=Qn){let s=this._parseBindingAst(e,t,i,r),o=this.checkSimpleExpression(s);return o.length>0&&this._reportError(`Host binding expression cannot contain ${o.join(" ")}`,e,t),new mn(s,e,t,i,this.errors)}_reportError(e,t,i,r){this.errors.push(new Fo(e,t,i,r))}_parseBindingAst(e,t,i,r){this._checkNoInterpolation(e,t,r);let s=this._stripComments(e),o=this._lexer.tokenize(s);return new _r(e,t,i,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,i,r,s){let o=this._lexer.tokenize(t);
25return new _r(t,i,s,o,0,this.errors,0).parseTemplateBindings({source:e,span:new $t(r,r+e.length)})}parseInterpolation(e,t,i,r,s=Qn){let{strings:o,expressions:a,offsets:l}=this.splitInterpolation(e,t,r,s);if(a.length===0)return null;let c=[];for(let d=0;d<a.length;++d){let _=a[d].text,x=this._stripComments(_),w=this._lexer.tokenize(x),C=new _r(e,t,i,w,0,this.errors,l[d]).parseChain();c.push(C)}return this.createInterpolationAst(o.map(d=>d.text),c,e,t,i)}parseInterpolationExpression(e,t,i){let r=this._stripComments(e),s=this._lexer.tokenize(r),o=new _r(e,t,i,s,0,this.errors,0).parseChain(),a=["",""];return this.createInterpolationAst(a,[o],e,t,i)}createInterpolationAst(e,t,i,r,s){let o=new Or(0,i.length),a=new Nr(o,o.toAbsolute(s),e,t);return new mn(a,i,r,s,this.errors)}splitInterpolation(e,t,i,r=Qn){let s=[],o=[],a=[],l=i?vw(i):null,c=0,d=!1,_=!1,{start:x,end:w}=r;for(;c<e.length;)if(d){let C=c,T=C+x.length,D=this._getInterpolationEndIndex(e,w,T);if(D===-1){d=!1,_=!0;break}let L=D+w.length,B=e.substring(T,D);B.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${c} in`,t),o.push({text:B,start:C,end:L});let le=(l?.get(C)??C)+x.length;a.push(le),c=L,d=!1}else{let C=c;c=e.indexOf(x,c),c===-1&&(c=e.length);let T=e.substring(C,c);s.push({text:T,start:C,end:c}),d=!0}if(!d)if(_){let C=s[s.length-1];C.text+=e.substring(c),C.end=e.length}else s.push({text:e.substring(c),start:c,end:e.length});return new hd(s,o,a)}wrapLiteralPrimitive(e,t,i){let r=new Or(0,e==null?0:e.length);return new mn(new dn(r,r.toAbsolute(i),e),e,t,i,this.errors)}_stripComments(e){let t=this._commentStart(e);return t!=null?e.substring(0,t):e}_commentStart(e){let t=null;for(let i=0;i<e.length-1;i++){let r=e.charCodeAt(i),s=e.charCodeAt(i+1);if(r===hi&&s==hi&&t==null)return i;t===r?t=null:t==null&&To(r)&&(t=r)}return null}_checkNoInterpolation(e,t,{start:i,end:r}){let s=-1,o=-1;for(let a of this._forEachUnquotedChar(e,0))if(s===-1)e.startsWith(i)&&(s=a);else if(o=this._getInterpolationEndIndex(e,r,a),o>-1)break;s>-1&&o>-1&&this._reportError(`Got interpolation (${i}${r}) where expression was expected`,e,`at column ${s} in`,t)}_getInterpolationEndIndex(e,t,i){for(let r of this._forEachUnquotedChar(e,i)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let i=null,r=0;for(let s=t;s<e.length;s++){let o=e[s];To(e.charCodeAt(s))&&(i===null||i===o)&&r%2===0?i=i===null?o:null:i===null&&(yield s),r=o==="\\"?r+1:0}}},Co=function(n){return n[n.None=0]="None",n[n.Writable=1]="Writable",n}(Co||{}),_r=class{constructor(e,t,i,r,s,o,a){this.input=e,this.location=t,this.absoluteOffset=i,this.tokens=r,this.parseFlags=s,this.errors=o,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Co.None,this.sourceSpanCache=new Map,this.index=0}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:ip}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let i=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(i=t),e>i){let r=i;i=e,e=r}return new Or(e,i)}sourceSpan(e,t){let i=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(i)||this.sourceSpanCache.set(i,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(i)}advance(){this.index++}withContext(e,t){this.context|=e;let i=t();return this.context^=e,i}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===ip?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let i=this.parsePipe();if(e.push(i),this.consumeOptionalCharacter(Ut))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Ut););else if(this.index<this.tokens.length){let r=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===r)break}}if(e.length===0){let i=this.offset,r=this.offset+this.input.length;return new Ct(this.span(i,r),this.sourceSpan(i,r))}return e.length==1?e[0]:new ks(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let i=this.inputIndex,r=this.expectIdentifierOrKeyword(),s,o;r!==null?s=this.sourceSpan(i):(r="",o=this.next.index!==-1?this.next.index:this.input.length+this.offset,s=new Or(o,o).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(zi);)a.push(this.parseExpression());t=new Al(this.span(e),this.sourceSpan(e,o),t,r,a,s)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let i=this.parsePipe(),r;if(this.consumeOptionalCharacter(zi))r=this.parsePipe();else{let s=this.inputIndex,o=this.input.substring(e,s);this.error(`Conditional expression ${o}
25 requires all 3 expressions`),r=new Ct(this.span(e),this.sourceSpan(e))}return new Ho(this.span(e),this.sourceSpan(e),t,i,r)}else return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let i=this.parseLogicalAnd();t=new pn(this.span(e),this.sourceSpan(e),"||",t,i)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let i=this.parseNullishCoalescing();t=new pn(this.span(e),this.sourceSpan(e),"&&",t,i)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator("??");){let i=this.parseEquality();t=new pn(this.span(e),this.sourceSpan(e),"??",t,i)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==he.Operator;){let i=this.next.strValue;switch(i){case"==":case"===":case"!=":case"!==":this.advance();let r=this.parseRelational();t=new pn(this.span(e),this.sourceSpan(e),i,t,r);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==he.Operator;){let i=this.next.strValue;switch(i){case"<":case">":case"<=":case">=":this.advance();let r=this.parseAdditive();t=new pn(this.span(e),this.sourceSpan(e),i,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==he.Operator;){let i=this.next.strValue;switch(i){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new pn(this.span(e),this.sourceSpan(e),i,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==he.Operator;){let i=this.next.strValue;switch(i){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new pn(this.span(e),this.sourceSpan(e),i,t,r);continue}break}return t}parsePrefix(){if(this.next.type==he.Operator){let e=this.inputIndex,t=this.next.strValue,i;switch(t){case"+":return this.advance(),i=this.parsePrefix(),Vo.createPlus(this.span(e),this.sourceSpan(e),i);case"-":return this.advance(),i=this.parsePrefix(),Vo.createMinus(this.span(e),this.sourceSpan(e),i);case"!":return this.advance(),i=this.parsePrefix(),new Uo(this.span(e),this.sourceSpan(e),i)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(ms))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(xi)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(ys)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(ys))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(xi))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new Go(this.span(e),this.sourceSpan(e),t);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(xi)){this.rparensExpected++;let t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(An),t}else{if(this.next.isKeywordNull())return this.advance(),new dn(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new dn(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new dn(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new dn(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new wr(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(ys)){this.rbracketsExpected++;let t=this.parseExpressionList(Ss);return this.rbracketsExpected--,this.expectCharacter(Ss),new Il(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(Xn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new vi(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new dn(this.span(e),this.sourceSpan(e),t)}else if(this.next.isString()){let t=this.next.toString();return this.advance(),new dn(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Ct(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Ct(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new Ct(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(vn));return t}parseLiteralMap(){let e=[],t=[],i=this.inputIndex;if(this.expectCharacter(Xn),!this.consumeOptionalCharacter(It)){this.rbracesExpected++;do{let r=this.inputIndex,s=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a={key:o,quoted:s};if(e.push(a),s)this.expectCharacter(zi),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(zi))t.push(this.parsePipe());else{a.isShorthandInitialized=!0;let l=this.span(r),c=this.sourceSpan(r);t.push(new Dr(l,c,c,new vi(l,c),o))}}while(this.consumeOptionalCharacter(vn)&&!this.next.isCharacter(It));this.rbracesExpected--,this.expectCharacter(It)}return new kl(this.span(i),this.sourceSpan(i),e,t)}parseAccessMember(e,t,i){let r=this.inputIndex,s=this.withContext(Co.Writable,()=>{let l=this.expectIdentifierOrKeyword()??"";return l.length===0&&this.error("Expected identifier for property access",e.span.end),l}),o=this.sourceSpan(r),a;if(i)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),a=new Ct(this.span(t),this.sourceSpan(t))):a=new Tl(this.span(t),this.sourceSpan(t),o,e,s);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new Ct(this.span(t),this.sourceSpan(t));let l=this.parseConditional();a=new El(this.span(t),this.sourceSpan(t),o,e,s,l)}else a=new Dr(this.span(t),this.sourceSpan(t),o,e,s);return a}parseCall(e,t,i){let r=this.inputIndex;this.rparensExpected++;let s=this.parseCallArguments(),o=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(An),this.rparensExpected--;let a=this.span(t),l=this.sourceSpan(t);return i?new Dl(a,l,e,s,o):new Ol(a,l,e,s,o)}parseCallArguments(){if(this.next.isCharacter(An))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(vn));return e}expectTemplateBindingKey(){let e="",t=!1,i=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new $t(i,i+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let i=this.parseLetBinding();if(i)t.push(i);else{let r=this.expectTemplateBindingKey(),s=this.parseAsBinding(r);s?t.push(s):(r.source=e.source+r.source.charAt(0).toUpperCase()+r.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(r)))}this.consumeStatementTerminator()}return new md(t,[],this.errors)}parseKeyedReadOrWrite(e,t,i){return this.withContext(Co.Writable,()=>{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof Ct&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Ss),this.consumeOptionalOperator("="))if(i)this.error("The '?.' operator cannot be used in the assignment");else{let s=this.parseConditional();return new Pl(this.span(t),this.sourceSpan(t),e,r,s)}else return i?new Ml(this.span(t),this.sourceSpan(t),e,r):new Os(this.span(t),this.sourceSpan(t),e,r);return new Ct(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(zi);let i=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let o=new $t(e.span.start,r);return t.push(new Pp(o,e,i)),s&&t.push(s),t}
25getDirectiveBoundTarget(){if(this.next===ip||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:i}=e.span,r=this.input.substring(t,i);return new mn(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let i=new $t(e.span.start,this.currentAbsoluteOffset);return new $o(i,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),i=null;this.consumeOptionalOperator("=")&&(i=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new $t(e,this.currentAbsoluteOffset);return new $o(r,t,i)}consumeStatementTerminator(){this.consumeOptionalCharacter(Ut)||this.consumeOptionalCharacter(vn)}error(e,t=null){this.errors.push(new Fo(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let i=`Private identifiers are not supported. Unexpected private identifier: ${e}`;t!==null&&(i+=`, ${t}`),this.error(i)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(Ut)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(An))&&(this.rbracesExpected<=0||!e.isCharacter(It))&&(this.rbracketsExpected<=0||!e.isCharacter(Ss))&&(!(this.context&Co.Writable)||!e.isOperator("="));)this.next.isError()&&this.errors.push(new Fo(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},fd=class extends Nl{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}};function vw(n){let e=new Map,t=0,i=0,r=0;for(;r<n.length;){let s=n[r];if(s.type===9){let[o,a]=s.parts;t+=a.length,i+=o.length}else{let o=s.parts.reduce((a,l)=>a+l.length,0);i+=o,t+=o}e.set(i,t),r++}return e}var pl;function Eg(){return pl||(pl={},al(Ne.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),al(Ne.STYLE,["*|style"]),al(Ne.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),al(Ne.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),pl}function al(n,e){for(let t of e)pl[t.toLowerCase()]=n}var Sw=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function xw(n){return Sw.has(n.toLowerCase())}var gd=class{},Cw="boolean",bw="number",ww="string",yw="object",Ew=["[Element]|textContent,%ariaAtom
25ic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*p
25ointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxcl
25ick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],o_=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Tw=Array.from(o_).reduce((n,[e,t])=>(n.set(e,t),n),new Map),Ws=class extends gd{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Ew.forEach(e=>{let t=new Map,i=new Set,[r,s]=e.split("|"),o=s.split(","),[a,l]=r.split("^");a.split(",").forEach(d=>{this._schema.set(d.toLowerCase(),t),this._eventSchema.set(d.toLowerCase(),i)});let c=l&&this._schema.get(l.toLowerCase());if(c){for(let[d,_]of c)t.set(d,_);for(let d of this._eventSchema.get(l.toLowerCase()))i.add(d)}o.forEach(d=>{if(d.length>0)switch(d[0]){case"*":i.add(d.substring(1));break;case"!":t.set(d.substring(1),Cw);break;case"#":t.set(d.substring(1),bw);break;case"%":t.set(d.substring(1),yw);break;default:t.set(d,ww)}})})}hasProperty(e,t,i){if(i.some(s=>s.name===y0.name))return!0;if(e.indexOf("-")>-1){if(R0(e)||Ip(e))return!1;if(i.some(s=>s.name===w0.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(i=>i.name===y0.name)||e.indexOf("-")>-1&&(R0(e)||Ip(e)||t.some(i=>i.name===w0.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,i){i&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let r=Eg()[e+"|"+t];return r||(r=Eg()["*|"+t],r||Ne.NONE)}getMappedPropName(e){return o_.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
26If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(i=>Tw.get(i)??i)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return L2(e)}normalizeAnimationStyleValue(e,t,i){let r="",s=i.toString().trim(),o=null;if(Mw(e)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(o=`Please provide a CSS unit value for ${t}:${i}`)}return{error:o,value:s+r}}};function Mw(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var ce=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:i=jn.PARSABLE_DATA,closedByParent:r=!1,isVoid:s=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:l=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=s,this.closedByParent=r||s,this.impl
26icitNamespacePrefix=t||null,this.contentType=i,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=l??s}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Tg,ds;function a_(n){return ds||(Tg=new ce({canSelfClose:!0}),ds=Object.assign(Object.create(null),{base:new ce({isVoid:!0}),meta:new ce({isVoid:!0}),area:new ce({isVoid:!0}),embed:new ce({isVoid:!0}),link:new ce({isVoid:!0}),img:new ce({isVoid:!0}),input:new ce({isVoid:!0}),param:new ce({isVoid:!0}),hr:new ce({isVoid:!0}),br:new ce({isVoid:!0}),source:new ce({isVoid:!0}),track:new ce({isVoid:!0}),wbr:new ce({isVoid:!0}),p:new ce({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ce({closedByChildren:["tbody","tfoot"]}),tbody:new ce({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ce({closedByChildren:["tbody"],closedByParent:!0}),tr:new ce({closedByChildren:["tr"],closedByParent:!0}),td:new ce({closedByChildren:["td","th"],closedByParent:!0}),th:new ce({closedByChildren:["td","th"],closedByParent:!0}),col:new ce({isVoid:!0}),svg:new ce({implicitNamespacePrefix:"svg"}),foreignObject:new ce({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ce({implicitNamespacePrefix:"math"}),li:new ce({closedByChildren:["li"],closedByParent:!0}),dt:new ce({closedByChildren:["dt","dd"]}),dd:new ce({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ce({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ce({closedByChildren:["optgroup"],closedByParent:!0}),option:new ce({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ce({ignoreFirstLf:!0}),listing:new ce({ignoreFirstLf:!0}),style:new ce({contentType:jn.RAW_TEXT}),script:new ce({contentType:jn.RAW_TEXT}),title:new ce({contentType:{default:jn.ESCAPABLE_RAW_TEXT,svg:jn.PARSABLE_DATA}}),textarea:new ce({contentType:jn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Ws().allKnownElementNames().forEach(e=>{!ds[e]&&kp(e)===null&&(ds[e]=new ce({canSelfClose:!1}))})),ds[n]??ds[n.toLowerCase()]??Tg}var Mg={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},_d=class{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,t,i){let r=this._hashTag(e,t,i);if(this._signatureToName[r])return this._signatureToName[r];let s=e.toUpperCase(),o=Mg[s]||`TAG_${s}`,a=this._generateUniqueName(i?o:`START_${o}`);return this._signatureToName[r]=a,a}getCloseTagPlaceholderName(e){let t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];let i=e.toUpperCase(),r=Mg[i]||`TAG_${i}`,s=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[t]=s,s}getPlaceholderName(e,t){let i=e.toUpperCase(),r=`PH: ${i}=${t}`;if(this._signatureToName[r])return this._signatureToName[r];let s=this._generateUniqueName(i);return this._signatureToName[r]=s,s}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,t){let i=this._hashBlock(e,t);if(this._signatureToName[i])return this._signatureToName[i];let r=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[i]=r,r}getCloseBlockPlaceholderName(e){let t=this._hashClosingBlock(e);if(this._signatureToName[t])return this._signatureToName[t];let i=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[t]=i,i}_hashTag(e,t,i){let r=`<${e}`,s=Object.keys(t).sort().map(a=>` ${a}=${t[a]}`).join(""),o=i?"/>":`></${e}>`;return r+s+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,t){let i=t.length===0?"":` (${t.sort().join("; ")})`;return`@${e}${i} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let i=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=i+1,`${e}_${i}`}},Pw=new vc(new da);function Aw(n,e,t){let i=new vd(Pw,n,e,t);return(r,s,o,a,l)=>i.toI18nMessage(r,s,o,a,l)}function Iw(n,e){return e}var vd=class{constructor(e,t,i,r){this._expressionParser=e,this._interpolationConfig=t,this._containerBlocks=i,this._retainEmptyTokens=r}toI18nMessage(e,t="",i="",r="",s){let o={isIcu:e.length==1&&e[0]instanceof Tr,icuDepth:0,placeholderRegistry:new _d,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||Iw},a=Ve(this,e,o);return new bt(a,o.placeholderToContent,o.placeholderToMessage,t,i,r)}visitElement(e,t){let i=Ve(this,e.children,t),r={};
26e.attrs.forEach(c=>{r[c.name]=c.value});let s=a_(e.name).isVoid,o=t.placeholderRegistry.getStartTagPlaceholderName(e.name,r,s);t.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";s||(a=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[a]={text:`</${e.name}>`,sourceSpan:e.endSourceSpan??e.sourceSpan});let l=new Yi(e.name,r,o,a,i,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,l)}visitAttribute(e,t){let i=e.valueTokens===void 0||e.valueTokens.length===1?new gr(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,i)}visitText(e,t){let i=e.tokens.length===1?new gr(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,i)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;let i={},r=new Wl(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(a=>{i[a.value]=new Si(a.expression.map(l=>l.visit(this,t)),a.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){let a=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return r.expressionPlaceholder=a,t.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,r)}let s=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[s]=this.toI18nMessage([e],"","","",void 0);let o=new Fs(r,s,e.sourceSpan);return t.visitNodeFn(e,o)}visitExpansionCase(e,t){throw new Error("Unreachable code")}visitBlock(e,t){let i=Ve(this,e.children,t);if(this._containerBlocks.has(e.name))return new Si(i,e.sourceSpan);let r=e.parameters.map(l=>l.expression),s=t.placeholderRegistry.getStartBlockPlaceholderName(e.name,r),o=t.placeholderRegistry.getCloseBlockPlaceholderName(e.name);t.placeholderToContent[s]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},t.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};let a=new Zi(e.name,r,s,o,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,a)}visitBlockParameter(e,t){throw new Error("Unreachable code")}visitLetDeclaration(e,t){return null}_visitTextWithInterpolation(e,t,i,r){let s=[],o=!1;for(let a of e)switch(a.type){case 8:case 17:o=!0;let l=a.parts[1],c=Lw(l)||"INTERPOLATION",d=i.placeholderRegistry.getPlaceholderName(c,l);i.placeholderToContent[d]={text:a.parts.join(""),sourceSpan:a.sourceSpan},s.push(new ql(l,d,a.sourceSpan));break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let _=s[s.length-1];_ instanceof gr?(_.value+=a.parts[0],_.sourceSpan=new se(_.sourceSpan.start,a.sourceSpan.end,_.sourceSpan.fullStart,_.sourceSpan.details)):s.push(new gr(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&s.push(new gr(a.parts[0],a.sourceSpan));break}return o?(kw(s,r),new Si(s,t)):s[0]}};function kw(n,e){if(e instanceof bt&&(Ow(e),e=e.nodes[0]),e instanceof Si){Dw(e.children,n);for(let t=0;t<n.length;t++)n[t].sourceSpan=e.children[t].sourceSpan}}function Ow(n){let e=n.nodes;if(e.length!==1||!(e[0]instanceof Si))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function Dw(n,e){if(n.length!==e.length)throw new Error(`
27The number of i18n message children changed between first and second pass.
28
29First pass (${n.length} tokens):
30${n.map(t=>`"${t.sourceSpan.toString()}"`).join(`
31`)}
32
33Second pass (${e.length} tokens):
34${e.map(t=>`"${t.sourceSpan.toString()}"`).join(`
35`)}
36    `.trim());if(n.some((t,i)=>e[i].constructor!==t.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var Nw=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function Lw(n){return n.split(Nw)[2]}var Sd=class extends ie{constructor(e,t){super(e,t)}},Pg=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Bw(n,e){return n=n.toLowerCase(),e=e.toLowerCase(),Pg.has(n+"|"+e)||Pg.has("*|"+e)}var Rw=n=>(e,t)=>{let i=n.get(e)??e;return i instanceof nr&&(t instanceof Fs&&i.i18n instanceof bt&&(t.previousMessage=i.i18n),i.i18n=t),t},Sc=class{constructor(e=Qn,t=!1,i=!1,r=hx,s=!0,o=!s){this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=i,this.containerBlocks=r,this.preserveSignificantWhitespace=s,this.retainEmptyTokens=o,this.hasI18nMeta=!1,this._errors=[]}
36_generateI18nMessage(e,t="",i){let{meaning:r,description:s,customId:o}=this._parseMetadata(t),l=Aw(this.interpolationConfig,this.containerBlocks,this.retainEmptyTokens)(e,r,s,o,i);return this._setMessageId(l,t),this._setLegacyIds(l,t),l}visitAllWithErrors(e){let t=e.map(i=>i.visit(this,null));return new gc(t,this._errors)}visitElement(e){let t;if(ox(e)){this.hasI18nMeta=!0;let i=[],r={};for(let s of e.attrs)if(s.name===b1){let o=e.i18n||s.value,a=new Map,l=this.preserveSignificantWhitespace?e.children:gs(new _c(!1,a),e.children);t=this._generateI18nMessage(l,o,Rw(a)),t.nodes.length===0&&(t=void 0),e.i18n=t}else if(s.name.startsWith(Up)){let o=s.name.slice(Up.length);Bw(e.name,o)?this._reportError(s,`Translating attribute '${o}' is disallowed for security reasons.`):r[o]=s.value}else i.push(s);if(Object.keys(r).length)for(let s of i){let o=r[s.name];o!==void 0&&s.value&&(s.i18n=this._generateI18nMessage([s],s.i18n||o))}this.keepI18nAttrs||(e.attrs=i)}return Ve(this,e.children,t),e}visitExpansion(e,t){let i,r=e.i18n;if(this.hasI18nMeta=!0,r instanceof Fs){let s=r.name;i=this._generateI18nMessage([e],r);let o=y1(i);o.name=s,t!==null&&(t.placeholderToMessage[s]=i)}else i=this._generateI18nMessage([e],t||r);return e.i18n=i,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,t){return Ve(this,e.children,t),e}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}_parseMetadata(e){return typeof e=="string"?Vw(e):e instanceof bt?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof bt&&t.id||u2(e,this.preserveSignificantWhitespace))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[c2(e),f1(e,this.preserveSignificantWhitespace)];else if(typeof t!="string"){let i=t instanceof bt?t:t instanceof Fs?t.previousMessage:void 0;e.legacyIds=i?i.legacyIds:[]}}_reportError(e,t){this._errors.push(new Sd(e.sourceSpan,t))}},Fw="|",Hw="@@";function Vw(n=""){let e,t,i;if(n=n.trim(),n){let r=n.indexOf(Hw),s=n.indexOf(Fw),o;[o,e]=r>-1?[n.slice(0,r),n.slice(r+2)]:[n,""],[t,i]=s>-1?[o.slice(0,s),o.slice(s+1)]:["",o]}return{customId:e,meaning:t,description:i}}function Uw(n){let e=[];return n.description?e.push({tagName:"desc",text:n.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&e.push({tagName:"meaning",text:n.meaning}),E2(e)}var Gw="goog.getMsg";function $w(n,e,t,i){let r=qw(e),s=[E(r)];Object.keys(i).length&&(s.push(id(Kd(i,!0),!0)),s.push(id({original_code:yt(Object.keys(i).map(l=>({key:_a(l),quoted:!0,value:e.placeholders[l]?E(e.placeholders[l].sourceSpan.toString()):E(e.placeholderToMessage[l].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=t.set(ue(Gw).callFn(s)).toConstDecl();o.addLeadingComment(Uw(e));let a=new wn(n.set(t));return[o,a]}var xd=class{formatPh(e){return`{$${_a(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){return J1(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}},Ww=new xd;function qw(n){return n.nodes.map(e=>e.visit(Ww,null)).join("")}function zw(n,e,t){let{messageParts:i,placeHolders:r}=jw(e),s=Qw(e),o=r.map(c=>t[c.text]),a=P2(e,i,r,o,s),l=n.set(a);return[new wn(l)]}var Cd=class{constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof br)this.pieces[this.pieces.length-1].text+=e.value;else{let t=new se(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new br(e.value,t))}}visitContainer(e){e.children.forEach(t=>t.visit(this))}visitIcu(e){this.pieces.push(new br(J1(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEac
36h(t=>t.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEach(t=>t.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,t,i){return new bs(_a(e,!1),t,i)}};function jw(n){let e=[],t=new Cd(n.placeholderToMessage,e);return n.nodes.forEach(i=>i.visit(t)),Xw(e)}function Qw(n){let e=n.nodes[0],t=n.nodes[n.nodes.length-1];return new se(e.sourceSpan.fullStart,t.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function Xw(n){let e=[],t=[];n[0]instanceof bs&&e.push(rp(n[0].sourceSpan.start));for(let i=0;i<n.length;i++){let r=n[i];r instanceof br?e.push(r):(t.push(r),n[i-1]instanceof bs&&e.push(rp(n[i-1].sourceSpan.end)))}return n[n.length-1]instanceof bs&&e.push(rp(n[n.length-1].sourceSpan.end)),{messageParts:e,placeHolders:t}}function rp(n){return new br("",new se(n,n))}var Ag="ngI18nClosureMode",Kw="i18n_",Yw="I18N_EXP_",Ig="\uFFFD",Zw="MSG_";function kg(n){return`${Zw}${n}`.toUpperCase()}function Jw(n){return new vt(n.name,void 0,_n,void 0,n.sourceSpan)}function ey(n){let e=n.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",t=new Map,i=new Map,r=new Map,s=new Map;for(let l of n.units)for(let c of l.ops())if(c.kind===g.ExtractedAttribute&&c.i18nContext!==null){let d=t.get(c.i18nContext)??[];d.push(c),t.set(c.i18nContext,d)}else if(c.kind===g.I18nAttributes)i.set(c.target,c);else if(c.kind===g.I18nExpression&&c.usage===Qs.I18nAttribute){let d=r.get(c.target)??[];d.push(c),r.set(c.target,d)}else c.kind===g.I18nMessage&&s.set(c.xref,c);let o=new Map,a=new Map;for(let l of n.units)for(let c of l.create)if(c.kind===g.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:d,statements:_}=l_(n,e,s,c);if(c.i18nBlock!==null){let x=n.addConst(d,_);a.set(c.i18nBlock,x)}else{n.constsInitializers.push(..._),o.set(c.i18nContext,d);let x=t.get(c.i18nContext);if(x!==void 0)for(let w of x)w.expression=d.clone()}}O.remove(c)}for(let l of n.units)for(let c of l.create)if(tr(c)){let d=i.get(c.xref);if(d===void 0)continue;let _=r.get(c.xref);if(_===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let x=new Set;_=_.filter(C=>{let T=x.has(C.name);return x.add(C.name),!T});let w=_.flatMap(C=>{let T=o.get(C.context);if(T===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[E(C.name),T]});d.i18nAttributesConfig=n.addConst(new bn(w))}for(let l of n.units)for(let c of l.create)if(c.kind===g.I18nStart){let d=a.get(c.root);if(d===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");c.messageIndex=d}}function l_(n,e,t,i){let r=[],s=new Map;for(let c of i.subMessages){let d=t.get(c),{mainVar:_,statements:x}=l_(n,e,t,d);r.push(...x);let w=s.get(d.messagePlaceholder)??[];w.push(_),s.set(d.messagePlaceholder,w)}ty(i,s),i.params=new Map([...i.params.entries()].sort());let o=ue(n.pool.uniqueName(Kw)),a=ry(n.pool,i.message.id,e,n.i18nUseExternalIds),l;if(i.needsPostprocessing||i.postprocessingParams.size>0){let c=Object.fromEntries([...i.postprocessingParams.entries()].sort()),d=Kd(c,!1),_=[];i.postprocessingParams.size>0&&_.push(id(d,!0)),l=x=>q(b.i18nPostprocess).callFn([x,..._])}return r.push(...ny(i.message,o,a,i.params,l)),{mainVar:o,statements:r}}function ty(n,e){for(let[t,i]of e)i.length===1?n.params.set(t,i[0]):(n.params.set(t,E(`${Ig}${Yw}${t}${Ig}`)),n.postprocessingParams.set(t,Pe(i)))}function ny(n,e,t,i,r){let s=Object.fromEntries(i),o=[Jw(e),Ic(iy(),$w(e,n,t,s),zw(e,n,Kd(s,!1)))];return r&&o.push(new wn(e.set(r(e)))),o}function iy(){return Ac(ue(Ag)).notIdentical(E("undefined",v1)).and(ue(Ag))}function ry(n,e,t,i){let r,s=t;if(i){let o=kg("EXTERNAL_"),a=n.uniqueName(s);r=`${o}${Mo(e)}$$${a}`}else{let o=kg(s);r=n.uniqueName(o)}return ue(r)}function sy(n){for(let e of n.units){let t=null,i=null,r=new Map,s=new Map,o=new Map;for(let a of e.create)switch(a.kind){case g.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");t=a;break;case g.I18nEnd:t=null;break;case g.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");i=a;break;case g.IcuEnd:i=null;break;case g.Text:if(t!==null)if(r.set(a.xref,t),s.set(a.xref,i),a.icuPlaceholder!==null){let l=FC(n.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);O.replace(a,l),o.set(a.xref,l)}
36else O.remove(a);break}for(let a of e.update)switch(a.kind){case g.InterpolateText:if(!r.has(a.target))continue;let l=r.get(a.target),c=s.get(a.target),d=o.get(a.target),_=c?c.context:l.context,x=c?ra.Postproccessing:ra.Creation,w=[];for(let C=0;C<a.interpolation.expressions.length;C++){let T=a.interpolation.expressions[C];w.push(W1(_,l.xref,l.xref,l.handle,T,d?.xref??null,a.interpolation.i18nPlaceholders[C]??null,x,Qs.I18nText,"",T.sourceSpan??a.sourceSpan))}O.replaceWithMany(a,w),d!==void 0&&(d.strings=a.interpolation.strings);break}}}function oy(n){for(let e of n.units)for(let t of e.create)switch(t.kind){case g.ElementStart:case g.Template:if(!Array.isArray(t.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(t.numSlotsUsed+=t.localRefs.length,t.localRefs.length>0){let i=ay(t.localRefs);t.localRefs=n.addConst(i)}else t.localRefs=null;break}}function ay(n){let e=[];for(let t of n)e.push(E(t.name),E(t.target));return Pe(e)}function ly(n){for(let e of n.units){let t=_t.HTML;for(let i of e.create)i.kind===g.ElementStart&&i.namespace!==t&&(O.insertBefore(IC(i.namespace),i),t=i.namespace)}}function cy(n){let e=[],t=0,i=0,r=0,s=0,o=0,a=null;for(;t<n.length;)switch(n.charCodeAt(t++)){case 40:i++;break;case 41:i--;break;case 39:r===0?r=39:r===39&&n.charCodeAt(t-1)!==92&&(r=0);break;case 34:r===0?r=34:r===34&&n.charCodeAt(t-1)!==92&&(r=0);break;case 58:!a&&i===0&&r===0&&(a=c_(n.substring(o,t-1).trim()),s=t);break;case 59:if(a&&s>0&&i===0&&r===0){let c=n.substring(s,t-1).trim();e.push(a,c),o=t,s=0,a=null}break}if(a&&s){let l=n.slice(s).trim();e.push(a,l)}return e}function c_(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function uy(n){let e=new Map;for(let t of n.units)for(let i of t.create)tr(i)&&e.set(i.xref,i);for(let t of n.units)for(let i of t.create)if(i.kind===g.ExtractedAttribute&&i.bindingKind===j.Attribute&&q1(i.expression)){let r=e.get(i.target);if(r!==void 0&&r.kind===g.Template&&r.templateKind===qt.Structural)continue;if(i.name==="style"){let s=cy(i.expression.value);for(let o=0;o<s.length-1;o+=2)O.insertBefore(gn(i.target,j.StyleProperty,null,s[o],E(s[o+1]),null,null,Ne.STYLE),i);O.remove(i)}else if(i.name==="class"){let s=i.expression.value.trim().split(/\s+/g);for(let o of s)O.insertBefore(gn(i.target,j.ClassName,null,o,null,null,null,Ne.NONE),i);O.remove(i)}}}function py(n){bo(n.root,n.componentName,{index:0},n.compatibility===Qt.TemplateDefinitionBuilder)}function bo(n,e,t,i){n.fnName===null&&(n.fnName=n.job.pool.uniqueName(Mo(`${e}_${n.job.fnSuffix}`),!1));let r=new Map;for(let s of n.ops())switch(s.kind){case g.Property:case g.HostProperty:s.isAnimationTrigger&&(s.name="@"+s.name);break;case g.Listener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";s.isAnimationListener&&(s.name=`@${s.name}.${s.animationPhase}`,o="animation"),s.hostListener?s.handlerFnName=`${e}_${o}${s.name}_HostBindingHandler`:s.handlerFnName=`${n.fnName}_${s.tag.replace("-","_")}_${o}${s.name}_${s.targetSlot.slot}_listener`,s.handlerFnName=Mo(s.handlerFnName);break;case g.TwoWayListener:if(s.handlerFnName!==null)break;if(s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");s.handlerFnName=Mo(`${n.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case g.Variable:r.set(s.xref,dy(n,s.variable,t));break;case g.RepeaterCreate:if(!(n instanceof Kn))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.emptyView!==null){let c=n.job.views.get(s.emptyView);bo(c,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,t,i)}bo(n.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,t,i);break;case g.Projection:if(!(n instanceof Kn))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.fallbackView!==null){let c=n.job.views.get(s.fallbackView);bo(c,`${e}_ProjectionFallback_${s.handle.slot}`,t,i)}break;case g.Template:if(!(n instanceof Kn))throw new Error("AssertionError: must be compiling a component");let a=n.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let l=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;bo(a,`${e}${l}_${s.handle.slot}`,t,i);break;case g.StyleProp:s.name=hy(s.name),i&&(s.name=Og(s.name));break;case g.ClassProp:i&&(s.name=Og(s.name));break}for(let s of n.ops())St(s,o=>{if(!(!(o instanceof Ci)||o.name!==null)){if(!r.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=r.get(o.xref)}})}function dy(n,e,t){if(e.name===null)switch(e.kind){case rt.Context:e.name=`ctx_r${t.index++}`;break;case rt.Identifier:if(n.job.compatibility===Qt.TemplateDefinitionBuilder){let i=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${i}r${++t.index}`}else e.name=`${e.identifier}_i${t.index++}`;break;default:e.name=`_r${++t.index}`;break}return e.name}function hy(n){return n.startsWith("--")?n:c_(n)}function Og(n){let e=n.indexOf("!important");return e>-1?n.substring(0,e):n}function my(n){for(let e of n.units){for(let t of e.create)(t.kind===g.Listener||t.kind===g.TwoWayListener)&&Dg(t.handlerOps);Dg(e.update)}}function Dg(n){for(let e of n){if(e.kind!==g.Statement||!(e.statement instanceof wn)||!(e.statement.expr instanceof tc))continue;let t=e.statement.expr.steps,i=!0;for(let r=e.next;r.kind!==g.ListEnd&&i;r=r.next)St(r,(s,o)=>
36{if(!ti(s))return s;if(i&&!(o&ye.InChildOperation))switch(s.kind){case z.NextContext:s.steps+=t,O.remove(e),i=!1;break;case z.GetCurrentView:case z.Reference:case z.ContextLetReference:i=!1;break}})}}var fy="ng-container";function gy(n){for(let e of n.units){let t=new Set;for(let i of e.create)i.kind===g.ElementStart&&i.tag===fy&&(i.kind=g.ContainerStart,t.add(i.xref)),i.kind===g.ElementEnd&&t.has(i.xref)&&(i.kind=g.ContainerEnd)}}function _y(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an element-like target.");return t}function vy(n){let e=new Map;for(let t of n.units)for(let i of t.create)tr(i)&&e.set(i.xref,i);for(let t of n.units)for(let i of t.create)(i.kind===g.ElementStart||i.kind===g.ContainerStart)&&i.nonBindable&&O.insertAfter(PC(i.xref),i),(i.kind===g.ElementEnd||i.kind===g.ContainerEnd)&&_y(e,i.xref).nonBindable&&O.insertBefore(AC(i.xref),i)}function Sy(n){for(let e of n.units)for(let t of e.ops())Ze(t,i=>{if(!(i instanceof be)||i.operator!==W.NullishCoalesce)return i;let r=new On(i.lhs.clone(),n.allocateXrefId()),s=new Ti(r.xref);return new bi(new be(W.And,new be(W.NotIdentical,r,Bo),new be(W.NotIdentical,s,new dt(void 0))),s.clone(),i.rhs)},ye.None)}function mi(n){return e=>e.kind===n}function Io(n,e){return t=>t.kind===n&&e===t.expression instanceof qe}function xy(n){return n.kind===g.Listener&&!(n.hostListener&&n.isAnimationListener)||n.kind===g.TwoWayListener}function Cy(n){return(n.kind===g.Property||n.kind===g.TwoWayProperty)&&!(n.expression instanceof qe)}var by=[{test:n=>n.kind===g.Listener&&n.hostListener&&n.isAnimationListener},{test:xy}],wy=[{test:mi(g.StyleMap),transform:xc},{test:mi(g.ClassMap),transform:xc},{test:mi(g.StyleProp)},{test:mi(g.ClassProp)},{test:Io(g.Attribute,!0)},{test:Io(g.Property,!0)},{test:Cy},{test:Io(g.Attribute,!1)}],yy=[{test:Io(g.HostProperty,!0)},{test:Io(g.HostProperty,!1)},{test:mi(g.Attribute)},{test:mi(g.StyleMap),transform:xc},{test:mi(g.ClassMap),transform:xc},{test:mi(g.StyleProp)},{test:mi(g.ClassProp)}],Ng=new Set([g.Listener,g.TwoWayListener,g.StyleMap,g.ClassMap,g.StyleProp,g.ClassProp,g.Property,g.TwoWayProperty,g.HostProperty,g.Attribute]);function Ey(n){for(let e of n.units){Lg(e.create,by);let t=e.job.kind===H.Host?yy:wy;Lg(e.update,t)}}function Lg(n,e){let t=[],i=null;for(let r of n){let s=Zl(r)?r.target:null;(!Ng.has(r.kind)||s!==i&&i!==null&&s!==null)&&(O.insertBefore(Bg(t,e),r),t=[],i=null),Ng.has(r.kind)&&(t.push(r),O.remove(r),i=s??i)}n.push(Bg(t,e))}function Bg(n,e){let t=Array.from(e,()=>new Array);for(let i of n){let r=e.findIndex(s=>s.test(i));t[r].push(i)}return t.flatMap((i,r)=>{let s=e[r].transform;return s?s(i):i})}function xc(n){return n.slice(n.length-1)}function Ty(n){for(let e of n.units){let t=uh(e);
36for(let i of e.ops())switch(i.kind){case g.Binding:let r=Py(t,i.target);My(i.name)&&r.kind===g.Projection&&O.remove(i);break}}}function My(n){return n.toLowerCase()==="select"}function Py(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an slottable target.");return t}function Ay(n){for(let e of n.units)Iy(e)}function Iy(n){for(let e of n.update)St(e,(t,i)=>{if(ti(t)&&t.kind===z.PipeBinding){if(i&ye.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(n.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");ky(n,e.target,t)}else n.create.push(Q1(t.target,t.targetSlot,t.name))}})}function ky(n,e,t){for(let i=n.create.head.next;i.kind!==g.ListEnd;i=i.next){if(!Ks(i)||i.xref!==e)continue;for(;i.next.kind===g.Pipe;)i=i.next;let r=Q1(t.target,t.targetSlot,t.name);O.insertBefore(r,i.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${t.name}`)}function Oy(n){for(let e of n.units)for(let t of e.update)Ze(t,i=>!(i instanceof Hr)||i.args.length<=4?i:new rc(i.target,i.targetSlot,i.name,Pe(i.args),i.args.length),ye.None)}function Dy(n){u_(n.root,0)}function u_(n,e){let t=null;for(let i of n.create)switch(i.kind){case g.I18nStart:i.subTemplateIndex=e===0?null:e,t=i;break;case g.I18nEnd:t.subTemplateIndex===null&&(e=0),t=null;break;case g.Template:e=sp(n.job.views.get(i.xref),t,i.i18nPlaceholder,e);break;case g.RepeaterCreate:let r=n.job.views.get(i.xref);e=sp(r,t,i.i18nPlaceholder,e),i.emptyView!==null&&(e=sp(n.job.views.get(i.emptyView),t,i.emptyI18nPlaceholder,e));break}return e}function sp(n,e,t,i){if(t!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");i++,Ny(n,e)}return u_(n,i)}function Ny(n,e){if(n.create.head.next?.kind!==g.I18nStart){let t=n.job.allocateXrefId();O.insertAfter(Bc(t,e.message,e.root,null),n.create.head),O.insertBefore(Rc(t,null),n.create.tail)}}function Ly(n){for(let e of n.units)for(let t of e.ops())St(t,i=>{if(!(i instanceof Fr)||i.body===null)return;let r=new bd(i.args.length);i.fn=n.pool.getSharedConstant(r,i.body),i.body=null})}var bd=class extends ws{constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Hs?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,t){let i=[];for(let s=0;s<this.numArgs;s++)i.push(new st("a"+s));let r=V(t,s=>s instanceof Hs?ue("a"+s.index):s,ye.None);return new vt(e,new Ir(i,r),void 0,ut.Final)}};function By(n){for(let e of n.units)for(let t of e.update)Ze(t,(i,r)=>r&ye.InChildOperation?i:i instanceof bn?Ry(i):i instanceof In?Fy(i):i,ye.None)}function Ry(n){let e=[],t=[];for(let i of n.entries)if(i.isConstant())e.push(i);else{let r=t.length;t.push(i),e.push(new Hs(r))}return new Fr(Pe(e),t)}function Fy(n){let e=[],t=[];for(let i of n.entries)if(i.value.isConstant())e.push(i);else{let r=t.length;t.push(i.value),e.push(new As(i.key,new Hs(r),i.quoted))}return new Fr(yt(e),t)}function Hy(n,e,t,i,r){return Fc(b.element,n,e,t,i,r)}function Vy(n,e,t,i,r){return Fc(b.elementStart,n,e,t,i,r)}function Fc(n,e,t,i,r,s){let o=[E(e)];return t!==null&&o.push(E(t)),r!==null?o.push(E(i),E(r)):i!==null&&o.push(E(i)),ge(n,o,s)}function Uy(n){return ge(b.elementEnd,[],n)}function Gy(n,e,t,i){return Fc(b.elementContainerStart,n,null,e,t,i)}function $y(n,e,t,i){return Fc(b.elementContainer,n,null,e,t,i)}function Wy(){return ge(b.elementContainerEnd,[],null)}function qy(n,e,t,i,r,s,o,a){let l=[E(n),e,E(t),E(i),E(r),E(s)];for(o!==null&&(l.push(E(o)),l.push(q(b.templateRefExtractor)));l[l.length-1].isEquivalent(Bo);)l.pop();return ge(b.templateCreate,l,a)}function zy(){return ge(b.disableBindings,[],null)}function jy(){return ge(b.enableBindings,[],null)}function Qy(n,e,t,i,r){let s=[E(n),e];return t!==null&&(s.push(E(!1)),s.push(q(t))),ge(i?b.syntheticHostListener:b.listener,s,r)}function Rg(n,e){return q(b.twoWayBindingSet).callFn([n,e])}function Xy(n,e,t){return ge(b.twoWayListener,[E(n),e],t)}function Ky(n,e){return ge(b.pipe,[E(n),E(e)],null)}function Yy(){return ge(b.namespaceHTML,[],null)}function Zy(){return ge(b.namespaceSVG,[],null)}function Jy(){return ge(b.namespaceMathML,[],null)}function eE(n,e){return ge(b.advance,n>1?[E(n)]:[],e)}function tE(n){return q(b.reference).callFn([E(n)])}function nE(n){return q(b.nextContext).callFn(n===1?[]:[E(n)])}function iE(){return q(b.getCurrentView).callFn([])}function rE(n){return q(b.restoreView).callFn([n])}function sE(n){return q(b.resetView).callFn([n])}function oE(n,e,t){let i=[E(n,null)];return e!==""&&i.push(E(e)),ge(b.text,i,t)}function aE(n,e,t,i,r,s,o,a,l,c){let d=[E(n),E(e),t??E(null),E(i),E(r),E(s),o??E(null),a??E(null),l?q(b.deferEnableTimerScheduling):E(null)],_;
36for(;(_=d[d.length-1])!==null&&_ instanceof dt&&_.value===null;)d.pop();return ge(b.defer,d,c)}var lE=new Map([[Be.Idle,[b.deferOnIdle,b.deferPrefetchOnIdle]],[Be.Immediate,[b.deferOnImmediate,b.deferPrefetchOnImmediate]],[Be.Timer,[b.deferOnTimer,b.deferPrefetchOnTimer]],[Be.Hover,[b.deferOnHover,b.deferPrefetchOnHover]],[Be.Interaction,[b.deferOnInteraction,b.deferPrefetchOnInteraction]],[Be.Viewport,[b.deferOnViewport,b.deferPrefetchOnViewport]]]);function cE(n,e,t,i){let r=lE.get(n);if(r===void 0)throw new Error(`Unable to determine instruction for trigger ${n}`);let s=t?r[1]:r[0];return ge(s,e.map(o=>E(o)),i)}function uE(n){return ge(b.projectionDef,n?[n]:[],null)}function pE(n,e,t,i,r,s,o){let a=[E(n)];return(e!==0||t!==null||i!==null)&&(a.push(E(e)),t!==null&&a.push(t),i!==null&&(t===null&&a.push(E(null)),a.push(ue(i),E(r),E(s)))),ge(b.projection,a,o)}function dE(n,e,t,i){let r=[E(n),E(e)];return t!==null&&r.push(E(t)),ge(b.i18nStart,r,i)}function hE(n,e,t,i,r,s,o,a,l,c,d,_,x,w){let C=[E(n),ue(e),E(t),E(i),E(r),E(s),o];return(a||l!==null)&&(C.push(E(a)),l!==null&&(C.push(ue(l),E(c),E(d)),(_!==null||x!==null)&&C.push(E(_)),x!==null&&C.push(E(x)))),ge(b.repeaterCreate,C,w)}function mE(n,e){return ge(b.repeater,[n],e)}function fE(n,e,t){return ge(n?b.deferPrefetchWhen:b.deferWhen,[e],t)}function gE(n,e){return ge(b.declareLet,[E(n)],e)}function _E(n,e){return q(b.storeLet).callFn([n],e)}function vE(n){return q(b.readContextLet).callFn([E(n)])}function SE(n,e,t,i){let r=[E(n),E(e)];return t&&r.push(E(t)),ge(b.i18n,r,i)}function xE(n){return ge(b.i18nEnd,[],n)}function CE(n,e){let t=[E(n),E(e)];return ge(b.i18nAttributes,t,null)}function bE(n,e,t,i){let r=[E(n),e];return t!==null&&r.push(t),ge(b.property,r,i)}function wE(n,e,t,i){let r=[E(n),e];return t!==null&&r.push(t),ge(b.twoWayProperty,r,i)}function yE(n,e,t,i){let r=[E(n),e];return(t!==null||i!==null)&&r.push(t??E(null)),i!==null&&r.push(E(i)),ge(b.attribute,r,null)}function EE(n,e,t,i){let r=[E(n),e];return t!==null&&r.push(E(t)),ge(b.styleProp,r,i)}function TE(n,e,t){return ge(b.classProp,[E(n),e],t)}function ME(n,e){return ge(b.styleMap,[n],e)}function PE(n,e){return ge(b.classMap,[n],e)}var Fg=[b.pipeBind1,b.pipeBind2,b.pipeBind3,b.pipeBind4];function AE(n,e,t){if(t.length<1||t.length>Fg.length)throw new Error("pipeBind() argument count out of bounds");let i=Fg[t.length-1];return q(i).callFn([E(n),E(e),...t])}function IE(n,e,t){return q(b.pipeBindV).callFn([E(n),E(e),t])}function kE(n,e,t){let i=Ys(n,e);return Zs($E,[],i,[],t)}function OE(n,e){return ge(b.i18nExp,[n],e)}function DE(n,e){return ge(b.i18nApply,[E(n)],e)}function NE(n,e,t,i,r){let s=Ys(e,t),o=[];return i!==null&&o.push(i),Zs(WE,[E(n)],s,o,r)}function LE(n,e,t,i,r){let s=Ys(e,t),o=[];return i!==null&&o.push(i),Zs(zE,[E(n)],s,o,r)}function BE(n,e,t,i,r){let s=Ys(e,t),o=[];return i!==null&&o.push(E(i)),Zs(qE,[E(n)],s,o,r)}function RE(n,e,t){let i=Ys(n,e);return Zs(jE,[],i,[],t)}function FE(n,e,t){let i=Ys(n,e);return Zs(QE,[],i,[],t)}function HE(n,e,t,i){let r=[E(n),e];return t!==null&&r.push(t),ge(b.hostProperty,r,i)}function VE(n,e,t){return ge(b.syntheticHostProperty,[E(n),e],t)}function UE(n,e,t){return p_(XE,[E(n),e],t,[],null)}function Ys(n,e){if(n.length<1||e.length!==n.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let t=[];if(e.length===1&&n[0]===""&&n[1]==="")t.push(e[0]);else{let i;for(i=0;i<e.length;i++)t.push(E(n[i]),e[i]);t.push(E(n[i]))}return t}function ge(n,e,t){let i=q(n).callFn(e,t);return ei(new wn(i,t))}function GE(n,e,t){let i=[n];return e!==null&&i.push(e),ge(b.conditional,i,t)}var $E={constant:[b.textInterpolate,b.textInterpolate1,b.textInterpolate2,b.textInterpolate3,b.textInterpolate4,b.textInterpolate5,b.textInterpolate6,b.textInterpolate7,b.textInterpolate8],variable:b.textInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},WE={constant:[b.propertyInterpolate,b.propertyInterpolate1,b.propertyInterpolate2,b.propertyInterpolate3,b.propertyInterpolate4,b.propertyInterpolate5,b.propertyInterpolate6,b.propertyInterpolate7,b.propertyInterpolate8],variable:b.propertyInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},qE={constant:[b.styleProp,b.stylePropInterpolate1,b.stylePropInterpolate2,b.stylePropInterpolate3,b.stylePropInterpolate4,b.stylePropInterpolate5,b.stylePropInterpolate6,b.stylePropInterpolate7,b.stylePropInterpolate8],variable:b.stylePropInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},zE={constant:[b.attribute,b.attributeInterpolate1,b.attributeInterpolate2,b.attributeInterpolate3,b.attributeInterpolate4,b.attributeInterpolate5,b.attributeInterpolate6,b.attributeInterpolate7,b.attributeInterpolate8],variable:b.attributeInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},jE={constant:[b.styleMap,b.styleMapInterpolate1,b.styleMapInterpolate2,b.styleMapInterpolate3,b.styleMapInterpolate4,b.styleMapInterpolate5,b.styleMapInterpolate6,b.styleMapInterpolate7,b.styleMapInterpolate8],variable:b.styleMapInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},QE={constant:[b.classMap,b.classMapInterpolate1,b.classMapInterpolate2,b.classMapInterpolate3,b.classMapInterpolate4,b.classMapInterpolate5,b.classMapInterpolate6,b.classMapInterpolate7,b.classMapInterpolate8],variable:b.classMapInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},XE={constant:[b.pureFunction0,b.pureFunction1,b.pureFunction2,b.pureFunction3,b.pureFunction4,b.pureFunction5,b.pureFunction6,b.pureFunction7,b.pureFunction8],variable:b.pureFunctionV,mapping:n=>n};function p_(n,e,t,i,r){let s=n.mapping(t.length);if(s<n.constant.length)return q(n.constant[s]).callFn([...e,...t,...i],r);if(n.variable!==null)return q(n.variable).callFn([...e,Pe(t),...i],r);throw new Error("AssertionError: unable to call variadic function")}function Zs(n,e,t,i,r){return ei(p_(n,e,t,i,r).toStmt())}var KE=new Map([["window",b.resolveWindow],["document",b.resolveDocument],["body",b.resolveBody]]);function YE(n){for(let e of n.units)ZE(e,e.create),d_(e,e.update)}function ZE(n,e){for(let t of e)switch(Ze(t,h_,ye.None),t.kind){case g.Text:O.replace(t,oE(t.handle.slot,t.initialValue,t.sourceSpan));break;case g.ElementStart:O.replace(t,Vy(t.handle.slot,t.tag,t.attributes,t.localRefs,t.startSourceSpan));break;case g.Element:O.replace(t,Hy(t.handle.slot,t.tag,t.attributes,t.localRefs,t.wholeSourceSpan));break;case g.ElementEnd:O.replace(t,Uy(t.sourceSpan));break;case g.ContainerStart:O.replace(t,Gy(t.handle.slot,t.attributes,t.localRefs,t.startSourceSpan));break;case g.Container:O.replace(t,$y(t.handle.slot,t.attributes,t.localRefs,t.wholeSourceSpan));break;case g.ContainerEnd:O.replace(t,Wy());break;case g.I18nStart:O.replace(t,dE(t.handle.slot,t.messageIndex,t.subTemplateIndex,t.sourceSpan));break;case g.I18nEnd:O.replace(t,xE(t.sourceSpan));break;case g.I18n:O.replace(t,SE(t.handle.slot,t.messageIndex,t.subTemplateIndex,t.sourceSpan));break;case g.I18nAttributes:if(t.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");O.replace(t,CE(t.handle.slot,t.i18nAttributesConfig));break;case g.Template:if(!(n instanceof Kn))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(t.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let i=n.job.views.get(t.xref);O.replace(t,qy(t.handle.slot,ue(i.fnName),i.decls,i.vars,t.tag,t.attributes,t.localRefs,t.startSourceSpan));break;case g.DisableBindings:O.replace(t,zy());break;case g.EnableBindings:O.replace(t,jy());break;case g.Pipe:O.replace(t,Ky(t.handle.slot,t.name));break;
36case g.DeclareLet:O.replace(t,gE(t.handle.slot,t.sourceSpan));break;case g.Listener:let r=Hg(n,t.handlerFnName,t.handlerOps,t.consumesDollarEvent),s=t.eventTarget?KE.get(t.eventTarget):null;if(s===void 0)throw new Error(`Unexpected global target '${t.eventTarget}' defined for '${t.name}' event. Supported list of global targets: window,document,body.`);O.replace(t,Qy(t.name,r,s,t.hostListener&&t.isAnimationListener,t.sourceSpan));break;case g.TwoWayListener:O.replace(t,Xy(t.name,Hg(n,t.handlerFnName,t.handlerOps,!0),t.sourceSpan));break;case g.Variable:if(t.variable.name===null)throw new Error(`AssertionError: unnamed variable ${t.xref}`);O.replace(t,ei(new vt(t.variable.name,t.initializer,void 0,ut.Final)));break;case g.Namespace:switch(t.active){case _t.HTML:O.replace(t,Yy());break;case _t.SVG:O.replace(t,Zy());break;case _t.Math:O.replace(t,Jy());break}break;case g.Defer:let o=!!t.loadingMinimumTime||!!t.loadingAfterTime||!!t.placeholderMinimumTime;O.replace(t,aE(t.handle.slot,t.mainSlot.slot,t.resolverFn,t.loadingSlot?.slot??null,t.placeholderSlot?.slot??null,t.errorSlot?.slot??null,t.loadingConfig,t.placeholderConfig,o,t.sourceSpan));break;case g.DeferOn:let a=[];switch(t.trigger.kind){case Be.Idle:case Be.Immediate:break;case Be.Timer:a=[t.trigger.delay];break;case Be.Interaction:case Be.Hover:case Be.Viewport:if(t.trigger.targetSlot?.slot==null||t.trigger.targetSlotViewSteps===null)throw new Error(`Slot or view steps not set in trigger reification for trigger kind ${t.trigger.kind}`);a=[t.trigger.targetSlot.slot],t.trigger.targetSlotViewSteps!==0&&a.push(t.trigger.targetSlotViewSteps);break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${t.trigger.kind}`)}O.replace(t,cE(t.trigger.kind,a,t.prefetch,t.sourceSpan));break;case g.ProjectionDef:O.replace(t,uE(t.def));break;case g.Projection:if(t.handle.slot===null)throw new Error("No slot was assigned for project instruction");let l=null,c=null,d=null;if(t.fallbackView!==null){if(!(n instanceof Kn))throw new Error("AssertionError: must be compiling a component");let T=n.job.views.get(t.fallbackView);if(T===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(T.fnName===null||T.decls===null||T.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");l=T.fnName,c=T.decls,d=T.vars}O.replace(t,pE(t.handle.slot,t.projectionSlotIndex,t.attributes,l,c,d,t.sourceSpan));break;case g.RepeaterCreate:if(t.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(n instanceof Kn))throw new Error("AssertionError: must be compiling a component");let _=n.job.views.get(t.xref);if(_.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let x=null,w=null,C=null;if(t.emptyView!==null){let T=n.job.views.get(t.emptyView);if(T===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(T.fnName===null||T.decls===null||T.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");x=T.fnName,w=T.decls,C=T.vars}O.replace(t,hE(t.handle.slot,_.fnName,t.decls,t.vars,t.tag,t.attributes,t.trackByFn,t.usesComponentInstance,x,w,C,t.emptyTag,t.emptyAttributes,t.wholeSourceSpan));break;case g.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${g[t.kind]}`)}}function d_(n,e){for(let t of e)switch(Ze(t,h_,ye.None),t.kind){case g.Advance:O.replace(t,eE(t.delta,t.sourceSpan));break;case g.Property:t.expression instanceof qe?O.replace(t,NE(t.name,t.expression.strings,t.expression.expressions,t.sanitizer,t.sourceSpan)):O.replace(t,bE(t.name,t.expression,t.sanitizer,t.sourceSpan));break;case g.TwoWayProperty:O.replace(t,wE(t.name,t.expression,t.sanitizer,t.sourceSpan));break;case g.StyleProp:t.expression instanceof qe?O.replace(t,BE(t.name,t.expression.strings,t.expression.expressions,t.unit,t.sourceSpan)):O.replace(t,EE(t.name,t.expression,t.unit,t.sourceSpan));break;case g.ClassProp:O.replace(t,TE(t.name,t.expression,t.sourceSpan));break;case g.StyleMap:t.expression instanceof qe?O.replace(t,RE(t.expression.strings,t.expression.expressions,t.sourceSpan)):O.replace(t,ME(t.expression,t.sourceSpan));break;case g.ClassMap:t.expression instanceof qe?O.replace(t,FE(t.expression.strings,t.expression.expressions,t.sourceSpan)):O.replace(t,PE(t.expression,t.sourceSpan));break;case g.I18nExpression:O.replace(t,OE(t.expression,t.sourceSpan));break;case g.I18nApply:O.replace(t,DE(t.handle.slot,t.sourceSpan));break;case g.InterpolateText:O.replace(t,kE(t.interpolation.strings,t.interpolation.expressions,t.sourceSpan));break;case g.Attribute:t.expression instanceof qe?O.replace(t,LE(t.name,t.expression.strings,t.expression.expressions,t.sanitizer,t.sourceSpan)):O.replace(t,yE(t.name,t.expression,t.sanitizer,t.namespace));break;case g.HostProperty:if(t.expression instanceof qe)throw new Error("not yet handled");t.isAnimationTrigger?O.replace(t,VE(t.name,t.expression,t.sourceSpan)):O.replace(t,HE(t.name,t.expression,t.sanitizer,t.sourceSpan));break;case g.Variable:if(t.variable.name===null)throw new Error(`AssertionError: unnamed variable ${t.xref}`);O.replace(t,ei(new vt(t.variable.name,t.initializer,void 0,ut.Final)));break;case g.Conditional:if(t.processed===null)throw new Error("Conditional test was not set.");O.replace(t,GE(t.processed,t.contextValue,t.sourceSpan));break;case g.Repeater:O.replace(t,mE(t.collection,t.sourceSpan));break;case g.DeferWhen:O.replace(t,fE(t.prefetch,t.expr,t.sourceSpan));break;case g.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${t.declaredName}`);case g.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${g[t.kind]}`)}}function h_(n){if(!ti(n))return n;switch(n.kind){case z.NextContext:return nE(n.steps);case z.Reference:return tE(n.targetSlot.slot+1+n.offset);case z.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${n.name}`);case z.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case z.RestoreView:if(typeof n.view=="number")throw new Error("AssertionError: unresolved RestoreView");return rE(n.view);case z.ResetView:return sE(n.expr);case z.GetCurrentView:return iE();case z.ReadVariable:if(n.name===null)throw new Error(`Read of unnamed variable ${n.xref}`);return ue(n.name);case z.ReadTemporaryExpr:if(n.name===null)throw new Error(`Read of unnamed temporary ${n.xref}`);return ue(n.name);case z.AssignTemporaryExpr:if(n.name===null)throw new Error(`Assign of unnamed temporary ${n.xref}`);return ue(n.name).set(n.expr);case z.PureFunctionExpr:if(n.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");
36return UE(n.varOffset,n.fn,n.args);case z.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case z.PipeBinding:return AE(n.targetSlot.slot,n.varOffset,n.args);case z.PipeBindingVariadic:return IE(n.targetSlot.slot,n.varOffset,n.args);case z.SlotLiteralExpr:return E(n.slot.slot);case z.ContextLetReference:return vE(n.targetSlot.slot);case z.StoreLet:return _E(n.value,n.sourceSpan);default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${z[n.kind]}`)}}function Hg(n,e,t,i){d_(n,t);let r=[];for(let o of t){if(o.kind!==g.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${g[o.kind]}`);r.push(o.statement)}let s=[];return i&&s.push(new st("$event")),zs(s,r,void 0,void 0,e)}function JE(n){for(let e of n.units)for(let t of e.update)switch(t.kind){case g.Attribute:case g.Binding:case g.ClassProp:case g.ClassMap:case g.Property:case g.StyleProp:case g.StyleMap:t.expression instanceof aa&&O.remove(t);break}}function eT(n){for(let e of n.units)for(let t of e.create)switch(t.kind){case g.I18nContext:O.remove(t);break;case g.I18nStart:t.context=null;break}}function tT(n){for(let e of n.units){let t=new Set;for(let i of e.update)switch(i.kind){case g.I18nExpression:t.add(i.i18nOwner)}for(let i of e.create)switch(i.kind){case g.I18nAttributes:if(t.has(i.xref))continue;O.remove(i)}}}function nT(n){for(let e of n.units)wd(e,e.create),wd(e,e.update)}function wd(n,e){let t=new Map;t.set(n.xref,ue("ctx"));for(let i of e)switch(i.kind){case g.Variable:switch(i.variable.kind){case rt.Context:t.set(i.variable.view,new Ci(i.xref));break}break;case g.Listener:case g.TwoWayListener:wd(n,i.handlerOps);break}n===n.job.root&&t.set(n.xref,ue("ctx"));for(let i of e)Ze(i,r=>{if(r instanceof Ei){if(!t.has(r.view))throw new Error(`No context found for reference to view ${r.view} from view ${n.xref}`);return t.get(r.view)}else return r},ye.None)}function iT(n){for(let e of n.units)Vg(e.create),Vg(e.update)}function Vg(n){for(let e of n)(e.kind===g.Listener||e.kind===g.TwoWayListener)&&Ze(e,t=>t instanceof ct&&t.name==="$event"?(e.kind===g.Listener&&(e.consumesDollarEvent=!0),new Cn(t.name)):t,ye.InChildOperation)}function rT(n){let e=new Map,t=new Map;for(let i of n.units)for(let r of i.create)switch(r.kind){case g.I18nContext:e.set(r.xref,r);break;case g.ElementStart:t.set(r.xref,r);break}$i(n,n.root,e,t)}function $i(n,e,t,i,r){let s=null,o=new Map;for(let a of e.create)switch(a.kind){case g.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");s={i18nBlock:a,i18nContext:t.get(a.context)};break;case g.I18nEnd:s=null;break;case g.ElementStart:if(a.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Ug(a,s.i18nContext,s.i18nBlock,r),r&&a.i18nPlaceholder.closeName&&o.set(a.xref,r),r=void 0}break;case g.ElementEnd:let l=i.get(a.xref);if(l&&l.i18nPlaceholder!==void 0){if(s===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Gg(l,s.i18nContext,s.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case g.Projection:if(a.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Ug(a,s.i18nContext,s.i18nBlock,r),Gg(a,s.i18nContext,s.i18nBlock,r),r=void 0}break;case g.Template:let c=n.views.get(a.xref);if(a.i18nPlaceholder===void 0)$i(n,c,t,i);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===qt.Structural?$i(n,c,t,i,a):(op(n,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,r),$i(n,c,t,i),ap(n,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,r),r=void 0)}break;case g.RepeaterCreate:if(r!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let d=a.handle.slot+1,_=n.views.get(a.xref);if(a.i18nPlaceholder===void 0)$i(n,_,t,i);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");op(n,_,d,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,r),$i(n,_,t,i),ap(n,_,d,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,r),r=void 0}if(a.emptyView!==null){let x=a.handle.slot+2,w=n.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)$i(n,w,t,i);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");op(n,w,x,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,r),$i(n,w,t,i),ap(n,w,x,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,r),r=void 0}}break}}function Ug(n,e,t,i){let{startName:r,closeName:s}=n.i18nPlaceholder,o=Oe.ElementTag|Oe.OpenTag,a=n.handle.slot;i!==void 0&&(o|=Oe.TemplateTag,a={element:a,template:i.handle.slot}),s||(o|=Oe.CloseTag),qs(e.params,r,a,t.subTemplateIndex,o)}function Gg(n,e,t,i){let{closeName:r}=n.i18nPlaceholder;if(r){let s=Oe.ElementTag|Oe.CloseTag,o=n.handle.slot;i!==void 0&&(s|=Oe.TemplateTag,o={element:o,template:i.handle.slot}),qs(e.params,r,o,t.subTemplateIndex,s)}}function op(n,e,t,i,r,s,o){let{startName:a,closeName:l}=i,c=Oe.TemplateTag|Oe.OpenTag;l||(c|=Oe.CloseTag),o!==void 0&&qs(r.params,a,o.handle.slot,s.subTemplateIndex,c),qs(r.params,a,t,m_(n,s,e),c)}function ap(n,e,t,i,r,s,o){let{closeName:a}=i,l=Oe.TemplateTag|Oe.CloseTag;a&&(qs(r.params,a,t,m_(n,s,e),l),o!==void 0&&qs(r.params,a,o.handle.slot,s.subTemplateIndex,l))}function m_(n,e,t){for(let i of t.create)if(i.kind===g.I18nStart)return i.subTemplateIndex;return e.subTemplateIndex}function qs(n,e,t,i,r){let s=n.get(e)??[];s.push({value:t,subTemplateIndex:i,flags:r}),n.set(e,s)}function sT(n){let e=new Map,t=new Map,i=new Map;for(let o of n.units)for(let a of o.create)switch(a.kind){case g.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case g.I18nContext:t.set(a.xref,a);break;case g.IcuPlaceholder:i.set(a.xref,a);break}let r=new Map,s=o=>o.usage===Qs.I18nText?o.i18nOwner:o.context;
36for(let o of n.units)for(let a of o.update)if(a.kind===g.I18nExpression){let l=r.get(s(a))||0,c=e.get(a.i18nOwner)??null,d={value:l,subTemplateIndex:c,flags:Oe.ExpressionIndex};oT(a,d,t,i),r.set(s(a),l+1)}}function oT(n,e,t,i){if(n.i18nPlaceholder!==null){let r=t.get(n.context),s=n.resolutionTime===ra.Creation?r.params:r.postprocessingParams,o=s.get(n.i18nPlaceholder)||[];o.push(e),s.set(n.i18nPlaceholder,o)}n.icuPlaceholder!==null&&i.get(n.icuPlaceholder)?.expressionPlaceholders.push(e)}function aT(n){for(let e of n.units)yd(e,e.create,null),yd(e,e.update,null)}function yd(n,e,t){let i=new Map,r=new Map;for(let s of e)switch(s.kind){case g.Variable:switch(s.variable.kind){case rt.Identifier:if(s.variable.local){if(r.has(s.variable.identifier))continue;r.set(s.variable.identifier,s.xref)}else if(i.has(s.variable.identifier))continue;i.set(s.variable.identifier,s.xref);break;case rt.Alias:if(i.has(s.variable.identifier))continue;i.set(s.variable.identifier,s.xref);break;case rt.SavedView:t={view:s.variable.view,variable:s.xref};break}break;case g.Listener:case g.TwoWayListener:yd(n,s.handlerOps,t);break}for(let s of e)s.kind==g.Listener||s.kind===g.TwoWayListener||Ze(s,o=>{if(o instanceof ct)return r.has(o.name)?new Ci(r.get(o.name)):i.has(o.name)?new Ci(i.get(o.name)):new jt(new Ei(n.job.root.xref),o.name);if(o instanceof nc&&typeof o.view=="number"){if(t===null||t.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${n.xref}`);return o.view=new Ci(t.variable),o}else return o},ye.None);for(let s of e)St(s,o=>{if(o instanceof ct)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var lT=new Map([[Ne.HTML,b.sanitizeHtml],[Ne.RESOURCE_URL,b.sanitizeResourceUrl],[Ne.SCRIPT,b.sanitizeScript],[Ne.STYLE,b.sanitizeStyle],[Ne.URL,b.sanitizeUrl]]),cT=new Map([[Ne.HTML,b.trustConstantHtml],[Ne.RESOURCE_URL,b.trustConstantResourceUrl]]);function uT(n){for(let e of n.units){let t=uh(e);if(n.kind!==H.Host){for(let i of e.create)if(i.kind===g.ExtractedAttribute){let r=cT.get($g(i.securityContext))??null;i.trustedValueFn=r!==null?q(r):null}}for(let i of e.update)switch(i.kind){case g.Property:case g.Attribute:case g.HostProperty:let r=null;if(Array.isArray(i.securityContext)&&i.securityContext.length===2&&i.securityContext.indexOf(Ne.URL)>-1&&i.securityContext.indexOf(Ne.RESOURCE_URL)>-1?r=b.sanitizeUrlOrResourceUrl:r=lT.get($g(i.securityContext))??null,i.sanitizer=r!==null?q(r):null,i.sanitizer===null){let s=!1;if(n.kind===H.Host||i.kind===g.HostProperty)s=!0;else{let o=t.get(i.target);if(o===void 0||!tr(o))throw Error("Property should have an element-like owner");s=pT(o)}s&&xw(i.name)&&(i.sanitizer=q(b.validateIframeAttribute))}break}}}function pT(n){return n.kind===g.ElementStart&&n.tag?.toLowerCase()==="iframe"}function $g(n){if(Array.isArray(n)){if(n.length>1)throw Error("AssertionError: Ambiguous security context");return n[0]||Ne.NONE}return n}function dT(n){for(let e of n.units)for(let t of e.create)t.kind===g.TwoWayListener&&Ze(t,i=>{if(!(i instanceof ic))return i;let{target:r,value:s}=i;if(r instanceof jt||r instanceof wi)return Rg(r,s).or(r.set(s));if(r instanceof Ci)return Rg(r,s);throw new Error("Unsupported expression in two-way action binding.")},ye.InChildOperation)}function hT(n){for(let e of n.units){e.create.prepend([ji(e.job.allocateXrefId(),{kind:rt.SavedView,name:null,view:e.xref},new Kp,fn.None)]);for(let t of e.create){if(t.kind!==g.Listener&&t.kind!==g.TwoWayListener)continue;let i=e!==n.root;if(!i)for(let r of t.handlerOps)St(r,s=>{(s instanceof Jl||s instanceof oa)&&(i=!0)});i&&mT(e,t)}}}function mT(n,e){e.handlerOps.prepend([ji(n.job.allocateXrefId(),{kind:rt.Context,name:null,view:n.xref},new nc(n.xref),fn.None)]);for(let t of e.handlerOps)t.kind===g.Statement&&t.statement instanceof Ot&&(t.statement.value=new Yp(t.statement.value))}function fT(n){let e=new Map;for(let t of n.units){let i=0;for(let r of t.create)Ks(r)&&(r.handle.slot=i,e.set(r.xref,r.handle.slot),i+=r.numSlotsUsed);t.decls=i}for(let t of n.units)for(let i of t.ops())if(i.kind===g.Template||i.kind===g.RepeaterCreate){let r=n.views.get(i.xref);i.decls=r.decls}}function gT(n){for(let e of n.units)for(let t of e.update)if(t.kind===g.Binding)switch(t.bindingKind){case j.ClassName:if(t.expression instanceof qe)throw new Error("Unexpected interpolation in ClassName binding");O.replace(t,fC(t.target,t.name,t.expression,t.sourceSpan));break;case j.StyleProperty:O.replace(t,mC(t.target,t.name,t.expression,t.unit,t.sourceSpan));break;case j.Property:case j.Template:t.name==="style"?O.replace(t,gC(t.target,t.expression,t.sourceSpan)):t.name==="class"&&O.replace(t,_C(t.target,t.expression,t.sourceSpan));break}}function _T(n){for(let e of n.units)e.create.prepend(Ed(e.create)),e.update.prepend(Ed(e.update))}function Ed(n){let e=0,t=[];for(let i of n){let r=new Map;St(i,(c,d)=>{d&ye.InChildOperation||c instanceof Ti&&r.set(c.xref,c)});let s=0,o=new Set,a=new Set,l=new Map;St(i,(c,d)=>{d&ye.InChildOperation||(c instanceof On?(o.has(c.xref)||(o.add(c.xref),l.set(c.xref,`tmp_${e}_${s++}`)),Wg(l,c)):c instanceof Ti&&(r.get(c.xref)===c&&(a.add(c.xref),s--),Wg(l,c)))}
36),t.push(...Array.from(new Set(l.values())).map(c=>ei(new vt(c)))),e++,(i.kind===g.Listener||i.kind===g.TwoWayListener)&&i.handlerOps.prepend(Ed(i.handlerOps))}return t}function Wg(n,e){let t=n.get(e.xref);if(t===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=t}function vT(n){for(let e of n.units)for(let t of e.create){if(t.kind!==g.RepeaterCreate||t.trackByFn!==null)continue;let i=!1;t.track=V(t.track,o=>{if(o instanceof Hr||o instanceof rc)throw new Error("Illegal State: Pipes are not allowed in this context");return o instanceof ec?(i=!0,ue("this")):o},ye.None);let r,s=[new st("$index"),new st("$item")];i?r=new _i(s,[new Ot(t.track)]):r=Jn(s,t.track),t.trackByFn=n.pool.getSharedFunctionReference(r,"_forTrack")}}function ST(n){for(let e of n.units)for(let t of e.create)t.kind===g.RepeaterCreate&&(t.track instanceof Cn&&t.track.name==="$index"?t.trackByFn=q(b.repeaterTrackByIndex):t.track instanceof Cn&&t.track.name==="$item"?t.trackByFn=q(b.repeaterTrackByIdentity):xT(n.root.xref,t.track)?(t.usesComponentInstance=!0,t.track.receiver.receiver.view===e.xref?t.trackByFn=t.track.receiver:(t.trackByFn=q(b.componentInstance).callFn([]).prop(t.track.receiver.name),t.track=t.trackByFn)):t.track=V(t.track,i=>i instanceof Ei?(t.usesComponentInstance=!0,new ec(i.view)):i,ye.None))}function xT(n,e){if(!(e instanceof wt)||e.args.length===0||e.args.length>2||!(e.receiver instanceof jt&&e.receiver.receiver instanceof Ei)||e.receiver.receiver.view!==n)return!1;let[t,i]=e.args;return!(t instanceof Cn)||t.name!=="$index"?!1:e.args.length===1?!0:!(!(i instanceof Cn)||i.name!=="$item")}function CT(n){for(let e of n.units)for(let t of e.create)t.kind===g.RepeaterCreate&&(t.track=V(t.track,i=>{if(i instanceof ct){if(t.varNames.$index.has(i.name))return ue("$index");if(i.name===t.varNames.$implicit)return ue("$item")}return i},ye.None))}function bT(n){for(let e of n.units){let t=0;
36for(let i of e.ops())Zu(i)&&(t+=wT(i));for(let i of e.ops())St(i,r=>{ti(r)&&(n.compatibility===Qt.TemplateDefinitionBuilder&&r instanceof Fr||(J0(r)&&(r.varOffset=t),Zu(r)&&(t+=qg(r))))});if(n.compatibility===Qt.TemplateDefinitionBuilder)for(let i of e.ops())St(i,r=>{!ti(r)||!(r instanceof Fr)||(J0(r)&&(r.varOffset=t),Zu(r)&&(t+=qg(r)))});e.vars=t}if(n instanceof ca)for(let e of n.units)for(let t of e.create){if(t.kind!==g.Template&&t.kind!==g.RepeaterCreate)continue;let i=n.views.get(t.xref);t.vars=i.vars}}function wT(n){let e;switch(n.kind){case g.Property:case g.HostProperty:case g.Attribute:return e=1,n.expression instanceof qe&&!yT(n.expression)&&(e+=n.expression.expressions.length),e;case g.TwoWayProperty:return 1;case g.StyleProp:case g.ClassProp:case g.StyleMap:case g.ClassMap:return e=2,n.expression instanceof qe&&(e+=n.expression.expressions.length),e;case g.InterpolateText:return n.interpolation.expressions.length;case g.I18nExpression:case g.Conditional:case g.DeferWhen:case g.StoreLet:return 1;case g.RepeaterCreate:return n.emptyView?1:0;default:throw new Error(`Unhandled op: ${g[n.kind]}`)}}function qg(n){switch(n.kind){case z.PureFunctionExpr:return 1+n.args.length;case z.PipeBinding:return 1+n.args.length;case z.PipeBindingVariadic:return 1+n.numArgs;case z.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${n.constructor.name}`)}}function yT(n){return!(n.expressions.length!==1||n.strings.length!==2||n.strings[0]!==""||n.strings[1]!=="")}function ET(n){for(let e of n.units){lp(e.create),lp(e.update);for(let t of e.create)(t.kind===g.Listener||t.kind===g.TwoWayListener)&&lp(t.handlerOps);cp(e.create,n.compatibility),cp(e.update,n.compatibility);for(let t of e.create)(t.kind===g.Listener||t.kind===g.TwoWayListener)&&cp(t.handlerOps,n.compatibility)}}var Ye=function(n){return n[n.None=0]="None",n[n.ViewContextRead=1]="ViewContextRead",n[n.ViewContextWrite=2]="ViewContextWrite",n[n.SideEffectful=4]="SideEffectful",n}(Ye||{});function lp(n){let e=new Map;for(let t of n)t.kind===g.Variable&&t.flags&fn.AlwaysInline&&(St(t,i=>{if(ti(i)&&ph(i)!==Ye.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(t.xref,t)),Ze(t,i=>i instanceof Ci&&e.has(i.xref)?e.get(i.xref).initializer.clone():i,ye.None);for(let t of e.values())O.remove(t)}function cp(n,e){let t=new Map,i=new Map,r=new Set,s=new Map;for(let c of n){if(c.kind===g.Variable){if(t.has(c.xref)||i.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);t.set(c.xref,c),i.set(c.xref,0)}s.set(c,TT(c)),MT(c,i,r)}let o=!1;for(let c of n.reversed()){let d=s.get(c);if(c.kind===g.Variable&&i.get(c.xref)===0){if(o&&d.fences&Ye.ViewContextWrite||d.fences&Ye.SideEffectful){let _=ei(c.initializer.toStmt());s.set(_,d),O.replace(c,_)}else PT(c,i),O.remove(c);s.delete(c),t.delete(c.xref),i.delete(c.xref);continue}d.fences&Ye.ViewContextRead&&(o=!0)}let a=[];for(let[c,d]of i){let x=!!(t.get(c).flags&fn.AlwaysInline);d!==1||x||r.has(c)||a.push(c)}let l;for(;l=a.pop();){let c=t.get(l),d=s.get(c);if(!!(c.flags&fn.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let x=c.next;x.kind!==g.ListEnd;x=x.next){let w=s.get(x);if(w.variablesUsed.has(l)){if(e===Qt.TemplateDefinitionBuilder&&!IT(c,x))break;if(AT(l,c.initializer,x,d.fences)){w.variablesUsed.delete(l);for(let C of d.variablesUsed)w.variablesUsed.add(C);w.fences|=d.fences,t.delete(l),i.delete(l),s.delete(c),O.remove(c)}break}if(!f_(w.fences,d.fences))break}}}function ph(n){switch(n.kind){case z.NextContext:return Ye.ViewContextRead|Ye.ViewContextWrite;case z.RestoreView:return Ye.ViewContextRead|Ye.ViewContextWrite|Ye.SideEffectful;case z.StoreLet:return Ye.SideEffectful;case z.Reference:case z.ContextLetReference:return Ye.ViewContextRead;default:return Ye.None}}function TT(n){let e=Ye.None,t=new Set;return St(n,i=>{if(ti(i))switch(i.kind){case z.ReadVariable:t.add(i.xref);break;default:e|=ph(i)}}),{fences:e,variablesUsed:t}}
36function MT(n,e,t){St(n,(i,r)=>{if(!ti(i)||i.kind!==z.ReadVariable)return;let s=e.get(i.xref);s!==void 0&&(e.set(i.xref,s+1),r&ye.InChildOperation&&t.add(i.xref))})}function PT(n,e){St(n,t=>{if(!ti(t)||t.kind!==z.ReadVariable)return;let i=e.get(t.xref);if(i!==void 0){if(i===0)throw new Error(`Inaccurate variable count: ${t.xref} - found another read but count is already 0`);e.set(t.xref,i-1)}})}function f_(n,e){if(n&Ye.ViewContextWrite){if(e&Ye.ViewContextRead)return!1}else if(n&Ye.ViewContextRead&&e&Ye.ViewContextWrite)return!1;return!0}function AT(n,e,t,i){let r=!1,s=!0;return Ze(t,(o,a)=>{if(!ti(o)||r||!s)return o;if(a&ye.InChildOperation&&i&Ye.ViewContextRead)return o;switch(o.kind){case z.ReadVariable:if(o.xref===n)return r=!0,e;break;default:let l=ph(o);s=s&&f_(l,i);break}return o},ye.None),r}function IT(n,e){switch(n.variable.kind){case rt.Identifier:return n.initializer instanceof Cn&&n.initializer.name==="ctx";case rt.Context:return e.kind===g.Variable;default:return!0}}function kT(n){for(let e of n.units){let t=null,i=null;for(let r of e.create)switch(r.kind){case g.I18nStart:t=r;break;case g.I18nEnd:t=null;break;case g.IcuStart:t===null&&(i=n.allocateXrefId(),O.insertBefore(Bc(i,r.message,void 0,null),r));break;case g.IcuEnd:i!==null&&(O.insertAfter(Rc(i,null),r),i=null);break}}}function OT(n){let e=new Set;for(let t of n.units)for(let i of t.ops())St(i,r=>{r instanceof oa&&e.add(r.target)});for(let t of n.units)for(let i of t.update)Ze(i,r=>r instanceof sa&&!e.has(r.target)?r.value:r,ye.None)}function DT(n){for(let e of n.units)for(let t of e.update){if(t.kind!==g.Variable||t.variable.kind!==rt.Identifier||!(t.initializer instanceof sa))continue;let i=t.variable.identifier,r=t;for(;r&&r.kind!==g.ListEnd;)Ze(r,s=>s instanceof ct&&s.name===i?E(void 0):s,ye.None),r=r.prev}}function NT(n){for(let e of n.units)for(let t of e.update){if(t.kind!==g.StoreLet)continue;let i={kind:rt.Identifier,name:null,identifier:t.declaredName,local:!0};O.replace(t,ji(n.allocateXrefId(),i,new sa(t.target,t.value,t.sourceSpan),fn.None))}}var LT=[{kind:H.Tmpl,fn:Ty},{kind:H.Host,fn:Hb},{kind:H.Tmpl,fn:ly},{kind:H.Tmpl,fn:Dy},{kind:H.Tmpl,fn:kT},{kind:H.Both,fn:lb},{kind:H.Both,fn:gT},{kind:H.Both,fn:QC},{kind:H.Both,fn:qC},{kind:H.Tmpl,fn:ab},{kind:H.Both,fn:uy},{kind:H.Tmpl,fn:JE},{kind:H.Both,fn:ZC},{kind:H.Both,fn:Ey},{kind:H.Tmpl,fn:JC},{kind:H.Tmpl,fn:Ay},{kind:H.Tmpl,fn:cb},{kind:H.Tmpl,fn:sy},{kind:H.Tmpl,fn:sb},{kind:H.Tmpl,fn:tT},{kind:H.Tmpl,fn:WC},{kind:H.Tmpl,fn:GC},{kind:H.Tmpl,fn:Oy},{kind:H.Both,fn:By},{kind:H.Tmpl,fn:Nb},{kind:H.Tmpl,fn:NT},{kind:H.Tmpl,fn:Lb},{kind:H.Tmpl,fn:hT},{kind:H.Both,fn:VC},{kind:H.Both,fn:iT},{kind:H.Tmpl,fn:CT},{kind:H.Tmpl,fn:DT},{kind:H.Both,fn:aT},{kind:H.Tmpl,fn:ub},{kind:H.Tmpl,fn:dT},{kind:H.Tmpl,fn:ST},{kind:H.Both,fn:nT},{kind:H.Both,fn:uT},{kind:H.Tmpl,fn:oy},{kind:H.Both,fn:Sy},{kind:H.Both,fn:mb},{kind:H.Both,fn:_T},{kind:H.Both,fn:ET},{kind:H.Both,fn:OT},{kind:H.Tmpl,fn:fT},{kind:H.Tmpl,fn:rT},{kind:H.Tmpl,fn:sT},{kind:H.Tmpl,fn:Ab},{kind:H.Tmpl,fn:vT},{kind:H.Tmpl,fn:ey},{kind:H.Tmpl,fn:Rb},{kind:H.Both,fn:ib},{kind:H.Tmpl,fn:eT},{kind:H.Both,fn:bT},{kind:H.Tmpl,fn:Db},{kind:H.Both,fn:py},{kind:H.Tmpl,fn:ob},{kind:H.Tmpl,fn:my},{kind:H.Tmpl,fn:gy},{kind:H.Tmpl,fn:hb},{kind:H.Tmpl,fn:vy},{kind:H.Both,fn:Ly},{kind:H.Both,fn:YE},{kind:H.Both,fn:YC}];function g_(n,e){for(let t of LT)(t.kind===e||t.kind===H.Both)&&t.fn(n)}function BT(n,e){let t=v_(n.root);return __(n.root,e),t}function __(n,e){for(let t of n.job.units){if(t.parent!==n.xref)continue;__(t,e);let i=v_(t);e.statements.push(i.toDeclStmt(i.name))}}function v_(n){if(n.fnName===null)throw new Error(`AssertionError: view ${n.xref} is unnamed`);let e=[];for(let s of n.create){if(s.kind!==g.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${g[s.kind]}`);e.push(s.statement)}let t=[];for(let s of n.update){if(s.kind!==g.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${g[s.kind]}`);t.push(s.statement)}let i=Cc(1,e),r=Cc(2,t);return zs([new st("rf"),new st("ctx")],[...i,...r],void 0,void 0,n.fnName)}function Cc(n,e){return e.length===0?[]:[Ic(new be(W.BitwiseAnd,ue("rf"),E(n)),e)]}function RT(n){if(n.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let s of n.root.create){if(s.kind!==g.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${g[s.kind]}`);e.push(s.statement)}let t=[];for(let s of n.root.update){if(s.kind!==g.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${g[s.kind]}`);t.push(s.statement)}if(e.length===0&&t.length===0)return null;let i=Cc(1,e),r=Cc(2,t);return zs([new st("rf"),new st("ctx")],[...i,...r],void 0,void 0,n.root.fnName)}
36var S_=Qt.TemplateDefinitionBuilder,Mr=new Ws,Pr="ng-template";function Td(n){return n instanceof bt}function FT(n){return Td(n)&&n.nodes.length===1&&n.nodes[0]instanceof Wl}function HT(n,e,t,i,r,s,o){let a=new ca(n,t,S_,i,r,s,o);return Mi(a.root,e),a}function VT(n,e,t){let i=new uc(n.componentName,t,S_);for(let r of n.properties??[]){let s=j.Property;r.name.startsWith("attr.")&&(r.name=r.name.substring(5),s=j.Attribute),r.isAnimation&&(s=j.Animation);let o=e.calcPossibleSecurityContexts(n.componentSelector,r.name,s===j.Attribute).filter(a=>a!==Ne.NONE);UT(i,r,s,o)}for(let[r,s]of Object.entries(n.attributes)??[]){let o=e.calcPossibleSecurityContexts(n.componentSelector,r,!0).filter(a=>a!==Ne.NONE);GT(i,r,s,o)}for(let r of n.events??[])$T(i,r);return i}function UT(n,e,t,i){let r,s=e.expression.ast;s instanceof Nr?r=new qe(s.strings,s.expressions.map(o=>oe(o,n,e.sourceSpan)),[]):r=oe(s,n,e.sourceSpan),n.root.update.push(Rr(n.root.xref,t,e.name,r,null,i,!1,!1,null,null,e.sourceSpan))}function GT(n,e,t,i){let r=Rr(n.root.xref,j.Attribute,e,t,null,i,!0,!1,null,null,t.sourceSpan);n.root.update.push(r)}function $T(n,e){let[t,i]=e.type!==xn.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],r=ch(n.root.xref,new Dt,e.name,null,dh(n.root,e.handler,e.handlerSpan),t,i,!0,e.sourceSpan);n.root.create.push(r)}function Mi(n,e){for(let t of e)if(t instanceof yn)WT(n,t);else if(t instanceof Wt)qT(n,t);else if(t instanceof Rs)zT(n,t);else if(t instanceof fi)x_(n,t,null);else if(t instanceof Ns)C_(n,t,null);else if(t instanceof Ul)jT(n,t);else if(t instanceof Vl)QT(n,t);else if(t instanceof Lr)XT(n,t);else if(t instanceof $l)KT(n,t);else if(t instanceof Bs)YT(n,t);else if(t instanceof Xo)JT(n,t);else throw new Error(`Unsupported template node: ${t.constructor.name}`)}function WT(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof bt||e.i18n instanceof Yi))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=n.job.allocateXrefId(),[i,r]=kn(e.name),s=EC(r,t,Y1(i),e.i18n instanceof Yi?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);n.create.push(s),tM(n,s,e),y_(s,e);let o=null;e.i18n instanceof bt&&(o=n.job.allocateXrefId(),n.create.push(Bc(o,e.i18n,void 0,e.startSourceSpan))),Mi(n,e.children);let a=MC(t,e.endSourceSpan??e.startSourceSpan);n.create.push(a),o!==null&&O.insertBefore(Rc(o,e.endSourceSpan??e.startSourceSpan),a)}function qT(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof bt||e.i18n instanceof Yi))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let t=n.job.allocateView(n.xref),i=e.tagName,r="";e.tagName&&([r,i]=kn(e.tagName));let s=e.i18n instanceof Yi?e.i18n:void 0,o=Y1(r),a=i===null?"":nb(i,o),l=eM(e)?qt.NgTemplate:qt.Structural,c=Lc(t.xref,l,i,a,o,s,e.startSourceSpan,e.sourceSpan);n.create.push(c),nM(n,c,e,l),y_(c,e),Mi(t,e.children);for(let{name:d,value:_}of e.variables)t.contextVariables.set(d,_!==""?_:"$implicit");if(l===qt.NgTemplate&&e.i18n instanceof bt){let d=n.job.allocateXrefId();O.insertAfter(Bc(d,e.i18n,void 0,e.startSourceSpan),t.create.head),O.insertBefore(Rc(d,e.endSourceSpan??e.startSourceSpan),t.create.tail)}}function zT(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof Yi))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=null;e.children.some(s=>!(s instanceof Ds)&&(!(s instanceof fi)||s.value.trim().length>0))&&(t=n.job.allocateView(n.xref),Mi(t,e.children));let i=n.job.allocateXrefId(),r=OC(i,e.selector,e.i18n,t?.xref??null,e.sourceSpan);for(let s of e.attributes){let o=Mr.securityContext(e.name,s.name,!0);n.update.push(Rr(r.xref,j.Attribute,s.name,E(s.value),null,o,!0,!1,null,gi(s.i18n),s.sourceSpan))}n.create.push(r)}function x_(n,e,t){n.create.push(z1(n.job.allocateXrefId(),e.value,t,e.sourceSpan))}function C_(n,e,t){let i=e.value;if(i instanceof mn&&(i=i.ast),!(i instanceof Nr))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${i.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Si))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let r=e.i18n instanceof Si?e.i18n.children.filter(a=>a instanceof ql).map(a=>a.name):[];if(r.length>0&&r.length!==i.expressions.length)throw Error(`Unexpected number of i18n placeholders (${i.expressions.length}) for BoundText with ${i.expressions.length} expressions`);let s=n.job.allocateXrefId();n.create.push(z1(s,"",t,e.sourceSpan));let o=n.job.compatibility?null:e.sourceSpan;n.update.push(pC(s,new qe(i.strings,i.expressions.map(a=>oe(a,n.job,o)),r),e.sourceSpan))}function jT(n,e){let t=null,i=[];for(let r=0;r<e.branches.length;r++){let s=e.branches[r],o=n.job.allocateView(n.xref),a=bc(n,o.xref,s);s.expressionAlias!==null&&o.contextVariables.set(s.expressionAlias.name,K1);let l;if(s.i18n!==void 0){if(!(s.i18n instanceof Zi))throw Error(`Unhandled i18n metadata type for if block: ${s.i18n?.constructor.name}`);l=s.i18n}
36let c=Lc(o.xref,qt.Block,a,"Conditional",_t.HTML,l,s.startSourceSpan,s.sourceSpan);n.create.push(c),t===null&&(t=o.xref);let d=s.expression?oe(s.expression,n.job,null):null,_=new oc(d,c.xref,c.handle,s.expressionAlias);i.push(_),Mi(o,s.children)}n.update.push($1(t,null,i,e.sourceSpan))}function QT(n,e){if(e.cases.length===0)return;let t=null,i=[];for(let r of e.cases){let s=n.job.allocateView(n.xref),o=bc(n,s.xref,r),a;if(r.i18n!==void 0){if(!(r.i18n instanceof Zi))throw Error(`Unhandled i18n metadata type for switch block: ${r.i18n?.constructor.name}`);a=r.i18n}let l=Lc(s.xref,qt.Block,o,"Case",_t.HTML,a,r.startSourceSpan,r.sourceSpan);n.create.push(l),t===null&&(t=s.xref);let c=r.expression?oe(r.expression,n.job,e.startSourceSpan):null,d=new oc(c,l.xref,l.handle);i.push(d),Mi(s,r.children)}n.update.push($1(t,oe(e.expression,n.job,null),i,e.sourceSpan))}function ll(n,e,t,i,r){if(t!==void 0&&!(t instanceof Zi))throw Error("Unhandled i18n metadata type for defer block");if(i===void 0)return null;let s=n.job.allocateView(n.xref);Mi(s,i);let o=Lc(s.xref,qt.Block,null,`Defer${e}`,_t.HTML,t,r,r);return n.create.push(o),o}function XT(n,e){let t=null;if(n.job.deferMeta.mode===0){if(!n.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");t=n.job.deferMeta.blocks.get(e)??null}let i=ll(n,"",e.i18n,e.children,e.sourceSpan),r=ll(n,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),s=ll(n,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=ll(n,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=n.job.allocateXrefId(),l=DC(a,i.xref,i.handle,t,n.job.allDeferrableDepsFn,e.sourceSpan);l.placeholderView=s?.xref??null,l.placeholderSlot=s?.handle??null,l.loadingSlot=r?.handle??null,l.errorSlot=o?.handle??null,l.placeholderMinimumTime=e.placeholder?.minimumTime??null,l.loadingMinimumTime=e.loading?.minimumTime??null,l.loadingAfterTime=e.loading?.afterTime??null,n.create.push(l);let c=!1,d=[],_=[];for(let x of[e.triggers,e.prefetchTriggers]){if(x.idle!==void 0){let w=dr(a,{kind:Be.Idle},c,x.idle.sourceSpan);d.push(w)}if(x.immediate!==void 0){let w=dr(a,{kind:Be.Immediate},c,x.immediate.sourceSpan);d.push(w)}if(x.timer!==void 0){let w=dr(a,{kind:Be.Timer,delay:x.timer.delay},c,x.timer.sourceSpan);d.push(w)}if(x.hover!==void 0){let w=dr(a,{kind:Be.Hover,targetName:x.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,x.hover.sourceSpan);d.push(w)}if(x.interaction!==void 0){let w=dr(a,{kind:Be.Interaction,targetName:x.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,x.interaction.sourceSpan);d.push(w)}if(x.viewport!==void 0){let w=dr(a,{kind:Be.Viewport,targetName:x.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},c,x.viewport.sourceSpan);d.push(w)}if(x.when!==void 0){if(x.when.value instanceof Nr)throw new Error("Unexpected interpolation in defer block when trigger");let w=CC(a,oe(x.when.value,n.job,x.when.sourceSpan),c,x.when.sourceSpan);_.push(w)}d.length===0&&_.length===0&&d.push(dr(a,{kind:Be.Idle},!1,null)),c=!0}n.create.push(d),n.update.push(_)}function KT(n,e){if(e.i18n instanceof bt&&FT(e.i18n)){let t=n.job.allocateXrefId();n.create.push(BC(t,e.i18n,y1(e.i18n).name,null));for(let[i,r]of Object.entries(P(P({},e.vars),e.placeholders)))r instanceof Ns?C_(n,r,i):x_(n,r,i);n.create.push(RC(t))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function YT(n,e){let t=n.job.allocateView(n.xref),i=`\u0275$index_${t.xref}`,r=`\u0275$count_${t.xref}`,s=new Set;t.contextVariables.set(e.item.name,e.item.value);for(let L of e.contextVariables)L.value==="$index"&&s.add(L.name),L.name==="$index"?t.contextVariables.set("$index",L.value).set(i,L.value):L.name==="$count"?t.contextVariables.set("$count",L.value).set(r,L.value):t.aliases.add({kind:rt.Alias,name:null,identifier:L.name,expression:ZT(L,i,r)});let o=lt(e.trackBy.span,e.sourceSpan),a=oe(e.trackBy,n.job,o);Mi(t,e.children);let l=null,c=null;e.empty!==null&&(l=n.job.allocateView(n.xref),Mi(l,e.empty.children),c=bc(n,l.xref,e.empty));let d={$index:s,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Zi))throw Error("AssertionError: Unhandled i18n metadata type or @for");
36if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof Zi))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let _=e.i18n,x=e.empty?.i18n,w=bc(n,t.xref,e),C=TC(t.xref,l?.xref??null,w,a,d,c,_,x,e.startSourceSpan,e.sourceSpan);n.create.push(C);let T=oe(e.expression,n.job,lt(e.expression.span,e.sourceSpan)),D=xC(C.xref,C.handle,T,e.sourceSpan);n.update.push(D)}function ZT(n,e,t){switch(n.value){case"$index":return new ct(e);case"$count":return new ct(t);case"$first":return new ct(e).identical(E(0));case"$last":return new ct(e).identical(new ct(t).minus(E(1)));case"$even":return new ct(e).modulo(E(2)).identical(E(0));case"$odd":return new ct(e).modulo(E(2)).notIdentical(E(0));default:throw new Error(`AssertionError: unknown @for loop variable ${n.value}`)}}function JT(n,e){let t=n.job.allocateXrefId();n.create.push(NC(t,e.name,e.sourceSpan)),n.update.push(wC(t,e.name,oe(e.value,n.job,e.valueSpan),e.sourceSpan))}function oe(n,e,t){if(n instanceof mn)return oe(n.ast,e,t);if(n instanceof Dr){let i=n.receiver instanceof wr,r=n.receiver instanceof vi&&!(n.receiver instanceof wr),s=n.name==="$any"||n.name==="$event";return r||i&&!s?new ct(n.name):new jt(oe(n.receiver,e,t),n.name,null,lt(n.span,t))}else{if(n instanceof El)return n.receiver instanceof vi?new Ms(new Ei(e.root.xref),n.name,oe(n.value,e,t),null,lt(n.span,t)):new Ms(oe(n.receiver,e,t),n.name,oe(n.value,e,t),void 0,lt(n.span,t));if(n instanceof Pl)return new Do(oe(n.receiver,e,t),oe(n.key,e,t),oe(n.value,e,t),void 0,lt(n.span,t));if(n instanceof Ol){if(n.receiver instanceof vi)throw new Error("Unexpected ImplicitReceiver");return new wt(oe(n.receiver,e,t),n.args.map(i=>oe(i,e,t)),void 0,lt(n.span,t))}else{if(n instanceof dn)return E(n.value,void 0,lt(n.span,t));if(n instanceof Vo)switch(n.operator){case"+":return new Ps(Oo.Plus,oe(n.expr,e,t),void 0,lt(n.span,t));case"-":return new Ps(Oo.Minus,oe(n.expr,e,t),void 0,lt(n.span,t));default:throw new Error(`AssertionError: unknown unary operator ${n.operator}`)}else if(n instanceof pn){let i=eb.get(n.operation);if(i===void 0)throw new Error(`AssertionError: unknown binary operator ${n.operation}`);return new be(i,oe(n.left,e,t),oe(n.right,e,t),void 0,lt(n.span,t))}else{if(n instanceof wr)return new Ei(e.root.xref);if(n instanceof Os)return new wi(oe(n.receiver,e,t),oe(n.key,e,t),void 0,lt(n.span,t));if(n instanceof ks)throw new Error("AssertionError: Chain in unknown context");if(n instanceof kl){let i=n.keys.map((r,s)=>{let o=n.values[s];return new As(r.key,oe(o,e,t),r.quoted)});return new In(i,void 0,lt(n.span,t))}else{if(n instanceof Il)return new bn(n.expressions.map(i=>oe(i,e,t)));if(n instanceof Ho)return new bi(oe(n.condition,e,t),oe(n.trueExp,e,t),oe(n.falseExp,e,t),void 0,lt(n.span,t));if(n instanceof Go)return oe(n.expression,e,t);if(n instanceof Al)return new Hr(e.allocateXrefId(),new Dt,n.name,[oe(n.exp,e,t),...n.args.map(i=>oe(i,e,t))]);if(n instanceof Ml)return new Us(oe(n.receiver,e,t),oe(n.key,e,t),lt(n.span,t));if(n instanceof Tl)return new Vs(oe(n.receiver,e,t),n.name);if(n instanceof Dl)return new er(oe(n.receiver,e,t),n.args.map(i=>oe(i,e,t)));if(n instanceof Ct)return new aa(lt(n.span,t));if(n instanceof Uo)return T2(oe(n.expression,e,t),lt(n.span,t));throw new Error(`Unhandled expression type "${n.constructor.name}" in file "${t?.start.file.url}"`)}}}}}function Md(n,e,t,i){let r;return e instanceof Nr?r=new qe(e.strings,e.expressions.map(s=>oe(s,n,i??null)),Object.keys(gi(t)?.placeholders??{})):e instanceof Ue?r=oe(e,n,i??null):r=E(e),r}var b_=new Map([[De.Property,j.Property],[De.TwoWay,j.TwoWayProperty],[De.Attribute,j.Attribute],[De.Class,j.ClassName],[De.Style,j.StyleProperty],[De.Animation,j.Animation]]);function eM(n){return kn(n.tagName??"")[1]===Pr}function gi(n){if(n==null)return null;if(!(n instanceof bt))throw Error(`Expected i18n meta to be a Message, but got: ${n.constructor.name}`);return n}function tM(n,e,t){let i=new Array,r=new Set;for(let s of t.attributes){let o=Mr.securityContext(t.name,s.name,!0);i.push(Rr(e.xref,j.Attribute,s.name,Md(n.job,s.value,s.i18n),null,o,!0,!1,null,gi(s.i18n),s.sourceSpan)),s.i18n&&r.add(s.name)}
36for(let s of t.inputs)r.has(s.name)&&console.error(`On component ${n.job.componentName}, the binding ${s.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),i.push(Rr(e.xref,b_.get(s.type),s.name,Md(n.job,ha(s.value),s.i18n),s.unit,s.securityContext,!1,!1,null,gi(s.i18n)??null,s.sourceSpan));n.create.push(i.filter(s=>s?.kind===g.ExtractedAttribute)),n.update.push(i.filter(s=>s?.kind===g.Binding));for(let s of t.outputs){if(s.type===xn.Animation&&s.phase===null)throw Error("Animation listener should have a phase");s.type===xn.TwoWay?n.create.push(j1(e.xref,e.handle,s.name,e.tag,w_(n,s.handler,s.handlerSpan),s.sourceSpan)):n.create.push(ch(e.xref,e.handle,s.name,e.tag,dh(n,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))}i.some(s=>s?.i18nMessage)!==null&&n.create.push(X1(n.job.allocateXrefId(),new Dt,e.xref))}function nM(n,e,t,i){let r=new Array;for(let s of t.templateAttrs)if(s instanceof Ls){let o=Mr.securityContext(Pr,s.name,!0);r.push(cl(n,e.xref,De.Attribute,s.name,s.value,null,o,!0,i,gi(s.i18n),s.sourceSpan))}else r.push(cl(n,e.xref,s.type,s.name,ha(s.value),s.unit,s.securityContext,!0,i,gi(s.i18n),s.sourceSpan));for(let s of t.attributes){let o=Mr.securityContext(Pr,s.name,!0);r.push(cl(n,e.xref,De.Attribute,s.name,s.value,null,o,!1,i,gi(s.i18n),s.sourceSpan))}for(let s of t.inputs)r.push(cl(n,e.xref,s.type,s.name,ha(s.value),s.unit,s.securityContext,!1,i,gi(s.i18n),s.sourceSpan));n.create.push(r.filter(s=>s?.kind===g.ExtractedAttribute)),n.update.push(r.filter(s=>s?.kind===g.Binding));for(let s of t.outputs){if(s.type===xn.Animation&&s.phase===null)throw Error("Animation listener should have a phase");if(i===qt.NgTemplate&&(s.type===xn.TwoWay?n.create.push(j1(e.xref,e.handle,s.name,e.tag,w_(n,s.handler,s.handlerSpan),s.sourceSpan)):n.create.push(ch(e.xref,e.handle,s.name,e.tag,dh(n,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))),i===qt.Structural&&s.type!==xn.Animation){let o=Mr.securityContext(Pr,s.name,!1);n.create.push(gn(e.xref,j.Property,null,s.name,null,null,null,o))}}r.some(s=>s?.i18nMessage)!==null&&n.create.push(X1(n.job.allocateXrefId(),new Dt,e.xref))}function cl(n,e,t,i,r,s,o,a,l,c,d){let _=typeof r=="string";if(l===qt.Structural){if(!a)switch(t){case De.Property:case De.Class:case De.Style:return gn(e,j.Property,null,i,null,null,c,o);case De.TwoWay:return gn(e,j.TwoWayProperty,null,i,null,null,c,o)}if(!_&&(t===De.Attribute||t===De.Animation))return null}let x=b_.get(t);return l===qt.NgTemplate&&(t===De.Class||t===De.Style||t===De.Attribute&&!_)&&(x=j.Property),Rr(e,x,i,Md(n.job,r,c),s,o,_,a,l,c,d)}function dh(n,e,t){e=ha(e);let i=new Array,r=e instanceof ks?e.expressions:[e];if(r.length===0)throw new Error("Expected listener to have non-empty expression list.");let s=r.map(a=>oe(a,n.job,t)),o=s.pop();return i.push(...s.map(a=>ei(new wn(a,a.sourceSpan)))),i.push(ei(new Ot(o,o.sourceSpan))),i}function w_(n,e,t){e=ha(e);let i=new Array;if(e instanceof ks)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let r=oe(e,n.job,t),s=new ct("$event"),o=new ic(r,s);return i.push(ei(new wn(o))),i.push(ei(new Ot(s))),i}function ha(n){return n instanceof mn?n.ast:n}function y_(n,e){iM(n.localRefs);for(let{name:t,value:i}of e.references)n.localRefs.push({name:t,target:i})}function iM(n){if(!Array.isArray(n))throw new Error("AssertionError: expected an array")}function lt(n,e){if(e===null)return null;let t=e.start.moveBy(n.start),i=e.start.moveBy(n.end),r=e.fullStart.moveBy(n.start);return new se(t,i,r)}function bc(n,e,t){let i=null;for(let r of t.children)if(!(r instanceof Ds)){if(i!==null)return null;(r instanceof yn||r instanceof Wt&&r.tagName!==null)&&(i=r)}if(i!==null){for(let s of i.attributes){let o=Mr.securityContext(Pr,s.name,!0);n.update.push(Rr(e,j.Attribute,s.name,E(s.value),null,o,!0,!1,null,gi(s.i18n),s.sourceSpan))}for(let s of i.inputs)if(s.type!==De.Animation&&s.type!==De.Attribute){let o=Mr.securityContext(Pr,s.name,!0);n.create.push(gn(e,j.Property,null,s.name,null,null,null,o))}let r=i instanceof yn?i.name:i.tagName;return r===Pr?null:r}return null}
36function wc(n,e){return Ic(ue(Zd).bitwiseAnd(E(n),null,!1),e)}function rM(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function sM(n,e){if(Array.isArray(n.predicate)){let t=[];return n.predicate.forEach(i=>{let r=i.split(",").map(s=>E(s.trim()));t.push(...r)}),e.getConstLiteral(Pe(t),!0)}else switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return q(b.resolveForwardRef).callFn([n.predicate.expression])}}function E_(n,e,t,i){let r=[];i!==void 0&&r.push(...i),n.isSignal&&r.push(new jt(ue(Yo),n.propertyName)),r.push(sM(n,e),E(rM(n))),n.read&&r.push(n.read);let s=n.isSignal?t.signalBased:t.nonSignal;return q(s).callFn(r)}var hh=Symbol("queryAdvancePlaceholder");function T_(n){let e=[],t=0,i=()=>{t>0&&(e.unshift(q(b.queryAdvance).callFn(t===1?[]:[E(t)]).toStmt()),t=0)};for(let r=n.length-1;r>=0;r--){let s=n[r];s===hh?t++:(i(),e.unshift(s))}return i(),e}function oM(n,e,t){let i=[],r=[],s=E1(a=>r.push(a),Yd);n.forEach(a=>{let l=E_(a,e,{signalBased:b.viewQuerySignal,nonSignal:b.viewQuery});if(i.push(l.toStmt()),a.isSignal){r.push(hh);return}let c=s(),d=q(b.loadQuery).callFn([]),_=q(b.queryRefresh).callFn([c.set(d)]),x=ue(Yo).prop(a.propertyName).set(a.first?c.prop("first"):c);r.push(_.and(x).toStmt())});let o=t?`${t}_Query`:null;return zs([new st(Zd,Qd),new st(Yo,null)],[wc(1,i),wc(2,T_(r))],_n,null,o)}function aM(n,e,t){let i=[],r=[],s=E1(a=>r.push(a),Yd);for(let a of n){if(i.push(E_(a,e,{nonSignal:b.contentQuery,signalBased:b.contentQuerySignal},[ue("dirIndex")]).toStmt()),a.isSignal){r.push(hh);continue}let l=s(),c=q(b.loadQuery).callFn([]),d=q(b.queryRefresh).callFn([l.set(c)]),_=ue(Yo).prop(a.propertyName).set(a.first?l.prop("first"):l);r.push(d.and(_).toStmt())}let o=t?`${t}_ContentQueries`:null;return zs([new st(Zd,Qd),new st(Yo,null),new st("dirIndex",null)],[wc(1,i),wc(2,T_(r))],_n,null,o)}var Pd=class extends ud{constructor(){super(a_)}parse(e,t,i){return super.parse(e,t,i)}},zg=".",lM="attr",cM="class",uM="style",pM="*",up="animate-",Ad=class{constructor(e,t,i,r,s=!1){this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=i,this.errors=r,this._allowInvalidAssignmentEvents=s}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,t){let i=[];for(let r of Object.keys(e)){let s=e[r];typeof s=="string"?this.parsePropertyBinding(r,s,!0,!1,t,t.start.offset,void 0,[],i,t):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${s}" (${typeof s})`,t)}return i}createDirectiveHostEventAsts(e,t){let i=[];for(let r of Object.keys(e)){let s=e[r];typeof s=="string"?this.parseEvent(r,s,!1,t,t,[],i,t):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${s}" (${typeof s})`,t)}return i}parseInterpolation(e,t,i){let r=t.start.toString(),s=t.fullStart.offset;try{let o=this._exprParser.parseInterpolation(e,r,s,i,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,t),o}catch(o){return this._reportError(`${o}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}parseInterpolationExpression(e,t){let i=t.start.toString(),r=t.start.offset;try{let s=this._exprParser.parseInterpolationExpression(e,i,r);return s&&this._reportExpressionParserErrors(s.errors,t),s}catch(s){return this._reportError(`${s}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}}parseInlineTemplateBinding(e,t,i,r,s,o,a,l){let c=i.start.offset+pM.length,d=this._parseTemplateBindings(e,t,i,c,r);for(let _ of d){let x=Ui(i,_.sourceSpan),w=_.key.source,C=Ui(i,_.key.span);if(_ instanceof $o){let T=_.value?_.value.source:"$implicit",D=_.value?Ui(i,_.value.span):void 0;a.push(new Ap(w,T,x,C,D))}else if(_.value){let T=l?x:i,D=Ui(i,_.value.ast.sourceSpan);this._parsePropertyAst(w,_.value,!1,T,C,D,s,o)}else s.push([w,""]),this.parseLiteralAttr(w,null,C,r,void 0,s,o,C)}}_parseTemplateBindings(e,t,i,r,s){let o=i.start.toString();try{let a=this._exprParser.parseTemplateBindings(e,t,o,r,s);return this._reportExpressionParserErrors(a.errors,i),a.warnings.forEac
36h(l=>{this._reportError(l,i,Qi.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,i),[]}}parseLiteralAttr(e,t,i,r,s,o,a,l){pp(e)?(e=e.substring(1),l!==void 0&&(l=Ui(l,new $t(l.start.offset+1,l.end.offset))),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',i,Qi.ERROR),this._parseAnimation(e,t,i,r,l,s,o,a)):a.push(new yo(e,this._exprParser.wrapLiteralPrimitive(t,"",r),qi.LITERAL_ATTR,i,l,s))}parsePropertyBinding(e,t,i,r,s,o,a,l,c,d){e.length===0&&this._reportError("Property name is missing in binding",s);let _=!1;e.startsWith(up)?(_=!0,e=e.substring(up.length),d!==void 0&&(d=Ui(d,new $t(d.start.offset+up.length,d.end.offset)))):pp(e)&&(_=!0,e=e.substring(1),d!==void 0&&(d=Ui(d,new $t(d.start.offset+1,d.end.offset)))),_?this._parseAnimation(e,t,s,o,d,a,l,c):this._parsePropertyAst(e,this.parseBinding(t,i,a||s,o),r,s,d,a,l,c)}parsePropertyInterpolation(e,t,i,r,s,o,a,l){let c=this.parseInterpolation(t,r||i,l);return c?(this._parsePropertyAst(e,c,!1,i,a,r,s,o),!0):!1}_parsePropertyAst(e,t,i,r,s,o,a,l){a.push([e,t.source]),l.push(new yo(e,t,i?qi.TWO_WAY:qi.DEFAULT,r,s,o))}_parseAnimation(e,t,i,r,s,o,a,l){e.length===0&&this._reportError("Animation trigger is missing",i);let c=this.parseBinding(t||"undefined",!1,o||i,r);a.push([e,c.source]),l.push(new yo(e,c,qi.ANIMATION,i,s,o))}parseBinding(e,t,i,r){let s=(i&&i.start||"(unknown)").toString();try{let o=t?this._exprParser.parseSimpleBinding(e,s,r,this._interpolationConfig):this._exprParser.parseBinding(e,s,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,i),o}catch(o){return this._reportError(`${o}`,i),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}createBoundElementProperty(e,t,i=!1,r=!0){if(t.isAnimation)return new Bl(t.name,De.Animation,Ne.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let s=null,o,a=null,l=t.name.split(zg),c;if(l.length>1)if(l[0]==lM){a=l.slice(1).join(zg),i||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),c=dp(this._schemaRegistry,e,a,!0);let d=a.indexOf(":");if(d>-1){let _=a.substring(0,d),x=a.substring(d+1);a=Op(_,x)}o=De.Attribute}else l[0]==cM?(a=l[1],o=De.Class,c=[Ne.NONE]):l[0]==uM&&(s=l.length>2?l[2]:null,a=l[1],o=De.Style,c=[Ne.STYLE]);if(a===null){let d=this._schemaRegistry.getMappedPropName(t.name);a=r?d:t.name,c=dp(this._schemaRegistry,e,d,!1),o=t.type===qi.TWO_WAY?De.TwoWay:De.Property,i||this._validatePropertyOrAttributeName(d,t.sourceSpan,!1)}return new Bl(a,o,c[0],t.expression,s,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,i,r,s,o,a,l){e.length===0&&this._reportError("Event name is missing in binding",r),pp(e)?(e=e.slice(1),l!==void 0&&(l=Ui(l,new $t(l.start.offset+1,l.end.offset))),this._parseAnimationEvent(e,t,r,s,a,l)):this._parseRegularEvent(e,t,i,r,s,o,a,l)}calcPossibleSecurityContexts(e,t,i){let r=this._schemaRegistry.getMappedPropName(t);return dp(this._schemaRegistry,e,r,i)}_parseAnimationEvent(e,t,i,r,s,o){let a=R2(e,[e,""]),l=a[0],c=a[1].toLowerCase(),d=this._parseAction(t,r);s.push(new Ll(l,c,xn.Animation,d,i,r,o)),l.length===0&&this._reportError("Animation event name is missing in binding",i),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${l}" is not supported (use start or done)`,i):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,i)}_parseRegularEvent(e,t,i,r,s,o,a,l){let[c,d]=B2(e,[null,e]),_=this.errors.length,x=this._parseAction(t,s),w=this.errors.length===_;o.push([e,x.source]),i&&w&&!this._isAllowedAssignmentEvent(x)&&this._reportError("Unsupported expression in a two-way binding",r),a.push(new Ll(d,c,i?xn.TwoWay:xn.Regular,x,r,s,l))}_parseAction(e,t){let i=(t&&t.start||"(unknown").toString(),r=t&&t.start?t.start.offset:0;try{let s=this._exprParser.parseAction(e,i,r,this._interpolationConfig);return s&&this._reportExpressionParserErrors(s.errors,t),!s||s.ast instanceof Ct?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)):s}catch(s){return this._reportError(`${s}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}}_reportError(e,t,i=Qi.ERROR){this.errors.push(new ie(t,e,i))}_reportExpressionParserErrors(e,t){for(let i of e)this._reportError(i.message,t)}_validatePropertyOrAttributeName(e,t,i){let r=i?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,Qi.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof mn?this._isAllowedAssignmentEvent(e.ast):e instanceof Go?this._isAllowedAssignmentEvent(e.expression):e instanceof Dr||e instanceof Os?!0:this._allowInvalidAssignmentEvents?e instanceof pn?(e.operation==="&&"||e.operation==="||"||e.operation==="??")&&(e.right instanceof Dr||e.right instanceof Os):e instanceof Ho||e instanceof Uo:!1}};function pp(n){return n[0]=="@"}function dp(n,e,t,i){let r=[];return Es.parse(e).forEach(s=>{let o=s.element?[s.element]:n.allKnownElementNames(),a=new Set(s.notSelectors.filter(c=>c.isElementSelector()).map(c=>c.element)),l=o.filter(c=>!a.has(c));r.push(...l.map(c=>n.securityContext(c,t,i)))}),r.length===0?[Ne.NONE]:Array.from(new Set(r)).sort()}function Ui(n,e){let t=e.start-n.start.offset,i=e.end-n.end.offset;return new se(n.start.moveBy(t),n.end.moveBy(i),n.fullStart.moveBy(t),n.details)}function dM(n){if(n==null||n.length===0||n[0]=="/")return!1;let e=n.match(hM);return e===null||e[1]=="package"||e[1]=="asset"}var hM=/^([^:/?#]+):/,mM="select",fM="link",gM="rel",_M="href",vM="stylesheet",SM="style",xM="script",CM="ngNonBindable",bM="ngProjectAs";function M_(n){let e=null,t=null,i=null,r=!1,s="";
36n.attrs.forEach(l=>{let c=l.name.toLowerCase();c==mM?e=l.value:c==_M?t=l.value:c==gM?i=l.value:l.name==CM?r=!0:l.name==bM&&l.value.length>0&&(s=l.value)}),e=wM(e);let o=n.name.toLowerCase(),a=Gt.OTHER;return Ip(o)?a=Gt.NG_CONTENT:o==SM?a=Gt.STYLE:o==xM?a=Gt.SCRIPT:o==fM&&i==vM&&(a=Gt.STYLESHEET),new Id(a,e,t,r,s)}var Gt=function(n){return n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER",n}(Gt||{}),Id=class{constructor(e,t,i,r,s){this.type=e,this.selectAttr=t,this.hrefAttr=i,this.nonBindable=r,this.projectAs=s}};function wM(n){return n===null||n.length===0?"*":n}var yM=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,EM=/^track\s+([\S\s]*)/,TM=/^(as\s)+(.*)/,mh=/^else[^\S\r\n]+if/,MM=/^let\s+([\S\s]*)/,jg=/(\s*)(\S+)(\s*)/,ko=new Set(["$index","$first","$last","$even","$odd","$count"]);function Qg(n){return n==="empty"}function Xg(n){return n==="else"||mh.test(n)}function PM(n,e,t,i){let r=DM(e),s=[],o=Kg(n,r,i);o!==null&&s.push(new yr(o.expression,Ve(t,n.children,n.children),o.expressionAlias,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan,n.i18n));for(let _ of e)if(mh.test(_.name)){let x=Kg(_,r,i);if(x!==null){let w=Ve(t,_.children,_.children);s.push(new yr(x.expression,w,x.expressionAlias,_.sourceSpan,_.startSourceSpan,_.endSourceSpan,_.nameSpan,_.i18n))}}else if(_.name==="else"){let x=Ve(t,_.children,_.children);s.push(new yr(null,x,null,_.sourceSpan,_.startSourceSpan,_.endSourceSpan,_.nameSpan,_.i18n))}let a=s.length>0?s[0].startSourceSpan:n.startSourceSpan,l=s.length>0?s[s.length-1].endSourceSpan:n.endSourceSpan,c=n.sourceSpan,d=s[s.length-1];return d!==void 0&&(c=new se(a.start,d.sourceSpan.end)),{node:new Ul(s,c,n.startSourceSpan,l,n.nameSpan),errors:r}}function AM(n,e,t,i){let r=[],s=kM(n,r,i),o=null,a=null;for(let l of e)l.name==="empty"?a!==null?r.push(new ie(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?r.push(new ie(l.sourceSpan,"@empty block cannot have parameters")):a=new Qo(Ve(t,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):r.push(new ie(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(s!==null)if(s.trackBy===null)r.push(new ie(n.startSourceSpan,'@for loop must have a "track" expression'));else{let l=a?.endSourceSpan??n.endSourceSpan,c=new se(n.sourceSpan.start,l?.end??n.sourceSpan.end);o=new Bs(s.itemName,s.expression,s.trackBy.expression,s.trackBy.keywordSpan,s.context,Ve(t,n.children,n.children),a,c,n.sourceSpan,n.startSourceSpan,l,n.nameSpan,n.i18n)}return{node:o,errors:r}}function IM(n,e,t){let i=NM(n),r=n.parameters.length>0?ma(n.parameters[0],t):t.parseBinding("",!1,n.sourceSpan,0),s=[],o=[],a=null;for(let l of n.children){if(!(l instanceof hn))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){o.push(new Gl(l.name,l.sourceSpan,l.nameSpan));continue}let c=l.name==="case"?ma(l.parameters[0],t):null,d=new jo(c,Ve(e,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n);c===null?a=d:s.push(d)}return a!==null&&s.push(a),{node:new Vl(r,s,o,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan),errors:i}}function kM(n,e,t){if(n.parameters.length===0)return e.push(new ie(n.startSourceSpan,"@for loop does not have an expression")),null;let[i,...r]=n.parameters,s=LM(i,e)?.match(yM);if(!s||s[2].trim().length===0)return e.push(new ie(i.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=s;ko.has(o)&&e.push(new ie(i.sourceSpan,`@for loop item name cannot be one of ${Array.from(ko).join(", ")}.`));let l=i.expression.split(" ")[0],c=new se(i.sourceSpan.start,i.sourceSpan.start.moveBy(l.length)),d={itemName:new Ki(o,"$implicit",c,c),trackBy:null,expression:ma(i,t,a),context:Array.from(ko,_=>{let x=new se(n.startSourceSpan.end,n.startSourceSpan.end);return new Ki(_,_,x,x)})};for(let _ of r){let x=_.expression.match(MM);if(x!==null){let C=new se(_.sourceSpan.start.moveBy(x[0].length-x[1].length),_.sourceSpan.end);OM(_.sourceSpan,x[1],C,o,d.context,e);continue}let w=_.expression.match(EM);if(w!==null){if(d.trackBy!==null)e.push(new ie(_.sourceSpan,'@for loop can only have one "track" expression'));else{let C=ma(_,t,w[1]);C.ast instanceof Ct&&e.push(new ie(n.startSourceSpan,'@for loop must have a "track" expression'));let T=new se(_.sourceSpan.start,_.sourceSpan.start.moveBy(5));d.trackBy={expression:C,keywordSpan:T}}continue}e.push(new ie(_.sourceSpan,`Unrecognized @for loop paramater "${_.expression}"`))}return d}function OM(n,e,t,i,r,s){let o=e.split(","),a=t.start;for(let l of o){let c=l.split("="),d=c.length===2?c[0].trim():"",_=c.length===2?c[1].trim():"";if(d.length===0||_.length===0)s.push(new ie(n,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!ko.has(_))s.push(new ie(n,`Unknown "let" parameter variable "${_}". The allowed variables are: ${Array.from(ko).join(", ")}`));else if(d===i)s.push(new ie(n,`Invalid @for loop "let" parameter. Variable c
36annot be called "${i}"`));else if(r.some(x=>x.name===d))s.push(new ie(n,`Duplicate "let" parameter variable "${_}"`));else{let[,x,w]=c[0].match(jg)??[],C=x!==void 0&&c.length===2?new se(a.moveBy(x.length),a.moveBy(x.length+w.length)):t,T;if(c.length===2){let[,L,B]=c[1].match(jg)??[];T=L!==void 0?new se(a.moveBy(c[0].length+1+L.length),a.moveBy(c[0].length+1+L.length+B.length)):void 0}let D=new se(C.start,T?.end??C.end);r.push(new Ki(d,_,D,C,T))}a=a.moveBy(l.length+1)}}function DM(n){let e=[],t=!1;for(let i=0;i<n.length;i++){let r=n[i];r.name==="else"?(t?e.push(new ie(r.startSourceSpan,"Conditional can only have one @else block")):n.length>1&&i<n.length-1?e.push(new ie(r.startSourceSpan,"@else block must be last inside the conditional")):r.parameters.length>0&&e.push(new ie(r.startSourceSpan,"@else block cannot have parameters")),t=!0):mh.test(r.name)||e.push(new ie(r.startSourceSpan,`Unrecognized conditional block @${r.name}`))}return e}function NM(n){let e=[],t=!1;if(n.parameters.length!==1)return e.push(new ie(n.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let i of n.children)if(!(i instanceof ua||i instanceof Vr&&i.value.trim().length===0)){if(!(i instanceof hn)||i.name!=="case"&&i.name!=="default"){e.push(new ie(i.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}i.name==="default"?(t?e.push(new ie(i.startSourceSpan,"@switch block can only have one @default block")):i.parameters.length>0&&e.push(new ie(i.startSourceSpan,"@default block cannot have parameters")),t=!0):i.name==="case"&&i.parameters.length!==1&&e.push(new ie(i.startSourceSpan,"@case block must have exactly one parameter"))}return e}function ma(n,e,t){let i,r;return typeof t=="string"?(i=Math.max(0,n.expression.lastIndexOf(t)),r=i+t.length):(i=0,r=n.expression.length),e.parseBinding(n.expression.slice(i,r),!1,n.sourceSpan,n.sourceSpan.start.offset+i)}function Kg(n,e,t){if(n.parameters.length===0)return e.push(new ie(n.startSourceSpan,"Conditional block does not have an expression")),null;let i=ma(n.parameters[0],t),r=null;for(let s=1;s<n.parameters.length;s++){let o=n.parameters[s],a=o.expression.match(TM);if(a===null)e.push(new ie(o.sourceSpan,`Unrecognized conditional paramater "${o.expression}"`));else if(n.name!=="if")e.push(new ie(o.sourceSpan,'"as" expression is only allowed on the primary @if block'));else if(r!==null)e.push(new ie(o.sourceSpan,'Conditional can only have one "as" expression'));else{let l=a[2].trim(),c=o.sourceSpan.start.moveBy(a[1].length),d=new se(c,c.moveBy(l.length));r=new Ki(l,l,d,d)}}return{expression:i,expressionAlias:r}}function LM(n,e){let t=n.expression,i=/^\s$/,r=0,s=0,o=t.length-1;for(let a=0;a<t.length;a++){let l=t[a];if(l==="(")s=a+1,r++;else{if(i.test(l))continue;break}}if(r===0)return t;for(let a=t.length-1;a>-1;a--){let l=t[a];if(l===")"){if(o=a,r--,r===0)break}else{if(i.test(l))continue;break}}return r!==0?(e.push(new ie(n.sourceSpan,"Unclosed parentheses in expression")),null):t.slice(s,o)}var BM=/^\d+\.?\d*(ms|s)?$/,RM=/^\s$/,Yg=new Map([[Xn,It],[ys,Ss],[xi,An]]),kt=function(n){return n.IDLE="idle",n.TIMER="timer",n.INTERACTION="interaction",n.IMMEDIATE="immediate",n.HOVER="hover",n.VIEWPORT="viewport",n}(kt||{});function Zg({expression:n,sourceSpan:e},t,i,r){let s=n.indexOf("when"),o=new se(e.start.moveBy(s),e.start.moveBy(s+4)),a=P_(n,e);if(s===-1)r.push(new ie(e,'Could not find "when" keyword in expression'));else{let l=fa(n,s+1),c=t.parseBinding(n.slice(l),!1,e,e.start.offset+l);A_("when",i,r,new Lp(c,e,a,o))}}function Jg({expression:n,sourceSpan:e},t,i,r){let s=n.indexOf("on"),o=new se(e.start.moveBy(s),e.start.moveBy(s+2)),a=P_(n,e);if(s===-1)i.push(new ie(e,'Could not find "on" keyword in expression'));else{let l=fa(n,s+1);new kd(n,l,e,t,i,r,a,o).parse()}}function P_(n,e){return n.startsWith("prefetch")?new se(e.start,e.start.moveBy(8)):null}var kd=class{constructor(e,t,i,r,s,o,a,l){this.expression=e,this.start=t,this.span=i,this.triggers=r,this.errors=s,this.placeholder=o,this.prefetchSpan=a,this.onSourceSpan=l,this.index=0,this.tokens=new da().tokenize(e.slice(t))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}
36if(this.isFollowedByOrLast(vn))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(xi)){this.advance();let t=this.errors.length,i=this.consumeParameters();if(this.errors.length!==t)break;this.consumeTrigger(e,i),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,t){let i=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),r=new se(i,i.moveBy(e.strValue.length)),s=i.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,l=o?this.prefetchSpan:null,c=new se(o?this.span.start:i,s);try{switch(e.toString()){case kt.IDLE:this.trackTrigger("idle",FM(t,r,c,l,a));break;case kt.TIMER:this.trackTrigger("timer",HM(t,r,c,this.prefetchSpan,this.onSourceSpan));break;case kt.INTERACTION:this.trackTrigger("interaction",GM(t,r,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case kt.IMMEDIATE:this.trackTrigger("immediate",VM(t,r,c,this.prefetchSpan,this.onSourceSpan));break;case kt.HOVER:this.trackTrigger("hover",UM(t,r,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case kt.VIEWPORT:this.trackTrigger("viewport",$M(t,r,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(d){this.error(e,d.message)}}consumeParameters(){let e=[];
36if(!this.token().isCharacter(xi))return this.unexpectedToken(this.token()),e;this.advance();let t=[],i="";for(;this.index<this.tokens.length;){let r=this.token();if(r.isCharacter(An)&&t.length===0){i.length&&e.push(i);break}if(r.type===he.Character&&Yg.has(r.numValue)&&t.push(Yg.get(r.numValue)),t.length>0&&r.isCharacter(t[t.length-1])&&t.pop(),t.length===0&&r.isCharacter(vn)&&i.length>0){e.push(i),i="",this.advance();continue}i+=this.tokenText(),this.advance()}return(!this.token().isCharacter(An)||t.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(vn)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenText(){return this.expression.slice(this.start+this.token().index,this.start+this.token().end)}trackTrigger(e,t){A_(e,this.triggers,this.errors,t)}error(e,t){let i=this.span.start.moveBy(this.start+e.index),r=i.moveBy(e.end-e.index);this.errors.push(new ie(new se(i,r),t))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function A_(n,e,t,i){e[n]?t.push(new ie(i.sourceSpan,`Duplicate "${n}" trigger is not allowed`)):e[n]=i}function FM(n,e,t,i,r){if(n.length>0)throw new Error(`"${kt.IDLE}" trigger cannot have parameters`);return new Bp(e,t,i,r)}function HM(n,e,t,i,r){if(n.length!==1)throw new Error(`"${kt.TIMER}" trigger must have exactly one parameter`);let s=yc(n[0]);if(s===null)throw new Error(`Could not parse time value of trigger "${kt.TIMER}"`);return new Fp(s,e,t,i,r)}function VM(n,e,t,i,r){if(n.length>0)throw new Error(`"${kt.IMMEDIATE}" trigger cannot have parameters`);return new Rp(e,t,i,r)}function UM(n,e,t,i,r,s){return fh(kt.HOVER,n,s),new Rl(n[0]??null,e,t,i,r)}function GM(n,e,t,i,r,s){return fh(kt.INTERACTION,n,s),new Fl(n[0]??null,e,t,i,r)}function $M(n,e,t,i,r,s){return fh(kt.VIEWPORT,n,s),new Hl(n[0]??null,e,t,i,r)}function fh(n,e,t){if(e.length>1)throw new Error(`"${n}" trigger can only have zero or one parameters`);if(e.length===0){if(t===null)throw new Error(`"${n}" trigger with no parameters can only be placed on an @defer that has a @placeholder block`);if(t.children.length!==1||!(t.children[0]instanceof yn))throw new Error(`"${n}" trigger with no parameters can only be placed on an @defer that has a @placeholder block with exactly one root element node`)}}function fa(n,e=0){let t=!1;for(let i=e;i<n.length;i++)if(RM.test(n[i]))t=!0;else if(t)return i;return-1}function yc(n){let e=n.match(BM);if(!e)return null;let[t,i]=e;return parseFloat(t)*(i==="s"?1e3:1)}var WM=/^prefetch\s+when\s/,qM=/^prefetch\s+on\s/,I_=/^minimum\s/,zM=/^after\s/,jM=/^when\s/,QM=/^on\s/;function Od(n){return n==="placeholder"||n==="loading"||n==="error"}function XM(n,e,t,i){let r=[],{placeholder:s,loading:o,error:a}=KM(e,r,t),{triggers:l,prefetchTriggers:c}=eP(n.parameters,i,r,s),d=n.endSourceSpan,_=n.sourceSpan.end;if(e.length>0){let C=e[e.length-1];d=C.endSourceSpan,_=C.sourceSpan.end}let x=new se(n.sourceSpan.start,_);return{node:new Lr(Ve(t,n.children,n.children),l,c,s,o,a,n.nameSpan,x,n.sourceSpan,n.startSourceSpan,d,n.i18n),errors:r}}function KM(n,e,t){let i=null,r=null,s=null;for(let o of n)try{if(!Od(o.name)){e.push(new ie(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":i!==null?e.push(new ie(o.startSourceSpan,"@defer block can only have one @placeholder block")):i=YM(o,t);break;case"loading":r!==null?e.push(new ie(o.startSourceSpan,"@defer block can only have one @loading block")):r=ZM(o,t);break;case"error":s!==null?e.push(new ie(o.startSourceSpan,"@defer block can only have one @error block")):s=JM(o,t);break}}catch(a){e.push(new ie(o.startSourceSpan,a.message))}return{placeholder:i,loading:r,error:s}}function YM(n,e){let t=null;for(let i of n.parameters)if(I_.test(i.expression)){if(t!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let r=yc(i.expression.slice(fa(i.expression)));if(r===null)throw new Error('Could not parse time value of parameter "minimum"');t=r}else throw new Error(`Unrecognized parameter in @placeholder block: "${i.expression}"`);return new Wo(Ve(e,n.children,n.children),t,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function ZM(n,e){let t=null,i=null;for(let r of n.parameters)if(zM.test(r.expression)){if(t!=null)throw new Error('@loading block can only have one "after" parameter');let s=yc(r.expression.slice(fa(r.expression)));if(s===null)throw new Error('Could not parse time value of parameter "after"');t=s}else if(I_.test(r.expression)){if(i!=null)throw new Error('@loading block can only have one "minimum" parameter');let s=yc(r.expression.slice(fa(r.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');i=s}else throw new Error(`Unrecognized parameter in @loading block: "${r.expression}"`);return new qo(Ve(e,n.children,n.children),t,i,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function JM(n,e){if(n.parameters.length>0)throw new Error("@error block cannot have parameters");return new zo(Ve(e,n.children,n.children),n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function eP(n,e,t,i){let r={},s={};for(let o of n)jM.test(o.expression)?Zg(o,e,r,t):QM.test(o.expression)?Jg(o,r,t,i):WM.test(o.expression)?Zg(o,e,s,t):qM.test(o.expression)?Jg(o,s,t,i):t.push(new ie(o.sourceSpan,"Unrecognized trigger"));return{triggers:r,prefetchTriggers:s}}var tP=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,e1=1,t1=2,n1=3,i1=4,r1=5,nP=6,_o=7,Gi={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},s1="*";function iP(n,e,t){let i=new Dd(e,t),r=Ve(i,n,n),s=e.errors.concat(i.errors),o={nodes:r,errors:s,styleUrls:i.styleUrls,styles:i.styles,ngContentSelectors:i.ngContentSelectors};return t.collectCommentNodes&&(o.commentNodes=i.commentNodes),o}var Dd=class{constructor(e,t){this.bindingParser=e,this.options=t,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1,this.processedNodes=new Set}visitElement(e){let t=Td(e.i18n);t&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);let i=M_(e);if(i.type===Gt.SCRIPT)return null;if(i.type===Gt.STYLE){let D=sP(e);return D!==null&&this.styles.push(D),null}else if(i.type===Gt.STYLESHEET&&dM(i.hrefAttr))return this.styleUrls.push(i.hrefAttr),null;let r=nx(e.name),s=[],o=[],a=[],l=[],c=[],d={},_=[],x=[],w=!1;for(let D of e.attrs){let L=!1,B=o1(D.name),re=!1;if(D.i18n&&(d[D.name]=D.i18n),B.startsWith(s1)){w&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",D.sourceSpan),re=!0,w=!0;let le=D.value,Ee=B.substring(s1.length),Je=[],ze=D.valueSpan?D.valueSpan.start.offset:D.sourceSpan.start.offset+D.name.length;this.bindingParser.parseInlineTemplateBinding(Ee,le,D.sourceSpan,ze,[],_,Je,!0),x.push(...Je.map(Le=>new Ki(Le.name,Le.value,Le.sourceSpan,Le.keySpan,Le.valueSpan)))}else L=this.parseAttribute(r,D,[],s,o,a,l);!L&&!re&&c.push(this.visitAttribute(D))}let C;i.nonBindable?C=Ve(rP,e.children).flat(1/0):C=Ve(this,e.children,e.children);let T;if(i.type===Gt.NG_CONTENT){let D=i.selectAttr,L=e.attrs.map(B=>this.visitAttribute(B));
36T=new Rs(D,L,C,e.sourceSpan,e.i18n),this.ngContentSelectors.push(D)}else if(r){let D=this.extractAttributes(e.name,s,d);T=new Wt(e.name,c,D.bound,o,[],C,l,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let D=this.extractAttributes(e.name,s,d);T=new yn(e.name,c,D.bound,o,C,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(w){let D=this.extractAttributes("ng-template",_,d),L=[];D.literal.forEach(Ee=>L.push(Ee)),D.bound.forEach(Ee=>L.push(Ee));let B=T instanceof yn?{attributes:T.attributes,inputs:T.inputs,outputs:T.outputs}:{attributes:[],inputs:[],outputs:[]},re=r&&t?void 0:e.i18n,le=T instanceof Wt?null:T.name;T=new Wt(le,B.attributes,B.inputs,B.outputs,L,[T],[],x,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,re)}return t&&(this.inI18nBlock=!1),T}visitAttribute(e){return new Ls(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this.processedNodes.has(e)?null:this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!Td(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let t=e.i18n,i={},r={};return Object.keys(t.placeholders).forEach(s=>{let o=t.placeholders[s];if(s.startsWith(sx)){let a=s.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);i[a]=new Ns(l,o.sourceSpan)}else r[s]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new $l(i,r,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new Ds(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,t){let i=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return i.errors.length===0&&i.ast instanceof Ct&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Xo(e.name,i,e.sourceSpan,e.nameSpan,e.valueSpan)}visitBlockParameter(){return null}visitBlock(e,t){let i=Array.isArray(t)?t.indexOf(e):-1;if(i===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let r=null;switch(e.name){case"defer":r=XM(e,this.findConnectedBlocks(i,t,Od),this,this.bindingParser);break;case"switch":r=IM(e,this,this.bindingParser);break;case"for":r=AM(e,this.findConnectedBlocks(i,t,Qg),this,this.bindingParser);break;case"if":r=PM(e,this.findConnectedBlocks(i,t,Xg),this,this.bindingParser);break;default:let s;Od(e.name)?(s=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Qg(e.name)?(s=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Xg(e.name)?(s=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):s=`Unrecognized block @${e.name}.`,r={node:new Gl(e.name,e.sourceSpan,e.nameSpan),errors:[new ie(e.sourceSpan,s)]};break}return this.errors.push(...r.errors),r.node}findConnectedBlocks(e,t,i){let r=[];for(let s=e+1;s<t.length;s++){let o=t[s];if(!(o instanceof ua)){if(o instanceof Vr&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof hn)||!i(o.name))break;r.push(o),this.processedNodes.add(o)}}return r}extractAttributes(e,t,i){let r=[],s=[];return t.forEach(o=>{let a=i[o.name];if(o.isLiteral)s.push(new Ls(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let l=this.bindingParser.createBoundElementProperty(e,o,!0,!1);r.push(Dp.fromBoundElementProperty(l,a))}}),{bound:r,literal:s}}parseAttribute(e,t,i,r,s,o,a){let l=o1(t.name),c=t.value,d=t.sourceSpan,_=t.valueSpan?t.valueSpan.start.offset:d.start.offset;function x(L,B,re){let le=t.name.length-l.length,Ee=L.start.moveBy(B.length+le),Je=Ee.moveBy(re.length);return new se(Ee,Je,Ee,re)}let w=l.match(tP);if(w){if(w[e1]!=null){let L=w[_o],B=x(d,w[e1],L);this.bindingParser.parsePropertyBinding(L,c,!1,!1,d,_,t.valueSpan,i,r,B)}else if(w[t1])if(e){let L=w[_o],B=x(d,w[t1],L);this.parseVariable(L,c,d,B,t.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',d);
36else if(w[n1]){let L=w[_o],B=x(d,w[n1],L);this.parseReference(L,c,d,B,t.valueSpan,a)}else if(w[i1]){let L=[],B=w[_o],re=x(d,w[i1],B);this.bindingParser.parseEvent(B,c,!1,d,t.valueSpan||d,i,L,re),hp(L,s)}else if(w[r1]){let L=w[_o],B=x(d,w[r1],L);this.bindingParser.parsePropertyBinding(L,c,!1,!0,d,_,t.valueSpan,i,r,B),this.parseAssignmentEvent(L,c,d,t.valueSpan,i,s,B)}else if(w[nP]){let L=x(d,"",l);this.bindingParser.parseLiteralAttr(l,c,d,_,t.valueSpan,i,r,L)}return!0}let C=null;if(l.startsWith(Gi.BANANA_BOX.start)?C=Gi.BANANA_BOX:l.startsWith(Gi.PROPERTY.start)?C=Gi.PROPERTY:l.startsWith(Gi.EVENT.start)&&(C=Gi.EVENT),C!==null&&l.endsWith(C.end)&&l.length>C.start.length+C.end.length){let L=l.substring(C.start.length,l.length-C.end.length),B=x(d,C.start,L);if(C.start===Gi.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(L,c,!1,!0,d,_,t.valueSpan,i,r,B),this.parseAssignmentEvent(L,c,d,t.valueSpan,i,s,B);else if(C.start===Gi.PROPERTY.start)this.bindingParser.parsePropertyBinding(L,c,!1,!1,d,_,t.valueSpan,i,r,B);else{let re=[];this.bindingParser.parseEvent(L,c,!1,d,t.valueSpan||d,i,re,B),hp(re,s)}return!0}let T=x(d,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,d,t.valueSpan,i,r,T,t.valueTokens??null)}_visitTextWithInterpolation(e,t,i,r){let s=i_(e),o=this.bindingParser.parseInterpolation(s,t,i);return o?new Ns(o,t,r):new fi(s,t)}parseVariable(e,t,i,r,s,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',i):e.length===0&&this.reportError("Variable does not have a name",i),o.push(new Ki(e,t,i,r,s))}parseReference(e,t,i,r,s,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',i):e.length===0?this.reportError("Reference does not have a name",i):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,i),o.push(new Ko(e,t,i,r,s))}parseAssignmentEvent(e,t,i,r,s,o,a){let l=[];this.bindingParser.parseEvent(`${e}Change`,t,!0,i,r||i,s,l,a),hp(l,o)}reportError(e,t,i=Qi.ERROR){this.errors.push(new ie(t,e,i))}},Nd=class{visitElement(e){let t=M_(e);if(t.type===Gt.SCRIPT||t.type===Gt.STYLE||t.type===Gt.STYLESHEET)return null;let i=Ve(this,e.children,null);return new yn(e.name,Ve(this,e.attrs),[],[],i,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Ls(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new fi(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,t){let i=[new fi(e.startSourceSpan.toString(),e.startSourceSpan),...Ve(this,e.children)];return e.endSourceSpan!==null&&i.push(new fi(e.endSourceSpan.toString(),e.endSourceSpan)),i}visitBlockParameter(e,t){return null}visitLetDeclaration(e,t){return new fi(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},rP=new Nd;function o1(n){return/^data-/i.test(n)?n.substring(5):n}function hp(n,e){e.push(...n.map(t=>Np.fromParsedEvent(t)))}function sP(n){return n.children.length!==1||!(n.children[0]instanceof Vr)?null:n.children[0].value}var oP=[" ",`
37`,"\r","	"];function aP(n,e,t={}){let{interpolationConfig:i,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:s,allowInvalidAssignmentEvents:o}=t,a=Ec(i,o),c=new Pd().parse(n,e,_e(P({leadingTriviaChars:oP},t),{tokenizeExpansionForms:!0,tokenizeBlocks:t.enableBlockSyntax??!0,tokenizeLet:t.enableLetSyntax??!0}));if(!t.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let Ee={interpolationConfig:i,preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(Ee.commentNodes=[]),Ee}let d=c.rootNodes,_=!(t.preserveSignificantWhitespace??!0),x=new Sc(i,!r,s,void 0,t.preserveSignificantWhitespace,_),w=x.visitAllWithErrors(d);if(!t.alwaysAttemptHtmlToR3AstConversion&&w.errors&&w.errors.length>0){let Ee={interpolationConfig:i,preserveWhitespaces:r,errors:w.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(Ee.commentNodes=[]),Ee}d=w.rootNodes,r||(d=Ve(new _c(!0,void 0,!1),d),x.hasI18nMeta&&(d=Ve(new Sc(i,!1,void 0,void 0,!0,_),d)));let{nodes:C,errors:T,styleUrls:D,styles:L,ngContentSelectors:B,commentNodes:re}=iP(d,a,{collectCommentNodes:!!t.collectCommentNodes});T.push(...c.errors,...w.errors);let le={interpolationConfig:i,preserveWhitespaces:r,errors:T.length>0?T:null,nodes:C,styleUrls:D,styles:L,ngContentSelectors:B};return t.collectCommentNodes&&(le.commentNodes=re),le}var lP=new Ws;function Ec(n=Qn,e=!1){return new Ad(new vc(new da),n,lP,[],e)}var k_="%COMP%",cP=`_nghost-${k_}`,uP=`_ngcontent-${k_}`;function O_(n,e,t){let i=new Ji,r=zd(n.selector);return i.set("type",n.type.value),r.length>0&&i.set("selectors",_s(r)),n.queries.length>0&&i.set("contentQueries",aM(n.queries,e,n.name)),n.viewQueries.length&&i.set("viewQuery",oM(n.viewQueries,e,n.name)),i.set("hostBindings",vP(n.host,n.typeSourceSpan,t,e,n.selector||"",n.name,i)),i.set("inputs",F0(n.inputs,!0)),i.set("outputs",F0(n.outputs)),n.exportAs!==null&&i.set("exportAs",Pe(n.exportAs.map(s=>E(s)))),n.isStandalone&&i.set("standalone",E(!0)),n.isSignal&&i.set("signals",E(!0)),i}function D_(n,e){let t=[],i=e.providers,r=e.viewProviders,s=Object.keys(e.inputs);if(i||r){let o=[i||new bn([])];r&&o.push(r),t.push(q(b.ProvidersFeature).callFn(o))}for(let o of s)if(e.inputs[o].transformFunction!==null){t.push(q(b.InputTransformsFeatureFeature));break}e.hostDirectives?.length&&t.push(q(b.HostDirectivesFeature).callFn([wP(e.hostDirectives)])),e.usesInheritance&&t.push(q(b.InheritDefinitionFeature)),e.fullInheritance&&t.push(q(b.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&t.push(q(b.NgOnChangesFeature)),e.hasOwnProperty("template")&&e.isStandalone&&t.push(q(b.StandaloneFeature)),t.length&&n.set("features",Pe(t))}function pP(n,e,t){let i=O_(n,e,t);D_(i,n);let r=q(b.defineDirective).callFn([i.toLiteralMap()],void 0,!0),s=_P(n);return{expression:r,type:s,statements:[]}}function dP(n,e,t){let i=O_(n,e,t);D_(i,n);let r=n.selector&&Es.parse(n.selector),s=r&&r[0];if(s){let x=s.getAttrs();x.length&&i.set("attrs",e.getConstLiteral(Pe(x.map(w=>w!=null?E(w):E(void 0))),!0))}let o=n.name,a=null;if(n.defer.mode===1&&n.defer.dependenciesFn!==null){let x=`${o}_DeferFn`;e.statements.push(new vt(x,n.defer.dependenciesFn,void 0,ut.Final)),a=ue(x)}let l=HT(n.name,n.template.nodes,e,n.relativeContextFilePath,n.i18nUseExternalIds,n.defer,a);g_(l,H.Tmpl);let c=BT(l,e);if(l.contentSelectors!==null&&i.set("ngContentSelectors",l.contentSelectors),i.set("decls",E(l.root.decls)),i.set("vars",E(l.root.vars)),l.consts.length>0&&(l.constsInitializers.length>0?i.set("consts",Jn([],[...l.constsInitializers,new Ot(Pe(l.consts))])):i.set("consts",Pe(l.consts))),i.set("template",c),n.declarationListEmitMode!==3&&n.declarations.length>0)i.set("dependencies",mP(Pe(n.declarations.map(x=>x.type)),n.declarationListEmitMode));else if(n.declarationListEmitMode===3){let x=[n.type.value];n.rawImports&&x.push(n.rawImports),i.set("dependencies",q(b.getComponentDepsFactory).callFn(x))}if(n.encapsulation===null&&(n.encapsulation=mr.Emulated),n.styles&&n.styles.length){let w=(n.encapsulation==mr.Emulated?bP(n.styles,uP,cP):n.styles).reduce((C,T)=>(T.trim().length>0&&C.push(e.getConstLiteral(E(T))),C),[]);w.length>0&&i.set("styles",Pe(w))}else n.encapsulation===mr.Emulated&&(n.encapsulation=mr.None);n.encapsulation!==mr.Emulated&&i.set("encapsulation",E(n.encapsulation)),n.animations!==null&&i.set("data",yt([{key:"animation",value:n.animations,quoted:!1}])),n.changeDetection!==null&&(typeof n.changeDetection=="number"&&n.changeDetection!==qd.Default?i.set("changeDetection",E(n.changeDetection)):typeof n.changeDetection=="object"&&i.set("changeDetection",n.changeDetection));let d=q(b.defineComponent).callFn([i.toLiteralMap()],void 0,!0),_=hP(n);return{expression:d,type:_,statements:[]}}function hP(n){let e=N_(n);return e.push(Bd(n.template.ngContentSelectors)),e.push(pt(E(n.isStandalone))),e.push(L_(n)),n.isSignal&&e.push(pt(E(n.isSignal))),pt(q(b.ComponentDeclaration,e))}function mP(n,e){switch(e){case 0:return n;case 1:return Jn([],n);case 2:let t=n.prop("map").callFn([q(b.resolveForwardRef)]);return Jn([],t);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function fP(n){return pt(E(n))}function Ld(n){let e=Object.keys(n).map(t=>{let i=Array.isArray(n[t])?n[t][0]:n[t];return{key:t,value:E(i),quoted:!0}});return yt(e)}function Bd(n){return n.length>0?pt(Pe(n.map(e=>E(e)))):Zn}function N_(n){let e=n.selector!==null?n.selector.replace(/\n/g,""):null;return[kc(n.type.type,n.typeArgumentCount),e!==null?fP(e):Zn,n.exportAs!==null?Bd(n.exportAs):Zn,pt(gP(n)),pt(Ld(n.outputs)),Bd(n.queries.map(t=>t.propertyName))]}function gP(n){return yt(Object.keys(n.inputs).map(e=>{let t=n.inputs[e],i=[{key:"alias",value:E(t.bindingPropertyName),quoted:!0},{key:"required",value:E(t.required),quoted:!0}];return t.isSignal&&i.push({key:"isSignal",value:E(t.isSignal),quoted:!0}),{key:e,value:yt(i),quoted:!0}}))}function _P(n){let e=N_(n);return e.push(Zn),e.push(pt(E(n.isStandalone))),e.push(L_(n)),n.isSignal&&e.push(pt(E(n.isSignal))),pt(q(b.DirectiveDeclaration,e))}function vP(n,e,t,i,r,s,o){let a=t.createBoundHostProperties(n.properties,e),l=t.createDirectiveHostEventAsts(n.listeners,e);n.specialAttributes.styleAttr&&(n.attributes.style=E(n.specialAttributes.styleAttr)),n.specialAttributes.classAttr&&(n.attributes.class=E(n.specialAttributes.classAttr));let c=VT({componentName:s,componentSelector:r,properties:a,events:l,attributes:n.attributes},t,i);g_(c,H.Host),o.set("hostAttrs",c.root.attributes);let d=c.root.vars;return d!==null&&d>0&&o.set("hostVars",E(d)),RT(c)}var SP=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function xP(n){let e={},t={},i={},r={};for(let s of Object.keys(n)){let o=n[s],a=s.match(SP);if(a===null)switch(s){case"class":if(typeof o!="string")throw new Error("Class binding must be string");r.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");r.styleAttr=o;break;
37default:typeof o=="string"?e[s]=E(o):e[s]=o}else if(a[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");i[a[1]]=o}else if(a[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");t[a[2]]=o}}return{attributes:e,listeners:t,properties:i,specialAttributes:r}}function CP(n,e){let t=Ec();return t.createDirectiveHostEventAsts(n.listeners,e),t.createBoundHostProperties(n.properties,e),t.errors}function bP(n,e,t){let i=new jp;return n.map(r=>i.shimCssText(r,e,t))}function L_(n){return n.hostDirectives?.length?pt(Pe(n.hostDirectives.map(e=>yt([{key:"directive",value:Ac(e.directive.type),quoted:!1},{key:"inputs",value:Ld(e.inputs||{}),quoted:!1},{key:"outputs",value:Ld(e.outputs||{}),quoted:!1}])))):Zn}function wP(n){let e=[],t=!1;for(let i of n){if(!i.inputs&&!i.outputs)e.push(i.directive.type);else{let r=[{key:"directive",value:i.directive.type,quoted:!1}];if(i.inputs){let s=a1(i.inputs);s&&r.push({key:"inputs",value:s,quoted:!1})}if(i.outputs){let s=a1(i.outputs);s&&r.push({key:"outputs",value:s,quoted:!1})}e.push(yt(r))}i.isForwardReference&&(t=!0)}return t?new _i([],[new Ot(Pe(e))]):Pe(e)}function a1(n){let e=[];for(let t in n)n.hasOwnProperty(t)&&e.push(E(t),E(n[t]));return e.length>0?Pe(e):null}var Rd=class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let t=Fd.apply(e.template),i=yP(t),{directives:r,eagerDirectives:s,bindings:o,references:a}=Hd.apply(e.template,this.directiveMatcher),{expressions:l,symbols:c,nestingLevel:d,usedPipes:_,eagerPipes:x,deferBlocks:w}=Vd.applyWithScope(e.template,t);return new Ud(e,r,s,o,a,l,c,d,i,_,x,w)}},Fd=class n{constructor(e,t){this.parentScope=e,this.rootNode=t,this.namedEntities=new Map,this.elementsInScope=new Set,this.childScopes=new Map,this.isDeferred=e!==null&&e.isDeferred?!0:t instanceof Lr}static newRootScope(){return new n(null,null)}static apply(e){let t=n.newRootScope();return t.ingest(e),t}
37ingest(e){e instanceof Wt?(e.variables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof yr?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(t=>t.visit(this))):e instanceof Bs?(this.visitVariable(e.item),e.contextVariables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof jo||e instanceof Qo||e instanceof Lr||e instanceof zo||e instanceof Wo||e instanceof qo||e instanceof Rs?e.children.forEach(t=>t.visit(this)):e.forEach(t=>t.visit(this))}visitElement(e){e.references.forEach(t=>this.visitReference(t)),e.children.forEach(t=>t.visit(this)),this.elementsInScope.add(e)}visitTemplate(e){e.references.forEach(t=>this.visitReference(t)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){this.ingestScopedNode(e),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.cases.forEach(t=>t.visit(this))}visitSwitchBlockCase(e){this.ingestScopedNode(e)}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let t=this.childScopes.get(e);if(t===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return t}ingestScopedNode(e){let t=new n(this,e);t.ingest(e),this.childScopes.set(e,t)}},Hd=class n{constructor(e,t,i,r,s){this.matcher=e,this.directives=t,this.eagerDirectives=i,this.bindings=r,this.references=s,this.isInDeferBlock=!1}static apply(e,t){let i=new Map,r=new Map,s=new Map,o=[];return new n(t,i,o,r,s).ingest(e),{directives:i,eagerDirectives:o,bindings:r,references:s}}ingest(e){e.forEach(t=>t.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitElementOrTemplate(e){let t=lx(e),i=[];this.matcher.match(t,(s,o)=>i.push(...o)),i.length>0&&(this.directives.set(e,i),this.isInDeferBlock||this.eagerDirectives.push(...i)),e.references.forEach(s=>{let o=null;if(s.value.trim()==="")o=i.find(a=>a.isComponent)||null;else if(o=i.find(a=>a.exportAs!==null&&a.exportAs.some(l=>l===s.value))||null,o===null)return;o!==null?this.references.set(s,{directive:o,node:e}):this.references.set(s,e)});let r=(s,o)=>{let a=i.find(c=>c[o].hasBindingPropertyName(s.name)),l=a!==void 0?a:e;this.bindings.set(s,l)};e.inputs.forEach(s=>r(s,"inputs")),e.attributes.forEach(s=>r(s,"inputs")),e instanceof Wt&&e.templateAttrs.forEach(s=>r(s,"inputs")),e.outputs.forEach(s=>r(s,"outputs")),e.children.forEach(s=>s.visit(this))}visitDeferredBlock(e){let t=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(i=>i.visit(this)),this.isInDeferBlock=t,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(t=>t.visit(this))}visitDeferredBlockError(e){e.children.forEach(t=>t.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(t=>t.visit(this))}visitSwitchBlock(e){e.cases.forEach(t=>t.visit(this))}visitSwitchBlockCase(e){e.children.forEach(t=>t.visit(this))}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEac
37h(t=>t.visit(this)),e.children.forEach(t=>t.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(t=>t.visit(this))}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(t=>t.visit(this))}visitContent(e){e.children.forEach(t=>t.visit(this))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},Vd=class n extends Nl{constructor(e,t,i,r,s,o,a,l,c){super(),this.bindings=e,this.symbols=t,this.usedPipes=i,this.eagerPipes=r,this.deferBlocks=s,this.nestingLevel=o,this.scope=a,this.rootNode=l,this.level=c,this.visitNode=d=>d.visit(this)}visit(e,t){e instanceof Ue?e.visit(this,t):e.visit(this)}static applyWithScope(e,t){let i=new Map,r=new Map,s=new Map,o=new Set,a=new Set,l=e instanceof Wt?e:null,c=[];return new n(i,r,o,a,c,s,t,l,0).ingest(e),{expressions:i,symbols:r,nestingLevel:s,usedPipes:o,eagerPipes:a,deferBlocks:c}}
37ingest(e){if(e instanceof Wt)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof yr)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Bs)this.visitNode(e.item),e.contextVariables.forEach(t=>this.visitNode(t)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Lr){if(this.scope.rootNode!==e)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${e}`);this.deferBlocks.push([e,this.scope]),e.children.forEach(t=>t.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof jo||e instanceof Qo||e instanceof zo||e instanceof Wo||e instanceof qo||e instanceof Rs?(e.children.forEach(t=>t.visit(this)),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)}visitElement(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEac
37h(this.visitNode),e.references.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitReference(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitText(e){}visitTextAttribute(e){}visitUnknownBlock(e){}visitDeferredTrigger(){}visitIcu(e){Object.keys(e.vars).forEach(t=>e.vars[t].visit(this)),Object.keys(e.placeholders).forEach(t=>e.placeholders[t].visit(this))}visitBoundAttribute(e){e.value.visit(this)}visitBoundEvent(e){e.handler.visit(this)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.visit(this),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.expression.visit(this),e.cases.forEach(this.visitNode)}visitSwitchBlockCase(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitBoundText(e){e.value.visit(this)}visitLetDeclaration(e){e.value.visit(this),this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitPipe(e,t){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,t)}visitPropertyRead(e,t){return this.maybeMap(e,e.name),super.visitPropertyRead(e,t)}visitSafePropertyRead(e,t){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,t)}visitPropertyWrite(e,t){return this.maybeMap(e,e.name),super.visitPropertyWrite(e,t)}ingestScopedNode(e){let t=this.scope.getChildScope(e);new n(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,t,e,this.level+1).ingest(e)}maybeMap(e,t){if(!(e.receiver instanceof vi))return;let i=this.scope.lookup(t);i instanceof Xo&&e.receiver instanceof wr||i!==null&&this.bindings.set(e,i)}},Ud=class{constructor(e,t,i,r,s,o,a,l,c,d,_,x){this.target=e,this.directives=t,this.eagerDirectives=i,this.bindings=r,this.references=s,this.exprTargets=o,this.symbols=a,this.nestingLevel=l,this.scopedNodeEntities=c,this.usedPipes=d,this.eagerPipes=_,this.deferredBlocks=x.map(w=>w[0]),this.deferredScopes=new Map(x)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(t=>t.forEach(i=>e.add(i))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,t){if(!(t instanceof Fl)&&!(t instanceof Hl)&&!(t instanceof Rl))return null;let i=t.reference;if(i===null){let s=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof Ds)){if(s!==null)return null;o instanceof yn&&(s=o)}}return s}let r=this.findEntityInScope(e,i);if(r instanceof Ko&&this.getDefinitionNodeOfSymbol(r)!==e){let s=this.getReferenceTarget(r);if(s!==null)return this.referenceTargetToElement(s)}if(e.placeholder!==null){let s=this.findEntityInScope(e.placeholder,i),o=s instanceof Ko?this.getReferenceTarget(s):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(let t of this.deferredBlocks){if(!this.deferredScopes.has(t))continue;let i=[this.deferredScopes.get(t)];for(;i.length>0;){let r=i.pop();if(r.elementsInScope.has(e))return!0;
37i.push(...r.childScopes.values())}}return!1}findEntityInScope(e,t){let i=this.getEntitiesInScope(e);for(let r of i)if(r.name===t)return r;return null}referenceTargetToElement(e){return e instanceof yn?e:e instanceof Wt?null:this.referenceTargetToElement(e.node)}};function yP(n){let e=new Map;function t(s){if(e.has(s.rootNode))return e.get(s.rootNode);let o=s.namedEntities,a;return s.parentScope!==null?a=new Map([...t(s.parentScope),...o]):a=new Map(o),e.set(s.rootNode,a),a}let i=[n];for(;i.length>0;){let s=i.pop();for(let o of s.childScopes.values())i.push(o);t(s)}let r=new Map;for(let[s,o]of e)r.set(s,new Set(o.values()));return r}var Gd=class{},$d=class{constructor(e=new Wp){this.jitEvaluator=e,this.FactoryTarget=di,this.ResourceLoader=Gd,this.elementSchemaRegistry=new Ws}compilePipe(e,t,i){let r={name:i.name,type:Ke(i.type),typeArgumentCount:0,deps:null,pipeName:i.pipeName,pure:i.pure,isStandalone:i.isStandalone},s=Q0(r);return this.jitExpression(s.expression,e,t,[])}compilePipeDeclaration(e,t,i){let r=UP(i),s=Q0(r);return this.jitExpression(s.expression,e,t,[])}compileInjectable(e,t,i){let{expression:r,statements:s}=H0({name:i.name,type:Ke(i.type),typeArgumentCount:i.typeArgumentCount,providedIn:h1(i.providedIn),useClass:hs(i,"useClass"),useFactory:d1(i,"useFactory"),useValue:hs(i,"useValue"),useExisting:hs(i,"useExisting"),deps:i.deps?.map(H_)},!0);return this.jitExpression(r,e,t,s)}compileInjectableDeclaration(e,t,i){let{expression:r,statements:s}=H0({name:i.type.name,type:Ke(i.type),typeArgumentCount:0,providedIn:h1(i.providedIn),useClass:hs(i,"useClass"),useFactory:d1(i,"useFactory"),useValue:hs(i,"useValue"),useExisting:hs(i,"useExisting"),deps:i.deps?.map(m1)},!0);return this.jitExpression(r,e,t,s)}compileInjector(e,t,i){let r={name:i.name,type:Ke(i.type),providers:i.providers&&i.providers.length>0?new pe(i.providers):null,imports:i.imports.map(o=>new pe(o))},s=j0(r);return this.jitExpression(s.expression,e,t,[])}compileInjectorDeclaration(e,t,i){let r=GP(i),s=j0(r);return this.jitExpression(s.expression,e,t,[])}compileNgModule(e,t,i){let r={kind:Xi.Global,type:Ke(i.type),bootstrap:i.bootstrap.map(Ke),declarations:i.declarations.map(Ke),publicDeclarationTypes:null,imports:i.imports.map(Ke),includeImportTypes:!0,exports:i.exports.map(Ke),selectorScopeMode:Kl.Inline,containsForwardDecls:!1,schemas:i.schemas?i.schemas.map(Ke):null,id:i.id?new pe(i.id):null},s=Dx(r);return this.jitExpression(s.expression,e,t,[])}compileNgModuleDeclaration(e,t,i){let r=Nx(i);return this.jitExpression(r,e,t,[])}compileDirective(e,t,i){let r=u1(i);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,i){let r=this.createParseSourceSpan("Directive",i.type.name,t),s=R_(i,r);return this.compileDirectiveFromMeta(e,t,s)}compileDirectiveFromMeta(e,t,i){let r=new bl,s=Ec(),o=pP(i,r,s);return this.jitExpression(o.expression,e,t,r.statements)}compileComponent(e,t,i){let{template:r,interpolation:s,defer:o}=F_(i.template,i.name,t,i.preserveWhitespaces,i.interpolation,void 0),a=_e(P(P({},i),u1(i)),{selector:i.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:i.declarations.map(PP),declarationListEmitMode:0,defer:o,styles:[...i.styles,...r.styles],encapsulation:i.encapsulation,interpolation:s,changeDetection:i.changeDetection??null,animations:i.animations!=null?new pe(i.animations):null,viewProviders:i.viewProviders!=null?new pe(i.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),l=`ng:///${i.name}.js`;return this.compileComponentFromMeta(e,l,a)}compileComponentDeclaration(e,t,i){let r=this.createParseSourceSpan("Component",i.type.name,t),s=MP(i,r,t);return this.compileComponentFromMeta(e,t,s)}compileComponentFromMeta(e,t,i){let r=new bl,s=Ec(i.interpolation),o=dP(i,r,s);return this.jitExpression(o.expression,e,t,r.statements)}compileFactory(e,t,i){let r=fr({name:i.name,type:Ke(i.type),typeArgumentCount:i.typeArgumentCount,deps:kP(i.deps),target:i.target});return this.jitExpression(r.expression,e,t,r.statements)}compileFactoryDeclaration(e,t,i){let r=fr({name:i.type.name,type:Ke(i.type),typeArgumentCount:0,deps:Array.isArray(i.deps)?i.deps.map(m1):i.deps,target:i.target});return this.jitExpression(r.expression,e,t,r.statements)}createParseSourceSpan(e,t,i){return Tx(e,t,i)}jitExpression(e,t,i,r){let s=[...r,new vt("$def",e,void 0,ut.Exported)];return this.jitEvaluator.evaluateStatements(i,s,new zp(t),!0).$def}};function l1(n){return _e(P({},n),{isSignal:n.isSignal,predicate:B_(n.predicate),read:n.read?new pe(n.read):null,
37static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function c1(n){return{propertyName:n.propertyName,first:n.first??!1,predicate:B_(n.predicate),descendants:n.descendants??!1,read:n.read?new pe(n.read):null,static:n.static??!1,emitDistinctChangesOnly:n.emitDistinctChangesOnly??!0,isSignal:!!n.isSignal}}function B_(n){return Array.isArray(n)?n:Xd(new pe(n),1)}function u1(n){let e=VP(n.inputs||[]),t=fp(n.outputs||[]),i=n.propMetadata,r={},s={};for(let a in i)i.hasOwnProperty(a)&&i[a].forEach(l=>{BP(l)?r[a]={bindingPropertyName:l.alias||a,classPropertyName:a,required:l.required||!1,isSignal:!!l.isSignal,transformFunction:l.transform!=null?new pe(l.transform):null}:RP(l)&&(s[a]=l.alias||a)});let o=n.hostDirectives?.length?n.hostDirectives.map(a=>typeof a=="function"?{directive:Ke(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Ke(a.directive),isForwardReference:!1,inputs:a.inputs?fp(a.inputs):null,outputs:a.outputs?fp(a.outputs):null}):null;return _e(P({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:Ke(n.type),deps:null,host:P({},DP(n.propMetadata,n.typeSourceSpan,n.host)),inputs:P(P({},e),r),outputs:P(P({},t),s),queries:n.queries.map(l1),providers:n.providers!=null?new pe(n.providers):null,viewQueries:n.viewQueries.map(l1),fullInheritance:!1,hostDirectives:o})}function R_(n,e){let t=n.hostDirectives?.length?n.hostDirectives.map(i=>({directive:Ke(i.directive),isForwardReference:!1,inputs:i.inputs?p1(i.inputs):null,outputs:i.outputs?p1(i.outputs):null})):null;return{name:n.type.name,type:Ke(n.type),typeSourceSpan:e,selector:n.selector??null,inputs:n.inputs?FP(n.inputs):{},outputs:n.outputs??{},host:EP(n.host),queries:(n.queries??[]).map(c1),viewQueries:(n.viewQueries??[]).map(c1),providers:n.providers!==void 0?new pe(n.providers):null,exportAs:n.exportAs??null,usesInheritance:n.usesInheritance??!1,lifecycle:{usesOnChanges:n.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:n.isStandalone??!1,isSignal:n.isSignal??!1,hostDirectives:t}}function EP(n={}){return{attributes:TP(n.attributes??{}),listeners:n.listeners??{},properties:n.properties??{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function p1(n){let e=null;for(let t=1;t<n.length;t+=2)e=e||{},e[n[t-1]]=n[t];return e}function TP(n){let e={};for(let t of Object.keys(n))e[t]=new pe(n[t]);return e}function MP(n,e,t){let{template:i,interpolation:r,defer:s}=F_(n.template,n.type.name,t,n.preserveWhitespaces??!1,n.interpolation,n.deferBlockDependencies),o=[];if(n.dependencies)for(let a of n.dependencies)switch(a.kind){case"directive":case"component":o.push(mp(a));break;case"pipe":o.push(IP(a));break}else(n.components||n.directives||n.pipes)&&(n.components&&o.push(...n.components.map(a=>mp(a,!0))),n.directives&&o.push(...n.directives.map(a=>mp(a))),n.pipes&&o.push(...AP(n.pipes)));return _e(P({},R_(n,e)),{template:i,styles:n.styles??[],declarations:o,viewProviders:n.viewProviders!==void 0?new pe(n.viewProviders):null,animations:n.animations!==void 0?new pe(n.animations):null,defer:s,changeDetection:n.changeDetection??qd.Default,encapsulation:n.encapsulation??mr.Emulated,interpolation:r,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}function PP(n){return _e(P({},n),{type:new pe(n.type)})}function mp(n,e=null){return{kind:Dc.Directive,isComponent:e||n.kind==="component",selector:n.selector,type:new pe(n.type),inputs:n.inputs??[],outputs:n.outputs??[],exportAs:n.exportAs??null}}function AP(n){return n?Object.keys(n).map(e=>({kind:Dc.Pipe,name:e,type:new pe(n[e])})):[]}function IP(n){return{kind:Dc.Pipe,name:n.name,type:new pe(n.type)}}function F_(n,e,t,i,r,s){let o=r?zl.fromArray(r):Qn,a=aP(n,t,{preserveWhitespaces:i,interpolationConfig:o});if(a.errors!==null){let d=a.errors.map(_=>_.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${d}`)}let c=new Rd(new dl).bind({template:a.nodes});return{template:a,interpolation:o,defer:OP(c,s)}}function hs(n,e){if(n.hasOwnProperty(e))return Xd(new pe(n[e]),0)}function d1(n,e){if(n.hasOwnProperty(e))return new pe(n[e])}function h1(n){let e=typeof n=="function"?new pe(n):new dt(n??null);return Xd(e,0)}function kP(n){return n==null?null:n.map(H_)}function H_(n){let e=n.attribute!=null,t=n.token===null?null:new pe(n.token),i=e?new pe(n.attribute):t;return V_(i,e,n.host,n.optional,n.self,n.skipSelf)}function m1(n){let e=n.attribute??!1,t=n.token===null?null:new pe(n.token);return V_(t,e,n.host??!1,n.optional??!1,n.self??!1,n.skipSelf??!1)}function V_(n,e,t,i,r,s){let o=e?E("unknown"):null;return{token:n,attributeNameType:o,host:t,optional:i,self:r,skipSelf:s}}function OP(n,e){let t=n.getDeferBlocks(),i=new Map;for(let r=0;r<t.length;r++){let s=e?.[r];i.set(t[r],s?new pe(s):null)}return{mode:0,blocks:i}}function DP(n,e,t){let i=xP(t||{}),r=CP(i,e);if(r.length)throw new Error(r.map(s=>s.msg).join(`
38`));
38for(let s in n)n.hasOwnProperty(s)&&n[s].forEach(o=>{NP(o)?i.properties[o.hostPropertyName||s]=q2("this",s):LP(o)&&(i.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return i}function NP(n){return n.ngMetadataName==="HostBinding"}function LP(n){return n.ngMetadataName==="HostListener"}function BP(n){return n.ngMetadataName==="Input"}function RP(n){return n.ngMetadataName==="Output"}function FP(n){return Object.keys(n).reduce((e,t)=>{let i=n[t];return typeof i=="string"||Array.isArray(i)?e[t]=HP(i):e[t]={bindingPropertyName:i.publicName,classPropertyName:t,transformFunction:i.transformFunction!==null?new pe(i.transformFunction):null,required:i.isRequired,isSignal:i.isSignal},e},{})}function HP(n){return typeof n=="string"?{bindingPropertyName:n,classPropertyName:n,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:n[0],classPropertyName:n[1],transformFunction:n[2]?new pe(n[2]):null,required:!1,isSignal:!1}}function VP(n){return n.reduce((e,t)=>{if(typeof t=="string"){let[i,r]=U_(t);e[r]={bindingPropertyName:i,classPropertyName:r,required:!1,isSignal:!1,transformFunction:null}}else e[t.name]={bindingPropertyName:t.alias||t.name,classPropertyName:t.name,required:t.required||!1,isSignal:!1,transformFunction:t.transform!=null?new pe(t.transform):null};return e},{})}function fp(n){return n.reduce((e,t)=>{let[i,r]=U_(t);return e[r]=i,e},{})}function U_(n){let[e,t]=n.split(":",2).map(i=>i.trim());return[t??e,e]}function UP(n){return{name:n.type.name,type:Ke(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:n.pure??!0,isStandalone:n.isStandalone??!1}}function GP(n){return{name:n.type.name,type:Ke(n.type),providers:n.providers!==void 0&&n.providers.length>0?new pe(n.providers):null,imports:n.imports!==void 0?n.imports.map(e=>new pe(e)):[]}}function $P(n){let e=n.ng||(n.ng={});e.\u0275compilerFacade=new $d}var NN=new wp("18.2.13");var Wd=class{constructor(){this.closedByParent=!1,this.implicitNamespacePrefix=null,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return jn.PARSABLE_DATA}},LN=new Wd;$P(wo);function G_(n){return new we(3e3,!1)}function WP(){return new we(3100,!1)}function qP(){return new we(3101,!1)}function zP(n){return new we(3001,!1)}function jP(n){return new we(3003,!1)}function QP(n){return new we(3004,!1)}function XP(n,e){return new we(3005,!1)}function KP(){return new we(3006,!1)}function YP(){return new we(3007,!1)}function ZP(n,e){return new we(3008,!1)}function JP(n){return new we(3002,!1)}function eA(n,e,t,i,r){return new we(3010,!1)}function tA(){return new we(3011,!1)}function nA(){return new we(3012,!1)}function iA(){return new we(3200,!1)}function rA(){return new we(3202,!1)}function sA(){return new we(3013,!1)}function oA(n){return new we(3014,!1)}function aA(n){return new we(3015,!1)}function lA(n){return new we(3016,!1)}function cA(n,e){return new we(3404,!1)}function uA(n){return new we(3502,!1)}function pA(n){return new we(3503,!1)}function dA(){return new we(3300,!1)}function hA(n){return new we(3504,!1)}function mA(n){return new we(3301,!1)}function fA(n,e){return new we(3302,!1)}function gA(n){return new we(3303,!1)}function _A(n,e){return new we(3400,!1)}function vA(n){return new we(3401,!1)}function SA(n){return new we(3402,!1)}function xA(n,e){return new we(3505,!1)}function ir(n){switch(n.length){case 0:return new rs;case 1:return n[0];default:return new Vu(n)}}function nv(n,e,t=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,_=d&&a||new Map;l.forEach((x,w)=>{let C=w,T=x;if(w!=="offset")switch(C=n.normalizePropertyName(C,r),T){case Ka:T=t.get(w);break;case Hn:T=i.get(w);break;default:T=n.normalizeStyleValue(w,C,T,r);break}_.set(C,T)}),d||s.push(_),a=_,o=c}),r.length)throw uA(r);return s}function Vh(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&vh(t,"start",n)));break;case"done":n.onDone(()=>i(t&&vh(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&vh(t,"destroy",n)));break}}function vh(n,e,t){let i=t.totalTime,r=!!t.disabled,s=Uh(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function Uh(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Yt(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function $_(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var CA=typeof document>"u"?null:document.documentElement;function Gh(n){let e=n.parentNode||n.host||null;return e===CA?null:e}function bA(n){return n.substring(1,6)=="ebkit"}var Ur=null,W_=!1;function wA(n){Ur||(Ur=yA()||{},W_=Ur.style?"WebkitAppearance"in Ur.style:!1);let e=!0;return Ur.style&&!bA(n)&&(e=n in Ur.style,!e&&W_&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ur.style)),e}function yA(){return typeof document<"u"?document.body:null}function iv(n,e){for(;e;){if(e===n)return!0;e=Gh(e)}return!1}function rv(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var $h=(()=>{let e=class e{validateStyleProperty(i){return wA(i)}containsElement(i,r){return iv(i,r)}getParentElement(i){return Gh(i)}query(i,r,s){return rv(i,r,s)}computeStyle(i,r,s){return s||""}animate(i,r,s,o,a,l=[],c){return new rs(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=me({token:e,factory:e.\u0275fac});let n=e;return n})(),jh=class jh{};jh.NOOP=new $h;var Wr=jh,qr=class{};var EA=1e3,sv="{{",TA="}}",ov="ng-enter",yh="ng-leave",Hc="ng-trigger",Wc=".ng-trigger",q_="ng-animating",Eh=".ng-animating";function Ai(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Th(parseFloat(e[1]),e[2])}function Th(n,e){switch(e){case"s":return n*EA;default:return n}}function qc(n,e,t){return n.hasOwnProperty("duration")?n:MA(n,e,t)}function MA(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(G_(n)),{duration:0,delay:0,easing:""};r=Th(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Th(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;
vendor: 44,306 bytes, line 38
38r<0&&(e.push(WP()),a=!0),s<0&&(e.push(qP()),a=!0),a&&e.splice(l,0,G_(n))}return{duration:r,delay:s,easing:o}}function PA(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function ii(n,e,t){e.forEach((i,r)=>{let s=Wh(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function $r(n,e){e.forEach((t,i)=>{let r=Wh(i);n.style[r]=""})}function xa(n){return Array.isArray(n)?n.length==1?n[0]:Cf(n):n}function AA(n,e,t){let i=e.params||{},r=av(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(zP(s))})}var Mh=new RegExp(`${sv}\\s*(.+?)\\s*${TA}`,"g");function av(n){let e=[];if(typeof n=="string"){let t;for(;t=Mh.exec(n);)e.push(t[1]);Mh.lastIndex=0}return e}function ba(n,e,t){let i=`${n}`,r=i.replace(Mh,(s,o)=>{let a=e[o];return a==null&&(t.push(jP(o)),a=""),a.toString()});return r==i?n:r}var IA=/-+([a-z0-9])/g;function Wh(n){return n.replace(IA,(...e)=>e[1].toUpperCase())}function kA(n,e){return n===0||e===0}function OA(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<e.length;s++){let o=e[s];r.forEach(a=>o.set(a,qh(n,a)))}}return e}function Kt(n,e,t){switch(e.type){case Ce.Trigger:return n.visitTrigger(e,t);case Ce.State:return n.visitState(e,t);case Ce.Transition:return n.visitTransition(e,t);case Ce.Sequence:return n.visitSequence(e,t);case Ce.Group:return n.visitGroup(e,t);case Ce.Animate:return n.visitAnimate(e,t);case Ce.Keyframes:return n.visitKeyframes(e,t);case Ce.Style:return n.visitStyle(e,t);case Ce.Reference:return n.visitReference(e,t);case Ce.AnimateChild:return n.visitAnimateChild(e,t);case Ce.AnimateRef:return n.visitAnimateRef(e,t);case Ce.Query:return n.visitQuery(e,t);case Ce.Stagger:return n.visitStagger(e,t);default:throw QP(e.type)}}function qh(n,e){return window.getComputedStyle(n)[e]}var DA=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),zc=class extends qr{normalizePropertyName(e,t){return Wh(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(DA.has(t)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(XP(e,i))}return o+s}};var jc="*";function NA(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>LA(i,t,e)):t.push(n),t}function LA(n,e,t){if(n[0]==":"){let l=BA(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(aA(n)),e;let r=i[1],s=i[2],o=i[3];e.push(z_(r,o));let a=r==jc&&o==jc;s[0]=="<"&&!a&&e.push(z_(o,r))}function BA(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(lA(n)),"* => *"}}var Vc=new Set(["true","1"]),Uc=new Set(["false","0"]);function z_(n,e){let t=Vc.has(n)||Uc.has(n),i=Vc.has(e)||Uc.has(e);return(r,s)=>{let o=n==jc||n==r,a=e==jc||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?Vc.has(n):Uc.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?Vc.has(e):Uc.has(e)),o&&a}}var lv=":self",RA=new RegExp(`s*${lv}s*,?`,"g");function cv(n,e,t,i){return new Ph(n).build(e,t,i)}var j_="",Ph=class{constructor(e){this._driver=e}build(e,t,i){let r=new Ah(t);return this._resetContextStyleTimingState(r),Kt(this,xa(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=j_,e.collectedStyles=new Map,e.collectedStyles.set(j_,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(KP()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==Ce.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==Ce.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(YP())}),{type:Ce.Trigger,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{av(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(ZP(e.name,[...s.values()]))}return{type:Ce.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=Kt(this,xa(e.animation),t),r=NA(e.expr,t.errors);return{type:Ce.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Gr(e.options)}}visitSequence(e,t){return{type:Ce.Sequence,steps:e.steps.map(i=>Kt(this,i,t)),options:Gr(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=i;let a=Kt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:Ce.Group,steps:s,options:Gr(e.options)}}visitAnimate(e,t){let i=UA(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:pi({});if(s.type==Ce.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=pi(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:Ce.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===Hn?i.push(a):t.errors.push(JP(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(sv)>=0){s=!0;break}}}),{type:Ce.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),_=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(t.errors.push(eA(l,d.startTime,d.endTime,s,r)),_=!1),s=d.startTime),_&&c.set(l,{startTime:s,endTime:r}),t.options&&AA(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:Ce.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(tA()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(L=>{let B=this._makeStyleAst(L,t),re=B.offset!=null?B.offset:VA(B.styles),le=0;return re!=null&&(s++,le=B.offset=re),l=l||le<0||le>1,a=a||le<c,c=le,o.push(le),B});l&&t.errors.push(nA()),a&&t.errors.push(iA());let _=e.steps.length,x=0;s>0&&s<_?t.errors.push(rA()):s==0&&(x=r/(_-1));let w=_-1,C=t.currentTime,T=t.currentAnimateTimings,D=T.duration;return d.forEach((L,B)=>{let re=x>0?B==w?1:x*B:o[B],le=re*D;t.currentTime=C+T.delay+le,T.duration=le,this._validateStyleAst(L,t),L.offset=re,i.styles.push(L)}),i}visitReference(e,t){return{type:Ce.Reference,animation:Kt(this,xa(e.animation),t),options:Gr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Ce.AnimateChild,options:Gr(e.options)}}visitAnimateRef(e,t){return{type:Ce.AnimateRef,animation:this.visitReference(e.animation,t),options:Gr(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=FA(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Yt(t.collectedStyles,t.currentQuerySelector,new Map);let a=Kt(this,xa(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:Ce.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Gr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(sA());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:qc(e.timings,t.errors,!0);return{type:Ce.Stagger,animation:Kt(this,xa(e.animation),t),timings:i,options:null}}};function FA(n){let e=!!n.split(/\s*,\s*/).find(t=>t==lv);return e&&(n=n.replace(RA,"")),n=n.replace(/@\*/g,Wc).replace(/@\w+/g,t=>Wc+"-"+t.slice(1)).replace(/:animating/g,Eh),[n,e]}function HA(n){return n?P({},n):null}var Ah=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function VA(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function UA(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=qc(n,e).duration;return Sh(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Sh(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=qc(t,e);return Sh(r.duration,r.delay,r.easing)}function Gr(n){return n?(n=P({},n),n.params&&(n.params=HA(n.params))):n={},n}function Sh(n,e,t){return{duration:n,delay:e,easing:t}}function zh(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var wa=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},GA=1,$A=":enter",WA=new RegExp($A,"g"),qA=":leave",zA=new RegExp(qA,"g");function uv(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new Ih().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var Ih=class{buildKeyframes(e,t,i,r,s,o,a,l,c,d=[]){c=c||new wa;let _=new kh(e,t,c,r,s,d,[]);_.options=l;let x=l.delay?Ai(l.delay):0;_.currentTimeline.delayNextStep(x),_.currentTimeline.setStyles([o],null,_.errors,l),Kt(this,i,_);let w=_.timelines.filter(C=>C.containsAnimation());if(w.length&&a.size){let C;for(let T=w.length-1;T>=0;T--){let D=w[T];if(D.element===t){C=D;break}}C&&!C.allowOnlyTimelineStyles()&&C.setStyles([a],null,_.errors,l)}return w.length?w.map(C=>C.buildKeyframes()):[zh(t,[],[],[],0,x,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Ai(ba(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?Ai(i.duration):null,a=i.delay!=null?Ai(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Kt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==Ce.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qc);let o=Ai(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Kt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?Ai(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),Kt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?ba(i,t.params,t.errors):i;return qc(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let s=e.style;s.type==Ce.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ai(r.delay):0;s&&(t.previousNode.type===Ce.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Qc);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let _=t.createSubContext(e.options,c);s&&_.delayNextStep(s),c===t.element&&(l=_.currentTimeline),Kt(this,e.animation,_),_.currentTimeline.applyStylesToKeyframe();let x=_.currentTimeline.currentTime;o=Math.max(o,x)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let _=d.currentTime;Kt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-_+(r.startTime-i.currentTimeline.startTime)}},Qc={},kh=class n{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Xc(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=Ai(i.duration)),i.delay!=null&&(r.delay=Ai(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ba(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Qc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new Oh(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(WA,"."+this._enterClassName),e=e.replace(zA,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push(oA(t)),a}},Xc=class n{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=GA,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Hn),this._currentKeyframe.set(t,Hn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=jA(e,this._globalTimelineStyles);for(let[a,l]of o){let c=ba(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Hn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,_)=>{d===Ka?e.add(_):d===Hn&&t.add(_)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return zh(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Oh=class extends Xc{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",Q_(a)),s.push(c);let d=e.length-1;for(let _=1;_<=d;_++){let x=new Map(e[_]),w=x.get("offset"),C=t+w*i;x.set("offset",Q_(C/o)),s.push(x)}i=o,t=0,r="",e=s}return zh(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function Q_(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function jA(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,Hn)}else for(let[s,o]of r)t.set(s,o)}),t}function X_(n,e,t,i,r,s,o,a,l,c,d,_,x){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:_,errors:x}}var xh={},Kc=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return QA(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,d){let _=[],x=this.ast.options&&this.ast.options.params||xh,w=a&&a.params||xh,C=this.buildStyles(i,w,_),T=l&&l.params||xh,D=this.buildStyles(r,T,_),L=new Set,B=new Map,re=new Map,le=r==="void",Ee={params:pv(T,x),delay:this.ast.options?.delay},Je=d?[]:uv(e,t,this.ast.animation,s,o,C,D,Ee,c,_),ze=0;return Je.forEach(Le=>{ze=Math.max(Le.duration+Le.delay,ze)}),_.length?X_(t,this._triggerName,i,r,le,C,D,[],[],B,re,ze,_):(Je.forEach(Le=>{let Jt=Le.element,jr=Yt(B,Jt,new Set);Le.preStyleProps.forEach(sr=>jr.add(sr));let ym=Yt(re,Jt,new Set);Le.postStyleProps.forEach(sr=>ym.add(sr)),Jt!==t&&L.add(Jt)}),X_(t,this._triggerName,i,r,le,C,D,Je,[...L.values()],B,re,ze))}};function QA(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function pv(n,e){let t=P({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var Dh=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=pv(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=ba(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function XA(n,e,t){return new Nh(n,e,t)}var Nh=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Dh(r.style,s,i))}),K_(this.states,"true","1"),K_(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Kc(e,r,this.states))}),this.fallbackTransition=KA(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function KA(n,e,t){let i=[(o,a)=>!0],r={type:Ce.Sequence,steps:[],options:null},s={type:Ce.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Kc(n,s,e)}function K_(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var YA=new wa,Lh=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],r=[],s=cv(this._driver,t,i,r);if(i.length)throw pA(i);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=nv(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=uv(this._driver,t,s,ov,yh,new Map,new Map,i,YA,r),o.forEach(d=>{let _=Yt(a,d.element,new Map);d.postStyleProps.forEach(x=>_.set(x,null))})):(r.push(dA()),o=[]),r.length)throw hA(r);a.forEach((d,_)=>{d.forEach((x,w)=>{d.set(w,this._driver.computeStyle(_,w,Hn))})});let l=o.map(d=>{let _=a.get(d.element);return this._buildPlayer(d,new Map,_)}),c=ir(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw mA(e);return t}listen(e,t,i,r){let s=Uh(t,"","","");return Vh(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},Y_="ng-animate-queued",ZA=".ng-animate-queued",Ch="ng-animate-disabled",JA=".ng-animate-disabled",eI="ng-star-inserted",tI=".ng-star-inserted",nI=[],dv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},iI={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Nn="__ng_removed",ya=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=sI(r),i){let s=e,{value:o}=s,a=Pm(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},Ca="void",bh=new ya(Ca),Bh=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Tn(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw fA(i,t);if(i==null||i.length==0)throw gA(t);if(!oI(i))throw _A(i,t);let s=Yt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);let a=Yt(this._engine.statesByElement,e,new Map);return a.has(t)||(Tn(e,Hc),Tn(e,Hc+"-"+t),a.set(t,bh)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vA(e);return t}trigger(e,t,i,r=!0){let s=this._getTrigger(t),o=new Ea(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Tn(e,Hc),Tn(e,Hc+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new ya(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=bh),!(c.value===Ca)&&l.value===c.value){if(!cI(l.params,c.params)){let T=[],D=s.matchStyles(l.value,l.params,T),L=s.matchStyles(c.value,c.params,T);T.length?this._engine.reportError(T):this._engine.afterFlush(()=>{$r(e,D),ii(e,L)})}return}let x=Yt(this._engine.playersByElement,e,[]);x.forEach(T=>{T.namespaceId==this.id&&T.triggerName==t&&T.queued&&T.destroy()});let w=s.matchTransition(l.value,c.value,e,c.params),C=!1;if(!w){if(!r)return;w=s.fallbackTransition,C=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:w,fromState:l,toState:c,player:o,isFallbackTransition:C}),C||(Tn(e,Y_),o.onStart(()=>{Js(e,Y_)})),o.onDone(()=>{let T=this.players.indexOf(o);T>=0&&this.players.splice(T,1);let D=this._engine.playersByElement.get(e);if(D){let L=D.indexOf(o);L>=0&&D.splice(L,1)}}),this.players.push(o),x.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Wc,!0);i.forEach(r=>{if(r[Nn])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Ca,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&ir(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||bh,d=new ya(Ca),_=new Ea(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:_,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let s=e[Nn];(!s||s===dv)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Tn(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Uh(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Vh(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Rh=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Bh(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,i,r){if(Gc(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Gc(t))return;let s=t[Nn];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Tn(e,Ch)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Js(e,Ch))}removeNode(e,t,i){if(Gc(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Nn]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Gc(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Wc,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Eh,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ir(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Nn];if(t&&t.setForRemoval){if(e[Nn]=dv,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ch)&&this.markElementAsDisabled(e,!1),this.driver.query(e,JA,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];Tn(r,eI)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?ir(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw SA(e)}_flushAnimations(e,t){let i=new wa,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Q=>{d.add(Q);let K=this.driver.query(Q,ZA,!0);for(let Z=0;Z<K.length;Z++)d.add(K[Z])});let _=this.bodyNode,x=Array.from(this.statesByElement.keys()),w=ev(x,this.collectedEnterElements),C=new Map,T=0;w.forEach((Q,K)=>{let Z=ov+T++;C.set(K,Z),Q.forEach(Te=>Tn(Te,Z))});let D=[],L=new Set,B=new Set;for(let Q=0;Q<this.collectedLeaveElements.length;Q++){let K=this.collectedLeaveElements[Q],Z=K[Nn];Z&&Z.setForRemoval&&(D.push(K),L.add(K),Z.hasAnimation?this.driver.query(K,tI,!0).forEach(Te=>L.add(Te)):B.add(K))}let re=new Map,le=ev(x,Array.from(L));le.forEach((Q,K)=>{let Z=yh+T++;re.set(K,Z),Q.forEach(Te=>Tn(Te,Z))}),e.push(()=>{w.forEach((Q,K)=>{let Z=C.get(K);Q.forEach(Te=>Js(Te,Z))}),le.forEach((Q,K)=>{let Z=re.get(K);Q.forEach(Te=>Js(Te,Z))}),D.forEach(Q=>{this.processLeaveNode(Q)})});let Ee=[],Je=[];for(let Q=this._namespaceList.length-1;Q>=0;Q--)this._namespaceList[Q].drainQueuedTransitions(t).forEach(Z=>{let Te=Z.player,et=Z.element;if(Ee.push(Te),this.collectedEnterElements.length){let ht=et[Nn];if(ht&&ht.setForMove){if(ht.previousTriggersValues&&ht.previousTriggersValues.has(Z.triggerName)){let or=ht.previousTriggersValues.get(Z.triggerName),en=this.statesByElement.get(Z.element);if(en&&en.has(Z.triggerName)){let Da=en.get(Z.triggerName);Da.value=or,en.set(Z.triggerName,Da)}}Te.destroy();return}}let Bn=!_||!this.driver.containsElement(_,et),Lt=re.get(et),Oi=C.get(et),Fe=this._buildInstruction(Z,i,Oi,Lt,Bn);if(Fe.errors&&Fe.errors.length){Je.push(Fe);return}if(Bn){Te.onStart(()=>$r(et,Fe.fromStyles)),Te.onDestroy(()=>ii(et,Fe.toStyles)),r.push(Te);return}if(Z.isFallbackTransition){Te.onStart(()=>$r(et,Fe.fromStyles)),Te.onDestroy(()=>ii(et,Fe.toStyles)),r.push(Te);return}let Mm=[];Fe.timelines.forEach(ht=>{ht.stretchStartingKeyframe=!0,this.disabledNodes.has(ht.element)||Mm.push(ht)}),Fe.timelines=Mm,i.append(et,Fe.timelines);let s2={instruction:Fe,player:Te,element:et};o.push(s2),Fe.queriedElements.forEach(ht=>Yt(a,ht,[]).push(Te)),Fe.preStyleProps.forEach((ht,or)=>{if(ht.size){let en=l.get(or);en||l.set(or,en=new Set),ht.forEach((Da,ku)=>en.add(ku))}}),Fe.postStyleProps.forEach((ht,or)=>{let en=c.get(or);en||c.set(or,en=new Set),ht.forEach((Da,ku)=>en.add(ku))})});if(Je.length){let Q=[];Je.forEach(K=>{Q.push(xA(K.triggerName,K.errors))}),Ee.forEach(K=>K.destroy()),this.reportError(Q)}let ze=new Map,Le=new Map;o.forEach(Q=>{let K=Q.element;i.has(K)&&(Le.set(K,K),this._beforeAnimationBuild(Q.player.namespaceId,Q.instruction,ze))}),r.forEach(Q=>{let K=Q.element;this._getPreviousPlayers(K,!1,Q.namespaceId,Q.triggerName,null).forEach(Te=>{Yt(ze,K,[]).push(Te),Te.destroy()})});let Jt=D.filter(Q=>tv(Q,l,c)),jr=new Map;J_(jr,this.driver,B,c,Hn).forEach(Q=>{tv(Q,l,c)&&Jt.push(Q)});let sr=new Map;w.forEach((Q,K)=>{J_(sr,this.driver,new Set(Q),l,Ka)}),Jt.forEach(Q=>{let K=jr.get(Q),Z=sr.get(Q);jr.set(Q,new Map([...K?.entries()??[],...Z?.entries()??[]]))});let Iu=[],Em=[],Tm={};o.forEach(Q=>{let{element:K,player:Z,instruction:Te}=Q;if(i.has(K)){if(d.has(K)){Z.onDestroy(()=>ii(K,Te.toStyles)),Z.disabled=!0,Z.overrideTotalTime(Te.totalTime),r.push(Z);return}let et=Tm;if(Le.size>1){let Lt=K,Oi=[];for(;Lt=Lt.parentNode;){let Fe=Le.get(Lt);if(Fe){et=Fe;break}Oi.push(Lt)}Oi.forEach(Fe=>Le.set(Fe,et))}let Bn=this._buildAnimation(Z.namespaceId,Te,ze,s,sr,jr);if(Z.setRealPlayer(Bn),et===Tm)Iu.push(Z);else{let Lt=this.playersByElement.get(et);Lt&&Lt.length&&(Z.parentPlayer=ir(Lt)),r.push(Z)}}else $r(K,Te.fromStyles),Z.onDestroy(()=>ii(K,Te.toStyles)),Em.push(Z),d.has(K)&&r.push(Z)}),Em.forEach(Q=>{let K=s.get(Q.element);if(K&&K.length){let Z=ir(K);Q.setRealPlayer(Z)}}),r.forEach(Q=>{Q.parentPlayer?Q.syncPlayerEvents(Q.parentPlayer):Q.destroy()});for(let Q=0;Q<D.length;Q++){let K=D[Q],Z=K[Nn];if(Js(K,yh),Z&&Z.hasAnimation)continue;let Te=[];if(a.size){let Bn=a.get(K);Bn&&Bn.length&&Te.push(...Bn);let Lt=this.driver.query(K,Eh,!0);for(let Oi=0;Oi<Lt.length;Oi++){let Fe=a.get(Lt[Oi]);Fe&&Fe.length&&Te.push(...Fe)}}let et=Te.filter(Bn=>!Bn.destroyed);et.length?aI(this,K,et):this.processLeaveNode(K)}return D.length=0,Iu.forEach(Q=>{this.players.push(Q),Q.onDone(()=>{Q.destroy();let K=this.players.indexOf(Q);this.players.splice(K,1)}),Q.play()}),Iu}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Ca;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,d=c!==s,_=Yt(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(w=>{let C=w.getRealPlayer();C.beforeDestroy&&C.beforeDestroy(),w.destroy(),_.push(w)})}$r(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){let a=t.triggerName,l=t.element,c=[],d=new Set,_=new Set,x=t.timelines.map(C=>{let T=C.element;d.add(T);let D=T[Nn];if(D&&D.removedBeforeQueried)return new rs(C.duration,C.delay);let L=T!==l,B=lI((i.get(T)||nI).map(ze=>ze.getRealPlayer())).filter(ze=>{let Le=ze;return Le.element?Le.element===T:!1}),re=s.get(T),le=o.get(T),Ee=nv(this._normalizer,C.keyframes,re,le),Je=this._buildPlayer(C,Ee,B);if(C.subTimeline&&r&&_.add(T),L){let ze=new Ea(e,a,T);ze.setRealPlayer(Je),c.push(ze)}return Je});c.forEach(C=>{Yt(this.playersByQueriedElement,C.element,[]).push(C),C.onDone(()=>rI(this.playersByQueriedElement,C.element,C))}),d.forEach(C=>Tn(C,q_));let w=ir(x);return w.onDestroy(()=>{d.forEach(C=>Js(C,q_)),ii(l,t.toStyles)}),_.forEach(C=>{Yt(r,C,[]).push(w)}),w}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new rs(e.duration,e.delay)}},Ea=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new rs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Vh(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Yt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function rI(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function sI(n){return n??null}function Gc(n){return n&&n.nodeType===1}function oI(n){return n=="start"||n=="done"}function Z_(n,e){let t=n.style.display;return n.style.display=e??"none",t}function J_(n,e,t,i,r){let s=[];t.forEach(l=>s.push(Z_(l)));let o=[];
38i.forEach((l,c)=>{let d=new Map;l.forEach(_=>{let x=e.computeStyle(c,_,r);d.set(_,x),(!x||x.length==0)&&(c[Nn]=iI,o.push(c))}),n.set(c,d)});let a=0;return t.forEach(l=>Z_(l,s[a++])),o}function ev(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function Tn(n,e){n.classList?.add(e)}function Js(n,e){n.classList?.remove(e)}function aI(n,e,t){ir(t).onDone(()=>n.processLeaveNode(e))}function lI(n){let e=[];return hv(n,e),e}function hv(n,e){for(let t=0;t<n.length;t++){let i=n[t];i instanceof Vu?hv(i.players,e):e.push(i)}}function cI(n,e){let t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){let s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}function tv(n,e,t){let i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}var to=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Rh(e.body,t,i),this._timelineEngine=new Lh(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],d=cv(this._driver,s,l,c);if(l.length)throw cA(r,l);c.length&&void 0,a=XA(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[s,o]=$_(i),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if(i.charAt(0)=="@"){let[o,a]=$_(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function uI(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=wh(e[0]),e.length>1&&(i=wh(e[e.length-1]))):e instanceof Map&&(t=wh(e)),t||i?new Fh(n,t,i):null}var eo=class eo{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=eo.initialStylesByElement.get(e);r||eo.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ii(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ii(this._element,this._initialStyles),this._endStyles&&(ii(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(eo.initialStylesByElement.delete(this._element),this._startStyles&&($r(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($r(this._element,this._endStyles),this._endStyles=null),ii(this._element,this._initialStyles),this._state=3)}};eo.initialStylesByElement=new WeakMap;var Fh=eo;function wh(n){let e=null;return n.forEach((t,i)=>{pI(i)&&(e=e||new Map,e.set(i,t))}),e}function pI(n){return n==="display"||n==="position"}var Yc=class{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
38=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:qh(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Zc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return iv(e,t)}getParentElement(e){return Gh(e)}query(e,t,i){return rv(e,t,i)}computeStyle(e,t,i){return qh(e,t)}animate(e,t,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,d=o.filter(w=>w instanceof Yc);kA(i,r)&&d.forEach(w=>{w.currentSnapshot.forEach((C,T)=>c.set(T,C))});let _=PA(t).map(w=>new Map(w));_=OA(e,_,c);let x=uI(e,_);return new Yc(e,_,l,x)}};var $c="@",mv="@.disabled",Jc=class{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==$c&&t==mv?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Hh=class extends Jc{constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==$c?t.charAt(1)=="."&&t==mv?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==$c){let r=dI(e),s=t.slice(1),o="";return s.charAt(0)!=$c&&([s,o]=hI(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function dI(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function hI(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var eu=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let _=()=>c.delete(r);d=new Jc(i,r,this.engine,_),c.set(r,d)}return d}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>
38{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Hh(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var fI=(()=>{let e=class e extends to{constructor(i,r,s){super(i,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(ne(Ga),ne(Wr),ne(qr))},e.\u0275prov=me({token:e,factory:e.\u0275fac});let n=e;return n})();function gI(){return new zc}function _I(n,e,t){return new eu(n,e,t)}var gv=[{provide:qr,useFactory:gI},{provide:to,useClass:fI},{provide:qm,useFactory:_I,deps:[df,to,Di]}],fv=[{provide:Wr,useFactory:()=>new Zc},{provide:Nu,useValue:"BrowserAnimations"},...gv],vI=[{provide:Wr,useClass:$h},{provide:Nu,useValue:"NoopAnimations"},...gv],Qh=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?vI:fv}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Fn({type:e}),e.\u0275inj=Rn({providers:fv,imports:[$a]});let n=e;return n})();var Ma="Service workers are disabled or not supported by this browser";function SI(n){return Ou(()=>Ba(new Error(n)))}var no=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=SI(Ma);else{let i=ar(e,"controllerchange").pipe(je(()=>e.controller)),r=Ou(()=>Bt(e.controller)),s=Im(r,i);this.worker=s.pipe(Qe(d=>!!d)),this.registration=this.worker.pipe(ot(()=>e.getRegistration()));let c=ar(e,"message").pipe(je(d=>d.data)).pipe(Qe(d=>d&&d.type)).pipe(Rm());c.connect(),this.events=c}}postMessage(e,t){return this.worker.pipe(lr(1),Rt(i=>{i.postMessage(P({action:e},t))})).toPromise().then(()=>{})}postMessageWithOperation(e,t,i){let r=this.waitForOperationCompleted(i),s=this.postMessage(e,t);return Promise.all([s,r]).then(([,o])=>o)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let t;return typeof e=="string"?t=i=>i.type===e:t=i=>e.includes(i.type),this.events.pipe(Qe(t))}nextEventOfType(e){return this.eventsOfType(e).pipe(lr(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(Qe(t=>t.nonce===e),lr(1),je(t=>{if(t.result!==void 0)return t.result;throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},Sv=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new ke,!i.isEnabled){this.messages=Xr,this.notificationClicks=Xr,this.subscription=Xr;return}this.messages=this.sw.eventsOfType("PUSH").pipe(je(s=>s.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(je(s=>s.data)),this.pushManager=this.sw.registration.pipe(je(s=>s.pushManager));let r=this.pushManager.pipe(ot(s=>s.getSubscription()));this.subscription=Qr(r,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Ma));let r={userVisibleOnly:!0},s=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(s.length));for(let a=0;a<s.length;a++)o[a]=s.charCodeAt(a);return r.applicationServerKey=o,this.pushManager.pipe(ot(a=>a.subscribe(r)),lr(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ma));let i=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(s=>{if(!s)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(lr(1),ot(i)).toPromise()}decodeBase64(i){return atob(i)}};e.\u0275fac=function(r){return new(r||e)(ne(no))},e.\u0275prov=me({token:e,factory:e.\u0275fac});let n=e;return n})(),xv=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled){this.versionUpdates=Xr,this.unrecoverable=Xr;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ma));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ma));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}};e.\u0275fac=function(r){return new(r||e)(ne(no))},e.\u0275prov=me({token:e,factory:e.\u0275fac});let n=e;return n})();var _v=new Ha("");function xI(n,e,t,i){return()=>
38{if(!(de(i)&&"serviceWorker"in navigator&&t.enabled!==!1))return;let r=n.get(Di),s=n.get(Ru);r.runOutsideAngular(()=>{let a=navigator.serviceWorker,l=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",l),s.onDestroy(()=>{a.removeEventListener("controllerchange",l)})});let o;if(typeof t.registrationStrategy=="function")o=t.registrationStrategy();else{let[a,...l]=(t.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":o=Bt(null);break;case"registerWithDelay":o=vv(+l[0]||0);break;case"registerWhenStable":let c=La(n.get(Ru).whenStable());o=l[0]?Qr(c,vv(+l[0])):c;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${t.registrationStrategy}`)}}r.runOutsideAngular(()=>o.pipe(lr(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:t.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function vv(n){return Bt(null).pipe(Bm(n))}function CI(n,e){return new no(de(e)&&n.enabled!==!1?navigator.serviceWorker:void 0)}var Ta=class{};function bI(n,e={}){return Kr([Sv,xv,{provide:_v,useValue:n},{provide:Ta,useValue:e},{provide:no,useFactory:CI,deps:[Ta,Ge]},{provide:ef,useFactory:xI,deps:[uo,_v,Ta,Ge],multi:!0}])}var Cv=(()=>{let e=class e{static register(i,r={}){return{ngModule:e,providers:[bI(i,r)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Fn({type:e}),e.\u0275inj=Rn({providers:[Sv,xv]});let n=e;return n})();function Xh(n){n||(Vm(Xh),n=Se(Um));let e=new Am(t=>n.onDestroy(t.next.bind(t)));return t=>t.pipe(Re(e))}function wI(n,e){if(n&1&&(p(0,"small",3),f(1),u()),n&2){let t=S(2);m(),R(" ",t.feedback.warning," ")}}function yI(n,e){if(n&1&&f(0),n&2){let t=e.$implicit,i=e.$index,r=e.$count;Zm(" ",t,"",i===r-1?"":" "," ")}}function EI(n,e){if(n&1&&(p(0,"small",4),Ft(1,yI,1,2,null,null,ai),u()),n&2){let t=S(2);m(),Ht(t.feedback.suggestions)}}function TI(n,e){if(n&1&&M(0,wI,2,1,"small",3)(1,EI,3,0,"small",4),n&2){let t=S();mt(t.feedback.warning?0:-1),m(),mt(t.feedback.suggestions&&t.feedback.suggestions.length?1:-1)}}var io=class{},MI=(()=>{let e=class e{constructor(i,r){this.renderer=i,this.el=r,this.colors=[],this.minProgressVal=0,this.maxProgressVal=100,this.currentProgressVal=0,this.dataPasswordStrength=0,this.defaultColors=["darkred","orangered","orange","yellowgreen","green"],this.progressBar=this.el.nativeElement}ngOnChanges(i){i.numberOfProgressBarItems&&this.setProgressBarItems(),this.setProgressBar()}setProgressBarItems(){let i=this.progressBar.querySelector(".psm__progress-bar-items"),r=100/this.numberOfProgressBarItems;i?.childNodes.forEach(s=>{this.renderer.removeChild(i,s)}),Array(this.numberOfProgressBarItems).fill(1).forEach(()=>{let s=this.renderer.createElement("div");this.renderer.addClass(s,"psm__progress-bar-item"),this.renderer.setStyle(s,"width",`${r}%`),this.renderer.appendChild(i,s)})}setProgressBar(){let i=this.getFillMeterWidth(this.passwordStrength),r=`${i}%`,s=i/100*this.numberOfProgressBarItems,o=this.getMeterFillColor(s);this.dataPasswordStrength=this.passwordStrength||0,this.currentProgressVal=i;let a=this.progressBar.querySelector(".psm__progress-bar-overlay");a&&(this.renderer.setStyle(a,"width",r),this.renderer.setStyle(a,"background-color",o))}getFillMeterWidth(i){if(i==null)return 0;let r=i!==null?(i+1)/5*100:0;return this.getRoundedStrength(r,100/this.numberOfProgressBarItems)}getMeterFillColor(i){if(!i||i<=0||i>this.colors.length&&i>this.defaultColors.length)return this.colors[0]?this.colors[0]:this.defaultColors[0];let r=i-1;return this.colors[r]?this.colors[r]:this.defaultColors[r]}getRoundedStrength(i,r){return Math.round(i/r)*r}};e.\u0275fac=function(r){return new(r||e)(U(Ua),U($m))},e.\u0275dir=Hm({type:e,selectors:[["",8,"psm__progress-bar"]],hostVars:4,hostBindings:function(r,s){r&2&&jm("aria-valuemin",s.minProgressVal)("aria-valuemax",s.maxProgressVal)("aria-valuenow",s.currentProgressVal)("data-strength",s.dataPasswordStrength)},inputs:{numberOfProgressBarItems:"numberOfProgressBarItems",passwordStrength:"passwordStrength",colors:"colors"},standalone:!0,features:[Du]});let n=e;return n})(),bv=(()=>{let e=class e{constructor(){this.minPasswordLength=8,this.enableFeedback=!1,this.enableAsync=!1,this.colors=[],this.numberOfProgressBarItems=5,this.strengthChange=new Va,this.baseClass="psm",this.passwordStrengthMeterService=Se(io),this.passwordStrength=null,this.feedback=null,this.prevPasswordStrength=null,this.passwordChangeObservable$=new ke,this.init()}
38ngOnChanges(i){i.password&&this.passwordChangeObservable$.next(this.password)}init(){this.passwordChangeObservable$.pipe(Fa(),Lm(100),ot(i=>{if(!i)return Bt({score:null,feedback:null});if(i&&i.length<this.minPasswordLength)return Bt({score:0,feedback:null});if(this.enableAsync)return this.calculateScoreAsync(i);let r=this.calculateScore(i);return Bt(r)}),Xh()).subscribe(i=>{this.passwordStrength=i.score,this.feedback=i.feedback,this.prevPasswordStrength!==this.passwordStrength&&(this.strengthChange.emit(this.passwordStrength),this.prevPasswordStrength=this.passwordStrength)})}calculateScore(i){return this.enableFeedback?this.passwordStrengthMeterService.scoreWithFeedback(i):{score:this.passwordStrengthMeterService.score(i),feedback:null}}calculateScoreAsync(i){return this.enableFeedback?this.passwordStrengthMeterService.scoreWithFeedbackAsync(i):this.passwordStrengthMeterService.scoreAsync(i).then(r=>({score:r,feedback:null}))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["password-strength-meter"]],hostVars:2,hostBindings:function(r,s){r&2&&po(s.baseClass)},inputs:{password:"password",minPasswordLength:"minPasswordLength",enableFeedback:[2,"enableFeedback","enableFeedback",Fu],enableAsync:[2,"enableAsync","enableAsync",Fu],colors:"colors",numberOfProgressBarItems:"numberOfProgressBarItems"},outputs:{strengthChange:"strengthChange"},standalone:!0,features:[zm,Du,Jm],decls:4,vars:4,consts:[["role","progressbar",1,"psm__progress-bar",3,"passwordStrength","numberOfProgressBarItems","colors"],[1,"psm__progress-bar-items"],[1,"psm__progress-bar-overlay"],[1,"psm__feedback"],[1,"psm__suggestion"]],template:function(r,s){r&1&&(p(0,"div",0),k(1,"div",1)(2,"div",2),u(),M(3,TI,2,2)),r&2&&(v("passwordStrength",s.passwordStrength)("numberOfProgressBarItems",s.numberOfProgressBarItems)("colors",s.colors),m(3),mt(s.enableFeedback&&s.feedback?3:-1))},dependencies:[MI],styles:["*[_ngcontent-%COMP%], *[_ngcontent-%COMP%]:before, *[_ngcontent-%COMP%]:after{box-sizing:border-box}.psm__progress-bar[_ngcontent-%COMP%]{position:relative;height:3px;margin:10px auto;border-radius:3px;background:#fff}.psm__progress-bar-items[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;width:100%;height:100%;background:#ddd}.psm__progress-bar-item[_ngcontent-%COMP%]{height:100%;z-index:5;border-right:4px solid #fff}.psm__progress-bar-item[_ngcontent-%COMP%]:last-child{border-right:0px}.psm__progress-bar-overlay[_ngcontent-%COMP%]{position:absolute;background:red;border-radius:3px;height:3px;top:0;transition:width .5s ease-in-out,background .25s}.psm__feedback[_ngcontent-%COMP%], .psm__suggestion[_ngcontent-%COMP%]{font-size:70%;font-weight:400;color:#6c757d!important;display:block;margin-top:.25rem}"]});let n=e;return n})();var Pa=(n,e)=>n.push.apply(n,e),Ln=n=>n.sort((e,t)=>e.i-t.i||e.j-t.j),Kh=n=>{let e={},t=1;return n.forEach(i=>{e[i]=t,t+=1}),e};var wv={4:[[1,2],[2,3]],5:[[1,3],[2,3],[2,4]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]};var Yh=2050,Zh=1e3,yv=wv,Ev=10,Tv=1e4,tu=10,nu=50,iu=20,ru=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,Mv=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,Pv=/^[A-Z\xbf-\xdf]+$/,su=/^[^a-z\xdf-\xff]+$/,Av=/^[a-z\xdf-\xff]+$/,Iv=/^[^A-Z\xbf-\xdf]+$/,kv=/[a-z\xdf-\xff]/,Ov=/[A-Z\xbf-\xdf]/,Dv=/[^A-Za-z\xbf-\xdf]/gi,Nv=/^\d+$/,ro=new Date().getFullYear(),Lv={recentYear:/19\d\d|200\d|201\d|202\d/g},Jh=[" ",",",";",":","|","/","\\","_",".","-"],Bv=Jh.length;var ou=class{match({password:e}){let t=[...this.getMatchesWithoutSeparator(e),...this.getMatchesWithSeparator(e)],i=this.filterNoise(t);return Ln(i)}getMatchesWithSeparator(e){let t=[],i=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let r=0;r<=Math.abs(e.length-6);r+=1)for(let s=r+5;s<=r+9&&!(s>=e.length);s+=1){let o=e.slice(r,+s+1||9e9),a=i.exec(o);if(a!=null){let l=this.mapIntegersToDayMonthYear([parseInt(a[1],10),parseInt(a[3],10),parseInt(a[4],10)]);l!=null&&t.push({pattern:"date",token:o,i:r,j:s,separator:a[2],year:l.year,month:l.month,day:l.day})}}return t}getMatchesWithoutSeparator(e){let t=[],i=/^\d{4,8}$/,r=s=>Math.abs(s.year-ro);for(let s=0;s<=Math.abs(e.length-4);s+=1)for(let o=s+3;o<=s+7&&!(o>=e.length);o+=1){let a=e.slice(s,+o+1||9e9);if(i.exec(a)){let l=[],c=a.length;
38if(yv[c].forEach(([_,x])=>{let w=this.mapIntegersToDayMonthYear([parseInt(a.slice(0,_),10),parseInt(a.slice(_,x),10),parseInt(a.slice(x),10)]);w!=null&&l.push(w)}),l.length>0){let _=l[0],x=r(l[0]);l.slice(1).forEach(w=>{let C=r(w);C<x&&(_=w,x=C)}),t.push({pattern:"date",token:a,i:s,j:o,separator:"",year:_.year,month:_.month,day:_.day})}}}return t}filterNoise(e){return e.filter(t=>{let i=!1,r=e.length;for(let s=0;s<r;s+=1){let o=e[s];if(t!==o&&o.i<=t.i&&o.j>=t.j){i=!0;break}}return!i})}mapIntegersToDayMonthYear(e){if(e[1]>31||e[1]<=0)return null;let t=0,i=0,r=0;for(let s=0,o=e.length;s<o;s+=1){let a=e[s];if(a>99&&a<Zh||a>Yh)return null;a>31&&(i+=1),a>12&&(t+=1),a<=0&&(r+=1)}return i>=2||t===3||r>=2?null:this.getDayMonth(e)}getDayMonth(e){let t=[[e[2],e.slice(0,2)],[e[0],e.slice(1,3)]],i=t.length;for(let r=0;r<i;r+=1){let[s,o]=t[r];if(Zh<=s&&s<=Yh){let a=this.mapIntegersToDayMonth(o);return a!=null?{year:s,month:a.month,day:a.day}:null}}for(let r=0;r<i;r+=1){let[s,o]=t[r],a=this.mapIntegersToDayMonth(o);if(a!=null)return{year:this.twoToFourDigitYear(s),month:a.month,day:a.day}}return null}mapIntegersToDayMonth(e){let t=[e,e.slice().reverse()];for(let i=0;i<t.length;i+=1){let r=t[i],s=r[0],o=r[1];if(s>=1&&s<=31&&o>=1&&o<=12)return{day:s,month:o}}return null}twoToFourDigitYear(e){return e>99?e:e>50?e+1900:e+2e3}};var Ii=new Uint32Array(65536),PI=(n,e)=>{let t=n.length,i=e.length,r=1<<t-1,s=-1,o=0,a=t,l=t;for(;l--;)Ii[n.charCodeAt(l)]|=1<<l;for(l=0;l<i;l++){let c=Ii[e.charCodeAt(l)],d=c|o;c|=(c&s)+s^s,o|=~(c|s),s&=c,o&r&&a++,s&r&&a--,o=o<<1|1,s=s<<1|~(d|o),o&
38=d}for(l=t;l--;)Ii[n.charCodeAt(l)]=0;return a},AI=(n,e)=>{let t=e.length,i=n.length,r=[],s=[],o=Math.ceil(t/32),a=Math.ceil(i/32);for(let C=0;C<o;C++)s[C]=-1,r[C]=0;let l=0;for(;l<a-1;l++){let C=0,T=-1,D=l*32,L=Math.min(32,i)+D;for(let B=D;B<L;B++)Ii[n.charCodeAt(B)]|=1<<B;for(let B=0;B<t;B++){let re=Ii[e.charCodeAt(B)],le=s[B/32|0]>>>B&1,Ee=r[B/32|0]>>>B&1,Je=re|C,ze=((re|Ee)&T)+T^T|re|Ee,Le=C|~(ze|T),Jt=T&ze;Le>>>31^le&&(s[B/32|0]^=1<<B),Jt>>>31^Ee&&(r[B/32|0]^=1<<B),Le=Le<<1|le,Jt=Jt<<1|Ee,T=Jt|~(Je|Le),C=Le&Je}for(let B=D;B<L;B++)Ii[n.charCodeAt(B)]=0}let c=0,d=-1,_=l*32,x=Math.min(32,i-_)+_;for(let C=_;C<x;C++)Ii[n.charCodeAt(C)]|=1<<C;let w=i;for(let C=0;C<t;C++){let T=Ii[e.charCodeAt(C)],D=s[C/32|0]>>>C&1,L=r[C/32|0]>>>C&1,B=T|c,re=((T|L)&d)+d^d|T|L,le=c|~(re|d),Ee=d&re;w+=le>>>i-1&1,w-=Ee>>>i-1&1,le>>>31^D&&(s[C/32|0]^=1<<C),Ee>>>31^L&&(r[C/32|0]^=1<<C),le=le<<1|D,Ee=Ee<<1|L,d=Ee|~(B|le),c=le&B}for(let C=_;C<x;C++)Ii[n.charCodeAt(C)]=0;return w},Rv=(n,e)=>{if(n.length<e.length){let t=e;e=n,n=t}return e.length===0?n.length:n.length<=32?PI(n,e):AI(n,e)};var II=(n,e,t)=>{let i=n.length<=e.length,r=n.length<=t;return i||r?Math.ceil(n.length/4):t},Fv=(n,e,t)=>{let i=0,r=Object.keys(e).find(s=>{let o=II(n,s,t);if(Math.abs(n.length-s.length)>o)return!1;let a=Rv(n,s),l=a<=o;return l&&(i=a),l});return r?{levenshteinDistance:i,levenshteinDistanceEntry:r}:{}};var em={a:["4","@"],b:["8"],c:["(","{","[","<"],d:["6","|)"],e:["3"],f:["#"],g:["6","9","&"],h:["#","|-|"],i:["1","!","|"],k:["<","|<"],l:["!","1","|","7"],m:["^^","nn","2n","/\\\\/\\\\"],n:["//"],o:["0","()"],q:["9"],u:["|_|"],s:["$","5"],t:["+","7"],v:["<",">","/"],w:["^/","uu","vv","2u","2v","\\\\/\\\\/"],x:["%","><"],z:["2"]};var au={warnings:{straightRow:"straightRow",keyPattern:"keyPattern",simpleRepeat:"simpleRepeat",extendedRepeat:"extendedRepeat",sequences:"sequences",recentYears:"recentYears",dates:"dates",topTen:"topTen",to
38pHundred:"topHundred",common:"common",similarToCommon:"similarToCommon",wordByItself:"wordByItself",namesByThemselves:"namesByThemselves",commonNames:"commonNames",userInputs:"userInputs",pwned:"pwned"},suggestions:{l33t:"l33t",reverseWords:"reverseWords",allUppercase:"allUppercase",capitalization:"capitalization",dates:"dates",recentYears:"recentYears",associatedYears:"associatedYears",sequences:"sequences",repeated:"repeated",longerKeyboardPattern:"longerKeyboardPattern",anotherWord:"anotherWord",useWords:"useWords",noNeed:"noNeed",pwned:"pwned"},timeEstimation:{ltSecond:"ltSecond",second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",month:"month",months:"months",year:"year",years:"years",centuries:"centuries"}};var Aa=class n{constructor(e=[]){this.parents=e,this.children=new Map}addSub(e,...t){let i=e.charAt(0);this.children.has(i)||this.children.set(i,new n([...this.parents,i]));let r=this.children.get(i);for(let s=1;s<e.length;s+=1){let o=e.charAt(s);r.hasChild(o)||r.addChild(o),r=r.getChild(o)}return r.subs=(r.subs||[]).concat(t),this}getChild(e){return this.children.get(e)}isTerminal(){return!!this.subs}addChild(e){this.hasChild(e)||this.children.set(e,new n([...this.parents,e]))}hasChild(e){return this.children.has(e)}};var tm=(n,e)=>(Object.entries(n).forEach(([t,i])=>{i.forEach(r=>{e.addSub(r,t)})}),e);var lu=class{constructor(){this.matchers={},this.l33tTable=em,this.trieNodeRoot=tm(em,new Aa),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=au,this.graphs={},this.useLevenshteinDistance=!1,this.levenshteinThreshold=2,this.l33tMaxSubstitutions=100,this.maxLength=256,this.setRankedDictionaries()}setOptions(e={}){e.l33tTable&&(this.l33tTable=e.l33tTable,this.trieNodeRoot=tm(e.l33tTable,new Aa)),e.dictionary&&(this.dictionary=e.dictionary,this.setRankedDictionaries()),e.translations&&this.setTranslations(e.translations),e.graphs&&(this.graphs=e.graphs),e.useLevenshteinDistance!==void 0&&(this.useLevenshteinDistance=e.useLevenshteinDistance),e.levenshteinThreshold!==void 0&&(this.levenshteinThreshold=e.levenshteinThreshold),e.l33tMaxSubstitutions!==void 0&&(this.l33tMaxSubstitutions=e.l33tMaxSubstitutions),e.maxLength!==void 0&&(this.maxLength=e.maxLength)}setTranslations(e){if(this.checkCustomTranslations(e))this.translations=e;else throw new Error("Invalid translations object fallback to keys")}checkCustomTranslations(e){let t=!0;return Object.keys(au).forEach(i=>{if(i in e){let r=i;Object.keys(au[r]).forEach(s=>{s in e[r]||(t=!1)})}else t=!1}),t}setRankedDictionaries(){let e={},t={};Object.keys(this.dictionary).forEach(i=>{e[i]=Kh(this.dictionary[i]),t[i]=this.getRankedDictionariesMaxWordSize(this.dictionary[i])}),this.rankedDictionaries=e,this.rankedDictionariesMaxWordSize=t}getRankedDictionariesMaxWordSize(e){let t=e.map(i=>typeof i!="string"?i.toString().length:i.length);return t.length===0?0:t.reduce((i,r)=>Math.max(i,r),-1/0)}buildSanitizedRankedDictionary(e){let t=[];return e.forEach(i=>{let r=typeof i;(r==="string"||r==="number"||r==="boolean")&&t.push(i.toString().toLowerCase())}),Kh(t)}extendUserInputsDictionary(e){this.dictionary.userInputs||(this.dictionary.userInputs=[]);let t=[...this.dictionary.userInputs,...e];this.rankedDictionaries.userInputs=this.buildSanitizedRankedDictionary(t),this.rankedDictionariesMaxWordSize.userInputs=this.getRankedDictionariesMaxWordSize(t)}addMatcher(e,t){this.matchers[e]?console.info(`Matcher ${e} already exists`):this.matchers[e]=t}},G=new lu;var cu=class{constructor(e){this.defaultMatch=e}match({password:e}){let t=e.split("").reverse().join("");return this.defaultMatch({password:t}).map(i=>_e(P({},i),{token:i.token.split("").reverse().join(""),reversed:!0,i:e.length-1-i.j,j:e.length-1-i.i}))}};var nm=class{constructor({substr:e,limit:t,trieRoot:i}){this.buffer=[],this.finalPasswords=[],this.substr=e,this.limit=t,this.trieRoot=i}getAllPossibleSubsAtIndex(e){let t=[],i=this.trieRoot;for(let r=e;r<this.substr.length;r+=1){let s=this.substr.charAt(r);if(i=i.getChild(s),!i)break;t.push(i)}return t}helper({onlyFullSub:e,isFullSub:t,index:i,subIndex:r,changes:s,lastSubLetter:o,consecutiveSubCount:a}){if(this.finalPasswords.length>=this.limit)return;if(i===this.substr.length){e===t&&this.finalPasswords.push({password:this.buffer.join(""),changes:s});return}let l=[...this.getAllPossibleSubsAtIndex(i)],c=!1;for(let d=i+l.length-1;d>=i;d-=1){let _=l[d-i];if(_.isTerminal()){if(o===_.parents.join("")&&a>=3)continue;c=!0;let x=_.subs;for(let w of x){this.buffer.push(w);let C=s.concat({i:r,letter:w,substitution:_.parents.join("")});if(this.helper({onlyFullSub:e,isFullSub:t,index:d+1,subIndex:r+w.length,changes:C,lastSubLetter:_.parents.join(""),consecutiveSubCount:o===_.parents.join("")?a+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!e||!c){let d=this.substr.charAt(i);this.buffer.push(d),this.helper({onlyFullSub:e,isFullSub:t&&!c,index:i+1,subIndex:r+1,changes:s,lastSubLetter:o,consecutiveSubCount:a}),this.buffer.pop()}}getAll(){return this.helper({onlyFullSub:!0,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.helper({onlyFullSub:!1,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.finalPasswords}},Hv=(n,e,t)=>new nm({substr:n,limit:e,trieRoot:t}).getAll();var kI=(n,e,t)=>{let r=n.changes.filter(c=>c.i<e).reduce((c,d)=>c-d.letter.length+d.substitution.length,e),s=n.changes.filter(c=>c.i>=e&&c.i<=t),o=s.reduce((c,d)=>c-d.letter.length+d.substitution.length,t-e+r),a=[],l=[];
38return s.forEach(c=>{a.findIndex(_=>_.letter===c.letter&&_.substitution===c.substitution)<0&&(a.push({letter:c.letter,substitution:c.substitution}),l.push(`${c.substitution} -> ${c.letter}`))}),{i:r,j:o,subs:a,subDisplay:l.join(", ")}},uu=class{constructor(e){this.defaultMatch=e}isAlreadyIncluded(e,t){return e.some(i=>Object.entries(i).every(([r,s])=>r==="subs"||s===t[r]))}match({password:e}){let t=[],i=Hv(e,G.l33tMaxSubstitutions,G.trieNodeRoot),r=!1,s=!0;return i.forEach(o=>{if(r)return;let a=this.defaultMatch({password:o.password,useLevenshtein:s});s=!1,a.forEach(l=>{r||(r=l.i===0&&l.j===e.length-1);let c=kI(o,l.i,l.j),d=e.slice(c.i,+c.j+1||9e9),_=P(_e(P({},l),{l33t:!0,token:d}),c),x=this.isAlreadyIncluded(t,_);d.toLowerCase()!==l.matchedWord&&!x&&t.push(_)})}),t.filter(o=>o.token.length>1)}};var pu=class{constructor(){this.l33t=new uu(this.defaultMatch),this.reverse=new cu(this.defaultMatch)}match({password:e}){let t=[...this.defaultMatch({password:e}),...this.reverse.match({password:e}),...this.l33t.match({password:e})];return Ln(t)}defaultMatch({password:e,useLevenshtein:t=!0}){let i=[],r=e.length,s=e.toLowerCase();return Object.keys(G.rankedDictionaries).forEach(o=>{let a=G.rankedDictionaries[o],l=G.rankedDictionariesMaxWordSize[o],c=Math.min(l,r);for(let d=0;d<r;d+=1){let _=Math.min(d+c,r);for(let x=d;x<_;x+=1){let w=s.slice(d,+x+1||9e9),C=w in a,T={},D=d===0&&x===r-1;G.useLevenshteinDistance&&D&&!C&&t&&(T=Fv(w,a,G.levenshteinThreshold));let L=Object.keys(T).length!==0;if(C||L){let B=L?T.levenshteinDistanceEntry:w,re=a[B];i.push(P({pattern:"dictionary",i:d,j:x,token:e.slice(d,+x+1||9e9),matchedWord:w,rank:re,dictionaryName:o,reversed:!1,l33t:!1},T))}}}}),i}};var du=class{match({password:e,regexes:t=Lv}){let i=[];return Object.keys(t).forEach(r=>{let s=t[r];s.lastIndex=0;let o;for(;o=s.exec(e);)if(o){let a=o[0];i.push({pattern:"regex",token:a,i:o.index,j:o.index+o[0].length-1,regexName:r,regexMatch:o})}}),Ln(i)}};var Mn={nCk(n,e){let t=n;if(e>t)return 0;if(e===0)return 1;let i=1;for(let r=1;r<=e;r+=1)i*=t,i/=r,t-=1;return i},log10(n){return n===0?0:Math.log(n)/Math.log(10)},log2(n){return Math.log(n)/Math.log(2)},factorial(n){let e=1;for(let t=2;t<=n;t+=1)e*=t;return e}};var Vv=({token:n})=>{let e=Ev**n.length;e===Number.POSITIVE_INFINITY&&(e=Number.MAX_VALUE);let t;return n.length===1?t=tu+1:t=nu+1,Math.max(e,t)};var Uv=({year:n,separator:e})=>{let i=Math.max(Math.abs(n-ro),iu)*365;return e&&(i*=4),i};var OI=n=>{let e=n.split(""),t=e.filter(o=>o.match(Ov)).length,i=e.filter(o=>o.match(kv)).length,r=0,s=Math.min(t,i);for(let o=1;o<=s;o+=1)r+=Mn.nCk(t+i,o);return r},Gv=n=>{let e=n.replace(Dv,"");if(e.match(Iv)||e.toLowerCase()===e)return 1;let t=[ru,Mv,su],i=t.length;for(let r=0;r<i;r+=1){let s=t[r];if(e.match(s))return 2}return OI(e)};var $v=(n,e)=>{let t=0,i=n.indexOf(e);for(;i>=0;)t+=1,i=n.indexOf(e,i+e.length);return t},DI=({sub:n,token:e})=>{let t=e.toLowerCase(),i=$v(t,n.substitution),r=$v(t,n.letter);return{subbedCount:i,unsubbedCount:r}},Wv=({l33t:n,subs:e,token:t})=>{if(!n)return 1;let i=1;return e.forEach(r=>{let{subbedCount:s,unsubbedCount:o}=DI({sub:r,token:t});if(s===0||o===0)i*=2;else{let a=Math.min(o,s),l=0;for(let c=1;c<=a;c+=1)l+=Mn.nCk(o+s,c);i*=l}}),i};var qv=({rank:n,reversed:e,l33t:t,subs:i,token:r,dictionaryName:s})=>{let o=n,a=Gv(r),l=Wv({l33t:t,subs:i,token:r}),c=e&&2||1,d;return s==="diceware"?d=6**5/2:d=o*a*l*c,{baseGuesses:o,uppercaseVariations:a,l33tVariations:l,calculation:d}};var zv=({regexName:n,regexMatch:e,token:t})=>{let i={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};if(n in i)return i[n]**t.length;switch(n){case"recentYear":return Math.max(Math.abs(parseInt(e[0],10)-ro),iu)}return 0};var jv=({baseGuesses:n,repeatCount:e})=>n*e;var Qv=({token:n,ascending:e})=>{let t=n.charAt(0),i=0;return["a","A","z","Z","0","1","9"].includes(t)?i=4:t.match(/\d/)?i=10:i=26,e||(i*=2),i*n.length};var NI=n=>{let e=0;return Object.keys(n).forEach(t=>{let i=n[t];e+=i.filter(r=>!!r).length}),e/=Object.entries(n).length,e},LI=({token:n,graph:e,turns:t})=>{let i=Object.keys(G.graphs[e]).length,r=NI(G.graphs[e]),s=0,o=n.length;for(let a=2;a<=o;a+=1){let l=Math.min(t,a-1);for(let c=1;c<=l;c+=1)s+=Mn.nCk(a-1,c-1)*i*r**c}return s},Xv=({graph:n,token:e,shiftedCount:t,turns:i})=>{let r=LI({token:e,graph:n,turns:i});if(t){let s=e.length-t;if(t===0||s===0)r*=2;else{let o=0;for(let a=1;a<=Math.min(t,s);a+=1)o+=Mn.nCk(t+s,a);r*=o}}return Math.round(r)};var Kv=()=>Bv;var BI=(n,e)=>{let t=1;return n.token.length<e.length&&(n.token.length===1?t=tu:t=nu),t},Yv={bruteforce:Vv,date:Uv,dictionary:qv,regex:zv,repeat:jv,sequence:Qv,spatial:Xv,separator:Kv},RI=(n,e)=>Yv[n]?Yv[n](e):G.matchers[n]&&"scoring"in G.matchers[n]?G.matchers[n].scoring(e):0,Zv=(n,e)=>{let t={};if("guesses"in n&&n.guesses!=null)return n;
38let i=BI(n,e),r=RI(n.pattern,n),s=0;typeof r=="number"?s=r:n.pattern==="dictionary"&&(s=r.calculation,t.baseGuesses=r.baseGuesses,t.uppercaseVariations=r.uppercaseVariations,t.l33tVariations=r.l33tVariations);let o=Math.max(s,i);return _e(P(P({},n),t),{guesses:o,guessesLog10:Mn.log10(o)})};var Zt={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(n,e){let t=[];for(let i=0;i<n;i+=1){let r=[];e==="object"&&(r={}),t.push(r)}return t},makeBruteforceMatch(n,e){return{pattern:"bruteforce",token:this.password.slice(n,+e+1||9e9),i:n,j:e}},update(n,e){let t=n.j,i=Zv(n,this.password),r=i.guesses;e>1&&(r*=this.optimal.pi[i.i-1][e-1]);let s=Mn.factorial(e)*r;this.excludeAdditive||(s+=Tv**(e-1));let o=!1;Object.keys(this.optimal.g[t]).forEach(a=>{let l=this.optimal.g[t][a];parseInt(a,10)<=e&&l<=s&&(o=!0)}),o||(this.optimal.g[t][e]=s,this.optimal.m[t][e]=i,this.optimal.pi[t][e]=r)},bruteforceUpdate(n){let e=this.makeBruteforceMatch(0,n);this.update(e,1);for(let t=1;t<=n;t+=1){e=this.makeBruteforceMatch(t,n);let i=this.optimal.m[t-1];
38Object.keys(i).forEach(r=>{i[r].pattern!=="bruteforce"&&this.update(e,parseInt(r,10)+1)})}},unwind(n){let e=[],t=n-1,i=0,r=1/0,s=this.optimal.g[t];for(s&&Object.keys(s).forEach(o=>{let a=s[o];a<r&&(i=parseInt(o,10),r=a)});t>=0;){let o=this.optimal.m[t][i];e.unshift(o),t=o.i-1,i-=1}return e}},Ia={mostGuessableMatchSequence(n,e,t=!1){Zt.password=n,Zt.excludeAdditive=t;let i=n.length,r=Zt.fillArray(i,"array");e.forEach(l=>{r[l.j].push(l)}),r=r.map(l=>l.sort((c,d)=>c.i-d.i)),Zt.optimal={m:Zt.fillArray(i,"object"),pi:Zt.fillArray(i,"object"),g:Zt.fillArray(i,"object")};for(let l=0;l<i;l+=1)r[l].forEach(c=>{c.i>0?Object.keys(Zt.optimal.m[c.i-1]).forEach(d=>{Zt.update(c,parseInt(d,10)+1)}):Zt.update(c,1)}),Zt.bruteforceUpdate(l);let s=Zt.unwind(i),o=s.length,a=this.getGuesses(n,o);return{password:n,guesses:a,guessesLog10:Mn.log10(a),sequence:s}},getGuesses(n,e){let t=n.length,i=0;return n.length===0?i=1:i=Zt.optimal.g[t-1][e],i}};var hu=class{match({password:e,omniMatch:t}){let i=[],r=0;for(;r<e.length;){let o=this.getGreedyMatch(e,r),a=this.getLazyMatch(e,r);if(o==null)break;let{match:l,baseToken:c}=this.setMatchToken(o,a);if(l){let d=l.index+l[0].length-1,_=this.getBaseGuesses(c,t);i.push(this.normalizeMatch(c,d,l,_)),r=d+1}}return i.some(o=>o instanceof Promise)?Promise.all(i):i}normalizeMatch(e,t,i,r){let s={pattern:"repeat",i:i.index,j:t,token:i[0],baseToken:e,baseGuesses:0,repeatCount:i[0].length/e.length};return r instanceof Promise?r.then(o=>_e(P({},s),{baseGuesses:o})):_e(P({},s),{baseGuesses:r})}getGreedyMatch(e,t){let i=/(.+)\1+/g;return i.lastIndex=t,i.exec(e)}getLazyMatch(e,t){let i=/(.+?)\1+/g;return i.lastIndex=t,i.exec(e)}setMatchToken(e,t){let i=/^(.+?)\1+$/,r,s="";if(t&&e[0].length>t[0].length){r=e;let o=i.exec(r[0]);o&&(s=o[1])}else r=t,r&&(s=r[1]);return{match:r,baseToken:s}}getBaseGuesses(e,t){let i=t.match(e);return i instanceof Promise?i.then(s=>Ia.mostGuessableMatchSequence(e,s).guesses):Ia.mostGuessableMatchSequence(e,i).guesses}};var mu=class{constructor(){this.MAX_DELTA=5}match({password:e}){let t=[];if(e.length===1)return[];let i=0,r=null,s=e.length;for(let o=1;o<s;o+=1){let a=e.charCodeAt(o)-e.charCodeAt(o-1);if(r==null&&(r=a),a!==r){let l=o-1;this.update({i,j:l,delta:r,password:e,result:t}),i=l,r=a}}return this.update({i,j:s-1,delta:r,password:e,result:t}),t}update({i:e,j:t,delta:i,password:r,result:s}){if(t-e>1||Math.abs(i)===1){let o=Math.abs(i);if(o>0&&o<=this.MAX_DELTA){let a=r.slice(e,+t+1||9e9),{sequenceName:l,sequenceSpace:c}
38=this.getSequence(a);return s.push({pattern:"sequence",i:e,j:t,token:r.slice(e,+t+1||9e9),sequenceName:l,sequenceSpace:c,ascending:i>0})}}return null}getSequence(e){let t="unicode",i=26;return Av.test(e)?(t="lower",i=26):Pv.test(e)?(t="upper",i=26):Nv.test(e)&&(t="digits",i=10),{sequenceName:t,sequenceSpace:i}}};var fu=class{constructor(){this.SHIFTED_RX=/[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?]/}match({password:e}){let t=[];return Object.keys(G.graphs).forEach(i=>{let r=G.graphs[i];Pa(t,this.helper(e,r,i))}),Ln(t)}checkIfShifted(e,t,i){return!e.includes("keypad")&&this.SHIFTED_RX.test(t.charAt(i))?1:0}helper(e,t,i){let r,s=[],o=0,a=e.length;for(;o<a-1;){let l=o+1,c=null,d=0;for(r=this.checkIfShifted(i,e,o);;){let _=e.charAt(l-1),x=t[_]||[],w=!1,C=-1,T=-1;if(l<a){let D=e.charAt(l),L=x.length;for(let B=0;B<L;B+=1){let re=x[B];if(T+=1,re){let le=re.indexOf(D);if(le!==-1){w=!0,C=T,le===1&&(r+=1),c!==C&&(d+=1,c=C);break}}}}if(w)l+=1;else{l-o>2&&s.push({pattern:"spatial",i:o,j:l-1,token:e.slice(o,l),graph:i,turns:d,shiftedCount:r}),o=l;break}}}return s}};var FI=new RegExp(`[${Jh.join("")}]`),gu=class n{static getMostUsedSeparatorChar(e){let t=[...e.split("").filter(r=>FI.test(r)).reduce((r,s)=>{let o=r.get(s);return o?r.set(s,o+1):r.set(s,1),r},new Map).entries()].sort(([r,s],[o,a])=>a-s);if(!t.length)return;let i=t[0];if(!(i[1]<2))return i[0]}static getSeparatorRegex(e){return new RegExp(`([^${e}
39])(${e})(?!${e})`,"g")}match({password:e}){let t=[];if(e.length===0)return t;let i=n.getMostUsedSeparatorChar(e);if(i===void 0)return t;let r=n.getSeparatorRegex(i);for(let s of e.matchAll(r)){if(s.index===void 0)continue;let o=s.index+1;t.push({pattern:"separator",token:i,i:o,j:o})}return t}};var _u=class{constructor(){this.matchers={date:ou,dictionary:pu,regex:du,repeat:hu,sequence:mu,spatial:fu,separator:gu}}match(e){let t=[],i=[];return[...Object.keys(this.matchers),...Object.keys(G.matchers)].forEach(s=>{if(!this.matchers[s]&&!G.matchers[s])return;let o=this.matchers[s]?this.matchers[s]:G.matchers[s].Matching,l=new o().match({password:e,omniMatch:this});l instanceof Promise?(l.then(c=>{Pa(t,c)}),i.push(l)):Pa(t,l)}),i.length>0?new Promise((s,o)=>{Promise.all(i).then(()=>{s(Ln(t))}).catch(a=>{o(a)})}):Ln(t)}};var Jv=1,eS=Jv*60,tS=eS*60,nS=tS*24,iS=nS*31,rS=iS*12,HI=rS*100,im={second:Jv,minute:eS,hour:tS,day:nS,month:iS,year:rS,century:HI},vu=class{translate(e,t){let i=e;t!==void 0&&t!==1&&(i+="s");let{timeEstimation:r}=G.translations;return r[i].replace("{base}",`${t}`)}estimateAttackTimes(e){let t={onlineThrottling100PerHour:e/.027777777777777776,onlineNoThrottling10PerSecond:e/10,offlineSlowHashing1e4PerSecond:e/1e4,offlineFastHashing1e10PerSecond:e/1e10},i={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(t).forEach(r=>{let s=t[r];i[r]=this.displayTime(s)}),{crackTimesSeconds:t,crackTimesDisplay:i,score:this.guessesToScore(e)}}guessesToScore(e){return e<1005?0:e<1000005?1:e<100000005?2:e<1e10+5?3:4}displayTime(e){let t="centuries",i,r=Object.keys(im),s=r.findIndex(o=>e<im[o]);return s>-1&&(t=r[s-1],s!==0?i=Math.round(e/im[t]):t="ltSecond"),this.translate(t,i)}};var sS=()=>null;var oS=()=>({warning:G.translations.warnings.dates,suggestions:[G.translations.suggestions.dates]});var VI=(n,e)=>{let t=null;return e&&!n.l33t&&!n.reversed?n.rank<=10?t=G.translations.warnings.topTen:n.rank<=100?t=G.translations.warnings.topHundred:t=G.translations.warnings.common:n.guessesLog10<=4&&(t=G.translations.warnings.similarToCommon),t},UI=(n,e)=>{let t=null;return e&&(t=G.translations.warnings.wordByItself),t},GI=(n,e)=>e?G.translations.warnings.namesByThemselves:G.translations.warnings.commonNames,$I=(n,e)=>{let t=null,i=n.dictionaryName,r=i==="lastnames"||i.toLowerCase().includes("firstnames");return i==="passwords"?t=VI(n,e):i.includes("wikipedia")?t=UI(n,e):r?t=GI(n,e):i==="userInputs"&&(t=G.translations.warnings.userInputs),t},aS=(n,e)=>{let t=$I(n,e),i=[],r=n.token;return r.match(ru)?i.push(G.translations.suggestions.capitalization):r.match(su)&&r.toLowerCase()!==r&&i.push(G.translations.suggestions.allUppercase),n.reversed&&n.token.length>=4&&i.push(G.translations.suggestions.reverseWords),n.l33t&&i.push(G.translations.suggestions.l33t),{warning:t,suggestions:i}};var lS=n=>n.regexName==="recentYear"?{warning:G.translations.warnings.recentYears,suggestions:[G.translations.suggestions.recentYears,G.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]};var cS=n=>{let e=G.translations.warnings.extendedRepeat;return n.baseToken.length===1&&(e=G.translations.warnings.simpleRepeat),{warning:e,suggestions:[G.translations.suggestions.repeated]}};var uS=()=>({warning:G.translations.warnings.sequences,suggestions:[G.translations.suggestions.sequences]});var pS=n=>{let e=G.translations.warnings.keyPattern;return n.turns===1&&(e=G.translations.warnings.straightRow),{warning:e,suggestions:[G.translations.suggestions.longerKeyboardPattern]}};var dS=()=>null;var hS={warning:null,suggestions:[]},Su=class{constructor(){this.matchers={bruteforce:sS,date:oS,dictionary:aS,regex:lS,repeat:cS,sequence:uS,spatial:pS,separator:dS},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(G.translations.suggestions.useWords,G.translations.suggestions.noNeed)}getFeedback(e,t){if(t.length===0)return this.defaultFeedback;if(e>2)return hS;let i=G.translations.suggestions.anotherWord,r=this.getLongestMatch(t),s=this.getMatchFeedback(r,t.length===1);return s!=null?s.suggestions.unshift(i):s={warning:null,suggestions:[i]},s}getLongestMatch(e){let t=e[0];
39return e.slice(1).forEach(r=>{r.token.length>t.token.length&&(t=r)}),t}getMatchFeedback(e,t){return this.matchers[e.pattern]?this.matchers[e.pattern](e,t):G.matchers[e.pattern]&&"feedback"in G.matchers[e.pattern]?G.matchers[e.pattern].feedback(e,t):hS}};var rm=()=>new Date().getTime(),mS=(n,e,t)=>{let i=new Su,r=new vu,s=Ia.mostGuessableMatchSequence(e,n),o=rm()-t,a=r.estimateAttackTimes(s.guesses);return _e(P(P({calcTime:o},s),a),{feedback:i.getFeedback(a.score,s.sequence)})},fS=(n,e)=>(e&&G.extendUserInputsDictionary(e),new _u().match(n)),sm=(n,e)=>{let t=rm(),i=fS(n,e);if(i instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return mS(i,n,t)},om=(n,e)=>co(void 0,null,function*(){let t=n.substring(0,G.maxLength),i=rm(),r=yield fS(t,e);return mS(r,t,i)});var am={warnings:{straightRow:"Straight rows of keys on your keyboard are easy to guess.",keyPattern:"Short keyboard patterns are easy to guess.",simpleRepeat:'Repeated characters like "aaa" are easy to guess.',extendedRepeat:'Repeated character patterns like "abcabcabc" are easy to guess.',sequences:'Common character sequences like "abc" are easy to guess.',recentYears:"Recent years are easy to guess.",dates:"Dates are easy to guess.",topTen:"This is a heavily used password.",topHundred:"This is a frequently used password.",common:"This is a commonly used password.",similarToCommon:"This is similar to a commonly used password.",wordByItself:"Single words are easy to guess.",namesByThemselves:"Single names or surnames are easy to guess.",commonNames:"Common names and surnames are easy to guess.",userInputs:"There should not be any personal or page related data.",pwned:"Your password was exposed by a data breach on the Internet."},suggestions:{l33t:"Avoid predictable letter substitutions like '@' for 'a'.",reverseWords:"Avoid reversed spellings of common words.",allUppercase:"Capitalize some, but not all letters.",capitalization:"Capitalize more than the first letter.",dates:"Avoid dates and years that are associated with you.",recentYears:"Avoid recent years.",associatedYears:"Avoid years that are associated with you.",sequences:"Avoid common character sequences.",repeated:"Avoid repeated words and characters.",longerKeyboardPattern:"Use longer keyboard patterns and change typing direction multiple times.",anotherWord:"Add more words that are less common.",useWords:"Use multiple words, but avoid common phrases.",noNeed:"You can create strong passwords without using symbols, numbers, or uppercase letters.",pwned:"If you use this password elsewhere, you should change it."},timeEstimation:{ltSecond:"less than a second",second:"{base} second",seconds:"{base} seconds",minute:"{base} minute",minutes:"{base} minutes",hour:"{base} hour",hours:"{base} hours",day:"{base} day",days:"{base} days",month:"{base} month",months:"{base} months",year:"{base} year",years:"{base} years",centuries:"centuries"}};var gS=new Ha("ZXCVBN_CONFIG"),WI={translations:am},qI=(()=>{let e=class e extends io{constructor(i){super(),i?G.setOptions(i):G.setOptions(WI)}score(i){return sm(i).score}scoreWithFeedback(i){let r=sm(i);return{score:r.score,feedback:r.feedback}}scoreAsync(i){return co(this,null,function*(){return(yield om(i)).score})}scoreWithFeedbackAsync(i){return co(this,null,function*(){let r=yield om(i);return{score:r.score,feedback:r.feedback}})}};e.\u0275fac=function(r){return new(r||e)(ne(gS,8))},e.\u0275prov=me({token:e,factory:e.\u0275fac});let n=e;return n})();function _S(n){let e=[{provide:io,useClass:qI}];return n&&(e=[{provide:gS,useValue:n},...e]),Kr(e)}var xu=class{};function zI(n){return Kr([{provide:xu,useValue:n}])}var vS=(()=>{class n{constructor(t,i){this._ngZone=i,this.timerStart$=new ke,this.idleDetected$=new ke,this.timeout$=new ke,this.idleMillisec=600*1e3,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=120*1e3,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,t&&this.setConfig(t)}startWatching(){this.activityEvents$||(this.activityEvents$=Qr(ar(window,"mousemove"),ar(window,"resize"),ar(document,"keydown"))),this.idle$=La(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(Dm(this.idleSensitivityMillisec),Qe(t=>!t.length&&!this.isIdleDetected&&!this.isInactivityTimer),Rt(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),ot(()=>this._ngZone.runOutsideAngular(()=>Ra(1e3).pipe(Re(Qr(this.activityEvents$,Om(this.idleMillisec).pipe(Rt(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),cr(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe(Fa(),ot(t=>t?this.timer$:Bt(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe(Qe(t=>!!t),Rt(()=>this.isTimeout=!0),je(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(t){if(this.idleSubscription&&!this.idleSubscription.closed){console.error("Call stopWatching() before set config values");return}this.setConfig(t)}setConfig(t){t.idle&&(this.idleMillisec=t.idle*1e3),t.ping&&(this.pingMillisec=t.ping*1e3),t.idleSensitivity&&(this.idleSensitivityMillisec=t.idleSensitivity*1e3),t.timeout&&(this.timeout=t.timeout)}setCustomActivityEvents(t){if(this.idleSubscription&&!this.idleSubscription.closed){console.error("Call stopWatching() before set custom activity events");return}this.activityEvents$=t}setupTimer(t){this._ngZone.runOutsideAngular(()=>{this.timer$=Bt(()=>new Date).pipe(je(i=>i()),ot(i=>Ra(1e3).pipe(je(()=>Math.round((new Date().valueOf()-i.valueOf())/1e3)),Rt(r=>{r>=t&&this.timeout$.next(!0)}))))})}setupPing(t){this.ping$=Ra(t).pipe(Qe(()=>!this.isTimeout))}}return n.\u0275fac=function(t){return new(t||n)(ne(xu,8),ne(Di))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SS=(()=>{class n{static forRoot(t){return{ngModule:n,providers:[zI(t)]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Fn({type:n}),n.\u0275inj=Rn({}),n})();
39var Cu=(()=>{let e=class e{constructor(i,r){this.document=i,this.platformId=r,this.documentIsAccessible=de(this.platformId)}static getCookieRegExp(i){let r=i.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+r+"|;\\s*"+r+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(i){try{return decodeURIComponent(i)}catch{return i}}check(i){return this.documentIsAccessible?(i=encodeURIComponent(i),e.getCookieRegExp(i).test(this.document.cookie)):!1}get(i){if(this.documentIsAccessible&&this.check(i)){i=encodeURIComponent(i);let s=e.getCookieRegExp(i).exec(this.document.cookie);return s[1]?e.safeDecodeURIComponent(s[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let i={},r=this.document;return r.cookie&&r.cookie!==""&&r.cookie.split(";").forEach(s=>{let[o,a]=s.split("=");i[e.safeDecodeURIComponent(o.replace(/^ /,""))]=e.safeDecodeURIComponent(a)}),i}set(i,r,s,o,a,l,c,d){if(!this.documentIsAccessible)return;if(typeof s=="number"||s instanceof Date||o||a||l||c){let w={expires:s,path:o,domain:a,secure:l,sameSite:c||"Lax",partitioned:d};this.set(i,r,w);return}let _=encodeURIComponent(i)+"="+encodeURIComponent(r)+";",x=s||{};if(x.expires)if(typeof x.expires=="number"){let w=new Date(new Date().getTime()+x.expires*1e3*60*60*24);_+="expires="+w.toUTCString()+";"}else _+="expires="+x.expires.toUTCString()+";";x.path&&(_+="path="+x.path+";"),x.domain&&(_+="domain="+x.domain+";"),x.secure===!1&&x.sameSite==="None"&&(x.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${i} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),x.secure&&(_+="secure;"),x.sameSite||(x.sameSite="Lax"),_+="sameSite="+x.sameSite+";",x.partitioned&&(_+="Partitioned;"),this.document.cookie=_}delete(i,r,s,o,a="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(i,"",{expires:l,path:r,domain:s,secure:o,sameSite:a})}deleteAll(i,r,s,o="Lax"){if(!this.documentIsAccessible)return;let a=this.getAll();for(let l in a)a.hasOwnProperty(l)&&this.delete(l,i,r,s,o)}};e.\u0275fac=function(r){return new(r||e)(ne(Ga),ne(Ge))},e.\u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var oo={UKNOWN:"Unknown"},hm={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:oo.UKNOWN},bu={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp(`Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|
40      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|
41      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|
42      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|
43      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|
44      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|
45      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052`),SAMSUNG:new RegExp(`\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|
46      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|
47      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|
48      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|
49      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|
50      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|
51      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|
52      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|
53      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|
54      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|
55      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|
56      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|
57      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|
58      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|
59      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|
60      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|
61      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|
62      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|
63      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|
64      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|
65      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|
66      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|
67      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|
68      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|
69      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|
70      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|
71      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|
72      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|
73      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|
74      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|
75      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|
76      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|
77      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|
78      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|
79      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|
80      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|
81      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|
82      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|
83      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|
84      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|
85      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|
86      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|
86SGH-X630|
87      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|
88      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|
89      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|
90      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|
91      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|
92      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|
93      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|
94      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|
95      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|
96      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|
97      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|
98      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|
99      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F`),LG:new RegExp(`\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|
100      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|
101      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|
102      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|
103      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|
104      MS323|M257)`),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp(`PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|
105        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|
106        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|
107        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|
108        P2000|P7040|P7000|C790`),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp(`KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|
109        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLI
109M|CINK SLIM 2|CINK +|
110        CINK KING|CINK PEAX|CINK SLIM|SUBLIM`),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp(`Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|
111        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser`)},so={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp(`SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|
112        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|
113        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|
114        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|
115        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|
116        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|
117        SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|
118        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|
119        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|
120        SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|
121        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|
122        SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|
123        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|
124        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|
125        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|
126        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|
127        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|
128        SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|
129        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200|SM-T970`),Kindle:new RegExp(`Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|
130        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)`),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp(`^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|
131        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|
132        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|
133        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|
134        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b`),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|M
134Z608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp(`Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|
135        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|
136        \\bA3-A20\\b|\\bA3-A30`),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp(`PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|
137        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|
138        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|
139        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|
140        PMT5887|PMT5001|PMT5002`),LenovoTablet:new RegExp(`Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|
141        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|
142        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F`),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp(`Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|
143        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|
144        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|
145        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|
146        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b`),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp(`\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|
147         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b`),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp(`Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|
148        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|
149        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|
150        SGP612|SGP712`),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp(`MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|
151        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010`),MIDTablet:new RegExp(`M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|
152        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|
153        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10`),MSITablet:new RegExp(`MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|
154        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b`),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp(`Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|
155        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus`),HuaweiTablet:new RegExp(`MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|
156        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09|AGS-L09`),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\b
156Nabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp(`NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|
157        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|
158        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|
159        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|
160        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|
161        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|
162        TB-436|TB-416|TB-146SE|TB-126SE`),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp(`Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|
163        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b`),DanyTechTablet:`Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|
164        Genius TAB GII|Genius TAB GIII|Genius Tab S1`,GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp(`\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|
165        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|
166        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|
167        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b`),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp(`TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|
168        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|
169        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|
170        TPC10111|TPC10203|TPC10205|TPC10503`),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp(`TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|
171        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|
172        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|
173        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10`),OvermaxTablet:new RegExp(`OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|
174        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027`),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp(`GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|
175        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|
176        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|
177        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|
178        TAB R104|TAB R83.3|TAB A1042`),ModecomTablet:new RegExp(`FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|
179        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|
180        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003`),VoninoTablet:new RegExp(`\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|
181        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|
182        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b`),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp(`Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|
183        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|
184        P1000|P300|S18|S6600|S9100)\\b`),iJoyTablet:new RegExp(`Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|
185        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|
186        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|
187        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|
188        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)`),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp(`KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|
189        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|
190        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|
191        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151`),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp(`NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|
192        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S`),TeclastTablet:new RegExp(`T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|
193        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|
194        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|
195        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|
196        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|
197        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|
198        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|
199        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|
200        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi`),OndaTablet:new RegExp(`\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|
201        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|
202        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|
203        Vi40)\\b[s]+|V10 \\b4G\\b`),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp(`MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|
204        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|
205        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010`),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp(`miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|
206        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|
207        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b`),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp(`TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|
208        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100`),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp(`Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|
209        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|
210        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107`)},rr={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:oo.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},xS=[rr.PS4,rr.CHROME_BOOK,rr.MAC,rr.DELL,rr.ASUS,rr.UNKNOWN],XI={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:oo.UKNOWN},KI={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:oo.UKNOWN.toLowerCase()},CS={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}
210,IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},YI={CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},ZI=_e(P(P(P({},bu),so),CS),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),cm={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},um={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},JI=Object.keys(cm).reduce((n,e)=>(n[e]=cm[e],n),{}),bS=Object.keys(um).reduce((n,e)=>(n[hm[e]]=um[e],n),{}),ri=Object.freeze({__proto__:null,BROWSERS:hm,BROWSERS_RE:YI,BROWSER_VERSIONS_RE:bS,BROWSER_VERSIONS_RE_MAP:um,DESKTOP_DEVICES:xS,DEVICES:rr,DEVICES_RE:ZI,GENERAL:oo,MOBILES_RE:bu,OS:XI,OS_RE:CS,OS_VERSIONS:KI,OS_VERSIONS_RE:JI,OS_VERSIONS_RE_MAP:cm,TABLETS_RE:so}),pm=class{constructor(){}test(e,t){return typeof t=="string"&&(t=new RegExp(t)),t instanceof RegExp?t.test(e):t&&Array.isArray(t.and)?t.and.every(i=>this.test(e,i)):t&&Array.isArray(t.or)?t.or.some(i=>this.test(e,i)):t&&t.not?!this.test(e,t.not):!1}exec(e,t){return typeof t=="string"&&(t=new RegExp(t)),t instanceof RegExp?t.exec(e):t&&Array.isArray(t)?t.reduce((i,r)=>i||this.exec(e,r),null):null}},ka=function(n){return n.Mobile="mobile",n.Tablet="tablet",n.Desktop="desktop",n.Unknown="unknown",n}(ka||{}),dm=function(n){return n.Portrait="portrait",n.Landscape="landscape",n}(dm||{}),lm="iPad",wS=(()=>{let e=class e{constructor(i){this.platformId=i,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new pm,this.deviceType="",this.orientation="",de(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(i=this.userAgent){i!==this.userAgent&&(this.userAgent=i);let r=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(r.forEach(s=>{this[s.prop]=Object.keys(ri[s.const]).reduce((o,a)=>ri[s.const][a]==="device"&&de(this.platformId)&&(this.reTree.test(this.userAgent,so[lm])||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)?(o[ri[s.const][a]]=lm,Object):(o[ri[s.const][a]]=this.reTree.test(i,ri[`${s.const}_RE`][a]),o),{})}),r.forEach(s=>{this[s.prop]=Object.keys(ri[s.const]).map(o=>ri[s.const][o]).reduce((o,a)=>s.prop==="device"&&o===ri[s.const].ANDROID?this[s.prop][a]?a:o:o===ri[s.const].UNKNOWN&&this[s.prop][a]?a:o,ri[s.const].UNKNOWN)}),this.browser_version="0",this.browser!==hm.UNKNOWN){let s=bS[this.browser],o=this.reTree.exec(i,s);o&&(this.browser_version=o[1])}typeof window<"u"&&window.matchMedia?this.orientation=window.matchMedia("(orientation: landscape)").matches?dm.Landscape:dm.Portrait:this.orientation=oo.UKNOWN,this.deviceType=this.isTablet()?ka.Tablet:this.isMobile(this.userAgent)?ka.Mobile:this.isDesktop(this.userAgent)?ka.Desktop:ka.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(i=this.userAgent){return this.isTablet(i)?!1:!!Object.keys(bu).find(s=>this.reTree.test(i,bu[s]))}isTablet(i=this.userAgent){return de(this.platformId)&&(this.reTree.test(this.userAgent,so[lm])||typeof navigator<"u"&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)?!0:!!Object.keys(so).find(s=>!!this.reTree.test(i,so[s]))}isDesktop(i=this.userAgent){return this.device===rr.UNKNOWN&&(this.isMobile(i)||this.isTablet(i))?!1:xS.indexOf(this.device)>-1}};e.\u0275fac=function(r){return new(r||e)(ne(Ge))},e.\u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var yS=(()=>{let e=class e{constructor(i,r){h(this,"titleService");h(this,"meta");h(this,"FileHostUrl",Y.FileHostUrl);h(this,"emailUrl",Y.emailUrl);h(this,"webpagetitle","News - FUTEK");this.titleService=i,this.meta=r}ngOnInit(){this.titleService.setTitle(this.webpagetitle),this.meta.updateTag({name:"description",content:this.webpagetitle}),this.meta.updateTag({name:"keywords",content:this.webpagetitle})}};h(e,"\u0275fac",function(r){return new(r||e)(U(Wa),U(sn))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-fatigue-test"]],decls:76,vars:4,consts:[[1,"container"],[1,"wesignalpagemainpanel"],[1,"row"],[1,"span12"],[1,"animate"],[1,"breaktextb1"],[1,"category_content"],[1,"col-md-4"],["alt","app142-01",1,"applicationimh1",3,"src"],["target","_blank","href","applications/Reliability-Test-Stand",1,"cta"],[1,"col-md-8"],["target","_blank","href","applications/Reliability-Test-Stand"],["target","_blank",3,"href"],["target","_blank","href","news/press-release"],["target","_blank","href","store/load-cells/s-beam-load-cells/s-beam-LSB302"]],template:function(r,s){r&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4)(5,"span",5),f(6,"We dig, break the rules, and reinvent "),u(),p(7,"span",5),f(8,"because we are experimenters. "),u(),p(9,"span",5),f(10,"Through experimentation, we move forward."),u()()(),p(11,"div",2)(12,"div",6)(13,"p")(14,"strong"),f(15,"FUTEK is proud of the reputation we\u2019ve established as a quality source for sensor solutions and electronics over the past 27 years."),u(),f(16," And yes, we do work hard to maintain that reputation, but we work even harder to improve it. Our goal has always been to produce trusted products. This is why we do things a bit differently around here. We often break rules because we believe there are always better solutions to be discovered. We constantly research because our curiosity has often led us to novel inventions. We run our products through extensive test and trials to provide proof of our reliability to those who choose to partner with us. Best described, we are a team of technology experimenters, internally driven towards progression."),u(),p(17,"p"),f(18,"Over a decade ago we broke new ground with an experiment here at FUTEK. The purpose was to put our LSB302 (100 lb. S-Beam Load Cell) under an accelerated test. The plan was to subject the LSB302 to conditions - stress, strain, and overload - in excess of its normal service parameters in effort to uncover faults in an expedited amount of time. Little did we know that the unit under test would withstand these conditions without difficulty. After years and years of non-stop accelerated overload we prepare for a landmark moment at the FUTEK headquarters. On June 1st, 2015, the unit under test will hit a BILLION cycles of overloaded compression. More impressive than that, the unit is still meeting procurement specifications."),u()()(),p(19,"div",2)(20,"div",7)(21,"div",6)(22,"p")(23,"strong"),f(24,"LSB302 Specifications: "),u()(),p(25,"ul")(26,"li"),f(27,"Capacity Range: 25 lb. to 300 lb.(111 to 1334 N)"),u(),p(28,"li"),f(29,"Safe Overload: 1000% (25 to 100 lb.), 500% (200 to 300 lb.)"),u(),p(30,"li"),f(31,"Nonlinearity: \xB1 0.5% of Rated Output"),u(),p(32,"li"),f(33,"High Endurance"),u()(),p(34,"p"),f(35,"\xA0"),u(),p(36,"p"),k(37,"img",8)(38,"br")(39,"br"),p(40,"a",9),f(41,"View Application"),u()()()(),p(42,"div",10)(43,"div",6)(44,"p"),f(45,"This means a lot to the FUTEK team because it exemplifies our high-standard of quality. Integration of our long-lasting products enables end-users to enjoy slim to none mean times to repair (MTTR). Low to non-existent MTTR means high system availability of your application platform. System availability, a key measure influencing customer satisfaction, is directly affected by component reliability of the individual subassemblies. When components fail the system is no longer available to perform its function and must be repaired to bring it back to operational readiness. This gets into the associated field of maintainability. Hardly ever will you go through the laborious process of maintenance and repair with a FUTEK load cell. Our products are built to last so that your applications continue to run without interruptions. Altogether, investing in high reliability components in the beginning pays lifelong dividends in terms of availability and total system life-cycle-cost."),u(),p(46,"p"),f(47,"\xA0"),u(),p(48,"h3"),f(49,"More About Our Reliability Test Stand"),u(),p(50,"p"),f(51,"FUTEK constructed a pneumatic test stand to extensively test the fatigue rate of our LSB302 S-Beam Load Cell. The pneumatic cylinder is designed to deliver compressive force onto the unit under test. The test conducted on the LSB302 began in August of 2001 with the unit being loaded at 3 cycles per second to 113% of rated output. As the life test reached 180 million cycles, the load was increased to 150% of rated output. Nearly 15 years later the S-Beam Load Cell LSB302 is still going strong and showing no signs of fatigue."),u(),p(52,"p"),f(53,"It is also important to understand that the test exemplifies the reliability of the entire system, not just the flexure. Everything is under test including the flexure, gauges, wiring, solder joints, terminals, adhesives, curing and coatings, that includes every element in the system that could cause a failure."),u(),p(54,"p"),f(55,"Let's just say this accomplishment has been awesome to watch unfold. The LSB302 is very representative of load cells produced by FUTEK, so this accomplishment serves as sustainable proof of the reliability built into the company's product."),u(),p(56,"p"),f(57,"We are proud and overwhelmingly honored to be a dependable partner of the tech industry. Taking on projects with some of the most forward-thinking technology companies in the industry is what drives FUTEK to continuously exceed the limits of what is normally done. "),u(),p(58,"p"),f(59,"\xA0"),u(),p(60,"p")(61,"strong"),f(62,"Find out more:"),u()(),p(63,"ul",6)(64,"li")(65,"a",11),f(66,"View Application"),u()(),p(67,"li")(68,"a",12),f(69,"Read White Paper"),u()(),p(70,"li")(71,"a",13),f(72,"Read PR"),u()(),p(73,"li")(74,"a",14),f(75,"View LSB302 in Store"),u()()()()()()()()()),r&2&&(m(37),xt("src","",s.FileHostUrl,"/content/futek/images/app142-01.png",X),m(31),xt("href","",s.FileHostUrl,"/content/futek/files/pdf/quality/reliability_life_testing_v1.pdf",X))},styles:[".category_content[_ngcontent-%COMP%]{text-align:justify;padding:10px 0;font-family:Nunito Sans,sans-serif;width:99%;font-size:10pt}.applicationimh1[_ngcontent-%COMP%]{width:75%}.Calibrationtext[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;font-size:10pt;margin-top:10px;margin-bottom:10px}
210#category_sidebar[_ngcontent-%COMP%]{width:200px;border-right:solid 1px #e2e2e2;padding:20px 0;vertical-align:top}h1[_ngcontent-%COMP%]{margin-top:60px}.breaktextb1[_ngcontent-%COMP%]{font-size:22pt;font-weight:300;line-height:1.2;font-family:Nunito Sans,sans-serif}.wesignalpagemainpanel[_ngcontent-%COMP%]{background:#fff;padding:5px 8px 0 20px;margin-top:0}.clockFacelink[_ngcontent-%COMP%]{border:0px;width:100%;height:271px;overflow:hidden;text-align:center}.clockFacelinkboxp1[_ngcontent-%COMP%]{width:69%;margin-left:auto}"]}));let n=e;return n})();var nk=(n,e,t)=>({id:"products-pag",itemsPerPage:n,currentPage:e,totalItems:t}),ik=n=>["/search",n],gm=n=>[n],rk=(n,e,t)=>({id:"applications-pag",itemsPerPage:n,currentPage:e,totalItems:t});function sk(n,e){if(n&1){let t=$();p(0,"a",16)(1,"img",17),N("error",function(r){A(t);let s=S(4);return I(s.errorHandle(r))}),u(),p(2,"h3",18),f(3),u()()}if(n&2){let t=e.$implicit;v("routerLink","/"+t.RouteSegments),m(),v("src",t.ImageURL,X),m(2),F(t.Model)}}function ok(n,e){if(n&1&&(p(0,"div")(1,"p",13),f(2,"Recommended Products"),u(),p(3,"div",14),M(4,sk,4,3,"a",15),u()()),n&2){let t=S(3);m(4),v("ngForOf",t.searchPage.Products)}}function ak(n,e){if(n&1){let t=$();p(0,"a",16)(1,"div",20)(2,"h3",21),f(3),u()(),p(4,"img",17),N("error",function(r){A(t);let s=S(4);return I(s.errorHandle(r))}),u(),p(5,"p",22),f(6),u()()}if(n&2){let t=e.$implicit;v("routerLink","/"+t.RouteSegments),m(3),F(t.Title),m(),v("src",t.ImagePath,X),m(2),R(" ",t.TextSummary," ")}}function lk(n,e){if(n&1&&(p(0,"div")(1,"p",13),f(2,"Recommended Applications"),u(),p(3,"div",19),M(4,ak,7,4,"a",15),u()()),n&2){let t=S(3);m(4),v("ngForOf",t.searchPage.Applications)}}function ck(n,e){if(n&1&&(p(0,"div",6)(1,"h1",7),f(2),p(3,"span",8),f(4),u()(),p(5,"p",9),f(6),u(),p(7,"div",10)(8,"button",11),f(9,"Explore Products"),u(),p(10,"button",12),f(11,"Contact Us"),u()(),M(12,ok,5,1,"div",5)(13,lk,5,1,"div",5),u()),n&2){let t=S(2);m(2),R(" ",t.searchPage.NoDataFoundTitle," "),m(2),R('"',t.searchstring,'"'),m(2),F(t.searchPage.NoDataFoundDescription),m(6),v("ngIf",(t.searchPage.Products==null?null:t.searchPage.Products.length)>0),m(),v("ngIf",(t.searchPage.Applications==null?null:t.searchPage.Applications.length)>0)}}function uk(n,e){n&1&&(p(0,"span",33),f(1,"Products"),u())}function pk(n,e){n&1&&Xm(0)}function dk(n,e){if(n&1&&(p(0,"span",18),f(1),u()),n&2){let t=e.$implicit;m(),F(t)}}function hk(n,e){if(n&1&&(p(0,"a",52),f(1,"View Product"),u()),n&2){let t=S().$implicit;v("routerLink",Pn(1,ik,t.ProductName))}}function mk(n,e){if(n&1&&(p(0,"a",52),f(1,"View Product"),u()),n&2){let t=S().$implicit;v("routerLink",Pn(1,gm,"/"+t.RouteSegments))}}function fk(n,e){if(n&1){let t=$();p(0,"div",50)(1,"div",36)(2,"img",37),N("error",function(r){A(t);let s=S().$implicit,o=S(4);return I(o.errorHandle(r,s.model.Image.Url))}),u()(),p(3,"div",38)(4,"div",39)(5,"span",40),f(6),u(),p(7,"span",18),f(8),u()(),p(9,"div",43),M(10,hk,2,3,"a",51)(11,mk,2,3,"a",51),u()()()}if(n&2){let t=e.$implicit,i=S(5);m(2),v("src",t.ImageUrl,X),m(4),F(t.ProductName),m(2),F(t.ProductDefinition),m(2),v("ngIf",i.GlobalData.UseSearch),m(),v("ngIf",!i.GlobalData.UseSearch)}}function gk(n,e){if(n&1){let t=$();p(0,"mat-expansion-panel",34)(1,"mat-expansion-panel-header",35)(2,"div",36)(3,"img",37),N("error",function(r){A(t);let s=S(4);return I(s.errorHandle(r))}),u()(),p(4,"div",38)(5,"div",39)(6,"span",40),f(7),u(),p(8,"span",18),f(9),u(),p(10,"span",18),f(11),u(),M(12,dk,2,1,"span",41),p(13,"span",42),f(14),u()(),p(15,"div",43)(16,"button",44),f(17,"View products"),u()()()(),p(18,"div",45)(19,"div",46)(20,"p",47),f(21),u(),k(22,"p",48),fe(23,"safeHtml"),u(),M(24,fk,12,5,"div",49),u()()}if(n&2){let t=e.$implicit;m(3),v("src",t.model.Image.Url,X),m(4),R("",t.model.Name," Model"),m(2),F(t.model.TextSummary),m(2),F(t.model.ModelCaption),m(),v("ngForOf",t.model==null?null:t.model.ModelCharacteristics),m(2),R("",t.products.length," Products"),m(7),R("",t.model.Name," Model"),m(),v("innerHTML",xe(23,9,t.model.ModelDescription),$e),m(2),v("ngForOf",t.products)}}function _k(n,e){if(n&1){let t=$();p(0,"div",53)(1,"pagination-controls",54),N("pageChange",function(r){A(t);let s=S(4);return I(s.setProductsPage(r))}),u()()}}function vk(n,e){if(n&1&&(p(0,"mat-tab"),M(1,uk,2,0,"ng-template",25),p(2,"div",26),nn(3),M(4,pk,1,0,"ng-container",27),fe(5,"paginate"),rn(),p(6,"div",28)(7,"p",29),f(8,"Products"),u(),p(9,"p",30),f(10),u()(),p(11,"mat-accordion"),M(12,gk,25,11,"mat-expansion-panel",31),u(),p(13,"div",10),M(14,_k,2,0,"div",32),u()()()),n&2){let t=S(3);m(4),v("ngForOf",ho(5,4,t.globalSearch==null?null:t.globalSearch.productsBroadGlobalSearch.items,Bu(7,nk,t.pageSize,t.currentProductsPage,t.globalSearch==null?null:t.globalSearch.productsBroadGlobalSearch.total))),m(6),R("",t.globalSearch==null||t.globalSearch.productsBroadGlobalSearch==null?null:t.globalSearch.productsBroadGlobalSearch.total," Results"),m(2),v("ngForOf",t.groupedProductData),m(2),v("ngIf",(t.globalSearch==null||t.globalSearch.productsBroadGlobalSearch==null?null:t.globalSearch.productsBroadGlobalSearch.nrPages)>1)}}function Sk(n,e){n&1&&(p(0,"span",33),f(1,"Applications"),u())}function xk(n,e){if(n&1){let t=$();p(0,"div",50)(1,"div",36)(2,"img",37),N("error",function(r){A(t);let s=S(5);return I(s.errorHandle(r))}),u()(),p(3,"div",38)(4,"div",39)(5,"span",40),f(6),u(),p(7,"span",18),f(8),u()(),p(9,"div",43)(10,"a",52),f(11,"View Product"),u()()()()}if(n&2){let t=e.$implicit;m(2),v("src",t.ImageUrl,X),m(4),F(t.Name),m(2),F(t.Description),m(2),v("routerLink",Pn(4,gm,"/"+t.RouteSegments))}}function Ck(n,e){if(n&1){let t=$();p(0,"mat-expansion-panel",34)(1,"mat-expansion-panel-header",35)(2,"div",36)(3,"img",37),N("error",function(r){A(t);let s=S(4);return I(s.errorHandle(r))}
210),u()(),p(4,"div",38)(5,"div",39)(6,"span",40),f(7),u(),p(8,"span",18),f(9),u(),p(10,"span",42),f(11),u()(),p(12,"div",43)(13,"button",44),f(14,"Expand"),u()()()(),p(15,"div",45)(16,"div",46)(17,"p",47),f(18),u(),k(19,"p",48),fe(20,"safeHtml"),p(21,"a",52),f(22,"View Application"),u()(),M(23,xk,12,6,"div",49),u()()}if(n&2){let t=e.$implicit;m(3),v("src",t.ImagePath,X),m(4),F(t.Title),m(2),F(t.TextSummary),m(2),R("",t.RelatedProducts==null?null:t.RelatedProducts.length," Products"),m(7),R("",t.Title," Model"),m(),v("innerHTML",xe(20,8,t.TextSummary),$e),m(2),v("routerLink",Pn(10,gm,"/"+t.RouteSegments)),m(2),v("ngForOf",t.RelatedProducts)}}function bk(n,e){if(n&1){let t=$();p(0,"div",53)(1,"pagination-controls",55),N("pageChange",function(r){A(t);let s=S(4);return I(s.setApplicationsPage(r))}),u()()}}function wk(n,e){if(n&1&&(p(0,"mat-tab"),M(1,Sk,2,0,"ng-template",25),p(2,"div",26)(3,"div",28)(4,"p",29),f(5,"Applications"),u(),p(6,"p",30),f(7),u()(),M(8,Ck,24,12,"mat-expansion-panel",31),fe(9,"paginate"),p(10,"div",10),M(11,bk,2,0,"div",32),u()()()),n&2){let t=S(3);m(7),R("",t.globalSearch==null||t.globalSearch.applicationsBroadGlobalSearch==null?null:t.globalSearch.applicationsBroadGlobalSearch.total," Results "),m(),v("ngForOf",ho(9,3,t.globalSearch==null?null:t.globalSearch.applicationsBroadGlobalSearch.items,Bu(6,rk,t.applicationsPageSize,t.currentApplicationsPage,t.globalSearch==null?null:t.globalSearch.applicationsBroadGlobalSearch.total))),m(3),v("ngIf",(t.globalSearch==null||t.globalSearch.applicationsBroadGlobalSearch==null?null:t.globalSearch.applicationsBroadGlobalSearch.nrPages)>1)}}function yk(n,e){if(n&1){let t=$();nn(0),p(1,"h1",7),f(2),p(3,"span",8),f(4),u()(),p(5,"div",23)(6,"mat-tab-group",24),N("selectedTabChange",function(r){A(t);let s=S(2);return I(s.selectTab(r))}),M(7,vk,15,11,"mat-tab",5)(8,wk,12,10,"mat-tab",5),u()(),rn()}if(n&2){let t=S(2);m(2),R(" ",((t.globalSearch==null||t.globalSearch.productsBroadGlobalSearch==null?null:t.globalSearch.productsBroadGlobalSearch.total)||0)+((t.globalSearch==null||t.globalSearch.applicationsBroadGlobalSearch==null?null:t.globalSearch.applicationsBroadGlobalSearch.total)||0)," Results for "),m(2),R('"',t.searchstring,'"'),m(2),v("selectedIndex",t.SelectedTabIbdex),m(),v("ngIf",(t.globalSearch==null||t.globalSearch.productsBroadGlobalSearch==null?null:t.globalSearch.productsBroadGlobalSearch.total)>0),m(),v("ngIf",(t.globalSearch==null||t.globalSearch.applicationsBroadGlobalSearch==null?null:t.globalSearch.applicationsBroadGlobalSearch.total)>0)}}function Ek(n,e){if(n&1&&(p(0,"div",3),M(1,ck,14,5,"div",4)(2,yk,9,5,"ng-container",5),u()),n&2){let t=S();m(),v("ngIf",t.isNoDataFound),m(),v("ngIf",!t.isNoDataFound&&((t.globalSearch==null||t.globalSearch.productsBroadGlobalSearch==null?null:t.globalSearch.productsBroadGlobalSearch.total)>0||(t.globalSearch==null||t.globalSearch.applicationsBroadGlobalSearch==null?null:t.globalSearch.applicationsBroadGlobalSearch.total)>0))}}function Tk(n,e){n&1&&(p(0,"div",56)(1,"div",57),k(2,"mat-progress-spinner",58),u()())}var TS=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d){h(this,"_globalsearch");h(this,"route");h(this,"router");h(this,"_loaderService");h(this,"_storeService");h(this,"localization");h(this,"gtmService");h(this,"globalSearchService");h(this,"destroy$",new ke);h(this,"searchstring","");h(this,"GlobalData");h(this,"productData");h(this,"groupedProductData");h(this,"storeModelData");h(this,"productDataCount",0);h(this,"storeModelDataCount",0);h(this,"Params");h(this,"filterProductData");h(this,"filterStoreData");h(this,"pageSize",50);h(this,"applicationsPageSize",10);h(this,"currentProductsPage",1);h(this,"currentApplicationsPage",1);h(this,"pageIndex",0);h(this,"FileHostUrl",Y.FileHostUrl);h(this,"NoImagePath",Y.NoImagePath);h(this,"isNoDataFound",!1);h(this,"userGroups");h(this,"nonWebGroup");h(this,"isWebEnableGroup",!1);h(this,"orderType","");h(this,"isAdmin",!1);h(this,"ngUnsubscribe",new ke);h(this,"ClasssUIModel");h(this,"ModelsUIModel");h(this,"SeriesUIModel");h(this,"ApplicationsUIModel");h(this,"p",0);h(this,"mainAccessoriesPage",null);h(this,"isLoading",!1);h(this,"globalSearch");h(this,"SelectedTabIbdex",0);h(this,"searchPage",{});this._globalsearch=i,this.route=r,this.router=s,this._loaderService=o,this._storeService=a,this.localization=l,this.gtmService=c,this.globalSearchService=d}get currentLanguage(){return this.localization.CurrentLanguage}selectTab(i){this.SelectedTabIbdex=i.index}ngOnInit(){this.route.paramMap.pipe(Re(this.destroy$)).subscribe(i=>{this.searchstring=i.get("searchstring"),this.doSearch()})}doSearch(){this.globalSearch=new Gu,this.initialize();let i={event:"searchInitiated",eventCategory:"search",eventAction:"start",ecommerce:{item_name:this.searchstring,item_list_name:"Search Results"},affiliation:"Futek online store",pagePath:this.router.url,userId:localStorage.getItem("userId")||"",timestamp:new Date().toISOString()};this.gtmService.pushTag(i),this.loadDataFromCms()}initialize(){localStorage.removeItem("SelectedFilterUnit"),localStorage.removeItem("seriesAttribUnit"),localStorage.removeItem("modelAttribUnit"),localStorage.removeItem("modelDetailAttribUnit");let i=[{DisplayName:"AVAILABILITY",ITEM_ATTRIBUTE_NAME:"AVAILABILITY",Values:[{FilterValue:"0"}]}];localStorage.setItem("seriesFilters",JSON.stringify({productClass:"",filters:i})),localStorage.setItem("modelFilters",JSON.stringify({filters:i})),localStorage.setItem("modelDetailFilters",JSON.stringify({filters:i})),localStorage.getItem("roles")&&(this.isAdmin=localStorage.getItem("roles").toLowerCase().indexOf("applicationadministrator")>=0),this.isAdmin&&(localStorage.getItem("userGroups")?(this.nonWebGroup=JSON.parse(localStorage.getItem("userGroups")).filter(r=>r.Name=="nonweb group").length,this.nonWebGroup?this.isWebEnableGroup=!0:this.isWebEnableGroup=!1):this.isWebEnableGroup=!1)}searchProductAccessoriesPromise(){return tn(this.globalSearchService.GetAccessoriesTypeGlobalSearch(this.currentLanguage,this.searchstring)).then(i=>{this.globalSearch.accessoriesTypeGlobalSearch=i,this.globalSearch.accessoriesTypeGlobalSearch&&(this.GlobalData.TemplateType="Accessory",this.GlobalData.IsProduct=!1,this.router.navigate(["store/accessories/"+this.globalSearch.accessoriesTypeGlobalSearch.RouteSegments]))})}searchProductSeriesPromise(){return tn(this.globalSearchService.GetProductSeriesGlobalSearch(this.currentLanguage,this.searchstring)).then(i=>{if(this.globalSearch.productSeriesGlobalSearch=i,this.globalSearch.productSeriesGlobalSearch){if(!this.isWebEnableGroup&&this.globalSearch.productSeriesGlobalSearch.WebEnabled===!1)return;this.GlobalData.TemplateType="Series",this.GlobalData.IsProduct=!1,this.router.navigate([this.globalSearch.productSeriesGlobalSearch.RouteSegments])}})}searchProductModelsPromise(){return tn(this.globalSearchService.GetProductModelsGlobalSearch(this.currentLanguage,this.searchstring)).then(i=>{if(this.globalSearch.productModelsGlobalSearch=i,this.globalSearch.productModelsGlobalSearch){if(!this.isWebEnableGroup&&this.globalSearch.productModelsGlobalSearch.WebEnabled===!1)return;if(this.globalSearch?.productModelsGlobalSearch?.RouteSegments?.indexOf("//")>-1){this.GlobalData.UseSearch=!0;return}if(this.GlobalData.TemplateType=this.globalSearch.productModelsGlobalSearch.PlmStatus==="Obsolete"?"Obsolete-Model":"Active-Model",this.GlobalData.IsProduct=!1,this.globalSearch.productModelsGlobalSearch.PlmStatus==="Obsolete")this.router.navigate(["store","legacy-sensors-and-instruments",this.globalSearch.productModelsGlobalSearch.Name]);else{let r={};this.globalSearch.productModelsGlobalSearch.RouteSegments.includes("legacy-sensors-and-instruments")&&(r={livemodel:!1}),this.router.navigate([this.globalSearch.productModelsGlobalSearch.RouteSegments],{queryParams:r})}}})}searchProductsPromise(){return tn(this.globalSearchService.GetProductsGlobalSearch(this.currentLanguage,this.searchstring)).then(i=>{if(this.globalSearch.productsGlobalSearch=i,this.globalSearch.productsGlobalSearch){if(!this.isWebEnableGroup&&this.globalSearch.productsGlobalSearch.WebEnabled===!1)return;this.GlobalData.TemplateType="Product",this.GlobalData.IsProduct=!0;let r=this.globalSearch.productsGlobalSearch;if(r.ProductAccessoryTypeName?.toLowerCase()==="measurement-software")this.router.navigate(["store/"+r.ProductClassName+"/"+r.ProductAccessoryTypeName+"/"+r.ProductModelRouteSegment+"/"+r.Name]);else if(r.Name==="ser00516")this.router.navigate(["softwaredetails/ser00516"]);else if(r.PlmStatus.toLowerCase()==="obsolete"&&r.Stock===0)this.router.navigate(["store","legacy-sensors-and-instruments",r.ProductModelRouteSegment,r.Name]);else if(r.ProductAccessoryTypeName?.toLowerCase()&&r.ProductAccessoryTypeName?.toLowerCase()!=="instrumentation"){let s=this.mainAccessoriesPage.AccessoryTypes.find(o=>o.Name.toLowerCase()===r.ProductAccessoryTypeName.toLowerCase());s?this.router.navigate(["store/accessories",s.RouteSegment,r.Name]):this.router.navigate([r.RouteSegments])}else r.ProductAccessoryTypeName.toLowerCase()==="instrumentation"?this.router.navigate(["configure","advanced",r.Name,1,0]):this.router.navigate([r.RouteSegments])}})}searchCartPromise(){return tn(this._globalsearch.globalSearch(this.searchstring,this.isWebEnableGroup)).then(i=>{if(i===null){this.isNoDataFound=!0;return}if(i.IsProduct){this.GlobalData=i,this.resetdata(),this.isNoDataFound=!1,this.GlobalData.SingleProduct.Series.toLowerCase()=="measurement-software"?this.router.navigate(["store/"+this.GlobalData.SingleProduct.Class+"/"+this.GlobalData.SingleProduct.Series+"/"+this.GlobalData.SingleProduct.Model+"/"+this.GlobalData.SingleProduct.ProductName]):this.GlobalData.SingleProduct.ProductName.toLowerCase()==="ser00516"?this.router.navigate(["softwaredetails/ser00516"]):this.GlobalData.SingleProduct.Status.toLowerCase()==="obsolete"&&this.GlobalData.SingleProduct.Stock==0?this.router.navigate(["store/legacy-sensors-and-instruments/"+this.GlobalData.SingleProduct.Model+"/"+this.GlobalData.SingleProduct.ProductName]):this.GlobalData.SingleProduct.ProductAccessory?this.GlobalData.SingleProduct.ProductAccessory.toLowerCase()!=="instrumentation"?this.router.navigate(["store/accessories",this.GlobalData.SingleProduct.ProductAccessory,this.GlobalData.SingleProduct.ProductName]):this.router.navigate(["store/"+this.GlobalData.SingleProduct.Class+"/"+this.GlobalData.SingleProduct.Series+"/"+this.GlobalData.SingleProduct.Model+"/"+this.GlobalData.SingleProduct.ProductName]):this.router.navigate(["store/"+this.GlobalData.SingleProduct.Class+"/"+this.GlobalData.SingleProduct.Series+"/"+this.GlobalData.SingleProduct.Model+"/"+this.GlobalData.SingleProduct.ProductName]);return}else if(i.TemplateType.toLowerCase()=="cart"){this.resetdata(),this.GlobalData=i,sessionStorage.setItem("AccessCode",this.searchstring);let r=this.searchstring.substring(0,3).toLowerCase();r==="rep"?this.orderType="Repair":r==="ret"?this.orderType="Return":r.substring(0,2)==="r-"?this.orderType="Recal":this.orderType="Order",this.orderType=="Repair"||this.orderType=="Return"||this.orderType=="Order"?this.router.navigate(["cart"]):this.orderType=="Recal"?this.router.navigate(["recalcart"]):this.router.navigate(["cart"])}})}performBroadSearchPromise(){let i=[this.searchProductsBroadPromise(1),this.searchApplicationsBroadPromise(1)];return Promise.all(i)}searchProductClassesPromise(){return tn(this.globalSearchService.GetProductClassesBroadSearch(this.currentLanguage,this.searchstring)).then(i=>{this.ClasssUIModel=[],this.globalSearch.productClassesGlobalSearch=i,i&&(this.GlobalData.TemplateType="Product",this.GlobalData.IsProduct=!1,this.globalSearch.productClassesGlobalSearch.forEac
210h((r,s)=>{this.ClasssUIModel.push({ClassName:r.ClassName,Description:r.Description,RelativeUrl:r.RelativeUrl,ImagePath:new URL(r.ImagePath,Y.OptimizelyCMSBaseUrl).href})}))})}setProductsPage(i){this.currentProductsPage=i,this.isLoading=!0,this.searchProductsBroadPromise(i)}searchProductsBroadPromise(i){return tn(this.globalSearchService.GetProductsBroadSearch(this.currentLanguage,this.searchstring,i,this.pageSize)).then(r=>{let s=this.GlobalData?.IsAdminOrInternalUser||!1,o=r?.items?.filter(a=>s||a.WebEnabled)||[];this.globalSearch.productsBroadGlobalSearch=_e(P({},r),{items:o}),this.productData=[],this.groupedProductData=[],o.length>0&&(this.GlobalData.TemplateType="Product",this.GlobalData.IsProduct=!1,o.forEach(a=>{this.productData.push({ProductName:a.ProductName,ProductDefinition:a.ProductDefinition,RouteSegments:a.RouteSegments,ImageURL:new URL(a.ImageURL,Y.OptimizelyCMSBaseUrl).href});let l=a.ProductModel.Expanded?.ExternalId||0,c=this.groupedProductData.find(d=>d.model?.ExternalId===l);c?c.products.push(a):(c={model:a.ProductModel.Expanded,products:[a]},c.model.Image.Url=new URL(c.model.Image.Url,Y.OptimizelyCMSBaseUrl).href,this.groupedProductData.push(c))}),this.GlobalData.ProductModel=this.productData)}).finally(()=>{this.isLoading=!1})}searchProductModelsBroadPromise(){return tn(this.globalSearchService.GetProductModelsBroadSearch(this.currentLanguage,this.searchstring)).then(i=>{this.globalSearch.productModelsBroadGlobalSearch=i,i&&(this.ModelsUIModel=[],this.GlobalData.TemplateType="Product",this.GlobalData.IsProduct=!1,this.globalSearch.productModelsBroadGlobalSearch.forEach((r,s)=>{this.ModelsUIModel.push({Model:r.Model,Obsolete:r.PlmStatus==="Obsolete",Description:r.ProductDefinition,RelativeUrl:r.RouteSegment,RouteSegments:r.RouteSegments,ImagePath:new URL(r.ImageURL,Y.OptimizelyCMSBaseUrl).href})}))})}searchProductSeriesBroadPromise(){return tn(this.globalSearchService.GetProductSeriesBroadSearch(this.currentLanguage,this.searchstring)).then(i=>{this.globalSearch.productSeriesBroadGlobalSearch=i,i&&(this.SeriesUIModel=[],this.GlobalData.TemplateType="Product",this.GlobalData.IsProduct=!1,this.globalSearch.productSeriesBroadGlobalSearch.forEach((r,s)=>{this.SeriesUIModel.push({Name:r.Name,Description:r.Description,RouteSegments:r.RouteSegments,ImagePath:new URL(r.ImagePath,Y.OptimizelyCMSBaseUrl).href})}))})}setApplicationsPage(i){this.currentApplicationsPage=i,this.isLoading=!0,this.searchApplicationsBroadPromise(i)}searchApplicationsBroadPromise(i){return tn(this.globalSearchService.GetApplicationsBroadSearch(this.currentLanguage,this.searchstring,i,this.applicationsPageSize)).then(r=>{this.globalSearch.applicationsBroadGlobalSearch=r,r&&(this.ApplicationsUIModel=[],this.GlobalData.TemplateType="Application",this.GlobalData.IsProduct=!1,this.globalSearch.applicationsBroadGlobalSearch.items.forEach(s=>{this.ApplicationsUIModel.push({Title:s.Title,Summary:s.Summary,ProductsSummary:s.ProductsSummary,RouteSegments:s.RouteSegments,TextSummary:s.TextSummary,ImageURL:new URL(s.ImagePath,Y.OptimizelyCMSBaseUrl).href})}))}).finally(()=>{this.isLoading=!1})}loadDataFromCms(){return this.GlobalData={},this.GlobalData.TemplateType="nomatch",this.isNoDataFound=!1,this.isLoading=!0,this.globalSearchService.GetSearchPage(this.currentLanguage).subscribe(i=>{this.searchPage=i}),tn(km({mainAccessoriesPage:this._storeService.GetMainAccessoriesPage(this.isAdmin?null:!0),futekAppConfigs:this.globalSearchService.GetFutekAppConfigs(this.currentLanguage)})).then(({mainAccessoriesPage:i,futekAppConfigs:r})=>{if(this.mainAccessoriesPage=i,this.globalSearch.searchBySynonymsConfigData=r,r===null)return;let s=r.find(o=>o.Keyword&&this.searchstring&&o.Keyword.toLowerCase()===this.searchstring.toLowerCase())?.Value;if(s){let o=s;if(this.GlobalData.TemplateType=o,this.GlobalData.IsProduct=!1,this.GlobalData.TemplateType.toLowerCase()=="certificate")this.router.navigate(["certifications"]);else if(this.GlobalData.TemplateType.toLowerCase()=="software")this.router.navigate(["measurement-software"]);else{this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate(["/search/",o])});return}}}).then(()=>
210{if(this.GlobalData.TemplateType==="nomatch")return this.searchProductAccessoriesPromise()}).then(()=>{if(this.GlobalData.TemplateType==="nomatch")return this.searchProductSeriesPromise()}).then(()=>{if(this.GlobalData.TemplateType==="nomatch")return this.searchProductModelsPromise()}).then(()=>{if(this.GlobalData.TemplateType==="nomatch")return this.searchProductsPromise()}).then(()=>{if(this.GlobalData.TemplateType==="nomatch")return this.searchCartPromise()}).then(()=>{if(this.GlobalData.TemplateType==="nomatch")return this.performBroadSearchPromise()}).then(()=>{this.GlobalData.TemplateType==="nomatch"&&(this.isNoDataFound=!0,this.resetdata())}).catch(i=>{this.isNoDataFound=!0,this.resetdata(),console.error("Error in loadDataFromCms:",i)}).finally(()=>{this.isLoading=!1})}ClassNavigation(i){i&&i.RelativeUrl=="measurement-software"?this.router.navigate(["/measurement-software"]):i&&i.RelativeUrl=="store-calibration"?this.router.navigate(["store-calibration"]):this.router.navigate(["store/"+i.RelativeUrl])}filterStorePageData(i){this.filterStoreData=[];let r=0,s=i.pageIndex*i.pageSize;this.filterStoreData=this.GlobalData.StoreModel.slice(s,s+50)}ProductPage(i){i.ProductName.toLowerCase()=="fsh03189"?this.router.navigate(["softwaredetails/fsh03189"]):i.ProductName.toLowerCase()=="ser00516"?this.router.navigate(["softwaredetails/ser00516"]):i.Status.toLowerCase()=="obsolete"&&i.Stock==0?this.router.navigate(["store/legacy-sensors-and-instruments/"+i.Model+"/"+i.ProductName]):i.ProductAccessory?i.ProductAccessory.toLowerCase()!="instrumentation"?this.router.navigate(["store/accessories",i.ProductAccessory,i.ProductName]):this.gotoProductPage(i):this.gotoProductPage(i)}gotoProductPage(i){this._storeService.getProductURLInfobySeries(i.SeriesId).subscribe(r=>{this.router.navigate(["store/"+r.ClassRelativeUrl+"/"+r.SeriesRelativeUrl+"/"+i.ModelRelativeUrl+"/"+i.ProductName])})}ModelPage(i){i.Obsolete?this.router.navigate(["store/legacy-sensors-and-instruments/"+i.RelativeUrl]):this.router.navigate(["store/"+i.ClassRelativeUrl+"/"+i.SeriesRelativeUrl+"/"+i.RelativeUrl])}resetdata(){this.productData=[],this.storeModelDataCount=0,this.productDataCount=0,this.filterProductData=[],this.ModelsUIModel=[],this.SeriesUIModel=[],this.ClasssUIModel=[],this.storeModelData=[],this.filterStoreData=[],window.scrollTo(0,0),this.p=1,this.globalSearch=new Gu}filterProductPageData(){let i=document.getElementById("serachproductstopscroll");window.scrollTo(0,i.offsetTop-160)}errorHandle(i,r=this.NoImagePath){i.target.src=r}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete(),this._loaderService.hide()}};h(e,"\u0275fac",function(r){return new(r||e)(U(os),U(on),U(ft),U(ln),U(tl),U(pr),U(Wn),U(Gf))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-global-search"]],features:[Ni([os])],decls:4,vars:2,consts:[["loader",""],[1,"main-panel"],["class","panel-wrapper text-color-primary",4,"ngIf","ngIfElse"],[1,"panel-wrapper","text-color-primary"],["class","noData-wrapper",4,"ngIf"],[4,"ngIf"],[1,"noData-wrapper"],[1,"heading-m","text-color-secondary","title"],[1,"semibold"],[1,"description","text-l"],[1,"row"],["routerLink","/store",1,"primary-button","small-button"],["routerLink","/about/contact",1,"tertiary-button","small-button"],[1,"subheading","text-xl","bold"],[1,"product-cards","no-border"],["style","text-decoration: none;cursor: pointer;","class","product-cards__card",3,"routerLink",4,"ngFor","ngForOf"],[1,"product-cards__card",2,"text-decoration","none","cursor","pointer",3,"routerLink"],["height","144",1,"product-cards__card-img",3,"error","src"],[1,"text-l","text-color-secondary"],[1,"product-cards"],[1,"product-cards__card-title"],[1,"text-l","text-color-primary"],[1,"text-m","text-color-secondary"],[1,"data-wrapper"],[1,"search-tabs",3,"selectedTabChange","selectedIndex"],["mat-tab-label",""],[1,"search-tab"],[4,"ngFor","ngForOf"],[1,"headings"],[1,"text-l","bold","text-color-secondary"],[1,"text-l","text-color-tertiary"],["class","search-accordion","hideToggle","",4,"ngFor","ngForOf"],["class","pagination",4,"ngIf"],[1,"text-l"],["hideToggle","",1,"search-accordion"],[1,"accordion-header"],[1,"img-wrapper"],[1,"img-header",3,"error","src"],[1,"content-wrapper"],[1,"content"],[1,"text-l","text-color-primary","bold"],["class","text-l text-color-secondary",4,"ngFor","ngForOf"],[1,"text-l","text-color-tertiary","text-italic"],[1,"button-wrapper"],[1,"primary-button","small-button"],[1,"series-item"],[1,"series-description"],[1,"heading","heading-m","text-brand-primary","bold"],[1,"text-l","text-color-tertiary",3,"innerHTML"],["class","series-product",4,"ngFor","ngForOf"],[1,"series-product"],["class","primary-button small-button",3,"routerLink",4,"ngIf"],[1,"primary-button","small-button",3,"routerLink"],[1,"pagination"],["id","products-pag",1,"page","text-m",3,"pageChange"],["id","applications-pag",1,"page","text-m",3,"pageChange"],[1,"loader-overlay-light"],[1,"loadingpanel"],["mode","indeterminate",1,"spinner"]],template:function(r,s){if(r&1&&(p(0,"div",1),M(1,Ek,3,2,"div",2)(2,Tk,3,0,"ng-template",null,0,We),u()),r&2){let o=He(3);m(),v("ngIf",!s.isLoading)("ngIfElse",o)}},dependencies:[Et,nt,qf,$f,Wf,ss,zf,jf,Qf,Kf,it,At,Xf],styles:['.panel-wrapper[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:var(--font-weight-regular);margin-bottom:1rem}.panel-wrapper[_ngcontent-%COMP%]   .noData-wrapper[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{padding-bottom:2rem}.panel-wrapper[_ngcontent-%COMP%]   .noData-wrapper[_ngcontent-%COMP%]   .small-button[_ngcontent-%COMP%]{font-weight:var(--font-weight-regular)}.panel-wrapper[_ngcontent-%COMP%]   .noData-wrapper[_ngcontent-%COMP%]   .primary-button[_ngcontent-%COMP%]{margin-right:1.25rem}.panel-wrapper[_ngcontent-%COMP%]   .noData-wrapper[_ngcontent-%COMP%]   .subheading[_ngcontent-%COMP%]{margin-top:3.25rem;padding-bottom:1.25rem}.panel-wrapper[_ngcontent-%COMP%]   .product-cards[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;gap:1.25rem}.panel-wrapper[_ngcontent-%COMP%]   .product-cards.no-border[_ngcontent-%COMP%]{gap:2.25rem}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .product-cards[_ngcontent-%COMP%]{gap:1rem}.panel-wrapper[_ngcontent-%COMP%]   .product-cards.no-border[_ngcontent-%COMP%]{gap:1rem}}.panel-wrapper[_ngcontent-%COMP%]   .no-border[_ngcontent-%COMP%]   .product-cards__card[_ngcontent-%COMP%]{border:0;box-shadow:none;width:15%;padding:0}@media screen and (max-width: 1024px){.panel-wrapper[_ngcontent-%COMP%]   .no-border[_ngcontent-%COMP%]   .product-cards__card[_ngcontent-%COMP%]{width:29%}}@media screen and (max-width: 600px){.panel-wrapper[_ngcontent-%COMP%]   .no-border[_ngcontent-%COMP%]   .product-cards__card[_ngcontent-%COMP%]{width:45%}}.panel-wrapper[_ngcontent-%COMP%]   .no-border[_ngcontent-%COMP%]   .product-cards__card[_ngcontent-%COMP%]   .product-cards__card-img[_ngcontent-%COMP%]{margin:1rem 0}.panel-wrapper[_ngcontent-%COMP%]   .product-cards__card[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;border:1px solid var(--action-primary-disabled);box-shadow:var(--shadow-1);border-radius:4px;background-color:var(--white-color);text-align:center;min-height:230px;width:23%}@media screen and (max-width: 1024px){.panel-wrapper[_ngcontent-%COMP%]   .product-cards__card[_ngcontent-%COMP%]{width:29%}}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .product-cards__card[_ngcontent-%COMP%]{width:47%}}.panel-wrapper[_ngcontent-%COMP%]   .product-cards__card[_ngcontent-%COMP%]   .product-cards__card-img[_ngcontent-%COMP%]{max-height:9rem;height:100%;width:100%;object-fit:contain;margin:.5rem 0}.panel-wrapper[_ngcontent-%COMP%]   .headings[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.panel-wrapper[_ngcontent-%COMP%]   .data-wrapper[_ngcontent-%COMP%]{margin-top:1.25rem}.panel-wrapper[_ngcontent-%COMP%]   .text-italic[_ngcontent-%COMP%]{font-style:italic}.panel-wrapper[_ngcontent-%COMP%]   .text-brand-primary[_ngcontent-%COMP%]{color:var(--primary-color-500)}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]{margin-bottom:2rem}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .accordion-header[_ngcontent-%COMP%]{height:fit-content;justify-content:space-between;
210border:1px solid var(--divider-default);background-color:#fcfcfc;padding-right:0!important;border-radius:6px;min-height:156px}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .accordion-header[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]{border-left:1px solid var(--divider-default)}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .img-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;min-height:156px;max-height:156px;width:15%}@media screen and (max-width: 1024px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .img-wrapper[_ngcontent-%COMP%]{width:20%}}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .img-wrapper[_ngcontent-%COMP%]{width:30%;align-items:flex-start;padding-top:.5rem}}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .img-header[_ngcontent-%COMP%]{width:100%;height:auto;max-height:156px;object-fit:contain}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .img-header[_ngcontent-%COMP%]{max-height:unset}}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]{width:85%;height:100%;min-height:156px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}@media screen and (max-width: 1024px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]{width:80%}}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]{width:70%}}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:70%;height:100%;min-height:156px;padding:1.25rem 0 1.25rem 1.875rem;display:flex;flex-direction:column;margin:auto}@media screen and (max-width: 1024px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:65%}}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{padding:1rem;width:100%;min-height:unset}}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{width:30%;height:100%;display:flex;align-items:center;justify-content:flex-end}@media screen and (max-width: 1024px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{width:35%}}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{width:80%;justify-content:flex-start}}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .primary-button[_ngcontent-%COMP%]{margin:1rem 2rem}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .primary-button[_ngcontent-%COMP%]{margin:1rem}}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .series-item[_ngcontent-%COMP%]{border-left:1px solid var(--divider-default);border-right:1px solid var(--divider-default);border-bottom:1px solid var(--divider-default);background-color:#fcfcfc;border-radius:0 0 6px 6px}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .series-item[_ngcontent-%COMP%]   .series-description[_ngcontent-%COMP%]{padding:2rem 2rem 1rem}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .series-item[_ngcontent-%COMP%]   .series-description[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{padding-bottom:1rem}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .series-item[_ngcontent-%COMP%]   .series-product[_ngcontent-%COMP%]{display:flex;padding:1.5rem 0 1.5rem 2rem;border-bottom:1px solid var(--divider-default)}@media screen and (max-width: 769px){.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .series-item[_ngcontent-%COMP%]   .series-product[_ngcontent-%COMP%]{padding:1.5rem}}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .series-item[_ngcontent-%COMP%]   .series-product[_ngcontent-%COMP%]   .img-header[_ngcontent-%COMP%]{border:1px solid var(--div
210ider-default);border-radius:4px}.panel-wrapper[_ngcontent-%COMP%]   .search-accordion[_ngcontent-%COMP%]   .series-item[_ngcontent-%COMP%]   .series-product[_ngcontent-%COMP%]:last-of-type{border-bottom:none}.search[_ngcontent-%COMP%]{width:100%!important;position:relative;display:flex;margin-top:47px;margin-bottom:23px}.productpanelboxm1[_ngcontent-%COMP%]{padding-right:5px!important;padding-left:5px!important}.numberofpagesa1[_ngcontent-%COMP%]{font-size:10pt;font-family:Nunito Sans,sans-serif;font-weight:400;text-align:right}[_nghost-%COMP%]     .ngx-pagination .current{background:#7d7d7d;color:#fefefe;cursor:default;font-size:8pt;padding:5px 9px}[_nghost-%COMP%]     .ngx-pagination a, .ngx-pagination[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#0a0a0a;display:block;padding:5px 9px;border-radius:0}.globalactivestoretitlepl1[_ngcontent-%COMP%]{font-size:26px;font-weight:200;color:#ca0000;line-height:1em;letter-spacing:-.02em;text-transform:capitalize;padding:0;font-family:Nunito Sans,sans-serif}.apicart-products__product-image-wrapper[_ngcontent-%COMP%]:after{content:"";display:block;width:0;height:2px;background:#ca0000;transition:width .3s;margin-top:6px}.apicart-products__product-image-wrapper[_ngcontent-%COMP%]:hover:after{width:100%;transition:width .3s}.apicart-products__product-image-wrapper[_ngcontent-%COMP%]:hover   .Productdesv1[_ngcontent-%COMP%], .apicart-products__product-image-wrapper[_ngcontent-%COMP%]:hover   .seProducttitlev1[_ngcontent-%COMP%]{color:#ca0000}.apicart-products__product-image[_ngcontent-%COMP%]{position:relative;-webkit-transform:translateX(-50%);transform:translateY(-4%);top:0;max-width:100%;left:0;padding:0;max-height:100%}.imagepathmain[_ngcontent-%COMP%]{text-align:center;height:180px;padding-top:16px;width:100%}.apicart-products__product[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:7px}.apicart-products__product[_ngcontent-%COMP%]{width:calc(20% - 6px);margin-right:6px}.catHeader[_ngcontent-%COMP%]{font-weight:700;font-size:125%;padding:1%}.searchTerm[_ngcontent-%COMP%]{border:2px solid #e0e0e0;border-right:none;padding:5px;border-radius:0;outline:none;color:#000;margin-left:0;height:36px;width:100%;margin-top:0;font-size:10pt}.searchTerm[_ngcontent-%COMP%]:focus{color:#000}.searchButton[_ngcontent-%COMP%]{width:40px;height:36px;border:1px solid #fece00;background:#fece00;text-align:center;color:#fff;border-radius:0;cursor:pointer;font-size:20px}.iconm1[_ngcontent-%COMP%]{color:#000}.wrap[_ngcontent-%COMP%]{width:30%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.storemodelpanel[_ngcontent-%COMP%]{font-size:13px;margin-bottom:12px;border:1px solid #ebeff2;margin-left:9px;height:189px}.liststoretitlederbox1[_ngcontent-%COMP%]{font-weight:700}.productmediaimg[_ngcontent-%COMP%]{width:100%;height:100%}.serstoreimgdata[_ngcontent-%COMP%]{width:85%;height:125px}.subliststoretitlederbox2[_ngcontent-%COMP%]{text-align:left;padding:3px 9px;height:61px;overflow:hidden}.liststoretitlederbox2[_ngcontent-%COMP%]{text-align:left;padding:3px 9px;height:61px}.storecategoryTitleview[_ngcontent-%COMP%]{color:#7d7d7d;height:26px;font-family:Roboto,Helvetica Neue,sans-serif;font-size:10pt;font-weight:400;text-align:left;padding:0}.model[_ngcontent-%COMP%]{color:#7e7e7e;font-size:14px;font-weight:700;letter-spacing:.02em;font-family:Nunito Sans,sans-serif;text-align:left}.gotitle[_ngcontent-%COMP%]{font-size:10pt;color:#000;font-weight:400;text-align:left;letter-spacing:0px;line-height:16px;font-family:Nunito Sans,sans-serif;padding:0;height:32px;word-break:break-all;overflow-y:hidden}.sastoremodelpanel1[_ngcontent-%COMP%]{border:1px solid #ebeff2;margin:0 0 12px;padding:0;background:#fff;height:189px;text-align:center;width:95%}.sastoremodelpanel1[_ngcontent-%COMP%]:hover{border:1px solid #ebeff2;margin:0 0 12px;padding:0;background:#fff;height:189px;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;transition:all 1s cubic-bezier(.25,.8,.25,1);width:95%}.searchmainpanelglobal[_ngcontent-%COMP%]{margin:0 auto 5%;width:45%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-right:0;margin-left:0}.clears1[_ngcontent-%COMP%]{height:80px}.col-md-3[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%]{padding-right:0;padding-left:0;width:100%}.fshsastoremodelpanel1[_ngcontent-%COMP%]{border:1px solid #ebeff2;margin:0 0 12px;padding:0;background:#fff;height:200px;text-align:center;width:95%}.fshsastoremodelpanel1[_ngcontent-%COMP%]:hover{border:1px solid #ebeff2;margin:0 0 12px;padding:0;background:#fff;height:200px;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;transition:all 1s cubic-bezier(.25,.8,.25,1);width:95%}.golistserstoreimgdata[_ngcontent-%COMP%]{width:60%;height:100px;margin-top:12px}.Storetextv1[_ngcontent-%COMP%]{font-size:12pt;padding:0 0 8px 4px;font-weight:400;font-family:Nunito Sans,sans-serif}.Newspanelm1[_ngcontent-%COMP%]{border-bottom:1px dotted #ccc;width:100%;margin-bottom:29px;margin-top:0}.col-md-2[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.newsarrowmarkimg[_ngcontent-%COMP%]{width:12px}.signalpagemainpanel[_ngcontent-%COMP%]{background:#fff;border:1px solid #c7c7c7c7;padding:50px 25px 0 24px;box-shadow:0 6px 5px 5px #d0d0d0a1}.noData[_ngcontent-%COMP%]{text-align:center;font-size:18px}input.innerSerach[_ngcontent-%COMP%]{outline:none!important}input[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;font-family:inherit;font-size:100%}input[_ngcontent-%COMP%]::-webkit-search-decoration, input[_ngcontent-%COMP%]::-webkit-search-cancel-button{display:none}input[type=search][_ngcontent-%COMP%]{background:#ededed url(https://static.tumblr.com/ftv85bp/MIXmud4tx/search-icon.png) no-repeat 5px center;border:solid 1px #ccc;padding:5px 5px 7px 0;width:55px;font-size:9pt;-webkit-border-radius:10em;-moz-border-radius:10em;border-radius:10em;-webkit-transition:all .5s;-moz-transition:all .5s;transition:all .5s}input[_ngcontent-%COMP%]:-moz-placeholder{color:#999}input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#999}#demo-2[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]{width:20px;padding-left:9px;color:transparent;cursor:pointer;height:23px}#demo-2[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]:hover{background-color:#fff}#demo-2[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]:focus{width:160px;padding-left:32px;color:#000;background-color:#fff;cursor:auto}#demo-2[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:-moz-placeholder{color:transparent}#demo-2[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:transparent}#demo-2[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]::-webkit-input-placeholder{font-size:13px}#demo-2[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]::-moz-placeholder{font-size:13px}#demo-2[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]::-ms-input-placeholder{font-size:13px}#demo-2[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]::placeholder{font-size:13px}.classtextn1[_ngcontent-%COMP%]{font-size:11pt;color:#ca0000}.productdPanel[_ngcontent-%COMP%], .productdPanel[_ngcontent-%COMP%]:hover{height:345px!important}.globalboxpanel[_ngcontent-%COMP%]{border:1px dotted rgba(204,204,204,.6901960784313725);padding:9px 8px;margin-bottom:10px;height:275px}.globalboxpanel[_ngcontent-%COMP%]:hover   .globalseProducttitlev1[_ngcontent-%COMP%]{color:#ca0000}.globalboxpanel[_ngcontent-%COMP%]:hover{color:#ca0000;padding:9px 8px;margin-right:10px;margin-bottom:10px;height:275px;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;transition:all 1s cubic-bezier(.25,.8,.25,1)}.globalboxpanel[_ngcontent-%COMP%]:after{content:"";display:block;width:0;height:2px;background:#ca0000;transition:width .3s;margin-top:6px}.globalboxpanel[_ngcontent-%COMP%]:hover:after{width:100%;transition:width .3s}.globalseProducttitlev1[_ngcontent-%COMP%]{color:#000;font-size:14px;text-align:left;padding:0;font-weight:500;width:100%;height:36px;overflow:hidden;font-family:Nunito Sans,sans-serif}.globalseProducttitlev1[_ngcontent-%COMP%]:hover{color:#ca0000}.imagePathsergob[_ngcontent-%COMP%]{margin-bottom:8px;height:111px;text-align:center;width:100%}.gobleQuickproductp1[_ngcontent-%COMP%]{float:right;text-align:right;margin-top:38px;font-size:10pt}.sestoreloadcellimg1gob[_ngcontent-%COMP%]{margin-top:8px;max-width:100%;max-height:100%}.goblallinks1[_ngcontent-%COMP%]{text-decoration:none;cursor:pointer}.goblallinks1[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .goblallinks1[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.gobProductdefv1[_ngcontent-%COMP%]{height:111px!important}.gobProductdesv1[_ngcontent-%COMP%]{white-space:normal;height:41px;overflow:hidden;line-height:18px;font-size:13px;color:#272727;font-family:Nunito Sans,sans-serif;margin-top:0;width:100%;padding-top:5px}@media (min-width: 320px) and (max-width: 640px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(50% - 6px);margin-right:6px}}@media (min-width: 640px) and (max-width: 720px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(100% * (1/3) - 6px);margin-right:6px}}@media (min-width: 680px) and (max-width: 720px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(100% * (1/3) - 6px);margin-right:6px}}@media (min-width: 720px) and (max-width: 960px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(100% * (1/3) - 6px);margin-right:6px}}@media (min-width: 960px) and (max-width: 1024px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(100% * (1/3) - 6px);margin-right:6px}}@media (min-width: 1024px) and (max-width: 1200px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(100% * (1/3) - 6px);margin-right:6px}}@media (min-width: 1200px) and (max-width: 1300px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(25% - 6px);margin-right:6px}}@media (min-width: 1300px) and (max-width: 1366px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(25% - 6px);margin-right:6px}}@media (min-width: 1366px) and (max-width: 1400px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(25% - 6px);margin-right:6px}}@media (min-width: 1400px) and (max-width: 1600px){.apicart-products__product[_ngcontent-%COMP%]{width:calc(25% - 6px);margin-right:6px}}']}
210));let n=e;return n})();var Pk=["quotationform"];function Ak(n,e){if(n&1&&(p(0,"span",17),f(1),u()),n&2){let t=S(3);m(),R(" - ",t.Quotedata.QuoteVersionNumber,"")}}function Ik(n,e){if(n&1&&(p(0,"span",15)(1,"span",16),f(2,"Quotation #"),u(),p(3,"span",17),f(4),fe(5,"uppercase"),u(),M(6,Ak,2,1,"span",18),u()),n&2){let t=S(2);m(4),R(" \xA0 \xA0 ",xe(5,2,t.quotationNumber),""),m(2),v("ngIf",t.Quotedata&&t.Quotedata.QuoteVersionNumber)}}function kk(n,e){if(n&1&&(p(0,"span",19)(1,"span",20),f(2,"Company Name "),u(),p(3,"span",21),f(4),fe(5,"uppercase"),u()()),n&2){let t=S(2);m(4),R(" \xA0 \xA0 ",xe(5,1,t.Quotedata.CompanyName),"")}}function Ok(n,e){if(n&1){let t=$();p(0,"div",22)(1,"span",23),f(2,"Are you affiliated with "),p(3,"b"),f(4),u()(),p(5,"span",24)(6,"button",25),N("click",function(){A(t);let r=S(2);return I(r.checkQuotationNumberData())}),p(7,"span",26),f(8," check_circle_outline "),u(),p(9,"span",27),f(10,"Yes"),u()()(),p(11,"span",28)(12,"button",29),N("click",function(){A(t);let r=S(2);return I(r.navigatetostandardcart())}),p(13,"span",30),f(14," cancel "),u(),p(15,"span",31),f(16,"No"),u()()()()}if(n&2){let t=S(2);m(4),R(" ",t.Quotedata.CompanyName," ?"),m(2),v("disabled",t.YesButtonSelected),m(6),v("disabled",t.NoButtonSelected)}}function Dk(n,e){n&1&&k(0,"i",39)}function Nk(n,e){if(n&1){let t=$();p(0,"div",12)(1,"div",32),f(2,"Please enter email associated with your company\u2019s name"),u(),k(3,"div",33),p(4,"span",34)(5,"mat-form-field",35)(6,"mat-label"),f(7,"Email"),u(),p(8,"input",36),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.userData.EmailAddress,r)||(s.userData.EmailAddress=r),I(r)}),N("keydown.enter",function(){A(t);let r=S(2);return I(r.validateUser())}),u()()(),p(9,"span",34)(10,"button",37),N("click",function(){A(t);let r=S(2);return I(r.validateUser())}),M(11,Dk,1,0,"i",38),f(12,"Submit"),u()()()}if(n&2){let t=S(2);m(8),J("ngModel",t.userData.EmailAddress),m(2),v("disabled",t.isBtnLoading),m(),v("ngIf",t.isBtnLoading)}}function Lk(n,e){if(n&1&&(p(0,"div",5)(1,"div",6)(2,"div",7),M(3,Ik,7,4,"span",8)(4,kk,6,3,"span",9),u()(),p(5,"div",10)(6,"form",11,0)(8,"div",12),M(9,Ok,17,3,"div",13),u(),M(10,Nk,13,3,"div",14),u()()()),n&2){let t=S();m(3),v("ngIf",t.Quotedata),m(),v("ngIf",t.Quotedata),m(5),v("ngIf",t.Quotedata),m(),v("ngIf",t.showEmailPanel)}}function Bk(n,e){n&1&&(p(0,"div",40),f(1," No Data Found "),u())}function Rk(n,e){n&1&&(p(0,"div",41),f(1," Thank you for your quote request. Due to the length of time since the quote was created our sales team will reach out to you shortly with an updated quote. "),u())}var MS=(()=>{let e=class e{constructor(i,r,s,o,a){h(this,"_globalsearch");h(this,"_quotationService");h(this,"router");h(this,"_snackBar");h(this,"route");h(this,"quotationForm");h(this,"Quotedata");h(this,"quotationNumber");h(this,"AccessCode");h(this,"snackbar");h(this,"showEmailPanel",!1);h(this,"YesButtonSelected",!1);h(this,"NoButtonSelected",!1);h(this,"userData",{});h(this,"isBtnLoading",!1);h(this,"GeneralNotes","");h(this,"recordType","");h(this,"NoDataFound",!1);h(this,"NotConfigurableQuote",!1);this._globalsearch=i,this._quotationService=r,this.router=s,this._snackBar=o,this.route=a,this.quotationNumber=this.route.snapshot.paramMap.get("quotenumber")}ngOnInit(){sessionStorage.removeItem("UpdateQuoteAccess"),this.getQuotationData()}getQuotationData(){this._globalsearch.getQuotationData(this.quotationNumber).subscribe(i=>{if(this.Quotedata=i,this.Quotedata){if(this.userData.CompanyName=this.Quotedata.CompanyName,this.userData.WebId=this.Quotedata.WebId,this.GeneralNotes=this.Quotedata.OrderNotes,this.recordType=this.Quotedata.RecordType,this.Quotedata.AccessCode&&this.Quotedata.IsExpired)this.Quotedata.AccessCode=="Sent-EMail"?(this.NoDataFound=!1,this.NotConfigurableQuote=!0):(sessionStorage.setItem("AccessCode",this.Quotedata.AccessCode),sessionStorage.removeItem("RevisedQuoteCart"),$u("Quotation PDF",this.Quotedata.AccessCode,"Quotation Search"),this.router.navigate(["cart"]));else if(this.Quotedata.IsExpired==!1){var r=localStorage.getItem("token");r&&(this.userData.EmailAddress=localStorage.getItem("userName"),this.regValidateUser())}}else this.NoDataFound=!0,this.NotConfigurableQuote=!1})}navigatetostandardcart(){this.NoButtonSelected=!0,this.YesButtonSelected=!1,this.showEmailPanel=!1,this._globalsearch.revisedQuote(this.Quotedata.WebId).subscribe(i=>{this.AccessCode=i,sessionStorage.setItem("AccessCode",this.AccessCode),$u("Quotation PDF",this.AccessCode,"Quote Verify"),sessionStorage.removeItem("RevisedQuoteCart"),this.router.navigate(["cart"])})}reCreateQuotationcart(){var i=new _m;localStorage.getItem("customerId")&&(i.CustomerId=Number.parseInt(localStorage.getItem("customerId"))),i.WebId=this.Quotedata.WebId,this._quotationService.reCreateQuotationcart(i).subscribe(r=>{r||(sessionStorage.getItem("AccessCode")&&(sessionStorage.removeItem("AccessCode"),sessionStorage.removeItem("RevisedQuoteCart")),r=="Sent-EMail"?(this.NoDataFound=!1,this.NotConfigurableQuote=!0):(sessionStorage.setItem("AccessCode",r),this.router.navigate(["cart"])))})}checkQuotationNumberData(){this.NoButtonSelected=!1,this.YesButtonSelected=!0,this.showEmailPanel=!0}navigateRevisedQuote(i){this.quotationForm.valid?(this.AccessCode=i,this.userData&&this.userData.IsRevisedQuoteAccess?(sessionStorage.setItem("RevisedQuoteCart",this.AccessCode),sessionStorage.removeItem("AccessCode"),sessionStorage.setItem("quoteWebId",this.Quotedata.WebId),this.router.navigate(["updatequotecart"])):(sessionStorage.setItem("AccessCode",this.AccessCode),sessionStorage.removeItem("RevisedQuoteCart"),this.router.navigate(["cart"]))):(this.snackbar=new ur(this._snackBar),this.snackbar.openSnackBar("Please enter valid email","close"))}validateUser(){if(this.userData){var i=!0;
210if(this.userData.EmailAddress){var r=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,10}$/;r.test(this.userData.EmailAddress)||(i=!1)}i&&this.userData.EmailAddress&&this.quotationForm&&this.quotationForm.valid?(this.isBtnLoading=!0,this.userData.RecordType=this.recordType,this._globalsearch.verifyUserDetails(this.userData).subscribe(s=>{this.userData=s,this.userData.OrderNotes=this.GeneralNotes,this.userData.QuoteNumber=this.quotationNumber,this.userData.SalesRepEmail=this.Quotedata.SalesRepEmail,this.userData.ShiptoId=this.Quotedata.ShiptoId,this.userData.ShippingAddress=this.Quotedata.ShippingAddress,this.userData.AdditionalEmail=this.Quotedata.AdditionalEmail,localStorage.setItem("userData",JSON.stringify(this.userData)),this.navigateRevisedQuote(this.userData.AccessCode),this.isBtnLoading=!1})):(this.snackbar=new ur(this._snackBar),this.snackbar.openSnackBar("Please enter valid email","close"))}}regValidateUser(){this.userData&&(this.userData.RecordType=this.recordType,this._globalsearch.verifyUserDetails(this.userData).subscribe(i=>{this.userData=i,this.userData.OrderNotes=this.GeneralNotes,this.userData.QuoteNumber=this.quotationNumber,this.userData.SalesRepEmail=this.Quotedata.SalesRepEmail,this.userData.ShiptoId=this.Quotedata.ShiptoId,this.userData.ShippingAddress=this.Quotedata.ShippingAddress,this.userData.AdditionalEmail=this.Quotedata.AdditionalEmail,localStorage.setItem("userData",JSON.stringify(this.userData)),this.navigateRevisedQuote(this.userData.AccessCode),this.isBtnLoading=!1}))}};h(e,"\u0275fac",function(r){return new(r||e)(U(os),U(Yf),U(ft),U(Hi),U(on))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-user-verification-details"]],viewQuery:function(r,s){if(r&1&&li(Pk,5),r&2){let o;ci(o=ui())&&(s.quotationForm=o.first)}},decls:4,vars:3,consts:[["quotationform","ngForm"],[1,"container"],["class","quotationpanel",4,"ngIf"],["class","nodatamsgpnl",4,"ngIf"],["class","noconfigmsgpnl",4,"ngIf"],[1,"quotationpanel"],[1,"row","Newspanelm1"],[1,"col-md-12","textStoretextv1"],["class","quactivestoretitlepl1",4,"ngIf"],["class","quactivestoretitlepl2",4,"ngIf"],[1,"col-md-12"],["novalidate",""],[1,"row"],["class","quheaderpanel1",4,"ngIf"],["class","row",4,"ngIf"],[1,"quactivestoretitlepl1"],[1,"Quotationp1"],[1,"quotationNumbertextb1"],["class","quotationNumbertextb1",4,"ngIf"],[1,"quactivestoretitlepl2"],[1,"Quotationp2"],[1,"quotationNumbertextb2"],[1,"quheaderpanel1"],[1,"youpartnametextb1"],[1,"buttonspanelqu1"],["type","button",1,"yesbuttonpanelm1",3,"click","disabled"],[1,"material-icons","pulseiconm1"],[1,"yestextb1"],[1,"buttonspanelqu2"],["type","button",1,"yesbuttonpanelm2",3,"click","disabled"],[1,"material-icons","pulseiconm2"],[1,"Notextb1"],[1,"emailmessage"],[1,"boxemailheaderpl1"],[1,"emailheaderp1"],["appearance","outline",2,"width","100%"],["matInput","","placeholder","Email","type","email","name","email","required","","pattern","^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,10}$","maxlength","100",3,"ngModelChange","keydown.enter","ngModel"],["type","button",1,"yesbuttonpanelm3",3,"click","disabled"],["class","fa fa-spinner fa-spin fa-fw",4,"ngIf"],[1,"fa","fa-spinner","fa-spin","fa-fw"],[1,"nodatamsgpnl"],[1,"noconfigmsgpnl"]],template:function(r,s){r&1&&(p(0,"div",1),M(1,Lk,11,4,"div",2)(2,Bk,2,0,"div",3)(3,Rk,2,0,"div",4),u()),r&2&&(m(),v("ngIf",!s.NotConfigurableQuote&&!s.NoDataFound&&s.Quotedata),m(),v("ngIf",s.NoDataFound),m(),v("ngIf",s.NotConfigurableQuote))},dependencies:[es,Tt,Mt,Zr,Ri,ja,Qa,Pt,Jr,Vn,Fi,Un,nt,nf],styles:[".Newspanelm1[_ngcontent-%COMP%]{border-bottom:1px dotted #ccc;width:100%;margin-bottom:29px;margin-top:0}.quheaderpanel1[_ngcontent-%COMP%]{width:100%;float:left;margin-bottom:10px}.nodatamsgpnl[_ngcontent-%COMP%]{margin:110px;text-align:center;font-family:Nunito Sans,sans-serif;font-size:24px;color:#7e7e7e;font-weight:400}.noconfigmsgpnl[_ngcontent-%COMP%]{margin:110px;text-align:center;font-family:Nunito Sans,sans-serif;font-size:24px;color:#147acc;font-weight:400}.emailmessage[_ngcontent-%COMP%]{font-size:10pt;margin-top:0;margin-bottom:0;color:#ca0000}.quotationpanel[_ngcontent-%COMP%]{background:#fff;padding-top:50px;margin-bottom:20%;padding-left:10px}.quotationNumbertextb1[_ngcontent-%COMP%]{color:#ca0000;font-weight:400;font-family:Roboto Mono,monospace}.quotationNumbertextb2[_ngcontent-%COMP%]{color:#ca0000;font-weight:400}div.textStoretextv1[_ngcontent-%COMP%]{padding:26px 0!important;line-height:35px}.Quotationp1[_ngcontent-%COMP%]{width:27%;float:left}
210.Quotationp2[_ngcontent-%COMP%]{width:30%;float:left}.quactivestoretitlepl1[_ngcontent-%COMP%]{width:100%;float:left;margin-bottom:0;font-size:18pt;font-weight:400;font-family:Nunito Sans,sans-serif!important}.quactivestoretitlepl2[_ngcontent-%COMP%]{width:100%;float:left;margin-top:0;font-size:18pt;font-weight:400;font-family:Nunito Sans,sans-serif!important}.youpartnametextb1[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;font-size:12pt;float:left;margin-right:20px;padding-top:5px;width:345px}.buttonspanelqu1[_ngcontent-%COMP%], .buttonspanelqu2[_ngcontent-%COMP%]{float:left}.pulseiconm1[_ngcontent-%COMP%]{font-size:15pt;font-weight:400;float:left;padding:2px 5px;width:25px}.pulseiconm2[_ngcontent-%COMP%]{font-size:15pt;font-weight:400;float:left;padding:2px 5px}.yesbuttonpanelm1[_ngcontent-%COMP%]{color:#fff!important;border-radius:0;font-size:10pt;font-family:Nunito Sans,sans-serif;padding:4px;width:70px;margin-right:15px;float:left;background:#4baf4f;border:0px}.yestextb1[_ngcontent-%COMP%]{float:right;line-height:26px;font-weight:700;padding:0 3px}.Notextb1[_ngcontent-%COMP%]{float:right;line-height:26px;font-weight:700;padding-right:6px}.yesbuttonpanelm2[_ngcontent-%COMP%]{background:#db092a;color:#fff!important;border-radius:0;font-weight:400;font-size:10pt;font-family:Nunito Sans,sans-serif;padding:4px;width:66px;border:0px}.yesbuttonpanelm3[_ngcontent-%COMP%]{color:#fff!important;border-radius:0;font-weight:400;font-size:10pt;font-family:Nunito Sans,sans-serif;width:130px;padding:7px;cursor:pointer;margin:15px 30px 19px;background-color:#1379cb;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod\\2026IwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-webkit-linear-gradient(bottom,#0b49b7 0,#1babe1 100%);border:0px;float:left}.emailheaderp1[_ngcontent-%COMP%]{float:left;width:334px}.boxemailheaderpl1[_ngcontent-%COMP%]{width:100%;float:left}"]}));let n=e;return n})(),_m=class{constructor(){h(this,"CustomerId",0);h(this,"WebId",0);h(this,"ApplicationUserId",0)}};var Hk=n=>({"background-color":n});function Vk(n,e){if(n&1&&(p(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",11)(4,"div",16)(5,"span",17),f(6,"Title"),u()(),p(7,"div",18)(8,"span",19),f(9,":"),u()(),p(10,"div",20)(11,"span",21),f(12),u()()()(),p(13,"div",15)(14,"div",11)(15,"div",16)(16,"span",22),f(17," Release Date"),u()(),p(18,"div",18)(19,"span",22),f(20,":"),u()(),p(21,"div",20)(22,"span",23),f(23),fe(24,"date"),u()()()(),p(25,"div",15)(26,"div",11)(27,"div",16)(28,"span",22),f(29,"Description"),u()(),p(30,"div",18)(31,"span",22),f(32,":"),u()(),p(33,"div",20)(34,"span",23)(35,"div",24),k(36,"div",25),fe(37,"s
210afeHtml"),u()()()()()(),p(38,"div",26),k(39,"img",27),u()()),n&2){let t=e.$implicit;m(12),F(t.Title),m(11),F(ho(24,5,t.DateCreated,"fullDate")),m(13),v("ngStyle",Pn(10,Hk,t.Title==="First Event Promo"?"#000":"rgb(116, 116, 116)"))("innerHTML",xe(37,8,t.Html),$e),m(3),v("src","data:image/jpg;base64,"+t.BackgroundImage,X)}}var PS=(()=>{let e=class e{constructor(i,r,s,o,a,l){h(this,"_eventpromodetails");h(this,"titleService");h(this,"_loaderService");h(this,"_seoClientService");h(this,"meta");h(this,"route");h(this,"eventpromodetails");h(this,"Id");h(this,"webpagetitle","Events Details");h(this,"ngUnsubscribe",new ke);this._eventpromodetails=i,this.titleService=r,this._loaderService=s,this._seoClientService=o,this.meta=a,this.route=l,this.Id=this.route.snapshot.paramMap.get("id")}ngOnInit(){this._eventpromodetails.eventpromodetails(this.Id).subscribe(i=>{this.eventpromodetails=i},i=>{}),this._seoClientService.createLinkForCanonicalURL(),this.titleService.setTitle(this.webpagetitle),this.meta.updateTag({name:"description",content:this.webpagetitle}),this.meta.updateTag({name:"keywords",content:this.webpagetitle})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete(),this._loaderService.hide()}};h(e,"\u0275fac",function(r){return new(r||e)(U(nl),U(Wa),U(ln),U($n),U(sn),U(on))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-event-promo-details"]],features:[Ni([nl])],decls:16,vars:1,consts:[["role","main",1,"container"],[1,"signalpagemainpanel","eventPage"],[1,"row","Storeheaderpanel"],[1,"col-md-12","event_Storetextv1"],[1,"event_storetitlepl1"],["routerLink","/eventpromo",1,"Eventtextb1"],[1,"storetitlepl1"],[1,"material-icons"],[1,"activestoretitlepl1"],["routerLink","/eventpromo",1,"activestoretitlepl1"],[1,"h1Tag"],[1,"row"],["class","row  neweventbox",4,"ngFor","ngForOf"],[1,"row","neweventbox"],[1,"col-md-9"],[1,"Releasedatetextv1"],[1,"col-sm-2"],[1,"textDescriptiontextb1"],[1,"col-sm-1"],[1,""],[1,"col-sm-9"],[1,"textDescriptiontextb2"],[1,"Descriptiontextb1"],[1,"Descriptiontextb2"],[1,"eventprodctl1"],[1,"productDetextv4",3,"ngStyle","innerHTML"],[1,"col-md-3"],[1,"eventimgview1",3,"src"]],template:function(r,s){r&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4)(5,"a",5),f(6,"Events"),u()(),p(7,"span",6)(8,"i",7),f(9,"keyboard_arrow_right "),u()(),p(10,"span",8)(11,"a",9)(12,"h1",10),f(13,"Events Details"),u()()()()(),p(14,"div",11),M(15,Vk,40,12,"div",12),u()()()),r&2&&(m(15),v("ngForOf",s.eventpromodetails))},dependencies:[Et,Yr,it,rf,At],styles:[".Releasedatetextv1[_ngcontent-%COMP%]{font-size:14px;color:#757575;width:100%;float:left}.neweventbox[_ngcontent-%COMP%]{margin-bottom:20px;border-bottom:1px dotted #8a8a8a;width:100%;margin-left:auto;margin-right:auto}.Releasedatetextv1[_ngcontent-%COMP%]{font-size:10pt;color:#757575;width:100%;float:left}.textDescriptiontextb1[_ngcontent-%COMP%]{float:left;font-size:10pt;color:#000;font-weight:600}.Descriptiontextb1[_ngcontent-%COMP%]{float:left;width:100px;color:#000;font-weight:600}.Descriptiontextb2[_ngcontent-%COMP%], .textDescriptiontextb2[_ngcontent-%COMP%]{float:left;width:100%;text-align:justify;color:#000}.eventprodctl1[_ngcontent-%COMP%]{background-color:#9e9e9e}.eventimgview1[_ngcontent-%COMP%]{width:100%;margin-bottom:22px}.eventPage[_ngcontent-%COMP%]   .Releasedatetextv1[_ngcontent-%COMP%]   .col-sm-1[_ngcontent-%COMP%]{max-width:4.33%}.eventPage[_ngcontent-%COMP%]   .Releasedatetextv1[_ngcontent-%COMP%]   .col-sm-2[_ngcontent-%COMP%]{max-width:14%}.eventPage[_ngcontent-%COMP%]   .Releasedatetextv1[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin-bottom:5px}.event_Storetextv1[_ngcontent-%COMP%]{padding:0 0 34px 4px;font-family:Nunito Sans,sans-serif;text-transform:capitalize;margin-top:30px;font-size:38px;font-weight:200;line-height:38px}.event_storetitlepl1[_ngcontent-%COMP%]{float:left;font-size:38px;font-weight:200;color:#202020;line-height:.929em;letter-spacing:-.02em;text-transform:capitalize}.Eventtextb1[_ngcontent-%COMP%]{color:#202020}.productDetextv4[_ngcontent-%COMP%]{padding:10pt}"]}));let n=e;return n})();function Uk(n,e){if(n&1&&k(0,"img",8),n&2){let t=S(2);xt("src","",t.FileHostUrl,"/content/futek/images/home/cartempty.jpg",X)}}function Gk(n,e){if(n&1&&(p(0,"div",4)(1,"div",5),M(2,Uk,1,2,"img",6),k(3,"app-spinner",7),u()()),n&2){let t=S();m(2),v("ngIf",!t.isLoading),m(),v("isLoading",t.isLoading)}}function $k(n,e){if(n&1){let t=$();p(0,"div",25)(1,"span"),f(2,"Please Call Factory"),u(),p(3,"a",26),N("click",function(){A(t);let r=S(2);return I(r.closeMessageResponse())}),f(4,"X"),u()()}}function Wk(n,e){if(n&1){let t=$();p(0,"div",27)(1,"div",28)(2,"div",29)(3,"mat-form-field",30)(4,"input",31),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.quickAddItem,r)||(s.quickAddItem=r),I(r)}),u()()(),p(5,"div",32)(6,"button",33),N("click",function(){A(t);let r=S(2);return I(r.quickAdd())}),f(7," Add"),u()()()()}if(n&2){let t=S(2);m(4),J("ngModel",t.quickAddItem)}}function qk(n,e){n&1&&(p(0,"span")(1,"a",76),f(2,"- Learn More"),u()())}function zk(n,e){if(n&1&&(p(0,"div",74),f(1),fe(2,"currency"),u()),n&2){let t=S().$implicit;m(),R("",xe(2,1,t.PriceEach)," ")}}function jk(n,e){if(n&1&&(p(0,"div",77),f(1),fe(2,"currency"),u()),n&2){let t=S().$implicit;m(),R(" ",xe(2,1,t.OriginalListPrice),"")}}function Qk(n,e){if(n&1&&(p(0,"div",80),f(1),fe(2,"currency"),u()),n&2){let t=S(2).$implicit;m(),R(" ",xe(2,1,t.PriceEach),"")}}function Xk(n,e){if(n&1&&(p(0,"div")(1,"span",80),f(2),fe(3,"currency"),u(),k(4,"br"),p(5,"span",81),f(6),fe(7,"currency"),u()()),n&2){let t=S(2).$implicit;m(2),F(xe(3,2,t.PriceEach)),m(4),F(xe(7,4,t.PriceEach))}}function Kk(n,e){if(n&1&&(p(0,"div",78),M(1,Qk,3,3,"div",79)(2,Xk,8,6,"div",65),u()),n&2){let t=S().$implicit;m(),v("ngIf",t.OriginalListPrice==t.PriceEach),m(),v("ngIf",t.OriginalListPrice!=t.PriceEach)}}function Yk(n,e){if(n&1&&(p(0,"div",82),f(1),fe(2,"currency"),u()),n&2){let t=S().$implicit;m(),R(" ",xe(2,1,t.PriceEach)," ")}}function Zk(n,e){if(n&1&&(p(0,"div",74),f(1),fe(2,"currency"),u()),n&2){let t=S().$implicit;m(),R(" ",xe(2,1,t.PriceEach),"")}}function Jk(n,e){if(n&1&&(p(0,"div",77),f(1),fe(2,"currency"),u()),n&2){let t=S().$implicit;m(),R(" ",xe(2,1,t.OriginalListPrice),"")}}function e3(n,e){if(n&1&&(p(0,"div",77),f(1),fe(2,"currency"),u()),n&2){let t=S().$implicit;m(),R(" ",xe(2,1,t.OriginalListPrice*t.Quantity)," ")}}function t3(n,e){if(n&1&&(p(0,"div",83),k(1,"span",84),fe(2,"safeHtml"),u()),n&2){let t=S().$implicit;m(),v("innerHTML",xe(2,1,t.LeadTime),$e)}}function n3(n,e){if(n&1){let t=$();p(0,"div",55)(1,"div",56)(2,"div",57)(3,"span",58)(4,"img",59),N("error",function(r){A(t);let s=S(4);return I(s.errorHandle(r))}),u()(),p(5,"span",60)(6,"span",61)(7,"a",62),f(8,"Item No: "),p(9,"b",63),f(10),u()()(),k(11,"br"),p(12,"span",64),f(13),M(14,qk,3,0,"span",65),u()()(),p(15,"div",66)(16,"div",67),f(17,"Each"),u(),M(18,zk,3,3,"div",68)(19,jk,3,3,"div",69)(20,Kk,3,2,"div",70)(21,Yk,3,3,"div",71)(22,Zk,3,3,"div",68)(23,Jk,3,3,"div",69),u(),p(24,"div",66)(25,"div",67),f(26,"Qty"),u(),p(27,"input",72),te("ngModelChange",function(r){let s=A(t).$implicit;return ee(s.Quantity,r)||(s.Quantity=r),I(r)}),N("input",function(r){let s=A(t).$implicit,o=S().$implicit,a=S(3);return a.quantityModify(o,s),I(a.getQty(r))}),u()(),p(28,"div",73)(29,"div",67),f(30,"Total"),u(),p(31,"div",74),f(32),fe(33,"currency"),u(),M(34,e3,3,3,"div",69),u(),p(35,"div",60),M(36,t3,3,3,"div",75),u()()()}if(n&2){let t=e.$implicit,i=e.index,r=S(),s=r.$implicit,o=r.index,a=S(3);m(4),Km("src",t.ImageUrl,X),m(3),xt("routerLink","/search/",t.Stock,""),m(3),F(t.Stock),m(3),R("",t.Definition," "),m(),v("ngIf",t.ItemType=="Warranty"),m(4),v("ngIf",!s.IsModified),m(),v("ngIf",!s.IsModified&&t.OriginalListPrice!=t.PriceEach&&t.PriceEach>0&&t.ItemType!="Warranty"),m(),v("ngIf",s.IsModified&&t.ItemType=="Product"&&s.TotalDiscount==0),m(),v("ngIf",s.IsModified&&t.ItemType!="Product"&&s.TotalDiscount==0),m(),v("ngIf",s.IsModified&&s.TotalDiscount>0),m(),v("ngIf",s.IsModified&&t.OriginalListPrice!=t.PriceEach&&t.PriceEach>0&&s.TotalDiscount>0&&t.ItemType!="Warranty"),m(4),Ym("id","",o,"-",i,""),v("disabled",a.disableQuantityEdit||t.ItemType=="Warranty"),J("ngModel",t.Quantity),m(5),R("",xe(33,20,t.ExtendedPrice)," "),m(2),v("ngIf",t.OriginalListPrice!=t.PriceEach&&t.PriceEach>0&&t.ItemType!="Warranty"),m(2),v("ngIf",t.LeadTime&&a.orderType=="Standard")}}function i3(n,e){n&1&&(p(0,"div",89),f(1," Warranties"),u())}function r3(n,e){if(n&1){let t=$();p(0,"mat-checkbox",90),N("change",function(r){let s=A(t).$implicit,o=S(2).$implicit,a=S(3);return I(a.addWarranty(r,o,s))}),p(1,"div",91)(2,"span",92)(3,"img",93),N("error",function(r){A(t);let s=S(5);return I(s.errorHandle(r))}),u()(),p(4,"span",94)(5,"div",95)(6,"a",62),f(7,"Item No: "),p(8,"b",63),f(9),u()()(),p(10,"div",96),f(11),p(12,"a",76),f(13,"- Learn More"),u()(),p(14,"div",97)(15,"span",98),f(16),fe(17,"currency"),u()()()()()}if(n&2){let t=e.$implicit,i=S(5);v("value",t.ParentStockId+t.StockId)("checked",t.checked),m(3),v("ngClass",(i.isNo
210Image,"styleRequired"))("src",t.ImageUrl,X),m(3),xt("routerLink","/search/",t.StockId,""),m(3),F(t.StockId),m(2),F(t.Description),m(5),R("Price : ",xe(17,9,t.Price),"")}}function s3(n,e){if(n&1&&(p(0,"div",55),M(1,i3,2,0,"div",85),p(2,"div",55)(3,"div",86)(4,"div",87),M(5,r3,18,11,"mat-checkbox",88),u()()()()),n&2){let t=S().$implicit;m(),v("ngIf",t.warranties!=0),m(4),v("ngForOf",t.warranties)}}function o3(n,e){if(n&1){let t=$();p(0,"a",103),N("click",function(){A(t);let r=S(2).$implicit,s=S(3);return I(s.configure(r.Items[0].Stock,r.Items[0].Quantity,r.Id,r.IsAdvanced))}),f(1,"Reconfigure "),u()}}function a3(n,e){if(n&1){let t=$();p(0,"div",99)(1,"div",100),M(2,o3,2,0,"a",101),p(3,"a",102),N("click",function(){A(t);let r=S().$implicit,s=S(3);return I(s.removepackage(r.Id))}),f(4,"Remove Package"),u()()()}if(n&2){let t=S().$implicit;m(2),v("ngIf",!(t.PrimaryStockId=="FSH03189"||t.PrimaryStockId=="SER00516"||t.PrimaryStockId=="FSH04878"||t.PrimaryStockId=="FSH04877"||t.Items[0].ItemType=="Accessory"))}}function l3(n,e){if(n&1&&(p(0,"div",45)(1,"div",46)(2,"div",47),f(3),u(),p(4,"div",48),f(5,"Each"),u(),p(6,"div",48),f(7,"Qty"),u(),p(8,"div",49),f(9,"Total"),u()(),p(10,"div",50),M(11,n3,37,22,"div",51)(12,s3,6,2,"div",52)(13,a3,5,1,"div",53),p(14,"div",54),f(15),fe(16,"currency"),u()()()),n&2){let t=e.$implicit,i=e.index,r=S(3);m(3),R(" Package ",i+1,""),m(8),v("ngForOf",t.Items),m(),v("ngIf",t.warranties&&!r.disableQuantityEdit),m(),v("ngIf",!r.disableQuantityEdit),m(),v("ngClass",r.disableQuantityEdit?"col-md-12 Packagetextb2":"col-md-12 Packagetextb1"),m(),R(" Package Total: ",xe(16,6,t.PackageTotal)," ")}}function c3(n,e){if(n&1){let t=$();p(0,"span",39)(1,"button",104),N("click",function(){A(t);let r=S(3);return I(r.checkout())}),f(2,"Convert to Order "),u()()}}function u3(n,e){if(n&1){let t=$();p(0,"button",105),N("click",function(){A(t);let r=S(3);return I(r.revisedQuote())}),f(1,"Update Quote"),u()}}function p3(n,e){if(n&1&&(p(0,"span",106),f(1),fe(2,"currency"),u()),n&2){let t=S(3);m(),R(" Subtotal: ",xe(2,1,t.Cart.SubTotal),"")}}function d3(n,e){if(n&1&&(p(0,"span",106),f(1),fe(2,"currency"),u()),n&2){let t=S(3);m(),R(" Subtotal: ",xe(2,1,t.AfterDiscountSubtotal),"")}}function h3(n,e){if(n&1){let t=$();p(0,"div",34),M(1,l3,17,8,"div",35),p(2,"div",36)(3,"div",10)(4,"div",37),M(5,c3,3,0,"span",38),p(6,"span",39),M(7,u3,2,0,"button",40),u()(),p(8,"div",41),M(9,p3,3,3,"span",21)(10,d3,3,3,"span",21),u()()(),p(11,"div",42)(12,"span",43)(13,"a",44),N("click",function(){A(t);let r=S(2);return I(r.clearCart())}),f(14,"[ Clear Cart ]"),u()(),f(15," \xA0\xA0 "),u()()}if(n&2){let t=S(2);m(),v("ngForOf",t.Cart.Packages),m(4),v("ngIf",t.QuoteUserData),m(2),v("ngIf",t.UpdateQuoteAccess),m(2),v("ngIf",t.Cart.TotalDiscount==0),m(),v("ngIf",t.Cart.TotalDiscount>0)}}function m3(n,e){if(n&1&&(p(0,"span",106),f(1),fe(2,"currency"),u()),n&2){let t=S(2);m(),F(xe(2,1,t.Cart.SubTotal-t.Cart.TotalDiscount))}}function f3(n,e){if(n&1&&(p(0,"span",106),f(1),fe(2,"currency"),u()),n&2){let t=S(2);m(),F(xe(2,1,t.AfterDiscountSubtotal))}}function g3(n,e){if(n&1){let t=$();p(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12),f(4,"Your Cart"),u(),M(5,$k,5,0,"div",13),u(),M(6,Wk,8,1,"div",14),u(),p(7,"div",10),M(8,h3,16,5,"div",15),p(9,"div",16)(10,"div",17)(11,"div",10)(12,"div",18),f(13," Subtotal: "),u(),p(14,"div",19)(15,"div",20),M(16,m3,3,3,"span",21)(17,f3,3,3,"span",21),u()(),p(18,"div",22)(19,"button",23),N("click",function(){A(t);let r=S();return I(r.checkout())}),f(20,"Convert to Order"),u()()()(),k(21,"div",24),u()()()}if(n&2){let t=S();m(5),v("ngIf",t.isWarrenty),m(),v("ngIf",!t.disableQuantityEdit),m(2),v("ngIf",t.Cart),m(8),v("ngIf",t.Cart.TotalDiscount==0),m(),v("ngIf",t.Cart.TotalDiscount>0)}}function _3(n,e){if(n&1){let t=$();p(0,"div",107)(1,"div",108)(2,"div",109)(3,"div",110),k(4,"img",111),u(),p(5,"span",112)(6,"i",113),N("click",function(){A(t);let r=S();return I(r.quantityMessageResponse())}),f(7,"highlight_off "),u()()(),p(8,"div",114)(9,"div")(10,"div",115),f(11,"All Items quantity in the cart must be 1 or above"),u(),p(12,"div",116)(13,"button",117),N("click",function(){A(t);let r=S();return I(r.quantityMessageResponse())}),f(14,"OK"),u()()()()()()}if(n&2){let t=S();m(4),xt("src","",t.FileHostUrl,"/content/futek/images/home/futek_logo_white.png",X)}}var AS=(()=>{let e=class e{constructor(i,r,s,o,a){h(this,"_cartService");h(this,"router");h(this,"_configurationService");h(this,"gtmService");h(this,"storeService");h(this,"accessCode",sessionStorage.getItem("RevisedQuoteCart"));h(this,"Cart");h(this,"NoImagePath",Y.NoImagePath);h(this,"isNoImage",!1);h(this,"custId",0);h(this,"QuoteUserData");h(this,"isQuantityZero",!1);h(this,"leadtimeMessageResponse");h(this,"priceBreakData");h(this,"isWarrenty",!1);h(this,"orderType","Standard");h(this,"quantity");h(this,"NoCartData",!1);h(this,"quickAddItem","");h(this,"packageDiscount");h(this,"pricebreaksArratList",[]);h(this,"registeredUserModel");h(this,"freeService",new Jf);h(this,"FileHostUrl",Y.FileHostUrl);h(this,"AfterDiscountSubtotal");h(this,"UpdateQuoteAccess",!1);h(this,"disableQuantityEdit",!1);h(this,"ngUnsubscribe",new ke);h(this,"quoteWebId");h(this,"isLoading",!0);this._cartService=i,this.router=r,this._configurationService=s,this.gtmService=o,this.storeService=a}ngOnInit(){sessionStorage.getItem("UpdateQuoteAccess")&&(this.UpdateQuoteAccess=!0),this.QuoteUserData=JSON.parse(localStorage.getItem("userData")),this.quoteWebId=sessionStorage.getItem("quoteWebId"),this.QuoteUserData&&(this.QuoteUserData.RecordType=="ORACLEUPDATEQUOTE"||this.QuoteUserData.RecordType=="ORACLEINITIATEDQUOTE")&&(this.disableQuantityEdit=!0),this.accessCode=sessionStorage.getItem("RevisedQuoteCart"),this.accessCode&&this.getCart(!1)}saveCart(i){this.addLineNumbers(),sessionStorage.getItem("RevisedQuoteCart")&&(this.Cart.AccessCode=sessionStorage.getItem("RevisedQuoteCart")),this._cartService.saveCart(this.Cart,i).pipe(Re(this.ngUnsubscribe)).subscribe(r=>{this.getCart(!1)})}errorHandle(i){this.isNoImage=!0,i.target.src=this.NoImagePath}
210addLineNumbers(){this.Cart.Packages.forEach(i=>{i.Items.forEach((r,s)=>{r.LineNumber=s+1,r.ShipNumber=1})})}TrackConvertOrUpdateQoute(i){let r={event:"quotation_events",eventCategory:"updatedquote_page",eventAction:i,eventLabel:this.router.url,quoteid:this.quoteWebId};this.gtmService.pushTag(r)}getCart(i){i?this.saveCart():this._cartService.getCart(this.accessCode).pipe(Re(this.ngUnsubscribe)).subscribe(r=>{this.Cart=r,this.isLoading=!1,this.AfterDiscountSubtotal=0,this.Cart&&this.Cart.TotalDiscount>0&&(this.AfterDiscountSubtotal=(this.Cart.SubTotal-this.Cart.TotalDiscount).toFixed(2)),sessionStorage.setItem("packageLength",this.Cart.Packages.length),sessionStorage.setItem("packageTotal",this.Cart.SubtotalRecal),this.NoCartData=!1,this.Cart.Packages.length==0&&(this.NoCartData=!0,sessionStorage.removeItem("RevisedQuoteCart")),this.Cart.Packages.length>0&&!this.disableQuantityEdit&&(this.Cart.Packages.forEach(s=>{(s.Items[0].ItemType=="Product"||s.Items[0].ItemType=="Instrument"||s.Items[0].ItemType=="Accessory")&&this.getWarranties(s)}),this.leadTimeCalculater(this.Cart.Packages))})}leadTimeCalculater(i){i.forEach(r=>{r.Items.forEach(s=>{var o=s.Quantity,a=s.Stock;this.storeService.CreateLeadTime({StockId:a,QuantityRequested:o}).subscribe(l=>{this.leadtimeMessageResponse=l,s.LeadTime=this.leadtimeMessageResponse})})})}addWarranty(i,r,s){let o=r.Items.filter(a=>a.ItemType==="Warranty")[0];o&&(r.PackageTotal-=o.PriceEach,r.PackageTotalRecal-=o.PriceEach,this.Cart.SubTotal-=o.PriceEach,this.Cart.SubtotalRecal-=o.PriceEach),r.Items=r.Items.filter(a=>a.ItemType!=="Warranty"),i.checked&&(r.Items.push({Definition:s.Description,Discount:0,ExtendedPrice:s.Price*1,ImageUrl:s.ImageUrl,InStock:1,IsInStock:!0,Order:0,OriginalListPrice:s.Price,PriceEach:s.Price,Quantity:1,RecalListPrice:0,Stock:s.StockId,ItemType:"Warranty",checked:!0}
210),this.calculatePackageTotal(r)),this.saveCart()}getWarranties(i){let r=i.PackageTotal,s=i.Items.filter(o=>o.ItemType=="Warranty");s.length>0&&(r=i.PackageTotal-s[0].PriceEach),this._cartService.getWarranties(i.Items[0].Stock,r).pipe(Re(this.ngUnsubscribe)).subscribe(o=>{i.warranties=o.data,i.warranties.forEach(a=>{i.Items.forEach(l=>{l.ItemType=="Warranty"&&(l.Stock==a.StockId?(a.checked=!0,l.PriceEach=0,l.ExtendedPrice=0,l.PriceEach=a.Price,l.ExtendedPrice=l.Quantity*a.Price):a.checked=!1)})}),this.calculatePackageTotal(i)})}calculatePackageTotal(i){i.PackageTotal=0,i.PackageTotalRecal=0,i.TotalDiscount=0,i.Items.forEach(r=>{i.TotalDiscount+=Number(Number(r.Discount.toFixed(2))*r.Quantity),i.PackageTotalRecal+=Number(r.ExtendedPrice.toFixed(2))}),i.PackageTotalRecal=i.PackageTotalRecal.toFixed(2),i.PackageTotal+=Number(i.PackageTotalRecal).toFixed(2),this.calculateSubTotal(),this.AfterDiscountSubtotal=0,this.Cart&&this.Cart.TotalDiscount>0&&(this.AfterDiscountSubtotal=(this.Cart.SubTotal-this.Cart.TotalDiscount).toFixed(2))}configure(i,r,s,o){o?this.router.navigate(["/configure/advanced",i,r,s]):this.router.navigate(["/configure",i,r,s])}removepackage(i,r){this.UpdateQuoteAccess=!0,sessionStorage.setItem("UpdateQuoteAccess","yes");var s=i;this._cartService.removePackage(s,this.Cart).pipe(Re(this.ngUnsubscribe)).subscribe(o=>{if(o=="success"){var a=this.Cart.CartPackageIds.indexOf(s);this.Cart.Packages=this.Cart.Packages.filter(l=>l.Id!=s),this.Cart.CartPackageIds.splice(a,1),this.getCart(!0)}})}quantityMessageResponse(){this.isQuantityZero=!this.isQuantityZero}revisedQuote(){let i=this.checkItemcountforEachPackage(),r=this.checkQuantityforEachItem();i==r?(this.TrackConvertOrUpdateQoute("update_quote"),this.isQuantityZero=!1,this.router.navigate(["revisedquotecheckout"])):this.isQuantityZero=!0}checkout(){let i=this.checkItemcountforEachPackage(),r=this.checkQuantityforEachItem();i==r?(this.TrackConvertOrUpdateQoute("convert_to_order"),this._cartService.saveCart(this.Cart,!1).pipe(Re(this.ngUnsubscribe)).subscribe(s=>{this.router.navigate(["revise-quote-order"])})):this.isQuantityZero=!0}checkQuantityforEachItem(){let i=0;return this.Cart.Packages.forEach(r=>{r.Items.forEach(s=>{s.Quantity!=0&&(i+=1)})}),i}checkItemcountforEachPackage(){let i=0;return this.Cart.Packages.forEach(r=>{r.Items.forEach(s=>{i+=1})}),i}calculateSubTotal(){this.Cart.SubTotal=0,this.Cart.SubtotalRecal=0,this.Cart.Packages.forEach(i=>{this.Cart.SubTotal+=Number(i.PackageTotal)+i.TotalDiscount,this.Cart.SubtotalRecal+=Number(i.PackageTotal)+i.TotalDiscount})}clearCart(){var i=window.confirm("Are you sure you want to clear your cart?");i&&(sessionStorage.removeItem("RevisedQuoteCart"),this.Cart="",this.isLoading=!1)}getPriceBreak(i,r){sessionStorage.setItem("UpdateQuoteAccess","yes");let s=i.Items[0];localStorage.getItem("customerId")?this.custId=parseInt(localStorage.getItem("customerId")):this.custId=0,this._cartService.getPriceBreak(s.Stock,this.custId).subscribe(o=>{if(this.priceBreakData=o,i.Items[0].ItemType=="Product"){let d=i.Items.filter(_=>_.ItemType=="Product")[0].Quantity;this.quantity=d}else if(i.Items.filter(d=>d.ItemType=="Accessory")[0]){let d=i.Items.filter(_=>_.ItemType=="Accessory")[0].Quantity;this.quantity=d}if(this.priceBreakData.length>0&&this.quantity!=0)if(i.IsModified=!0,this.priceBreakData.filter(_=>_.QtyTo>=this.quantity).length>0){for(var a=0;a<this.priceBreakData.length;a++)if(this.priceBreakData[a].ProductName==i.Items[0].Stock&&this.priceBreakData[a].QtyFrom<this.quantity&&this.priceBreakData[a].QtyTo>=this.quantity)for(var l=0;l<i.Items.length;l++)l==0?i.TotalDiscount==0?this.custId>0?(i.Items[l].OriginalListPrice=this.priceBreakData[a].OutQuantityPrice,i.Items[l].PriceEach=this.priceBreakData[a].InQuantityPrice,i.Items[l].ExtendedPrice=i.Items[l].Quantity*this.priceBreakData[a].InQuantityPrice,i.Items[l].Discount=this.priceBreakData[a].OutQuantityPrice-this.priceBreakData[a].InQuantityPrice):(i.Items[l].OriginalListPrice=this.priceBreakData[a].InQuantityPrice,i.Items[l].PriceEach=this.priceBreakData[a].InQuantityPrice,i.Items[l].ExtendedPrice=i.Items[l].Quantity*i.Items[l].PriceEach):i.TotalDiscount>0&&this.custId>0?(i.Items[l].OriginalListPrice=this.priceBreakData[a].OutQuantityPrice,i.Items[l].PriceEach=this.priceBreakData[a].InQuantityPrice,i.Items[l].ExtendedPrice=i.Items[l].Quantity*this.priceBreakData[a].InQuantityPrice,i.Items[l].Discount=this.priceBreakData[a].OutQuantityPrice-this.priceBreakData[a].InQuantityPrice):i.TotalDiscount>0&&(i.Items[l].OriginalListPrice=this.priceBreakData[a].InQuantityPrice,i.Items[l].PriceEach=i.Items[l].InQuantityPrice,i.Items[l].ExtendedPrice=i.Items[l].Quantity*i.Items[l].PriceEach,i.Items[l].Discount=0):i.Items[l].ExtendedPrice=i.Items[l].Quantity*i.Items[l].PriceEach}else for(var a=0;a<i.Items.length;a++)if(a==0)if(i.TotalDiscount==0)i.Items[a].OriginalListPrice=this.priceBreakData[a].OriginalPrice,i.Items[a].PriceEach=this.priceBreakData[a].OutQuantityPrice,i.Items[a].ExtendedPrice=i.Items[a].Quantity*i.Items[a].PriceEach;else{var c=this.priceBreakData.filter(x=>x.QtyFrom<=0)[0];i.Items[a].OriginalListPrice=c.OriginalPrice,i.Items[a].PriceEach=c.InQuantityPrice,i.Items[a].ExtendedPrice=i.Items[a].Quantity*i.Items[a].PriceEach}else i.Items[a].ExtendedPrice=i.Items[a].Quantity*i.Items[a].PriceEach;else for(var a=0;a<i.Items.length;a++)i.Items[a].ExtendedPrice=i.Items[a].Quantity*i.Items[a].PriceEach;
210this.calculatePackageTotal(i),this.saveCart()})}getQty(i){if(i.target.value==0)return i.target.value="",!1}quantityModify(i,r){this.UpdateQuoteAccess=!0,sessionStorage.setItem("UpdateQuoteAccess","yes"),this.getPriceBreak(i,r)}quickAdd(){if(this.UpdateQuoteAccess=!0,this.isWarrenty=!1,this.accessCode=sessionStorage.getItem("RevisedQuoteCart"),this.quickAddItem!=""){let i="";this.Cart.Packages.forEach(r=>{i=r.Items.filter(s=>s.Stock.toLowerCase()==this.quickAddItem.toLowerCase())[0],i&&(r.Items.forEach(s=>{s.Stock.toLowerCase()==this.quickAddItem.toLowerCase()&&(s.ItemType!="Service"&&s.Price!=0&&s.ItemType!="Warranty"?s.Quantity=s.Quantity+1:s.ItemType!="Warranty"?this.isWarrenty=!0:this.quickAddItemData())}),this.quickAddItem="",this.quantityModify(r))}),i||(localStorage.getItem("customerId")&&(this.custId=parseInt(localStorage.getItem("customerId"))),this.quickAddItemData())}}quickAddItemData(){sessionStorage.setItem("UpdateQuoteAccess","yes"),this._configurationService.getProductByStockIdAndQuantity(this.quickAddItem,1,this.custId,!1).pipe(Re(this.ngUnsubscribe)).subscribe(i=>{i&&(i.Status!="Obsolete"&&i.Price!="$0.00"||i.Status=="Obsolete"&&i.InStock>0&&i.Price!="$0.00")?i.ProductAccessoryTypeId!=25?(this.freeService=i.RelatedServices.filter(r=>r.Included)[0],this.createPackages(i),this.quickAddItem="",this.saveCart()):(this.isWarrenty=!0,this.quickAddItem=""):(this.quickAddItem="",alert("StockId not Found."))})}createPackages(i){let r=new e0;this.freeService=i.RelatedServices.filter(s=>s.Included)[0],r.Id=0,this.packageDiscount=0,r.IsInStock=0,r.IsModified=!1,r.Items=this.createItems(i),r.LeadTime=0,r.PackageDiscountedTotal=i.PriceUnformatted,r.PackageJson="",r.PackageTotal=Number(i.PriceUnformatted.toFixed(2)),r.PackageTotalRecal=Number(i.PriceUnformatted.toFixed(2)),r.Quantity=r.Items.length,r.TotalDiscount+=this.packageDiscount,r.Weight=0,this.Cart.Packages.push(r)}convertCurrencyToPrice(i){return Number(i.replace(/[^0-9.-]+/g,""))}createItems(i){let r=[],s=new Wu;s.Definition=i.ProductDefinition,s.Discount=Number((this.convertCurrencyToPrice(i.ListPrice)-this.convertCurrencyToPrice(i.Price)).toFixed(2)),this.packageDiscount+=s.Discount,s.ExtendedPrice=i.PriceUnformatted,s.ImageUrl=i.ImageUrl,s.InStock=i.InStock,s.IsContactFactoryRequired=i.IsContactFactoryRequired,s.IsInStock=i.IsInStock,s.ItemType="Product",s.Model=i.Model,s.Order=0,s.OriginalListPrice=this.convertCurrencyToPrice(i.ListPrice),s.PriceEach=this.convertCurrencyToPrice(i.Price),s.Quantity=1,s.RecalListPrice=this.convertCurrencyToPrice(i.ListPrice),s.SerialNumber="",s.Stock=i.StockId,r.push(s);let o=i.RelatedServices.filter(a=>a.Included==!0)[0];if(o){let a=new Wu;a.Definition=o.Definition,a.Discount=0,a.ExtendedPrice=0,a.ImageUrl=o.ImageUrl,a.InStock=parseInt(o.InStock),a.IsInStock=o.IsInStock,a.ItemType="Service",a.Order=0,a.OriginalListPrice=o.ListPrice,a.PriceEach=0,a.Quantity=1,a.RecalListPrice=0,a.SerialNumber="",a.Stock=o.StockId,r.push(a)}return r}};h(e,"\u0275fac",function(r){return new(r||e)(U(t0),U(ft),U(n0),U(Wn),U(tl))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-revised-quote-cart"]],decls:4,vars:3,consts:[[1,"container","maincontinerpanel"],["class","cartrammainpanel","id","rammainpanel",4,"ngIf"],["class","cartrammainpanel",4,"ngIf"],["class","row faqpanelmain",4,"ngIf"],["id","rammainpanel",1,"cartrammainpanel"],[1,"CartEmptytextv1"],["class","cartimagh1","alt","cart image",3,"src",4,"ngIf"],[3,"isLoading"],["alt","cart image",1,"cartimagh1",3,"src"],[1,"cartrammainpanel"],[1,"row"],[1,"leftpanelcatview1","cart-buttons","visible-xs","allbuttonspanelm1"],[1,"Repairheadertext"],["class","callFactory",4,"ngIf"],["class","rightpanelcatview2",4,"ngIf"],["class","leftpanelcatview1 anchor-left min-height-600 order-2 order-md-2 order-lg-1",4,"ngIf"],[1,"rightpanelcatview2","col-sm-12","col-12","order-1","order-md-1","order-lg-2","subPackageheaderpa2"],["id","subtotal-right-section",1,"right-rail-section","right-side-bar"],[1,"col-lg-6","col-md-2","col-sm-2","col-2","Subtotaltextb1"],[1,"col-lg-6","col-md-10","col-sm-10","col-10","Subtotaltextb1"],[1,"pull-right"],["class","bold",4,"ngIf"],[1,"col-lg-12","col-md-12","col-sm-12","col-12","Checkbtnpanelm1"],["type","button","id","Cart-Button-Right-Rail-Check-Out",1,"Checkbtn","checkoutbtn1","Checkmainbtn1",3,"click"],[1,"clear15"],[1,"callFactory"],[1,"callfactoryclose",3,"click"],[1,"rightpanelcatview2"],[1,"row","outlinepanelk1"],[1,"col-md-9","col-9"],["appearance","outline"],["matInput","","placeholder","#Item","required","",3,"ngModelChange","ngModel"],[1,"col-md-2","col-3","text-right"],[1,"addbtnquickAdd",3,"click"],[1,"leftpanelcatview1","anchor-left","min-height-600","order-2","order-md-2","order-lg-1"],["class","cart-package",4,"ngFor","ngForOf"],["id","review-summary",1,"transparent","no-pad"],[1,"col-md-7","col-12","order-md-1","order-2","cart-buttons","visible-xs","allbuttonspanelm1"],["class","checkbtnsleftpanel1",4,"ngIf"],[1,"checkbtnsleftpanel1"],["type","button","class","newExportbtn1",3,"click",4,"ngIf"],[1,"col-md-5","col-12","order-md-2","order-1","Subtotalpa1"],[1,"Clearcartpa1"],[1,"stClearpanelm1"],["id","Cart-Link-Bottom-ClearCart",1,"pull-right","cart-bottom-anchor","clearcartlink",3,"click"],[1,"cart-package"],[1,"row","Packageheaderpa1"],[1,"col-md-6","col-6","Itemtitletextb1"],[1,"col-md-2","col-2","Packageheaderpa1MobileHide","text-center"],[1,"col-md-2","col-2","Packageheaderpa1MobileHide","text-right"],[1,"row","Packageheaderpa2"],["class","productpack1",4,"ngFor","ngForOf"],["class","productpack1",4,"ngIf"],["class","row subproductpack1",4,"ngIf"],[3,"ngClass"],[1,"productpack1"],[1,"row","mainitemrowpanel"],[1,"col-md-6","col-12","productmainpanle1"],[1,"Itemimgpanelm1"],[1,"packitempa1",3,"error","src"],[1,"Itemimgpanelm2"],[1,"Itemtitletextb1"],["target","_blank",1,"cartitemlink",3,"routerLink"],[1,"itemnumberty1"],[1,"Definitionpanelm1"],[4,"ngIf"],[1,"col-md-2","col-4","text-center"],[1,"cartlistMobile"],["class","cartlistpricemn1",4,"ngIf"],["class","cartpriceBreakDatacp1",4,"ngIf"],["class","cartpricep1",4,"ngIf"],["class","cartpricep1 priceBreakDatacp2",4,"ngIf"],["pattern","\\d*","maxlength","3","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*)\\./g, '$1');","onkeypress","return event.charCode >= 48 && event.charCode <= 57","autocomplete","off",1,"newinputQty",3,"ngModelChange","input","disabled","ngModel","id"],[1,"col-md-2","col-4","text-right"],[1,"cartlistpricemn1"],["class","moreQuantity",4,"ngIf"],["target","_blank","routerLink","//extended-warranty",1,"warrentylink"],[1,"cartpriceBreakDatacp1"],[1,"cartpricep1"],["class","priceBreakDatacp2",4,"ngIf"],[1,"priceBreakDatacp2"],[1,"priceBreakDatacp1"],[1,"cartpricep1","priceBreakDatacp2"],[1,"moreQuantity"],[1,"leadtextbn1",3,"innerHTML"],["class","Warrantiestp1",4,"ngIf"],[1,"col-md-12","productmainpanle1"],[1,"waitempl1"],[3,"value","checked","change",4,"ngFor","ngForOf"],[1,"Warrantiestp1"],[3,"change","value","checked"],[1,"Warrantiespanelm1"],[1,"waItemimgpanelm1"],[3,"error","ngClass","src"],[1,"warrantItemimgpanelm2"],[1,"watItemtitletextb1"],[1,"waDefinitionpanelm1",2,"white-space","normal"],[1,"warrPrice1"],[1,"Pricetextb1"],[1,"row","subproductpack1"],[1,"col-md-7","col-12"],["class","Reconfigurelink",3,"click",4,"ngIf"],[1,"Reconfigurelink","m-l-10",3,"click"],[1,"Reconfigurelink",3,"click"],["id","Cart-Button-Summary-Check-Out","type","button",1,"Checkbtn",3,"click"],["type","button",1,"newExportbtn1",3,"click"],[1,"bold"],[1,"row","faqpanelmain"],[1,"catcartraFaqpopuppanel"],[1,"faqheaderbox1"],[1,"faqimagpanel"],["alt","Futekfaq",1,"faqimage1",3,"src"],[1,"faqclosedicon"],[1,"material-icons",3,"click"],[1,"faq_box_title"],[1,"Eachwanttextv1"],[1,"DoFrqbosypanel","text-center"],["type","button",1,"btn","btn-add","w-25","float-none",3,"click"]],template:function(r,s){r&1&&(p(0,"div",0),M(1,Gk,4,2,"div",1)(2,g3,22,5,"div",2),u(),M(3,_3,15,2,"div",3)),r&2&&(m(),v("ngIf",!s.Cart),m(),v("ngIf",s.Cart),m(),v("ngIf",s.isQuantityZero))},dependencies:[Tt,Mt,Ri,ja,Qa,Pt,Vn,Un,Li,Et,nt,i0,r0,it,sf,At],styles:[".cart-bottom-anchor[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{cursor:pointer}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-right:0;margin-left:0}.warrentylink[_ngcontent-%COMP%]{color:#007bff}.cartrammainpanel[_ngcontent-%COMP%]{background:#fff;border:0px solid #c7c7c7c7;padding:55px 2px 0;font-family:Nunito Sans,sans-serif;margin-top:48px;font-size:10pt;overflow:auto;overflow-x:hidden}.leftpanelcatview1[_ngcontent-%COMP%]{width:78%;float:left}
210.rightpanelcatview2[_ngcontent-%COMP%]{float:left;width:23%}.col-md-9[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%]{padding-right:0;padding-left:0;width:100%}.col-md-8[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%]{padding-right:0;padding-left:0;width:100%}.Repairheadertext[_ngcontent-%COMP%]{font-weight:200;font-family:Nunito Sans,sans-serif;letter-spacing:.02em;font-size:38px;margin:0;float:left;width:100%}.leadtextbn1[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif}.Packagepanls1[_ngcontent-%COMP%]{width:100%!important;box-shadow:0 2px 7px 2px #ccc;padding:0;border:1px solid #ccc}.Packageheaderpa1[_ngcontent-%COMP%]{background:#cccccc36;padding:10px;font-family:Nunito Sans,sans-serif;font-weight:400;font-size:11pt;border:1px solid rgba(204,204,204,.6313725490196078);border-bottom:0px}.Packageheaderpa2[_ngcontent-%COMP%]{padding:10px;font-family:Nunito Sans,sans-serif;font-weight:400;font-size:12pt;border:1px solid #ccc;margin-bottom:30px}.callfactoryclose[_ngcontent-%COMP%]{margin-left:28px!important;margin-right:0!important;cursor:pointer}.callFactory[_ngcontent-%COMP%]{font-weight:400;font-family:Nunito Sans,sans-serif;font-size:12pt;margin-top:26px!important;margin-left:63%!important;padding-top:3px!important;margin-bottom:0!important;padding-bottom:4px!important;background:#cccccc36;border:1px solid rgba(204,204,204,.6313725490196078)}.Itemimgpanelm1[_ngcontent-%COMP%]{width:80px;float:left;border:0px solid #ccc;margin-right:11px;height:65px}.waItemimgpanelm1[_ngcontent-%COMP%]{width:85px;float:left;margin-top:24px}.Itemimgpanelm2[_ngcontent-%COMP%]{float:left;width:60%;text-align:left;font-size:10pt;margin-left:25px;line-height:14px!important}.Itemtitletextb1[_ngcontent-%COMP%], .watItemtitletextb1[_ngcontent-%COMP%]{color:#000}.itemnumberty1[_ngcontent-%COMP%]{font-size:9pt;font-family:Roboto Mono,monospace;font-weight:200}.cartitemlink[_ngcontent-%COMP%]{color:#ca0000!important;padding-bottom:5px;float:left;width:auto}.Pricetextb1[_ngcontent-%COMP%]{font-weight:700;font-size:9pt}.cartitemlink[_ngcontent-%COMP%]:hover{text-decoration:underline!important}.subPackageheaderpa2[_ngcontent-%COMP%]{margin-left:30px;max-width:21%;height:106px;padding:10px;font-family:Nunito Sans,sans-serif;font-weight:400;font-size:12pt;border:1px solid #ccc;margin-bottom:30px;padding-right:10px!important;padding-left:10px!important}.Checkbtnpanelm1[_ngcontent-%COMP%]{margin:14px 0}.addbtnquickAdd[_ngcontent-%COMP%]{border:1px solid #a9a9a9;background-color:#fff;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod\\2026IwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-webkit-linear-gradient(bottom,rgba(1,1,1,.22) 0%,rgba(255,255,255,.43) 100%);font-weight:400;width:80px;padding:7px;margin-right:0;font-size:11pt;cursor:pointer;margin-top:16px}.mainitemrowpanel[_ngcontent-%COMP%]{margin-bottom:10px;border-bottom:1px dotted #ccc;padding-bottom:7px;width:100%}.outlinepanelk1[_ngcontent-%COMP%]{margin-left:28px!important;margin-top:0}.checkbtnsleftpanel1[_ngcontent-%COMP%]{float:left}.catcartraFaqpopuppanel[_ngcontent-%COMP%]{width:700px;background:#fff;margin-left:auto;margin-right:auto;padding:15px;border-radius:5px;height:228px;overflow:auto;margin-top:60px}.Eachwanttextv1[_ngcontent-%COMP%]{font-size:11pt;text-align:center;margin-bottom:36px;font-family:Nunito Sans,sans-serif}.Checkbtn[_ngcontent-%COMP%]{border:1px solid #1379cb;background-color:#1379cb;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod\\2026IwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-webkit-linear-gradient(bottom,#0b49b7 0%,#1babe1 100%);color:#fff;border-radius:0;font-weight:400;width:140px;margin-right:10px;font-size:11pt;cursor:pointer;padding:5px 13px}.saveExportbtn1[_ngcontent-%COMP%]{border:1px solid #a9a9a9!important;background-color:#cbcbcb;background-image:-webkit-linear-gradient(bottom,#d2d2d2 0%,#ffffff 100%);font-weight:400;width:89px;padding:5px;margin-right:10px;font-size:11pt;cursor:pointer;color:#444;border:0}.newExportbtn1[_ngcontent-%COMP%]{border:1px solid #529052;background-color:#55ad55;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod\\2026IwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-webkit-linear-gradient(bottom,#338d33 0,#79cf79 100%);border-radius:0;font-weight:400;width:105px;padding:5px;margin-right:10px;font-size:11pt;cursor:pointer;color:#fff}.emailnewExportbtn1[_ngcontent-%COMP%]{border:1px solid #1379cb!important;background-color:#068efb;background-image:-webkit-linear-gradient(bottom,#1379cb 0%,#1379cb 100%);font-weight:400;width:120px;padding:5px;margin-right:10px;font-size:11pt;cursor:pointer;color:#fff}.Exportbtn2[_ngcontent-%COMP%]{background-color:#ccc;font-weight:400;width:115px;padding:7px;margin-right:10px;font-size:11pt;cursor:pointer;color:#444;border:0}.Subtotaltextb1[_ngcontent-%COMP%]{font-weight:700}.Subtotalpa1[_ngcontent-%COMP%]{text-align:right;font-family:Nunito Sans,sans-serif;font-weight:700;font-size:12pt}.allbuttonspanelm1[_ngcontent-%COMP%]{margin-bottom:0;height:70px}.Clearcartpa1[_ngcontent-%COMP%]{font-weight:700;height:34px}.Definitionpanelm1[_ngcontent-%COMP%], .waDefinitionpanelm1[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;font-weight:400;font-size:9pt;float:left;width:100%}.clearcartlink[_ngcontent-%COMP%]{cursor:pointer;color:#ca0000!important}
210.CartEmptytextv1[_ngcontent-%COMP%]{text-align:center}.cartimagh1[_ngcontent-%COMP%]{width:35%;margin-top:8%;margin-bottom:18%}.mat-mdc-form-field[_ngcontent-%COMP%]{display:inline-block;position:relative;text-align:left;padding-right:15px;width:100%}.Systemlinkp1[_ngcontent-%COMP%]{float:right;color:#ca0000!important;cursor:pointer}.Systempl1p[_ngcontent-%COMP%]{font-size:12pt;height:27px;font-family:Nunito Sans,sans-serif;font-weight:400;color:#ca0000}.Systemviewpl1[_ngcontent-%COMP%]{margin-top:-2px;margin-bottom:-2px;height:52px;border:1px solid #ccc;padding:8px;min-height:96px;border-radius:5px;width:1198px!important;max-width:658px;font-weight:600;font-size:10pt;font-family:Nunito Sans,sans-serif}.productmainpanle1[_ngcontent-%COMP%]{padding-top:0;border-top:0px solid #ccc;margin-top:0}.productpack1[_ngcontent-%COMP%]{width:100%}.subproductpack1[_ngcontent-%COMP%]{width:100%;padding-left:13px}.Warrantiestp1[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;font-weight:400;width:100%;margin-top:0;border-top:0px dotted #ccc;padding-top:0;padding-left:7px;font-size:11pt}.Packagetextb1[_ngcontent-%COMP%]{text-align:right;font-size:10pt;border-top:1px dotted #ccc;margin-top:8px;padding-top:9px;font-weight:700}.Packagetextb2[_ngcontent-%COMP%]{text-align:right;font-size:10pt;margin-top:8px;padding-top:9px;font-weight:700}.waitempl1[_ngcontent-%COMP%]{width:19px;float:left;padding-top:0;margin-left:13px}.warrantItemimgpanelm2[_ngcontent-%COMP%]{float:left;width:83%;text-align:justify;font-size:10pt;margin-top:4px;line-height:17px}.warrPrice1[_ngcontent-%COMP%]{float:left;width:100%;margin-bottom:15px}.cartpricep1[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;font-size:10pt;margin-left:2px}.newinputQty[_ngcontent-%COMP%]{width:60px;text-align:center;font-size:10pt}.Reconfigurelink[_ngcontent-%COMP%], .Reconfigurelink[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#cf102d!important;cursor:pointer;text-decoration:underline!important;font-size:11pt}.Warrantiespanelm1[_ngcontent-%COMP%]{width:651px;float:left}.savepaneml1[_ngcontent-%COMP%]{width:100%}.Savecartpoppl1[_ngcontent-%COMP%]{font-size:12pt;border-bottom:1px dotted #ccc;width:100%;margin-bottom:11px}.alertcart[_ngcontent-%COMP%]{padding:11px;margin-bottom:25px;border:1px solid transparent;border-radius:0;width:99%!important}.col-lg-12[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.cartFrqbosypanel[_ngcontent-%COMP%]{width:100%;float:left;text-align:justify;margin-top:7px;font-family:Nunito Sans,sans-serif;font-size:10pt;font-weight:400}.Exportbtn1[_ngcontent-%COMP%]{font-weight:400;width:125px;padding:5px;margin-right:11px;font-size:11pt;cursor:pointer;color:#444;border:0;border:1px solid #a9a9a9!important;background-color:#cbcbcb;background-image:-webkit-linear-gradient(bottom,#d2d2d2 0%,#ffffff 100%);margin-top:11px}.savecartbtn1[_ngcontent-%COMP%]{font-weight:400;width:89px;padding:5px;margin-right:11px;font-size:11pt;cursor:pointer;color:#444;border:0;border:1px solid #a9a9a9!important;background-color:#cbcbcb;background-image:-webkit-linear-gradient(bottom,#d2d2d2 0%,#ffffff 100%);margin-top:11px}.saveraFaqpopuppanel[_ngcontent-%COMP%]{width:58%;background:#fff;margin-left:auto;margin-right:auto;padding:15px;border-radius:5px;height:380px;overflow:hidden;margin-top:75px}.packitempa1[_ngcontent-%COMP%]{width:90px;height:60px;margin:6px 1px}.pasyspanelm1[_ngcontent-%COMP%]{width:100%;font-size:10pt}.Restockingfree[_ngcontent-%COMP%]{color:#ca0000}.col-md-10[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.serialplo1[_ngcontent-%COMP%]{margin-left:0;margin-top:5px;padding-left:0}.moreQuantity[_ngcontent-%COMP%]{margin-top:10px;margin-left:92px;text-align:left;font-size:9pt;color:red;font-family:Nunito Sans,sans-serif;margin-right:100px;line-height:16px}.alert-success[_ngcontent-%COMP%]{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6;width:97%;font-size:10pt}.alert[_ngcontent-%COMP%]{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.clear30[_ngcontent-%COMP%]{clear:both;height:30px;width:100%}.no-pad[_ngcontent-%COMP%]{padding:0!important}.close[_ngcontent-%COMP%]{float:right;font-size:21px;font-weight:700;line-height:1;text-shadow:0 1px 0 #fff}.close[_ngcontent-%COMP%]:focus, .close[_ngcontent-%COMP%]:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}#cart-id-link[_ngcontent-%COMP%]{font-weight:700;color:#666;font-size:1.1em}.stClearpanelm1[_ngcontent-%COMP%]{margin-left:17px;float:right}.checkoutbtn1[_ngcontent-%COMP%]{float:left}.emptyCartrow[_ngcontent-%COMP%]{margin-top:25px}.styleRequired[_ngcontent-%COMP%]{width:70px}.col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%]{padding-left:0;padding-right:0}@media (min-width: 320px) and (max-width: 680px){.subPackageheaderpa2[_ngcontent-%COMP%]{margin-bottom:15px}.addbtnquickAdd[_ngcontent-%COMP%]{border:1px solid #a9a9a9;background-color:#fff;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod\\2026IwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-webkit-linear-gradient(bottom,rgba(1,1,1,.22) 0%,rgba(255,255,255,.43) 100%);font-weight:400;width:69px;padding:7px;margin-right:16px;font-size:11pt;cursor:pointer;margin-top:16px;margin-left:12px}.outlinepanelk1[_ngcontent-%COMP%]{margin-left:0!important;margin-top:0;width:92%}.Warrantiespanelm1[_ngcontent-%COMP%]{width:100%}.mainitemrowpanel[_ngcontent-%COMP%]{width:97%}.waitempl1[_ngcontent-%COMP%]{width:auto}.watItemtitletextb1[_ngcontent-%COMP%]{color:#000;width:100%;float:left}.Itemimgpanelm2[_ngcontent-%COMP%]{margin-left:10px;width:69%}.allbuttonspanelm1[_ngcontent-%COMP%]{height:40px}.waDefinitionpanelm1[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;font-weight:400;font-size:9pt;float:left;width:45%}.Checkbtn[_ngcontent-%COMP%]{font-size:10px!important}.Itemimgpanelm1[_ngcontent-%COMP%]{width:70px}.subpulseiconm1[_ngcontent-%COMP%]{font-size:15px}.moreQuantity[_ngcontent-%COMP%]{width:100%}.rammainpanel[_ngcontent-%COMP%]{padding:35px 0;margin-top:0}.outlinepanelk1[_ngcontent-%COMP%]{margin-left:0}.Repairheadertext[_ngcontent-%COMP%]{margin:2px 0}.mat-mdc-form-field[_ngcontent-%COMP%]{padding-right:1px}.Checkbtn[_ngcontent-%COMP%], .saveExportbtn1[_ngcontent-%COMP%], .newExportbtn1[_ngcontent-%COMP%], .emailnewExportbtn1[_ngcontent-%COMP%]{width:auto;padding:4px 6px;font-size:12px;margin-right:6px}.emailnewExportbtn1[_ngcontent-%COMP%]{margin-right:0}.subPackageheaderpa2[_ngcontent-%COMP%]{margin-left:0;max-width:100%}.warrantItemimgpanelm2[_ngcontent-%COMP%]{width:24%}.productmainpanle1[_ngcontent-%COMP%]{margin-bottom:18px}.serialplo1[_ngcontent-%COMP%]{margin-left:0;margin-top:15px}.saveraFaqpopuppanel[_ngcontent-%COMP%]{width:93%;background:#fff;margin-left:auto;margin-right:auto;padding:15px;border-radius:5px;height:360px;overflow:auto;margin-top:75px}.faqimage1[_ngcontent-%COMP%]{width:60%}.waItemimgpanelm1[_ngcontent-%COMP%]{margin-top:5px}.subPackageheaderpa2[_ngcontent-%COMP%]{padding-left:10px!important;padding-right:10px!important}.Packageheaderpa1[_ngcontent-%COMP%]{font-size:10pt}.Checkbtn[_ngcontent-%COMP%], .saveExportbtn1[_ngcontent-%COMP%], .newExportbtn1[_ngcontent-%COMP%], .emailnewExportbtn1[_ngcontent-%COMP%]{width:auto;padding:4px 6px;font-size:9px!important;margin-right:6px}}@media (min-width: 680px) and (max-width: 1023px){.leftpanelcatview1[_ngcontent-%COMP%]{width:100%;float:left}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:100%}.outlinepanelk1[_ngcontent-%COMP%]{margin-left:0!important}
210.rightpanelcatview2[_ngcontent-%COMP%]{width:100%}.watItemtitletextb1[_ngcontent-%COMP%]{color:#000;width:100%;float:left}.Itemimgpanelm2[_ngcontent-%COMP%]{margin-left:31px}.waDefinitionpanelm1[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;font-weight:400;font-size:9pt;float:left;width:75%}.Checkbtn[_ngcontent-%COMP%], .saveExportbtn1[_ngcontent-%COMP%], .newExportbtn1[_ngcontent-%COMP%], .emailnewExportbtn1[_ngcontent-%COMP%]{width:auto;padding:4px 5px;font-size:9px!important;margin-right:4px;margin-left:5px}.Checkbtn[_ngcontent-%COMP%]{font-size:10px}.Itemimgpanelm1[_ngcontent-%COMP%]{width:66px}.moreQuantity[_ngcontent-%COMP%]{margin-top:10px;margin-left:63px;text-align:left;font-size:10pt;color:red;margin-right:100px;line-height:16px}.packitempa1[_ngcontent-%COMP%]{width:56px}.Itemimgpanelm2[_ngcontent-%COMP%]{width:66%;margin-left:0}.Checkbtn[_ngcontent-%COMP%]{width:140px}.Warrantiespanelm1[_ngcontent-%COMP%]{width:597px}.warrantItemimgpanelm2[_ngcontent-%COMP%]{width:45%}.subPackageheaderpa2[_ngcontent-%COMP%]{margin-left:0}.Subtotalpa1[_ngcontent-%COMP%]{text-align:right;margin-bottom:13px;padding-right:10px!important}.Packageheaderpa1[_ngcontent-%COMP%]{font-size:10pt}.subPackageheaderpa2[_ngcontent-%COMP%]{padding-left:10px!important;padding-right:10px!important}}@media screen and (max-width: 680px),screen and (orientation: landscape) and (max-width: 1023px){.warrantItemimgpanelm2[_ngcontent-%COMP%]{width:65%}.Warrantiespanelm1[_ngcontent-%COMP%]{width:100%}.waitempl1[_ngcontent-%COMP%]{width:auto}.leftpanelcatview1[_ngcontent-%COMP%]{width:70%;float:left}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:22%}}@media all and (device-width: 768px) and (device-height: 1023px) and (orientation:portrait){.waitempl1[_ngcontent-%COMP%]{width:auto}.rammainpanel[_ngcontent-%COMP%]{margin-top:40px}.outlinepanelk1[_ngcontent-%COMP%]{margin-left:20px;width:100%}.addbtnquickAdd[_ngcontent-%COMP%]{margin-left:-22px}.cartimagh1[_ngcontent-%COMP%]{margin-top:23%}.leftpanelcatview1[_ngcontent-%COMP%]{width:100%;float:left}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:100%;margin-left:0}}@media (min-width: 320px) and (max-width: 640px){.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:100%}.leftpanelcatview1[_ngcontent-%COMP%], .outlinepanelk1[_ngcontent-%COMP%]{width:100%}.rightpanelcatview2[_ngcontent-%COMP%]{float:left;width:100%}.cartrammainpanel[_ngcontent-%COMP%]{margin-top:0}}@media (min-width: 1024px) and (max-width: 1200px){.leftpanelcatview1[_ngcontent-%COMP%]{width:74%;float:left}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:22%}}@media (min-width: 1200px) and (max-width: 1300px){.leftpanelcatview1[_ngcontent-%COMP%]{width:75%;float:left}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:22%}}@media (min-width: 1300px) and (max-width: 1366px){.leftpanelcatview1[_ngcontent-%COMP%]{width:75%;float:left}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:20%}}@media (min-width: 1366px) and (max-width: 1400px){.leftpanelcatview1[_ngcontent-%COMP%]{width:76%;float:left}.addbtnquickAdd[_ngcontent-%COMP%]{width:72px}}@media (min-width: 1400px) and (max-width: 1600px){.leftpanelcatview1[_ngcontent-%COMP%]{width:72%;float:left}.addbtnquickAdd[_ngcontent-%COMP%]{width:72px}}@media (min-width: 1600px) and (max-width: 1920px){.leftpanelcatview1[_ngcontent-%COMP%]{width:76%;float:left}}@media (min-width: 1920px) and (max-width: 2048px){.rightpanelcatview2[_ngcontent-%COMP%]{width:22.2%;float:left}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:20%}}@media (min-width: 2048px) and (max-width: 2400px){.rightpanelcatview2[_ngcontent-%COMP%]{float:left;width:22%}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:20%}}@media (min-width: 2400px) and (max-width: 2600px){.rightpanelcatview2[_ngcontent-%COMP%]{float:left;width:22%}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:20%}}@media (min-width: 2600px) and (max-width: 3840px){.rightpanelcatview2[_ngcontent-%COMP%]{float:left;width:22%}.subPackageheaderpa2[_ngcontent-%COMP%]{max-width:20%}}"]}));let n=e;return n})();var vm=(n,e)=>e.value;function v3(n,e){if(n&1&&(p(0,"option",58),f(1),u()),n&2){let t=e.$implicit;v("value",t.value),m(),R(" ",t.label," ")}}function S3(n,e){if(n&1){let t=$();p(0,"div")(1,"div",73)(2,"mat-radio-group",74),N("change",function(){A(t);let r=S(2);return I(r.boltSizeAmerican())}),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.CoarseFine,r)||(s.CoarseFine=r),I(r)}),p(3,"span")(4,"mat-radio-button",75),f(5," Coarse "),u()(),f(6," \xA0\xA0 "),p(7,"span")(8,"mat-radio-button",76),f(9," Fine "),u()()()()()}if(n&2){let t=S(2);m(2),J("ngModel",t.CoarseFine)}}function x3(n,e){n&1&&(p(0,"div")(1,"div",77),f(2," Thread per Inch:"),u()())}function C3(n,e){n&1&&(p(0,"div")(1,"div",78),f(2,"Pitch:"),u()())}function b3(n,e){if(n&1&&(p(0,"option",58),f(1),u()),n&2){let t=e.$implicit;v("value",t.value),m(),R(" ",t.label," ")}}function w3(n,e){if(n&1){let t=$();p(0,"div")(1,"div",46)(2,"table",47)(3,"tr",48)(4,"td",49),f(5,"Bolt Data"),u()(),p(6,"tr")(7,"table",50)(8,"tr")(9,"td",51),k(10,"img",52),u(),p(11,"td")(12,"table",53)(13,"tr",54)(14,"td",55),f(15,"Size:"),u(),p(16,"td",56)(17,"select",57),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.BoltSize,r)||(s.Model.BoltSize=r),I(r)}),N("change",function(){A(t);let r=S();return I(r.onBoltSizeChange())}),Ft(18,v3,2,2,"option",58,vm),u()(),p(20,"td"),M(21,S3,10,1,"div"),u()(),p(22,"tr",54)(23,"td",59),f(24,"Major Diameter:"),u(),p(25,"td",60)(26,"input",61),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.BoltDiameter,r)||(s.Model.BoltDiameter=r),I(r)}),N("blur",function(){A(t);let r=S();return I(r.onBlurMethod(r.Model.BoltDiameter,r.diameter))}),u(),p(27,"span",62),f(28),u(),k(29,"br"),p(30,"span",63),f(31),u()()(),p(32,"tr",54)(33,"td",64),M(34,x3,3,0,"div")(35,C3,3,0,"div"),u(),p(36,"td")(37,"input",65),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.BoltThreads,r)||(s.Model.BoltThreads=r),I(r)}),N("blur",function(){A(t);let r=S();return I(r.onBlurMethodthread(r.Model.BoltThreads))}
210),u(),k(38,"br"),p(39,"span",63),f(40),u()()(),p(41,"tr",54)(42,"td",66),f(43," Material: "),u(),p(44,"td",67)(45,"select",68),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.BoltMaterial,r)||(s.Model.BoltMaterial=r),I(r)}),N("change",function(){A(t);let r=S();return I(r.doBoltMaterial(r.Mode==="american"))}),Ft(46,b3,2,2,"option",58,vm),u()()(),p(48,"tr",54)(49,"td",69),f(50,"Proof Strength: "),u(),p(51,"td",70)(52,"input",71),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.BoltProof,r)||(s.Model.BoltProof=r),I(r)}),N("blur",function(){A(t);let r=S();return I(r.onBlurMethodproof(r.Model.BoltProof))}),u(),p(53,"span",72),f(54),u(),k(55,"br"),p(56,"span",63),f(57),u()()()()()()()()(),k(58,"br"),u()()}if(n&2){let t=S();m(10),xt("src","",t.FileHostUrl,"/content/futek/images/support/bolt.png",X),m(7),J("ngModel",t.Model.BoltSize),m(),Ht(t.boltSizeOptions),m(3),mt(t.Mode=="american"?21:-1),m(5),J("ngModel",t.Model.BoltDiameter),m(),v("ngClass",t.boltmajorDiameterv1),m(),R(" ",t.Mode=="american"?"in":"mm",""),m(3),F(t.messagedi),m(3),mt(t.Mode=="american"?34:-1),m(),mt(t.Mode=="metric"?35:-1),m(2),J("ngModel",t.Model.BoltThreads),m(3),F(t.messageth),m(5),J("ngModel",t.Model.BoltMaterial),m(),Ht(t.boltMaterialOptions),m(6),J("ngModel",t.Model.BoltProof),m(2),F(t.Mode=="american"?"psi":"MPa"),m(3),R("\xA0\xA0",t.boltproofmessage,"")}}function y3(n,e){if(n&1&&(p(0,"option",58),f(1),u()),n&2){let t=e.$implicit;v("value",t.value),m(),R(" ",t.label," ")}}function E3(n,e){if(n&1){let t=$();p(0,"div")(1,"div",79)(2,"table",80)(3,"tr")(4,"td",81),k(5,"div",82),u()(),p(6,"tr")(7,"td",83)(8,"b"),f(9,"Bridge Resistance"),u()()(),p(10,"tr")(11,"td",84),f(12," The bridge resistance of the wheatstone bridge within your sensor. "),k(13,"br"),p(14,"u")(15,"b"),f(16,"To find your resistance:"),u()(),k(17,"br"),f(18," Use a multimeter to determine the resistance across the +Signal and -Signal wires. This value is your bridge resistance. Typical Futek sensors have a bridge resistance of 350, 700 or 1000 Ohms. "),u()()(),p(19,"table",85)(20,"tr")(21,"td",81),k(22,"div",86),u()(),p(23,"tr")(24,"td",83)(25,"b"),f(26,"Length"),u()()(),p(27,"tr")(28,"td",84),f(29," Length of engagement. The distance that the two THREADED regions engage. The typical minimum recommended value is 1.5 times the major bolt diameter. "),u()()(),p(30,"table",87)(31,"tr",48)(32,"td",49),f(33,"Mating Thread Data"),u()(),p(34,"table",88)(35,"tr")(36,"td",51),k(37,"img",89),u(),p(38,"td",56)(39,"table",88)(40,"tr")(41,"td",90),f(42,"Length:"),u(),p(43,"td",67)(44,"span",91)(45,"input",92),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.Length,r)||(s.Model.Length=r),I(r)}),N("blur",function(){A(t);let r=S();return I(r.onBlurMethodlength(r.Model.Length))}),u()(),p(46,"span",93)(47,"span",94),f(48),u(),f(49,"\xA0 "),p(50,"a",95)(51,"div",96)(52,"a",97)(53,"span",98),f(54,"?"),u(),p(55,"span",99),f(56,"Length of engagement. The distance that the two THREADED regions engage. The typical minimum recommended value is 1.5 times the major bolt diameter."),u()()()()(),k(57,"br"),p(58,"span",100),f(59),u()()(),p(60,"tr",54)(61,"td",101),f(62,"Material: "),u(),p(63,"td",67)(64,"select",102),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.Material,r)||(s.Model.Material=r),I(r)}),N("change",function(){A(t);let r=S();return I(r.doMaterial(r.Mode==="american"))}),Ft(65,y3,2,2,"option",58,vm),u()()(),p(67,"tr",103)(68,"td",104),f(69,"Yield Strength: "),u(),p(70,"td")(71,"input",105),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.Strength,r)||(s.Model.Strength=r),I(r)}),N("blur",function(){A(t);let r=S();return I(r.onBlurMethodstrength(r.Model.Strength))}),u(),p(72,"span",72),f(73),u(),k(74,"br"),p(75,"span",63),f(76),u()()()()()()()(),k(77,"br"),u()()}if(n&2){let t=S();m(37),xt("src","",t.FileHostUrl,"/content/futek/images/support/recept.png",X),m(8),J("ngModel",t.Model.Length),m(3),R(" ",t.Model.LblLength,""),m(11),F(t.lengthmessage),m(5),J("ngModel",t.Model.Material),m(),Ht(t.materialOptions),m(6),J("ngModel",t.Model.Strength),m(2),F(t.Mode=="american"?"psi":"MPa"),m(3),F(t.strengthmessage)}}function T3(n,e){if(n&1){let t=$();p(0,"div")(1,"div",106)(2,"table",107)(3,"tr")(4,"td",81),k(5,"div",108),u()(),p(6,"tr")(7,"td",109)(8,"b"),f(9,"Applied Load"),u()()(),p(10,"tr")(11,"td",84),f(12," Load applied to either the bolt or tapped unit. Use for axial load applications. "),p(13,"b"),f(14,"For standard bolt torques use 0"),u(),f(15,". "),u()()(),p(16,"table",110)(17,"tr")(18,"td",81),k(19,"div",111),u()(),p(20,"tr")(21,"td",109)(22,"b"),f(23,"K Factor"),u()()(),p(24,"tr")(25,"td",84),f(26," K Factor is a torque coefficient between bolt and receptacle. It is a function of the materials' frictional characteristics, which are based on surface finish, coatings and s
210o on. "),p(27,"table",53)(28,"tr")(29,"td",112)(30,"b"),f(31,"Various K Factors"),u()()(),p(32,"tr")(33,"td"),f(34,"Typical Steel Bolt"),u(),p(35,"td"),f(36,"0.20"),u()(),p(37,"tr")(38,"td"),f(39,"Zinc-Plated"),u(),p(40,"td"),f(41,"0.20"),u()(),p(42,"tr")(43,"td"),f(44,"Lubricated"),u(),p(45,"td"),f(46,"0.18"),u()(),p(47,"tr")(48,"td"),f(49,"Cadmium-Plated"),u(),p(50,"td"),f(51,"0.16"),u()()()()()(),p(52,"table",87)(53,"tr",48)(54,"td",49),f(55,"Miscellaneous Data"),u()(),p(56,"tr",56)(57,"table",113)(58,"tr")(59,"td",114),k(60,"img",115),u(),p(61,"td",56)(62,"table",113)(63,"tr")(64,"td",116),f(65,"Applied Load: Tensile"),u(),p(66,"td",117)(67,"input",118),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.LoadBox,r)||(s.Model.LoadBox=r),I(r)}),N("blur",function(){A(t);let r=S();return I(r.onBlurMethodtensile(r.Model.LoadBox))}),u(),p(68,"span",72),f(69),u(),p(70,"a",95)(71,"div",119)(72,"a",97)(73,"span",98),f(74,"?"),u(),p(75,"span",99),f(76,"Load applied to either the bolt or tapped unit. Use for axial load applications. For standard bolt torques use 0."),u()()()(),k(77,"br"),p(78,"span",63),f(79),u()()(),p(80,"tr")(81,"td",120),f(82,"K Factor: Advanced users only"),u(),p(83,"td",121)(84,"input",122),te("ngModelChange",function(r){A(t);let s=S();return ee(s.Model.Kfactor,r)||(s.Model.Kfactor=r),I(r)}),N("blur",function(){A(t);let r=S();return I(r.onBlurMethodKFactor(r.Model.Kfactor))}),u(),p(85,"a",95)(86,"div",123)(87,"a",97)(88,"span",98),f(89,"?"),u(),p(90,"span",99)(91,"div",124),f(92," K Factor is a torque coefficient between bolt and receptacle. It is a function of the materials' frictional characteristics, which are based on surface finish, coatings and so on. "),u(),p(93,"div")(94,"div",125),f(95," Various K Factors"),u(),p(96,"div")(97,"ul")(98,"li"),f(99,"Typical Steel Bolt : 0.20 "),u(),p(100,"li"),f(101,"Zinc-Plated : 0.20 "),u(),p(102,"li"),f(103,"Lubricated : 0.18 "),u(),p(104,"li"),f(105,"Cadmium-Plated : 0.16 "),u()()()()()()()(),k(106,"br"),p(107,"span",63),f(108),u()()(),p(109,"tr"),k(110,"td"),p(111,"td")(112,"div",126)(113,"input",127),N("click",function(){A(t);let r=S();return I(r.Calculate())}),u()(),p(114,"div",128)(115,"span",129),f(116),u()()()()()()()()()(),k(117,"br"),u()()}if(n&2){let t=S();m(60),xt("src","",t.FileHostUrl,"/content/futek/images/support/load.png",X),m(7),J("ngModel",t.Model.LoadBox),m(2),F(t.Mode=="american"?"lb":"kg"),m(10),F(t.tensilemessage),m(5),J("ngModel",t.Model.Kfactor),m(24),F(t.kFactorMessage),m(8),F(t.Model.LblMissingCheck)}}function M3(n,e){if(n&1&&(p(0,"div")(1,"span",131),f(2),u()()),n&2){let t=e.$implicit;m(2),F(t)}}function P3(n,e){if(n&1&&(p(0,"div")(1,"div",130),Ft(2,M3,3,1,"div",null,ai),u()()),n&2){let t=S();m(2),Ht(t.Model.Warnings)}}function A3(n,e){n&1&&(p(0,"div")(1,"div",132)(2,"span",131),f(3,"Load Exceeds Capacity! "),k(4,"br"),f(5,"Use larger bolt for this application. "),u()()())}function I3(n,e){if(n&1&&(p(0,"div",22)(1,"div",133)(2,"table",134)(3,"tr")(4,"th"),f(5,"Application Data"),u()(),p(6,"tr")(7,"td",135)(8,"span",136),f(9,"Major Bolt Diameter:"),u(),p(10,"span"),f(11),u(),k(12,"br"),p(13,"span",136),f(14,"Bolt:"),u(),p(15,"span"),f(16),u(),k(17,"br"),p(18,"span",136),f(19,"Bolt Proof Strength:"),u(),p(20,"span"),f(21),u(),k(22,"br"),p(23,"span",136),f(24,"Recepticle Length:"),u(),p(25,"span"),f(26),u(),k(27,"br"),p(28,"span",136),f(29,"Recepticle Strength:"),u(),p(30,"span"),f(31),u(),k(32,"br"),p(33,"span",136),f(34,"Applied Tensile Load: "),u(),p(35,"span"),f(36),u(),k(37,"br"),p(38,"span",136),f(39,"k Factor:"),u(),p(40,"span"),f(41),u(),k(42,"br"),u()()(),k(43,"br"),p(44,"table",53)(45,"tr")(46,"td",137),f(47,"Recommended Torque "),u()(),p(48,"tr",138)(49,"td"),k(50,"div",139),fe(51,"safeHtml"),k(52,"br"),f(53),u()(),p(54,"tr")(55,"td",140),f(56,"Maximum Torque "),u()(),p(57,"tr",138)(58,"td"),k(59,"div",139),fe(60,"safeHtml"),k(61,"br"),f(62),u()()(),k(63,"br"),p(64,"div",141)(65,"em"),f(66,"This utility is provided for convenience only.\xA0 Results should be double checked for accuracy."),u(),k(67,"br")(68,"br"),f(69," Please note that every effort has been made to ensure the accuracy of the conversions presented above.However, Futek Advanced Sensor Technology, Inc. assumes no liability for damages, either actual or consequential, resulting from the use of this conversion table.Users are invited to make use of this conversion tool at their own risk.Critical calculations and conversion should be verified independently.Conversions factors have been verified to the extent possible using recognized reference sources such as: "),u(),p(70,"ol",142)(71,"li"),f(72," Handbook of Chemistry and Physics, 80th Edition, 2000, CRC Press LLC, New York, "),u(),p(73,"li"),f(74," Machinery\u2019s Handbook, 27th Edition, 2004, Industrial Press Inc., New York, "),u(),p(75,"li"),f(76," CRC Standard Mathematical Tables, 15th Edition, 1999, Chemical Rubber Co.Cleveland, Ohio, and used"),u(),p(77,"li"),f(78," National Institute of Standards and Technology(NIST) reference conversion standards at: http://physics.nist.gov/cuu/Reference/unitconversions.html "),u(),p(79,"li"),f(80,"Other online references as necessary. "),u()()()()),n&2){let t=S();m(11),R(" ",t.Model.LblTextBox1,""),m(5),R(" ",t.Model.LblTextBox2,""),m(5),F(t.Model.LblTextBox3),m(5),F(t.Model.LblTextBox4),m(5),F(t.Model.LblTextBox5),m(5),F(t.Model.LblTextBox6),m(5),F(t.Model.LblTextBox7),m(9),v("innerHTML",xe(51,11,t.Model.LblRecTorque),$e),m(3),R(" Resultant Tension: ",t.Model.LblRecTension," "),m(6),v("innerHTML",xe(60,13,t.Model.LblMaxTorque),$e),m(3),R("Resultant Tension: ",t.Model.LblMaxTension," ")}}var IS=(()=>{let e=class e{constructor(){h(this,"FileHostUrl",Y.FileHostUrl);h(this,"Mode","american");h(this,"Model");h(this,"message");h(this,"messagedi");h(this,"messageth");h(this,"boltproofmessage");h(this,"lengthmessage");h(this,"kFactorMessage","");h(this,"tensilemessage");h(this,"strengthmessage");h(this,"currentYear",new Date().getFullYear());h(this,"ngUnsubscribe",new ke);h(this,"americanBoltSizes",[{value:-1,label:"Select.."},{value:0,label:"Custom.."},{value:1,label:"#0"},{value:2,label:"#1"},{value:3,label:"#2"},{value:4,label:"#3"},{value:5,label:"#4"},{value:6,label:"#5"},{value:7,label:"#6"},{value:8,label:"#8"},{value:9,label:"#10"},{value:10,label:'1/4"'},{value:11,label:'5/16"'},{value:12,label:'3/8"'},{value:13,label:'7/16"'},{value:14,label:'1/2"'},{value:15,label:'5/8"'},{value:16,label:'3/4"'},{value:17,label:'7/8"'},{value:18,label:'1"'},{value:19,label:'1 1/4"'},{value:20,label:'1 1/2"'},{value:21,label:'1 3/4"'},{value:22,label:'2"'},{value:23,label:'2 1/4"'},{value:24,label:'2 1/2"'},{value:25,label:'2 3/4"'}]);h(this,"metricBoltSizes",[{value:-1,label:"Select.."},{value:0,label:"Custom.."},{value:1,label:"1.6 mm"},{value:2,label:"2 mm"},{value:3,label:"2.5 mm"},{value:4,label:"3 mm"},{value:5,label:"4 mm"},{value:6,label:"5 mm"},{value:7,label:"6 mm"},{value:8,label:"8 mm"},{value:9,label:"10 mm"},{value:10,label:"12 mm"},{value:11,label:"16 mm"},{value:12,label:"20 mm"},{value:13,label:"24 mm"},{value:14,label:"30 mm"},{value:15,label:"36-3 mm"},{value:16,label:"36-4 mm"}]);h(this,"boltMaterialOptions",[{value:-1,label:"Select.."},{value:0,label:"Custom.."},{value:1,label:"Steel Average"},{value:2,label:"Steel Grade 1"},{value:3,label:"Steel Grade 2 (1/4 - 3/4)"},{value:4,label:"Steel Grade 2 (Over 3/4 - 1-1/2)"},{value:5,label:"Steel Grade 4"},{value:6,label:"Steel Grade 5 (1/4 - 1)"},{value:7,label:"Steel Grade 5 (Over 1 - 1-1/2)"},{value:8,label:"Steel Grade 7"},{value:9,label:"Steel Grade 8"},{value:10,label:"Stainless Average"}]);h(this,"materialOptions",[{value:-1,label:"Select.."},{value:0,label:"Custom.."},{value:1,label:"A36 Structural Steel"},{value:2,label:"4140 Steel"},{value:3,label:"4340 Steel"},{value:4,label:"410 Stainless"},{value:5,label:"17-4 PH Stainless"},{value:6,label:"17-7 PH Stainless"},{value:7,label:"2024-T6 Aluminum"},{value:8,label:"2024-T4 Aluminum"},{value:9,label:"6061-T6 Aluminum"}]);h(this,"varBoltCoarse",["","n/a","64","56","48","40","40","32","32","24","20","18","16","14","13","11","10","9","8","7","6","5","4.5","4","4","4"]);h(this,"varBoltFine",["","80","72","64","56","48","44","40","36","32","28","24","24","20","20","18","16","14","12","12","12","8","8","8","8","8"]);h(this,"varBoltDiameter",["","0.060","0.073","0.086","0.099","0.112","0.125","0.138","0.164","0.190","0.250","0.3125","0.375","0.4375","0.500","0.625","0.750","0.875","1.000","1.250","1.500","1.750","2.000","2.250","2.500","2.750"]);h(this,"varLength",["","0.09","0.1095","0.129","0.1485","0.168","0.1875","0.207","0.246","0.285","0.375","0.46875","0.5625","0.65625","0.75","0.9375","1.125","1.3125","1.5","1.875","2.25","2.625","3","3.375","3.75","4.125"]);h(this,"varBoltDiameterMetric",["","1.60","2.00","2.50","3.00","4.00","5.00","6.00","8.00","10.00","12.00","16.00","20.00","24.00","30.00","36.00","36.00"]);h(this,"varLengthMetric",["","2.4","3","3.75","4.5","6","7.5","9","12","15","18","24","30","36","45","54","54"]);h(this,"varBoltMetric",["","0.35","0.4","0.45","0.5","0.7","0.8","1","1.25","1.5","1.75","2","2.5","3","3.5","3","4"]);h(this,"varBoltProof",["","44000","33000","55000","33000","65000","85000","74000","105000","120000","75000"]);h(this,"varBoltProofMetric",["","303","228","379","228","448","510","724","827","517"]);h(this,"varMaterial",["","36000","200000","210000","140000","185000","220000","60000","46000","40000"]);h(this,"varMaterialMetric",["","248","1380","1450","965","1280","1520","414","317","276"]);h(this,"CoarseFine","coarse");h(this,"positionOptions",["above"]);h(this,"position",new qa(this.positionOptions[0]));h(this,"calculatorService",Se(ls));h(this,"supportService",Se(qn));h(this,"meta",Se(sn));h(this,"seoClientService",Se($n));h(this,"route",Se(on));h(this,"featureFlagsService",Se(an));h(this,"useRumiApiFF",this.featureFlagsService.IsEnabled(Vt.RumiApiEnabled))}ngOnInit(){this.useRumiApiFF?this.route.params.pipe(Re(this.ngUnsubscribe)).subscribe(i=>{this.Mode=i.mode,this.initializeModel()}):this.loadLegacyData(),this.setupSeo()}Calculate(){if(this.validateForm(),!this.isFormValid)return;if(this.Model.LoadBox??=0,this.Model.Kfactor??=0,!this.useRumiApiFF){this.calculateLegacy();return}let i=this.buildBoltTorqueRequest();this.calculatorService.calculateBoltTorque(i).pipe(Re(this.ngUnsubscribe)).subscribe({next:r=>this.handleCalculateSuccess(r),error:()=>this.handleCalculateError()})}get isFormValid(){return!(this.messagedi||this.messageth||this.boltproofmessage||this.lengthmessage||this.strengthmessage||this.kFactorMessage)}get boltSizeOptions(){return this.Mode==="american"?this.americanBoltSizes:this.metricBoltSizes}onBoltSizeChange(){let i=this.Model.BoltSize;this.Mode==="american"?(this.Model.BoltDiameter=this.varBoltDiameter[i],this.Model.Length=this.varLength[i],this.Model.BoltThreads=this.CoarseFine==="coarse"?this.varBoltCoarse[i]:this.varBoltFine[i]):(this.Model.BoltDiameter=this.varBoltDiameterMetric[i],this.Model.Length=this.varLengthMetric[i],this.Model.BoltThreads=this.varBoltMetric[i])}doBoltMaterial(i){let r=this.Model.BoltMaterial;this.Model.BoltProof=i?this.varBoltProof[r]:this.varBoltProofMetric[r]}doMaterial(i){let r=this.Model.Material;this.Model.Strength=i?this.varMaterial[r]:this.varMaterialMetric[r]}onBlurMethod(i){this.setValidationMessage(i,"messagedi")}onBlurMethodthread(i){this.setValidationMessage(i,"messageth")}onBlurMethodproof(i){this.setValidationMessage(i,"boltproofmessage")}onBlurMethodlength(i){this.setValidationMessage(i,"lengthmessage")}onBlurMethodstrength(i){this.setValidationMessage(i,"strengthmessage")}onBlurMethodKFactor(i){this.setValidationMessage(i,"kFactorMessage"),(i<0||i>1)&&(this.kFactorMessage="K factor must be less than or equal to 1. Typical values are 0.15 to 0.25.")}onBlurMethodtensile(i){let r=Number(i);isNaN(r)&&(this.tensilemessage="Please use (1 or 1.0 or .1) format.")}onPrint(){window.print()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}loadLegacyData(){this.route.params.pipe(ot(i=>(this.Mode=i.mode,this.supportService.getBoltTorqueData(this.Mode))),Re(this.ngUnsubscribe)).subscribe(i=>{this.Model=i,this.Model.BoltSize=-1,this.Model.BoltMaterial=-1})}calculateLegacy(){this.supportService.calculateBoltTorque(this.Model).subscribe(i=>{this.Model=i})}initializeModel(){this.Model={BoltSize:-1,BoltMaterial:-1,Material:-1,ShowMiscPanel:!0,ShowBoltDataPanel:!0,ShowMatingPanel:!0,ShowWarningPanel:!1,ShowWarning2Panel:!1,ShowResultPanel:!1,Kfactor:.2,LoadBox:0,LblMajorDiameter:0,Warnings:[]}}setupSeo(){this.seoClientService.createLinkForCanonicalURL(),this.seoClientService.updateTitle("Bolt Torque Calculator"),this.meta.updateTag({name:"description",content:"Bolt Torque Calculator"}),this.meta.updateTag({name:"keywords",content:"Bolt Torque Calculator"})}buildBoltTorqueRequest(){return{mode:this.Mode,boltDiameter:Number(this.Model.BoltDiameter),threadPitch:Number(this.Model.BoltThreads),proofStrength:Number(this.Model.BoltProof),length:Number(this.Model.Length),yieldStrength:Number(this.Model.Strength),appliedLoad:Number(this.Model.LoadBox),kFactor:Number(this.Model.Kfactor)}}validateForm(){this.onBlurMethod(this.Model.BoltDiameter),this.onBlurMethodthread(this.Model.BoltThreads),this.onBlurMethodproof(this.Model.BoltProof),this.onBlurMethodlength(this.Model.Length),this.onBlurMethodstrength(this.Model.Strength),this.onBlurMethodKFactor(this.Model.Kfactor)}setValidationMessage(i,r){let s=Number(i);this[r]=!i||isNaN(s)?"Please use (1 or 1.0 or .1) format.":s<=0?"Please enter a value greater than 0.":""}formatValue(i){return`${i?.value??""} ${i?.unit??""}`.trim()}handleCalculateError(){this.Model.ShowResultPanel=!1,this.Model.ShowBoltDataPanel=!0,this.Model.ShowMatingPanel=!0,this.Model.ShowMiscPanel=!0,this.Model.ShowWarningPanel=!0}handleCalculateSuccess(i){this.Model.ShowBoltDataPanel=!1,this.Model.ShowMatingPanel=!1,this.Model.ShowMiscPanel=!1,this.Model.ShowResultPanel=!0,this.Model.ShowWarningPanel=!1;let r=i.inputSummary;this.Model.LblTextBox1=r?.boltDiameter,this.Model.LblTextBox2=`${this.Mode==="american"?"Thread Pitch":"Pitch"}: ${r?.threadPitch}`,this.Model.LblTextBox3=r?.proofStrength,this.Model.LblTextBox4=r?.length,this.Model.LblTextBox5=r?.yieldStrength,this.Model.LblTextBox6=r?.appliedLoad,this.Model.LblTextBox7=r?.kFactor,this.Model.LblRecTorque=this.formatValue(i.recommendedTorque),this.Model.LblRecTension=this.formatValue(i.recommendedTension),this.Model.LblMaxTorque=this.formatValue(i.maximumTorque),this.Model.LblMaxTension=this.formatValue(i.maximumTension),this.Model.Warnings=[]}};h(e,"\u0275fac",function(r){return new(r||e)}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-bolttorque-calc"]],decls:75,vars:12,consts:[[1,"container"],[1,"catseriesstoremainpanelold"],[1,"row","Storeheaderpanel","Calculatormenu"],[1,"col-md-12","col-12","Storetextv1"],[1,"storetitlepl1"],["routerLink","/support",1,"productTechnicalmb1"],["id","arrowte1",1,"material-icons","productTechnicalmb1"],[1,"activestoretitlepl1"],[1,"h1Tag","productTechnicalmb1"],[1,"row"],[1,"boltheaderpanel1"],[1,"leftboltheaderpanel1"],[1,"row","bolttorquepanelm1"],["cellpadding","0","cellspacing","0",1,"calc_box","Miscellaneousbox1"],[2,"border","solid 0px #cccccc","border-top","none"],[1,"textpanelm1cal1"],[1,"leftpanelcal1"],["id","americanDiv",1,"Americantexv1"],["routerLink","/bolttorque/american"],[1,"leftpanelcal2"],["id","metricDiv",1,"Americantexv1"],["routerLink","/bolttorque/metric"],[1,"ApplicationMajortextb1"],[1,"loadcelllearnbox1"],["routerLink","/how-a-load-cell-works",1,"calStrainlink"],[1,"learntextcal"],[1,"Worksarrowpm"],["alt","rightarrowmark",3,"src"],[1,"leftboltheaderpanel2"],["id","promo",1,"row"],[1,"col-sm-12","calpromopanelm1"],[1,"service"],["routerLink","/applications/Bolt-Fastening"],["src","https://futek-forms.s3.us-east-1.amazonaws.com/calculators/app102.png","alt"," "],[1,"app-number"],["routerLink","/applications/Bolt-Fastening",1,"service-title"],["routerLink","/applications/Power-Tool-Measurement"],["src","https://futek-forms.s3.us-east-1.amazonaws.com/calculators/app302.png","alt"," "],["routerLink","/applications/Power-Tool-Measurement",1,"service-title"],["routerLink","/applications/Torque-Verification-Calibration"],["src","https://futek-forms.s3.us-east-1.amazonaws.com/calculators/app
210304.png","alt"," "],["routerLink","/applications/Torque-Verification-Calibration",1,"service-title"],[1,"abovese1"],[1,"col-sm-12","calculatorspl1"],[1,"botAdvancedcopyt1","copyright"],[1,"clear"],["id","boltData",1,"bolttextb1"],["width","100%",1,"table_main","Bolttablem1","tablecalculator",2,"border-collapse","inherit !important","float","left","width","100%"],["height","23"],["colspan","4",1,"boltdatatext"],["width","100%",1,"tablecalculator",2,"border-collapse","inherit !important","float","left","width","100%"],[1,"boltimageh2"],["alt","bolt",1,"boltimagev1pm1",3,"src"],["width","100%",1,"tablecalculator"],["height","20"],["rowspan","3","valign","top",1,"Sizeboltsizetextv1"],["valign","top"],[1,"Selecttextcal1",2,"width","96%",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"Majortextb1Diameter1"],[1,"MajorboDiametert1"],["id","BoltDiameter","type","text","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46",1,"Selecttextcal1",3,"ngModelChange","blur","ngModel"],[3,"ngClass"],[1,"text-danger","textdangermes1"],["valign","top",1,"Majortextb1"],["id","BoltThreads","type","text","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46",1,"Selecttextcal1",3,"ngModelChange","blur","ngModel"],["rowspan","2","valign","top",1,"Materialboltsizetextv1"],["colspan","2"],["name","BoltMaterial","size","1","id","BoltMaterial",1,"Lengthselecttextcal1box1",3,"ngModelChange","change","ngModel"],[1,"ProofMajortextb1"],[1,"psipanelm1"],["id","BoltProof","type","text","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46",1,"Selecttextcal1",3,"ngModelChange","blur","ngModel"],[1,"pl-1"],["id","radioAmerican",1,"Coarseta1"],["name","CoarseFine",3,"change","ngModelChange","ngModel"],["name","Coarse","value","coarse"],["name","Fine","value","fine"],["id","threadsAmerican",1,"ThreadMajortextb1Diameter2"],["id","threadsMetric"],["
210id","mating",1,"bolttextb1"],["cellpadding","0","cellspacing","0","width","100%","id","popup1",1,"tablecalculator",2,"position","relative","background-color","White","visibility","hidden","float","left","width","100%","z-index","9","border","solid 2px #0043cf","display","none"],[1,"bg_4"],["onclick","hideWindow('popup1');",1,"fakeLink"],[2,"font-size","9pt","padding","3px 3px 3px 3px","border-bottom","solid 1px black"],[2,"font-size","8pt","padding","5px 5px 5px 15px"],["cellpadding","0","cellspacing","0","width","100%","id","popup2",1,"tablecalculator",2,"position","relative","background-color","White","visibility","hidden","float","left","width","100%","border","solid 2px #0043cf","display","none"],["onclick","hideWindow('popup2');",1,"fakeLink"],["width","100%",1,"tablecalculator",2,"padding","5px","border","1px solid #d2d2d2","margin-top","10px","border-collapse","inherit !important","width","100%","float","left"],["width","100%",1,"tablecalculator",2,"border-collapse","inherit !important"],["alt","recept",1,"boltimagev1pm1",3,"src"],[1,"subboltsizetextv1"],[1,"fildLengthvtext1"],["type","text","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46","id","Length",1,"ModelLengthselecttextcal1",3,"ngModelChange","blur","ngModel"],[1,"Lengthvtext2"],[1,"Lengthvtext3"],[1,"faqtextb1"],[1,"boltquestionMarkSection"],["id","loadappliedmb1",1,"futekToolip"],[1,"questionMark"],[1,"tooltiptext"],[1,"text-danger","Pleaseusetn1","textdangermes1"],["rowspan","2","valign","top",1,"Maboltsizetextv1"],["name","Material","id","Material","size","1",1,"subLengthselecttextcal1",3,"ngModelChange","change","ngModel"],["height","53"],[1,"YieldMajortextb1"],["id","Strength","type","text","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46",1,"Selecttextcal1",3,"ngModelChange","blur","ngModel"],["id","misc",1,"bolttextb1"],["cellpadding","0","cellspacing","0","width","100%","id","popup3",1,"tablecalculator",2,"position","relative","background-color","White","visibility","hidden","border","solid 2px #0043cf","display","none"],["onclick","hideWindow('popup3');",1,"fakeLink"],[2,"font-size","9pt","padding","3px 3px 3px 3px","border-bottom","solid 1px black","text-align","right"],["cellpadding","0","cellspacing","0","width","200","id","popup4",1,"tablecalculator",2,"position","relative","background-color","White","visibility","hidden","border","solid 2px #0043cf","display","none"],["onclick","hideWindow('popup4');",1,"fakeLink"],["colspan","2",2,"font-size","8pt","padding","3px 3px 3px 3px","border-bottom","solid 1px black"],["valign","top","width","100%",1,"tablecalculator",2,"border-collapse","inherit !important"],[1,"boltimageh3"],["alt","load",1,"Appliedboltimagev1pm1",3,"src"],[1,"Appliedboltsizetextv1"],[1,"Loadtexttens1"],["id","LoadBox","type","text","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46",1,"Selecttextcal1",3,"ngModelChange","blur","ngModel"],[1,"boltquestionMarkSection2"],[1,"Factorbt1"],[2,"text-align","left"],["id","Kfactor","type","text","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46",1,"Selecttextcal1",3,"ngModelChange","blur","ngModel"],[1,"boltquestionMarkSection3"],[1,"Factortoolp1"],[1,"Factorsv1"],[1,"Calcualtelplo1"],["type","button","value","Calculate",1,"primary-button","small-button",3,"click"],[1,"bolttextn1"],[1,"text-danger","textdangermes1ct1"],[1,"warningExceeds"],[2,"color","var(--text-error)"],["id","warning",1,"warningExceeds"],["id","result"],["width","100%","border","0","cellpadding","0","cellspacing","0",1,"Diametertypal1","tablec
210alculator"],[1,"Diameterlp1"],[1,"Majorapbolt1"],["bgcolor","#56AF5C",1,"Recommendedtextn1"],[1,"Resultantplm1"],[3,"innerHTML"],["bgcolor","#C45454",1,"Recommendedtextn1"],[1,"common_box_desc","providedp1"],[1,"Handbooktextb1"]],template:function(r,s){r&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4)(5,"a",5),f(6,"Support "),u()(),p(7,"span",4)(8,"i",6),f(9,"keyboard_arrow_right "),u()(),p(10,"span",7)(11,"h1",8),f(12,"Bolt Torque Calculator"),u()()()(),p(13,"div",0)(14,"div",9)(15,"div",10)(16,"div",11)(17,"div",12)(18,"div",13)(19,"div")(20,"div",14)(21,"div",15)(22,"div",16)(23,"div",17)(24,"a",18),f(25,"English"),u()()(),p(26,"div",19)(27,"div",20)(28,"a",21),f(29,"Metric"),u()()()(),M(30,w3,59,16,"div")(31,E3,78,9,"div")(32,T3,118,8,"div")(33,P3,4,0,"div")(34,A3,6,0,"div")(35,I3,81,15,"div",22),u()()()(),p(36,"div",9)(37,"div",23)(38,"a",24)(39,"span",25),f(40,' Want to learn more about Strain Gauge Load Cell? Visit the "How a Load Cell Works" page! '),u(),p(41,"span",26),k(42,"img",27),u()()()()(),p(43,"div",28)(44,"div",29)(45,"div",30)(46,"div",31)(47,"a",32),k(48,"img",33),u(),p(49,"p",34),f(50,"Application 102"),u(),p(51,"a",35),f(52,"Bolt Fastening"),u()()(),p(53,"div",30)(54,"div",31)(55,"a",36),k(56,"img",37),u(),p(57,"p",34),f(58,"Application 302"),u(),p(59,"a",38),f(60,"Power Tool Measurement"),u()()(),p(61,"div",30)(62,"div",31)(63,"a",39),k(64,"img",40),u(),p(65,"p",34),f(66,"Application 304"),u(),p(67,"a",41),f(68,"Torque Verification/Calibration"),u()()()()()(),p(69,"div",42)(70,"div",9)(71,"div",43)(72,"div",44),f(73),u()()()()()(),k(74,"div",45),u()()),r&2&&(m(23),po(s.Mode==="american"?"active":""),m(4),po(s.Mode==="metric"?"active":""),m(3),mt(s.Model&&s.Model.ShowBoltDataPanel?30:-1),m(),mt(s.Model&&s.Model.ShowMatingPanel?31:-1),m(),mt(s.Model&&s.Model.ShowMiscPanel?32:-1),m(),mt(!(s.Model==null||s.Model.Warnings==null)&&s.Model.Warnings.length?33:s.Model.ShowWarningPanel?34:-1),m(2),mt(s.Model&&s.Model.ShowResultPanel?35:-1),m(7),xt("src","",s.FileHostUrl,"/content/futek/images/home/rightarrowmark.png",X),m(31),R("Copyright \xA9 1998-",s.currentYear," FUTEK Advanced Sensor Technology, Inc. All rights reserved. The above calculators can not be copied or reproduced without written permission from FUTEK Advanced Sensor Technology, Inc. "))},dependencies:[vf,Sf,Tt,_f,Mt,Pt,Li,o0,a0,it,At],styles:['form[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#ededed;border:1px solid #cccccc;border-radius:4px;color:#333;font-family:Open Sans,Helvetica Neue,Arial,sans-serif;font-size:12px;line-height:12px;margin:0;padding:6px;vertical-align:middle;height:39px;width:38%}.boltquestionMarkSection[_ngcontent-%COMP%]{width:17px;margin-top:-20px;margin-left:18px}.boltquestionMarkSection2[_ngcontent-%COMP%]{width:22px;margin-top:-27px;margin-left:80%;padding-top:4px}.boltquestionMarkSection3[_ngcontent-%COMP%]{width:21px;margin-top:-24px;margin-left:76%}.warningExceeds[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;width:100%;float:left;font-size:10pt;padding:28px;border:1px solid #ccc;line-height:23px}.Factortoolp1[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:9px}.tablecalculator[_ngcontent-%COMP%]{text-align:left!important}.Factorsv1[_ngcontent-%COMP%]{padding:10px}.MajorboDiametert1[_ngcontent-%COMP%]{padding-top:11px}.boltheaderpanel1[_ngcontent-%COMP%]{width:100%;float:left}.leftboltheaderpanel1[_ngcontent-%COMP%]{width:72%;float:left}.leftboltheaderpanel2[_ngcontent-%COMP%]{width:21%;float:left;margin:0 0 0 28px}.abovese1[_ngcontent-%COMP%]{width:100%;float:left}.btreutilityplm1[_ngcontent-%COMP%]{width:100%;font-size:10pt;margin-top:0;padding-left:1px;margin-bottom:55px}.Sizeboltsizetextv1[_ngcontent-%COMP%]{text-align:left;line-height:30px;padding-right:15px;font-weight:700;font-family:Nunito Sans,sans-serif}.Appliedboltsizetextv1[_ngcontent-%COMP%]{text-align:left;line-height:initial;font-weight:700;font-family:Nunito Sans,sans-serif;padding:7px 0;width:61%;float:left}.Loadtexttens1[_ngcontent-%COMP%]{text-align:left;width:53%}.Selecttextcal1[_ngcontent-%COMP%]{padding:2px;border:1px solid #d2d2d2;margin-top:0;font-family:Nunito Sans,sans-serif;width:70%}.Bolttablem1[_ngcontent-%COMP%]{padding:5px;border:1px solid #d2d2d2;font-family:Nunito Sans,sans-serif;margin-top:0}.boltdatatext[_ngcontent-%COMP%]{padding-left:10px;font-weight:700;font-size:14px;text-align:left;font-family:Nunito Sans,sans-serif;padding-top:0}form[_ngcontent-%COMP%]{line-height:10px}form[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], form[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:14px;font-weight:500;display:block;margin-bottom:0}.Majortextb1Diameter1[_ngcontent-%COMP%]{padding-top:15px}.Majortextb1Diameter2[_ngcontent-%COMP%]{padding-top:9px}.subboltsizetextv1[_ngcontent-%COMP%]{text-align:left;line-height:24px;padding-right:15px;font-weight:700;float:left}.ThreadMajortextb1Diameter2[_ngcontent-%COMP%]{border-top:0px dotted #ccc;padding:9px 1px;margin-top:0}.YieldMajortextb1[_ngcontent-%COMP%]{margin-left:-5px;float:left;padding:16px 0;width:103px}.subLengthselecttextcal1[_ngcontent-%COMP%]{padding:2px;border:1px solid #d2d2d2;margin-top:10px;font-family:Nunito Sans,sans-serif;width:36%;margin-left:-7px}.boltsizetextv1[_ngcontent-%COMP%]{text-align:left;line-height:55px;padding-right:15px;font-weight:700;font-family:Nunito Sans,sans-serif}.Materialboltsizetextv1[_ngcontent-%COMP%]{text-align:left;line-height:47px;padding-right:8px;font-weight:700}.Majorapbolt1[_ngcontent-%COMP%]{width:23%;float:left;font-size:10pt}.Diameterlp1[_ngcontent-%COMP%]{line-height:24px}.Majortextb1[_ngcontent-%COMP%]{text-align:left}.ApplicationMajortextb1[_ngcontent-%COMP%]{border:1px solid #f1f1f1;padding:10px;margin-top:0;font-family:Nunito Sans,sans-serif}.boltmajorDiameterv1[_ngcontent-%COMP%]{margin-bottom:10px}.Coarseta1[_ngcontent-%COMP%]{margin-bottom:2px;margin-left:8px;padding-top:0}.Pleaseusetn1[_ngcontent-%COMP%]{padding-top:0;float:left;padding-left:4px}.bolttextn1[_ngcontent-%COMP%]{width:100%;float:left;padding:0;border:0px dotted #ccc;font-family:Nunito Sans,sans-serif;font-size:10pt;font-weight:600}.Lengthvtext1[_ngcontent-%COMP%], .Lengthvtext2[_ngcontent-%COMP%], .Lengthvtext3[_ngcontent-%COMP%], .Lengthvtext4[_ngcontent-%COMP%]{float:left}.fildLengthvtext1[_ngcontent-%COMP%]{width:36%;margin-right:9px;float:left}.Lengthvtext2[_ngcontent-%COMP%]{float:left;padding:3px 1px}.loadcelllearnbox1[_ngcontent-%COMP%]{border:2px solid #cf102d;padding:5px;width:auto;text-align:center;width:100%;margin-bottom:30px}.calStrainlink[_ngcontent-%COMP%]{color:#cf102d}.learntextcal[_ngcontent-%COMP%]{float:left;padding:3px 13px 0 22px;font-size:11pt;font-family:Nunito Sans,sans-serif}.calpromopanelm1[_ngcontent-%COMP%]{padding-left:0!important}.bolttorquepanelm1[_ngcontent-%COMP%]{width:100%}.bolttextb1[_ngcontent-%COMP%]{font-size:10pt}.Miscellaneousbox1[_ngcontent-%COMP%]{width:100%;margin-bottom:12px}.Americantexv1[_ngcontent-%COMP%]{font-size:10pt;background:#f1f1f1a3;padding:7px;text-align:center}.active[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:700;color:#ca0000}.psipanelm1[_ngcontent-%COMP%]{padding-top:10px}.boltimageh2[_ngcontent-%COMP%]{width:32%}.boltimageh3[_ngcontent-%COMP%]{width:33%}.ModelLengthselecttextcal1[_ngcontent-%COMP%]{padding:2px;border:1px solid #d2d2d2;margin-top:0;font-family:Nunito Sans,sans-serif;width:100%;float:left;margin-left:-8px}.Lengthselecttextcal1box1[_ngcontent-%COMP%]{padding:2px;border:1px solid #d2d2d2;margin-top:10px;font-family:Nunito Sans,sans-serif;width:34%}.Factorbt1[_ngcontent-%COMP%]{text-align:left;font-family:Nunito Sans,sans-serif;padding:6px 0;font-weight:700;float:left}.Appliedboltimagev1pm1[_ngcontent-%COMP%]{padding:5px 21px;height:155px}.Lengthpopl1[_ngcontent-%COMP%]{font-weight:400;font-size:14px;width:100%;float:left;padding:13px 0;font-family:Nunito Sans,sans-serif}.Lengthselecttextcal1[_ngcontent-%COMP%]{padding:2px;border:1px solid #d2d2d2;margin-top:0;font-family:Nunito Sans,sans-serif}.Maboltsizetextv1[_ngcontent-%COMP%]{text-align:left;line-height:44px;font-weight:700;padding-right:10px;font-family:Nunito Sans,sans-serif}.textdangermes1[_ngcontent-%COMP%]{font-size:12px;float:left;width:100%;font-weight:400}.textdangermes1ct1[_ngcontent-%COMP%]{font-size:12px;float:left;font-weight:400;width:100%;word-break:break-word}.Majortextb1[_ngcontent-%COMP%]{border-top:0px dotted #ccc;padding:9px 2px;margin-top:0}.ProofMajortextb1[_ngcontent-%COMP%]{border-top:0px dotted #ccc;padding:17px 1px;margin-top:-3px;float:left}.Diametertypal1[_ngcontent-%COMP%]{font-size:10pt;margin-top:50px}.Recommendedtextn1[_ngcontent-%COMP%]{padding:10px;color:#fff;font-size:10pt}.Resultantplm1[_ngcontent-%COMP%]{padding-top:16px;float:left;width:100%}.providedp1[_ngcontent-%COMP%]{padding:10px;font-size:10pt}.Handbooktextb1[_ngcontent-%COMP%]{font-size:10pt}.btnConvTextbtnm1[_ngcontent-%COMP%]{border:1px solid #1379cb;background-color:#1379cb;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod\\2026IwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-webkit-linear-gradient(bottom,#0b49b7 0,#1babe1 100%);color:#fff;border-radius:0;font-weight:400;font-size:10pt;padding:5px 18px;
210cursor:pointer}.Calcualtelplo1[_ngcontent-%COMP%]{text-align:left;margin-bottom:0;margin-right:10px;float:left;margin-top:0}.Frequentlyqu1[_ngcontent-%COMP%]{width:700px;height:350px}.faqtextb1[_ngcontent-%COMP%]{color:#ca0000!important}.m-l-2em[_ngcontent-%COMP%]{margin-left:2em}.fakeLink[_ngcontent-%COMP%]{height:22px}.copyright[_ngcontent-%COMP%]{margin:-1em 0}#promo[_ngcontent-%COMP%]{margin:2em 0}.service[_ngcontent-%COMP%]{border:1px solid #ededed;height:240px;padding:0;font-size:14px;font-family:Nunito Sans;font-weight:500;margin-bottom:0}.service[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;height:auto;object-fit:cover;height:170px;width:100%}.service[_ngcontent-%COMP%]   .app-number[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;font-size:12px;color:#666;letter-spacing:.08em;margin-bottom:5px!important;padding:5px 20px 0 12px}.service[_ngcontent-%COMP%]   .service-title[_ngcontent-%COMP%]{display:block;padding:0 20px 0 12px;font-size:16px;color:#cf102d;line-height:19px;font-weight:400;letter-spacing:-.02em;text-decoration:none;font-family:Nunito Sans}.service[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding:20px;font-size:14px}.textpanelm1cal1[_ngcontent-%COMP%]{width:25%;float:left;border:1px solid #ccc}.leftpanelcal1[_ngcontent-%COMP%]{width:50%;float:left;border-right:1px solid #ccc}.leftpanelcal2[_ngcontent-%COMP%]{width:50%;float:left}.service[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:700;color:#cf102d}.service[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .service[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{text-decoration:none}.service[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after{content:"\\25b6";color:#cf102d;font-size:80%;padding-left:5px}.clear[_ngcontent-%COMP%]{height:60px}.botAdvancedcopyt1[_ngcontent-%COMP%]{font-size:10pt;padding-left:0;width:96%;padding-top:3px;font-family:Nunito Sans,sans-serif;color:#696969}.calculatorspl1[_ngcontent-%COMP%]{padding-left:0!important}@media (min-width: 320px) and (max-width: 680px){.Calculatormenu[_ngcontent-%COMP%]{border-bottom:0px dotted #ccc}#loadappliedmb1[_ngcontent-%COMP%]{display:block}.boltimageh2[_ngcontent-%COMP%], .boltimageh3[_ngcontent-%COMP%]{display:none}.boltdatatext[_ngcontent-%COMP%]{padding-left:5px}.subLengthselecttextcal1[_ngcontent-%COMP%]{width:96%}.Appliedboltsizetextv1[_ngcontent-%COMP%]{line-height:16px}.Selecttextcal1[_ngcontent-%COMP%]{width:67%}.Appliedboltimagev1pm1[_ngcontent-%COMP%], .boltimagev1pm1[_ngcontent-%COMP%]{display:none}.Factorbt1[_ngcontent-%COMP%]{text-align:left;padding:0}.boltsizetextv1[_ngcontent-%COMP%]{text-align:left;line-height:16px}.loadcelllearnbox1[_ngcontent-%COMP%]{padding:3px}.textpanelm1cal1[_ngcontent-%COMP%]{width:65%}.boltimagev1[_ngcontent-%COMP%]{width:50px}.leftboltheaderpanel1[_ngcontent-%COMP%]{width:100%;float:left}.leftboltheaderpanel2[_ngcontent-%COMP%]{width:100%;float:left;margin:0}.learntextcal[_ngcontent-%COMP%]{font-size:9pt;text-align:left;width:90%;padding-left:10px}.botAdvancedcopyt1[_ngcontent-%COMP%]{width:100%}.Worksarrowpm[_ngcontent-%COMP%]{float:left;padding-top:8px}}@media (min-width: 680px) and (max-width: 1024px){.Calculatormenu[_ngcontent-%COMP%]{padding-top:0}#loadappliedmb1[_ngcontent-%COMP%]{display:block}.leftboltheaderpanel1[_ngcontent-%COMP%]{width:100%}.leftboltheaderpanel2[_ngcontent-%COMP%]{width:100%;float:left;margin:0}.service[_ngcontent-%COMP%]{border:1px solid #ededed;height:auto;padding:0;font-size:14px;font-family:Nunito Sans;font-weight:500}}@media (min-width: 1024px) and (max-width: 1366px){.leftboltheaderpanel2[_ngcontent-%COMP%]{width:21%}}  .mdc-text-field--outlined{--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-outline-color: #e0e0e0 !important;--mdc-outlined-text-field-focus-outline-width: 1px !important;--mdc-outlined-text-field-focus-outline-color: #e0e0e0 !important;--mdc-outlined-text-field-hover-outline-color: #949494 !important}']}));let n=e;return n})();var D3=["resolutionForm"],N3=(n,e)=>e.Sensor;function L3(n,e){n&1&&(p(0,"div",3)(1,"div",4),k(2,"mat-progress-spinner",5),u()())}function B3(n,e){if(n&1&&(p(0,"mat-option",11),f(1),u()),n&2){let t=e.$implicit;v("value",t),m(),R(" ",t," ")}}function R3(n,e){if(n&1&&(p(0,"mat-option",11),f(1),u()),n&2){let t=e.$implicit;v("value",t),m(),R(" ",t," ")}}function F3(n,e){if(n&1&&(p(0,"mat-option",11),f(1),u()),n&2){let t=e.$implicit;v("value",t),m(),R(" ",t," ")}}function H3(n,e){if(n&1&&(p(0,"mat-option",11),f(1),u()),n&2){let t=e.$implicit;v("value",t.Sensor),m(),R(" ",t.Sensor," ")}}function V3(n,e){if(n&1&&(p(0,"mat-option",11),f(1),u()),n&2){let t=e.$implicit;v("value",t),m(),R(" ",t," ")}}function U3(n,e){if(n&1&&(p(0,"div",21)(1,"h3"),f(2,"Result"),u(),p(3,"mark")(4,"P",22),f(5),u()(),p(6,"p"),f(7," Calculator is provided for estimation purposes. "),u()()),n&2){let t=S(2);m(5),R(" ",t.resolution," ")}}function G3(n,e){if(n&1){let t=$();p(0,"form",6,0),N("ngSubmit",function(){A(t);let r=S();return I(r.calculate())}),p(2,"div",7)(3,"div",8)(4,"mat-form-field",9)(5,"mat-label"),f(6,"Sensor Type"),u(),p(7,"mat-select",10),te("ngModelChange",function(r){A(t);let s=S();return ee(s.sensorType,r)||(s.sensorType=r),I(r)}),N("selectionChange",function(){A(t);let r=S();return I(r.onSensorTypeSelect())}),Ft(8,B3,2,2,"mat-option",11,ai),u()()(),p(10,"div",8)(11,"mat-form-field",9)(12,"mat-label"),f(13,"Measurement Unit"),u(),p(14,"mat-select",12),te("ngModelChange",function(r){A(t);let s=S();return ee(s.request.measurementUnit,r)||(s.request.measurementUnit=r),I(r)}),Ft(15,R3,2,2,"mat-option",11,ai),u()()(),p(17,"div",8)(18,"mat-form-field",9)(19,"mat-label"),f(20,"Sensor Capacity"),u(),p(21,"input",13),te("ngModelChange",function(r){A(t);let s=S();return ee(s.request.capacity,r)||(s.request.capacity=r),I(r)}),u()()()(),p(22,"div",7)(23,"div",8)(24,"mat-form-field",9)(25,"mat-label"),f(26,"Sensor Rated Output"),u(),p(27,"input",14),te("ngModelChange",function(r){A(t);let s=S();return ee(s.request.sensorSensitivity,r)||(s.request.sensorSensitivity=r),I(r)}),u()()(),p(28,"div",8)(29,"mat-form-field",9)(30,"mat-label"),f(31,"Output Type"),u(),p(32,"mat-select",15),te("ngModelChange",function(r){A(t);let s=S();return ee(s.request.sensitivityType,r)||(s.request.sensitivityType=r),I(r)}),N("selectionChange",function(){A(t);let r=S();return I(r.onSensorRatedSelect())}),Ft(33,F3,2,2,"mat-option",11,ai),u()()(),p(35,"div",8)(36,"mat-form-field",9)(37,"mat-label"),f(38,"Model Type"),u(),p(39,"mat-select",16),te("ngModelChange",function(r){A(t);let s=S();return ee(s.request.modelType,r)||(s.request.modelType=r),I(r)}),N("selectionChange",function(){A(t);let r=S();return I(r.onModelTypeSelect())}),Ft(40,H3,2,2,"mat-option",11,N3),u()()()(),p(42,"div",7)(43,"div",8)(44,"mat-form-field",9)(45,"mat-label"),f(46,"Sampling Rate (Samples Per Second)"),u(),p(47,"mat-select",17),te("ngModelChange",function(r){A(t);let s=S();return ee(s.request.rate,r)||(s.request.rate=r),I(r)}),Ft(48,V3,2,2,"mat-option",11,ai),u()()()(),p(50,"div",18)(51,"div",19)(52,"button",20),f(53," Calculate "),u()()()(),M(54,U3,8,1,"div",21)}if(n&2){let t=He(1),i=S();m(7),J("ngModel",i.sensorType),m(),Ht(i.sensorTypes),m(6),J("ngModel",i.request.measurementUnit),m(),Ht(i.measurementTypes),m(6),J("ngModel",i.request.capacity),m(6),J("ngModel",i.request.sensorSensitivity),m(5),J("ngModel",i.request.sensitivityType),m(),Ht(i.sensorOutputs),m(6),J("ngModel",i.request.modelType),m(),Ht(i.modelTypes),m(7),J("ngModel",i.request.rate),m(),Ht(i.sampleTypes),m(4),v("disabled",t.invalid),m(2),mt(i.resolution?54:-1)}}var kS=(()=>{let e=class e{constructor(){h(this,"resolutioncalcform");h(this,"resolution");h(this,"request",{capacity:void 0,measurementUnit:null,modelType:null,sensitivityType:"mV/V",rate:null,sensorSensitivity:null,input:null,output:null,bits:null,direction:null});h(this,"sensorType");h(this,"sensorTypes",["Load","Pressure","Torque","Length","Temperature","Angle"]);h(this,"sensorOutputs",["mV/V","VDC","mA"]);h(this,"measurementTypes",[]);h(this,"unitsByType",[{SensorType:"Load",Values:["lb","oz","kg","dyne","N","ton","ton (metric)","g","KN","kip"]},{SensorType:"Pressure",Values:["ft_h20","in_h20","psig","atm","kPa","bar","MPa","mm Hg (torr)","kg/cm2","Pa"]},{SensorType:"Torque",Values:["kg-m","ft-lb","g-cm","N-m","N-mm","in-oz","in-lb","kg-cm","N-cm","g-mm"]},{SensorType:"Length",Values:["m","km","cm","mm","yard","mile","ft","in","micrometer","nm"]},{SensorType:"Temperature",Values:["Fahrenheit","Celsius","Kelvin"]},{SensorType:"Angle",Values:["degree","radian"]}]);h(this,"samplingMvv",[{Sensor:"IDA100",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]},{Sensor:"IHH500",Samplings:[5,10,25,30,50,60,100,200,400,600,800,960,1200,1600,2400,4800]},{Sensor:"IHH505",Samplings:[2.5,5,10,16.6,20,50,60,100,400,1200,2400,4800]},{Sensor:"IPM650",Samplings:[5,10,25,30,50,60,100,200,400,600,800,960,1200,1600,2400,4800]},{Sensor:"USB215",Samplings:[5,10,15,20,25,30,50,60,100,150,200,300]},{Sensor:"USB220",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]},{Sensor:"USB410",Samplings:[2.5,10,20,25,30,50,60,80,100,150,200]},{Sensor:"USB520",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]},{Sensor:"USB225 Pro",Samplings:[2.5,5,10,16.6,20,50,60,100,400,1200,2400,4800]},{Sensor:"USB225 Pro Elite",Samplings:[2.5,5,10,16.6,20,50,60,100,400,1200,2400,4800,7200,14400,19200,38400]},{Sensor:"QIA128",Samplings:[4,20,50,100,200,500,850,1300]}]);h(this,"samplingVDCorMA",[{Sensor:"IHH500",Samplings:[5,10,25,30,50,60,100,200,400,600,800,960,1200,1600,2400,4800]},{Sensor:"IHH505",Samplings:[2.5,5,10,16.6,20,50,60,100,400,1200,2400,4800]},{Sensor:"IPM650",Samplings:[5,10,25,30,50,60,100,200,400,600,800,960,1200,1600,2400,4800]},{Sensor:"USB320",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]},{Sensor:"USB520",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]}]);h(this,"modelTypes",[]);h(this,"sampleTypes",[]);h(this,"isLoading");h(this,"calculatorsService",Se(ls));h(this,"snackBar",Se(Hi))}ngOnInit(){this.onSensorRatedSelect()}onSensorTypeSelect(){let i=this.unitsByType.find(r=>r.SensorType===this.sensorType);this.measurementTypes=i?.Values??[],this.request.measurementUnit=this.measurementTypes.length>0?this.measurementTypes[0]:null}onSensorRatedSelect(){this.modelTypes=this.request.sensitivityType==="mV/V"?this.samplingMvv:this.samplingVDCorMA,this.onModelTypeSelect()}onModelTypeSelect(){let i=this.modelTypes.find(r=>r.Sensor===this.request.modelType);this.sampleTypes=i?.Samplings??[],this.sampleTypes.length&&(this.request.rate=this.sampleTypes[0])}calculate(){this.resolutioncalcform.valid&&(this.isLoading=!0,this.calculatorsService.calculateResolution(this.request).pipe(cr(()=>this.isLoading=!1)).subscribe({next:i=>{let r=[`${i.resolution} ${i.unit??""}`.trim(),i.note?`Note: ${i.note}
210`:null].filter(Boolean).join(" - ");this.resolution=r},error:()=>{this.snackBar.open("Failed to calculate resolution.","Close",{duration:3e3})}}))}};h(e,"\u0275fac",function(r){return new(r||e)}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-resolution-calc-v2"]],viewQuery:function(r,s){if(r&1&&li(D3,5),r&2){let o;ci(o=ui())&&(s.resolutioncalcform=o.first)}},decls:5,vars:1,consts:[["resolutionForm","ngForm"],[1,"resolution-calculator","custom-form"],[1,"calculator-description"],[1,"loader-overlay-light"],[1,"loadingpanel"],["mode","indeterminate",1,"spinner"],[1,"w-100per",3,"ngSubmit"],[1,"row"],[1,"col-md-4"],["appearance","outline"],["name","sensorType","required","",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["name","measurementUnit","required","",3,"ngModelChange","ngModel"],["matInput","","type","number","step","any","name","capacity","required","",3,"ngModelChange","ngModel"],["matInput","","type","number","step","any","name","sensorSensitivity","required","",3,"ngModelChange","ngModel"],["name","sensitivityType","required","",3,"ngModelChange","selectionChange","ngModel"],["name","modelType","required","",3,"ngModelChange","selectionChange","ngModel"],["name","rate","required","",3,"ngModelChange","ngModel"],[1,"row","mt-3"],[1,"col-12","d-flex","justify-content-end"],["type","submit",1,"primary-button","calculate-btn",3,"disabled"],[1,"mt-4"],[1,"result-value"]],template:function(r,s){r&1&&(p(0,"div",1)(1,"p",2),f(2," This calculator is used to approximate the smallest amount that can be read using Sensor Instruments. "),u(),M(3,L3,3,0,"div",3)(4,G3,55,9),u()),r&2&&(m(3),mt(s.isLoading?3:4))},dependencies:[es,Tt,za,Mt,Zr,Ri,Pt,Jr,Vn,Fi,Un,Ya,ss,Za],styles:[".resolution-calculator[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:96%}.calculate-btn[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.calculate-btn[_ngcontent-%COMP%]{width:auto}}.calculator-description[_ngcontent-%COMP%]{padding-bottom:1rem}.result-value[_ngcontent-%COMP%]{font-weight:600;color:var(--primary-color-600)}"]}));let n=e;return n})();var W3=["resolutioncalcform"];function q3(n,e){n&1&&k(0,"app-resolution-calc-v2")}function z3(n,e){if(n&1&&(p(0,"mat-option",36),f(1),u()),n&2){let t=e.$implicit;v("value",t),m(),R("",t," ")}}function j3(n,e){if(n&1&&(p(0,"mat-option",36),f(1),u()),n&2){let t=e.$implicit;v("value",t),m(),R("",t," ")}}function Q3(n,e){if(n&1&&(p(0,"mat-option",36),f(1),u()),n&2){let t=e.$implicit;v("value",t),m(),R("",t," ")}}function X3(n,e){if(n&1&&(p(0,"mat-option",36),f(1),u()),n&2){let t=e.$implicit;v("value",t.Sensor),m(),R("",t.Sensor," ")}}function K3(n,e){if(n&1&&(p(0,"mat-option",36),f(1),u()),n&2){let t=e.$implicit;v("value",t),m(),R("",t," ")}}function Y3(n,e){if(n&1&&(p(0,"div",37)(1,"div",38)(2,"span")(3,"strong"),f(4,"Resolution : "),u()(),p(5,"span",39),f(6),u(),k(7,"br"),u(),p(8,"div")(9,"span",40),f(10,"Calculator is provided for estimation purposes."),u()()()),n&2){let t=S(2);m(6),R(" ",t.Resolution," ")}}function Z3(n,e){if(n&1){let t=$();p(0,"div",15)(1,"div",16),f(2,"This calculator is used to approximate the smallest amount that can be read using Sensor Instruments."),u(),p(3,"form",17,1),N("ngSubmit",function(){A(t);let r=S();return I(r.Calculate())}),p(5,"div",18)(6,"div",19)(7,"mat-form-field",20)(8,"mat-label"),f(9,"Sensor Type "),u(),p(10,"mat-select",21),te("ngModelChange",function(r){A(t);let s=S();return ee(s.SensorType,r)||(s.SensorType=r),I(r)}),N("selectionChange",function(){A(t);let r=S();return I(r.onSensorTypeSelect())}),M(11,z3,2,2,"mat-option",22),u()()(),p(12,"div",23)(13,"mat-form-field",20)(14,"mat-label"),f(15,"Measurement Type "),u(),p(16,"mat-select",24),te("ngModelChange",function(r){A(t);let s=S();return ee(s.ResolutionModel.Measurementtype,r)||(s.ResolutionModel.Measurementtype=r),I(r)}),M(17,j3,2,2,"mat-option",22),u()()(),p(18,"div",23)(19,"div",25)(20,"mat-form-field",20)(21,"mat-label"),f(22,"Sensor Capacity"),u(),p(23,"input",26),te("ngModelChange",function(r){A(t);let s=S();return ee(s.ResolutionModel.Capacity,r)||(s.ResolutionModel.Capacity=r),I(r)}),u()(),p(24,"label"),f(25),u()()()(),p(26,"div",18)(27,"div",23)(28,"div",18)(29,"div",27)(30,"mat-form-field",20)(31,"mat-label"),f(32,"Sensor Rated Output "),u(),p(33,"input",28),te("ngModelChange",function(r){A(t);let s=S();return ee(s.ResolutionModel.SensorSensitivity,r)||(s.ResolutionModel.SensorSensitivity=r),I(r)}),u()()(),p(34,"div",29)(35,"mat-form-field",20)(36,"mat-select",30),te("ngModelChange",function(r){A(t);let s=S();return ee(s.ResolutionModel.SensitivityType,r)||(s.ResolutionModel.SensitivityType=r),I(r)}),N("selectionChange",function(){A(t);let r=S();return I(r.onSensorRatedSelect())}),M(37,Q3,2,2,"mat-option",22),u()()()()(),p(38,"div",23)(39,"mat-form-field",20)(40,"mat-label"),f(41,"Model Type "),u(),p(42,"mat-select",31),te("ngModelChange",function(r){A(t);let s=S();return ee(s.ResolutionModel.ModelType,r)||(s.ResolutionModel.ModelType=r),I(r)}),N("selectionChange",function(){A(t);let r=S();return I(r.onModelTypeSelect())}),M(43,X3,2,2,"mat-option",22),u()()(),p(44,"div",23)(45,"mat-form-field",20)(46,"mat-label"),f(47,"Sampling Rate (Samples Per Second) "),u(),p(48,"mat-select",32),te("ngModelChange",function(r){A(t);let s=S();return ee(s.ResolutionModel.Rate,r)||(s.ResolutionModel.Rate=r),I(r)}),M(49,K3,2,2,"mat-option",22),u()()()(),p(50,"div",18)(51,"div",33)(52,"button",34),f(53,"Calculate"),u()()()(),M(54,Y3,11,1,"div",35),u()}if(n&2){let t=S();m(10),J("ngModel",t.SensorType),m(),v("ngForOf",t.SensorTypes),m(5),J("ngModel",t.ResolutionModel.Measurementtype),m(),v("ngForOf",t.MeasurementTypes),m(6),J("ngModel",t.ResolutionModel.Capacity),m(2),F(t.ResolutionModel.Measurementtype),m(8),J("ngModel",t.ResolutionModel.SensorSensitivity),m(3),J("ngModel",t.ResolutionModel.SensitivityType),m(),v("ngForOf",t.SensorOutPut),m(5),J("ngModel",t.ResolutionModel.ModelType),m(),v("ngForOf",t.ModelTypes),m(5),J("ngModel",t.ResolutionModel.Rate),m(),v("ngForOf",t.SampleTypes),m(5),v("ngIf",t.Resolution)}}var OS=(()=>{let e=class e{constructor(){h(this,"FileHostUrl",Y.FileHostUrl);h(this,"ResolutionModel",new Sm);h(this,"Resolution");h(this,"SensorType");h(this,"ngUnsubscribe",new ke);h(this,"MeasurementTypes",[]);h(this,"SensorTypes",["Load","Pressure","Torque","Length","Temperature","Angle"]);h(this,"SensorOutPut",["mV/V","VDC","mA"]);
210h(this,"UnitsByType",[{SensorType:"Load",Values:["lb","oz","kg","dyne","N","ton","ton (metric)","g","KN","kip"]},{SensorType:"Pressure",Values:["ft_h20","in_h20","psig","atm","kPa","bar","MPa","mm Hg (torr)","kg/cm2","Pa"]},{SensorType:"Torque",Values:["kg-m","ft-lb","g-cm","N-m","N-mm","in-oz","in-lb","kg-cm","N-cm","g-mm"]},{SensorType:"Length",Values:["m","km","cm","mm","yard","mile","ft","in","micrometer","nm"]},{SensorType:"Temperature",Values:["Fahrenheit","Celsius","Kelvin"]},{SensorType:"Angle",Values:["degree","radian"]}]);h(this,"SamplingMvv",{MVV:[{Sensor:"IDA100",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]},{Sensor:"IHH500",Samplings:[5,10,25,30,50,60,100,200,400,600,800,960,1200,1600,2400,4800]},{Sensor:"IHH505",Samplings:[2.5,5,10,16.6,20,50,60,100,400,1200,2400,4800]},{Sensor:"IPM650",Samplings:[5,10,25,30,50,60,100,200,400,600,800,960,1200,1600,2400,4800]},{Sensor:"USB215",Samplings:[5,10,15,20,25,30,50,60,100,150,200,300]},{Sensor:"USB220",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]},{Sensor:"USB410",Samplings:[2.5,10,20,25,30,50,60,80,100,150,200]},{Sensor:"USB520",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]},{Sensor:"USB225 Pro",Samplings:[2.5,5,10,16.6,20,50,60,100,400,1200,2400,4800]},{Sensor:"USB225 Pro Elite",Samplings:[2.5,5,10,16.6,20,50,60,100,400,1200,2400,4800,7200,14400,19200,38400]},{Sensor:"QIA128",Samplings:[4,20,50,100,200,500,850,1300]}]});h(this,"SamplingVDCorMA",{VDCorMA:[{Sensor:"IHH500",Samplings:[5,10,25,30,50,60,100,200,400,600,800,960,1200,1600,2400,4800]},{Sensor:"IHH505",Samplings:[2.5,5,10,16.6,20,50,60,100,400,1200,2400,4800]},{Sensor:"IPM650",Samplings:[5,10,25,30,50,60,100,200,400,600,800,960,1200,1600,2400,4800]},{Sensor:"USB320",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]},{Sensor:"USB520",Samplings:[5,10,15,20,25,30,50,60,100,300,600,960,1200,1600,2400,4800]}]});h(this,"ModelTypes",[]);h(this,"SampleTypes",[]);h(this,"resolutioncalcform");h(this,"snackbar");h(this,"supportService",Se(qn));h(this,"seoClientService",Se($n));h(this,"meta",Se(sn));h(this,"_snackBar",Se(Hi));h(this,"featureFlagsService",Se(an));h(this,"useRumiApiFF",this.featureFlagsService.IsEnabled(Vt.RumiApiEnabled))}ngOnInit(){this.ResolutionModel.SensitivityType="mV/V",this.ResolutionModel.Capacity="",this.ResolutionModel.SensorSensitivity="",this.ResolutionModel.Output="",this.ResolutionModel.Input="",this.ResolutionModel.Bits="",this.ResolutionModel.Direction=0,this.onSensorRatedSelect(),this.setupSeo()}setupSeo(){this.seoClientService.createLinkForCanonicalURL(),this.seoClientService.updateTitle("Resolution Calculator"),this.meta.updateTag({name:"description",content:"Resolution Calculator"}),this.meta.updateTag({name:"keywords",content:"Resolution Calculator"})}onSensorTypeSelect(){this.MeasurementTypes=this.UnitsByType.filter(i=>i.SensorType==this.SensorType)[0].Values,this.ResolutionModel.Measurementtype=this.MeasurementTypes[0]}onSensorRatedSelect(){this.ResolutionModel.SensitivityType=="mV/V"?this.ModelTypes=this.SamplingMvv.MVV:this.ModelTypes=this.SamplingVDCorMA.VDCorMA,this.onModelTypeSelect()}onModelTypeSelect(){this.ModelTypes.filter(i=>i.Sensor==this.ResolutionModel.ModelType).length>0&&(this.SampleTypes=this.ModelTypes.filter(i=>i.Sensor==this.ResolutionModel.ModelType)[0].Samplings,this.ResolutionModel.Rate=this.SampleTypes[0])}Calculate(){this.resolutioncalcform.valid?this.supportService.calculateResolution(this.ResolutionModel).subscribe(i=>{this.Resolution=i}):(this.snackbar=new ur(this._snackBar),this.snackbar.openSnackBar("Please select all the required fields.","close"))}onPrint(){window.print()}};h(e,"\u0275fac",function(r){return new(r||e)}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-resolution-calc"]],viewQuery:function(r,s){if(r&1&&li(W3,5),r&2){let o;ci(o=ui())&&(s.resolutioncalcform=o.first)}},decls:20,vars:2,consts:[["legacyResolution",""],["resolutioncalcform","ngForm"],[1,"main-panel"],[1,"container"],[1,"catseriesstoremainpanelold"],[1,"row","Storeheaderpanel"],[1,"col-md-12","col-12","Storetextv1"],[1,"storetitlepl1"],["routerLink","/support",1,"productTechnicalmb1"],["id","arrowte1",1,"material-icons","productTechnicalmb1"],[1,"activestoretitlepl1"],[1,"h1Tag","productTechnicalmb1"],[4,"ngIf","ngIfElse"],[1,"row","reutilityplm1"],[1,"Advancedcopyt1"],[1,"Resolution"],[1,"calculatorty1"],["name","resolutioncalcform","novalidate","",1,"example-form",3,"ngSubmit"],[1,"row"],[1,"col-sm-4","col-12"],["appearance","outline"],["placeholder","Sensor Type","name","sensortype","required","",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"col-12","col-sm-4"],["placeholder","Measurement Type","name","measurementtype","required","",3,"ngModelChange","ngModel"],[1,"sensor_capacity"],["matInput","","placeholder","Sensor Capacity","name","sensorCapacity","required","","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46",3,"ngModelChange","ngModel"],[1,"col-sm-6","col-12","p-0"],["type","text","matInput","","placeholder","SensorSensitivity","name","SensorSensitivity","required","","onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 46",3,"ngModelChange","ngModel"],[1,"col-sm-6","col-12","p-0",2,"padding-left","15px !important"],["placeholder","Measurement Type","name","sensitivitytype",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Model Type","name","modeltype","required","",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Model Type","name","rate","required","",3,"ngModelChange","ngModel"],[1,"col-6"],["type","submit"],["class","row px-3",4,"ngIf"],[3,"value"],[1,"row","px-3"],[1,"row","para"],[1,"providedpl1"],[1,"Calculatorplop"]],template:function(r,s){if(r&1&&(p(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"span",7)(6,"a",8),f(7,"Support "),u()(),p(8,"span",7)(9,"i",9),f(10,"keyboard_arrow_right "),u()(),p(11,"span",10)(12,"h1",11),f(13,"Resolution Calculator"),u()()()(),M(14,q3,1,0,"app-resolution-calc-v2",12)(15,Z3,55,14,"ng-template",null,0,We),p(17,"div",13)(18,"div",14),f(19,"Copyright \xA9 1998-2023 FUTEK Advanced Sensor Technology, Inc. All rights reserved. The above calculators can not be copied or reproduced without written permission from FUTEK Advanced Sensor Technology, Inc "),u()()()()()),r&2){let o=He(16);m(14),v("ngIf",s.useRumiApiFF)("ngIfElse",o)}},dependencies:[es,Tt,Mt,Zr,Ri,Pt,Jr,Vn,Fi,Un,Et,nt,Ya,Za,it,kS],styles:[".storetitlepl1[_ngcontent-%COMP%]:hover{color:#ca0000}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.sensor_capacity[_ngcontent-%COMP%]{width:100%;text-align:right;font-size:9pt;padding:0}.reutilityplm1[_ngcontent-%COMP%]{width:100%;font-size:10pt;margin-top:30px;padding-left:16px}.para[_ngcontent-%COMP%]{font-size:10pt;font-family:Nunito Sans,sans-serif;width:100%}
210.calculatorty1[_ngcontent-%COMP%]{border-top:1px dotted #ccc;font-size:10pt;font-family:Nunito Sans,sans-serif;padding:17px 0}button[_ngcontent-%COMP%]{border:1px solid #1379cb;background-color:#1379cb;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod\\2026IwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-webkit-linear-gradient(bottom,#0b49b7 0%,#1babe1 100%);color:#fff!important;margin-top:15px;margin-bottom:15px;border-radius:0;font-weight:400;font-size:12pt;font-family:Nunito Sans,sans-serif;cursor:pointer}.providedpl1[_ngcontent-%COMP%]{color:#ca0000;padding:0 9px}.clearpl1[_ngcontent-%COMP%]{height:80px}.Calculatorplop[_ngcontent-%COMP%]{font-size:10pt;font-family:Nunito Sans,sans-serif}  .mdc-text-field--outlined{--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-outline-color: #e0e0e0 !important;--mdc-outlined-text-field-focus-outline-width: 1px !important;--mdc-outlined-text-field-focus-outline-color: #e0e0e0 !important;--mdc-outlined-text-field-hover-outline-color: #949494 !important}.col-1[_ngcontent-%COMP%], .col-2[_ngcontent-%COMP%], .col-3[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%], .col-5[_ngcontent-%COMP%], .col-6[_ngcontent-%COMP%], .col-7[_ngcontent-%COMP%], .col-8[_ngcontent-%COMP%], .col-9[_ngcontent-%COMP%], .col-10[_ngcontent-%COMP%], .col-11[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%], .col[_ngcontent-%COMP%], .col-auto[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-sm[_ngcontent-%COMP%], .col-sm-auto[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-md[_ngcontent-%COMP%], .col-md-auto[_ngcontent-%COMP%], .col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-lg[_ngcontent-%COMP%], .col-lg-auto[_ngcontent-%COMP%], .col-xl-1[_ngcontent-%COMP%], .col-xl-2[_ngcontent-%COMP%], .col-xl-3[_ngcontent-%COMP%], .col-xl-4[_ngcontent-%COMP%], .col-xl-5[_ngcontent-%COMP%], .col-xl-6[_ngcontent-%COMP%], .col-xl-7[_ngcontent-%COMP%], .col-xl-8[_ngcontent-%COMP%], .col-xl-9[_ngcontent-%COMP%], .col-xl-10[_ngcontent-%COMP%], .col-xl-11[_ngcontent-%COMP%], .col-xl-12[_ngcontent-%COMP%], .col-xl[_ngcontent-%COMP%], .col-xl-auto[_ngcontent-%COMP%]{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px;float:left}"]}));let n=e;return n})(),Sm=class{constructor(){h(this,"Capacity","");h(this,"CalcType","");h(this,"SensitivityType","");h(this,"ModelType","");h(this,"Rate","");h(this,"SensorSensitivity","");h(this,"Measurementtype","");h(this,"Output","");h(this,"Input","");h(this,"Bits","");h(this,"Direction",0)}};function J3(n,e){if(n&1){let t=$();p(0,"div")(1,"mat-form-field",8)(2,"mat-label"),f(3),u(),p(4,"input",9),N("input",function(r){let s=A(t).$implicit,o=S(2);return I(o.onInputChange(s.index,r.target.value))}),u()()()}if(n&2){let t=e.$implicit;m(3),F(t.unitName),m(),v("value",t.value)}}function eO(n,e){if(n&1&&(p(0,"div",6),M(1,J3,5,2,"div",7),u()),n&2){let t=S();m(),v("ngForOf",t.fields)("ngForTrackBy",t.trackByIndex)}}function tO(n,e){n&1&&(p(0,"div",10)(1,"div",11),k(2,"mat-progress-spinner",12),u()())}var DS=(()=>{let e=class e{constructor(){h(this,"category");h(this,"isLoading",!0);h(this,"fields",[]);h(this,"activeFieldIndex",null);h(this,"ngUnsubscribe",new ke);h(this,"route",Se(on));h(this,"calculatorsService",Se(ls))}ngOnInit(){this.route.paramMap.pipe(je(i=>i.get("category")),Qe(i=>!!i),Rt(()=>this.isLoading=!0),ot(i=>this.calculatorsService.getUnitConversionUnits(i).pipe(cr(()=>this.isLoading=!1))),Re(this.ngUnsubscribe)).subscribe({next:i=>{this.category=i.category??"",this.fields=(i.units??[]).map((r,s)=>({unitName:r??"",value:"",index:s})),this.activeFieldIndex=null},error:i=>console.error(i)})}onInputChange(i,r){if(this.activeFieldIndex=i,!r||r.trim()===""){this.fields=this.fields.map(s=>_e(P({},s),{value:""}));return}this.fields[i].value=r}convert(){let i=this.fields[this.activeFieldIndex].value;if(this.activeFieldIndex===null||!i)return;this.isLoading=!0;let r={category:this.category,activeFieldIndex:this.activeFieldIndex,inputValue:i};this.calculatorsService.convertUnits(r).pipe(cr(()=>this.isLoading=!1),Re(this.ngUnsubscribe)).subscribe({next:s=>{this.fields=(s.convertedValues??[]).map((o,a)=>({unitName:o.unitName??"",value:o.value??"",index:a}))},error:s=>console.error(s)})}trackByIndex(i){return i}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}};h(e,"\u0275fac",function(r){return new(r||e)}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-unit-conversion-v2"]],decls:8,vars:3,consts:[[1,"m-2","m-sm-3"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","gap-2","mb-3"],[1,"h6","title","text-capitalize"],[1,"primary-button","small-button","convert-btn",3,"click"],["class","conversion-grid custom-form",4,"ngIf"],["class","loader-overlay-light",4,"ngIf"],[1,"conversion-grid","custom-form"],[4,"ngFor","ngForOf","ngForTrackBy"],["appearance","outline"],["matInput","","type","number","step","any",3,"input","value"],[1,"loader-overlay-light"],[1,"loadingpanel"],["mode","indeterminate",1,"spinner"]],template:function(r,s){r&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),f(3),u(),p(4,"button",3),N("click",function(){return s.convert()}),f(5," Convert "),u()(),M(6,eO,2,2,"div",4)(7,tO,3,0,"div",5),u()),r&2&&(m(3),R(" ",s.category," "),m(3),v("ngIf",!s.isLoading),m(),v("ngIf",s.isLoading))},dependencies:[Vn,Fi,Un,Et,nt,ss],styles:[".conversion-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 16px}@media (max-width: 576px){.conversion-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.primary-button[_ngcontent-%COMP%]{width:100%;height:44px}}.custom-red-spinner[_ngcontent-%COMP%]     circle{stroke:var(--primary-color)}.loader-overlay-light[_ngcontent-%COMP%]{background:#ff000014;background:color-mix(in srgb,var(--primary-color) 15%,transparent)}.loadingpanel[_ngcontent-%COMP%]{background:var(--surface-color);border:1px solid color-mix(in srgb,var(--primary-color) 25%,transparent);box-shadow:0 6px 20px color-mix(in srgb,var(--primary-color) 20%,black)}.mat-mdc-form-field[_ngcontent-%COMP%]{display:inline-block;position:relative;text-align:left;width:100%}"]}));let n=e;return n})();var iO=()=>["/unitconversion","angle"],rO=()=>["/unitconversion","area"],sO=()=>["/unitconversion","data"],oO=()=>["/unitconversion","density"],aO=()=>["/unitconversion","energy"],lO=()=>["/unitconversion","flowmass"],cO=()=>["/unitconversion","flowvol"],uO=()=>["/unitconversion","length"],pO=()=>["/unitconversion","load"],dO=()=>["/unitconversion","magnetics"],hO=()=>["/unitconversion","power"],mO=()=>["/unitconversion","pressure"],fO=()=>["/unitconversion","speed"],gO=()=>["/unitconversion","temperature"],_O=()=>["/unitconversion","time"],vO=()=>["/unitconversion","torque"],SO=()=>["/unitconversion","volume"];function xO(n,e){n&1&&k(0,"app-unit-conversion-v2")}function CO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",31),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField1.Item3,r)||(s.UnitDetails.ConversionField1.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()()()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField1.Item3),m(2),F(t.UnitDetails.ConversionField1.Item2)}}function bO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",33),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField2.Item3,r)||(s.UnitDetails.ConversionField2.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField2.Item3),m(2),F(t.UnitDetails.ConversionField2.Item2)}}function wO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",34),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField3.Item3,r)||(s.UnitDetails.ConversionField3.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField3.Item3),m(2),R(" ",t.UnitDetails.ConversionField3.Item2," ")}}function yO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",35),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField4.Item3,r)||(s.UnitDetails.ConversionField4.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField4.Item3),m(2),R(" ",t.UnitDetails.ConversionField4.Item2," ")}}function EO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",36),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField5.Item3,r)||(s.UnitDetails.ConversionField5.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField5.Item3),m(2),R(" ",t.UnitDetails.ConversionField5.Item2," ")}}function TO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",37),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField6.Item3,r)||(s.UnitDetails.ConversionField6.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField6.Item3),m(2),R(" ",t.UnitDetails.ConversionField6.Item2," ")}}function MO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",38),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField7.Item3,r)||(s.UnitDetails.ConversionField7.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField7.Item3),m(2),R(" ",t.UnitDetails.ConversionField7.Item2," ")}}function PO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",39),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField8.Item3,r)||(s.UnitDetails.ConversionField8.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField8.Item3),m(2),R(" ",t.UnitDetails.ConversionField8.Item2," ")}}function AO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",40),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField9.Item3,r)||(s.UnitDetails.ConversionField9.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField9.Item3),m(2),R(" ",t.UnitDetails.ConversionField9.Item2," ")}}function IO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",41),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField10.Item3,r)||(s.UnitDetails.ConversionField10.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField10.Item3),m(2),R(" ",t.UnitDetails.ConversionField10.Item2," ")}}function kO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",42),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField11.Item3,r)||(s.UnitDetails.ConversionField11.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField11.Item3),m(2),R(" ",t.UnitDetails.ConversionField11.Item2," ")}}function OO(n,e){if(n&1){let t=$();p(0,"div")(1,"div",29)(2,"div",30)(3,"input",43),te("ngModelChange",function(r){A(t);let s=S(2);return ee(s.UnitDetails.ConversionField12.Item3,r)||(s.UnitDetails.ConversionField12.Item3=r),I(r)}),N("keypress",function(r){A(t);let s=S(2);return I(s.onKeyPress(r))}),u()(),p(4,"div",32),f(5),u()(),k(6,"br"),u()}if(n&2){let t=S(2);m(3),J("ngModel",t.UnitDetails.ConversionField12.Item3),m(2),R(" ",t.UnitDetails.ConversionField12.Item2," ")}}function DO(n,e){if(n&1){let t=$();p(0,"div",22)(1,"input",23),N("click",function(){A(t);let r=S();return I(r.calculate())}
210),u()(),p(2,"table",24)(3,"tbody")(4,"tr")(5,"td"),M(6,CO,6,2,"div",25),u(),p(7,"td"),M(8,bO,7,2,"div",25),u()(),p(9,"tr")(10,"td"),M(11,wO,7,2,"div",25),u(),p(12,"td"),M(13,yO,7,2,"div",25),u()(),p(14,"tr")(15,"td"),M(16,EO,7,2,"div",25),u(),p(17,"td"),M(18,TO,7,2,"div",25),u()(),p(19,"tr")(20,"td"),M(21,MO,7,2,"div",25),u(),p(22,"td"),M(23,PO,7,2,"div",25),u()(),p(24,"tr")(25,"td"),M(26,AO,7,2,"div",25),u(),p(27,"td"),M(28,IO,7,2,"div",25),u()(),p(29,"tr")(30,"td"),M(31,kO,7,2,"div",25),u(),p(32,"td"),M(33,OO,7,2,"div",25),u()()()(),p(34,"div",26)(35,"div",27)(36,"em"),f(37,"This utility is provided for convenience only.\xA0 Results should be double checked for accuracy."),u(),k(38,"br")(39,"br"),f(40," Please note that every effort has been made to ensure the accuracy of the conversions presented above. However, FUTEK Advanced Sensor Technology, Inc. assumes no liability for damages, either actual or consequential, resulting from the use of this conversion table. Users are invited to make use of this conversion tool at their own risk. Critical calculations and conversion should be verified independently. Conversions factors have been verified to the extent possible using recognized reference sources such as: "),u(),p(41,"ol",28)(42,"li"),f(43,"Handbook of Chemistry and Physics, 80th Edition, 2000, CRC Press LLC, New York, "),u(),p(44,"li"),f(45,"Machinery\u2019s Handbook, 27th Edition, 2004, Industrial Press Inc., New York, "),u(),p(46,"li"),f(47,"CRC Standard Mathematical Tables, 15th Edition, 1999, Chemical Rubber Co. Cleveland, Ohio, and used "),u(),p(48,"li"),f(49,"National Institute of Standards and Technology (NIST) reference conversion standards at: http://physics.nist.gov/cuu/Reference/unitconversions.html "),u(),p(50,"li"),f(51,"Other online references as necessary. "),u()()()}if(n&2){let t=S();m(6),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField1&&t.UnitDetails.ConversionField1.Item1),m(2),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField2&&t.UnitDetails.ConversionField2.Item1),m(3),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField3&&t.UnitDetails.ConversionField3.Item1),m(2),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField4&&t.UnitDetails.ConversionField4.Item1),m(3),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField5&&t.UnitDetails.ConversionField5.Item1),m(2),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField6&&t.UnitDetails.ConversionField6.Item1),m(3),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField7&&t.UnitDetails.ConversionField7.Item1),m(2),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField8&&t.UnitDetails.ConversionField8.Item1),m(3),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField9&&t.UnitDetails.ConversionField9.Item1),m(2),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField10&&t.UnitDetails.ConversionField10.Item1),m(3),v("ngIf",t.UnitDetails&&t.UnitDetails.ConversionField11&&t.UnitDetails.ConversionField11.Item1),m(2),v("ngIf",t.UnitDetails&&t.UnitDetails&&t.UnitDetails.ConversionField12&&t.UnitDetails.ConversionField12.Item1)}}function NO(n,e){n&1&&(p(0,"div",26)(1,"div",27)(2,"em"),f(3,"This utility is provided for convenience only.\xA0 Results should be double checked for accuracy."),u(),k(4,"br")(5,"br"),f(6," Please note that every effort has been made to ensure the accuracy of the conversions presented above. However, FUTEK Advanced Sensor Technology, Inc. assumes no liability for damages, either actual or consequential, resulting from the use of this conversion table. Users are invited to make use of this conversion tool at their own risk. Critical calculations and conversion should be verified independently. Conversions factors have been verified to the extent possible using recognized reference sources such as: "),u(),p(7,"ol",28)(8,"li"),f(9,"Handbook of Chemistry and Physics, 80th Edition, 2000, CRC Press LLC, New York, "),u(),p(10,"li"),f(11,"Machinery\u2019s Handbook, 27th Edition, 2004, Industrial Press Inc., New York, "),u(),p(12,"li"),f(13,"CRC Standard Mathematical Tables, 15th Edition, 1999, Chemical Rubber Co. Cleveland, Ohio, and used "),u(),p(14,"li"),f(15,"National Institute of Standards and Technology (NIST) reference conversion standards at: http://physics.nist.gov/cuu/Reference/unitconversions.html "),u(),p(16,"li"),f(17,"Other online references as necessary. "),u()()())}var NS=(()=>{let e=class e{constructor(){h(this,"FileHostUrl",Y.FileHostUrl);h(this,"category");h(this,"UnitDetails");h(this,"ngUnsubscribe",new ke);h(this,"supportService",Se(qn));h(this,"renderer",Se(Ua));h(this,"meta",Se(sn));h(this,"seoClientService",Se($n));h(this,"route",Se(on));h(this,"dailogue",Se(Ja));h(this,"loaderService",Se(ln));h(this,"featureFlagsService",Se(an));h(this,"useRumiApiFF",this.featureFlagsService.IsEnabled(Vt.RumiApiEnabled))}addJsToElement(i){let r=document.createElement("script");return r.type="application/javascript",r.src=i,this.renderer.appendChild(document.body,r),r}ngOnInit(){this.seoClientService.createLinkForCanonicalURL(),this.seoClientService.updateTitle("Unit Conversion"),this.meta.updateTag({name:"description",content:"Unit Conversion"}),this.meta.updateTag({name:"keywords",content:"Unit Conversion"}),!this.useRumiApiFF&&this.route.paramMap.pipe(je(i=>i.get("category")),Qe(i=>!!i),ot(i=>(this.category=i,this.supportService.getUnitsForConversion(i)))).subscribe({next:i=>this.UnitDetails=i,error:i=>console.error("Error fetching unit details:",i)})}onKeyPress(i){this.UnitDetails.LastActiveText=i.target.id}calculate(){this.UnitDetails.ActiveCategory=this.category,this.supportService.calculateUnitsForConversion(this.UnitDetails).subscribe({next:i=>this.UnitDetails=i,error:i=>console.error("Fallback conversion failed",i)})}onPrint(){window.print()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete(),this.loaderService.hide()}};h(e,"\u0275fac",function(r){return new(r||e)}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-unit-conversion"]],decls:76,vars:37,consts:[["legacy",""],[1,"main-panel"],[1,"container"],[1,"catseriesstoremainpanelold"],[1,"row","Storeheaderpanel"],[1,"col-md-12","col-12","Storetextv1"],[1,"storetitlepl1"],["routerLink","/support",1,"productTechnicalmb1"],["id","arrowte1",1,"material-icons","productTechnicalmb1"],[1,"activestoretitlepl1"],[1,"h1Tag","productTechnicalmb1"],[1,"row"],[1,"col-md-3"],[1,"leftpanelConversion1"],["id","units"],["routerLinkActive","active"],[3,"routerLink"],[1,"col-md-9"],["id","divBoxs","runat","server",1,"mainrightpanelConversion1"],[4,"ngIf","ngIfElse"],["class","row utilityplm1",4,"ngIf"],[1,"Clearunit"],["id","grayTray",1,"Convertbtnm1"],["type","button","value","Convert",1,"ConvTextbtnm1",3,"click"],["id","CalTable",1,"Conversiontablenew1"],[4,"ngIf"],[1,"row","utilityplm1"],[1,"common_box_desc"],[1,"Handbooktexb"],[1,"r","ConvBox","convpanelm1"],[1,"UnitDetailspanel1"],["id","ConversionField1","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],[1,"ConvLabel"],["id","ConversionField2","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField3","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField4","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField5","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField6","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField7","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField8","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField9","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField10","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField11","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"],["id","ConversionField12","type","number",1,"ConvTextpanelm1",3,"ngModelChange","keypress","ngModel"]],template:function(r,s){if(r&1&&(p(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"span",6)(6,"a",7),f(7,"Support "),u()(),p(8,"span",6)(9,"i",8),f(10,"keyboard_arrow_right "),u()(),p(11,"span",9)(12,"h1",10),f(13,"Unit Conversion"),u()()()(),p(14,"div",11)(15,"div",12)(16,"div",13)(17,"ul",14)(18,"li",15)(19,"a",16),f(20,"Angle"),u()(),p(21,"li",15)(22,"a",16),f(23,"Area"),u()(),p(24,"li",15)(25,"a",16),f(26,"Data"),u()(),p(27,"li",15)(28,"a",16),f(29,"Density"),u()(),p(30,"li",15)(31,"a",16),f(32,"Energy"),u()(),p(33,"li",15)(34,"a",16),f(35,"Flow (mass)"),u()(),p(36,"li",15)(37,"a",16),f(38,"Flow (volume)"),u()(),p(39,"li",15)(40,"a",16),f(41,"Length"),u()(),p(42,"li",15)(43,"a",16),f(44,"Load"),u()(),p(45,"li",15)(46,"a",16),f(47,"Magnetics"),u()(),p(48,"li",15)(49,"a",16),f(50,"Power"),u()(),p(51,"li",15)(52,"a",16),f(53,"Pressure"),u()(),p(54,"li",15)(55,"a",16),f(56,"Speed"),u()(),p(57,"li",15)(58,"a",16),f(59,"Temperature"),u()(),p(60,"li",15)(61,"a",16),f(62,"Time"),u()(),p(63,"li",15)(64,"a",16),f(65,"Torque"),u()(),p(66,"li",15)(67,"a",16),f(68,"Volume"),u()()()()(),p(69,"div",17)(70,"div",18),M(71,xO,1,0,"app-unit-conversion-v2",19)(72,DO,52,12,"ng-template",null,0,We),u()()(),M(74,NO,18,0,"div",20),k(75,"div",21),u(
210)()()),r&2){let o=He(73);m(19),v("routerLink",tt(20,iO)),m(3),v("routerLink",tt(21,rO)),m(3),v("routerLink",tt(22,sO)),m(3),v("routerLink",tt(23,oO)),m(3),v("routerLink",tt(24,aO)),m(3),v("routerLink",tt(25,lO)),m(3),v("routerLink",tt(26,cO)),m(3),v("routerLink",tt(27,uO)),m(3),v("routerLink",tt(28,pO)),m(3),v("routerLink",tt(29,dO)),m(3),v("routerLink",tt(30,hO)),m(3),v("routerLink",tt(31,mO)),m(3),v("routerLink",tt(32,fO)),m(3),v("routerLink",tt(33,gO)),m(3),v("routerLink",tt(34,_O)),m(3),v("routerLink",tt(35,vO)),m(3),v("routerLink",tt(36,SO)),m(4),v("ngIf",s.useRumiApiFF)("ngIfElse",o),m(3),v("ngIf",s.useRumiApiFF)}},dependencies:[Tt,za,Mt,Pt,nt,it,kf,DS],styles:['#units[_ngcontent-%COMP%]{font-family:Open Sans,Helvetica,Arial,sans-serif!important;font-size:10pt;list-style:none;margin:0;padding:0;background-color:#333;background-image:-moz-linear-gradient(right,#111 0%,#333 13.75%,#333 100%);background-image:-o-linear-gradient(right,#111 0%,#333 13.75%,#333 100%);background-image:-webkit-linear-gradient(right,#111 0%,#333 13.75%,#333 100%)}#units[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], #units[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, #units[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{text-decoration:none}#units[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border-bottom:1px solid black;height:36px}#units[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-bottom:none}#units[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;padding:5px 10px;color:#fff}#units[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, li.active[_ngcontent-%COMP%]{font-weight:var(--font-weight-semibold);color:var(--text-inverse);background-color:var(--bg-brand-secondary);box-shadow:inset 0 0 4px #00000026;border-radius:4px}#units[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:700;color:#000}#units[_ngcontent-%COMP%]   li.active[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after, #units[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover:after{float:right;content:"\\25ba"}.Conversiontablenew1[_ngcontent-%COMP%]{width:100%;padding-left:5px;padding-top:5px;margin-top:15px}.utilityplm1[_ngcontent-%COMP%]{width:100%;font-size:10pt;margin-top:30px}.Handbooktexb[_ngcontent-%COMP%]{margin-top:10px}.ConvLabel[_ngcontent-%COMP%]{float:left;border-top-right-radius:3px;padding:4px 11px 32px 15px;color:#2b2b2b;background-color:#dedede;height:24px;font-size:11pt;border-left:1px #ccc solid;border-right:1px #ccc solid;width:40%;text-align:center}.ConvText[_ngcontent-%COMP%]{margin-top:6px;padding:0 0 0 5px;font-size:16px;width:169px!important}.Clearunit[_ngcontent-%COMP%]{height:60px;width:100%}.ConvTextbtnm1[_ngcontent-%COMP%]{border:1px solid #1379cb;background-color:#1379cb;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod\\2026IwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-webkit-linear-gradient(bottom,#0b49b7 0,#1babe1 100%);color:#fff;border-radius:0;font-weight:400;font-size:10pt;padding:5px 18px;cursor:pointer}.common_box_desc[_ngcontent-%COMP%]{text-align:justify;line-height:1.6}.common_box_desc[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{display:block;margin-bottom:8px}.UnitDetailspanel1[_ngcontent-%COMP%]{float:left;width:55%}.ConvTextpanelm1[_ngcontent-%COMP%]{border:1px solid #ccc;float:left;height:36px;width:100%;font-size:12px;padding-left:10px}.mainrightpanelConversion1[_ngcontent-%COMP%]{width:100%}.Convertbtnm1[_ngcontent-%COMP%]{text-align:right;width:98%}.convpanelm1[_ngcontent-%COMP%]{width:100%;float:left}@media (min-width: 320px) and (max-width: 680px){.UnitDetailspanel1[_ngcontent-%COMP%]{float:left;width:35%}.Convertbtnm1[_ngcontent-%COMP%]{margin-top:15px}.ConvLabel[_ngcontent-%COMP%]{width:58%!important}.Handbooktexb[_ngcontent-%COMP%]{margin-top:10px;width:100%;word-break:break-all}div.Storetextv1[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], span.fullcodestoretitlepl1[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], span.storetitlepl1[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .productstoresubheadertext[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .productstoretitlepl1[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], span.catstoretitlepl1[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{top:1px}.ConvLabel[_ngcontent-%COMP%]{float:left;border-top-right-radius:3px;padding:4px 11px 32px 15px;color:#2b2b2b;background-color:#dedede;height:24px;font-size:9pt;border-left:1px #ccc solid;border-right:1px #ccc solid;width:40%;text-align:center;line-height:13px}}@media all and (device-width: 1024px) and (device-height: 768px) and (orientation:landscape){.ConvLabel[_ngcontent-%COMP%]{float:left;border-top-right-radius:3px;padding:4px 11px 32px 15px;color:#2b2b2b;background-color:#dedede;height:24px;font-size:9pt;border-left:1px #ccc solid;border-right:1px #ccc solid;width:40%;text-align:center;line-height:14px}}@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait){.ConvLabel[_ngcontent-%COMP%]{float:left;border-top-right-radius:3px;padding:4px 11px 32px 15px;color:#2b2b2b;background-color:#dedede;height:24px;font-size:9pt;border-left:1px #ccc solid;border-right:1px #ccc solid;width:40%;text-align:center;line-height:14px}}.catseriesstoremainpanelold[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col-md-9[_ngcontent-%COMP%]{padding:0!important}']}));let n=e;return n})();var Mu=class{constructor(e,t,i,r,s,o,a,l){h(this,"PageTitle");h(this,"PageSubTitle");h(this,"IntroText");h(this,"TermsTitle");h(this,"TermsDetails");h(this,"SupportContact");h(this,"AdditionalTerms");h(this,"ContinueButtonLink");this.PageTitle=e,this.PageSubTitle=t,this.IntroText=i,this.TermsTitle=r,this.TermsDetails=s,this.SupportContact=o,this.AdditionalTerms=a,this.ContinueButtonLink=l}};
210var xm=(()=>{let e=class e{constructor(i,r,s,o,a,l){h(this,"_seoClientService");h(this,"meta");h(this,"router");h(this,"gtmService");h(this,"_supportService");h(this,"sanitizer");h(this,"data");this._seoClientService=i,this.meta=r,this.router=s,this.gtmService=o,this._supportService=a,this.sanitizer=l}ngOnInit(){this._seoClientService.createLinkForCanonicalURL(),localStorage.removeItem("systemdata"),this.meta.updateTag({name:"description",content:"U.S. manufacturer of sensors measuring load, torque, force, multi axis or pressure with compatible instruments, calibration service, and measurement software."}),this.meta.updateTag({name:"keywords",content:"Load Cell, Torque Sensor, Multi Axis Sensors, Force Sensor, Pressure Sensor, Custom Sensor, measurement software, Load Sensor, Calibration, U.S. Manufacturer, Made in USA"}),this._supportService.getRecalibrationTerms().subscribe({next:i=>{i&&(this.data=new Mu(i.PageTitle,i.PageSubTitle,this.sanitizeHtml(i.IntroText),i.TermsTitle,this.sanitizeHtml(i.TermsDetails),this.sanitizeHtml(i.SupportContact),this.sanitizeHtml(i.AdditionalTerms),i.ContinueButtonLink))},error:i=>{console.error("Failed to load via GraphQL",i)}})}continueClick(){let i={event:"recalibration",eventCategory:"recalibration",eventAction:"continue_button_click",eventLabel:this.router.url,userId:localStorage.getItem("userId")??""};this.gtmService.pushTag(i)}sanitizeHtml(i){let r=new DOMParser().parseFromString(i,"text/html").documentElement.textContent;return this.sanitizer.bypassSecurityTrustHtml(r||i)}};h(e,"\u0275fac",function(r){return new(r||e)(U($n),U(sn),U(ft),U(Wn),U(qn),U(mf))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-recalibrationterms"]],decls:16,vars:9,consts:[[1,"main-panel"],[1,"panel-wrapper"],[1,"h5","storetextmob1"],[1,"Calibrationsrammainpanel"],[1,"Calibrationstextb1"],[1,"providedsubmittaltextb1",3,"innerHTML"],[1,"TermsCalibrationstextb1"],[1,"questionstextb2",3,"innerHTML"],[1,"questionstextb2"],[1,"whatinterestedtextb1",3,"innerHTML"],[1,"supportAgreebtnpanel","custom-form"],["type","submit",1,"primary-button",3,"click","value","routerLink"]],template:function(r,s){r&1&&(p(0,"div",0)(1,"div",1)(2,"h1",2),f(3),u(),p(4,"div",3)(5,"div",4),f(6),u(),k(7,"div",5),p(8,"div",6),f(9),u(),k(10,"div",5)(11,"div",7),p(12,"div",8),k(13,"p",9),u(),p(14,"div",10)(15,"input",11),N("click",function(){return s.continueClick()}),u()()()()()),r&2&&(m(3),F(s.data.PageTitle),m(3),F(s.data.PageSubTitle),m(),v("innerHTML",s.data.IntroText,$e),m(2),F(s.data.TermsTitle),m(),v("innerHTML",s.data.TermsDetails,$e),m(),v("innerHTML",s.data.SupportContact,$e),m(2),v("innerHTML",s.data.AdditionalTerms,$e),m(2),v("value",s.data.ContinueButtonLink.Text||"I Agree")("routerLink","/"+s.data.ContinueButtonLink.RouteSegments||"recalibration"))},dependencies:[it],styles:[".panel-wrapper[_ngcontent-%COMP%]   .supportAgreebtnpanel[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}a[_ngcontent-%COMP%]{color:#cf102d!important}.Calibrationstextb1[_ngcontent-%COMP%]{color:#ca0000;font-size:24px;font-family:Nunito Sans,sans-serif;margin-bottom:20px}.TermsCalibrationstextb1[_ngcontent-%COMP%]{color:#ca0000;font-size:24px;font-family:Nunito Sans,sans-serif;margin-top:20px;margin-bottom:15px}.providedsubmittaltextb1[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;color:#707070;font-size:14px}.supportAgreebtnpanel[_ngcontent-%COMP%]{width:100%;text-align:right;border-top:1px dotted #ccc;padding-top:16px;margin-bottom:75px}.Calibrationsrammainpanel[_ngcontent-%COMP%]{background:#fff;font-family:Nunito Sans,sans-serif;margin-top:10px;font-size:11pt;overflow:auto;overflow-x:hidden;padding-top:12px}.questionstextb2[_ngcontent-%COMP%]{margin-bottom:30px;color:#707070;font-size:14px}.Termsretermsv2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:40px 0}@media (min-width: 320px) and (max-width: 680px){.Calibrationsrammainpanel[_ngcontent-%COMP%]{margin-top:0}}"]}));let n=e;return n})();var LO=[{path:"",loadChildren:()=>import("./chunk-OKBNSPXS.js").then(n=>n.HomeModule)},{path:"home",loadChildren:()=>import("./chunk-OKBNSPXS.js").then(n=>n.HomeModule)},{path:"configure",loadChildren:()=>import("./chunk-SH6VGGX2.js").then(n=>n.ConfigurationModule)},{path:"accountregistration",loadChildren:()=>import("./chunk-UUVWMTNB.js").then(n=>n.AccountRegistrationModule)},{path:"cart",loadChildren:()=>import("./chunk-2N7NZSDQ.js").then(n=>n.CartModule)},{path:"",loadChildren:()=>import("./chunk-NAFUXDVG.js").then(n=>n.PagesModule)},{path:"invoicestatemnet/:id",component:l0}
210,{path:"eventpromodetails/:id",component:PS},{path:"fatigue-test",component:yS},{path:"store",loadChildren:()=>import("./chunk-TDCQMWPK.js").then(n=>n.StoreModule)},{path:"support",loadChildren:()=>import("./chunk-ANLJ5V5K.js").then(n=>n.SupportModule)},{path:"dashboard",loadChildren:()=>import("./chunk-ENMSCW7E.js").then(n=>n.AccountModule),canActivate:Of([Gn])},{path:"rma",loadChildren:()=>import("./chunk-O6BX73IL.js").then(n=>n.RmaModule)},{path:"about/contact",loadChildren:()=>import("./chunk-VK57Y2IG.js").then(n=>n.ContactModule)},{path:"support/recalibrationterms",component:xm},{path:"recalibrationterms",component:xm},{path:"recalibration",component:u0},{path:"recal-config/:PackageId",component:c0},{path:"recalcart",loadChildren:()=>import("./chunk-GWPJOMM3.js").then(n=>n.RecalcartModule)},{path:"recalcheckout",loadChildren:()=>import("./chunk-2ANXHQ5X.js").then(n=>n.RecalibrationcheckoutModule)},{path:"revisedquotecheckout",loadChildren:()=>import("./chunk-SDPRWT3C.js").then(n=>n.ReviseQuoteCheckoutModule)},{path:"quotationcheckout",loadChildren:()=>import("./chunk-GN7IPDLX.js").then(n=>n.QuotationModule)},{path:"",loadChildren:()=>import("./chunk-FPYQZYI4.js").then(n=>n.SensitSoftwareModule)},{path:"applications",loadChildren:()=>import("./chunk-UHNIJZIF.js").then(n=>n.ApplicationModule)},{path:"checkout",loadChildren:()=>import("./chunk-MPGCE732.js").then(n=>n.StandardCheckoutModule)},{path:"revise-quote-order",loadChildren:()=>import("./chunk-23RJPTOQ.js").then(n=>n.ReviseQuoteOrderModule)},{path:"search/:searchstring",component:TS},{path:"",loadChildren:()=>import("./chunk-5JKQ3D4V.js").then(n=>n.AuthModule)},{path:"unitconversion/:category",component:NS},{path:"bolttorque/:mode",component:IS},{path:"resolutioncalculator",component:OS},{path:"quotation",loadChildren:()=>import("./chunk-OUBGSR5V.js").then(n=>n.QuoteAutomationModule)},{path:"news",component:Zf},{path:"news",loadChildren:()=>import("./chunk-5XCNWO2G.js").then(n=>n.NewsModule)},{path:"quotationsearch/:quotenumber",component:MS},{path:"updatequotecart",component:AS},{path:"terms-and-conditions",redirectTo:"support/terms-and-conditions"},{path:"TermsAndConditions",redirectTo:"support/terms-and-conditions"},{path:"about-us",component:p0},{path:":pagetype",component:Uf},{path:"**",redirectTo:"/404",pathMatch:"full"}],LS=(()=>{let e=class e{};h(e,"\u0275fac",function(r){return new(r||e)}),h(e,"\u0275mod",Fn({type:e})),h(e,"\u0275inj",Rn({imports:[Uu.forRoot(LO,{useHash:!1,initialNavigation:"enabledBlocking"}),Uu]}));let n=e;return n})();var BS=(()=>{let e=class e{constructor(i){h(this,"dialog");this.dialog=i}openDownloadModal(){this.dialog.open(C0,{width:"500px",disableClose:!0})}};h(e,"\u0275fac",function(r){return new(r||e)(ne(Ja))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();var RS=(()=>{let e=class e{constructor(i){h(this,"http");this.http=i}checkRedirect(i){return this.http.get(`${Y.OptimizelyCMSBaseUrl}api/redirect?path=${encodeURIComponent(i)}`).pipe(je(r=>r.redirectFound?r.to:null),Nm(()=>Bt(null)))}};h(e,"\u0275fac",function(r){return new(r||e)(ne(Bi))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();var Pu=class{constructor(){h(this,"Name");h(this,"Url");h(this,"RouteSegments");h(this,"ListsOfLinks");h(this,"Type");h(this,"IsOpen")}static Map(e){return{Name:e.Name,RouteSegments:e?.Link?.ContentLink?.Expanded?.RouteSegments,Url:e?.Link?.Href,ListsOfLinks:e.ListsOfLinks.map(t=>_0.Map(t.ContentLink.Expanded)),Type:el.MenuDropdownBlockType,IsOpen:!1}}};var Au=class{constructor(){h(this,"Name");h(this,"Description");h(this,"BackgroundColor");h(this,"StartDate");h(this,"EndDate")}static Map(e){return{Name:e.Name,Description:e.Description,BackgroundColor:e.BackgroundColor,StartDate:e.StartDate,EndDate:e.EndDate}}};var Oa=class n{constructor(){h(this,"Name");h(this,"LogoUrl");h(this,"LeftMenu");h(this,"RightMenu");h(this,"CartLink");h(this,"MyAccountLink");h(this,"SignInLink");h(this,"CreateAccountLink");h(this,"Notifications")}static Query(e){return`
211  HeaderBlock(locale: ${e}, orderBy: { _modified: DESC }) {
212    item {
213      Name
214      Logo {
215        Url
216      }
217      LeftMenu {
218        ...Menu
219      }
220      RightMenu {
221        ...Menu
222      }
223      CartLink {
224        Expanded {
225        	...LinkIconBlock  
226        }
227      }
228      MyAccountLink{
229        Expanded {
230        	...LinkIconBlock  
231        }
232      }
233      SignInLink{
234        Expanded {
235        	...LinkIconBlock  
236        }
237      }
238      CreateAccountLink{
239        Expanded {
240        	...LinkIconBlock  
241        }
242      }
243      Notifications {
244        ...NotificationFragment
245      }
246    }
247  }      
248`}static get MenuFragments(){return`
249
250fragment LinkIconBlock on LinkIconBlock {
251  Name
252  Link {
253    Href
254    ContentLink {
255      Expanded {
256        ... on ISitePage {
257          RouteSegments
258        }
259      }
260    }
261  }
262  Image {
263    Url
264  }
265}    
266
267fragment Menu on ContentAreaItemModelSearch {
268  ContentLink {
269    Expanded {
270      Name
271      __typename
272      ... LinkIconBlock
273      ... on MenuDropdownBlock {
274        Link {
275          Href
276          ContentLink {
277            Expanded {
278              ... on ISitePage {
279                RouteSegments
280              }
281            }
282          }
283        }
284        ListsOfLinks {
285          ContentLink {
286            Expanded {
287              ... on LinkItemsListBlock {
288                Title
289                Links {
290                  Title
291                  Href
292                  ContentLink {
293                    Expanded {
294                      ... on ISitePage {
295                        MenuIcon {
296                          Url
297                        }
298                        RouteSegments
299                      }
300
301                      ... on IContent{
302                        Name
303                      }
304                    }
305                  }
306                }
307                Image {
308                  Url
309                }
310              }
311            }
312          }
313        }
314      }
315    }
316  }
317}
318
319fragment NotificationFragment on ContentAreaItemModelSearch {
320  ContentLink {
321    Expanded {
322      ... on NotificationBlock {
323        Name
324        Description
325        BackgroundColor
326        StartDate
327        EndDate
328      }
329    }
330  }
331}
332`}static GetHeaderBlocksBody(e){return{query:`query HeaderBlock {
333                ${n.Query(e)}
334            }
335            ${n.MenuFragments}
336            `}}static get HeaderMapper(){return je(e=>{let t=e.data.HeaderBlock.item;return{Name:t.Name,LogoUrl:Bf(t.Logo.Url),LeftMenu:t.LeftMenu.map(i=>n.MapMenuItem(i)),RightMenu:t.RightMenu.map(i=>n.MapMenuItem(i)),CartLink:as.Map(t.CartLink.Expanded),MyAccountLink:as.Map(t.MyAccountLink.Expanded),SignInLink:as.Map(t.SignInLink.Expanded),CreateAccountLink:as.Map(t.CreateAccountLink.Expanded),Notifications:t.Notifications.map(i=>Au.Map(i.ContentLink.Expanded)).filter(i=>{let{StartDate:r,EndDate:s}=i,o=new Date,a=r?new Date(r):void 0,l=s?new Date(s):void 0;return!a&&!l?!0:!a&&l?o<=l:a&&!l?o>=a:a&&l?o>=a&&o<=l:!1})}})}static MapMenuItem(e){let t=e.ContentLink.Expanded;if(t.__typename=="MenuDropdownBlock")return Pu.Map(t);if(t.__typename=="LinkIconBlock")return as.Map(t)}};var FS=(()=>{let e=class e{constructor(i){h(this,"http");h(this,"isHeaderLoginToggle",new ke);this.http=i}headerLoginclickedService(i){this.isHeaderLoginToggle.next(i)}GetHeaderBlock(i){return this.http.post(Y.GraphQLURL,Oa.GetHeaderBlocksBody(i)).pipe(Oa.HeaderMapper)}};h(e,"\u0275fac",function(r){return new(r||e)(ne(Bi))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();var HO=["container"],VO=["dropdown"],UO=n=>({"background-color":n,"padding-right":"3rem"});function GO(n,e){if(n&1){let t=$();p(0,"div",29),k(1,"div",30),fe(2,"safeHtml"),p(3,"button",31),N("click",function(){let r=A(t).$implicit,s=S(3);return I(s.removeNotification(r))}),k(4,"i",32),u()()}if(n&2){let t=e.$implicit,i=e.index;v("id","notification-"+i)("ngStyle",Pn(5,UO,t.BackgroundColor)),m(),v("innerHTML",xe(2,3,t.Description),$e)}}function $O(n,e){if(n&1&&(p(0,"div",27),M(1,GO,5,7,"div",28),u()),n&2){let t=S(2);m(),v("ngForOf",t.header.Notifications)}}function WO(n,e){if(n&1&&(p(0,"a",39)(1,"span"),f(2),u()()),n&2){let t=S(2).$implicit;v("routerLink",t.RouteSegments),m(2),F(t.Name)}}function qO(n,e){if(n&1&&(p(0,"a",40)(1,"span"),f(2),u()()),n&2){let t=S(2).$implicit;v("href",t.Url,X),m(2),F(t.Name)}}function zO(n,e){if(n&1&&(p(0,"strong",45),f(1),u()),n&2){let t=S().$implicit;m(),F(t.Title)}}function jO(n,e){if(n&1&&k(0,"img",49),n&2){let t=S().$implicit;v("src",t.ImageUrl,X)("alt",t.Name)}}function QO(n,e){if(n&1&&(p(0,"a",46),M(1,jO,1,2,"img",47),p(2,"span",48),f(3),u()()),n&2){let t=e.$implicit;v("routerLink",t.RouteSegments),m(),v("ngIf",t.ImageUrl),m(2),F(t.Name)}}function XO(n,e){if(n&1&&(p(0,"div",41)(1,"div",50),k(2,"img",51),u()()),n&2){let t=S().$implicit,i=S(2).$implicit;m(2),v("src",t.ImageUrl,X)("alt",i.Name)}}function KO(n,e){if(n&1&&(nn(0),p(1,"div",41),M(2,zO,2,1,"strong",42)(3,QO,4,3,"a",43),u(),M(4,XO,3,2,"div",44),rn()),n&2){let t=e.$implicit;m(2),v("ngIf",t.Title),m(),v("ngForOf",t.Links),m(),v("ngIf",t.ImageUrl)}}function YO(n,e){if(n&1&&(nn(0),M(1,WO,3,2,"a",35)(2,qO,3,2,"ng-template",null,1,We),p(4,"div",36)(5,"div",37),M(6,KO,5,3,"ng-container",38),u()(),rn()),n&2){let t=He(3),i=S().$implicit;m(),v("ngIf",i.RouteSegments)("ngIfElse",t),m(5),v("ngForOf",i.ListsOfLinks)}}function ZO(n,e){if(n&1&&k(0,"img",51),n&2){let t=S(3).$implicit;v("src",t.ImageUrl,X)("alt",t.Name)}}function JO(n,e){if(n&1&&(p(0,"a",39),M(1,ZO,1,2,"img",52),f(2),u()),n&2){let t=S(2).$implicit;v("routerLink",t.RouteSegments),m(),v("ngIf",t.ImageUrl),m(),R(" ",t.Name," ")}}function eD(n,e){if(n&1&&(p(0,"a",40)(1,"span"),f(2),u()()),n&2){let t=S(2).$implicit;v("href",t.Url,X),m(2),F(t.Name)}}function tD(n,e){if(n&1&&M(0,JO,3,3,"a",35)(1,eD,3,2,"ng-template",null,1,We),n&2){let t=He(2),i=S().$implicit;v("ngIf",i.RouteSegments)("ngIfElse",t)}}function nD(n,e){if(n&1&&(p(0,"div",33),M(1,YO,7,3,"ng-container",34)(2,tD,3,2,"ng-template",null,0,We),u()),n&2){let t=e.$implicit,i=He(3),r=S(2);m(),v("ngIf",t.Type===r.TypesNamesConstants.MenuDropdownBlockType)("ngIfElse",i)}}function iD(n,e){if(n&1&&(p(0,"a",39)(1,"span"),f(2),u()()),n&2){let t=S(2).$implicit;v("routerLink",t.RouteSegments),m(2),F(t.Name)}
336}function rD(n,e){if(n&1&&(p(0,"a",40)(1,"span"),f(2),u()()),n&2){let t=S(2).$implicit;v("href",t.Url,X),m(2),F(t.Name)}}function sD(n,e){if(n&1&&(p(0,"strong",45),f(1),u()),n&2){let t=S().$implicit;m(),F(t.Title)}}function oD(n,e){if(n&1&&(p(0,"a",54)(1,"span",55),f(2),u()()),n&2){let t=e.$implicit;v("routerLink",t.RouteSegments),m(2),F(t.Name)}}function aD(n,e){if(n&1&&(p(0,"div",41)(1,"div",50),k(2,"img",51),u()()),n&2){let t=S().$implicit,i=S(2).$implicit;m(2),v("src",t.ImageUrl,X)("alt",i.Name)}}function lD(n,e){if(n&1&&(nn(0),p(1,"div",41),M(2,sD,2,1,"strong",42)(3,oD,3,2,"a",53),u(),M(4,aD,3,2,"div",44),rn()),n&2){let t=e.$implicit;m(2),v("ngIf",t.Title),m(),v("ngForOf",t.Links),m(),v("ngIf",t.ImageUrl)}}function cD(n,e){if(n&1&&(nn(0),M(1,iD,3,2,"a",35)(2,rD,3,2,"ng-template",null,1,We),p(4,"div",36)(5,"div",37),M(6,lD,5,3,"ng-container",38),u()(),rn()),n&2){let t=He(3),i=S().$implicit;m(),v("ngIf",i.RouteSegments)("ngIfElse",t),m(5),v("ngForOf",i.ListsOfLinks)}}function uD(n,e){if(n&1&&k(0,"img",51),n&2){let t=S(3).$implicit;v("src",t.ImageUrl,X)("alt",t.Name)}}function pD(n,e){if(n&1&&(p(0,"a",57),M(1,uD,1,2,"img",52),f(2),u()),n&2){let t=S(2).$implicit;v("routerLink",t.RouteSegments),m(),v("ngIf",t.ImageUrl),m(),R(" ",t.Name," ")}}function dD(n,e){if(n&1&&k(0,"img",59),n&2){let t=S(3).$implicit;v("src",t.ImageUrl,X)("alt",t.Name)}}function hD(n,e){if(n&1&&(p(0,"a",40),M(1,dD,1,2,"img",58),f(2),u()),n&2){let t=S(2).$implicit;v("href",t.Url,X),m(),v("ngIf",t.ImageUrl),m(),R(" ",t.Name," ")}}function mD(n,e){if(n&1&&M(0,pD,3,3,"a",56)(1,hD,3,3,"ng-template",null,1,We),n&2){let t=He(2),i=S().$implicit;v("ngIf",i.RouteSegments)("ngIfElse",t)}}function fD(n,e){if(n&1&&(p(0,"div",33),M(1,cD,7,3,"ng-container",34)(2,mD,3,2,"ng-template",null,0,We),u()),n&2){let t=e.$implicit,i=He(3),r=S(2);m(),v("ngIf",t.Type===r.TypesNamesConstants.MenuDropdownBlockType)("ngIfElse",i)}}function gD(n,e){if(n&1&&k(0,"img",51),n&2){let t=S(3);v("src",t.header.CartLink==null?null:t.header.CartLink.ImageUrl,X)("alt",t.header.CartLink==null?null:t.header.CartLink.Name)}}function _D(n,e){if(n&1&&(p(0,"div",33)(1,"a",57),M(2,gD,1,2,"img",52),f(3),u()()),n&2){let t=S(2);m(),v("routerLink",t.header.CartLink==null?null:t.header.CartLink.RouteSegments),m(),v("ngIf",t.header.CartLink==null?null:t.header.CartLink.ImageUrl),m(),R(" ",t.header.CartLink==null?null:t.header.CartLink.Name," ")}}function vD(n,e){if(n&1&&k(0,"img",51),n&2){let t=S(3);v("src",t.header.MyAccountLink==null?null:t.header.MyAccountLink.ImageUrl,X)("alt",t.header.MyAccountLink==null?null:t.header.MyAccountLink.Name)}}function SD(n,e){if(n&1){let t=$();p(0,"div",33)(1,"span",60),f(2),u(),p(3,"div",61)(4,"a",57),M(5,vD,1,2,"img",52),f(6),u(),p(7,"span",62),f(8,"|"),u(),p(9,"span",63),N("click",function(){A(t);let r=S(2);return I(r.logout())}),f(10," Logout "),u()()()}if(n&2){let t=S(2);m(2),R("Hi ",t.FullName,""),m(2),v("routerLink",t.header.MyAccountLink==null?null:t.header.MyAccountLink.RouteSegments),m(),v("ngIf",t.header.MyAccountLink==null?null:t.header.MyAccountLink.ImageUrl),m(),R(" ",t.header.MyAccountLink==null?null:t.header.MyAccountLink.Name," ")}}function xD(n,e){if(n&1&&k(0,"img",51),n&2){let t=S(3);v("src",t.header.SignInLink==null?null:t.header.SignInLink.ImageUrl,X)("alt",t.header.SignInLink==null?null:t.header.SignInLink.Name)}}function CD(n,e){if(n&1&&(p(0,"div",33)(1,"a",57),M(2,xD,1,2,"img",52),f(3),u()()),n&2){let t=S(2);m(),v("routerLink",t.header.SignInLink==null?null:t.header.SignInLink.RouteSegments),m(),v("ngIf",t.header.SignInLink==null?null:t.header.SignInLink.ImageUrl),m(),R(" ",t.header.SignInLink==null?null:t.header.SignInLink.Name," ")}}function bD(n,e){if(n&1&&k(0,"img",51),n&2){let t=S(3);v("src",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.ImageUrl,X)("alt",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.Name)}}function wD(n,e){if(n&1&&(p(0,"div",33)(1,"a",57),M(2,bD,1,2,"img",52),f(3),u()()),n&2){let t=S(2);m(),v("routerLink",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.RouteSegments),m(),v("ngIf",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.ImageUrl),m(),R(" ",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.Name," ")}}function yD(n,e){if(n&1&&k(0,"img",59),n&2){let t=S(3);v("src",t.header.CartLink==null?null:t.header.CartLink.ImageUrl,X)("alt",t.header.CartLink==null?null:t.header.CartLink.Name)}}function ED(n,e){if(n&1&&(p(0,"div",64)(1,"a",65),M(2,yD,1,2,"img",58),u()()),n&2){let t=S(2);m(),v("routerLink",t.header.CartLink==null?null:t.header.CartLink.RouteSegments),m(),v("ngIf",t.header.CartLink==null?null:t.header.CartLink.ImageUrl)}}function TD(n,e){if(n&1&&k(0,"img",59),n&2){let t=S(3);v("src",t.header.MyAccountLink==null?null:t.header.MyAccountLink.ImageUrl,X)("alt",t.header.MyAccountLink==null?null:t.header.MyAccountLink.Name)}}function MD(n,e){if(n&1&&k(0,"img",51),n&2){let t=S(3);v("src",t.header.MyAccountLink==null?null:t.header.MyAccountLink.ImageUrl,X)("alt",t.header.MyAccountLink==null?null:t.header.MyAccountLink.Name)}}function PD(n,e){if(n&1){let t=$();p(0,"div",64)(1,"span",66),M(2,TD,1,2,"img",58),u(),p(3,"div",61)(4,"a",57),M(5,MD,1,2,"img",52),f(6),u(),p(7,"span",62),f(8,"|"),u(),p(9,"span",63),N("click",function(){A(t);let r=S(2);return I(r.logout())}),f(10," Logout "),u()()()}if(n&2){let t=S(2);m(2),v("ngIf",t.header.MyAccountLink==null?null:t.header.MyAccountLink.ImageUrl),m(2),v("routerLink",t.header.MyAccountLink==null?null:t.header.MyAccountLink.RouteSegments),m(),v("ngIf",t.header.MyAccountLink==null?null:t.header.MyAccountLink.ImageUrl),m(),R(" ",t.header.MyAccountLink==null?null:t.header.MyAccountLink.Name," ")}}function AD(n,e){if(n&1&&k(0,"img",59),n&2){let t=S(3);v("src",t.header.SignInLink==null?null:t.header.SignInLink.ImageUrl,X)("alt",t.header.SignInLink==null?null:t.header.SignInLink.Name)}}function ID(n,e){if(n&1&&(p(0,"div",64)(1,"a",65),M(2,AD,1,2,"img",58),u()()),n&2){let t=S(2);m(),v("routerLink",t.header.SignInLink==null?null:t.header.SignInLink.RouteSegments),m(),v("ngIf",t.header.SignInLink==null?null:t.header.SignInLink.ImageUrl)}}function kD(n,e){if(n&1&&k(0,"img",75),n&2){let t=S(4);v("src",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.ImageUrl,X)("alt",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.Name)}}function OD(n,e){if(n&1&&(p(0,"div",72)(1,"a",65),M(2,kD,1,2,"img",73),p(3,"span",74),f(4),u()()()),n&2){let t=S(3);m(),v("routerLink",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.RouteSegments),m(),v("ngIf",t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.ImageUrl),m(2),F(t.header.CreateAccountLink==null?null:t.header.CreateAccountLink.Name)}}function DD(n,e){if(n&1){let t=$();p(0,"div",72)(1,"a",78),N("click",function(){A(t);let r=S(5);return I(r.toggleMobileMenu())}
336),p(2,"span",79),f(3),u()(),p(4,"button",80),N("click",function(){A(t);let r=S(2).$implicit,s=S(3);return I(s.toggleSubmenu(r))}),k(5,"span",81),u()()}if(n&2){let t=S(2).$implicit;m(),v("routerLink",t.RouteSegments),m(2),R("",t.Name," "),m(2),v("ngClass",t.IsOpen?"arrow-icon arrow-up":"arrow-icon")}}function ND(n,e){if(n&1){let t=$();p(0,"div",72)(1,"a")(2,"span",79),f(3),u()(),p(4,"button",80),N("click",function(){A(t);let r=S(2).$implicit,s=S(3);return I(s.toggleSubmenu(r))}),k(5,"span",81),u()()}if(n&2){let t=S(2).$implicit;m(3),F(t.Name),m(2),v("ngClass",t.IsOpen?"arrow-icon arrow-up":"arrow-icon")}}function LD(n,e){if(n&1&&(p(0,"strong",87),f(1),u()),n&2){let t=S().$implicit;m(),F(t.Title)}}function BD(n,e){if(n&1&&k(0,"img",49),n&2){let t=S().$implicit;v("src",t.ImageUrl,X)("alt",t.Name)}}function RD(n,e){if(n&1){let t=$();p(0,"a",88),N("click",function(){A(t);let r=S(7);return I(r.toggleMobileMenu())}),M(1,BD,1,2,"img",47),p(2,"span",48),f(3),u()()}if(n&2){let t=e.$implicit;v("routerLink",t.RouteSegments),m(),v("ngIf",t.ImageUrl),m(2),F(t.Name)}}function FD(n,e){if(n&1&&(nn(0),p(1,"div",81),M(2,LD,2,1,"strong",84),p(3,"div",85),M(4,RD,4,3,"a",86),u()(),rn()),n&2){let t=e.$implicit;m(),v("ngClass",t.Title?"column-border-bottom":""),m(),v("ngIf",t.Title),m(2),v("ngForOf",t.Links)}}function HD(n,e){if(n&1&&(p(0,"div",82)(1,"div",83),M(2,FD,5,3,"ng-container",38),u()()),n&2){let t=S(2).$implicit;m(2),v("ngForOf",t.ListsOfLinks)}}function VD(n,e){if(n&1&&(nn(0),M(1,DD,6,3,"div",76)(2,ND,6,2,"ng-template",null,1,We)(4,HD,3,1,"div",77),rn()),n&2){let t=He(3),i=S().$implicit;m(),v("ngIf",i.RouteSegments)("ngIfElse",t),m(3),v("ngIf",i.IsOpen)}}function UD(n,e){if(n&1&&k(0,"img",51),n&2){let t=S(3).$implicit;v("src",t.ImageUrl,X)("alt",t.Name)}}function GD(n,e){if(n&1){let t=$();p(0,"a",90),N("click",function(){A(t);let r=S(5);return I(r.toggleMobileMenu())}),M(1,UD,1,2,"img",52),p(2,"span",79),f(3),u()()}if(n&2){let t=S(2).$implicit;v("routerLink",t.RouteSegments),m(),v("ngIf",t.ImageUrl),m(2),F(t.Name)}}function $D(n,e){if(n&1&&(p(0,"a",91)(1,"span",79),f(2),u()()),n&2){let t=S(2).$implicit;v("href",t.Url,X),m(2),F(t.Name)}}function WD(n,e){if(n&1&&M(0,GD,4,3,"a",89)(1,$D,3,2,"ng-template",null,3,We),n&2){let t=He(2),i=S().$implicit;v("ngIf",i.RouteSegments)("ngIfElse",t)}}function qD(n,e){if(n&1&&(p(0,"div"),M(1,VD,5,3,"ng-container",34)(2,WD,3,2,"ng-template",null,2,We),u()),n&2){let t=e.$implicit,i=He(3),r=S(3);m(),v("ngIf",(t==null?null:t.Type)===r.TypesNamesConstants.MenuDropdownBlockType)("ngIfElse",i)}}function zD(n,e){if(n&1){let t=$();p(0,"div",72)(1,"a",78),N("click",function(){A(t);let r=S(5);return I(r.toggleMobileMenu())}),p(2,"span",79),f(3),u()(),p(4,"button",80),N("click",function(){A(t);let r=S(2).$implicit,s=S(3);return I(s.toggleSubmenu(r))}),k(5,"span",81),u()()}if(n&2){let t=S(2).$implicit;m(),v("routerLink",t.RouteSegments),m(2),R("",t.Name," "),m(2),v("ngClass",t.IsOpen?"arrow-icon arrow-up":"arrow-icon")}}function jD(n,e){if(n&1){let t=$();p(0,"div",72)(1,"a")(2,"span",79),f(3),u()(),p(4,"button",80),N("click",function(){A(t);let r=S(2).$implicit,s=S(3);return I(s.toggleSubmenu(r))}),k(5,"span",81),u()()}if(n&2){let t=S(2).$implicit;m(3),F(t.Name),m(2),v("ngClass",t.IsOpen?"arrow-icon arrow-up":"arrow-icon")}}function QD(n,e){if(n&1&&(p(0,"strong",87),f(1),u()),n&2){let t=S().$implicit;m(),F(t.Title)}}function XD(n,e){if(n&1){let t=$();p(0,"a",94),N("click",function(){A(t);let r=S(7);return I(r.toggleMobileMenu())}),p(1,"span",95),f(2),u()()}if(n&2){let t=e.$implicit;v("routerLink",t.RouteSegments),m(2),F(t.Name)}}function KD(n,e){if(n&1&&(nn(0),p(1,"div",81),M(2,QD,2,1,"strong",84),p(3,"div",92),M(4,XD,3,2,"a",93),u()(),rn()),n&2){let t=e.$implicit;m(),v("ngClass",t.Title?"column-border-bottom":""),m(),v("ngIf",t.Title),m(2),v("ngForOf",t.Links)}}function YD(n,e){if(n&1&&(p(0,"div",82)(1,"div",83),M(2,KD,5,3,"ng-container",38),u()()),n&2){let t=S(2).$implicit;m(2),v("ngForOf",t.ListsOfLinks)}}function ZD(n,e){if(n&1&&(nn(0),M(1,zD,6,3,"div",76)(2,jD,6,2,"ng-template",null,1,We)(4,YD,3,1,"div",77),rn()),n&2){let t=He(3),i=S().$implicit;m(),v("ngIf",i.RouteSegments)("ngIfElse",t),m(3),v("ngIf",i.IsOpen)}}function JD(n,e){if(n&1){let t=$();p(0,"a",90),N("click",function(){A(t);let r=S(5);return I(r.toggleMobileMenu())}),p(1,"span",79),f(2),u()()}if(n&2){let t=S(2).$implicit;v("routerLink",t.RouteSegments),m(2),F(t.Name)}
336}function eN(n,e){if(n&1&&(p(0,"a",91)(1,"span",79),f(2),u()()),n&2){let t=S(2).$implicit;v("href",t.Url,X),m(2),F(t.Name)}}function tN(n,e){if(n&1&&M(0,JD,3,2,"a",89)(1,eN,3,2,"ng-template",null,3,We),n&2){let t=He(2),i=S().$implicit;v("ngIf",i.RouteSegments)("ngIfElse",t)}}function nN(n,e){if(n&1&&(p(0,"div"),M(1,ZD,5,3,"ng-container",34)(2,tN,3,2,"ng-template",null,2,We),u()),n&2){let t=e.$implicit,i=He(3),r=S(3);m(),v("ngIf",(t==null?null:t.Type)===r.TypesNamesConstants.MenuDropdownBlockType)("ngIfElse",i)}}function iN(n,e){if(n&1&&(p(0,"mat-sidenav-container",67)(1,"mat-sidenav",68)(2,"div",69),k(3,"input",70),p(4,"label",15),f(5,"Search..."),u()(),M(6,OD,5,3,"div",71)(7,qD,4,2,"div",38)(8,nN,4,2,"div",38),u()()),n&2){let t=S(2);m(3),v("formControl",t.searchDesktop),m(3),v("ngIf",!t.LoginSuccessfull),m(),v("ngForOf",t.header==null?null:t.header.LeftMenu),m(),v("ngForOf",t.header==null?null:t.header.RightMenu)}}function rN(n,e){if(n&1){let t=$();p(0,"nav",5),M(1,$O,2,1,"div",6),p(2,"mat-toolbar",7)(3,"div",8)(4,"a",9),k(5,"img",10),u(),M(6,nD,4,2,"div",11),u(),p(7,"div",12)(8,"div",13)(9,"input",14),te("ngModelChange",function(r){A(t);let s=S();return ee(s.searchString,r)||(s.searchString=r),I(r)}),N("keydown.enter",function(){A(t);let r=S();return I(r.ApplicationSearch())}),u(),p(10,"label",15),f(11,"Search"),u()(),M(12,fD,4,2,"div",11)(13,_D,4,3,"div",16)(14,SD,11,4,"div",16)(15,CD,4,3,"div",16)(16,wD,4,3,"div",16),u()(),p(17,"mat-toolbar",17)(18,"div",18)(19,"button",19),N("click",function(){A(t);let r=S();return I(r.toggleMobileMenu())}),p(20,"div",20),k(21,"span")(22,"span")(23,"span"),u()(),p(24,"a",9),k(25,"img",10),u()(),p(26,"div",21)(27,"div",22)(28,"input",23),te("ngModelChange",function(r){A(t);let s=S();return ee(s.searchString,r)||(s.searchString=r),I(r)}),N("keydown.enter",function(){A(t);let r=S();return I(r.ApplicationSearch())}),u(),p(29,"label",24),f(30,"Search"),u()(),M(31,ED,3,2,"div",25)(32,PD,11,4,"div",25)(33,ID,3,2,"div",25),u()(),M(34,iN,9,4,"mat-sidenav-container",26),u()}if(n&2){let t=S();m(),v("ngIf",t.header==null?null:t.header.Notifications),m(3),v("routerLink",t.BasePath),m(),v("src",t.header==null?null:t.header.LogoUrl,X),m(),v("ngForOf",t.header==null?null:t.header.LeftMenu),m(3),J("ngModel",t.searchString),m(3),v("ngForOf",t.header==null?null:t.header.RightMenu),m(),v("ngIf",t.header.CartLink),m(),v("ngIf",t.LoginSuccessfull),m(),v("ngIf",!t.LoginSuccessfull),m(),v("ngIf",!t.LoginSuccessfull),m(3),v("ngClass",t.isOpen()?"mobile-menu-btn":"mobile-menu-btn closed"),m(5),v("routerLink",t.BasePath),m(),v("src",t.header==null?null:t.header.LogoUrl,X),m(3),J("ngModel",t.searchString),m(3),v("ngIf",t.header.CartLink),m(),v("ngIf",t.LoginSuccessfull),m(),v("ngIf",!t.LoginSuccessfull),m(),v("ngIf",t.isOpen())}}var zr=function(n){return n.Visible="visible",n.Hidden="hidden",n}(zr||{});var VS=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d,_){h(this,"_headerService");h(this,"_contactService");h(this,"_homeService");h(this,"router");h(this,"_authGuard");h(this,"_accountService");h(this,"gtmService");h(this,"localization");h(this,"platformId");h(this,"searchDesktop",new qa(""));h(this,"isOpen",Lu(!1));h(this,"mainsearchToggle",!1);h(this,"FileHostUrl",Y.FileHostUrl);h(this,"Notification",{});h(this,"LoginSuccessfull",!1);h(this,"FullName","");h(this,"localRepresentativeExists","");h(this,"countryCode","");h(this,"isPriceRestrictedCountry","");h(this,"searchstring","");h(this,"searchshowall",!1);h(this,"mainsearchshowall",!1);h(this,"submainsearchshowall",!1);h(this,"userGroups");h(this,"intRepGroup",!1);h(this,"UserName","");h(this,"loginSuccessfull",!1);h(this,"loginclickviewp1",!1);h(this,"loginWhiteIcon",!0);h(this,"loginBlackIcon",!1);h(this,"countries",[]);h(this,"Cart","");h(this,"AccessCode");h(this,"packageCount",0);h(this,"packagesTotalAmount",0);h(this,"destroy$",new ke);h(this,"container");h(this,"dropdown");h(this,"secondarySearch");h(this,"isLoginToggle",!1);h(this,"states");h(this,"ChoosecountrySelected",!1);h(this,"repDetails");h(this,"isBtnLoading",!1);h(this,"popup",!1);h(this,"LocalizationEnabled",!1);h(this,"translationsLoaded",!1);h(this,"header");h(this,"TypesNamesConstants",el);h(this,"useRumiApiFF",!1);h(this,"featureFlagsService",Se(an));h(this,"representativesService",Se(s0));h(this,"searchString","");this._headerService=i,this._contactService=r,this._homeService=s,this.router=o,this._authGuard=a,this._accountService=l,this.gtmService=c,this.localization=d,this.platformId=_}ngOnInit(){this._authGuard.isLoggedIn.subscribe(i=>this.LoginSuccessfull=i),de(this.platformId)&&(setInterval(()=>{this.setMainPanelPadding()},1e3),document.addEventListener("click",this.offClickHandler.bind(this))),this.router.events.pipe(Qe(i=>i instanceof mo)).subscribe(i=>{this.hideLoginForm()}),this.setFeatureFlags(),this._headerService.GetHeaderBlock(this.CurrentLanguage).subscribe(i=>{this.header=i}),de(this.platformId)&&(this.LocalizationEnabled&&this.localization.load(["common.header","common.buttons"]).then(()=>{this.translationsLoaded=!0}),localStorage.getItem("firstName")||localStorage.removeItem("unitTypes"),this.getCountriesInfo(),localStorage.getItem("token")?(this.LoginSuccessfull=!0,this.LoginSuccessfull&&(this.FullName=localStorage.getItem("firstName"),this.FullName||this.logout())):this.LoginSuccessfull=!1,this.getCartData(),this.userGroups=JSON.parse(localStorage.getItem("userGroups")),this.userGroups!=null&&this.userGroups.length>0&&(this.intRepGroup=this.userGroups.filter(i=>i.Name.toLowerCase()==="intrep group").length>0),this.intRepGroup&&localStorage.setItem("isPriceRestrictedCountry","N"),this.initializeCountryAndRelatedSettings(),this._headerService.isHeaderLoginToggle.subscribe(i=>{if(!de(this.platformId))return"";setTimeout(()=>{this.isLoginToggle=i;let r=document.getElementById("loginMenu"),s=document.getElementById("loginText");r.setAttribute("style","background:#fece00;color:#000"),s.setAttribute("style","color:#000"),this.loginWhiteIcon=!1,this.loginBlackIcon=!0},100)}))}initializeCountryAndRelatedSettings(){this.countryCode=localStorage.getItem("countryCode"),this.countryCode?this.setUnitype():(this.useRumiApiFF?this.representativesService.getGeoDetection():this._homeService.getCountryCode("")).pipe(Re(this.destroy$)).subscribe({next:r=>{if(r.countryCode){this.countryCode=r.countryCode,this.setUnitype(),this.localRepresentativeExists=r.repName,this.isPriceRestrictedCountry=r.isPriceRestrictedCountry,localStorage.setItem("countryCode",this.countryCode);let s=r.stateOrProvince??r.StateOrProvince;localStorage.setItem("StateOrProvince",s),localStorage.setItem("localRepresentativeExits",this.localRepresentativeExists),this.intRepGroup||localStorage.setItem("isPriceRestrictedCountry",this.isPriceRestrictedCountry),this.Cho
336osecountrySelected=!1,this.getLocalRepData(this.countries)}else this.ChoosecountrySelected=!0},error:r=>{console.error("Error fetching geo detection data:",r),localStorage.removeItem("countryCode"),localStorage.removeItem("StateOrProvince"),localStorage.removeItem("localRepresentativeExits"),localStorage.removeItem("isPriceRestrictedCountry"),this.ChoosecountrySelected=!0}})}setMainPanelPadding(){let i=document.querySelector(".main-panel"),r=document.getElementsByClassName("notification-popup"),s=0;r.length>0&&Array.from(r).forEach(o=>{s+=o.getBoundingClientRect().height}),document.documentElement.style.setProperty("--notif-offset",`${s}px`),i&&(i.style.paddingTop=`${s}px`)}removeNotification(i){this.header.Notifications=this.header.Notifications.filter(r=>r.Name!==i.Name)}toggleMobileMenu(){this.isOpen.update(i=>!i)}toggleSubmenu(i){i.IsOpen=!i.IsOpen}hideLoginForm(){if(!de(this.platformId))return;this.loginclickviewp1=!1,this.isLoginToggle=!1;let i=document.getElementById("loginMenu"),r=document.getElementById("loginText");i&&i.setAttribute("style","background:#000;color:#fff"),r&&r.setAttribute("style","color:#fff"),this.loginWhiteIcon=!0,this.loginBlackIcon=!1}offClickHandler(i){this.container&&(this.container.nativeElement.contains(i.target)||(this.dropdown.nativeElement.style.display="none"))}ngOnDestroy(){this.isBtnLoading=!1,this.destroy$.next(!0),this.destroy$.unsubscribe()}logout(){this._accountService.logout().subscribe(i=>{this._authGuard.logout(),localStorage.removeItem("customerId"),localStorage.removeItem("userId"),localStorage.removeItem("popupValue"),localStorage.removeItem("setupTime"),sessionStorage.removeItem("popupValue")})}get CurrentLanguage(){return this.localization.CurrentLanguage}get BasePath(){return this.LocalizationEnabled?this.localization.CurrentLanguage:"/"}setFeatureFlags(){this.LocalizationEnabled=this.featureFlagsService.IsEnabled(Vt.LocalizationEnabled),this.useRumiApiFF=this.featureFlagsService.IsEnabled(Vt.RumiApiEnabled)}setUnitype(){localStorage.getItem("firstName")||(localStorage.getItem("unitTypes")===void 0||localStorage.getItem("unitTypes")===null)&&this.countryCode!==null&&this.countryCode!==void 0&&(["us","usa","lr","mm"].indexOf(this.countryCode.toLowerCase())>=0?localStorage.setItem("unitTypes","standard"):localStorage.setItem("unitTypes","metric"))}getLocalRepData(i){i.forEach(r=>{r.Key.CodeId.toLowerCase()==this.countryCode.toLowerCase()&&(this.repDetails=r.Values[0].ContactPersons)})}getCountriesInfo(){this._contactService.getRepGetCountriesInfo().subscribe(i=>{this.countries=i.Countries,this.countryCode&&this.getLocalRepData(this.countries),this.states=i.States})}getCartData(){sessionStorage.getItem("RevisedQuoteCart")?(this.AccessCode=sessionStorage.getItem("RevisedQuoteCart"),this.packageCount=Number(sessionStorage.getItem("packageLength")),this.packagesTotalAmount=Number(sessionStorage.getItem("packageTotal"))):(this.AccessCode=sessionStorage.getItem("AccessCode"),this.AccessCode?(this.packageCount=Number(sessionStorage.getItem("packageLength")),this.packagesTotalAmount=Number(sessionStorage.getItem("packageTotal"))):(this.packageCount=0,this.packagesTotalAmount=0))}Search(){if(this.searchstring!=""){this.submainsearchshowall=!1,this.mainsearchshowall=!1;let i=this.searchstring;this.searchstring="",this.secondarySearch=!1,this.mainsearchToggle=!1;let r={event:"header",eventCategory:"search",eventAction:i,eventLabel:this.router.url,userId:this.GetUserName()};this.gtmService.pushTag(r),this.router.navigate(["/search/"+i])}}GetUserName(){return localStorage.getItem("userId")??""}ApplicationSearch(){de(this.platformId)&&this.searchString.trim()&&this.router.navigate(["/","search",encodeURIComponent(this.searchString.trim())])}};h(e,"\u0275fac",function(r){return new(r||e)(U(FS),U(Rf),U(il),U(ft),U(Gn),U(Hf),U(Wn),U(pr),U(Ge))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-header"]],viewQuery:function(r,s){if(r&1&&(li(HO,5),li(VO,5)),r&2){let o;ci(o=ui())&&(s.container=o.first),ci(o=ui())&&(s.dropdown=o.first)}},features:[Ni([il])],decls:1,vars:1,consts:[["menuLink",""],["elseLink",""],["menuSimpleLink",""],["externalLink",""],["class","nav",4,"ngIf"],[1,"nav"],["class","notifications-area",4,"ngIf"],[1,"desktop-menu"],[1,"nav__desktop-menu"],[1,"nav__logo",3,"routerLink"],["alt","Logo",3,"src"],["class","nav__desktop-item",4,"ngFor","ngForOf"],[1,"nav__desktop-search-cart"],[1,"nav__desktop-item","search-input"],["type","text","placeholder","","id","searchDesktop","name","searchString",1,"text-l","text-color-tertiary",3,"ngModelChange","keydown.enter","ngModel"],["for","searchDesktop",1,"search-label","text-color-tertiary"],["class","nav__desktop-item",4,"ngIf"],[1,"mobile-menu"],[1,"nav__mobile-menu"],[3,"click","ngClass"],[1,"mobile-menu-icon"],[1,"nav__mobile-search-cart"],[1,"nav__mobile-link","search-input"],["type","text","placeholder","","id","searchMobile","name","searchString",1,"text-l","text-color-tertiary",3,"ngModelChange","keydown.enter","ngModel"],["for","searchMobile",1,"search-label","text-color-tertiary"],["class","nav__mobile-link",4,"ngIf"],["class","nav__mobile-menu-sidenav",4,"ngIf"],[1,"notifications-area"],["class","notification-popup",3,"id","ngStyle",4,"ngFor","ngForOf"],[1,"notification-popup",3,"id","ngStyle"],[3,"innerHTML"],[1,"close-btn",3,"click"],[1,"fa","fa-times"],[1,"nav__desktop-item"],[4,"ngIf","ngIfElse"],["class","nav__desktop-l
336ink text-l bold",3,"routerLink",4,"ngIf","ngIfElse"],[1,"nav__desktop-submenu"],[1,"nav__desktop-submenu-wrapper"],[4,"ngFor","ngForOf"],[1,"nav__desktop-link","text-l","bold",3,"routerLink"],[1,"nav__desktop-link","text-l","bold",3,"href"],[1,"nav__submenu-column"],["class","nav__submenu-column-title text-l text-color-tertiary",4,"ngIf"],["class","nav__desktop-submenu-link",3,"routerLink",4,"ngFor","ngForOf"],["class","nav__submenu-column",4,"ngIf"],[1,"nav__submenu-column-title","text-l","text-color-tertiary"],[1,"nav__desktop-submenu-link",3,"routerLink"],["class","icon",3,"src","alt",4,"ngIf"],[1,"text-m","link-text"],[1,"icon",3,"src","alt"],[1,"placeholder"],[3,"src","alt"],[3,"src","alt",4,"ngIf"],["class","nav__desktop-submenu-link no-icon",3,"routerLink",4,"ngFor","ngForOf"],[1,"nav__desktop-submenu-link","no-icon",3,"routerLink"],[1,"text-m","link-text","text-color-secondary"],["class","nav__desktop-link text-l bold text-color-secondary",3,"routerLink",4,"ngIf","ngIfElse"],[1,"nav__desktop-link","text-l","bold","text-color-secondary",3,"routerLink"],["class","nav__link-icon",3,"src","alt",4,"ngIf"],[1,"nav__link-icon",3,"src","alt"],[1,"text-l","bold","text-color-secondary"],[1,"nav__user"],[1,"mx-2"],[1,"text-l","bold","text-brand-primary",3,"click"],[1,"nav__mobile-link"],[3,"routerLink"],[1,"text-l","bold","text-color-secondary","p-2"],[1,"nav__mobile-menu-sidenav"],["opened",""],[1,"nav__mobile-menu-link","search-input"],["id","searchDesktop","type","text","placeholder"," ","value","",1,"text-l","text-color-tertiary",3,"formControl"],["class","nav__mobile-menu-link",4,"ngIf"],[1,"nav__mobile-menu-link"],["class","nav__mobile-login",3,"src","alt",4,"ngIf"],[1,"text-l","regular","text-color-tertiary"],[1,"nav__mobile-login",3,"src","alt"],["class","nav__mobile-menu-link",4,"ngIf","ngIfElse"],["class","nav__mobile-submenu",4,"ngIf"],[3,"click","routerLink"],[1,"h6","text-color-secondary"],[1,"button-submenu",3,"click"],[3,"ngClass"],[1,"nav__mobile-submenu"],[1,"nav__mobile-submenu-wrapper"],["class","nav__mobile-submenu-column-title text-color-tertiary",4,"ngIf"],[1,"nav__mobile-submenu-column"],["class","nav__mobile-submenu-link",3,"routerLink","click",4,"ngFor","ngForOf"],[1,"nav__mobile-submenu-column-title","text-color-tertiary"],[1,"nav__mobile-submenu-link",3,"click","routerLink"],["class","nav__mobile-menu-link",3,"routerLink","click",4,"ngIf","ngIfElse"],[1,"nav__mobile-menu-link",3,"click","routerLink"],[1,"nav__mobile-menu-link",3,"href"],[1,"nav__mobile-submenu-column-text"],["class","nav__mobile-submenu-link-text",3,"routerLink","click",4,"ngFor","ngForOf"],[1,"nav__mobile-submenu-link-text",3,"click","routerLink"],[1,"text-l","regular"]],template:function(r,s){r&1&&M(0,rN,35,18,"nav",4),r&2&&v("ngIf",s.header)},dependencies:[yf,Ef,Tt,Mt,Pt,Li,Et,nt,Yr,gf,d0,it,At],styles:['.nav[_ngcontent-%COMP%]{position:sticky;top:0;width:100%;height:5rem;z-index:9999999;background-color:var(--white-color)}.nav[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{max-width:18.75rem;width:100%;position:relative;height:auto}@media screen and (min-width: 1024px) and (max-width: 1200px){.nav[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{max-width:10rem;margin:0 1.125rem}}.nav[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(.mat-toolbar-row, .mat-toolbar-single-row)[_ngcontent-%COMP%]{flex-direction:row;white-space:nowrap!important;height:inherit;border:none;justify-content:space-between;--mat-toolbar-title-text-font: "Nunito Sans", sans-serif;--mat-toolbar-title-text-size: var(--text-l-font-size);--mat-toolbar-title-text-line-height: var(--text-l-line-height);--mat-toolbar-container-background-color: var(--white-color);--mat-toolbar-container-text-color: var(--text-secondary) }.nav[_ngcontent-%COMP%]   .desktop-menu[_ngcontent-%COMP%]{display:flex}.nav[_ngcontent-%COMP%]   .desktop-menu[_ngcontent-%COMP%]:is(.mat-toolbar-row, .mat-toolbar-single-row)[_ngcontent-%COMP%]{padding:0 1.25rem}@media screen and (max-width: 1024px){.nav[_ngcontent-%COMP%]   .desktop-menu[_ngcontent-%COMP%]{display:none}}.nav[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]{display:none}.nav[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]:is(.mat-toolbar-row, .mat-toolbar-single-row)[_ngcontent-%COMP%]{padding:.75rem 1rem}@media screen and (max-width: 1024px){.nav[_ngcontent-%COMP%]   .mobile-menu[_ngcontent-%COMP%]{display:flex}}.nav__logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:3rem;height:100%;width:3rem;display:flex;align-items:center;justify-content:center;margin-right:2rem}@media screen and (min-width: 1024px) and (max-width: 1100px){.nav__logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:1rem}}.nav__desktop-menu[_ngcontent-%COMP%], .nav__desktop-search-cart[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:100%}.nav__desktop-search-cart[_ngcontent-%COMP%]   .nav__desktop-submenu[_ngcontent-%COMP%]{left:-6rem}.nav__desktop-search-cart[_ngcontent-%COMP%]   .nav__desktop-submenu[_ngcontent-%COMP%]:before{left:7.5rem}.nav__desktop-search-cart[_ngcontent-%COMP%]   .nav__desktop-submenu[_ngcontent-%COMP%]   .nav__submenu-column[_ngcontent-%COMP%]{border-right:1px solid var(--div
336ider-default);padding-right:1rem;margin-right:1rem}.nav__desktop-search-cart[_ngcontent-%COMP%]   .nav__desktop-submenu[_ngcontent-%COMP%]   .nav__submenu-column[_ngcontent-%COMP%]:last-of-type{border:none;padding-right:0}.nav__desktop-item[_ngcontent-%COMP%]{position:relative;margin-right:2rem;display:flex;align-items:center;height:100%;cursor:pointer}.nav__desktop-item[_ngcontent-%COMP%]:last-of-type{margin-right:0}@media screen and (min-width: 1024px) and (max-width: 1300px){.nav__desktop-item[_ngcontent-%COMP%]{margin-right:1rem}}@media screen and (max-width: 1024px){.nav__desktop-item[_ngcontent-%COMP%]{margin-right:1.5rem}}.nav__desktop-item[_ngcontent-%COMP%]:has(.nav__desktop-submenu)   .nav__desktop-link[_ngcontent-%COMP%]:after{display:inline-block;width:.5rem;position:absolute;top:50%;right:-.75rem;transform:translateY(-50%)}.nav__desktop-item[_ngcontent-%COMP%]:has(.nav__desktop-submenu):hover   .nav__desktop-link[_ngcontent-%COMP%]:after{display:inline-block;width:.5rem;position:absolute;top:50%;right:-.75rem;transform:translateY(-50%)}.nav__desktop-item[_ngcontent-%COMP%]:has(.nav__desktop-submenu):hover   .nav__desktop-submenu[_ngcontent-%COMP%]{display:flex}.nav__desktop-item[_ngcontent-%COMP%]:has(.nav__user)   .text-brand-primary[_ngcontent-%COMP%]{color:var(--primary-color-500)}.nav__desktop-item[_ngcontent-%COMP%]:has(.nav__user):hover   .nav__user[_ngcontent-%COMP%]{display:flex;align-items:center}.search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-height:2.5rem;height:100%;padding:.5rem 1.25rem;font-weight:500;border:1px solid var(--border-hover);border-radius:3px;width:100%}@media screen and (min-width: 1024px) and (max-width: 1100px){.search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:.75rem;padding-right:.75rem}}.search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:placeholder-shown + .search-label[_ngcontent-%COMP%]{display:inline-block}.search-label[_ngcontent-%COMP%]{display:none;position:absolute;top:8px;left:2.88rem;line-height:1.38rem}@media screen and (min-width: 1024px) and (max-width: 1200px){.search-label[_ngcontent-%COMP%]{left:1.875rem}.search-label[_ngcontent-%COMP%]:before{left:-1.25rem}}.search-label[_ngcontent-%COMP%]:before{content:url(/assets/icons/search-alt.svg);display:inline-block;position:absolute;top:50%;left:-1.63rem;transform:translateY(-50%);width:.875rem;height:.9375rem}.nav__desktop-link[_ngcontent-%COMP%]{color:var(--text-secondary);display:flex;align-items:center;height:100%}.nav__link-icon[_ngcontent-%COMP%]{height:1.25rem;margin-right:.5rem}.nav__user[_ngcontent-%COMP%]{display:none;position:absolute;top:4rem;left:-7rem;z-index:10;background-color:var(--white-color);padding:1.25rem;border-radius:3px;white-space:initial;filter:drop-shadow(0px 0px 34px rgba(13,10,44,.08)) drop-shadow(0px 20px 26px rgba(13,10,44,.05))}.nav__user[_ngcontent-%COMP%]:before{content:url(/assets/icons/submenu.svg);display:inline-block;width:1.125rem;height:1.125rem;position:absolute;top:-1rem;left:9.5rem}.nav__user[_ngcontent-%COMP%]   .nav__desktop-link[_ngcontent-%COMP%]{white-space:nowrap}.nav__desktop-submenu[_ngcontent-%COMP%]{display:none;position:absolute;top:4rem;left:0;z-index:10;background-color:var(--white-color);padding:1.25rem;border-radius:3px;white-space:initial;filter:drop-shadow(0px 0px 34px rgba(13,10,44,.08)) drop-shadow(0px 20px 26px rgba(13,10,44,.05))}.nav__desktop-submenu[_ngcontent-%COMP%]:before{content:url(/assets/icons/submenu.svg);display:inline-block;width:1.125rem;height:1.125rem;position:absolute;top:-1rem;left:1.5rem}.nav__desktop-submenu[_ngcontent-%COMP%]   .nav__desktop-submenu-wrapper[_ngcontent-%COMP%]{display:flex;width:100%}.nav__desktop-submenu[_ngcontent-%COMP%]   .nav__desktop-submenu-column-title[_ngcontent-%COMP%]{margin-bottom:.75rem}.nav__desktop-submenu[_ngcontent-%COMP%]   .nav__desktop-submenu-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:.5rem .625rem;width:11.25rem;max-height:3.5rem;height:100%}.nav__desktop-submenu[_ngcontent-%COMP%]   .nav__desktop-submenu-link[_ngcontent-%COMP%]   .link-text[_ngcontent-%COMP%]{display:inline-block;width:8.25rem;color:var(--text-secondary);font-weight:500}.nav__desktop-submenu[_ngcontent-%COMP%]   .nav__desktop-submenu-link[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:.625rem;width:2rem;height:2rem}.nav__desktop-submenu[_ngcontent-%COMP%]   .nav__desktop-submenu-link.no-icon[_ngcontent-%COMP%]{justify-content:flex-start;padding:0;margin-bottom:.625rem;max-height:none;height:auto;width:auto}.nav__desktop-submenu[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:12.5rem;border-radius:3px}.nav__submenu-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-right:.5rem}.nav__submenu-column[_ngcontent-%COMP%]:last-of-type{margin-right:0}.nav__cart[_ngcontent-%COMP%], .nav__account[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.nav__mobile-menu[_ngcontent-%COMP%], .nav__mobile-search-cart[_ngcontent-%COMP%]{display:flex}.mobile-menu-btn[_ngcontent-%COMP%]   .mobile-menu-icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;border:1px solid var(--text-primary);width:1.25rem;height:1px;position:relative;opacity:1;transition:all .2s ease-in-out;transform-origin:center left}.mobile-menu-btn[_ngcontent-%COMP%]   .mobile-menu-icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){transform:rotate(45deg);top:-6px}.mobile-menu-btn[_ngcontent-%COMP%]   .mobile-menu-icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){opacity:0;top:0}.mobile-menu-btn[_ngcontent-%COMP%]   .mobile-menu-icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg);top:5px}.mobile-menu-btn.closed[_ngcontent-%COMP%]   .mobile-menu-icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){transform:rotate(0);top:-5px}.mobile-menu-btn.closed[_ngcontent-%COMP%]   .mobile-menu-icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){opacity:1}.mobile-menu-btn.closed[_ngcontent-%COMP%]   .mobile-menu-icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(0)}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]{display:flex;gap:1.5rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .h6[_ngcontent-%COMP%]{font-size:var(--heading-l-font-size);font-weight:var(--font-weight-bold);line-height:var(--heading-l-line-height);letter-spacing:var(--letter-spacing-none)}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .mat-drawer-inner-container[_ngcontent-%COMP%]{padding-right:.25rem!important;background-color:var(--white-color)!important}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .mat-drawer-backdrop[_ngcontent-%COMP%]{top:5rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .button-submenu[_ngcontent-%COMP%]{padding:0 .5rem;margin:unset}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{max-width:none}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .arrow-up[_ngcontent-%COMP%]{transform:rotate(180deg)}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{content:url(/assets/icons/arrowDown.svg);display:inline-block;width:1.25rem;height:1.25rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-login[_ngcontent-%COMP%]{margin-right:1rem}.nav__mobile-menu-sidenav.mat-drawer-container[_ngcontent-%COMP%]{--mat-sidenav-content-background-color: var(--white-color);width:100%}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .mat-drawer[_ngcontent-%COMP%]{top:0!important;margin-top:5rem;background-color:var(--white-color);width:100%;border:none;box-shadow:none;z-index:50;padding:.625rem .75rem 2rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-menu-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:1.5rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-column[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.75rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-column-title[_ngcontent-%COMP%]{padding-bottom:.75rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-column-text[_ngcontent-%COMP%]{height:100%;padding-top:.75rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-menu-link[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{margin-bottom:0!important}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;margin-top:1rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:auto;height:14rem;object-fit:cover}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;width:100%;height:100%}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .column-border-bottom[_ngcontent-%COMP%]:first-of-type{padding-bottom:1rem;
336border-bottom:1px solid var(--divider-default);margin-bottom:1rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:.5rem .75rem;width:49%;min-height:3.5rem;background-color:var(--bg-disabled);border:1px solid var(--divider-default);border-radius:3px}@media screen and (max-width: 460px){.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-link[_ngcontent-%COMP%]{width:48%}}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-link[_ngcontent-%COMP%]   .link-text[_ngcontent-%COMP%]{display:inline-block;width:8.25rem;color:#5e5c5d;font-weight:500}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-link[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:.625rem;width:2rem;height:2rem}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-link-text[_ngcontent-%COMP%]{padding:0;margin-bottom:.625rem;max-height:none;height:auto;width:auto;background-color:initial;color:var(--text-tertiary);border:none;display:block}.nav__mobile-menu-sidenav[_ngcontent-%COMP%]   .nav__mobile-submenu-link-text[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.nav__mobile-link[_ngcontent-%COMP%]{padding-right:1.5rem;position:relative}.nav__mobile-link[_ngcontent-%COMP%]:last-child{padding-right:0}.nav__mobile-link[_ngcontent-%COMP%]:has(.nav__user)   .text-brand-primary[_ngcontent-%COMP%]{color:var(--primary-color-500)}.nav__mobile-link[_ngcontent-%COMP%]:has(.nav__user):hover   .nav__user[_ngcontent-%COMP%]{display:flex;align-items:center}.nav__mobile-link[_ngcontent-%COMP%]:has(.nav__user)   .nav__user[_ngcontent-%COMP%]{left:-11.5rem;top:3rem}.nav__mobile-link[_ngcontent-%COMP%]:has(.nav__user)   .nav__user[_ngcontent-%COMP%]:before{left:11.75rem}.nav__mobile-link[_ngcontent-%COMP%]   .nav__link-icon[_ngcontent-%COMP%]{height:1.88rem;width:1.88rem;margin-right:0}.mat-drawer-container[_ngcontent-%COMP%]{position:static;z-index:2;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer[_ngcontent-%COMP%]:not(.mat-drawer-side){box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f;position:fixed}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{background:#0000;color:#fff}.mat-toolbar-row[_ngcontent-%COMP%], .mat-toolbar-single-row[_ngcontent-%COMP%]{height:49px;border-top:5px solid black}.mat-toolbar-multiple-rows[_ngcontent-%COMP%]{min-height:45px}.mat-mdc-button[_ngcontent-%COMP%], .mat-mdc-unelevated-button[_ngcontent-%COMP%], .mat-mdc-icon-button[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%]{margin:0;min-width:0px;line-height:36px;padding:0 8px}.mat-mdc-button[_ngcontent-%COMP%], .mat-mdc-fab[_ngcontent-%COMP%], .mat-mdc-unelevated-button[_ngcontent-%COMP%], .mat-mdc-icon-button[_ngcontent-%COMP%], .mat-mdc-mini-fab[_ngcontent-%COMP%], .mat-mdc-raised-button[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%]{font-family:Nunito Sans,sans-serif;font-size:14px;font-weight:700;letter-spacing:normal}a[_ngcontent-%COMP%]:hover{text-decoration:none}.myProfileLink[_ngcontent-%COMP%]{background:none;border:1px solid #050606;font-size:10pt;font-family:Nunito Sans,sans-serif;font-weight:400;width:95px;height:30px;line-height:14px;color:#000;cursor:pointer;padding:4px 10px}.logoutLink[_ngcontent-%COMP%]{background:#060606;border:1px solid #050606;font-size:10pt;font-family:Nunito Sans,sans-serif;font-weight:400;width:95px;height:30px;line-height:14px;color:#fff!important;cursor:pointer;padding:4px 10px}.mat-mdc-form-field[_ngcontent-%COMP%]{font-size:10pt;line-height:1.125;width:100%;font-family:Nunito Sans,sans-serif;font-weight:400}.mat-mdc-button[_ngcontent-%COMP%], .mat-mdc-unelevated-button[_ngcontent-%COMP%], .mat-mdc-icon-button[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:42px;padding:0;border-radius:0;overflow:visible;font-family:Nunito Sans,sans-serif;font-weight:700;letter-spacing:normal}.mat-toolbar-row[_ngcontent-%COMP%], .mat-toolbar-single-row[_ngcontent-%COMP%]{white-space:normal!important}.loginhaiconview[_ngcontent-%COMP%]{width:19px;margin-right:9px}.mat-mdc-button[_ngcontent-%COMP%]:disabled{color:#fff}@media (min-width: 320px) and (max-width: 959px){.homepage.hero.headline[_ngcontent-%COMP%]{margin-top:14px}.bannertext[_ngcontent-%COMP%]{position:relative;top:-271px}.rightsideDivMobile[_ngcontent-%COMP%]{text-align:right;width:100%}.menuiconm1[_ngcontent-%COMP%], .mat-mdc-form-field[_ngcontent-%COMP%]{color:#000}.userloginp1moblie[_ngcontent-%COMP%]{width:auto;overflow:hidden;float:left;color:#000;font-size:10pt;font-weight:700;margin-top:2px;margin-right:2px}}input[_ngcontent-%COMP%]::-webkit-search-decoration, input[_ngcontent-%COMP%]::-webkit-search-cancel-button{display:none}.notifications-area[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:stretch;position:relative;box-sizing:border-box}.notification-popup[_ngcontent-%COMP%]{position:relative;top:0;right:0rem;padding:1rem 1.5rem;width:100%;margin-bottom:0;display:block;visibility:visible;align-items:center;gap:.75rem;animation:fadeIn .3s ease}.close-btn[_ngcontent-%COMP%]{position:absolute;top:.5rem;right:.5rem;padding:1rem 1rem .2rem .2rem;z-index:1}'],data:{animation:[v0,Xa("scrollAnimation",[ns(zr.Visible,pi({transform:"translateY(0)"})),ns(zr.Hidden,pi({transform:"translateY(-64px)"})),is(`${zr.Visible} => ${zr.Hidden}
336`,ts("250ms")),is(`${zr.Hidden} => ${zr.Visible}`,ts("250ms"))])]}}));let n=e;return n})();var US=(()=>{let e=class e{constructor(i){h(this,"http");this.http=i}GetFooterBlock(i){return this.http.post(Y.GraphQLURL,qu.GetFooterBlocksBody(i)).pipe(qu.FooterMapper)}};h(e,"\u0275fac",function(r){return new(r||e)(ne(Bi))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();var GS=(()=>{let e=class e{constructor(i){h(this,"isOlarkLoaded",!1);h(this,"isBrowser");this.isBrowser=de(i)}loadOlarkScript(){if(!this.isBrowser||this.isOlarkLoaded)return;let i=document.createElement("script");i.type="text/javascript",i.text=`
337      (function(o,l,a,r,k,y){
338        if(o.olark)return;
339        r="script";y=l.createElement(r);r=l.getElementsByTagName(r)[0];
340        y.async=1;y.src="//"+a;r.parentNode.insertBefore(y,r);
341        y=o.olark=function(){k.s.push(arguments);k.t.push(+new Date)};
342        y.extend=function(i,j){y("extend",i,j)};
343        y.identify=function(i){y("identify",k.i=i)};
344        y.configure=function(i,j){y("configure",i,j);k.c[i]=j};
345        k=y._={s:[],t:[+new Date],c:{},l:a};
346      })(window,document,"static.olark.com/jsclient/loader.js");
347
348      olark.identify('9227-663-10-1117');
349    `,document.body.appendChild(i),this.isOlarkLoaded=!0,this.adjustOlarkPosition()}adjustOlarkPosition(){let i=setInterval(()=>{let r=document.querySelector("#olark-wrapper .olark-launch-button-wrapper");if(r){let o=window.innerWidth<=768?"8rem":"6rem";r.style.setProperty("bottom",o,"important"),clearInterval(i)}},500)}};h(e,"\u0275fac",function(r){return new(r||e)(ne(Ge))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();function cN(n,e){if(n&1&&(p(0,"a",13),k(1,"img",14),u()),n&2){let t=e.$implicit;v("href",t.Url,X)("title",t.Title),m(),v("src",t.ImageUrl,X)}}function uN(n,e){if(n&1&&(p(0,"a",20),f(1),u()),n&2){let t=S().$implicit;v("routerLink",t.RouteSegments),m(),F(t.Title)}}function pN(n,e){if(n&1&&(p(0,"a",21),f(1),u()),n&2){let t=S().$implicit;v("href",t.Url,X),m(),F(t.Title)}}function dN(n,e){if(n&1&&(p(0,"span",22),f(1),u()),n&2){let t=S().$implicit;m(),F(t.Title)}}function hN(n,e){if(n&1&&(p(0,"a",25),f(1),u()),n&2){let t=S().$implicit;v("routerLink",t.RouteSegments),m(),F(t.Name)}}function mN(n,e){if(n&1&&(p(0,"a",26),f(1),u()),n&2){let t=S().$implicit;v("href",t.Url,X),m(),F(t.Name)}}function fN(n,e){if(n&1&&(p(0,"div",23),M(1,hN,2,2,"a",24)(2,mN,2,2,"ng-template",null,0,We),u()),n&2){let t=e.$implicit,i=He(3);m(),v("ngIf",t.RouteSegments)("ngIfElse",i)}}function gN(n,e){if(n&1&&(p(0,"div",15),M(1,uN,2,2,"a",16)(2,pN,2,2,"a",17)(3,dN,2,1,"span",18)(4,fN,4,2,"div",19),u()),n&2){let t=e.$implicit;m(),v("ngIf",t.RouteSegments),m(),v("ngIf",!t.RouteSegments&&t.Url),m(),v("ngIf",!t.RouteSegments&&!t.Url),m(),v("ngForOf",t.Links)}}function _N(n,e){if(n&1&&(p(0,"div",4)(1,"div",5)(2,"a",6),k(3,"img",7),u(),p(4,"a",8),f(5,"FUTEK"),u(),k(6,"div",9),fe(7,"safeHtml"),p(8,"div",10),M(9,cN,2,3,"a",11),u()(),M(10,gN,5,4,"div",12),u()),n&2){let t=S();m(2),v("routerLink",t.BasePath),m(),v("src",t.footer==null?null:t.footer.MobileLogoUrl,X),m(),v("routerLink",t.BasePath),m(2),v("innerHTML",xe(7,6,t.footer.ContactDetails),$e),m(3),v("ngForOf",t.footer.SocialIcons),m(),v("ngForOf",t.footer.Menu)}}function vN(n,e){if(n&1){let t=$();p(0,"div",27)(1,"p",28),f(2),u(),p(3,"div",29)(4,"div",30)(5,"span")(6,"a",31),N("click",function(){A(t);let r=S();return I(r.TrackFooterOption("privacypolicy"))}),f(7,"Privacy Policy"),u()(),p(8,"span",32),f(9,"|"),u(),p(10,"span")(11,"a",33),N("click",function(){A(t);let r=S();return I(r.TrackFooterOption("TermsAndConditions"))}),f(12,"Terms And Conditions"),u()()(),p(13,"p",34),f(14),u()()()}if(n&2){let t=S();m(2),F(t.footer.CopyrightText),m(12),F(t.footer.Address)}}var $S=(()=>{let e=class e{constructor(i,r,s,o,a,l,c){h(this,"router");h(this,"gtmService");h(this,"localization");h(this,"_featureFlagsService");h(this,"_footerService");h(this,"platformId");h(this,"_olarkLoaderService");h(this,"FileHostUrl",Y.FileHostUrl);h(this,"countryCode","");h(this,"currentYear");h(this,"UrlList",[]);h(this,"LocalizationEnabled",!1);h(this,"footer");this.router=i,this.gtmService=r,this.localization=s,this._featureFlagsService=o,this._footerService=a,this.platformId=l,this._olarkLoaderService=c,this.LocalizationEnabled=this._featureFlagsService.IsEnabled(Vt.LocalizationEnabled)}get CurrentLanguage(){return this.localization.CurrentLanguage}ngOnInit(){this._olarkLoaderService.loadOlarkScript();let i=new Date;this.currentYear=i.getFullYear(),this._footerService.GetFooterBlock(this.CurrentLanguage).subscribe(r=>{this.footer=r})}gotoRMAReturn(){this.router.navigate(["/","rma"])}GetUserName(){return de(this.platformId)?localStorage.getItem("userId")??"":""}TrackSocialPlatform(i){let r={event:"bottom_navigation",eventCategory:"social",eventAction:i,eventLabel:this.router.url,userId:this.GetUserName()};this.gtmService.pushTag(r)}TrackFooterOption(i){let r={event:"bottom_navigation",eventCategory:"bottom_navigation",eventAction:i,eventLabel:this.router.url,userId:this.GetUserName()};this.gtmService.pushTag(r)}get BasePath(){return this.LocalizationEnabled?this.localization.CurrentLanguage:"/"}};h(e,"\u0275fac",function(r){return new(r||e)(U(ft),U(Wn),U(pr),U(an),U(US),U(Ge),U(GS))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-footer"]],features:[Ni([qn])],decls:3,vars:2,consts:[["elseLink",""],[1,"footer"],["class","footer__main",4,"ngIf"],["class","footer__c
349opyright text-color-primary-onbrand",4,"ngIf"],[1,"footer__main"],[1,"footer__col","footer__col-contact","text-color-tertiary"],[1,"footer__col-logo-mobile",3,"routerLink"],["alt","Logo",3,"src"],[1,"text-xl","extra-bold","footer__col-logo-desktop","text-color-tertiary",3,"routerLink"],[1,"footer__col-contact-wrapper","text-color-tertiary",3,"innerHTML"],[1,"footer__social"],["class","footer__social-icon","target","_blank",3,"href","title",4,"ngFor","ngForOf"],["class","footer__col",4,"ngFor","ngForOf"],["target","_blank",1,"footer__social-icon",3,"href","title"],["width","24","height","24",3,"src"],[1,"footer__col"],["class","text-xl semibold footer__col-heading",3,"routerLink",4,"ngIf"],["class","text-xl semibold footer__col-heading",3,"href",4,"ngIf"],["class","text-xl semibold footer__col-heading",4,"ngIf"],["class","footer__link",4,"ngFor","ngForOf"],[1,"text-xl","semibold","footer__col-heading",3,"routerLink"],[1,"text-xl","semibold","footer__col-heading",3,"href"],[1,"text-xl","semibold","footer__col-heading"],[1,"footer__link"],["class","text-m",3,"routerLink",4,"ngIf","ngIfElse"],[1,"text-m",3,"routerLink"],[1,"text-m",3,"href"],[1,"footer__copyright","text-color-primary-onbrand"],[1,"text-m","semibold","footer__copyright-text","col-12","col-md-6"],[1,"footer__copyright-privacy","col-12","col-md-6"],[1,""],["routerLink","/privacypolicy",1,"text-m","semibold","text-color-primary-onbrand",3,"click"],[1,"mx-2"],["routerLink","/TermsAndConditions",1,"text-m","semibold","text-color-primary-onbrand",3,"click"],[1,"text-m","semibold","footer__copyright-address"]],template:function(r,s){r&1&&(p(0,"footer",1),M(1,_N,11,8,"div",2)(2,vN,15,2,"div",3),u()),r&2&&(m(),v("ngIf",s.footer),m(),v("ngIf",s.footer))},dependencies:[Et,nt,it,At],styles:[".footer__main[_ngcontent-%COMP%]{background-color:var(--white-color);padding:4.38rem 8.5rem 0;display:flex;justify-content:space-between}@media screen and (max-width: 1200px){.footer__main[_ngcontent-%COMP%]{flex-wrap:wrap;justify-content:flex-start;padding:4.38rem 5rem 0}}@media screen and (max-width: 769px){.footer__main[_ngcontent-%COMP%]{padding:1.25rem .75rem;column-gap:2rem;row-gap:2.5rem}}.footer__main[_ngcontent-%COMP%]   .footer__col[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-right:4rem;margin-bottom:4.38rem}.footer__main[_ngcontent-%COMP%]   .footer__col[_ngcontent-%COMP%]:last-of-type{margin-right:0}@media screen and (max-width: 1024px){.footer__main[_ngcontent-%COMP%]   .footer__col[_ngcontent-%COMP%]{margin-right:2rem;margin-bottom:2.38rem}}@media screen and (max-width: 769px){.footer__main[_ngcontent-%COMP%]   .footer__col[_ngcontent-%COMP%]{width:45%;margin-right:0;margin-bottom:0}}@media screen and (max-width: 769px){.footer__main[_ngcontent-%COMP%]   .footer__col.footer__c
349ol-contact[_ngcontent-%COMP%]{width:100%}}.footer__main[_ngcontent-%COMP%]   .footer__col-contact-wrapper[_ngcontent-%COMP%]{gap:.75rem}@media screen and (max-width: 769px){.footer__main[_ngcontent-%COMP%]   .footer__col-contact-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}}.footer__main[_ngcontent-%COMP%]   .footer__col-logo-desktop[_ngcontent-%COMP%]{margin-bottom:1.25rem;display:inline-block}@media screen and (max-width: 769px){.footer__main[_ngcontent-%COMP%]   .footer__col-logo-desktop[_ngcontent-%COMP%]{display:none}}.footer__main[_ngcontent-%COMP%]   .footer__col-logo-mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 769px){.footer__main[_ngcontent-%COMP%]   .footer__col-logo-mobile[_ngcontent-%COMP%]{display:inline-block;margin-bottom:1.25rem;height:48px;width:48px}}.footer__main[_ngcontent-%COMP%]   .footer__col-logo-mobile[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:48px;width:48px}.footer__main[_ngcontent-%COMP%]   .footer__col-heading[_ngcontent-%COMP%]{margin-bottom:2.19rem;color:var(--text-primary)}.footer__main[_ngcontent-%COMP%]   .footer__link[_ngcontent-%COMP%]{margin-bottom:.75rem}.footer__main[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(.footer__link   a[_ngcontent-%COMP%], .footer__link[_ngcontent-%COMP%]   p)[_ngcontent-%COMP%]{color:var(--text-tertiary)}.footer__main[_ngcontent-%COMP%]   .footer__link[_ngcontent-%COMP%]   a.link-primary[_ngcontent-%COMP%]{color:#2563eb}.footer__main[_ngcontent-%COMP%]   .footer__link[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.footer__main[_ngcontent-%COMP%]   .footer__social[_ngcontent-%COMP%]{display:flex;gap:1.5rem;margin-top:1.125rem}@media screen and (max-width: 769px){.footer__main[_ngcontent-%COMP%]   .footer__social[_ngcontent-%COMP%]{margin-top:2.5rem}}.footer__copyright[_ngcontent-%COMP%]{background-color:var(--bg-brand-primary);padding:1rem 8.5rem;display:flex;align-items:center;justify-content:space-between}@media screen and (max-width: 1200px){.footer__copyright[_ngcontent-%COMP%]{padding:1rem 5rem}}@media screen and (max-width: 1024px){.footer__copyright[_ngcontent-%COMP%]{align-items:flex-start}}@media screen and (max-width: 769px){.footer__copyright[_ngcontent-%COMP%]{padding:1rem .75rem;flex-direction:column;row-gap:1.25rem;font-size:var(--text-s-font-size)}}@media screen and (max-width: 769px){.footer__copyright[_ngcontent-%COMP%]   .footer__copyright-text[_ngcontent-%COMP%]{font-weight:var(--font-weight-regular)}}.footer__copyright[_ngcontent-%COMP%]   .footer__copyright-privacy[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:1rem}@media screen and (max-width: 769px){.footer__copyright[_ngcontent-%COMP%]   .footer__copyright-privacy[_ngcontent-%COMP%]{justify-content:space-between}}@media screen and (max-width: 769px){.footer__copyright[_ngcontent-%COMP%]   .footer__copyright-address[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold)}}"]}));let n=e;return n})();var WS=(()=>{let e=class e{constructor(i){h(this,"loaderService");h(this,"FileHostUrl",Y.FileHostUrl);h(this,"show",!1);h(this,"subscription");this.loaderService=i}};h(e,"\u0275fac",function(r){return new(r||e)(U(ln))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-loader"]],decls:1,vars:2,template:function(r,s){r&1&&k(0,"div"),r&2&&Qm("hidden",!s.show)},styles:['.hidden[_ngcontent-%COMP%]{visibility:hidden}.loader-overlay[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:500000;top:0}.loader[_ngcontent-%COMP%]{height:4px;width:100%;position:relative;overflow:hidden;background-color:#fff}.loader[_ngcontent-%COMP%]:before{display:block;position:absolute;content:"";left:-200px;width:200px;height:4px;background-color:#ffce00;animation:_ngcontent-%COMP%_loading 2s linear infinite}@keyframes _ngcontent-%COMP%_loading{0%{left:-200px;width:30%}50%{width:30%}70%{width:70%}80%{left:50%}95%{left:120%}to{left:100%}}.loadingpanel1[_ngcontent-%COMP%]{text-align:center;width:100%;background:#0000001f;position:fixed;height:100%;top:0;z-index:99}.loadingpanel2[_ngcontent-%COMP%]{width:85px;position:absolute;
349left:50%;top:50%;margin-left:-42px;margin-top:-42px}']}));let n=e;return n})();var CN=n=>({"background-color":n});function bN(n,e){if(n&1&&(k(0,"div",11),fe(1,"safeHtml")),n&2){let t=S(2);v("innerHTML",xe(1,1,t.Notification.Message),$e)}}function wN(n,e){if(n&1&&(p(0,"div",6)(1,"div",7)(2,"div",8),k(3,"img",9),u(),M(4,bN,2,3,"div",10),u()()),n&2){let t=S();v("ngStyle",Pn(4,CN,t.Notification.BackColor)),m(3),xt("src","",t.FileHostUrl,"/content/futek/images/home/Notification_icon1.png",X),m(),v("ngIf",t.Notification.Message)}}function yN(n,e){n&1&&k(0,"app-header")}function EN(n,e){n&1&&k(0,"app-footer")}var ki=function(n){return n.Visible="visible",n.Hidden="hidden",n}(ki||{});var qS=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d,_){h(this,"platformId");h(this,"_loginService");h(this,"router");h(this,"ngZone");h(this,"userIdle");h(this,"auth");h(this,"loaderService");h(this,"sensitModalService");h(this,"redirectService");h(this,"isAddClass",!1);h(this,"title","FutekUI");h(this,"Notification");h(this,"FileHostUrl",Y.FileHostUrl);h(this,"destroy$",new ke);h(this,"isHeader1Visible",ki.Visible);h(this,"isHeader2Visible",ki.Hidden);h(this,"slideHeader2InAtPosition",30);h(this,"setScroll",new Va);h(this,"currenturl");h(this,"path","");h(this,"homepageview",!0);h(this,"timeOutFired",!1);h(this,"isFooter",!1);h(this,"now");h(this,"setupTime");h(this,"IsGuest");h(this,"IsPrivateBrowswer",!1);h(this,"restrctedurl");h(this,"subscription");h(this,"previousUrl","");this.platformId=i,this._loginService=r,this.router=s,this.ngZone=o,this.userIdle=a,this.auth=l,this.loaderService=c,this.sensitModalService=d,this.redirectService=_,de(this.platformId)&&typeof window<"u"?this.path=window.location.pathname:this.path="",s.events.pipe(Qe(x=>x instanceof mo)).subscribe(x=>{if(this.currenturl=x.url,this.currenturl.split("/").length>2){let C=this.currenturl.split("/").length-1;this.restrctedurl=this.currenturl.split("/")[C]}else this.restrctedurl=this.currenturl.split("/")[1];if(de(this.platformId)){let C=document.getElementById("scrollWrapper");C&&setTimeout(function(){C.scrollTop=0},200)}de(this.platformId)&&this.currenturl!==this.path&&typeof window<"u"&&window.scroll(0,0);let w=0;this.ngZone.run(()=>{de(this.platformId)&&(w=window.innerWidth)})})}getEBSSortingUnitsData(){de(this.platformId)}menuScroll(){de(this.platformId)}scrollHandler(i){de(this.platformId)}stop(){this.userIdle.stopTimer()}stopWatching(){this.userIdle.stopWatching()}startWatching(){this.userIdle.startWatching()}restart(){this.userIdle.resetTimer()}ngOnInit(){if(de(this.platformId)){this.router.events.pipe(Qe(o=>o instanceof Af)).subscribe(o=>{let a=this.router.url;localStorage.setItem("previousRealUrl",a)}),this.router.events.pipe(Qe(o=>o instanceof mo)).subscribe(o=>{let a=o.urlAfterRedirects;localStorage.getItem("previousRealUrl")?.startsWith("/store")&&a.startsWith("/search")&&localStorage.removeItem("AppliedFielters"),localStorage.setItem("previousRealUrl",a),this.redirectService.checkRedirect(a).subscribe(c=>{c&&c!==a&&window.location.replace(c)})}),window.openDownloadModal=()=>this.sensitModalService.openDownloadModal();let s=localStorage.getItem("language");s&&Vi.supportedLanguages.includes(s)?Vi.language=s:(Vi.language="en",localStorage.setItem("language","en"))}if(!de(this.platformId))return;this.getEBSSortingUnitsData(),this.sessionExtenstion(),window.cookieconsent.initialise({palette:{popup:{background:"#164969"},button:{background:"#ffe000",text:"#164969"}},theme:"classic",content:{message:"This Website uses cookies to ensure you get the best experience on our website.<br/> By continuing to use our website, you agree to our use of such cookies.",dismiss:"Ok, got it",link:"Learn More",href:"/privacypolicy"}});let r=document.getElementById("app-loader");r&&(r.style.display="none")}ngDoCheck(){if(de(this.platformId)&&(this.IsGuest=!!localStorage.getItem("firstName"),!this.IsGuest)){var i=6.5;this.now=Date.now().toString(),this.setupTime=localStorage.getItem("setupTime"),this.setupTime!=null,this.now-this.setupTime>i*60*60*1e3&&(localStorage.removeItem("setupTime"),localStorage.removeItem("popupValue"))}}checkTimeDifferenceBetweenTokenExpirationTimeAndCurrentTime(){if(!de(this.platformId))return 0;let i=localStorage.getItem("tokenExpires");return new Date(i.replace(",",""))-new Date}onActivate(){if(this.isFooter=!1,this.subscription=this.loaderService.loaderState.pipe(Re(this.destroy$)).subscribe(i=>{i.show==!1&&(this.isFooter=!0)}),setTimeout(()=>{this.isFooter||(this.isFooter=!0)},5500),de(this.platformId)){let i=window.setInterval(()=>{let r=window.pageYOffset;r>0?window.scrollTo(0,r-20):window.clearInterval(i)},10)}}onDeactivate(){this.isFooter=!1}sessionExtenstion(){if(!de(this.platformId))return;localStorage.getItem("token")?this.checkTimeDifferenceBetweenTokenExpirationTimeAndCurrentTime()<0?(alert("Your session timed out. Please login again."),this.auth.logout(),localStorage.removeItem("popupValue"),localStorage.removeItem("setupTime")):(this.startWatching(),this.userIdle.onTimerStart().subscribe(()=>{this.checkTimeDifferenceBetweenTokenExpirationTimeAndCurrentTime()<=0&&(this.timeOutFired=!0,alert("Your session timed out. Please login again."),this.auth.logout(),localStorage.removeItem("popupValue"),localStorage.removeItem("setupTime"))}),this.userIdle.ping$.subscribe(s=>{let o=this.checkTimeDifferenceBetweenTokenExpirationTimeAndCurrentTime();!this.timeOutFired&&o<2*60*1e3&&(o<=0?(this.timeOutFired=!0,alert("Your session timed out. Please login again."),this.auth.logout(),localStorage.removeItem("popupValue"),localStorage.removeItem("setupTime")):(this.tokenRefresh(),this.restart()))}),this.userIdle.onTimeout().subscribe(s=>{this.checkTimeDifferenceBetweenTokenExpirationTimeAndCurrentTime()<=0&&(this.timeOutFired=!0,this.auth.logout(),localStorage.removeItem("popupValue"),localStorage.removeItem("setupTime"))})):this.stopWatching()}tokenRefresh(){if(!de(this.platformId))return;let i=localStorage.getItem("refreshtoken");this._loginService.autoRefreshTockenLogin(i).subscribe(r=>{this.storeToken(r)},r=>{let s=localStorage.getItem("refreshtoken");this._loginService.autoRefreshTockenLogin(s).subscribe(o=>{this.storeToken(o)},o=>{alert("Your session timed out. Please login again."),this.auth.logout(),localStorage.removeItem("popupValue")})})}storeToken(i){de(this.platformId)&&((i.access_token===""||i.access_token===null||i.userName===""||i.userName===null||i.userId===""||i.userId===null)&&alert("error in user name setup in app;
349"),localStorage.setItem("token",i.access_token),localStorage.setItem("tokenExpires",i[".expires"]),localStorage.setItem("refreshtoken",i.refresh_token),localStorage.setItem("roles",i.roles),localStorage.setItem("userName",i.userName),localStorage.setItem("userId",i.userId))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}};h(e,"\u0275fac",function(r){return new(r||e)(U(Ge),U(Vf),U(ft),U(Di),U(vS),U(Gn),U(ln),U(BS),U(RS))}),h(e,"\u0275cmp",Me({type:e,selectors:[["app-root"]],hostBindings:function(r,s){r&1&&N("scroll",function(a){return s.scrollHandler(a)},!1,Wm)},outputs:{setScroll:"setScroll"},decls:8,vars:4,consts:[["panel",""],["class","row Notificationheaderpanel",3,"ngStyle",4,"ngIf"],["id","scrollWrapper",1,"scrollWrapper",3,"scroll","ngClass"],[4,"ngIf"],[1,"scrollContent"],[3,"activate","deactivate"],[1,"row","Notificationheaderpanel",3,"ngStyle"],[1,"container","maincontinerpanel"],[1,"Notificationicontop"],["alt","Notification",1,"Notificationiconleft",3,"src"],["class","Notificationpanel",3,"innerHTML",4,"ngIf"],[1,"Notificationpanel",3,"innerHTML"]],template:function(r,s){if(r&1){let o=$();M(0,wN,5,6,"div",1),p(1,"div",2,0),N("scroll",function(l){return A(o),I(s.scrollHandler(l))}),M(3,yN,1,0,"app-header",3),k(4,"app-loader"),p(5,"div",4)(6,"router-outlet",5),N("activate",function(){return A(o),I(s.onActivate())})("deactivate",function(){return A(o),I(s.onDeactivate())}),u(),M(7,EN,1,0,"app-footer",3),u()()}r&2&&(v("ngIf",s.Notification),m(),v("ngClass",s.homepageview?"homescrollviewpanel1":"homescrollviewpanel2"),m(2),v("ngIf",s.router.url!=="/accountregistration"&&s.router.url!=="/log-in"&&s.restrctedurl!=="account-registrationdetails"),m(4),v("ngIf",s.router.url!=="/accountregistration"&&s.router.url!=="/log-in"&&s.restrctedurl!=="account-registrationdetails"&&s.isFooter))},dependencies:[Li,nt,Yr,If,VS,$S,WS,At],styles:[".scrollWrapper[_ngcontent-%COMP%]{overflow:auto;height:auto;min-height:100%;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.homescrollviewpanel1[_ngcontent-%COMP%]{height:100vh}.homescrollviewpanel2[_ngcontent-%COMP%]{height:auto}.scrollContent[_ngcontent-%COMP%]{min-height:auto;margin-top:0}.Notificationheaderpanel[_ngcontent-%COMP%]{width:100%;position:fixed;z-index:999;top:0}.Notificationicontop[_ngcontent-%COMP%]{width:34px;float:left;margin:4px 0 6px -2px}.Notificationiconleft[_ngcontent-%COMP%]{width:24px}.Notificationpanel[_ngcontent-%COMP%]{color:#fff;font-size:10pt;line-height:32px;font-weight:500;height:40px;overflow:hidden}@-moz-document url-prefix(){.scrollWrapper{overflow:auto;height:auto;min-height:100%;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.homescrollviewpanel1{height:100vh}.homescrollviewpanel2{height:auto}.scrollContent{min-height:auto;margin-top:0}}@media print{.scrollWrapper[_ngcontent-%COMP%]{overflow:auto;height:100%;min-height:100%}.Notificationheaderpanel[_ngcontent-%COMP%]{display:none}}@media (min-width: 320px) and (max-width: 680px){.Notificationheaderpanel[_ngcontent-%COMP%]{min-height:45px}.maincontinerpanel[_ngcontent-%COMP%]{padding:5px 0!important;display:table}.Notificationpanel[_ngcontent-%COMP%]{height:auto;color:#fff;font-size:10px;line-height:14px;font-weight:400;padding:0;display:table-cell;vertical-align:middle}.Notificationiconleft[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.Notificationicontop[_ngcontent-%COMP%]{margin:0}.scrollWrapper[_ngcontent-%COMP%]{overflow-x:hidden!important;position:relative}.scrollContent[_ngcontent-%COMP%]{min-height:auto;padding-top:15px}}  .mdc-text-field--outlined{--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-outline-color: #e0e0e0 !important;--mdc-outlined-text-field-focus-outline-width: 1px !important;--mdc-outlined-text-field-focus-outline-color: #e0e0e0 !important;--mdc-outlined-text-field-hover-outline-color: #949494 !important}"],data:{animation:[Xa("scrollAnimation",[ns(ki.Visible,pi({transform:"translateY(0)"})),ns(ki.Hidden,pi({transform:"translateY(-64px)"})),is(`${ki.Visible} => ${ki.Hidden}`,ts("250ms")),is(`${ki.Hidden} => ${ki.Visible}
349`,ts("250ms"))])]}}));let n=e;return n})();var zS=(()=>{let e=class e{constructor(i,r){h(this,"appInsightService");h(this,"cookieService");this.appInsightService=i,this.cookieService=r}errorTracking(i){return this.appInsightService.logException(i,3)}removeCookies(){this.cookieService.deleteAll()}};h(e,"\u0275fac",function(r){return new(r||e)(ne(x0),ne(Cu))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();var MN=/Loading chunk [\d]+ failed/,PN="Http failure response",jS="globalErrorHandlerReloadCount",QS=3,bm={UNAUTHORIZED:401,CONFLICT:409,NOT_FOUND:404},XS=(()=>{let e=class e{constructor(i,r,s){h(this,"injector");h(this,"logErrorService");h(this,"platformId");h(this,"reloadCount$",new Na(0));this.injector=i,this.logErrorService=r,this.platformId=s,de(this.platformId)&&this.reloadCount$.next(this.readReloadCount())}handleError(i){if(!i)return;this.logErrorService.errorTracking(i);let r=de(this.platformId),s=MN.test(i.message??"");if(!i.status){i.message?.includes(PN)?(this.logErrorService.removeCookies(),this.reloadWithLimit(r)):s&&(this.logErrorService.removeCookies(),this.reloadWithLimit(r));return}throw r&&(s?(this.logErrorService.removeCookies(),this.reloadWithLimit(r)):i.status===bm.UNAUTHORIZED?alert("Your session timed out. Please login again."):i.status===bm.CONFLICT?alert("Unable to delete this due to some dependency. Please contact administrator."):i.status===bm.NOT_FOUND&&window.location.pathname.includes("applications")&&this.injector.get(ft).navigate(["/applications"])),i}reloadWithLimit(i){if(!i)return;if(this.reloadCount$.value>=QS){this.logErrorService.errorTracking(new Error(`GlobalErrorHandler: reload limit of ${QS} reached, aborting reload`));return}let r=this.reloadCount$.value+1;sessionStorage.setItem(jS,r.toString()),this.reloadCount$.next(r),window.location.reload()}readReloadCount(){return Number(sessionStorage.getItem(jS))||0}};h(e,"\u0275fac",function(r){return new(r||e)(ne(uo),ne(zS),ne(Ge))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();var KS=(()=>{let e=class e{constructor(i,r,s,o){h(this,"_authGuard");h(this,"_snackBar");h(this,"storage");h(this,"platformId");h(this,"snackbar");this._authGuard=i,this._snackBar=r,this.storage=s,this.platformId=o}intercept(i,r){let s=this.storage.getItem("token"),o=i.clone({headers:i.headers.set("Authorization","Bearer "+s)});if(i.url==Y.GraphQLURL){let a=de(this.platformId)?Lf():null;o=i.clone({headers:i.headers.set("Authorization",a!=null?`Basic ${a}`:`epi-single ${Y.GraphQLSingleKey}`)}),o.headers.append("Cache-Control","public, max-age=3600")}return i.url.indexOf("uploadQuote")===-1?o.headers.append("Content-Type","application/json"):o.headers.append("Content-Type","multipart/form-data"),r.handle(o).pipe(Rt(()=>{},a=>{if(!i.url.includes("token")&&a instanceof lf){if(!a.status)return;if(a.status===401){let l="Your session timed out. Please login again.";this.snackbar=new ur(this._snackBar),this.snackbar.openSnackBar(l,"close"),this.storage.removeItem("popupValue"),this.storage.removeItem("setupTime"),this._authGuard.logout()}else a.status===409&&alert("Unable to delete this due to some dependency. Please contact administrator.");return Ba(()=>a)}}))}};h(e,"\u0275fac",function(r){return new(r||e)(ne(Gn),ne(Hi),ne(S0),ne(Ge))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac}));let n=e;return n})();var YS=(()=>{let e=class e{constructor(i,r){h(this,"_loaderService");h(this,"platformId");h(this,"count",0);this._loaderService=i,this.platformId=r}intercept(i,r){return of(this.platformId)?(this.hideLoader(),r.handle(i)):(this.count++,this.count==1&&this.showLoader(),r.handle(i).pipe(Rt(s=>{s instanceof af&&(this.count--,this.count==0&&this.onEnd())},s=>{this.count--,this.count==0&&this.onEnd()})))}onEnd(){this.hideLoader()}showLoader(){this._loaderService.show()}hideLoader(){this._loaderService.hide()}};h(e,"\u0275fac",function(r){return new(r||e)(ne(ln),ne(Ge))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac,providedIn:"root"}));let n=e;return n})();var ZS=[{provide:Hu,useClass:KS,multi:!0},{provide:Hu,useClass:YS,multi:!0}];var JS=(()=>{let e=class e extends Pf{constructor(r){super();h(this,"_featureFlagsService");h(this,"LocalizationEnabled",!1);this._featureFlagsService=r,this.LocalizationEnabled=this._featureFlagsService.IsEnabled(Vt.LocalizationEnabled)}parse(r){if(this.LocalizationEnabled){let s=r.split("/");s.length>1&&Vi.supportedLanguages.includes(s[1])&&(s.splice(1,1),r=s.join("/"))}return r=this.customRewrite(r),super.parse(r.toLowerCase())}serialize(r){let s=super.serialize(r);if(s.startsWith("/")||(s="/"+s),this.LocalizationEnabled){let o=s.split("/"),a=o[1];Vi.supportedLanguages.includes(a)||(o.splice(1,0,Vi.language),s=o.join("/"))}return s.toLowerCase()}frameKeywordBasedonUrl(r){let s={load:"l",torque:"t",pressure:"p",multicomponent:"m",instrument:"i"},o=r.split("&"),a=[];
349if(o.forEach(l=>{a.push(l.split("=")[1])}),s[a[0]])return s[a[0]]+a[1]}customRewrite(r){if(r.toLowerCase().indexOf("application/")>0){var s=r.split("/");if(r.toLowerCase().indexOf(".aspx")>0)if(s.length==3){var o=new zu;let w=o.applicationData.filter(C=>C.code==s[2]);w.length>0?r="/applications/"+w[0].Name:r="/applications"}else if(s.length==4){var o=new zu;let C=o.applicationData.filter(T=>T.code==s[3]);C.length>0?r="/applications/"+C[0].Name:r="/applications"}else r.toLocaleLowerCase().indexOf("product.aspx")>0&&(r="/store");else s.length==4?r="/applications/"+s[3]:s.length==5?r="/applications/"+s[4]:r="/applications"}else if(r.toLowerCase().indexOf("applications/industry-type")>0||r.toLowerCase().indexOf("applications/sensor-type")>0){var s=r.split("/");s.length==5?r="/applications/"+s[4]:s.length==4?s[2]=="sensor-type"?r="/applications/sensor/"+s[3]:r="/applications/industry/"+s[3]:r="/applications"}else if(r.toLocaleLowerCase().indexOf(".aspx")>0){let w="",C=r.toLocaleLowerCase();C.indexOf("product.aspx")>0?C.indexOf("&cat")>0?(w=this.frameKeywordBasedonUrl(C.split("?")[1]),r="/search/"+w):C.indexOf("&m")>0?(w=C.split("m=")[1],r="/search/"+w):C.indexOf("?stock")>0?(w=C.split("=")[1],r="/search/"+w):C.indexOf("?t")>0?(w={load:"load-cells",pressure:"pressure-sensors",torque:"torque-sensors",instrument:"instruments",multicomponent:"multi-axis-sensors",accessories:"accessories",force:"load-cells"}[r.split("t=")[1]],r="/store/"+w):r="/store":C.indexOf("custom_sensors.aspx")>0?C.indexOf("?stock")>0&&(w=C.split("=")[1],r="/search/"+w):C.indexOf("newsroom.aspx")>0?r="/news":C.indexOf("support.aspx")>0?r="/support":C.indexOf("about.aspx")>0?r="/aboutus":C.indexOf("boltcalc.aspx")>0?r="/bolttorque/american":C.indexOf("sensorsolutions.aspx")>0?r="/sensorsolutions":C.indexOf("manuals.aspx")>0?r="/product-manual":C.indexOf("apps.aspx")>0?r="/applications":C.indexOf("certifications.aspx")>0?r="/certifications":C.indexOf("calc.aspx")>0?r="/online-calculators":C.indexOf("conversion.aspx")>0?r="/unitconversion/load":C.indexOf("resolutioncalc.aspx")>0?r="/resolutioncalculator":C.indexOf("trackyourorder.aspx")>0?r="/support/trackorder":C.indexOf("contact.aspx")>0?C.indexOf("?form")>0?(w={"payment-question'":"paymentquestion",application:"application-inquiry",inquiry:"product-inquiry",technical:"technical-request",repair:"rma",general:"general-questions",newsletter:"newsletter-subscription",recalibration:"recalibrationterms"}[r.split("form=")[1]],r.split("form=")[1]=="repair"?r=w:r.split("form=")[1]=="recalibration"?r="recalibrationterms":w?r="/about/contact/"+w:r="/about/contact"):r="/about/contact":C.indexOf("usb/sensors.aspx")>0||C.indexOf("usbsensors_models.aspx")>0?r="/usb-sensor-solutions":r="/home"}else if(r.toLowerCase().indexOf("store/obsolete/")>0){var a="",l=r.split("/");l.length==4?(a=l[l.length-1],a.length==6&&(r="/search/"+a)):l.length==5&&(a=l[l.length-1],r="/search/"+a)}else if(r.toLowerCase().indexOf("store/accessories/")>0){var a="",l=r.split("/");if(l.length==4){let T={"calibration%20torque%20plate":"calibration-torque-plate","chuck%20with%20male%20square%20drive":"chuck-with-male-square-drive","cylinder%20rod%20alignment%20couplers":"cylinder-rod-alignment-couplers","eye%20bolts":"eye-bolts","bardened%20washers":"washers","instrument%20accessories":"instrument-accessories",instrumentation:"instrumentation","item%20cable%2fconnector":"cable-connector","load%20button":"load-button","load%20hook":"load-hook","load%20plate":"load-plate","load%20tower":"load-tower","mounting%20kit":"mounting-kit","rod%20end%20bearing":"rod-end-bearing","shunt%20cal%20%2f%20r%20cal%20resistors":"shunt-cal-resistors","square%20drive%20torque%20adapter":"square-drive-torque-adapter","system%20cable%2fconnector":"system-cable-connector","tension%20base%20plate":"tension-base-plate","threaded%20rods":"threaded-rods","torque%20adapter":"torque-adapter","vcal%20accessories":"vcal-accessories","yoke%20%28clevis%29%20%2F%20tongue%20shackles":"yoke-clevis-tongue-shackles","item%20calibration":"calibration","system%20calibration":"system-calibration",warranty:"warranty"};var c=l[3].toLowerCase();a=T[c],a&&a!=""&&(r="/store/accessories/"+a)}}else if(r.toLocaleLowerCase()=="/store-software")r="/measurement-software";else if(r.toLowerCase().indexOf("store/")>0){var a="",l=r.split("/");if(l.length==3){let T={"load%20cells":"load-cells","pressure%20sensors":"pressure-sensors","torque%20sensors":"torque-sensors",instruments:"instruments","multi-axis%20sensors":"multi-axis-sensors",obsolete:"legacy-sensors-and-instruments",custom:"custom-sensors-and-instruments",oem:"oem-sensors-and-instruments"};var c=l[2].toLowerCase();a=T[c],a&&a!=""&&(r="/store/"+a)}else if(l.length==4&&r.toLowerCase().indexOf("product/")>0)a=l[l.length-1],r="/search/"+a;else if(l.length==4){var d=l[3].toLocaleLowerCase();a=l[l.length-1],a.length==3&&d!="qla"&&(r="/search/"+a)}else l.length==5&&(a=l[l.length-1],a.length==6&&(r="/search/"+a))}else if(r.toLocaleLowerCase()=="/termsandcondition")r="/TermsAndConditions";else if(r.toLocaleLowerCase().indexOf("/reps")>0)r="/about/contact/representative";else if(r.toLocaleLowerCase().indexOf("/representative")>0){let w=r.split("/"),C=w.findIndex(T=>T.toLowerCase()==="representative");if(C!==-1&&w.length>C+1){let T=w.slice(0,C+1).join("/"),D=w[C+1];return`${T}/${D}`}else r="/about/contact/representative"}else if(r.toLocaleLowerCase()=="/instrument-manual")r="/support";else if(r.toLocaleLowerCase()=="/contact"||r.toLocaleLowerCase()=="/contact/technical-request"||r.toLocaleLowerCase()=="/contact/product-inquiry"||r.toLocaleLowerCase()=="/contact/application-inquiry"||r.toLocaleLowerCase()=="/contact/newsletter-subscription"||r.toLocaleLowerCase()=="/contact/general-questions"||r.toLocaleLowerCase()=="/contact/paymentquestion"){var _=r.split("/");_.length==3?r="/about/contact/"+_[2]:r="/about/contact"}else if(r.toLocaleLowerCase()=="/salesterms")r="/TermsAndConditions";else if(r.toLocaleLowerCase()=="/contact?form=inquiry")r="/about/contact/product-inquiry";else if(r.toLocaleLowerCase()=="/contact?form=recalibration")r="/recalibrationterms";else if(r.toLocaleLowerCase()=="/termsandcondition")r="/TermsAndConditions";else if(r.toLocaleLowerCase()=="/reps")r="/contact/representative";else if(r.toLocaleLowerCase()=="/inforeq.aspx")r="/about/contact";else if(r.toLocaleLowerCase()=="/instrument-manual")r="/support";else if(r.toLocaleLowerCase()=="/contact")r="/about/contact";else if(r=="/files/pdf/ExtendedWarranty.pdf"){var x=Y.FileHostUrl;window.location.replace(x+"/content/futek/files/pdf/ExtendedWarranty.pdf")}else if(r.toLocaleLowerCase()=="/salesterms")r="/TermsAndConditions";else if(r.toLocaleLowerCase()=="/extraneous-load-factor")r="/technical-support-extraneous-load-factor";else if(r=="/files/pdf/ExtendedWarranty.pdf"){var x=Y.FileHostUrl;window.location.replace(x+"/content/futek/files/pdf/ExtendedWarranty.pdf")}else if(r.toLocaleLowerCase()=="/newsletter/february07.htm")r="/news/press-release";else if(r.toLocaleLowerCase().indexOf("manuals_and_technical_documents/")>0){var x=Y.FileHostUrl;window.location.replace(x+"/content/futek"+r)}else if(r.toLocaleLowerCase().indexOf("productdrawings/")>0||r.toLocaleLowerCase().indexOf("quickstartguide/")>0||r.toLocaleLowerCase().indexOf("pdf/quality/")>0){var x=Y.FileHostUrl;window.location.replace(x+"/content/futek"+r.toLocaleLowerCase())}else if(r.toLocaleLowerCase().indexOf("/rotarytorqueseries")>0)window.location.replace("/store/torque-sensors");else if(r.toLocaleLowerCase().indexOf("files/downloads")>0){var x=Y.FileHostUrl;window.location.replace(x+"/content/futek"+r.toLocaleLowerCase())}return r.toLocaleLowerCase().indexOf("resetpassword")?r:r.toLowerCase()}};h(e,"\u0275fac",function(s){return new(s||e)(ne(an))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac}));let n=e;return n})();var e2=(()=>{let e=class e{constructor(){h(this,"varCustomFilters",{});h(this,"CustomFilters",new Na(this.varCustomFilters));h(this,"obserCustomFilters",this.CustomFilters.asObservable())}setCustomFilters(i){this.CustomFilters.next(i)}};h(e,"\u0275fac",function(r){return new(r||e)}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac}));let n=e;return n})();var t2=(()=>{let e=class e{constructor(i){h(this,"http");h(this,"currentHash","{{POST_BUILD_ENTERS_HASH_HERE}}");this.http=i}checkVersion(i){this.http.get(i+"?t="+new Date().getTime()).subscribe(r=>{let s=r.hash;this.hasHashChanged(this.currentHash,s)&&location.reload(),this.currentHash=s},r=>{console.error(r,"Could not get version")})}hasHashChanged(i,r){return!i||i==="{{POST_BUILD_ENTERS_HASH_HERE}}"?!1:i!==r}};h(e,"\u0275fac",function(r){return new(r||e)(ne(Bi))}),h(e,"\u0275prov",me({token:e,factory:e.\u0275fac}));let n=e;return n})();var n2=(()=>{let e=class e{};h(e,"\u0275fac",function(r){return new(r||e)}),h(e,"\u0275mod",Fn({type:e,bootstrap:[qS]})),h(e,"\u0275inj",Rn({providers:[{provide:m0,useValue:Y.recaptchaV3},cf(pf(),uf()),Ff({baseUrl:Y.rumiApiBaseUrl,retryCount:1}),g0,e2,t2,Cu,wS,_S(),ff(),Fm(()=>Gn),{provide:Gm,useClass:XS},{provide:"googleTagManagerId",useValue:"GTM-MV8KBF2"},ZS,{provide:Mf,useClass:JS}],imports:[f0,Tf,bv,xf,bf,wf,SS.forRoot({idle:2*60,timeout:2*60,ping:2*60}),h0,Df,Qh,$a.withServerTransition({appId:"futek"}),LS,Qh,Nf.forRoot({timeOut:3e3,positionClass:"toast-top-right"}),Cv.register("ngsw-worker.js",{enabled:!tf(),registrationStrategy:"registerWhenStable:30000"})]}));let n=e;return n})();var i2={production:!0,appInsights:{instrumentationKey:"cfa25243-d699-4d19-8688-3a1517eb5fbd"},versionCheckURL:"https://www.futek.com/version.json"};i2.production&&void 0;function AN(){var n=document.createElement("script");n.src=Y.OptimizelyCMSBaseUrl+"Util/javascript/communicationinjector.js",n.type="text/javascript",n.async=!0,document.head.appendChild(n)}var wm={};try{let n=new XMLHttpRequest;n.open("GET",Y.OptimizelyCMSBaseUrl+"api/featureflags",!1),n.send(null),n.status===200&&(wm=JSON.parse(n.responseText),window.featureFlags=wm)}catch(n){console.error("An error occurred while loading feature flags:",n)}document.readyState!=="loading"?(console.log("document is already ready, just execute code here"),r2()):document.addEventListener("DOMContentLoaded",function(n){console.log("document was not ready, place code here"),r2()});function r2(){hf([{provide:"APP_FEATURE_FLAGS",useValue:wm}]).bootstrapModule(n2).then(()=>{AN()}).catch(n=>console.error(n))}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.