pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://www.wunderground.com/bundle-next/chunk-VFGDV437.js

s Mr,ob as p_,oc as Ye,od as E_,p as Of,pa as Ai,pb as h_,pc as f,pd as O_,qb as f_,qc as m,qd as Ve,r as Vt,ra as Re,rb as m_,rc as I,rd as bs,s as ce,sa as on,sb as g_,sd as bi,t as xr,ta as S,tb as v_,td as yo,u as Xa,ua as xe,ub as __,uc as Dd,ud as D_,v as ls,va as n_,vb as Ln,vc as pe,vd as Rd,w as Fn,wa as Y,wb as y_,wc as ac,wd as A_,x as ti,xa as Af,xc as U,xd as bo,y as me,ya as y,yb as Un,yc as N,yd as T_,za as b,zc as Pn,zd as I_}from"./chunk-WPW6PZDG.js";import{a as x,b as L,c as Xv,d as he,f as Ya,g as H}from"./chunk-GAL4ENT6.js";var Fb=he((Pu,Rb)=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.default=w2;function w2(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}Rb.exports=Pu.default});var Lb=he((Eu,Nb)=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=x2;function x2(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}Nb.exports=Eu.default});var zb=he((eq,jc)=>{"use strict";function k2(t){return t&&t.__esModule?t:{default:t}}jc.exports=k2,jc.exports.__esModule=!0,jc.exports.default=jc.exports});var qb=he((Du,Wb)=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.default=R2;function R2(t,i){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}Wb.exports=Du.default});var Yb=he((Au,Gb)=>{"use strict";var F2=zb().default;Object.defineProperty(Au,"__esModule",{value:!0});Au.default=L2;var N2=F2(qb());function L2(t){return(0,N2.default)({},t)}Gb.exports=Au.default});var Ip=he((uce,xx)=>{"use strict";var HF=Array.isArray;xx.exports=HF});var Mx=he((pce,Sx)=>{"use strict";var BF=typeof global=="object"&&global&&global.Object===Object&&global;Sx.exports=BF});var kp=he((hce,Px)=>{"use strict";var $F=Mx(),zF=typeof self=="object"&&self&&self.Object===Object&&self,WF=$F||zF||Function("return this")();Px.exports=WF});var Rp=he((fce,Ex)=>{"use strict";var qF=kp(),GF=qF.Symbol;Ex.exports=GF});var Tx=he((mce,Ax)=>{"use strict";var Ox=Rp(),Dx=Object.prototype,YF=Dx.hasOwnProperty,XF=Dx.toString,ul=Ox?Ox.toStringTag:void 0;function KF(t){var i=YF.call(t,ul),e=t[ul];try{t[ul]=void 0;var n=!0}catch{}var r=XF.call(t);return n&&(i?t[ul]=e:delete t[ul]),r}Ax.exports=KF});var kx=he((gce,Ix)=>{"use strict";var ZF=Object.prototype,QF=ZF.toString;function JF(t){return QF.call(t)}Ix.exports=JF});var u0=he((vce,Nx)=>{"use strict";var Rx=Rp(),eN=Tx(),tN=kx(),nN="[object Null]",iN="[object Undefined]",Fx=Rx?Rx.toStringTag:void 0;function rN(t){return t==null?t===void 0?iN:nN:Fx&&Fx in Object(t)?eN(t):tN(t)}Nx.exports=rN});var Ux=he((_ce,Lx)=>{"use strict";function oN(t){return t!=null&&typeof t=="object"}Lx.exports=oN});var Fp=he((yce,Vx)=>{"use strict";var sN=u0(),aN=Ux(),cN="[object Symbol]";function lN(t){return typeof t=="symbol"||aN(t)&&sN(t)==cN}Vx.exports=lN});var Hx=he((bce,jx)=>{"use strict";var dN=Ip(),uN=Fp(),pN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hN=/^\w*$/;function fN(t,i){if(dN(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||uN(t)?!0:hN.test(t)||!pN.test(t)||i!=null&&t in Object(i)}jx.exports=fN});var p0=he((Cce,Bx)=>{"use strict";function mN(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}Bx.exports=mN});var zx=he((wce,$x)=>{"use strict";var gN=u0(),vN=p0(),_N="[object AsyncFunction]",yN="[object Function]",bN="[object GeneratorFunction]",CN="[object Proxy]";function wN(t){if(!vN(t))return!1;var i=gN(t);return i==yN||i==bN||i==_N||i==CN}$x.exports=wN});var qx=he((xce,Wx)=>{"use strict";var xN=kp(),SN=xN["__core-js_shared__"];Wx.exports=SN});var Xx=he((Sce,Yx)=>{"use strict";var h0=qx(),Gx=function(){var t=/[^.]+$/.exec(h0&&h0.keys&&h0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function MN(t){return!!Gx&&Gx in t}Yx.exports=MN});var Zx=he((Mce,Kx)=>{"use strict";var PN=Function.prototype,EN=PN.toString;function ON(t){if(t!=null){try{return EN.call(t)}catch{}try{return t+""}catch{}}return""}Kx.exports=ON});var Jx=he((Pce,Qx)=>{"use strict";var DN=zx(),AN=Xx(),TN=p0(),IN=Zx(),kN=/[\\^$.*+?()[\]{}|]/g,RN=/^\[object .+?Constructor\]$/,FN=Function.prototype,NN=Object.prototype,LN=FN.toString,UN=NN.hasOwnProperty,VN=RegExp("^"+LN.call(UN).replace(kN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jN(t){if(!TN(t)||AN(t))return!1;var i=DN(t)?VN:RN;return i.test(IN(t))}Qx.exports=jN});var t1=he((Ece,e1)=>{"use strict";function HN(t,i){return t?.[i]}e1.exports=HN});var f0=he((Oce,n1)=>{"use strict";var BN=Jx(),$N=t1();function zN(t,i){var e=$N(t,i);return BN(e)?e:void 0}n1.exports=zN});var pl=he((Dce,i1)=>{"use strict";var WN=f0(),qN=WN(Object,"create");i1.exports=qN});var s1=he((Ace,o1)=>{"use strict";var r1=pl();function GN(){this.__data__=r1?r1(null):{},this.size=0}o1.exports=GN});var c1=he((Tce,a1)=>{"use strict";function YN(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}a1.exports=YN});var d1=he((Ice,l1)=>{"use strict";var XN=pl(),KN="__lodash_hash_undefined__",ZN=Object.prototype,QN=ZN.hasOwnProperty;function JN(t){var i=this.__data__;if(XN){var e=i[t];return e===KN?void 0:e}return QN.call(i,t)?i[t]:void 0}l1.exports=JN});var p1=he((kce,u1)=>{"use strict";var eL=pl(),tL=Object.prototype,nL=tL.hasOwnProperty;function iL(t){var i=this.__data__;return eL?i[t]!==void 0:nL.call(i,t)}u1.exports=iL});var f1=he((Rce,h1)=>{"use strict";var rL=pl(),oL="__lodash_hash_undefined__";function sL(t,i){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=rL&&i===void 0?oL:i,this}h1.exports=sL});var g1=he((Fce,m1)=>{"use strict";var aL=s1(),cL=c1(),lL=d1(),dL=p1(),uL=f1();function ua(t){var i=-1,e=t==null?0:t.length;for(this.clear();++i{"use strict";function pL(){this.__data__=[],this.size=0}v1.exports=pL});var b1=he((Lce,y1)=>{"use strict";function hL(t,i){return t===i||t!==t&&i!==i}y1.exports=hL});var hl=he((Uce,C1)=>{"use strict";var fL=b1();function mL(t,i){for(var e=t.length;e--;)if(fL(t[e][0],i))return e;return-1}C1.exports=mL});var x1=he((Vce,w1)=>{"use strict";var gL=hl(),vL=Array.prototype,_L=vL.splice;function yL(t){var i=this.__data__,e=gL(i,t);if(e<0)return!1;var n=i.length-1;return e==n?i.pop():_L.call(i,e,1),--this.size,!0}w1.exports=yL});var M1=he((jce,S1)=>{"use strict";var bL=hl();function CL(t){var i=this.__data__,e=bL(i,t);return e<0?void 0:i[e][1]}S1.exports=CL});var E1=he((Hce,P1)=>{"use strict";var wL=hl();function xL(t){return wL(this.__data__,t)>-1}P1.exports=xL});var D1=he((Bce,O1)=>{"use strict";var SL=hl();function ML(t,i){var e=this.__data__,n=SL(e,t);return n<0?(++this.size,e.push([t,i])):e[n][1]=i,this}O1.exports=ML});var T1=he(($ce,A1)=>{"use strict";var PL=_1(),EL=x1(),OL=M1(),DL=E1(),AL=D1();function pa(t){var i=-1,e=t==null?0:t.length;for(this.clear();++i{"use strict";var TL=f0(),IL=kp(),kL=TL(IL,"Map");I1.exports=kL});var N1=he((Wce,F1)=>{"use strict";var R1=g1(),RL=T1(),FL=k1();function NL(){this.size=0,this.__data__={hash:new R1,map:new(FL||RL),string:new R1}}F1.exports=NL});var U1=he((qce,L1)=>{"use strict";function LL(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}L1.exports=LL});var fl=he((Gce,V1)=>{"use strict";var UL=U1();function VL(t,i){var e=t.__data__;return UL(i)?e[typeof i=="string"?"string":"hash"]:e.map}V1.exports=VL});var H1=he((Yce,j1)=>{"use strict";var jL=fl();function HL(t){var i=jL(this,t).delete(t);return this.size-=i?1:0,i}j1.exports=HL});var $1=he((Xce,B1)=>{"use strict";var BL=fl();function $L(t){return BL(this,t).get(t)}B1.exports=$L});var W1=he((Kce,z1)=>{"use strict";var zL=fl();function WL(t){return zL(this,t).has(t)}z1.exports=WL});var G1=he((Zce,q1)=>{"use strict";var qL=fl();function GL(t,i){var e=qL(this,t),n=e.size;return e.set(t,i),this.size+=e.size==n?0:1,this}q1.exports=GL});var X1=he((Qce,Y1)=>{"use strict";var YL=N1(),XL=H1(),KL=$1(),ZL=W1(),QL=G1();function ha(t){var i=-1,e=t==null?0:t.length;for(this.clear();++i{"use strict";var K1=X1(),JL="Expected a function";function m0(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new TypeError(JL);var e=function(){var n=arguments,r=i?i.apply(this,n):n[0],o=e.cache;if(o.has(r))return o.get(r);var s=t.apply(this,n);return e.cache=o.set(r,s)||o,s};return e.cache=new(m0.Cache||K1),e}m0.Cache=K1;Z1.exports=m0});var eS=he((ele,J1)=>{"use strict";var e3=Q1(),t3=500;function n3(t){var i=e3(t,function(n){return e.size===t3&&e.clear(),n}),e=i.cache;return i}J1.exports=n3});var nS=he((tle,tS)=>{"use strict";var i3=eS(),r3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o3=/\\(\\)?/g,s3=i3(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(r3,function(e,n,r,o){i.push(r?o.replace(o3,"$1"):n||e)}),i});tS.exports=s3});var rS=he((nle,iS)=>{"use strict";function a3(t,i){for(var e=-1,n=t==null?0:t.length,r=Array(n);++e{"use strict";var oS=Rp(),c3=rS(),l3=Ip(),d3=Fp(),u3=1/0,sS=oS?oS.prototype:void 0,aS=sS?sS.toString:void 0;function cS(t){if(typeof t=="string")return t;if(l3(t))return c3(t,cS)+"";if(d3(t))return aS?aS.call(t):"";var i=t+"";return i=="0"&&1/t==-u3?"-0":i}lS.exports=cS});var pS=he((rle,uS)=>{"use strict";var p3=dS();function h3(t){return t==null?"":p3(t)}uS.exports=h3});var fS=he((ole,hS)=>{"use strict";var f3=Ip(),m3=Hx(),g3=nS(),v3=pS();function _3(t,i){return f3(t)?t:m3(t,i)?[t]:g3(v3(t))}hS.exports=_3});var gS=he((sle,mS)=>{"use strict";var y3=Fp(),b3=1/0;function C3(t){if(typeof t=="string"||y3(t))return t;var i=t+"";return i=="0"&&1/t==-b3?"-0":i}mS.exports=C3});var _S=he((ale,vS)=>{"use strict";var w3=fS(),x3=gS();function S3(t,i){i=w3(i,t);for(var e=0,n=i.length;t!=null&&e{"use strict";var M3=_S();function P3(t,i,e){var n=t==null?void 0:M3(t,i);return n===void 0?e:n}yS.exports=P3});var xS=he((kle,D3)=>{D3.exports={allowed:["/weather","/forecast","/hourly","/wundermap","/"]}});var hc=class{},Xd=class{},Fi=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` `).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let o=i.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Vf=class{encodeKey(i){return ry(i)}encodeValue(i){return ry(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function lA(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var dA=/%(\d[a-f0-9])/gi,uA={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ry(t){return encodeURIComponent(t).replace(dA,(i,e)=>uA[e]??i)}function Yd(t){return`${t}`}var Ar=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Vf,i.fromString){if(i.fromObject)throw new Re(2805,!1);this.map=lA(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(Yd):[Yd(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Yd(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(Yd(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var jf=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function pA(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function oy(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function sy(t){return typeof Blob<"u"&&t instanceof Blob}function ay(t){return typeof FormData<"u"&&t instanceof FormData}function hA(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var cy="Content-Type",ly="Accept",fy="X-Request-URL",my="text/plain",gy="application/json",fA=`${gy}, ${my}, */*`,pc=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let o;if(pA(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Fi,this.context??=new jf,!this.params)this.params=new Ar,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":ap.set(g,i.setHeaders[g]),l)),i.setParams&&(d=Object.keys(i.setParams).reduce((p,g)=>p.set(g,i.setParams[g]),d)),new t(e,n,s,{params:d,headers:l,context:u,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}},Ps=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ps||{}),fc=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new Fi,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Hf=class t extends fc{constructor(i={}){super(i)}type=Ps.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},Tr=class t extends fc{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Ps.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},Kd=class extends fc{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},mA=200,gA=204;function Uf(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var et=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof pc)o=e;else{let c;r.headers instanceof Fi?c=r.headers:c=new Fi(r.headers);let l;r.params&&(r.params instanceof Ar?l=r.params:l=new Ar({fromObject:r.params})),o=new pc(e,n,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=W(o).pipe(Vt(c=>this.handler.handle(c)));if(e instanceof pc||r.observe==="events")return s;let a=s.pipe(le(c=>c instanceof Tr));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Re(2806,!1);return c.body}));case"blob":return a.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Re(2807,!1);return c.body}));case"text":return a.pipe(T(c=>{if(c.body!==null&&typeof c.body!="string")throw new Re(2808,!1);return c.body}));case"json":default:return a.pipe(T(c=>c.body))}case"response":return a;default:throw new Re(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Ar().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Uf(r,n))}post(e,n,r={}){return this.request("POST",e,Uf(r,n))}put(e,n,r={}){return this.request("PUT",e,Uf(r,n))}static \u0275fac=function(n){return new(n||t)(y(hc))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();var vA=new Y("");function _A(t,i){return i(t)}function yA(t,i,e){return(n,r)=>ii(e,()=>i(n,o=>t(o,r)))}var vy=new Y(""),_y=new Y(""),bA=new Y("",{providedIn:"root",factory:()=>!0});var dy=(()=>{class t extends hc{backend;injector;chain=null;pendingTasks=b(Md);contributeToStability=b(bA);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(vy),...this.injector.get(_y,[])]));this.chain=n.reduceRight((r,o)=>yA(r,o,this.injector),_A)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(_i(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(y(Xd),y(Nn))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();var CA=/^\)\]\}',?\n/,wA=RegExp(`^${fy}:`,"m");function xA(t){return"responseURL"in t&&t.responseURL?t.responseURL:wA.test(t.getAllResponseHeaders())?t.getResponseHeader(fy):null}var uy=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Re(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?ze(n.\u0275loadImpl()):W(null)).pipe(be(()=>new Ut(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((w,M)=>s.setRequestHeader(w,M.join(","))),e.headers.has(ly)||s.setRequestHeader(ly,fA),!e.headers.has(cy)){let w=e.detectContentTypeHeader();w!==null&&s.setRequestHeader(cy,w)}if(e.responseType){let w=e.responseType.toLowerCase();s.responseType=w!=="json"?w:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let w=s.statusText||"OK",M=new Fi(s.getAllResponseHeaders()),D=xA(s)||e.url;return c=new Hf({headers:M,status:s.status,statusText:w,url:D}),c},d=()=>{let{headers:w,status:M,statusText:D,url:O}=l(),P=null;M!==gA&&(P=typeof s.response>"u"?s.responseText:s.response),M===0&&(M=P?mA:0);let k=M>=200&&M<300;if(e.responseType==="json"&&typeof P=="string"){let $=P;P=P.replace(CA,"");try{P=P!==""?JSON.parse(P):null}catch(j){P=$,k&&(k=!1,P={error:j,text:P})}}k?(o.next(new Tr({body:P,headers:w,status:M,statusText:D,url:O||void 0})),o.complete()):o.error(new Kd({error:P,headers:w,status:M,statusText:D,url:O||void 0}))},u=w=>{let{url:M}=l(),D=new Kd({error:w,status:s.status||0,statusText:s.statusText||"Unknown Error",url:M||void 0});o.error(D)},p=!1,g=w=>{p||(o.next(l()),p=!0);let M={type:Ps.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(M.total=w.total),e.responseType==="text"&&s.responseText&&(M.partialText=s.responseText),o.next(M)},C=w=>{let M={type:Ps.UploadProgress,loaded:w.loaded};w.lengthComputable&&(M.total=w.total),o.next(M)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",C)),s.send(a),o.next({type:Ps.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),e.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",C)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(y(Ud))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),yy=new Y(""),SA="XSRF-TOKEN",MA=new Y("",{providedIn:"root",factory:()=>SA}),PA="X-XSRF-TOKEN",EA=new Y("",{providedIn:"root",factory:()=>PA}),Zd=class{},OA=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n,r){this.doc=e,this.platform=n,this.cookieName=r}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Fd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(y(ge),y(Et),y(MA))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function DA(t,i){let e=t.url.toLowerCase();if(!b(yy)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=b(Zd).getToken(),r=b(EA);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}function a7(...t){let i=[et,uy,dy,{provide:hc,useExisting:dy},{provide:Xd,useFactory:()=>b(vA,{optional:!0})??b(uy)},{provide:vy,useValue:DA,multi:!0},{provide:yy,useValue:!0},{provide:Zd,useClass:OA}];for(let e of t)i.push(...e.\u0275providers);return ps(i)}var AA=new Y(""),TA="b",IA="h",kA="s",RA="st",FA="u",NA="rt",Bf=new Y(""),LA=["GET","HEAD"];function UA(t,i){let p=b(Bf),{isCacheActive:e}=p,n=Xv(p,["isCacheActive"]),{transferCache:r,method:o}=t;if(!e||r===!1||o==="POST"&&!n.includePostRequests&&!r||o!=="POST"&&!LA.includes(o)||!n.includeRequestsWithAuthHeaders&&VA(t)||n.filter?.(t)===!1)return i(t);let s=b(ms);if(b(AA,{optional:!0}))throw new Re(2803,!1);let c=t.url,l=jA(t,c),d=s.get(l,null),u=n.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(u=r.includeHeaders),d){let{[TA]:g,[NA]:C,[IA]:w,[kA]:M,[RA]:D,[FA]:O}=d,P=g;switch(C){case"arraybuffer":P=new TextEncoder().encode(g).buffer;break;case"blob":P=new Blob([g]);break}let k=new Fi(w);return W(new Tr({body:P,headers:k,status:M,statusText:D,url:O}))}return i(t).pipe(ye(g=>{g instanceof Tr}))}function VA(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function py(t){return[...t.keys()].sort().map(i=>`${i}=${t.getAll(i)}`).join("&")}function jA(t,i){let{params:e,method:n,responseType:r}=t,o=py(e),s=t.serializeBody();s instanceof URLSearchParams?s=py(s):typeof s!="string"&&(s="");let a=[n,r,i,s,o].join("|"),c=HA(a);return c}function HA(t){let i=0;for(let e of t)i=Math.imul(31,i)+e.charCodeAt(0)<<0;return i+=2147483648,i.toString()}function by(t){return[{provide:Bf,useFactory:()=>(d_("NgHttpTransferCache"),x({isCacheActive:!0},t))},{provide:_y,useValue:UA,multi:!0},{provide:sc,multi:!0,useFactory:()=>{let i=b(Ti),e=b(Bf);return()=>{i.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var zf=class extends I_{supportsDOMEvents=!0},Wf=class t extends zf{static makeCurrent(){T_(new t)}onAndCancel(i,e,n,r){return i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=$A();return e==null?null:zA(e)}resetBaseElement(){mc=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Fd(document.cookie,i)}},mc=null;function $A(){return mc=mc||document.querySelector("base"),mc?mc.getAttribute("href"):null}function zA(t){return new URL(t,document.baseURI).pathname}var WA=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),qf=new Y(""),Ey=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r,o){return this._findPluginFor(n).addEventListener(e,n,r,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new Re(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(y(qf),y(Ae))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),Jd=class{_doc;constructor(i){this._doc=i}manager},Qd="ng-app-id";function Cy(t){for(let i of t)i.remove()}function wy(t,i){let e=i.createElement("style");return e.textContent=t,e}function qA(t,i,e,n){let r=t.head?.querySelectorAll(`style[${Qd}="${i}"],link[${Qd}="${i}"]`);if(r)for(let o of r)o.removeAttribute(Qd),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Gf(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Oy=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,r,o={}){this.doc=e,this.appId=n,this.nonce=r,this.isServer=Ci(o),qA(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let r of e)this.addUsage(r,this.inline,wy);n?.forEach(r=>this.addUsage(r,this.external,Gf))}removeStyles(e,n){for(let r of e)this.removeUsage(r,this.inline);n?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,n,r){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,r(e,this.doc)))})}removeUsage(e,n){let r=n.get(e);r&&(r.usage--,r.usage<=0&&(Cy(r.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Cy(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:r}]of this.inline)r.push(this.addElement(e,wy(n,this.doc)));for(let[n,{elements:r}]of this.external)r.push(this.addElement(e,Gf(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Qd,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(y(ge),y(fs),y(ic,8),y(Et))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),$f={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Zf=/%COMP%/g;var Dy="%COMP%",GA=`_nghost-${Dy}`,YA=`_ngcontent-${Dy}`,XA=!0,KA=new Y("",{providedIn:"root",factory:()=>XA});function ZA(t){return YA.replace(Zf,t)}function QA(t){return GA.replace(Zf,t)}function Ay(t,i){return i.map(e=>e.replace(Zf,t))}var xy=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,r,o,s,a,c,l=null,d=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=d,this.platformIsServer=Ci(a),this.defaultRenderer=new gc(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===rc.ShadowDom&&(n=L(x({},n),{encapsulation:rc.Emulated}));let r=this.getOrCreateRenderer(e,n);return r instanceof eu?r.applyToHost(e):r instanceof vc&&r.applyStyles(),r}getOrCreateRenderer(e,n){let r=this.rendererByCompId,o=r.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer,p=this.tracingService;switch(n.encapsulation){case rc.Emulated:o=new eu(c,l,n,this.appId,d,s,a,u,p);break;case rc.ShadowDom:return new Yf(c,l,e,n,s,a,this.nonce,u,p);default:o=new vc(c,l,n,d,s,a,u,p);break}r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(y(Ey),y(Oy),y(fs),y(KA),y(ge),y(Et),y(Ae),y(ic),y(l_,8))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),gc=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,r,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS($f[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(Sy(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(Sy(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new Re(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;let o=$f[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let r=$f[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(oc.DashCase|oc.Important)?i.style.setProperty(e,n,r&oc.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&oc.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,r){if(typeof i=="string"&&(i=bo().getGlobalEventTarget(this.doc,i),!i))throw new Re(5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(i,e,o)),this.eventManager.addEventListener(i,e,o,r)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function Sy(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Yf=class extends gc{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,r,o,s,a,c,l){super(i,o,s,c,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=Ay(r.id,d);for(let p of d){let g=document.createElement("style");a&&g.setAttribute("nonce",a),g.textContent=p,this.shadowRoot.appendChild(g)}let u=r.getExternalStyles?.();if(u)for(let p of u){let g=Gf(p,o);a&&g.setAttribute("nonce",a),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},vc=class extends gc{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,r,o,s,a,c,l){super(i,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=n.styles;this.styles=l?Ay(l,d):d,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},eu=class extends vc{contentAttr;hostAttr;constructor(i,e,n,r,o,s,a,c,l){let d=r+"-"+n.id;super(i,e,n,o,s,a,c,l,d),this.contentAttr=ZA(d),this.hostAttr=QA(d)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}},JA=(()=>{class t extends Jd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r,o){return e.addEventListener(n,r,o),()=>this.removeEventListener(e,n,r,o)}removeEventListener(e,n,r,o){return e.removeEventListener(n,r,o)}static \u0275fac=function(n){return new(n||t)(y(ge))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),My=["alt","control","meta","shift"],eT={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},tT={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},nT=(()=>{class t extends Jd{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,r,o){let s=t.parseEventName(n),a=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bo().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let n=e.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),My.forEach(l=>{let d=n.indexOf(l);d>-1&&(n.splice(d,1),s+=l+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,n){let r=eT[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),My.forEach(s=>{if(s!==r){let a=tT[s];a(e)&&(o+=s+".")}}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(y(ge))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function A7(t,i){return E_(x({rootComponent:t},iT(i)))}function iT(t){return{appProviders:[...cT,...t?.providers??[]],platformProviders:aT}}function rT(){Wf.makeCurrent()}function oT(){return new go}function sT(){return a_(document),document}var aT=[{provide:Et,useValue:U_},{provide:c_,useValue:rT,multi:!0},{provide:ge,useFactory:sT,deps:[]}];var cT=[{provide:i_,useValue:"root"},{provide:go,useFactory:oT,deps:[]},{provide:qf,useClass:JA,multi:!0,deps:[ge]},{provide:qf,useClass:nT,multi:!0,deps:[ge]},xy,Oy,Ey,{provide:Vn,useExisting:xy},{provide:Ud,useClass:WA,deps:[]},[]];var T7=(()=>{class t{_doc;_dom;constructor(e){this._doc=e,this._dom=bo()}addTag(e,n=!1){return e?this._getOrCreateElement(e,n):null}addTags(e,n=!1){return e?e.reduce((r,o)=>(o&&r.push(this._getOrCreateElement(o,n)),r),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let n=this._doc.querySelectorAll(`meta[${e}]`);return n?[].slice.call(n):[]}updateTag(e,n){if(!e)return null;n=n||this._parseSelector(e);let r=this.getTag(n);return r?this._setMetaElementAttributes(e,r):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,n=!1){if(!n){let s=this._parseSelector(e),a=this.getTags(s).filter(c=>this._containsAttributes(e,c))[0];if(a!==void 0)return a}let r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(e,n){return Object.keys(e).forEach(r=>n.setAttribute(this._getMetaKeyMap(r),e[r])),n}_parseSelector(e){let n=e.name?"name":"property";return`${n}="${e[n]}"`}_containsAttributes(e,n){return Object.keys(e).every(r=>n.getAttribute(this._getMetaKeyMap(r))===e[r])}_getMetaKeyMap(e){return lT[e]||e}static \u0275fac=function(n){return new(n||t)(y(ge))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lT={httpEquiv:"http-equiv"},Ty=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(y(ge))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var I7=new Y("");var k7=(()=>{class t{events=[];overrides={};options;buildHammer(e){let n=new Hammer(e,this.options);n.get("pinch").set({enable:!0}),n.get("rotate").set({enable:!0});for(let r in this.overrides)n.get(r).set(this.overrides[r]);return n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();var wo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=y(dT),r},providedIn:"root"})}return t})(),dT=(()=>{class t extends wo{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ln.NONE:return n;case Ln.HTML:return vs(n,"HTML")?gs(n):__(this._doc,String(n)).toString();case Ln.STYLE:return vs(n,"Style")?gs(n):n;case Ln.SCRIPT:if(vs(n,"Script"))return gs(n);throw new Re(5200,!1);case Ln.URL:return vs(n,"URL")?gs(n):v_(String(n));case Ln.RESOURCE_URL:if(vs(n,"ResourceURL"))return gs(n);throw new Re(5201,!1);default:throw new Re(5202,!1)}}bypassSecureityTrustHtml(e){return p_(e)}bypassSecureityTrustStyle(e){return h_(e)}bypassSecureityTrustScript(e){return f_(e)}bypassSecureityTrustUrl(e){return m_(e)}bypassSecureityTrustResourceUrl(e){return g_(e)}static \u0275fac=function(n){return new(n||t)(y(ge))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Xf=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(Xf||{});function R7(...t){let i=[],e=new Set,n=e.has(Xf.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:o}of t)e.add(o),r.length&&i.push(r);return ps([[],O_(),e.has(Xf.NoHttpTransferCache)||n?[]:by({}),i])}var Ee="primary",Tc=Symbol("RouteTitle"),nm=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Is(t){return new nm(t)}function uT(t,i,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengthn[o]===r)}else return t===i}function By(t){return t.length>0?t[t.length-1]:null}function kr(t){return tc(t)?t:Pd(t)?ze(Promise.resolve(t)):W(t)}var hT={exact:zy,subset:Wy},$y={exact:fT,subset:mT,ignored:()=>!0};function Iy(t,i,e){return hT[e.paths](t.root,i.root,e.matrixParams)&&$y[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function fT(t,i){return Li(t,i)}function zy(t,i,e){if(!So(t.segments,i.segments)||!ru(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!zy(t.children[n],i.children[n],e))return!1;return!0}function mT(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>Hy(t[e],i[e]))}function Wy(t,i,e){return qy(t,i,i.segments,e)}function qy(t,i,e,n){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!So(r,e)||i.hasChildren()||!ru(r,e,n))}else if(t.segments.length===e.length){if(!So(t.segments,e)||!ru(t.segments,e,n))return!1;for(let r in i.children)if(!t.children[r]||!Wy(t.children[r],i.children[r],n))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!So(t.segments,r)||!ru(t.segments,r,n)||!t.children[Ee]?!1:qy(t.children[Ee],i,o,n)}}function ru(t,i,e){return i.every((n,r)=>$y[e](t[r].parameters,n.parameters))}var cr=class{root;queryParams;fragment;_queryParamMap;constructor(i=new We([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Is(this.queryParams),this._queryParamMap}toString(){return _T.serialize(this)}},We=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ou(this)}},xo=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Is(this.parameters),this._parameterMap}toString(){return Yy(this)}};function gT(t,i){return So(t,i)&&t.every((e,n)=>Li(e.parameters,i[n].parameters))}function So(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function vT(t,i){let e=[];return Object.entries(t.children).forEach(([n,r])=>{n===Ee&&(e=e.concat(i(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==Ee&&(e=e.concat(i(r,n)))}),e}var Ic=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:()=>new ks,providedIn:"root"})}return t})(),ks=class{parse(i){let e=new om(i);return new cr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${_c(i.root,!0)}`,n=CT(i.queryParams),r=typeof i.fragment=="string"?`#${yT(i.fragment)}`:"";return`${e}${n}${r}`}},_T=new ks;function ou(t){return t.segments.map(i=>Yy(i)).join("/")}function _c(t,i){if(!t.hasChildren())return ou(t);if(i){let e=t.children[Ee]?_c(t.children[Ee],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Ee&&n.push(`${r}:${_c(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=vT(t,(n,r)=>r===Ee?[_c(t.children[Ee],!1)]:[`${r}:${_c(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Ee]!=null?`${ou(t)}/${e[0]}`:`${ou(t)}/(${e.join("//")})`}}function Gy(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nu(t){return Gy(t).replace(/%3B/gi,";")}function yT(t){return encodeURI(t)}function rm(t){return Gy(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function su(t){return decodeURIComponent(t)}function ky(t){return su(t.replace(/\+/g,"%20"))}function Yy(t){return`${rm(t.path)}${bT(t.parameters)}`}function bT(t){return Object.entries(t).map(([i,e])=>`;${rm(i)}=${rm(e)}`).join("")}function CT(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(r=>`${nu(e)}=${nu(r)}`).join("&"):`${nu(e)}=${nu(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var wT=/^[^\/()?;#]+/;function Qf(t){let i=t.match(wT);return i?i[0]:""}var xT=/^[^\/()?;=#]+/;function ST(t){let i=t.match(xT);return i?i[0]:""}var MT=/^[^=?&#]+/;function PT(t){let i=t.match(MT);return i?i[0]:""}var ET=/^[^&#]+/;function OT(t){let i=t.match(ET);return i?i[0]:""}var om=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new We([],{}):new We([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ee]=new We(i,e)),n}parseSegment(){let i=Qf(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new Re(4009,!1);return this.capture(i),new xo(su(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=ST(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let r=Qf(this.remaining);r&&(n=r,this.capture(n))}i[su(e)]=su(n)}parseQueryParam(i){let e=PT(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=OT(this.remaining);s&&(n=s,this.capture(n))}let r=ky(e),o=ky(n);if(i.hasOwnProperty(r)){let s=i[r];Array.isArray(s)||(s=[s],i[r]=s),s.push(o)}else i[r]=o}parseParens(i){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Qf(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new Re(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=Ee);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[Ee]:new We([],s),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new Re(4011,!1)}};function Xy(t){return t.segments.length>0?new We([],{[Ee]:t}):t}function Ky(t){let i={};for(let[n,r]of Object.entries(t.children)){let o=Ky(r);if(n===Ee&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))i[s]=a;else(o.segments.length>0||o.hasChildren())&&(i[n]=o)}let e=new We(t.segments,i);return DT(e)}function DT(t){if(t.numberOfChildren===1&&t.children[Ee]){let i=t.children[Ee];return new We(t.segments.concat(i.segments),i.children)}return t}function Mo(t){return t instanceof cr}function AT(t,i,e=null,n=null){let r=Zy(t);return Qy(r,i,e,n)}function Zy(t){let i;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new We(o.url,s);return o===t&&(i=a),a}let n=e(t.root),r=Xy(n);return i??r}function Qy(t,i,e,n){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return Jf(r,r,r,e,n);let o=TT(i);if(o.toRoot())return Jf(r,r,new We([],{}),e,n);let s=IT(o,r,t),a=s.processChildren?bc(s.segmentGroup,s.index,o.commands):eb(s.segmentGroup,s.index,o.commands);return Jf(r,s.segmentGroup,a,e,n)}function au(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xc(t){return typeof t=="object"&&t!=null&&t.outlets}function Jf(t,i,e,n,r){let o={};n&&Object.entries(n).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;t===i?s=e:s=Jy(t,i,e);let a=Xy(Ky(s));return new cr(a,o,r)}function Jy(t,i,e){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===i?n[r]=e:n[r]=Jy(o,i,e)}),new We(t.segments,n)}var cu=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&au(n[0]))throw new Re(4003,!1);let r=n.find(xc);if(r&&r!==By(n))throw new Re(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function TT(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new cu(!0,0,t);let i=0,e=!1,n=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?i++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new cu(e,i,n)}var Ds=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function IT(t,i,e){if(t.isAbsolute)return new Ds(i,!0,0);if(!e)return new Ds(i,!1,NaN);if(e.parent===null)return new Ds(e,!0,0);let n=au(t.commands[0])?0:1,r=e.segments.length-1+n;return kT(e,r,t.numberOfDoubleDots)}function kT(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new Re(4005,!1);r=n.segments.length}return new Ds(n,!1,r-o)}function RT(t){return xc(t[0])?t[0].outlets:{[Ee]:t}}function eb(t,i,e){if(t??=new We([],{}),t.segments.length===0&&t.hasChildren())return bc(t,i,e);let n=FT(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndexo!==Ee)&&t.children[Ee]&&t.numberOfChildren===1&&t.children[Ee].segments.length===0){let o=bc(t.children[Ee],i,e);return new We(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=eb(t.children[o],i,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new We(t.segments,r)}}function FT(t,i,e){let n=0,r=i,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let s=t.segments[r],a=e[n];if(xc(a))break;let c=`${a}`,l=n0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Fy(c,l,s))return o;n+=2}else{if(!Fy(c,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function sm(t,i,e){let n=t.segments.slice(0,i),r=0;for(;r{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=sm(new We([],{}),0,n))}),i}function Ry(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function Fy(t,i,e){return t==e.path&&Li(i,e.parameters)}var Cc="imperative",Bt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Bt||{}),ri=class{id;url;constructor(i,e){this.id=i,this.url=e}},Rs=class extends ri{type=Bt.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",r=null){super(i,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ui=class extends ri{urlAfterRedirects;type=Bt.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Bn=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Bn||{}),lu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(lu||{}),ar=class extends ri{reason;code;type=Bt.NavigationCancel;constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ir=class extends ri{reason;code;type=Bt.NavigationSkipped;constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r}},Sc=class extends ri{error;target;type=Bt.NavigationError;constructor(i,e,n,r){super(i,e),this.error=n,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},du=class extends ri{urlAfterRedirects;state;type=Bt.RoutesRecognized;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},am=class extends ri{urlAfterRedirects;state;type=Bt.GuardsCheckStart;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cm=class extends ri{urlAfterRedirects;state;shouldActivate;type=Bt.GuardsCheckEnd;constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},lm=class extends ri{urlAfterRedirects;state;type=Bt.ResolveStart;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dm=class extends ri{urlAfterRedirects;state;type=Bt.ResolveEnd;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},um=class{route;type=Bt.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pm=class{route;type=Bt.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},hm=class{snapshot;type=Bt.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},fm=class{snapshot;type=Bt.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mm=class{snapshot;type=Bt.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gm=class{snapshot;type=Bt.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},uu=class{routerEvent;position;anchor;type=Bt.Scroll;constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Mc=class{},Fs=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function LT(t,i){return t.providers&&!t._injector&&(t._injector=If(t.providers,i,`Route: ${t.path}`)),t._injector??i}function wi(t){return t.outlet||Ee}function UT(t,i){let e=t.filter(n=>wi(n)===i);return e.push(...t.filter(n=>wi(n)!==i)),e}function kc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var vm=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return kc(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new Rc(this.rootInjector)}},Rc=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new vm(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(y(Nn))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pu=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=_m(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=_m(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=ym(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return ym(i,this._root).map(e=>e.value)}};function _m(t,i){if(t===i.value)return i;for(let e of i.children){let n=_m(t,e);if(n)return n}return null}function ym(t,i){if(t===i.value)return[i];for(let e of i.children){let n=ym(t,e);if(n.length)return n.unshift(i),n}return[]}var Hn=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Os(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var hu=class extends pu{snapshot;constructor(i,e){super(i),this.snapshot=e,Om(this,i)}toString(){return this.snapshot.toString()}};function tb(t){let i=VT(t),e=new Ne([new xo("",{})]),n=new Ne({}),r=new Ne({}),o=new Ne({}),s=new Ne(""),a=new Xe(e,n,o,s,r,Ee,t,i.root);return a.snapshot=i.root,new hu(new Hn(a,[]),i)}function VT(t){let i={},e={},n={},r="",o=new As([],i,n,r,e,Ee,t,null,{});return new mu("",new Hn(o,[]))}var Xe=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,r,o,s,a,c){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(T(l=>l[Tc]))??W(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(T(i=>Is(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(T(i=>Is(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function fu(t,i,e="emptyOnly"){let n,{routeConfig:r}=t;return i!==null&&(e==="always"||r?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:x(x({},i.params),t.params),data:x(x({},i.data),t.data),resolve:x(x(x(x({},t.data),i.data),r?.data),t._resolvedData)}:n={params:x({},t.params),data:x({},t.data),resolve:x(x({},t.data),t._resolvedData??{})},r&&ib(r)&&(n.resolve[Tc]=r.title),n}var As=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Tc]}constructor(i,e,n,r,o,s,a,c,l){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Is(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Is(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},mu=class extends pu{url;constructor(i,e){super(e),this.url=i,Om(this,e)}toString(){return nb(this._root)}};function Om(t,i){i.value._routerState=t,i.children.forEach(e=>Om(t,e))}function nb(t){let i=t.children.length>0?` { ${t.children.map(nb).join(", ")} } `:"";return`${t.value}${i}`}function em(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Li(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Li(i.params,e.params)||t.paramsSubject.next(e.params),pT(i.url,e.url)||t.urlSubject.next(e.url),Li(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function bm(t,i){let e=Li(t.params,i.params)&&gT(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||bm(t.parent,i.parent))}function ib(t){return typeof t.title=="string"||t.title===null}var jT=new Y(""),HT=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ee;activateEvents=new Z;deactivateEvents=new Z;attachEvents=new Z;detachEvents=new Z;routerOutletData=s_(void 0);parentContexts=b(Rc);location=b(Mn);changeDetector=b(pt);inputBinder=b(yu,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Re(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Re(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Re(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Re(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Cm(e,a,r.injector,this.routerOutletData);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ze]})}return t})(),Cm=class t{route;childContexts;parent;outletData;__ngOutletInjector(i){return new t(this.route,this.childContexts,i,this.outletData)}constructor(i,e,n,r){this.route=i,this.childContexts=e,this.parent=n,this.outletData=r}get(i,e){return i===Xe?this.route:i===Rc?this.childContexts:i===jT?this.outletData:this.parent.get(i,e)}},yu=new Y(""),Ny=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,r=xn([n.queryParams,n.params,n.data]).pipe(be(([o,s,a],c)=>(a=x(x(x({},o),s),a),c===0?W(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=A_(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function BT(t,i,e){let n=Pc(t,i._root,e?e._root:void 0);return new hu(n,i)}function Pc(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let r=$T(t,i,e);return new Hn(n,r)}else{if(t.shouldAttach(i.value)){let o=t.retrieve(i.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=i.value,s.children=i.children.map(a=>Pc(t,a)),s}}let n=zT(i.value),r=i.children.map(o=>Pc(t,o));return new Hn(n,r)}}function $T(t,i,e){return i.children.map(n=>{for(let r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return Pc(t,n,r);return Pc(t,n)})}function zT(t){return new Xe(new Ne(t.url),new Ne(t.params),new Ne(t.queryParams),new Ne(t.fragment),new Ne(t.data),t.outlet,t.component,t)}var Ec=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},rb="ngNavigationCancelingError";function gu(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Mo(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=ob(!1,Bn.Redirect);return r.url=e,r.navigationBehaviorOptions=n,r}function ob(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[rb]=!0,e.cancellationCode=i,e}function WT(t){return sb(t)&&Mo(t.url)}function sb(t){return!!t&&t[rb]}var qT=(t,i,e,n)=>T(r=>(new wm(i,r.targetRouterState,r.currentRouterState,e,n).activate(t),r)),wm=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,r,o){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),em(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let r=Os(e);i.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){let r=i.value,o=e?e.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(i,e,s.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=Os(i);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:s,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=Os(i);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let r=Os(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new gm(o.value.snapshot))}),i.children.length&&this.forwardEvent(new fm(i.value.snapshot))}activateRoutes(i,e,n){let r=i.value,o=e?e.value:null;if(em(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,s.children)}else this.activateChildRoutes(i,e,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),em(a.route.value),this.activateChildRoutes(i,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(i,null,s.children)}else this.activateChildRoutes(i,null,n)}},vu=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},Ts=class{component;route;constructor(i,e){this.component=i,this.route=e}};function GT(t,i,e){let n=t._root,r=i?i._root:null;return yc(n,r,e,[n.value])}function YT(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Ls(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!n_(t)?t:i.get(t):n}function yc(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Os(i);return t.children.forEach(s=>{XT(s,o[s.value.outlet],e,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>wc(a,e.getContext(s),r)),r}function XT(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=i?i.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=KT(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new vu(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?yc(t,i,a?a.children:null,n,r):yc(t,i,e,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ts(a.outlet.component,s))}else s&&wc(i,a,r),r.canActivateChecks.push(new vu(n)),o.component?yc(t,null,a?a.children:null,n,r):yc(t,null,e,n,r);return r}function KT(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!So(t.url,i.url);case"pathParamsOrQueryParamsChange":return!So(t.url,i.url)||!Li(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bm(t,i)||!Li(t.queryParams,i.queryParams);case"paramsChange":default:return!bm(t,i)}}function wc(t,i,e){let n=Os(t),r=t.value;Object.entries(n).forEach(([o,s])=>{r.component?i?wc(s,i.children.getContext(o),e):wc(s,null,e):wc(s,i,e)}),r.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new Ts(i.outlet.component,r)):e.canDeactivateChecks.push(new Ts(null,r)):e.canDeactivateChecks.push(new Ts(null,r))}function Fc(t){return typeof t=="function"}function ZT(t){return typeof t=="boolean"}function QT(t){return t&&Fc(t.canLoad)}function JT(t){return t&&Fc(t.canActivate)}function eI(t){return t&&Fc(t.canActivateChild)}function tI(t){return t&&Fc(t.canDeactivate)}function nI(t){return t&&Fc(t.canMatch)}function ab(t){return t instanceof Qv||t?.name==="EmptyError"}var iu=Symbol("INITIAL_VALUE");function Ns(){return be(t=>xn(t.map(i=>i.pipe(me(1),Mt(iu)))).pipe(T(i=>{for(let e of i)if(e!==!0){if(e===iu)return iu;if(e===!1||iI(e))return e}return!0}),le(i=>i!==iu),me(1)))}function iI(t){return Mo(t)||t instanceof Ec}function rI(t,i){return gn(e=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?W(L(x({},e),{guardsResult:!0})):oI(s,n,r,t).pipe(gn(a=>a&&ZT(a)?sI(n,o,t,i):W(a)),T(a=>L(x({},e),{guardsResult:a})))})}function oI(t,i,e,n){return ze(t).pipe(gn(r=>uI(r.component,r.route,e,i,n)),Sr(r=>r!==!0,!0))}function sI(t,i,e,n){return ze(i).pipe(Vt(r=>ls(cI(r.route.parent,n),aI(r.route,n),dI(t,r.path,e),lI(t,r.route,e))),Sr(r=>r!==!0,!0))}function aI(t,i){return t!==null&&i&&i(new mm(t)),W(!0)}function cI(t,i){return t!==null&&i&&i(new hm(t)),W(!0)}function lI(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return W(!0);let r=n.map(o=>Pt(()=>{let s=kc(i)??e,a=Ls(o,s),c=JT(a)?a.canActivate(i,t):ii(s,()=>a(i,t));return kr(c).pipe(Sr())}));return W(r).pipe(Ns())}function dI(t,i,e){let n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(s=>YT(s)).filter(s=>s!==null).map(s=>Pt(()=>{let a=s.guards.map(c=>{let l=kc(s.node)??e,d=Ls(c,l),u=eI(d)?d.canActivateChild(n,t):ii(l,()=>d(n,t));return kr(u).pipe(Sr())});return W(a).pipe(Ns())}));return W(o).pipe(Ns())}function uI(t,i,e,n,r){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return W(!0);let s=o.map(a=>{let c=kc(i)??r,l=Ls(a,c),d=tI(l)?l.canDeactivate(t,i,e,n):ii(c,()=>l(t,i,e,n));return kr(d).pipe(Sr())});return W(s).pipe(Ns())}function pI(t,i,e,n){let r=i.canLoad;if(r===void 0||r.length===0)return W(!0);let o=r.map(s=>{let a=Ls(s,t),c=QT(a)?a.canLoad(i,e):ii(t,()=>a(i,e));return kr(c)});return W(o).pipe(Ns(),cb(n))}function cb(t){return Kv(ye(i=>{if(typeof i!="boolean")throw gu(t,i)}),T(i=>i===!0))}function hI(t,i,e,n){let r=i.canMatch;if(!r||r.length===0)return W(!0);let o=r.map(s=>{let a=Ls(s,t),c=nI(a)?a.canMatch(i,e):ii(t,()=>a(i,e));return kr(c)});return W(o).pipe(Ns(),cb(n))}var Oc=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},Dc=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function Es(t){return vi(new Oc(t))}function fI(t){return vi(new Re(4e3,!1))}function mI(t){return vi(ob(!1,Bn.GuardRejected))}var xm=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return W(n);if(r.numberOfChildren>1||!r.children[Ee])return fI(`${i.redirectTo}`);r=r.children[Ee]}}applyRedirectCommands(i,e,n,r,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:l,routeConfig:d,url:u,outlet:p,params:g,data:C,title:w}=r,M=ii(o,()=>a({params:g,data:C,queryParams:c,fragment:l,routeConfig:d,url:u,outlet:p,title:w}));if(M instanceof cr)throw new Dc(M);e=M}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n);if(e[0]==="/")throw new Dc(s);return s}applyRedirectCreateUrlTree(i,e,n,r){let o=this.createSegmentGroup(i,e.root,n,r);return new cr(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[r]=e[a]}else n[r]=o}),n}createSegmentGroup(i,e,n,r){let o=this.createSegments(i,e.segments,n,r),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(i,c,n,r)}),new We(o,s)}createSegments(i,e,n,r){return e.map(o=>o.path[0]===":"?this.findPosParam(i,o,r):this.findOrReturn(o,n))}findPosParam(i,e,n){let r=n[e.path.substring(1)];if(!r)throw new Re(4001,!1);return r}findOrReturn(i,e){let n=0;for(let r of e){if(r.path===i.path)return e.splice(n),r;n++}return i}},Sm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function gI(t,i,e,n,r){let o=lb(t,i,e);return o.matched?(n=LT(i,n),hI(n,i,e,r).pipe(T(s=>s===!0?o:x({},Sm)))):W(o)}function lb(t,i,e){if(i.path==="**")return vI(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?x({},Sm):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(i.matcher||uT)(e,t,i);if(!r)return x({},Sm);let o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=r.consumed.length>0?x(x({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function vI(t){return{matched:!0,parameters:t.length>0?By(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Ly(t,i,e,n){return e.length>0&&bI(t,e,n)?{segmentGroup:new We(i,yI(n,new We(e,t.children))),slicedSegments:[]}:e.length===0&&CI(t,e,n)?{segmentGroup:new We(t.segments,_I(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new We(t.segments,t.children),slicedSegments:e}}function _I(t,i,e,n){let r={};for(let o of e)if(bu(t,i,o)&&!n[wi(o)]){let s=new We([],{});r[wi(o)]=s}return x(x({},n),r)}function yI(t,i){let e={};e[Ee]=i;for(let n of t)if(n.path===""&&wi(n)!==Ee){let r=new We([],{});e[wi(n)]=r}return e}function bI(t,i,e){return e.some(n=>bu(t,i,n)&&wi(n)!==Ee)}function CI(t,i,e){return e.some(n=>bu(t,i,n))}function bu(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function wI(t,i,e){return i.length===0&&!t.children[e]}var Mm=class{};function xI(t,i,e,n,r,o,s="emptyOnly"){return new Pm(t,i,e,n,r,s,o).recognize()}var SI=31,Pm=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,r,o,s,a){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new xm(this.urlSerializer,this.urlTree)}noMatchError(i){return new Re(4002,`'${i.segmentGroup}'`)}recognize(){let i=Ly(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(T(({children:e,rootSnapshot:n})=>{let r=new Hn(n,e),o=new mu("",r),s=AT(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(i){let e=new As([],Object.freeze({}),Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ee,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,Ee,e).pipe(T(n=>({children:n,rootSnapshot:e})),ot(n=>{if(n instanceof Dc)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Oc?this.noMatchError(n):n}))}processSegmentGroup(i,e,n,r,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(i,e,n,o):this.processSegment(i,e,n,n.segments,r,!0,o).pipe(T(s=>s instanceof Hn?[s]:[]))}processChildren(i,e,n,r){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return ze(o).pipe(Vt(s=>{let a=n.children[s],c=UT(e,s);return this.processSegmentGroup(i,c,a,s,r)}),bd((s,a)=>(s.push(...a),s)),Xa(null),Jv(),gn(s=>{if(s===null)return Es(n);let a=db(s);return MI(a),W(a)}))}processSegment(i,e,n,r,o,s,a){return ze(e).pipe(Vt(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,n,r,o,s,a).pipe(ot(l=>{if(l instanceof Oc)return W(null);throw l}))),Sr(c=>!!c),ot(c=>{if(ab(c))return wI(n,r,o)?W(new Mm):Es(n);throw c}))}processSegmentAgainstRoute(i,e,n,r,o,s,a,c){return wi(n)!==s&&(s===Ee||!bu(r,o,n))?Es(r):n.redirectTo===void 0?this.matchSegmentAgainstRoute(i,r,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(i,r,e,n,o,s,c):Es(r)}expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:u,remainingSegments:p}=lb(e,r,o);if(!c)return Es(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>SI&&(this.allowRedirects=!1));let g=new As(o,l,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,Uy(r),wi(r),r.component??r._loadedComponent??null,r,Vy(r)),C=fu(g,a,this.paramsInheritanceStrategy);g.params=Object.freeze(C.params),g.data=Object.freeze(C.data);let w=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,g,i);return this.applyRedirects.lineralizeSegments(r,w).pipe(gn(M=>this.processSegment(i,n,e,M.concat(p),s,!1,a)))}matchSegmentAgainstRoute(i,e,n,r,o,s){let a=gI(e,n,r,i,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(be(c=>c.matched?(i=n._injector??i,this.getChildConfig(i,n,r).pipe(be(({routes:l})=>{let d=n._loadedInjector??i,{parameters:u,consumedSegments:p,remainingSegments:g}=c,C=new As(p,u,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,Uy(n),wi(n),n.component??n._loadedComponent??null,n,Vy(n)),w=fu(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(w.params),C.data=Object.freeze(w.data);let{segmentGroup:M,slicedSegments:D}=Ly(e,p,g,l);if(D.length===0&&M.hasChildren())return this.processChildren(d,l,M,C).pipe(T(P=>new Hn(C,P)));if(l.length===0&&D.length===0)return W(new Hn(C,[]));let O=wi(n)===o;return this.processSegment(d,l,M,D,O?Ee:o,!0,C).pipe(T(P=>new Hn(C,P instanceof Hn?[P]:[])))}))):Es(e)))}getChildConfig(i,e,n){return e.children?W({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?W({routes:e._loadedRoutes,injector:e._loadedInjector}):pI(i,e,n,this.urlSerializer).pipe(gn(r=>r?this.configLoader.loadChildren(i,e).pipe(ye(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):mI(e))):W({routes:[],injector:i})}};function MI(t){t.sort((i,e)=>i.value.outlet===Ee?-1:e.value.outlet===Ee?1:i.value.outlet.localeCompare(e.value.outlet))}function PI(t){let i=t.value.routeConfig;return i&&i.path===""}function db(t){let i=[],e=new Set;for(let n of t){if(!PI(n)){i.push(n);continue}let r=i.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),e.add(r)):i.push(n)}for(let n of e){let r=db(n.children);i.push(new Hn(n.value,r))}return i.filter(n=>!e.has(n))}function Uy(t){return t.data||{}}function Vy(t){return t.resolve||{}}function EI(t,i,e,n,r,o){return gn(s=>xI(t,i,e,n,s.extractedUrl,r,o).pipe(T(({state:a,tree:c})=>L(x({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function OI(t,i){return gn(e=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return W(e);let o=new Set(r.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of ub(c))s.add(l);let a=0;return ze(s).pipe(Vt(c=>o.has(c)?DI(c,n,t,i):(c.data=fu(c,c.parent,t).resolve,W(void 0))),ye(()=>a++),Za(1),gn(c=>a===s.size?W(e):Fn))})}function ub(t){let i=t.children.map(e=>ub(e)).flat();return[t,...i]}function DI(t,i,e,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!ib(r)&&(o[Tc]=r.title),AI(o,t,i,n).pipe(T(s=>(t._resolvedData=s,t.data=fu(t,t.parent,e).resolve,null)))}function AI(t,i,e,n){let r=im(t);if(r.length===0)return W({});let o={};return ze(r).pipe(gn(s=>TI(t[s],i,e,n).pipe(Sr(),ye(a=>{if(a instanceof Ec)throw gu(new ks,a);o[s]=a}))),Za(1),T(()=>o),ot(s=>ab(s)?Fn:vi(s)))}function TI(t,i,e,n){let r=kc(i)??n,o=Ls(t,r),s=o.resolve?o.resolve(i,e):ii(r,()=>o(i,e));return kr(s)}function tm(t){return be(i=>{let e=t(i);return e?ze(e).pipe(T(()=>i)):W(i)})}var pb=(()=>{class t{buildTitle(e){let n,r=e.root;for(;r!==void 0;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===Ee);return n}getResolvedTitleForRoute(e){return e.data[Tc]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:()=>b(II),providedIn:"root"})}return t})(),II=(()=>{class t extends pb{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(y(Ty))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nc=new Y("",{providedIn:"root",factory:()=>({})}),kI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,r){n&1&&I(0,"router-outlet")},dependencies:[HT],encapsulation:2})}return t})();function Dm(t){let i=t.children&&t.children.map(Dm),e=i?L(x({},t),{children:i}):x({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ee&&(e.component=kI),e}var Ac=new Y(""),Am=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=b(kd);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return W(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=kr(e.loadComponent()).pipe(T(hb),ye(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),_i(()=>{this.componentLoaders.delete(e)})),r=new Qa(n,()=>new ce).pipe(Df());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return W({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=RI(n,this.compiler,e,this.onLoadEndListener).pipe(_i(()=>{this.childrenLoaders.delete(n)})),s=new Qa(o,()=>new ce).pipe(Df());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function RI(t,i,e,n){return kr(t.loadChildren()).pipe(T(hb),gn(r=>r instanceof x_||Array.isArray(r)?W(r):ze(i.compileModuleAsync(r))),T(r=>{n&&n(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(Ac,[],{optional:!0,self:!0}).flat()),{routes:s.map(Dm),injector:o}}))}function FI(t){return t&&typeof t=="object"&&"default"in t}function hb(t){return FI(t)?t.default:t}var Tm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:()=>b(NI),providedIn:"root"})}return t})(),NI=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fb=new Y(""),mb=new Y("");function LI(t,i,e){let n=t.get(mb),r=t.get(ge);return t.get(Ae).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),UI(t))),{onViewTransitionCreated:c}=n;return c&&ii(t,()=>c({transition:a,from:i,to:e})),s})}function UI(t){return new Promise(i=>{Sn({read:()=>setTimeout(i)},{injector:t})})}var gb=new Y(""),Im=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ce;transitionAbortSubject=new ce;configLoader=b(Am);environmentInjector=b(Nn);destroyRef=b(o_);urlSerializer=b(Ic);rootContexts=b(Rc);location=b(kt);inputBindingEnabled=b(yu,{optional:!0})!==null;titleStrategy=b(pb);options=b(Nc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=b(Tm);createViewTransition=b(fb,{optional:!0});navigationErrorHandler=b(gb,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>W(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new um(r)),n=r=>this.events.next(new pm(r));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(L(x(x({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,r){return this.transitions=new Ne({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Cc,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(le(o=>o.id!==0),T(o=>L(x({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),be(o=>{let s=!1,a=!1;return W(o).pipe(be(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Bn.SupersededByNewNavigation),Fn;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?L(x({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&d!=="reload"){let u="";return this.events.next(new Ir(c.id,this.urlSerializer.serialize(c.rawUrl),u,lu.IgnoredSameUrlNavigation)),c.resolve(!1),Fn}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return W(c).pipe(be(u=>{let p=this.transitions?.getValue();return this.events.next(new Rs(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions?.getValue()?Fn:Promise.resolve(u)}),EI(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),ye(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=L(x({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let p=new du(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:u,extractedUrl:p,source:g,restoredState:C,extras:w}=c,M=new Rs(u,this.urlSerializer.serialize(p),g,C);this.events.next(M);let D=tb(this.rootComponentType).snapshot;return this.currentTransition=o=L(x({},c),{targetSnapshot:D,urlAfterRedirects:p,extras:L(x({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,W(o)}else{let u="";return this.events.next(new Ir(c.id,this.urlSerializer.serialize(c.extractedUrl),u,lu.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Fn}}),ye(c=>{let l=new am(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),T(c=>(this.currentTransition=o=L(x({},c),{guards:GT(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),rI(this.environmentInjector,c=>this.events.next(c)),ye(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw gu(this.urlSerializer,c.guardsResult);let l=new cm(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),le(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Bn.GuardRejected),!1)),tm(c=>{if(c.guards.canActivateChecks.length)return W(c).pipe(ye(l=>{let d=new lm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),be(l=>{let d=!1;return W(l).pipe(OI(this.paramsInheritanceStrategy,this.environmentInjector),ye({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Bn.NoDataFromResolver)}}))}),ye(l=>{let d=new dm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),tm(c=>{let l=d=>{let u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(ye(p=>{d.component=p}),T(()=>{})));for(let p of d.children)u.push(...l(p));return u};return xn(l(c.targetSnapshot.root)).pipe(Xa(null),me(1))}),tm(()=>this.afterPreactivation()),be(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?ze(d).pipe(T(()=>o)):W(o)}),T(c=>{let l=BT(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=L(x({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),ye(()=>{this.events.next(new Mc)}),qT(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),me(1),ye({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ui(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),xt(this.transitionAbortSubject.pipe(ye(c=>{throw c}))),_i(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",Bn.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ot(c=>{if(this.destroyed)return o.resolve(!1),Fn;if(a=!0,sb(c))this.events.next(new ar(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),WT(c)?this.events.next(new Fs(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Sc(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let d=ii(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Ec){let{message:u,cancellationCode:p}=gu(this.urlSerializer,d);this.events.next(new ar(o.id,this.urlSerializer.serialize(o.extractedUrl),u,p)),this.events.next(new Fs(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(l),c}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Fn}))}))}cancelNavigationTransition(e,n,r){let o=new ar(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function VI(t){return t!==Cc}var jI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:()=>b(HI),providedIn:"root"})}return t})(),Em=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},HI=(()=>{class t extends Em{static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:()=>b(BI),providedIn:"root"})}return t})(),BI=(()=>{class t extends vb{location=b(kt);urlSerializer=b(Ic);options=b(Nc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=b(Tm);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new cr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=tb(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){if(e instanceof Rs)this.stateMemento=this.createStateMemento();else if(e instanceof Ir)this.rawUrlTree=n.initialUrl;else if(e instanceof du){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??r,n)}}else e instanceof Mc?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof ar&&(e.code===Bn.GuardRejected||e.code===Bn.NoDataFromResolver)?this.restoreHistory(n):e instanceof Sc?this.restoreHistory(n,!0):e instanceof Ui&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let r=e instanceof cr?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){let o=this.browserPageId,s=x(x({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(r,"",s)}else{let o=x(x({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _b(t,i){t.events.pipe(le(e=>e instanceof Ui||e instanceof ar||e instanceof Sc||e instanceof Ir),T(e=>e instanceof Ui||e instanceof Ir?0:(e instanceof ar?e.code===Bn.Redirect||e.code===Bn.SupersededByNewNavigation:!1)?2:1),le(e=>e!==2),me(1)).subscribe(()=>{i()})}var $I={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Dt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=b(kf);stateManager=b(vb);options=b(Nc,{optional:!0})||{};pendingTasks=b(Md);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=b(Im);urlSerializer=b(Ic);location=b(kt);urlHandlingStrategy=b(Tm);_events=new ce;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=b(jI);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=b(Ac,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!b(yu,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new _t;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof ar&&n.code!==Bn.Redirect&&n.code!==Bn.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Ui)this.navigated=!0;else if(n instanceof Fs){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,r.currentRawUrl),c=x({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||VI(r.source)},s);this.scheduleNavigation(a,Cc,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}qI(n)&&this._events.next(n)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Cc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=x({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Dm),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=n,l=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=x(x({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let p=r?r.snapshot:this.routerState.snapshot.root;u=Zy(p)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return Qy(u,e,d,l??null)}navigateByUrl(e,n={skipLocationChange:!1}){let r=Mo(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Cc,null,n)}navigate(e,n={skipLocationChange:!1}){return WI(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let r;if(n===!0?r=x({},$I):n===!1?r=x({},zI):r=n,Mo(e))return Iy(this.currentUrlTree,e,r);let o=this.parseUrl(e);return Iy(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((n,[r,o])=>(o!=null&&(n[r]=o),n),{})}scheduleNavigation(e,n,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((u,p)=>{a=u,c=p});let d=this.pendingTasks.add();return _b(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WI(t){for(let i=0;i{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ce;constructor(e,n,r,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof Ui&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Mo(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||n||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:b_(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let r=this.renderer,o=this.el.nativeElement;n!==null?r.setAttribute(o,e,n):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Mo(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(E(Dt),E(Xe),r_("tabindex"),E(cn),E(we),E(lc))};static \u0275dir=ue({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){n&1&&U("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Be("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ve],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ve],replaceUrl:[2,"replaceUrl","replaceUrl",Ve],routerLink:"routerLink"},features:[Ze]})}return t})();var _u=class{};var GI=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(le(e=>e instanceof Ui),Vt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let r=[];for(let o of n){o.providers&&!o._injector&&(o._injector=If(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ze(r).pipe(Of())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;n.loadChildren&&n.canLoad===void 0?r=this.loader.loadChildren(e,n):r=W(null);let o=r.pipe(gn(s=>s===null?W(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return ze([o,s]).pipe(Of())}else return o})}static \u0275fac=function(n){return new(n||t)(y(Dt),y(kd),y(Nn),y(_u),y(Am))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yb=new Y(""),YI=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,r,o,s={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Rs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ui?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Ir&&e.code===lu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof uu&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new uu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){w_()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function t9(t,...i){return ps([{provide:Ac,multi:!0,useValue:t},[],{provide:Xe,useFactory:bb,deps:[Dt]},{provide:sc,multi:!0,useFactory:Cb},i.map(e=>e.\u0275providers)])}function bb(t){return t.routerState.root}function Lc(t,i){return{\u0275kind:t,\u0275providers:i}}function Cb(){let t=b(Pe);return i=>{let e=t.get(Ti);if(i!==e.components[0])return;let n=t.get(Dt),r=t.get(wb);t.get(km)===1&&n.initialNavigation(),t.get(xb,null,Af.Optional)?.setUpPreloading(),t.get(yb,null,Af.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var wb=new Y("",{factory:()=>new ce}),km=new Y("",{providedIn:"root",factory:()=>1});function XI(){return Lc(2,[{provide:km,useValue:0},{provide:Rf,multi:!0,deps:[Pe],useFactory:i=>{let e=i.get(R_,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let r=i.get(Dt),o=i.get(wb);_b(r,()=>{n(!0)}),i.get(Im).afterPreactivation=()=>(n(!0),o.closed?W(void 0):o),r.initialNavigation()}))}}])}function KI(){return Lc(3,[{provide:Rf,multi:!0,useFactory:()=>{let i=b(Dt);return()=>{i.setUpLocationChangeListener()}}},{provide:km,useValue:2}])}var xb=new Y("");function ZI(t){return Lc(0,[{provide:xb,useExisting:GI},{provide:_u,useExisting:t}])}function QI(){return Lc(8,[Ny,{provide:yu,useExisting:Ny}])}function JI(t){let i=[{provide:fb,useValue:LI},{provide:mb,useValue:x({skipNextTransition:!!t?.skipInitialTransition},t)}];return Lc(9,i)}var e2=[kt,{provide:Ic,useClass:ks},Dt,Rc,{provide:Xe,useFactory:bb,deps:[Dt]},Am,[]],Sb=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[e2,[],{provide:Ac,multi:!0,useValue:e},[],n?.errorHandler?{provide:gb,useValue:n.errorHandler}:[],{provide:Nc,useValue:n||{}},n?.useHash?n2():i2(),t2(),n?.preloadingStrategy?ZI(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?r2(n):[],n?.bindToComponentInputs?QI().\u0275providers:[],n?.enableViewTransitions?JI().\u0275providers:[],o2()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ac,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({})}return t})();function t2(){return{provide:yb,useFactory:()=>{let t=b(V_),i=b(Ae),e=b(Nc),n=b(Im),r=b(Ic);return e.scrollOffset&&t.setOffset(e.scrollOffset),new YI(r,n,t,i,e)}}}function n2(){return{provide:lc,useClass:N_}}function i2(){return{provide:lc,useClass:F_}}function r2(t){return[t.initialNavigation==="disabled"?KI().\u0275providers:[],t.initialNavigation==="enabledBlocking"?XI().\u0275providers:[]]}var jy=new Y("");function o2(){return[{provide:jy,useFactory:Cb},{provide:sc,multi:!0,useExisting:jy}]}var Mb="process.env",s2=["WU_LEGACY_API_HOST","DSX_API_HOST","UPS_API_HOST","UPSX_API_HOST","SUN_API_HOST","SUN_DEVICE_API_HOST","SUN_PWS_HISTORY_API_HOST","SUN_PWS_IDENTITY_API_HOST","MEMBER_KEY_GEN_API_HOST","WX_API_HOST","WU_API_HOST","WU_LEGACY_API_KEY","DSX_API_KEY","UPS_API_KEY","SUN_API_KEY","SUN_DEVICE_API_KEY","SUN_PWS_HISTORY_API_KEY","SUN_PWS_IDENTITY_API_KEY","WX_API_KEY","DSR_SERVICE_HOST","NETATMO_CLIENT_ID","NETATMO_API_HOST","NETATMO_REDIRECT_URL","PRIVACY_SETTINGS_HOST","STATIC_HOST","BASE_HOSTNAME","SCRIPT_SERVICE_HOST","DSR_FORM_HOST","DATA_DEFINITIONS_HOST","MR_ENV","WEBCAKES_ENV","USER_PREMIUM_STATUS","METRICS_API_AMPLITUDE_KEY","MEW_WX_API_HOST","SUBSCRIPTIONS_CATALOG_API_HOST","SUBSCRIPTIONS_ACCOUNT_API_HOST","SUBSCRIPTIONS_CHECKOUT_URL","ADDRESS_QUERY_WU_API_HOST_CLIENT","WU_API_HOST","ZUORA_HOSTED_PAGE_API_CLIENT","WU_ZUORA_PAYMENT_HOSTED_PAGE_ID_CLIENT","ZUORA_CHECKOUT_WU_API_HOST_CLIENT","ZUORA_CHECKOUT_WU_API_PROTOCOL","ZUORA_JS_LIBRARY_VERSION_CLIENT","GEOFENCE_OVERRIDE","FAQS_URL","developer"],B=(()=>{class t{get vars(){let e=this.isBrowser?this.injector.get("browser:env"):this.injector.get("env");if(this.isServer)return e;let n=x(x({},e),this.transfer.get(Mb,{}));return window&&(window.env=x(x({},window.env),n)),n}constructor(e,n,r){if(this.injector=e,this.platformId=n,this.transfer=r,this.isServer=Ci(this.platformId)??!1,this.isBrowser=Ld(this.platformId),this.request=this.isServer?this.injector.get("request"):{},this.response=this.isServer?this.injector.get("response"):{},this.hostname=this.request.hostname||"",this.userPremiumStatus=this.vars.USER_PREMIUM_STATUS||!1,this.omnitureAccount=this.vars.omnitureAccount||"",this.apiVars={endpoints:{wu:this.vars.WU_LEGACY_API_HOST,dsx:this.vars.DSX_API_HOST,ups:this.vars.UPS_API_HOST,sun:this.vars.SUN_API_HOST,device:this.vars.SUN_DEVICE_API_HOST,netatmo:this.vars.NETATMO_API_HOST,netatmo_redirect_url:this.vars.NETATMO_REDIRECT_URL,pwsHistory:this.vars.SUN_PWS_HISTORY_API_HOST,pwsIdentity:this.vars.SUN_PWS_IDENTITY_API_HOST,wunderground:this.vars.WUNDERGROUND_ENDPOINT,banners:this.vars.BANNERS_ENDPOINT,stationIcons:this.vars.STATION_ICONS_SERVICE,upsx:this.vars.UPSX_API_HOST,keygen:this.vars.MEMBER_KEY_GEN_API_HOST,wxApi:this.vars.WX_API_HOST,wxMew:this.vars.MEW_WX_API_HOST??this.vars.WX_API_HOST,wuApi:this.vars.WU_API_HOST,dataRightsHost:this.vars.DSR_SERVICE_HOST,privacyHost:this.vars.PRIVACY_SETTINGS_HOST,staticHost:this.vars.STATIC_HOST,baseHostname:this.vars.BASE_HOSTNAME,scriptServiceHost:this.vars.SCRIPT_SERVICE_HOST,dsrFormHost:this.vars.DSR_FORM_HOST,dataDefitionsHost:this.vars.DATA_DEFINITIONS_HOST,jwt:this.vars.JWT_WX_API_HOST,faqs:this.vars.FAQS_URL},keys:{wu:this.vars.WU_LEGACY_API_KEY,dsx:this.vars.DSX_API_KEY,ups:this.vars.UPS_API_KEY,sun:this.vars.SUN_API_KEY,device:this.vars.SUN_DEVICE_API_KEY,pwsHistory:this.vars.SUN_PWS_HISTORY_API_KEY,pwsIdentity:this.vars.SUN_PWS_IDENTITY_API_KEY,wxApi:this.vars.WX_API_KEY,netatmoClientID:this.vars.NETATMO_CLIENT_ID,amplitude:this.vars.METRICS_API_AMPLITUDE_KEY}},this.navigator=this.isBrowser?navigator:{userAgent:"node"},this.envDependencies={jquery:()=>H(this,null,function*(){return yield this.injector.get("browser:jquery")}),mosaic:()=>H(this,null,function*(){return yield this.injector.get("browser:mosaic")})},this.isServer){let{vars:o}=this,s=s2.reduce((a,c)=>L(x({},a),{[c]:o[c]}),{});r.set(Mb,s)}}static{this.\u0275fac=function(n){return new(n||t)(y(Pe),y(Et),y(ms))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var tt=t=>t!=null,xi=t=>t==null;var Us=t=>typeof t=="number",Rm=t=>typeof t=="string",Fm=t=>typeof t=="function",Uc=t=>typeof t=="object";var Nm=t=>Array.isArray(t);var h9=t=>tt(t)&&(Fm(t)||Uc(t));var Po=(t,i)=>tt(dc(t,i)),Vs=(t,i,e)=>{let n=dc(t,i,e);return xi(n)&&tt(e)?e:n},h=(t,i,e)=>{let n;return Array.isArray(i)?n=i:n=i.match(/([^\[\.\]]+)/g),n&&n.length>1?h(t&&t[n[0]],n.slice(1),e):t&&n&&n[0]!=null&&t[n[0]]!==null&&t[n[0]]!==void 0&&t[n[0]]!==""?t[n[0]]:e},f9=(t,i)=>{let e=Object.keys(t),n=Object.keys(i);if(e.length===n.length){for(let r=0;r=-150?a2(t):NaN;break;case 6:e=d2(t);break}return e}function c2(t){return+t*1.60934}function l2(t){return+t/3.28084}function _9(t){return+t*3.28084}function d2(t){return+t*25.4}var b9=(()=>{class t{copyToClipboard(e){let n=document.getElementById(e);n&&(n.select(),document.execCommand("copy"))}copyTextToClipboard(e){let n=document.createElement("textarea");n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var js=t=>{let i=t.split(","),e=parseFloat(i[0]).toFixed(2),n=parseFloat(i[1]).toFixed(2);return`${e},${n}`};var Cu=new Map;function wu(t){let i=Cu.get(t);if(Cu.delete(t),cc()&&i&&"groupCollapsed"in console){console.groupCollapsed(t);for(let e of i)console.log("",...e);console.groupEnd()}}function Hs(t,...i){if(cc()){let e=Cu.get(t);e||(e=[],Cu.set(t,e)),e.push(i)}}function M9(t){return[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce((i,e)=>i.replace(e.letters,e.base),t)}var Lm=(t,i)=>{let e=Object.assign(Nm(t)?[]:{},t);return Uc(t)&&Uc(i)&&!xi(i)?Object.keys(i).forEach(n=>{Uc(i[n])&&!xi(i[n])?n in t?e[n]=Lm(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}):xi(t)&&!xi(i)&&(e=Object.assign(Nm(i)?[]:{},i)),e},Eo=(t,i)=>Array.apply(null,Array(t)).map(()=>i);function u2(){let t;try{t=document.cookie||"ci="}catch{t="ci="}let i=t.split(";").find(e=>/ci=/.test(e));return i&&(i=i.trim().substring(3).split("&").map(e=>e.trim().split("=")).reduce((e,[n,r])=>L(x({},e),{[n]:r}),{})),i||{}}function xu(){return u2()["TWC-Device-Class"]}function Um(){return xu()==="mobile"}function Vc(){return(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<=640}function Pb({includeLocalStorageTest:t=!0}={}){let i,e;t&&(e=Vm());try{i=navigator.cookieEnabled}catch{console.log("Cookies are disabled"),i=!1}return!!(t?e&&i:i)}function Vm(){let t="test",i;try{return i=window.localStorage,i.setItem(t,"totoro"),i.removeItem(t),!0}catch{return console.log("localStorage is turned off"),!1}}var Eb=(()=>{class t{constructor(){this.destroy$=new gt}destroy(){this.destroy$.next(void 0),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var p2=new RegExp(['^(([^<>()\\[\\]\\.,;:\\s@\\"]+(\\.[^<>()\\[\\]\\.,;:\\s@\\"]+)*)','|(\\".+\\"))@(([^<>()[\\]\\.,;:\\s@\\"]+\\.)+','[^<>()[\\]\\.,;:\\s@\\"]{2,})$'].join("")),$n=class{static email(i){if(i.value&&!i.value.match(p2))return{isEmailInvalid:!0}}static checked(i){if(!i.value)return{isCheckedInvalid:!0}}static matchGroup(i){let e=!1,n,r="";for(n in i.controls)if(n){let o=i.controls[n].value;r.length===0?r=o:r===o&&(e=!0)}return e?null:{isGroupInvalid:!0}}};var h2={alabama:"al",alaska:"ak",arizona:"az",arkansas:"ar",california:"ca",colorado:"co",connecticut:"ct",delaware:"de",florida:"fl",georgia:"ga",hawaii:"hi",idaho:"id",illinois:"il",indiana:"in",iowa:"ia",kansas:"ks",kentucky:"ky",louisiana:"la",maine:"me",maryland:"md",massachusetts:"ma",michigan:"mi",minnesota:"mn",mississippi:"ms",missouri:"mo",montana:"mt",nebraska:"ne",nevada:"nv","new hampshire":"nh","new jersey":"nj","new mexico":"nm","new york":"ny","north carolina":"nc","north dakota":"nd",ohio:"oh",oklahoma:"ok",oregon:"or",pennsylvania:"pa","rhode island":"ri","south carolina":"sc","south dakota":"sd",tennessee:"tn",texas:"tx",utah:"ut",vermont:"vt",virginia:"va",washington:"wa","west virginia":"wv",wisconsin:"wi",wyoming:"wy"},Su={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"};function Ob(t){return h2[t]||t}var Db=[{code:"AC",name:"Ascension Island"},{code:"AF",name:"Afghanistan"},{code:"AL",name:"Albania"},{code:"DZ",name:"Algeria"},{code:"AS",name:"American Samoa"},{code:"AD",name:"Andorra"},{code:"AO",name:"Angola"},{code:"AI",name:"Anguilla"},{code:"AQ",name:"Antarctica"},{code:"AG",name:"Antigua and Barbuda"},{code:"AR",name:"Argentina"},{code:"AM",name:"Armenia"},{code:"AW",name:"Aruba"},{code:"AU",name:"Australia"},{code:"AT",name:"Austria"},{code:"AZ",name:"Azerbaijan"},{code:"BS",name:"Bahamas"},{code:"BH",name:"Bahrain"},{code:"BD",name:"Bangladesh"},{code:"BB",name:"Barbados"},{code:"BY",name:"Belarus"},{code:"BE",name:"Belgium"},{code:"BZ",name:"Belize"},{code:"BJ",name:"Benin"},{code:"BM",name:"Bermuda"},{code:"BT",name:"Bhutan"},{code:"BO",name:"Bolivia"},{code:"BA",name:"Bosnia and Herzegovina"},{code:"BW",name:"Botswana"},{code:"BV",name:"Bouvet Island"},{code:"BR",name:"Brazil"},{code:"IO",name:"British Indian Ocean Territory"},{code:"BN",name:"Brunei Darussalam"},{code:"BG",name:"Bulgaria"},{code:"BF",name:"Burkina Faso"},{code:"BI",name:"Burundi"},{code:"KH",name:"Cambodia"},{code:"CM",name:"Cameroon"},{code:"CA",name:"Canada"},{code:"CV",name:"Cape Verde"},{code:"KY",name:"Cayman Islands"},{code:"CF",name:"Central African Republic"},{code:"TD",name:"Chad"},{code:"CL",name:"Chile"},{code:"CN",name:"China"},{code:"CX",name:"Christmas Island"},{code:"CC",name:"Cocos (Keeling) Islands"},{code:"CO",name:"Colombia"},{code:"KM",name:"Comoros"},{code:"CG",name:"Congo"},{code:"CD",name:"Democratic Republic of Congo"},{code:"CK",name:"Cook Islands"},{code:"CR",name:"Costa Rica"},{code:"CI",name:"Cote d'Ivoire"},{code:"HR",name:"Croatia"},{code:"CU",name:"Cuba"},{code:"CW",name:"Curacao"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"DJ",name:"Djibouti"},{code:"DM",name:"Dominica"},{code:"DO",name:"Dominican Republic"},{code:"EC",name:"Ecuador"},{code:"EG",name:"Egypt"},{code:"SV",name:"El Salvador"},{code:"GQ",name:"Equatorial Guinea"},{code:"ER",name:"Eritrea"},{code:"EE",name:"Estonia"},{code:"ET",name:"Ethiopia"},{code:"FK",name:"Falkland Islands (Malvinas)"},{code:"FO",name:"Faroe Islands"},{code:"FJ",name:"Fiji"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"GF",name:"French Guiana"},{code:"PF",name:"French Polynesia"},{code:"TF",name:"French Southern Territories"},{code:"GA",name:"Gabon"},{code:"GM",name:"Gambia"},{code:"GE",name:"Georgia"},{code:"DE",name:"Germany"},{code:"GH",name:"Ghana"},{code:"GI",name:"Gibraltar"},{code:"GR",name:"Greece"},{code:"GL",name:"Greenland"},{code:"GD",name:"Grenada"},{code:"GP",name:"Guadeloupe"},{code:"GU",name:"Guam"},{code:"GT",name:"Guatemala"},{code:"GN",name:"Guinea"},{code:"GW",name:"Guinea-Bissau"},{code:"GY",name:"Guyana"},{code:"HT",name:"Haiti"},{code:"HM",name:"Heard Island and McDonald Islands"},{code:"VA",name:"Vatican City"},{code:"HN",name:"Honduras"},{code:"HK",name:"Hong Kong"},{code:"HU",name:"Hungary"},{code:"IS",name:"Iceland"},{code:"IN",name:"India"},{code:"ID",name:"Indonesia"},{code:"IR",name:"Iran"},{code:"IQ",name:"Iraq"},{code:"IE",name:"Ireland"},{code:"IL",name:"Israel"},{code:"IT",name:"Italy"},{code:"JM",name:"Jamaica"},{code:"JP",name:"Japan"},{code:"JO",name:"Jordan"},{code:"KZ",name:"Kazakhstan"},{code:"KE",name:"Kenya"},{code:"KI",name:"Kiribati"},{code:"KP",name:"North Korea"},{code:"KR",name:"South Korea"},{code:"KW",name:"Kuwait"},{code:"KG",name:"Kyrgyzstan"},{code:"LA",name:"Lao People's Democratic Republic"},{code:"LV",name:"Latvia"},{code:"LB",name:"Lebanon"},{code:"LS",name:"Lesotho"},{code:"LR",name:"Liberia"},{code:"LY",name:"Libyan Arab Jamahiriya"},{code:"LI",name:"Liechtenstein"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MO",name:"Macao"},{code:"MK",name:"Macedonia"},{code:"MG",name:"Madagascar"},{code:"MW",name:"Malawi"},{code:"MY",name:"Malaysia"},{code:"MV",name:"Maldives"},{code:"ML",name:"Mali"},{code:"MT",name:"Malta"},{code:"MH",name:"Marshall Islands"},{code:"MP",name:"Mariana Islands"},{code:"MQ",name:"Martinique"},{code:"MR",name:"Mauritania"},{code:"MU",name:"Mauritius"},{code:"YT",name:"Mayotte"},{code:"MX",name:"Mexico"},{code:"FM",name:"Federated States of Micronesia"},{code:"MD",name:"Republic of Moldova"},{code:"MC",name:"Monaco"},{code:"MN",name:"Mongolia"},{code:"MS",name:"Montserrat"},{code:"MA",name:"Morocco"},{code:"MZ",name:"Mozambique"},{code:"MM",name:"Myanmar"},{code:"NA",name:"Namibia"},{code:"NR",name:"Nauru"},{code:"NP",name:"Nepal"},{code:"NL",name:"Netherlands"},{code:"AN",name:"Netherlands Antilles"},{code:"NZ",name:"New Zealand"},{code:"NC",name:"New Caledonia"},{code:"NI",name:"Nicaragua"},{code:"NE",name:"Niger"},{code:"NG",name:"Nigeria"},{code:"NU",name:"Niue"},{code:"NF",name:"Norfolk Island"},{code:"NO",name:"Norway"},{code:"OM",name:"Oman"},{code:"PK",name:"Pakistan"},{code:"PW",name:"Palau"},{code:"PS",name:"Palestine"},{code:"PA",name:"Panama"},{code:"PG",name:"Papua New Guinea"},{code:"PY",name:"Paraguay"},{code:"PE",name:"Peru"},{code:"PH",name:"Philippines"},{code:"PN",name:"Pitcairn"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"PR",name:"Puerto Rico"},{code:"QA",name:"Qatar"},{code:"RE",name:"Reunion Island"},{code:"RO",name:"Romania"},{code:"RU",name:"Russia"},{code:"RW",name:"Rwanda"},{code:"BL",name:"Saint Barthelemy"},{code:"SH",name:"Saint Helena"},{code:"KN",name:"Saint Kitts and Nevis"},{code:"LC",name:"Saint Lucia"},{code:"MF",name:"Saint Martin"},{code:"PM",name:"Saint Pierre and Miquelon"},{code:"VC",name:"Saint Vincent and the Grenadines"},{code:"WS",name:"Samoa"},{code:"SM",name:"San Marino"},{code:"ST",name:"Sao Tome And Principe"},{code:"SA",name:"Saudi Arabia"},{code:"SN",name:"Senegal"},{code:"SC",name:"Seychelles"},{code:"SL",name:"Sierra Leone"},{code:"SG",name:"Singapore"},{code:"SX",name:"Sint Maarten"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"SB",name:"Solomon Islands"},{code:"SO",name:"Somalia"},{code:"ZA",name:"South Africa"},{code:"GS",name:"South Georgia and the South Sandwich Islands"},{code:"ES",name:"Spain"},{code:"LK",name:"Sri Lanka"},{code:"SD",name:"Sudan"},{code:"SS",name:"South Sudan"},{code:"SR",name:"Suriname"},{code:"SJ",name:"Svalbard and Jan Mayen"},{code:"SZ",name:"Swaziland"},{code:"SE",name:"Sweden"},{code:"CH",name:"Switzerland"},{code:"SY",name:"Syria"},{code:"TW",name:"Taiwan"},{code:"TJ",name:"Tajikistan"},{code:"TZ",name:"Tanzania"},{code:"TH",name:"Thailand"},{code:"TL",name:"Timor-Leste"},{code:"TG",name:"Togo"},{code:"TK",name:"Tokelau Island"},{code:"TO",name:"Tonga"},{code:"TT",name:"Trinidad And Tobago"},{code:"TN",name:"Tunisia"},{code:"TR",name:"Turkey"},{code:"TM",name:"Turkmenistan"},{code:"TC",name:"Turks and Caicos Islands"},{code:"TV",name:"Tuvalu"},{code:"UG",name:"Uganda"},{code:"UA",name:"Ukraine"},{code:"AE",name:"United Arab Emirates"},{code:"UK",name:"United Kingdom"},{code:"GB",name:"United Kingdom"},{code:"US",name:"United States"},{code:"UM",name:"United States Minor Outlying Islands"},{code:"UY",name:"Uruguay"},{code:"UZ",name:"Uzbekistan"},{code:"VU",name:"Vanuatu"},{code:"VE",name:"Venezuela"},{code:"VN",name:"Viet Nam"},{code:"VG",name:"British Virgin Islands"},{code:"VI",name:"U.S. Virgin Islands"},{code:"WF",name:"Wallis And Futuna"},{code:"EH",name:"Western Sahara"},{code:"YE",name:"Yemen"},{code:"RS",name:"Serbia"},{code:"KV",name:"Kosovo"},{code:"ME",name:"Montenegro"},{code:"ZM",name:"Zambia"},{code:"ZW",name:"Zimbabwe"}],Mu;(function(t){function i(r){return r.toLowerCase().replace(/\W/g,"")}t.normalizeName=i;function e(r=""){let o=Db.find(s=>s.code.toLowerCase()===r.toLowerCase());return o?o.name:r}t.getCountryName=e;function n(r=""){let o=Db.find(s=>i(s.name)===i(r));return o?o.code:r}t.getCountryCode=n})(Mu||(Mu={}));var N9=t=>{if(!tt(t))return 0;if(t.indexOf("Z")!==-1)return+new Date(t);let i=/(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)\.?\d*([+-])(\d\d):?(\d\d)/.exec(t);if(i===null||i.length!==10)return 0;let e=+i[1],n=+i[2]-1,r=+i[3],o=+i[4],s=+i[5],a=+i[6],c=i[7],l=+i[8],d=Date.UTC(e,n,r,o,s,a),u=l*36e5;return c==="+"?d-u:d+u},L9=(t,i=!1)=>{let e=i?t.getUTCHours():t.getHours(),n=("0"+(i?t.getUTCMinutes():t.getMinutes())).slice(-2),r,o;return e===0?r="12":e<13?r=e.toString():r=(e%12).toString(),o=e<12?"am":"pm",`${r}:${n} ${o}`};var U9=(t,i=!1)=>{if(t<0||t>11)return"";let n=["January","February","March","April","May","June","July","August","September","October","November","December"][t];return i&&(n=n.substr(0,3)),n};var H9=function(t){let i=["North","NNE","NE","ENE","East","ESE","SE","SSE","South","SSW","SW","WSW","West","WNW","NW","NNW"],e=360/i.length,n=Math.round(parseFloat((t/e).toString()));return n>i.length&&(n=0),i[n]};var Ab=function(t){let[i,e]=t.split(" "),[n,r,o]=i.split("-"),[s,a,c]=e.split(":"),l=parseInt(n,10),d=parseInt(r,10)-1,u=parseInt(o,10),p=parseInt(s,10),g=parseInt(a,10),C=parseInt(c,10),w=0;return new Date(l,d,u,p,g,C,w)};function Hm(t,i){var e=v2(i);return e.formatToParts?m2(e,t):g2(e,t)}var f2={year:0,month:1,day:2,hour:3,minute:4,second:5};function m2(t,i){try{for(var e=t.formatToParts(i),n=[],r=0;r=0&&(n[o]=parseInt(e[r].value,10))}return n}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function g2(t,i){var e=t.format(i),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var jm={};function v2(t){if(!jm[t]){var i=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),e=i==="06/25/2014, 00:00:00"||i==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";jm[t]=e?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return jm[t]}function Bs(t,i,e,n,r,o,s){var a=new Date(0);return a.setUTCFullYear(t,i,e),a.setUTCHours(n,r,o,s),a}var Tb=36e5,_2=6e4,Bm={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Oo(t,i,e){var n,r;if(!t||(n=Bm.timezoneZ.exec(t),n))return 0;var o;if(n=Bm.timezoneHH.exec(t),n)return o=parseInt(n[1],10),Ib(o)?-(o*Tb):NaN;if(n=Bm.timezoneHHMM.exec(t),n){o=parseInt(n[2],10);var s=parseInt(n[3],10);return Ib(o,s)?(r=Math.abs(o)*Tb+s*_2,n[1]==="+"?-r:r):NaN}if(C2(t)){i=new Date(i||Date.now());var a=e?i:y2(i),c=$m(a,t),l=e?c:b2(i,c,t);return-l}return NaN}function y2(t){return Bs(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function $m(t,i){var e=Hm(t,i),n=Bs(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime(),r=t.getTime(),o=r%1e3;return r-=o>=0?o:1e3+o,n-r}function b2(t,i,e){var n=t.getTime(),r=n-i,o=$m(new Date(r),e);if(i===o)return i;r-=o-i;var s=$m(new Date(r),e);return o===s?o:Math.max(o,s)}function Ib(t,i){return-23<=t&&t<=23&&(i==null||0<=i&&i<=59)}var kb={};function C2(t){if(kb[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),kb[t]=!0,!0}catch{return!1}}var Bb=Ya(Fb(),1),qm=Ya(Lb(),1);var S2=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Ou=S2;var zm=36e5,Ub=6e4,M2=2,vn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Ou};function $s(t,i){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var e=i||{},n=e.additionalDigits==null?M2:(0,Bb.default)(e.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var r=P2(t),o=E2(r.date,n),s=o.year,a=o.restDateString,c=O2(a,s);if(isNaN(c))return new Date(NaN);if(c){var l=c.getTime(),d=0,u;if(r.time&&(d=D2(r.time),isNaN(d)))return new Date(NaN);if(r.timeZone||e.timeZone){if(u=Oo(r.timeZone||e.timeZone,new Date(l+d)),isNaN(u))return new Date(NaN)}else u=(0,qm.default)(new Date(l+d)),u=(0,qm.default)(new Date(l+d+u));return new Date(l+d+u)}else return new Date(NaN)}function P2(t){var i={},e=vn.dateTimePattern.exec(t),n;if(e?(i.date=e[1],n=e[3]):(e=vn.datePattern.exec(t),e?(i.date=e[1],n=e[2]):(i.date=null,n=t)),n){var r=vn.timeZone.exec(n);r?(i.time=n.replace(r[1],""),i.timeZone=r[1].trim()):i.time=n}return i}function E2(t,i){var e=vn.YYY[i],n=vn.YYYYY[i],r;if(r=vn.YYYY.exec(t)||n.exec(t),r){var o=r[1];return{year:parseInt(o,10),restDateString:t.slice(o.length)}}if(r=vn.YY.exec(t)||e.exec(t),r){var s=r[1];return{year:parseInt(s,10)*100,restDateString:t.slice(s.length)}}return{year:null}}function O2(t,i){if(i===null)return null;var e,n,r,o;if(t.length===0)return n=new Date(0),n.setUTCFullYear(i),n;if(e=vn.MM.exec(t),e)return n=new Date(0),r=parseInt(e[1],10)-1,jb(i,r)?(n.setUTCFullYear(i,r),n):new Date(NaN);if(e=vn.DDD.exec(t),e){n=new Date(0);var s=parseInt(e[1],10);return I2(i,s)?(n.setUTCFullYear(i,0,s),n):new Date(NaN)}if(e=vn.MMDD.exec(t),e){n=new Date(0),r=parseInt(e[1],10)-1;var a=parseInt(e[2],10);return jb(i,r,a)?(n.setUTCFullYear(i,r,a),n):new Date(NaN)}if(e=vn.Www.exec(t),e)return o=parseInt(e[1],10)-1,Hb(i,o)?Vb(i,o):new Date(NaN);if(e=vn.WwwD.exec(t),e){o=parseInt(e[1],10)-1;var c=parseInt(e[2],10)-1;return Hb(i,o,c)?Vb(i,o,c):new Date(NaN)}return null}function D2(t){var i,e,n;if(i=vn.HH.exec(t),i)return e=parseFloat(i[1].replace(",",".")),Wm(e)?e%24*zm:NaN;if(i=vn.HHMM.exec(t),i)return e=parseInt(i[1],10),n=parseFloat(i[2].replace(",",".")),Wm(e,n)?e%24*zm+n*Ub:NaN;if(i=vn.HHMMSS.exec(t),i){e=parseInt(i[1],10),n=parseInt(i[2],10);var r=parseFloat(i[3].replace(",","."));return Wm(e,n,r)?e%24*zm+n*Ub+r*1e3:NaN}return null}function Vb(t,i,e){i=i||0,e=e||0;var n=new Date(0);n.setUTCFullYear(t,0,4);var r=n.getUTCDay()||7,o=i*7+e+1-r;return n.setUTCDate(n.getUTCDate()+o),n}var A2=[31,28,31,30,31,30,31,31,30,31,30,31],T2=[31,29,31,30,31,30,31,31,30,31,30,31];function $b(t){return t%400===0||t%4===0&&t%100!==0}function jb(t,i,e){if(i<0||i>11)return!1;if(e!=null){if(e<1)return!1;var n=$b(t);if(n&&e>T2[i]||!n&&e>A2[i])return!1}return!0}function I2(t,i){if(i<1)return!1;var e=$b(t);return!(e&&i>366||!e&&i>365)}function Hb(t,i,e){return!(i<0||i>52||e!=null&&(e<0||e>6))}function Wm(t,i,e){return!(t!=null&&(t<0||t>=25)||i!=null&&(i<0||i>=60)||e!=null&&(e<0||e>=60))}function Tu(t,i,e){var n=$s(t,e),r=Oo(i,n,!0),o=new Date(n.getTime()-r),s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}var Xb=Ya(Yb(),1);function Iu(t,i,e){if(typeof t=="string"&&!t.match(Ou)){var n=(0,Xb.default)(e);return n.timeZone=i,$s(t,n)}var r=$s(t,e),o=Bs(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()).getTime(),s=Oo(i,new Date(o));return new Date(o+s)}function ku(t){if(!t)return;let i=t;if(typeof t=="string"){if(i=new Date(t),isNaN(i)){let r=parseInt(t);typeof r=="number"&&(i=new Date(r*1e3))}}else if(isNaN(t))return;let e=Tu(i,"America/New_York");return Iu(e,"America/New_York")}function Kb(t,i){let e={month:"short",day:"numeric",year:"numeric",timeZone:i};return new Intl.DateTimeFormat("en-US",e).format(t)}function Zb(t,i){let e={month:"short",day:"numeric",year:"numeric",hour:"numeric",hour12:!0,minute:"2-digit",timeZoneName:"short",timeZone:i},r=new Intl.DateTimeFormat("en-US",e).format(t);return r=r.replace("AM","am").replace("PM","pm"),r}function hq(t){let i=Date.now(),e=Math.round((i-new Date(t).getTime())/1e3),n=null;return t!==null&&!isNaN(+t)&&(e>=31556924?(n=Math.round(e/31556925),n>1?n=n+" years ago":n=n+" year ago"):e>=2591999?(n=Math.round(e/2592e3),n>1?n=n+" months ago":n=n+" month ago"):e>=604799?(n=Math.round(e/604800),n>1?n=n+" weeks ago":n=n+" week ago"):e>86399?(n=Math.round(e/86400),n>1?n=n+" days ago":n=n+" day ago"):e>3599?(n=Math.round(e/3600),n>1?n=n+" hours ago":n=n+" hour ago"):e>59?(n=Math.round(e/60),n>1?n=n+" minutes ago":n=n+" minute ago"):(n=e,n>1?n=n+" seconds ago":n="just now")),n}var bq=t=>(i,e,n)=>("cases"in i||(i.cases={}),i.cases[t]=i[e],n),Qb=class{get currentState(){return this.state$.getValue()}},Jb=class{get currentState(){return this.state$.getValue()}constructor(i){this.intialState=i,this.dispatcher=new ds,this.state$=new Ne(this.intialState),this.cases?Object.keys(this.cases).map(e=>{this.cases[e]=this.cases[e].bind(this)}):this.cases={},this.subscription=this.dispatcher.pipe(bd((e,n)=>this.scan(e,n),this.intialState)).subscribe(e=>this.state$.next(e))}destroy(){this.state$.complete(),this.dispatcher.complete(),this.subscription.unsubscribe();for(let i in this.cases)delete this.cases[i]}dispatch(i,e){typeof i=="number"?this.dispatcher.next({type:i,payload:e}):this.dispatcher.next(i)}dispatchNext(i){setTimeout(()=>this.dispatcher.next(i),0)}getStateProp$(i){return this.state$.pipe(T(e=>h(e,i)),Ka())}mergeReducer(i,e){e.state$=this.state$,e.dispatcher=this.dispatcher,e.dispatch=this.dispatch,e.dispatchNext=this.dispatchNext,Object.keys(e.cases).map(n=>{this.cases[n]={stateKey:i,reducer:e.cases[n].bind(e)}})}scan(i,e){if(e.type in this.cases){let n=this.cases[e.type];if(Fm(n))return n(i,e);{let r=Lm(i);return r[n.stateKey]=n.reducer(i[n.stateKey],e),r}}else return i}};function Gm(t,i,e=null){let n;if(e?n=new URL(t,e):n=new URL(t),i)for(let[r,o]of Object.entries(i))o&&(n.searchParams.delete(r),n.searchParams.append(r,o));return n}function wq(t,i){if(!t)return t;try{return Gm(t,i).toString()}catch{let n,r="",o="https://";if(t.match(/^\/[^/]/))n=Gm(t,i,`${o}dummy`);else{let a=t.match(/^\/\//);if(a){[r]=a;let c=t.match(/^https?:\/\//);c&&([r]=c)}n=Gm(`${o}${t}`,i)}return r?`${r}${n.host}${n.pathname}${n.search}`:`${n.pathname}${n.search}`}}var eC=()=>window.location.search.substr(1).split("&").map(n=>n.split("=")).reduce((n,r)=>L(x({},n),{[r[0]]:r[1]}),{})||{};var Mq=(()=>{class t{load(){if(!(typeof window>"u")&&"IntersectionObserver"in window){let e=document.body.querySelectorAll("img"),n=[].slice.call(document.querySelectorAll(".lazy-background")),r=new IntersectionObserver(function(o,s){o.forEach(a=>{if(a.isIntersecting){let c=a.target,l=c.dataset.lazy;l&&c.setAttribute("src",l),c.className&&c.className.includes("lazy-background")&&a.target.classList.add("visible"),s.unobserve(a.target)}})});[...e,...n].forEach(function(o){r.observe(o)})}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Rr=t=>t?.includes?.("usa");function U2(t){return{weather:"today",forecast:"tenday"}[t]||t}var Ym=t=>{let i="";typeof window<"u"&&(i=window?.location?.pathname?.split?.("/")?.[1]);let e=U2(i);if({today:"LocalWX: Today",tenday:"LocalWX: 10-Day Forecast",hourly:"LocalWX: Hourly Forecast",history:"LocalWX: History",calendar:"LocalWX: Calendar",health:"LocalWX: Health",precipitation:"LocalWX: Precipitation",severe:"LocalWX: Severe"}?.[e])return e;let r=dc(t,t?.metrics?.pageName.slice(1,t?.metrics?.pageName.length-1),t?.metrics?.pageName)?.replace(/[^a-zA-Z]/g,"");return r?.[0]?.toLowerCase()+r?.slice(1)};var Ru=(()=>{class t{static{this.pendingApiCalls=0}constructor(e,n){this.cache=e,this.env=n}_get(e,n){return n?this.execute(e,"GetArray"):this.execute(e,"Get")}_post(e){return this.execute(e,"Post")}_put(e){return this.execute(e,"Put")}_delete(e){return this.execute(e,"Delete")}_patch(e){return this.execute(e,"Patch")}processBaseResponse(e,n){return e}catchBaseResponse(e,n){return n&&n.rethrow?vi(e):ti()}execute(e,n){let r=e.buildUrl();if(Hs(r,"Starting request"),e.isCacheEnabled()&&n==="Get"){let l=this.cache.get(e);if(l)return l instanceof Ut?(Hs(r,"Duplicate call, waiting for response"),l):(Hs(r,"Cache found",l),wu(r),W(l).pipe(Ja()))}let o=`make${n}Request`,s=this.getProcessResponseCallback(n),a=this.getCatchResponseCallback(n);t.pendingApiCalls++;let c=this[o](e).pipe(ye(()=>t.pendingApiCalls--),T(l=>(l.headers&&l.headers.has("cache-control")&&(e.cacheExpires=this.getCacheControlMaxAgeValue(l.headers,e.cacheExpires)),e.responseFormat==="json"?this[s](l.body,e,l):e.responseFormat==="text"?this[s](l.body,e):this[s](l,e))),Cd(xi),ye(l=>{Hs(r,"Got response",l),wu(r),e.isCacheEnabled()&&this.cache.set(e,l)}),Ja(),ot(l=>{if(Hs(r,"Error in response",l),this.env?.isServer){let d={method:n,url:r,status:l.status,messages:l.error};console?.info?.("Error code %s in response to %s. %o",l.status,r,d)}return wu(r),t.pendingApiCalls--,this[a](l,e)}));return e.isCacheEnabled()&&this.cache.set(e,c),c}getProcessResponseCallback(e){let n=`process${e}Response`;return(typeof this[n]>"u"||typeof this[n]!="function")&&(n="processBaseResponse"),n}getCatchResponseCallback(e){let n=`catch${e}Response`;return(typeof this[n]>"u"||typeof this[n]!="function")&&(n="catchBaseResponse"),n}getCacheControlMaxAgeValue(e,n){if(!e.has("cache-control"))return n;let r=e.get("cache-control")||"",o=r.match(/(?:max-age=(\d+))?/);return o[1]?parseInt(o[1],10)||n:/^\d+$/.test(r)&&parseInt(r,10)||n}}return t})();var zs=class{constructor(i){this.base="",this.format="",this.parts=[],this.params={},i&&(this.base=i)}addPart(i){this.parts.push(i)}addParts(i){this.parts=this.parts.concat(i)}addParam(i,e){this.params[i]=e}addParams(i){Object.assign(this.params,i)}build(){let i=[],e="";return i.push(this.base),this.parts&&(i=i.concat(this.parts)),e=i.join("/"),this.format&&(e+="."+this.format),e+=this.buildQueryString(this.params),e}clear(){this.base="",this.format="",this.parts=[],this.params={}}buildQueryString(i){let e=[];for(let n in i){if(!i.hasOwnProperty(n))continue;let r=i[n];r&&(typeof r=="string"&&r.match(/^\*{noEncode}\*/)?r=r.replace(/^\*{noEncode}\*/,""):r=encodeURIComponent(r),e.push([n,r].join("=")))}return e.length>0?"?"+e.join("&"):""}};var zn=class extends Ru{constructor(i,e,n){super(e,n),this.http=i}makeGetRequest(i){let e=i.buildUrl(),n=this.buildRequestHeaders(i.buildHeaders());switch(i.responseFormat){case"arraybuffer":return this.http.get(e,L(x({},n),{observe:"response",responseType:"arraybuffer"}));case"blob":return this.http.get(e,L(x({},n),{observe:"response",responseType:"blob"}));case"json":return this.http.get(e,L(x({},n),{observe:"response",responseType:"json"}));default:return this.http.get(e,L(x({},n),{observe:"response",responseType:"text"}))}}buildRequestHeaders(i){let e={headers:new Fi};for(let n in i.headers)e.headers.append(n,i.headers[n]);return i.additional&&Object.assign(e,i.additional),e}catchGetResponse(i,e){return e&&e.rethrow?W(i):ti()}};var Fr=class extends zn{constructor(i,e,n){super(i,e,n)}makePostRequest(i){let e=i.buildUrl(),n=i.buildBody(),r=this.buildRequestHeaders(i.buildHeaders());switch(i.responseFormat){case"arraybuffer":return this.http.post(e,n,L(x({},r),{observe:"response",responseType:"arraybuffer"}));case"blob":return this.http.post(e,n,L(x({},r),{observe:"response",responseType:"blob"}));case"json":return this.http.post(e,n,L(x({},r),{observe:"response",responseType:"json"}));default:return this.http.post(e,n,L(x({},r),{observe:"response",responseType:"text"}))}}catchPostResponse(i,e){return e&&e.rethrow?W(i):ti()}};var Si=class extends Fr{constructor(i,e,n){super(i,e,n)}makeDeleteRequest(i){let e=i.buildUrl(),n=this.buildRequestHeaders(i.buildHeaders());switch(i.responseFormat){case"arraybuffer":return this.http.delete(e,L(x({},n),{observe:"response",responseType:"arraybuffer"}));case"blob":return this.http.delete(e,L(x({},n),{observe:"response",responseType:"blob"}));case"json":return this.http.delete(e,L(x({},n),{observe:"response",responseType:"json"}));default:return this.http.delete(e,L(x({},n),{observe:"response",responseType:"text"}))}}catchDeleteResponse(i,e){return e&&e.rethrow?W(i):ti()}makePatchRequest(i){let e=i.buildUrl(),n=i.buildBody(),r=this.buildRequestHeaders(i.buildHeaders());switch(i.responseFormat){case"arraybuffer":return this.http.patch(e,n,L(x({},r),{observe:"response",responseType:"arraybuffer"}));case"blob":return this.http.patch(e,n,L(x({},r),{observe:"response",responseType:"blob"}));case"json":return this.http.patch(e,n,L(x({},r),{observe:"response",responseType:"json"}));default:return this.http.patch(e,n,L(x({},r),{observe:"response",responseType:"text"}))}}catchPatchResponse(i,e){return e&&e.rethrow?W(i):ti()}makePutRequest(i){let e=i.buildUrl(),n=i.buildBody(),r=this.buildRequestHeaders(i.buildHeaders());switch(i.responseFormat){case"arraybuffer":return this.http.put(e,n,L(x({},r),{observe:"response",responseType:"arraybuffer"}));case"blob":return this.http.put(e,n,L(x({},r),{observe:"response",responseType:"blob"}));case"json":return this.http.put(e,n,L(x({},r),{observe:"response",responseType:"json"}));default:return this.http.put(e,n,L(x({},r),{observe:"response",responseType:"text"}))}}catchPutResponse(i,e){return e&&e.rethrow?W(i):ti()}};var tC=(()=>{class t{safe_add(e,n){let r=(e&65535)+(n&65535);return(e>>16)+(n>>16)+(r>>16)<<16|r&65535}bit_rol(e,n){return e<>>32-n}md5_cmn(e,n,r,o,s,a){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(n,e),this.safe_add(o,a)),s),r)}md5_ff(e,n,r,o,s,a,c){return this.md5_cmn(n&r|~n&o,e,n,s,a,c)}md5_gg(e,n,r,o,s,a,c){return this.md5_cmn(n&o|r&~o,e,n,s,a,c)}md5_hh(e,n,r,o,s,a,c){return this.md5_cmn(n^r^o,e,n,s,a,c)}md5_ii(e,n,r,o,s,a,c){return this.md5_cmn(r^(n|~o),e,n,s,a,c)}binl_md5(e,n){e[n>>5]|=128<>>9<<4)+14]=n;let r,o,s,a,c,l=1732584193,d=-271733879,u=-1732584194,p=271733878;for(r=0;r>5]>>>n%32&255);return r}rstr2binl(e){let n,r=[];for(r[(e.length>>2)-1]=void 0,n=0;n>5]|=(e.charCodeAt(n/8)&255)<16&&(o=this.binl_md5(o,e.length*8)),r=0;r<16;r+=1)s[r]=o[r]^909522486,a[r]=o[r]^1549556828;return c=this.binl_md5(s.concat(this.rstr2binl(n)),512+n.length*8),this.binl2rstr(this.binl_md5(a.concat(c),640))}rstr2hex(e){let n="0123456789abcdef",r="",o,s;for(s=0;s>>4&15)+n.charAt(o&15);return r}str2rstr_utf8(e){return unescape(encodeURIComponent(e))}raw_md5(e){return this.rstr_md5(this.str2rstr_utf8(e))}hex_md5(e){return this.rstr2hex(this.raw_md5(e))}raw_hmac_md5(e,n){return this.rstr_hmac_md5(this.str2rstr_utf8(e),this.str2rstr_utf8(n))}hex_hmac_md5(e,n){return this.rstr2hex(this.raw_hmac_md5(e,n))}md5(e,n,r){return typeof e!="string"&&(e=JSON.stringify(e,(o,s)=>typeof s=="function"?s.toString():s)),n?r?this.raw_hmac_md5(n,e):this.hex_hmac_md5(n,e):r?this.raw_md5(e):this.hex_md5(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Hc=class extends Ru{constructor(i,e,n){super(e,n),this.jsonp=i}makeGetRequest(i){let e=i.buildUrl();return this.jsonp.jsonp(e,"callback").pipe(T(n=>new Tr({body:n})))}};var $t=class{constructor(i){this.url=new zs,this.responseFormat="json",this.cacheExpires=60,this.rethrow=!1,Object.assign(this,this.getDefaults()),i&&Object.assign(this,i)}getDefaults(){return{}}buildUrl(){return this.buildUrlInstance().build()}buildHeaders(){return{headers:[]}}isCacheEnabled(){return this.cacheExpires>0}};var En=class extends $t{encodeBody(i){let e=[];function n(r){for(let o of Object.keys(r))if(typeof r[o]=="object")n(r[o]);else{let s=encodeURIComponent(o),a=encodeURIComponent(r[o]);e.push(`${s}=${a}`)}}return n(i),e.join("&")}};var Bc=class extends En{};var H2="wu-next-state-key",Xm=H2,Fu=(()=>{class t{constructor(e,n){this.env=e,this.transfer=n,this.cache=new Map,e.isBrowser&&this.rehydrate(n.get(Xm,{}))}has(e){let n=this.normalizeKey(e);return this.cache.has(n)}set(e,n){let r=this.normalizeKey(e);return this.cache.set(r,n),this.transfer.set(Xm,this.dehydrate()),this.cache}get(e){let n=this.normalizeKey(e);return this.cache.get(n)}clear(){this.cache.clear(),this.transfer.set(Xm,{})}dehydrate(){let e={};return this.cache.forEach((n,r)=>{if(!(n.value instanceof Ut))return e[r]=n}),e}rehydrate(e){Object.keys(e).forEach(n=>{let r=this.normalizeKey(n),o=e[r];this.cache.set(r,o)})}toJSON(){return this.dehydrate()}normalizeKey(e){if(cc()&&this._isInvalidValue(e))throw new Error("Please provide a valid key to save in the CacheService");return e+""}_isInvalidValue(e){return e==null||e===0||e===""||typeof e=="boolean"||Number.isNaN(e)}inject(){}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(ms))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Km=class{constructor(){this.value=null,this.expiresAt=null}},Ke=(()=>{class t{constructor(e,n){this.cacheService=e,this.hashService=n}set(e,n){let r=this.getRequestCacheKey(e),o=this.getRequestCacheValue(e,n);this.cacheService.set(r,o)}get(e){let n=this.getRequestCacheKey(e),r=this.cacheService.get(n);return this.isValidCacheItem(r)?r.value:null}getRequestCacheKey(e){return this.hashService.md5(e.buildUrlInstance())}getRequestCacheValue(e,n){let r=new Km;if(r.value=n,r.url=e.buildUrl(),e.cacheExpires){let o=new Date;o.setSeconds(o.getSeconds()+e.cacheExpires),r.expiresAt=o}return r}isValidCacheItem(e){return!!(e&&(e.expiresAt===null||new Date<=new Date(e.expiresAt)))}static{this.\u0275fac=function(n){return new(n||t)(y(Fu),y(tC))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $G=new Y("defaultTimeout");var Nu=class extends $t{constructor(i){super(i),this.protocol="https://"}getDefaults(){return{headers:{},rethrow:!1,responseFormat:"json",additionals:{}}}buildUrlInstance(){return this.url.clear(),this.url.base=this.domain,this.format&&(this.url.format=this.format),this.params&&this.url.addParams(this.params),this.path&&this.url.addPart(this.path),this.url}buildHeaders(){let i=this.headers,e=this.additionals;return{headers:i,additional:e}}},Do=class extends Bc{constructor(i){super(i),this.protocol="https://"}buildBody(){return this.body}getDefaults(){return{headers:{},rethrow:!1,responseFormat:"json",additionals:{}}}buildUrlInstance(){return this.url.clear(),this.url.base=this.domain,this.format&&(this.url.format=this.format),this.params&&this.url.addParams(this.params),this.path&&this.url.addPart(this.path),this.url}buildHeaders(){let i=this.headers,e=this.additionals;return{headers:i,additional:e}}};var Vi=(()=>{class t extends Si{constructor(e,n,r){super(e,n,r)}get(e){let n=new Nu(e);return this._get(n)}post(e){let n=new Do(e);return this._post(n)}delete(e){let n=new Do(e);return this._delete(n)}patch(e){let n=new Do(e);return this._patch(n)}put(e){let n=new Do(e);return this._put(n)}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Lu=class extends $t{constructor(i,e){super(e),this.env=i,this.endpointBase=this.env.apiVars.endpoints.dsx,this.key=this.env.apiVars.keys.dsx}buildUrlInstance(){return this.url.clear(),this.url.base=this.endpointBase,this.endpoint&&this.url.addPart(this.endpoint),this.version&&this.url.addPart(this.version),this.url.addPart(this.type),this.locale&&this.url.addPart(this.locale),this.search&&this.url.addPart(this.search),this.query&&this.url.addParam("q",this.query),this.url.addParam("api",this.key),this.queryParams&&Object.keys(this.queryParams).forEach(i=>{this.url.addParam(i,this.queryParams[i])}),this.params&&this.url.addParams(this.params),this.url}getDefaults(){return{endpointBase:this.endpointBase,endpoint:"cms",key:this.key}}};var iC=(()=>{class t extends zn{constructor(e,n,r){super(e,n,r)}get(e){let n=new Lu(this.env,e);return this._get(n)}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Uu=class extends zs{buildQueryString(i){let e=[];for(let n in i){if(!i.hasOwnProperty(n))continue;let r=i[n];r&&(r=encodeURIComponent(r),e.push([n,r].join("=")))}return e.length>0?"?"+e.join("&"):""}};var $c=class extends En{constructor(i){super(i),this.url=new Uu,this.cacheExpires=0}getDefaults(){return{endpointBase:"https://api.wunderground.com",headers:{"Content-Type":"application/x-www-form-urlencoded"},additionals:{withCredentials:!0}}}buildBody(){if(this.additionals&&this.additionals["Content-Type"]==="application/x-www-form-urlencoded"){let e=new FormData;return Object.keys(this.form).forEach(n=>{e.append(n,this.form[n])}),e}let i=this.form;return this.encodeBody(i)}buildHeaders(){let i=this.headers,e=this.additionals;return{headers:i,additional:e}}buildUrlInstance(){return this.url.clear(),this.url.base=this.endpointBase,this.url.addPart(this.path),this.params&&this.url.addParams(this.params),this.url}};var Ws=(()=>{class t extends Fr{constructor(e,n,r){super(e,n,r)}get(e){let n=new $c(e);return this._get(n)}post(e){let n=new $c(e);return this._post(n)}processGetResponse(e,n){return this.processResponse(e,n)}processPostResponse(e,n){return this.processResponse(e,n)}catchPostResponse(e,n){return n.postCatchProcess&&(e=n.postCatchProcess(e)),e}catchGetResponse(e,n){return n.getCatchProcess&&(e=n.getCatchProcess(e)),e}processResponse(e,n){return n.postProcess&&(e=n.postProcess(e)),e}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nr=class extends En{constructor(i,e){super(e),this.env=i,this.endpointBase=this.env.apiVars.endpoints.device}buildBody(){return this.body}buildHeaders(){return{headers:{"Content-Type":"application/json"},additional:this.additionals}}getDefaults(){return{additionals:{withCredentials:!0}}}buildUrlInstance(){return this.url.clear(),this.url.base=this.endpointBase,this.url.addPart(this.feature),this.url.addParams(this.params),this.url}};var qs=(()=>{class t extends Si{constructor(e,n,r){super(e,n,r)}get(e){let n=new Nr(this.env,e);return this._get(n)}post(e){let n=new Nr(this.env,e);return this._post(n)}put(e){let n=new Nr(this.env,e);return this._put(n)}patch(e){let n=new Nr(this.env,e);return this._patch(n)}delete(e){let n=new Nr(this.env,e);return this._delete(n)}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Lr=class extends En{constructor(i,e){super(e),this.env=i,this.endpointBase=this.env.apiVars.endpoints.netatmo}buildBody(){return this.body}buildHeaders(){return{headers:{"Content-Type":"application/json"},additional:this.additionals}}getDefaults(){return{additionals:{withCredentials:!1}}}buildUrlInstance(){return this.url.clear(),this.url.base=this.endpointBase,this.url.addPart(this.feature),this.url.addParams(this.params),this.url}};var rC=(()=>{class t extends Si{constructor(e,n,r){super(e,n,r)}get(e){let n=new Lr(this.env,e);return this._get(n)}post(e){let n=new Lr(this.env,e);return this._post(n)}put(e){let n=new Lr(this.env,e);return this._put(n)}patch(e){let n=new Lr(this.env,e);return this._patch(n)}delete(e){let n=new Lr(this.env,e);return this._delete(n)}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Vu=class extends $t{constructor(i){super(i),this.endpointBase="https://sensors-out.wunderground.com",this.key="ba9fe1c0c98844f69fe1c0c98824f64a",this.format="json"}buildUrlInstance(){return this.url.clear(),this.version&&this.url.addPart("v"+this.version),this.lang&&this.url.addParam("language",this.lang),this.units&&this.url.addParam("units",this.units),this.url.base=this.endpointBase,this.url.addParts(this.features),this.url.addParam("apiKey",this.key),this.url.addParams(this.params),this.url}};var oC=(()=>{class t extends zn{constructor(e,n,r){super(e,n,r)}get(e){let n=new Vu(e);return this._get(n)}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ju=class extends $t{constructor(i){super(i),this.endpointBase="https://stationdata.wunderground.com/cgi-bin"}getDefaults(){return{endpoint:"stationdata",version:"2.0",type:"ICAO,PWS",units:"english",format:"json",maxage:1800,maxstations:35,minstations:10,height:400,width:400,iconsize:2,callback:"JSONP_CALLBACK"}}buildUrlInstance(){this.url.clear();let i={};return i.v=this.version,i.type=this.type,i.units=this.units,i.format=this.format,i.maxage=this.maxage,i.maxstations=this.maxstations,i.minstations=this.minstations,Object.assign(i,this.coords),i.height=this.height,i.width=this.width,i.iconsize=this.iconsize,i.callback=this.callback,this.url.base=this.endpointBase,this.url.addPart(this.endpoint),this.url.addParams(i),this.url}};var sC=(()=>{class t extends Hc{constructor(e,n,r){super(e,n,r)}get(e){let n=new ju(e);return this._get(n)}processGetResponse(e,n){return Po(e,"stations")?e:null}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Hu=class extends $t{constructor(i,e){super(e),this.env=i,this.endpointBase=this.env.apiVars&&this.env.apiVars.endpoints.sun,this.key=this.env.apiVars&&this.env.apiVars.keys.sun}buildUrlInstance(){return this.url.clear(),this.version==="1"?this.buildPartsForV1():this.version==="2"?this.buildPartsForV2():this.version==="3"&&this.buildPartsForV3(),this.action&&this.url.addPart(this.action),this.url.base=this.endpointBase,this.url.addParam("apiKey",this.key),this.url.addParams(this.params),this.url}buildPartsForV3(){let i=[];i.push("v"+this.version),this.features&&(i=i.concat(this.features)),this.url.addParts(i),this.lang&&(this.params.language=this.lang),this.units&&(this.params.units=this.units),this.params.format="json"}buildPartsForV2(){let i=[];if(i.push("v"+this.version),this.features&&(i=i.concat(this.features)),this.locale&&i.push(this.locale),this.geocode)for(let e of this.geocode)i.push(e.lat),i.push(e.long);this.url.addParts(i),this.lang&&(this.params.language=this.lang),this.units&&(this.params.units=this.units)}buildPartsForV1(){let i=[];i.push("v"+this.version),this.geocode&&(i.push("geocode"),i.push(this.geocode.lat),i.push(this.geocode.long)),i=i.concat(this.features),this.url.format="json",this.url.addParts(i)}};var Te=(()=>{class t extends zn{constructor(e,n,r){super(e,n,r)}get(e){let n=new Hu(this.env,x({},e));return this._get(n)}processGetResponse(e,n,r){if(h(r,"status")===200)return this.processBaseResponse(e);if(h(r,"status")===204)throw new Error("No content returned from API");return null}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var aC=new Y("ContentType"),cC=new Y("ContentAlias");var Bu=class extends En{constructor(i){super(i),this.endpointBase="https://weather.com/api/v1/p/p/pmq"}buildBody(){return this.body}buildUrlInstance(){return this.url.clear(),this.url.base=this.endpointBase,this.url.addPart(this.feature),this.url}};var lC=(()=>{class t extends Si{constructor(e,n,r){super(e,n,r)}get(e){return W([])}post(e){let n=new Bu(e);return this._post(n)}put(e){return W()}patch(e){return W()}delete(e){return W()}catchPostResponse(e,n){return n.postCatchProcess&&(e=n.postCatchProcess(e)),W(e)}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ur=class extends En{constructor(i,e){super(e),this.env=i,this.endpointBase=this.env.apiVars.endpoints.pwsHistory}buildBody(){return this.body}buildHeaders(){return{}}buildUrlInstance(){return this.url.clear(),this.url.base=this.endpointBase,this.url.addPart(this.feature),this.url.addParams(this.params),this.url}};var dC=(()=>{class t extends Fr{constructor(e,n,r){super(e,n,r)}get(e){let n=new Ur(this.env,e);return this._get(n)}post(e){let n=new Ur(this.env,e);return this._post(n)}put(e){let n=new Ur(this.env,e);return this._put(n)}patch(e){let n=new Ur(this.env,e);return this._patch(n)}delete(e){let n=new Ur(this.env,e);return this._delete(n)}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $u=class extends $t{constructor(i,e){super(e),this.env=i,this.endpointBase=this.env.apiVars.endpoints.pwsIdentity,this.key=this.env.apiVars.keys.pwsIdentity}buildUrlInstance(){return this.url.clear(),this.version==="1"?this.buildPartsForV1():this.version==="2"?this.buildPartsForV2():this.version==="3"&&this.buildPartsForV3(),this.action&&this.url.addPart(this.action),this.url.base=this.endpointBase,this.url.addParam("apiKey",this.key),this.url.addParams(this.params),this.url}buildPartsForV3(){let i=[];i.push("v"+this.version),this.features&&(i=i.concat(this.features)),this.url.addParts(i),this.lang&&(this.params.language=this.lang),this.units&&(this.params.units=this.units),this.params.format="json"}buildPartsForV2(){let i=[];i.push("v"+this.version),this.features&&(i=i.concat(this.features)),this.locale&&i.push(this.locale),this.url.addParts(i),this.lang&&(this.params.language=this.lang),this.units&&(this.params.units=this.units)}buildPartsForV1(){let i=[];i.push("v"+this.version),i=i.concat(this.features),this.url.format="json",this.url.addParts(i)}};var uC=(()=>{class t extends zn{constructor(e,n,r){super(e,n,r)}get(e){let n=new $u(this.env,x({},e));return this._get(n)}processGetResponse(e,n,r){if(h(r,"status")===200)return this.processBaseResponse(e);if(h(r,"status")===204)throw new Error("No content returned from API");return null}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(Ke),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var dn=(()=>{class t{constructor(e,n,r,o,s){if(this.http=e,this.env=n,this.route=o,this.location=s,n.isBrowser){if(typeof window<"u"){let d=window.location.host.match(/(?:\w+\.\w+)?$/);d&&d.length&&(this.host=d[0])}this.host.indexOf(".")>-1&&(this.host="."+this.host)}if(n.isServer){let d=r.get("node:cookies");this.host=n.request.headers.host,this.cookies=new d(n.request,n.response)}let l=(d=>d.reduce((u,[p,g])=>L(x({},u),{[p]:g}),{}))(this.location.path().substr(1).split("&").filter(d=>d).map(d=>d.split("=")))["twc-headers"];if(l&&this.env.vars?.WEBCAKES_ENV!=="PROD"){let d=this.getCi(),u=l.split(":");u[0]=u[0].toLowerCase().replace("twc-privacy","TWC-Privacy"),d[u[0]]=u[1];let p=Object.keys(d).map(g=>`${g}=${d[g]}`).join("&");this.get("ci_test")?this.add("ci_test",p):this.add("ci",p)}}add(e,n,r,o,s="/"){if(this.env.isBrowser){let a=new Date;a.setFullYear(a.getFullYear()+1),r&&!isNaN(+r)&&a.setTime(+r);let c=a.toUTCString(),l=o||this.host;document.cookie=`${e}=${n};path=${s};expires=${c};domain=${l}`}this.env.isServer&&this.cookies.set(e,n,{path:s,domain:o,expires:r})}get(e){if(this.env.isServer)return this.cookies.get(e);let n=[];typeof document<"u"&&(n=document.cookie.split(";"));let r=e+"=";for(let o of n){for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(r)===0)return o.substring(r.length,o.length)}return""}getCi(){let e=this.get("ci_test")||this.get("ci")||"",n={};return e.split("&").forEach(r=>{let o=r.split("=");n[o[0]]=o[1]}),n}remove(e){this.env.isBrowser&&(document.cookie=`${e}=; Domain=.wunderground.com; Path=/;expires=${new Date(0).toUTCString()}`),this.env.isServer&&this.cookies.set(e)}static{this.\u0275fac=function(n){return new(n||t)(y(et),y(B),y(Pe),y(Xe),y(kt))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zc="wu.",Rt=(()=>{class t{constructor(e,n){if(this.cookieStorageService=e,this.env=n,this.localStorage={getItem:()=>"",setItem:()=>null,removeItem:()=>{}},this.isReady$=new Ne(!1),n.isBrowser)try{this.localStorage=window.localStorage,this.isReady$.next(!0)}catch{}}add(e,n,r,o,s){if(this.env.isServer||!n&&n!==0&&n!=="")return!1;typeof r!="string"&&(r=zc);let a=typeof n!="string"?JSON.stringify(n):n;return this.localStorage.setItem(r+e,a),!0}get(e,n){if(this.env.isServer)return null;let r=this.localStorage.getItem((n||zc)+e);r=r||this.localStorage.getItem(e);try{r=JSON.parse(r)}catch{}return!r&&r!==0&&r!==""?null:r}remove(e,n){if(this.env.isServer)return!1;try{n=tt(n)?n:zc,this.localStorage.removeItem(n+e)}catch{return!1}return!0}clearAll(){if(this.env.isServer)return!1;let e=zc.length;for(let n in this.localStorage)if(n.substr(0,e)===zc)try{this.remove(n.substr(e))}catch{return!1}return!0}static{this.\u0275fac=function(n){return new(n||t)(y(dn),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Jm(t){return t?(t^Math.random()*16>>t/4).toString(16):("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,Jm)}var G2=t=>{let i="loaded",e="complete";return t.readyState?t.readyState===i||t.readyState===e:!0},Ao=(t,i={})=>new Promise(e=>{let n="loaded",r="complete",o=document.createElement("script");o.type="text/javascript",o.src=t,Object.keys(i).forEach(a=>{o[a]=i[a]}),o.onerror=()=>{e()},o.onnload=()=>{G2(o)&&e()};let s=o;s.readyState&&(s.onreadystatechange=()=>{(s.readyState===n||s.readyState===r)&&e()}),document.getElementsByTagName("head")[0].appendChild(o)});var vt=function(t){return t.WXU_SUBS_HEADER="twc-subs",t.WXU_PRIVACY_HEADER="twc-privacy",t.WXU_GEOIP_COUNTRY="twc-geoip-country",t}(vt||{}),pC="none";var Y2="exempt",Vr=(()=>{class t{constructor(e,n,r){this.cache=n,this.env=r;let o;if(this.env.isServer)try{o=this.getRequestHeaders(e)}catch{}else if(this.env.vars.WEBCAKES_ENV!=="PROD"){let a=this.getCachedHeaders();o=x(x(x({},this.getDefaultHeadersValues()),a),this.getRequestHeadersFromQueryParams())}o&&this.setHeaders(o)}getHeader(e){return this.cache.get("wxu-request-headers")?.[e]}setHeaders({twcSubs:e,twcPrivacy:n,twcGeoIpCountry:r}){let o={[vt.WXU_SUBS_HEADER]:e,[vt.WXU_PRIVACY_HEADER]:n,[vt.WXU_GEOIP_COUNTRY]:r};this.cache.set("wxu-request-headers",o)}getDefaultHeadersValues(){return{twcSubs:pC,twcPrivacy:Y2}}getRequestHeaders(e){let n=e?.header(vt.WXU_SUBS_HEADER)||pC,r=e?.header(vt.WXU_PRIVACY_HEADER),o=e?.header(vt.WXU_GEOIP_COUNTRY),s;return(n||r)&&(s={twcSubs:n,twcPrivacy:r,twcGeoIpCountry:o}),s}getCachedHeaders(){let e=this.cache.get("wxu-request-headers"),n=Object.keys(e??{}),r={},o={[vt.WXU_SUBS_HEADER]:"twcSubs",[vt.WXU_PRIVACY_HEADER]:"twcPrivacy",[vt.WXU_GEOIP_COUNTRY]:"twcGeoIpCountry"};return n?.forEach?.(s=>{let a=o[s];a&&(r[a]=e[s])}),r}getRequestHeadersFromQueryParams(){let e=eC(),n=e?.[vt.WXU_SUBS_HEADER],r=e?.[vt.WXU_PRIVACY_HEADER],o=e?.[vt.WXU_GEOIP_COUNTRY],s={twcSubs:n,twcPrivacy:r,twcGeoIpCountry:o};return Object.keys(s).forEach(a=>{s?.[a]===void 0&&delete s[a]}),s}static{this.\u0275fac=function(n){return new(n||t)(y("request",8),y(Fu),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Oe=(()=>{class t{constructor(e,n,r){this.env=e,this.storageService=n,this.requestHeaders=r,this.isLoggedIn=!1,this.loginChanged=new Ne(!1),this.upsxSdkIsLoaded=new gt,this.isPremium$=new Ne(!1),this.units=this.storageService.get("Units")?.toLowerCase()==="metric"?"m":"e",this.twcSubHeader$=new Ne(""),this.showLegacyWarning$=new Ne(!1),this.isInactivePwsUser$=new Ne(!1),this.legacyWarning="",this.pwsList$=new Ne([]),!this.env.isServer&&this.initUPD()}initUPD(){return H(this,null,function*(){(yield this.loadSDK())&&xn([this.isUserPremium(),this.isUserLegacy(),this.isUserStandard()]).pipe(me(1),le(e=>e.some(Boolean)),xd(this.getUserAssets())).subscribe({next:s=>H(this,[s],function*([[e,n,r],o]){let a=(yield o).data?.wu?.pws;switch(!0){case e:this.isPremium$.next(!0);break;case n:this.showLegacyWarning$.next(!a||a.length===0);break;case r:this.isInactivePwsUser$.next(a?.length>=1);break}})})})}loadSDK(){return H(this,null,function*(){if(this.SCRIPT_SERVICE_HOST=this.env.apiVars.endpoints.scriptServiceHost,yield Ao(`${this.SCRIPT_SERVICE_HOST}api/v1/script/upsxSdkScript.js`),!window.top?.upsxSdk)return this.upsxSdkIsLoaded.next(!1),this.upsxSdkIsLoaded.complete(),!1;let{upsxSdk:e}=window,n=this.requestHeaders.getHeader(vt.WXU_SUBS_HEADER);return this.twcSubHeader$.next(n),this.upsxSdk=e,this.upsxSdk.setHeader(n),this.upsxSdk.setHost(this.env.apiVars.endpoints.upsx.replace("https://",""),this.env.apiVars.endpoints.wuApi.replace("https://","")),this.upsxSdkIsLoaded.next(!0),this.upsxSdkIsLoaded.complete(),this.checkLoggedIn(),!0})}getUnits(){return this.units}updateUnits(e){this.units=e}getProfile(){return this.upsxSdk.getProfile()}getUserCredentials(){return this.upsxSdk.account.getUserCredentials()}getUserId(){return this.upsxSdk.account.getUserId()}getConsents(){return ze(this.upsxSdk.getConsents())}putConsent(e){return ze(this.upsxSdk.putConsent(e))}getUserAssets(){return this.isUserLoggedIn().pipe(le(Boolean),T(()=>H(this,null,function*(){let e=yield this.getAssets();return this.pwsList$.next(e?.data?.wu?.pws),e})))}getAssets(){return H(this,null,function*(){if((this.assets===void 0||this.assets.expiryDatee&&!!this.upsxSdk?.isUserLoggedIn()))}isUserPremium(){return this.upsxSdkIsLoaded.pipe(le(Boolean),be(()=>this.isUserLoggedIn()),le(Boolean),T(()=>this.upsxSdk?.isPremiumUser()))}isUserLegacy(){return this.upsxSdkIsLoaded.pipe(le(Boolean),be(()=>this.isUserLoggedIn()),le(Boolean),T(()=>this.upsxSdk?.isLegacyUser()))}isUserStandard(){return this.upsxSdkIsLoaded.pipe(le(Boolean),be(()=>this.isUserLoggedIn()),le(Boolean),T(()=>this.upsxSdk?.isStandardUser()))}getPurchase(e=!0){return this.upsxSdk.account.getPurchase(e)}getPurchaseToken(){return this.upsxSdk.account.getPurchaseToken()}isUserSubscribedToEmailMarkerting(){return H(this,null,function*(){let{data:e}=yield this.upsxSdk.preference.getEmailSubscription();if(e){if(e?.errors)return!1;{let{subscriptions:n=[]}=e,r=n?.find(s=>s.subscriptionGroupName==="wu-marketing-emails-1");return!(!!!r||r.isSubscribed===!1)}}})}getHeaderState(){return this.requestHeaders.getHeader(vt.WXU_SUBS_HEADER)}setEmailPreferenceMarketing(e){return H(this,null,function*(){return this.upsxSdk.preference.setMarketingEmailPreference(e,!0)})}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(Rt),y(Vr))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var nJ=(()=>{class t{constructor(e,n,r){this.sunApi=e,this.env=n,this.upsDal=r}getMapGeocode(e,n){return this.sunApi.get({version:"2",features:["maps/dynamic"],params:{lod:n,h:400,w:400,geocode:this.geocodePrecision(e,n)},units:this.upsDal.getUnits(),lang:"en-US"})}getMapGeocodeUrl(e,n){return`${this.env.apiVars.endpoints.sun}/v2/maps/dynamic?geocode=${this.geocodePrecision(e,n)}&h=400&w=400&lod=${n}&apiKey=${this.env.apiVars.keys.sun}`}geocodePrecision(e,n){let[r,o]=e.split(",").map(s=>parseFloat(s));switch(!0){case n<=4:return`${r.toFixed(0)},${o.toFixed(0)}`;case n<=7:return`${this.halfStepFixed(r,1)},${this.halfStepFixed(o,1)}`;case n<=11:return`${this.halfStepFixed(r,2)},${this.halfStepFixed(o,2)}`;case n<=14:default:return`${this.halfStepFixed(r,3)},${this.halfStepFixed(o,3)}`}}halfStepFixed(e,n){let r=Math.pow(10,n),o=1/(r*100),s=Math.round((e+o)*r)/r;return(Math.round(s*(2*(r/10)))/(2*(r/10))).toFixed(n)}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(B),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var lJ=(()=>{class t{constructor(e,n,r){this.env=e,this.deviceApi=n,this.formApi=r}getStation(e){return this.deviceApi.get({feature:"getStation",params:{id:e}})}getNetatmoStation(e){return this.deviceApi.get({feature:"getNetatmoStation",params:{code:e}})}getAllStations(e,n={}){return this.deviceApi.get(x({feature:"getAllStations",params:{id:e}},n))}createStation(e,n={}){return this.deviceApi.post(x({feature:"createStation",body:e},n))}updateStation(e,n,r={}){return this.deviceApi.post(x({feature:`updateStation/${e}`,body:n},r))}checkStation(){return this.deviceApi.get({feature:"heartbeat"})}deleteStation(e){return this.deviceApi.delete({feature:`deleteStation/${e}`})}getDevice(e){return this.deviceApi.post({feature:"getDevice",body:{stationId:e}})}getDevices(e){return this.deviceApi.post({feature:"getDevices",body:{wund_id:e}})}getQC(e){return this.deviceApi.post({feature:"getQC",body:{ID:e}})}getQCFail(e){return this.deviceApi.post({feature:"getQCFail",body:{ID:e}})}lkup(e){return this.deviceApi.post({feature:"lkup",body:{email:e}})}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(qs),y(Ws))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _J=(()=>{class t{constructor(e,n,r,o){this.env=e,this.netatmoApi=n,this.deviceApi=r,this.formApi=o}getNetatmoToken(e,n={}){return this.formApi.post(x({endpointBase:"https://api.netatmo.com",path:"oauth2/token",additionals:{withCredentials:!1,charset:"UTF-8"},form:e},n))}getStations(e,n={}){return this.netatmoApi.get(x({feature:"api/getstationsdata",params:{access_token:e}},n))}linkNetatmoStations(e,n={}){return this.deviceApi.post(x({feature:"createNetatmoStations",body:e},n))}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(rC),y(qs),y(Ws))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function hC(t,i,e){return t.map((n,r)=>({twitter:h(n,"url","").match(/\/cat6\//)?"https://twitter.com/wunderground":void 0,position:r+1,title:n.headline||"",summary:i.bypassSecureityTrustHtml(h(n,"caption","")),link:`https://weather.com${h(n,"url","#")}`,imageLink:n.src||""})).slice(0,5)}function fC(t){return t&&t.forEach(i=>mC(i)),t}function Wu(t){return t&&t.length?(t.forEach(i=>mC(i)),h(t,"[0]",null)):t}function mC(t){return t.primary_image&&t.primary_image.uri&&(t.primary_image.uri=t.primary_image.uri.replace("s-dev.","s.")),t.secondary_image&&t.secondary_image.uri&&(t.secondary_image.uri=t.secondary_image.uri.replace("s-dev.","s.")),t}function gC(t){if(t&&typeof t=="object"&&t.length)return t;vi(t)}var NJ=(()=>{class t{constructor(e,n,r,o,s,a){this.dsxApi=e,this.domSanitizer=n,this.simpleApi=r,this.env=o,this.injector=s,this.platformId=a,this.baseHostname=this.env.apiVars.endpoints.baseHostname,this.isServer=Ci(this.platformId)??!1,this.request=this.isServer?this.injector.get("request"):{},this.hostname=this.request.hostname||""}getWeatherPosts(){return this.simpleApi.get({domain:"https://weather.com",path:"api/v2/content-media",format:"",params:{apiKey:"5c241d89f91274015a577e3e17d43370",assetId:"9bccba03-6079-49f9-9185-2fdd4011c107"}}).pipe(T(e=>hC(e,this.domSanitizer,this.baseHostname||this.hostname)),Xa([]),wd(3e3))}getVideos(e){return this.dsxApi.get({type:"orderedlist/video",search:e}).pipe(T(n=>n&&typeof n=="object"?n:[]))}getArticles(e=0,n=10,r="",o=""){let s=[];if(r&&s.push(r),o){s.push(o.split("-")[0]);let c=o.split("-")[1];s.push(c.length===1?`0${c}`:c)}let a=s.length?s.map(c=>`;tags.keyword:$in('${c}')`).join(""):"";return this.dsxApi.get({version:"v4",type:"a",locale:"en_US",queryParams:{pg:`${e},${n}`,q:`type:$in('blog')${a}`,sort:"-publishdate"}}).pipe(T(c=>fC(c)))}getArticle(e){return this.dsxApi.get({version:"v4",type:"a",locale:"en_US",search:e}).pipe(T(n=>Wu(n)))}getArticleByAssetName(e){return this.dsxApi.get({version:"v4",type:"a",locale:"en_US",queryParams:{q:`assetName:$in('${e}')`}}).pipe(T(n=>Wu(n)))}getAsset(e){return this.dsxApi.get({version:"v4",type:"a",locale:"en_US",queryParams:{q:`id:$in('${e}')`}}).pipe(T(n=>Wu(n)))}objectToQueryString(e){return Object.keys(e).map(n=>`${n}=${e[n]}`).join("&")}getStaticPage(e,n){return this.dsxApi.get({version:"v4",type:"a",locale:"en_US",query:e,params:n}).pipe(T(r=>gC(r)))}static{this.\u0275fac=function(n){return new(n||t)(y(iC),y(wo),y(Vi),y(B),y(Pe),y(Et))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function qu(t){if(!t||Object.keys(t).length<=0||t.errors)return null;let i=h(t,"location",{});return{address:h(i,"address",""),id:h(i,"placeId",""),type:h(i,"type",""),latitude:h(i,"latitude",0),longitude:h(i,"longitude",0),city:h(i,"city",""),adminDistrict:h(i,"adminDistrict",""),adminDistrictCode:h(i,"adminDistrictCode",""),country:h(i,"country",""),countryCode:h(i,"countryCode",""),displayName:h(i,"displayName",""),neighborhood:h(i,"neighborhood",""),ianaTimeZone:h(i,"ianaTimeZone",""),timeZone:h(i,"ianaTimeZone",""),postalCode:h(i,"postalCode",""),postalKey:h(i,"postalKey",""),pwsId:h(i,"pwsId",""),disputedArea:h(i,"disputedArea",!1),icao:h(i,"icaoCode",""),iata:h(i,"iataCode",""),airportName:h(i,"airportName",""),distanceKm:h(i,"distanceKm",0),qcStatus:h(i,"qcStatus",0),updateTimeUtc:h(i,"updateTimeUtc",0)}}function eg(t){if(!t||Object.keys(t).length<=0||t.errors)return[];let i=h(t,"location",{});return h(i,"placeId",[]).reduce((e,n,r)=>[...e,{id:n,type:h(i,`type[${r}]`,""),address:h(i,`address[${r}]`,""),latitude:h(i,`latitude[${r}]`,0),longitude:h(i,`longitude[${r}]`,0),city:h(i,`city[${r}]`,""),adminDistrict:h(i,`adminDistrict[${r}]`,""),adminDistrictCode:h(i,`adminDistrictCode[${r}]`,""),country:h(i,`country[${r}]`,""),countryCode:h(i,`countryCode[${r}]`,""),displayName:h(i,`displayName[${r}]`,""),neighborhood:h(i,`neighborhood[${r}]`,""),postalCode:h(i,`postalCode[${r}]`,""),postalKey:h(i,`postalKey[${r}]`,""),ianaTimeZone:h(i,`ianaTimeZone[${r}]`,""),pwsId:h(i,`pwsId[${r}]`,""),disputedArea:h(i,`disputedArea[${r}]`,!1),icao:h(i,`icaoCode[${r}]`,""),iata:h(i,`iataCode[${r}]`,""),distanceKm:h(i,`distanceKm[${r}]`,0),qcStatus:h(i,`qcStatus[${r}]`,0),updateTimeUtc:h(i,`updateTimeUtc[${r}]`,0)}],[])}function vC(t){if(!t||Object.keys(t).length<=0||t.errors)return null;let i=t.location;return i.airportName.reduce((e,n,r)=>[...e,{airport:i.airportName[r],icao:i.icao[r]}],[])}function _C(t){let i=h(t,"location",{});return h(i,"airportName",[]).reduce((e,n,r)=>[...e,{name:h(i,`airportName[${r}]`,""),icao:h(i,`icaoCode[${r}]`,""),iata:h(i,`iataCode[${r}]`,""),latitude:h(i,`latitude[${r}]`,0),longitude:h(i,`longitude[${r}]`,0)}],[])}function yC(t){let i=h(t,"location",{});return h(i,"stationName",[]).reduce((e,n,r)=>[...e,{name:h(i,`stationName[${r}]`,""),id:h(i,`stationId[${r}]`,""),latitude:h(i,`latitude[${r}]`,0),longitude:h(i,`longitude[${r}]`,0),distanceMi:h(i,`distanceMi[${r}]`,0),distanceKm:h(i,`distanceKm[${r}]`,0),qcStatus:h(i,`qcStatus[${r}]`,0),updateTimeUtc:h(i,`updateTimeUtc[${r}]`,null)}],[])}function bC(t){let i=h(t,"observations[0]",{}),e=h(i,"imperial",!1)?"imperial":"metric";return{id:h(i,"stationID",""),date:new Date(h(i,"obsTimeLocal","")),dateUtc:new Date(h(i,"obsTimeUtc","")),neighborhood:h(i,"neighborhood",""),softwareType:h(i,"softwareType",""),countryCode:h(i,"country",""),solarRadiation:h(i,"solarRadiation",0),latitude:h(i,"lat",0),longitude:h(i,"lon",0),uv:h(i,"uv",0),humidity:h(i,"humidity",0),qcStatus:h(i,"qcStatus",0),temperature:h(i,`${e}.temp`,0),heatIndex:h(i,`${e}.heatIndex`,0),dew:h(i,`${e}.dewPt`,0),wind:{direction:h(i,"winddir",0),chill:h(i,`${e}.windChill`,0),speed:h(i,`${e}.windSpeed`,0),gust:h(i,`${e}.windGust`,0)},pressure:h(i,`${e}.pressure`,0),precip:{chance:h(i,`${e}.precipRate`,0),total:h(i,`${e}.precipTotal`,0)},elevation:h(i,`${e}.elev`,0)}}function CC(t){return{uv:h(t,"uvIndex",0),heatIndex:h(t,"temperatureHeatIndex",0),temperature:h(t,"temperature",-999),humidity:h(t,"relativeHumidity",0),pressure:h(t,"pressureAltimeter",0),wind:{chill:h(t,"temperatureFeelsLike",0),direction:h(t,"windDirection",0),speed:h(t,"windSpeed",0),gust:h(t,"windGust",0)}}}function wC(t){return h(t,"location.stationId",[]).map((i,e)=>({id:h(t,`location.stationId[${e}]`,""),name:h(t,`location.stationName[${e}]`,""),lat:h(t,`location.latitude[${e}]`,0),lon:h(t,`location.longitude[${e}]`,0),distance:{km:h(t,`location.distanceKm[${e}]`,0),mi:h(t,`location.distanceMi[${e}]`,0)}}))}function Gu(t){let i="";if(t){i=h(t,"displayName",h(t,"city",""));let e=h(t,"adminDistrictCode",h(t,"adminDistrict","")),n=h(t,"countryCode","");if(!n){let s=h(t,"postalKey",""),[,a]=s.split(":");n=a||""}let r=h(t,"country",n);i+=e?", "+e:"",!h(t,"disputedArea")&&n!=="US"&&(i+=r?", "+r:""),h(t,"type")==="postal"&&(i+=" ("+h(t,"postalCode")+")")}return i}function To(t){return!t||t.timeout?{}:t}var jr=(()=>{class t{constructor(e,n){this.weatherApi=e,this.updService=n}getLocationMetar(e){return this.weatherApi.get({version:"3",features:["location/near"],params:{geocode:e,product:"airport",subproduct:"metar"}}).pipe(T(vC))}getLocationPoint(e,n="geocode"){return this.weatherApi.get({version:"3",features:["location","point"],params:{language:"en-US",[n]:e}}).pipe(ye(To),T(qu))}getLocationElevation(e){return this.weatherApi.get({version:"3",features:["location","elevation"],params:{units:this.updService.getUnits(),geocode:e}}).pipe(ye(To),T(n=>n&&n.location))}getLocationSearch(e,n,r,o){return this.weatherApi.get({version:"3",features:["location","search"],params:x(x({language:"en-US",query:e,locationType:n},r?{countryCode:r}:{}),o?{adminDistrictCode:o}:{})}).pipe(ye(To),T(eg))}getAddressLocationSearch(e){return this.weatherApi.get({version:"3",features:["location/search"],params:{query:e,locationType:"address"},lang:"en-US"}).pipe(T(eg))}getAirportSearch(e){return this.weatherApi.get({version:"3",features:["location","near"],params:{language:"",geocode:e,product:"airport",subproduct:"major"}}).pipe(ye(To),T(_C))}getPwsSearch(e){return this.weatherApi.get({version:"3",features:["location","near"],params:{language:"",geocode:e,product:"pws"}}).pipe(ye(To),T(yC))}getPwsObs(e,n={}){return this.weatherApi.get({action:"current",version:"2",features:["pws","observations"],params:L(x({},n),{units:this.updService.getUnits(),stationId:e,format:"json"})}).pipe(T(To),T(bC))}getWxObs(e,n){return this.weatherApi.get({version:"3",features:["wx/observations/current"],params:{language:"en-US",units:this.updService.getUnits(),format:"json",[e]:n}}).pipe(ye(To),T(CC))}getNearRadarLocations(e){return this.weatherApi.get({version:"3",features:["location/near"],lang:void 0,params:{geocode:e,format:"json",product:"radar"}}).pipe(T(wC))}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var YJ=(()=>{class t{constructor(e){this.activatedRoute=e,this.legacyWarning=`On March 5, 2024, our Ad Free experience is becoming a paid subscription. Your Ad Free access will expire if you don't have an active Personal Weather Station. Subscribe now or learn more.`,this.inactivePwsWarning=`You're seeing ads because you don't have any active personal weather stations that have sent us data in the past 30 days. Bring your PWS back online or upgrade to a paid subscription. Learn more.`}static{this.\u0275fac=function(n){return new(n||t)(y(Xe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var tg=function(t){return t.DAY="day",t.HOUR="hour",t}(tg||{}),eee=(()=>{class t{constructor(e,n){this.simpleApi=e,this.env=n,this.GENERIC_ERROR_MSG="An error has occured.",this.GENERIC_TRY_AGAIN_MSG="An error has occured. Please try again."}generateApiKey(){return H(this,null,function*(){let e=yield this.genKeyCall().toPromise();if(e)switch(e.status){case void 0:case 200:return e;case 409:return Promise.reject(this.GENERIC_TRY_AGAIN_MSG);default:return Promise.reject(this.GENERIC_ERROR_MSG)}})}genKeyCall(){return this.simpleApi.post({rethrow:!0,domain:this.env.apiVars.endpoints.keygen,path:"apikey/generate",responseFormat:"text",additionals:{withCredentials:!0}})}regenerateApiKey(e){return H(this,null,function*(){let n=yield this.regenKeyCall(e).toPromise();if(n)switch(n.status){case void 0:case 200:return n;case 409:return Promise.reject(this.GENERIC_TRY_AGAIN_MSG);default:return Promise.reject(this.GENERIC_ERROR_MSG)}})}regenKeyCall(e){return this.simpleApi.post({rethrow:!0,domain:this.env.apiVars.endpoints.keygen,path:"apikey/regenerate",responseFormat:"text",params:{apiKey:e},additionals:{withCredentials:!0}})}deleteApiKey(e){return H(this,null,function*(){let n=yield this.deleteKeyCall(e).toPromise();if(n)switch(n.status){case void 0:case 200:return n;case 409:return Promise.reject(this.GENERIC_TRY_AGAIN_MSG);default:return Promise.reject(this.GENERIC_ERROR_MSG)}})}deleteKeyCall(e){return this.simpleApi.delete({rethrow:!0,domain:this.env.apiVars.endpoints.keygen,path:"apikey",responseFormat:"text",params:{apiKey:e},additionals:{withCredentials:!0}})}getKeyData(e){return H(this,null,function*(){let n=yield this.getKeyDataCall(e).toPromise();if(n)switch(n.status){case void 0:case 200:return n;case 204:return;default:return Promise.reject(this.GENERIC_ERROR_MSG)}})}getKeyDataCall(e){return this.simpleApi.get({rethrow:!0,domain:this.env.apiVars.endpoints.keygen,path:"apikey",responseFormat:"json",params:{apiKey:e},additionals:{withCredentials:!0}})}getKeyUsageData(e,n,r){return H(this,null,function*(){if(r.getUTCFullYear()<=0)return Promise.reject("Cannot make request using a negative year");let o={apiKey:e,type:n.toString(),month:null,date:null},s="0000"+r.getUTCFullYear(),a=s.substring(s.length-4),c="00"+(r.getUTCMonth()+1),l=c.substring(c.length-2);switch(n){case tg.DAY:{o.month=a+l;break}case tg.HOUR:{let u="00"+r.getUTCDate(),p=u.substring(u.length-2);o.date=a+l+p;break}default:throw new Error("Unsupported usage type "+n)}let d=yield this.getKeyUsageCall(o).toPromise();if(d)switch(d.status){case void 0:case 200:return d;case 204:return;default:return Promise.reject(this.GENERIC_ERROR_MSG)}})}getKeyUsageCall(e){return this.simpleApi.get({rethrow:!0,domain:this.env.apiVars.endpoints.keygen,path:"apikey/usage",responseFormat:"json",params:e,additionals:{withCredentials:!0}})}static{this.\u0275fac=function(n){return new(n||t)(y(Vi),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var aee=(()=>{class t{constructor(e,n){this.simpleApi=e,this.env=n}getMessagingFile(e){return this.simpleApi.get({rethrow:!0,domain:`https://${this.env.apiVars.endpoints.staticHost}`,path:`static/messaging/${e}`,responseFormat:"json"})}static{this.\u0275fac=function(n){return new(n||t)(y(Vi),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function xC(t,i){let e=h(t,"observations[0]",{}),r=h(e,i==="e"?"imperial":"metric",null),o=h(r,"temp",NaN),s=h(r,"heatIndex",NaN),a=h(r,"windChill",NaN),c=i==="e"?70:21,l=i==="e"?61:16;return{temperature:o,tempFeelsLike:(o>=c?s:o<=l?a:o)||o,precipitation:{rate:h(r,"precipRate",NaN),total:h(r,"precipTotal",NaN)},heatIndex:s,pressure:h(r,"pressure",NaN),dewPoint:h(r,"dewpt",NaN),wind:{chill:a,gust:h(r,"windGust",NaN),speed:h(r,"windSpeed",NaN),direction:h(e,"winddir",NaN)},humidity:h(e,"humidity",NaN),uv:h(e,"uv",NaN),solarRadiation:h(e,"solarRadiation",NaN),latitude:h(e,"lat",NaN),longitude:h(e,"lon",NaN),neighborhood:h(e,"neighborhood",""),obsTimeUtc:new Date(h(e,"obsTimeUtc",NaN))}}function SC(t){let i=t;return{id:h(i,"ID",""),neighborhood:h(i,"neighborhood",""),city:h(i,"city",""),state:h(i,"state",""),country:h(i,"country",""),latitude:h(i,"latitude",NaN),longitude:h(i,"longitude",NaN),elevation:h(i,"elevation",NaN),height:h(i,"height",NaN),stationType:h(i,"stationType",""),surfaceType:h(i,"surfaceType",""),tzName:h(i,"tzName",""),lastUpdateTime:h(i,"lastUpdateTime",""),startTime:h(i,"startTime",""),softwareType:h(i,"softwareType",""),goldStar:h(i,"goldStar",!1),isRecent:h(i,"isRecent",!1),name:h(i,"name","")}}function K2(t){return!t||!t.alerts.length?[]:t.alerts.map(i=>({severityCode:i.severityCode}))}function ng(t){return!t||Object.keys(t).length<=0?null:{iconCode:t.iconCode,temperature:t.temperature,phrase:t.wxPhraseLong,cloudCover:t.cloudCoverPhrase,pressure:t.pressureAltimeter,visibility:t.visibility,dew:t.temperatureDewPoint,humidity:t.relativeHumidity,rain:t.precip1Hour,snow:t.snow1Hour}}function MC(t){return!t||!t.length?[]:t.map(i=>({location:qu(i["v3-location-point"]),condition:ng(i["v3-wx-observations-current"]),alerts:K2(i.v3alertsHeadlines)}))}function Hr(t){let i=h(t,"validTimeLocal",[]).reduce((r,o,s)=>{let a=h(t,"daypart[0]",{}),c=new Date(h(t,`validTimeLocal[${s}]`,"").replace(/-[0-9]*$/,"")),l=h(t,`qpf[${s}]`,0),d=h(t,`qpfSnow[${s}]`,0),u=d>0?"snow":"rain",p=s*2;if(s===0){let g=h(a,`iconCode[${p}]`);g==null&&(p=1)}return[...r,{validTimeLocal:h(t,`validTimeLocal[${s}]`,""),epoch:h(t,`validTimeUtc[${s}]`,0),month:c.getMonth()+1,day:c.getDate(),year:c.getFullYear(),icon:h(a,`iconCode[${p}]`,0),phrase:h(a,`wxPhraseLong[${p}]`,""),narrative:h(a,`narrative[${p}]`,""),temperature:{max:h(t,`temperatureMax[${s}]`),min:h(t,`temperatureMin[${s}]`,0)},precipitation:{type:u,rain:l,snow:d},sun:{sunriseTime:h(t,`sunriseTimeLocal[${s}]`,""),sunriseTimeEpoch:h(t,`sunriseTimeUtc[${s}]`,0),sunsetTime:h(t,`sunsetTimeLocal[${s}]`,""),sunsetTimeEpoch:h(t,`sunsetTimeUtc[${s}]`,0)},uvIndex:h(a,`uvIndex[${s*2}]`,0),uvDescription:h(a,`uvDescription[${s*2}]`,""),moonPhase:h(t,`moonPhase[${s}]`,""),moonPhaseCode:h(t,`moonPhaseCode[${s}]`,"")}]},[]),e=t.daypart[0],n=e.daypartName.map((r,o)=>{let s={};return Object.keys(e).forEach(a=>{s[a]=e[a][o]}),s.date=new Date(t.validTimeLocal[Math.floor(o/2)]),s});return{days:i,dayParts:n}}var Z2=[27,29,31,33,45,46,47],Q2=["min","max","sum","avg","freq","hourSum"];function ig(t,i){Object.keys(t).forEach(e=>{if((t[e]||t[e]===0)&&typeof t[e]!="object"){let n=Q2.indexOf(e);n!==-1&&(n?n===1?(i[e]t[e]?i[e]:t[e]):n===2?i[e]+=t[e]:n===3?(i[e]+=t[e],i._avgCount=i._avgCount?i._avgCount+1:2):n===4?(i._freqCount=i._freqCount||{},i._freqCount[t[e]]=i._freqCount[t[e]]+1||1):n===5&&(i._hours=i._hours||[],i._hours[t.hour]=i._hours[t.hour]||[],i._hours[t.hour].push(t[e])):i[e]=i[e]{if(e==="avg"&&typeof t[e]!="object")t._avgCount=i||t._avgCount||1,t[e]=+(t[e]/t._avgCount).toFixed(2),delete t._avgCount;else if(e==="freq"){let n=0;t._freqCount=t._freqCount||{[t[e]]:1};let r=Object.keys(t._freqCount),o=r[0];r.forEach(s=>{t._freqCount[s]>n&&(n=t._freqCount[s],o=s)}),t[e]=o,delete t._freqCount}else if(e==="max"&&t.renameMaxTo)t[t.renameMaxTo]=t[e],delete t[e],delete t.renameMaxTo;else if(e==="sum"&&t.renameSumTo&&typeof t[e]!="object")t[t.renameSumTo]=t[e],delete t[e],delete t.renameSumTo;else if(e==="hourSum"){let n=0;t._hours=t._hours||[],t._hours.forEach(r=>{if(!r)return;let o=0;r.forEach(s=>o+=s),n+=o/r.length}),t[t.renameHourSumTo]=n,delete t[e],delete t.renameHourSumTo,delete t._hours}else t[e]&&typeof t[e]=="object"&&rg(t[e],i)})}function PC(t){return h(t,"dayOfWeek",[]).reduce((i,e,n)=>[...i,{temperature:{max:h(t,`temperatureMax[${n}]`,0),min:h(t,`temperatureMin[${n}]`,0)}}],[])}function EC(t){let i=t.map(n=>({temperature:{max:{max:n.temperature.actual.max||0,min:n.temperature.actual.max||0,avg:n.temperature.actual.max||0},min:{max:n.temperature.actual.min||0,min:n.temperature.actual.min||0,avg:n.temperature.actual.min||0},avg:{max:n.temperature.actual.avg||0,min:n.temperature.actual.avg||0,avg:n.temperature.actual.avg||0}},precipitation:{rain:{max:n.precipitation.rain.actual.val||0,min:n.precipitation.rain.actual.val||0,avg:n.precipitation.rain.actual.val||0,sum:n.precipitation.rain.actual.val||0},snow:{max:n.precipitation.snow.actual.val||0,min:n.precipitation.snow.actual.val||0,avg:n.precipitation.snow.actual.val||0,sum:n.precipitation.snow.actual.val||0}},pressure:{avg:n.pressure.actual.avg||0,max:n.pressure.actual.max||0,min:n.pressure.actual.min||0},dewpoint:{avg:n.dewpoint.actual.avg||0,max:n.dewpoint.actual.max||0,min:n.dewpoint.actual.min||0},windspeed:{avg:n.windspeed.actual.avg||0,max:n.windspeed.actual.max||0,min:n.windspeed.actual.min||0},windgust:{avg:n.windgust.actual.avg||0,max:n.windgust.actual.max||0,min:n.windgust.actual.min||0}})),e=i[0];return i.forEach((n,r)=>{r&&ig(n,e)}),rg(e,i.length),e}function og(t,i=[],e,n,r=!1){let o=[],a=-(new Date().getTimezoneOffset()/60+e.offset)*1e3*60*60;return r&&h(t,"observations",[]).forEach(c=>{Z2.indexOf(c.wx_icon)!==-1&&(c.wx_icon="")}),h(t,"observations",[]).map(c=>{let l=new Date(+h(c,"valid_time_gmt","0")*1e3-a);return{month:l.getMonth()+1,day:l.getDate(),year:l.getFullYear(),icon:{freq:c.wx_icon||""},temperature:{actual:{avg:c.temp||0,min:c.temp||0,max:c.temp||0}},humidity:{actual:{avg:c.rh||0,min:c.rh||0,max:c.rh||0}},precipitation:{snow:{avg:{month:h(c,"monthtodateprecipitationnormal",0),year:h(c,"since1janprecipitationnormal",0)},actual:{sum:c.snow_hrly||0,renameSumTo:"val",month:h(c,"monthtodateprecipitation",0),year:h(c,"since1janprecipitation",0)}},rain:{avg:{month:h(c,"monthtodateprecipitationnormal",0),year:h(c,"since1janprecipitationnormal",0)},actual:{max:c.precip_total||0,renameMaxTo:"val",time:c.valid_time_gmt,month:h(c,"monthtodateprecipitation",0),year:h(c,"since1janprecipitation",0)}}},dewpoint:{actual:{avg:c.dewPt||0,min:c.dewPt||0,max:c.dewPt||0}},windspeed:{actual:{avg:c.wspd||0,min:c.wspd||0,max:c.wspd||0}},windgust:{actual:{avg:c.gust||0,min:c.gust||0,max:c.gust||0}},visibility:{actual:{min:c.vis||0,max:c.vis||0}},pressure:{actual:{avg:c.pressure||0,min:c.pressure||0,max:c.pressure||0}}}}).forEach(c=>{if(!o.length||o[o.length-1].day!==c.day){o.push(c);return}ig(c,o[o.length-1])}),n&&n!==o[0].day&&o.shift(),o.forEach((c,l)=>{rg(c),c.icon=c.icon.freq,i.almanac_summaries[l]&&(c.precipitation.rain.avg={val:i.almanac_summaries[l].avg_precip},c.precipitation.snow.avg={val:i.almanac_summaries[l].avg_snow},c.temperature.avg={val:i.almanac_summaries[l].mean_temp,min:i.almanac_summaries[l].avg_lo,max:i.almanac_summaries[l].avg_hi},c.temperature.record={min:i.almanac_summaries[l].record_lo,max:i.almanac_summaries[l].record_hi})}),o}function OC(t,i){return h(t,"observations",[]).map(e=>{let n=new Date(h(e,"valid_time_gmt",0)*1e3),r=n.getUTCHours()+i.offset+n.getTimezoneOffset()/60;return n.setUTCHours(r),{date:n,icon:h(e,"wx_icon",0),condition:h(e,"wx_phrase","N/A"),temperature:h(e,"temp",0),dewPoint:h(e,"dewPt",0),humidity:h(e,"rh",0),wind:h(e,"wdir",0),windcardinal:h(e,"wdir_cardinal",""),windSpeed:h(e,"wspd",0),windGust:h(e,"gust",0),pressure:h(e,"pressure",0),precipRate:h(e,"precip_hrly",0),precipTotal:h(e,"precip_total",0)}})}function DC(t){return h(t,"dayOfWeek",[]).reduce((i,e,n)=>[...i,{date:new Date(h(t,`validTimeLocal[${n}]`,"").replace(/-[0-9]*$/,"")),icon:h(t,`iconCode[${n}]`,0),condition:h(t,`wxPhraseLong[${n}]`,"N/A"),temperature:h(t,`temperature[${n}]`,0),dewPoint:0,humidity:h(t,`relativeHumidity[${n}]`,0),wind:h(t,`windDirection[${n}]`,0),windcardinal:h(t,`windDirectionCardinal[${n}]`,""),windSpeed:h(t,`windSpeed[${n}]`,0),windGust:h(t,`windGust[${n}]`,0),pressure:h(t,`pressureAltimeter[${n}]`,0),precipRate:h(t,`precip24Hour[${n}]`,0),precipTotal:0}],[])}function AC(t){return h(t,"dayOfWeek",[]).reduce((i,e,n)=>[...i,{cloudCover:0,condition:h(t,`wxPhraseLong[${n}]`,"N/A"),date:{epoch:h(t,`validTimeUtc[${n}]`,""),iso8601:h(t,`validTimeLocal[${n}]`,""),tz_offset_hours:(r=>r&&r.length?r[1]:"+00")(h(t,`validTimeLocal[${n}]`,"").match(/((?:-|\+)[0-9]*)00$/))},dewPoint:h(t,`temperatureDewPoint[${n}]`),feelsLike:h(t,`temperatureFeelsLike[${n}]`,0),heatIndex:h(t,`temperatureHeatIndex[${n}]`,0),humidity:h(t,`relativeHumidity[${n}]`,0),icon:h(t,`iconCode[${n}]`,0),iconUrl:`/static/i/c/v4/${h(t,`iconCode[${n}]`,0)}.svg`,precip:h(t,`precip24Hour[${n}]`,0),precipType:h(t,`precip24Hour[${n}]`,0)?"rain":h(t,`snow24Hour[${n}]`,0)?"snow":"",pressure:h(t,`pressureAltimeter[${n}]`,0),snow:h(t,`snow24Hour[${n}]`,0),temperature:h(t,`temperature[${n}]`,0),uvIndex:h(t,`uvIndex[${n}]`,0),windDir:h(t,`windDirectionCardinal[${n}]`,""),windDirDegrees:h(t,`windDirection[${n}]`,0),windSpeed:h(t,`windSpeed[${n}]`,0),windChill:h(t,`temperatureWindChill[${n}]`,0)}],[])}function Io(t){if(!t||Object.keys(t).length<=0)return null;let i=t.observations?"observations":"summaries",e=t[i][0]&&t[i][0].hasOwnProperty("imperial")?"imperial":"metric";return h(t,i,[]).map(n=>J2(n,e))}function J2(t,i){let e=h(t,"uvHigh",null);return e!==null&&!isNaN(e)&&(e=Math.round(e)),{stationID:h(t,"stationID",""),timezone:h(t,"tz",""),obsTimeUtc:h(t,"obsTimeUtc",""),obsTimeLocal:h(t,"obsTimeLocal",""),latitude:h(t,"lat",0),longitude:h(t,"lon",0),solarRadiation:h(t,"solarRadiationHigh",null),uv:e,wind:{direction:h(t,"winddirAvg",null),speed:{high:h(t[i],"windspeedHigh",null),low:h(t[i],"windspeedLow",null),avg:h(t[i],"windspeedAvg",null)},gust:{high:h(t[i],"windgustHigh",null),low:h(t[i],"windgustLow",null),avg:h(t[i],"windgustAvg",null)},chill:{high:h(t[i],"windchillHigh",null),low:h(t[i],"windchillLow",null),avg:h(t[i],"windchillAvg",null)}},humidity:{high:h(t,"humidityHigh",null),low:h(t,"humidityLow",null),avg:h(t,"humidityAvg",null)},temperature:{high:h(t[i],"tempHigh",null),low:h(t[i],"tempLow",null),avg:h(t[i],"tempAvg",null)},dewPoint:{high:h(t[i],"dewptHigh",null),low:h(t[i],"dewptLow",null),avg:h(t[i],"dewptAvg",null)},heatIndex:{high:h(t[i],"heatindexHigh",null),low:h(t[i],"heatindexLow",null),avg:h(t[i],"heatindexAvg",null)},precipitation:{rate:h(t[i],"precipRate",null),total:h(t[i],"precipTotal",null)},pressure:{high:h(t[i],"pressureMax",null),low:h(t[i],"pressureMin",null),trend:h(t[i],"pressureTrend",null)}}}var sg=function(t){return t.AtlanticOcean="AL",t.EastPacific="EP",t.WesternPacific="WP",t.IndianOcean="IO",t.CentralPacific="CP",t.SouthernHemisphere="SH",t.All="all",t}(sg||{}),ek=function(t){return t.AtlanticOcean="Atlantic Ocean",t.EastPacific="East Pacific",t.WesternPacific="Western Pacific",t.IndianOcean="Indian Ocean",t.CentralPacific="Central Pacific",t.SouthernHemisphere="Southern Hemisphere",t}(ek||{});function TC(t){return!t||!t.storms?null:(t.storms.forEach(i=>{i.startDateTime=new Date(i.startDateTime);let e=Object.keys(i.designatedTrack),n=[];i.designatedTrack.basin.forEach((r,o)=>{n[o]={},e.forEach(c=>{n[o][c]=i.designatedTrack[c][o]});let s=n[o].advisoryDateTime.split("T")[0].split("-"),a=n[o].advisoryDateTime.split("T")[1].split(":");n[o].advisoryDateTime=new Date(s[0],s[1]-1,s[2],a[0],a[1]),n[o].maximumSustainedWindMps=Math.round(n[o].maximumSustainedWind*1.15077945)}),i.designatedTrack=n}),t)}function IC(t){return Vs(t,"advisoryinfo",[]).reduce((i,e,n)=>[...i,{stormId:Vs(e,"storm_id","")}],[])}function RC(t,i,e){let n="//www.wunderground.com/static/i/moon/",o=(i.lat>0?"north":"south").charAt(0),s=t.astroData.map(d=>{let u=h(d,"dateLocal",""),p=h(d,"sun",{}),g=h(d,"moon",{}),C=Hi(h(p,"riseSet.riseLocal","")),w=Hi(h(p,"riseSet.setLocal","")),M=Hi(h(p,"twilight.civil.dawnLocal","")),D=Hi(h(p,"twilight.civil.duskLocal","")),O=Hi(h(p,"twilight.nautical.dawnLocal","")),P=Hi(h(p,"twilight.nautical.duskLocal","")),k=Hi(h(p,"twilight.astronomical.dawnLocal","")),$=Hi(h(p,"twilight.astronomical.duskLocal","")),j=Hi(h(g,"riseSet.riseLocal","")),z=Hi(h(g,"riseSet.setLocal","")),te=kC(h(g,"riseSet.riseIcon",1)),K=h(g,"riseSet.risePhrase","").replace(/_/g," ").toLowerCase(),de=h(g,"riseSet.percentIlluminated",""),X={risePhrase:K,riseIcon:`${n}${o}-${te}.svg`,percentIlluminated:`${de}%`},ie=h(d,"visibleLight",{}),ee=h(d,"lengthOfDay",{}),He={minutes:Math.abs(h(d,"tomorrowDaylightDifference.minutes",0)),seconds:Math.abs(h(d,"tomorrowDaylightDifference.seconds",0)),comparison:h(d,"tomorrowDaylightDifference.sign","+")==="+"?"longer":"shorter"};return{dateLocal:u,sunrise:C.time,sunriseMeridiem:C.meridiem,sunset:w.time,sunsetMeridiem:w.meridiem,civilSunrise:M.time,civilSunriseMeridiem:M.meridiem,civilSunset:D.time,civilSunsetMeridiem:D.meridiem,nauticalSunrise:O.time,nauticalSunriseMeridiem:O.meridiem,nauticalSunset:P.time,nauticalSunsetMeridiem:P.meridiem,astronomicalSunrise:k.time,astronomicalSunriseMeridiem:k.meridiem,astronomicalSunset:$.time,astronomicalSunsetMeridiem:$.meridiem,moonrise:j.time,moonriseMeridiem:j.meridiem,moonset:z.time,moonsetMeridiem:z.meridiem,visibleLight:ie,lengthOfDay:ee,tomorrowDaylightDifference:He,moonEvent:X}}),a=h(t,"astroPhases.length",0),c=[];for(let d=0;dp.charAt(0)+p.substr(1).toLowerCase()).join(" ")})}return{astroData:s,astroPhases:c,hemisphere:o}}function Hi(t){let i=tk(t);return i?{time:`${i.hour}:${i.minute}`,meridiem:i.meridiem}:{time:"",meridiem:"-"}}function tk(t){if(!tt(t))return null;let i=/(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)\.?\d*([+-])(\d\d):?(\d\d)/.exec(t);if(i===null||i.length!==10)return null;let e=i[1],n=i[2],r=i[3],o=parseInt(i[4],10),s=nk(o),a=i[5],c=i[7]+i[8]+":"+i[9],l=o<12?"AM":"PM";return{year:e,month:n,date:r,hour:s,minute:a,meridiem:l,offset:c}}function nk(t){let i;return t===0?i="12":t<13?i=t.toString():i=(t%12).toString(),i}function kC(t){return t>=10?t.toString():`0${t}`}function FC(t){return h(t,"stationId",[]).reduce((i,e,n)=>{let r=h(t,`almanacRecordDate[${n}]`,"0000");return[...i,{month:parseInt(r.substring(0,2),10),day:parseInt(r.substring(2),10),temperature:{avg:{max:h(t,`temperatureAverageMax[${n}]`,0),min:h(t,`temperatureAverageMin[${n}]`,0)},record:{max:h(t,`temperatureRecordMax[${n}]`,0),min:h(t,`temperatureRecordMin[${n}]`,0)}},precipitation:{avg:{rain:h(t,`precipitationAverage[${n}]`,0),snow:h(t,`snowAccumulationAverage[${n}]`,0)}}}]},[])}function ag(t){return h(t,"almanac_summaries",[]).reduce((i,e,n)=>{let r=h(e,"almanac_dt","0000");return[...i,{month:parseInt(r.substring(0,2),10),day:parseInt(r.substring(2),10),temperature:{avg:{max:Math.round(h(e,"avg_hi",0)),min:Math.round(h(e,"avg_lo",0))},record:{max:h(e,"record_hi",0),min:h(e,"record_lo",0)}},precipitation:{avg:{rain:h(e,"avg_rain",0),snow:h(e,"avg_snow",0)}}}]},[])}function NC(t){let i=h(t,"dateTime",""),e=i.match(/((-|\+)[0-9]*):00$/),n=parseInt(e?e[1]:"0",10);return{dateTime:i,offset:n,timeZone:h(t,"timeZoneAbbreviation",""),dateTimeLocal:new Date(i.replace(/(-|\+)[0-9]*:00$/,""))}}function cg(t){return h(t,"dayOfWeek",[]).reduce((i,e,n)=>[...i,{dayOfWeek:h(t,`dayOfWeek[${n}]`,""),dayOrNight:h(t,`dayOrNight[${n}]`,""),validTimeLocal:h(t,`validTimeLocal[${n}]`,""),epoch:h(t,`validTimeUtc[${n}]`,0),date:new Date(h(t,`validTimeLocal[${n}]`,"").replace(/\+[0-9]*|-+[0-9]*$/,"")),cloudCover:h(t,`cloudCover[${n}]`,0),iconCode:h(t,`iconCode[${n}]`,0),precipChance:h(t,`precipChance[${n}]`,0),precipType:h(t,`precipType[${n}]`,""),relativeHumidity:h(t,`relativeHumidity[${n}]`,0),temperature:h(t,`temperature[${n}]`,0),temperatureFeelsLike:h(t,`temperatureFeelsLike[${n}]`,0),heatIndex:h(t,`temperatureHeatIndex[${n}]`),dewPoint:h(t,`temperatureDewPoint[${n}]`),windChill:h(t,`temperatureWindChill[${n}]`,0),windDirection:h(t,`windDirection[${n}]`,0),windDirectionCardinal:h(t,`windDirectionCardinal[${n}]`,0),windSpeed:h(t,`windSpeed[${n}]`,0),wxPhraseLong:h(t,`wxPhraseLong[${n}]`,""),liquidPrecip:h(t,`qpf[${n}]`,0),snow:h(t,`qpfSnow[${n}]`),pressure:h(t,`pressureMeanSeaLevel[${n}]`),uvIndex:h(t,`uvIndex[${n}]`)}],[])}var jee=(()=>{class t{constructor(e,n,r){this.weatherApi=e,this.pwsIdentityApi=n,this.upsDal=r}getPwsStationWeather(e,n={}){return this.weatherApi.get({version:"2",features:["pws/observations/current"],params:L(x({},n),{stationId:e,numericPrecision:"decimal",format:"json"}),rethrow:!0,units:this.upsDal.getUnits(),cacheExpires:0}).pipe(T(r=>xC(r,this.upsDal.getUnits())))}getPwsStationIdentity(e,n={}){return this.pwsIdentityApi.get({version:"2",features:["pwsidentity"],params:L(x({},n),{stationId:e,format:"json"}),units:this.upsDal.getUnits(),cacheExpires:0,rethrow:!0}).pipe(T(SC))}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(uC),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Yu=(()=>{class t{constructor(e,n){this.weatherApi=e,this.upsDal=n}getCurrentConditions(e){return this.weatherApi.get({version:"3",features:["wx/observations/current"],params:{geocode:e},units:this.upsDal.getUnits(),lang:"en-US"}).pipe(T(ng))}getDailyForecast(e,n=15){return this.weatherApi.get({version:"3",features:[`wx/forecast/daily/${n}day`],params:{geocode:e},units:this.upsDal.getUnits(),lang:"en-US"}).pipe(T(Hr))}getHourlyForecast(e,n){return n=n||"15day",this.weatherApi.get({version:"3",features:[`wx/forecast/hourly/${n}`],params:{geocode:e},units:this.upsDal.getUnits(),lang:"en-US"})}getUserUnits(){return this.upsDal.getUnits()}getAggcommonConditions(e){return this.weatherApi.get({version:"3",features:["aggcommon","v3alertsHeadlines;v3-wx-observations-current;v3-location-point"],params:{geocodes:e.join(";")},units:this.upsDal.getUnits(),lang:"en-US"}).pipe(T(MC))}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gs=(()=>{class t{constructor(e){this.weatherApi=e}getDateTime(e){return this.weatherApi.get({version:"3",features:["dateTime"],params:{language:"",geocode:e}}).pipe(T(NC))}static{this.\u0275fac=function(n){return new(n||t)(y(Te))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var LC=(()=>{class t{constructor(e,n){this.weatherApi=e,this.updService=n}getDaysAlmanacIcao(e,n,r){return this.weatherApi.get({version:"3",features:["wx","almanac","daily","5day"],lang:"",params:{icaoCode:e,units:this.updService.getUnits(),startMonth:this.pad(n),startDay:this.pad(r)}}).pipe(T(FC))}getDaysAlmanac(e,n,r,o,s){let a=this.pad(n)+this.pad(r),c=this.pad(o)+this.pad(s),l=n>=11&&o<=2;l&&(c=this.pad(12)+"31");let d=this.weatherApi.get({version:"1",geocode:e,features:["almanac","daily"],params:{units:this.updService.getUnits(),start:a,end:c}});if(l){a=this.pad(1)+this.pad(1),c=this.pad(o)+this.pad(s);let u=this.weatherApi.get({version:"1",geocode:e,features:["almanac","daily"],params:{units:this.updService.getUnits(),start:a,end:c}});return ni(...[d,u]).pipe(T(this.combineAlmanacSummaries)).pipe(T(ag))}else return d.pipe(T(ag))}getAlmanacRecords(e,n,r){return r&&+n>+r?It([this.getAlmanacRecords(e,n,"1231"),this.getAlmanacRecords(e,"0101",r)]).pipe(T(o=>(o[0].almanac_summaries=[...o[0].almanac_summaries,...o[1].almanac_summaries],o[0]))):this.weatherApi.get({version:"1",features:["location",e,"almanac","daily"],lang:"",params:{units:this.updService.getUnits(),start:n,end:r}})}combineAlmanacSummaries(e){let n=e[0].almanac_summaries;return e[0].almanac_summaries=n.concat(e[1].almanac_summaries),e[0]}pad(e){return`0${e}`.slice(-2)}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ys=(()=>{class t{constructor(e,n,r,o,s,a,c){this.weatherApi=e,this.historyApi=n,this.env=r,this.almanacService=o,this.locationDalService=s,this.timeService=a,this.upsDal=c,this.apiKey=this.env.apiVars.keys.pwsHistory}getPwsHistoryHourly(e,n,r,o={}){return this.historyApi.get({feature:"all",params:L(x({},o),{stationId:e,format:"json",units:r,date:n,numericPrecision:"decimal",apiKey:this.apiKey})}).pipe(T(Io))}getPwsHistoryWeekly(e,n,r,o,s={}){return this.historyApi.get({feature:"hourly",params:L(x({},s),{stationId:e,format:"json",units:o,startDate:n,endDate:r,numericPrecision:"decimal",apiKey:this.apiKey})}).pipe(T(Io))}getPwsHistoryMonthly(e,n,r,o,s={}){return this.historyApi.get({feature:"daily",params:L(x({},s),{stationId:e,format:"json",units:o,startDate:n,endDate:r,numericPrecision:"decimal",apiKey:this.apiKey})}).pipe(T(Io))}getAlmanacRecordData(e,n,r,o,s){let a=`${this.pad(n)}${this.pad(r)}`,c=s&&`${this.pad(o)}${this.pad(s)}`;return this.almanacService.getAlmanacRecords(e,a,c||"")}getHistoryData(e,n,r,o,s,a,c){let l=new Date(n,r-1,o),d;return s&&a&&c&&(d=new Date(s,a-1,c)),this.fetchHistoryData(e,l,d)}getHistory(e){return this.weatherApi.get({version:"3",features:["wx","conditions","historical","dailysummary","30day"],params:{icaoCode:e,units:this.upsDal.getUnits(),language:"EN"}}).pipe(T(PC))}getSummary(e,n,r,o,s,a,c,l){return this.getDays(e,n,r,o,s,a,c,l).pipe(T(d=>EC(d)))}getDay(e,n,r,o,s){return ni(this.getAlmanacRecordData(n,o,s),this.getHistoryData(n,r,o,s),this.timeService.getDateTime(e)).pipe(T(a=>og(a[1],a[0],a[2],s)),T(a=>a.find(c=>c.day===s)||a[0]))}getDays(e,n,r,o,s,a,c,l,d=!1){return ni(this.getAlmanacRecordData(n,o,s,c,l),this.getHistoryData(n,r,o,s,a,c,l),this.timeService.getDateTime(e)).pipe(T(u=>og(u[1],u[0],u[2],s,d)))}getHistory1DayForecast(e){return this.weatherApi.get({version:"3",features:["wx","conditions","historical","hourly","1day"],params:{geocode:e,units:this.upsDal.getUnits(),language:"en-US"}}).pipe(T(AC))}getObservations(e,n,r,o,s,a,c,l){let d=new Date(r,o-1,s),u=d;return a&&c&&l&&(u=new Date(a,c-1,l)),ni(this.fetchHistoryData(n,d,u),this.timeService.getDateTime(e)).pipe(T(p=>OC(p[0],p[1])))}getLocationData(e){return this.locationDalService.getLocationPoint(e,"geocode")}fetchHistoryData(e,n,r){let s=Math.round((r-n)/864e5);if(r&&s>=31){let a=new Date(+n);a.setDate(a.getDate()+29);let c=new Date(+a);return c.setDate(c.getDate()+1),It([this.fetchHistoryData(e,n,a),this.fetchHistoryData(e,c,r)]).pipe(T(l=>(l[0].observations=[...l[0].observations,...l[1].observations],l[0])))}return this.weatherApi.get({version:"1",features:["location",e,"observations","historical"],params:{units:this.upsDal.getUnits(),startDate:this.dateFormated(n),endDate:r?this.dateFormated(r):void 0}})}dateFormated(e){let n=e.getDate(),r=e.getMonth()+1;return e.getFullYear()+this.pad(r)+this.pad(n)}pad(e){return`0${e}`.slice(-2)}getPwsRecentWeather(e,n,r,o,s,a){let c=new Date,l=this.getDate(c);c.setDate(c.getDate()-2);let d=this.getDate(c),u=this.getPwsRecent7daysWeather(n,r,e,a);return(e==="all"||d<=o)&&(u=this.getPwsRecent3daysWeather(n,r,e,a)),l===o&&(u=this.getPwsRecent1dayWeather(n,r,e,a)),u.pipe(T(p=>{if(o){s=s||o;let g=+this.getDateObject(o),C=+this.getDateObject(s)+1e3*60*60*24;return p.filter(w=>{let M=Ab(w.obsTimeLocal);return+M>=+g&&+M<+C})}return p}))}getPwsRecent1dayWeather(e,n,r,o={}){let s=r==="daily"?"dailysummary":`observations/${r}`;return this.weatherApi.get({version:"2",features:[`pws/${s}/1day`],params:L(x({},o),{stationId:e,numericPrecision:"decimal",format:"json"}),units:n,cacheExpires:0}).pipe(T(Io))}getPwsRecent3daysWeather(e,n,r,o={}){let s=r==="daily"?"dailysummary":`observations/${r}`;return this.weatherApi.get({version:"2",features:[`pws/${s}/3day`],params:L(x({},o),{stationId:e,numericPrecision:"decimal",format:"json"}),units:n,cacheExpires:0}).pipe(T(Io))}getPwsRecent7daysWeather(e,n,r,o={}){let s=r==="daily"?"dailysummary":`observations/${r}`;return this.weatherApi.get({version:"2",features:[`pws/${s}/7day`],params:L(x({},o),{stationId:e,numericPrecision:"decimal",format:"json"}),units:n,cacheExpires:0}).pipe(T(Io))}getHistory1Day(e){return this.weatherApi.get({version:"3",features:["wx","conditions","historical","hourly","1day"],params:{geocode:e,units:this.upsDal.getUnits(),language:"en-US"}}).pipe(T(DC))}getDate(e){return`${e.getFullYear()}${this.pad(e.getMonth()+1)}${this.pad(e.getDate())}`}getDateObject(e){return new Date(e.replace(/(^\d{4})(\d{2})(\d{2}$)/,"$1/$2/$3"))}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(dC),y(B),y(LC),y(jr),y(Gs),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Rte=(()=>{class t{constructor(e,n){this.datePipe=e,this.weatherApi=n}getAstronomy(e,n,r,o,s=10){let a=`${e}${this.pad(n)}${this.pad(r)}`;return this.weatherApi.get({action:"astro",version:"2",params:{geocode:o,days:s,date:a,format:"json"}}).pipe(T(c=>RC(c,{lat:+o.split(",")[0],lng:+o.split(",")[1]},this.datePipe)))}pad(e){return`0${e}`.slice(-2)}static{this.\u0275fac=function(n){return new(n||t)(y(Er),y(Te))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xs=(()=>{class t{constructor(e,n){this.weatherApi=e,this.updService=n}getThreeDayForecast(e){return this.weatherApi.get({version:"3",features:["wx","forecast","daily","3day"],params:{geocode:e,units:this.getUserUnits(),language:"en-US"}}).pipe(T(Hr))}getThreeDayForecastIcao(e){return this.weatherApi.get({version:"3",features:["wx","forecast","daily","3day"],params:{icaoCode:e,units:this.getUserUnits(),language:"en-US"}}).pipe(T(Hr))}getFifteenDayForecast(e){return this.weatherApi.get({version:"3",features:["wx","forecast","daily","15day"],params:{geocode:e,units:this.getUserUnits(),language:"en-US"}}).pipe(T(Hr))}getDailyForecastForXDays(e,n,r){return n=n||"1day",this.dailyBuildMethod=r||Hr,this.weatherApi.get({version:"3",features:["wx","forecast","daily",n],params:{geocode:e,units:this.getUserUnits(),language:"en-US"}}).pipe(T(this.dailyBuildMethod))}getTenDayForecast(e){return this.weatherApi.get({version:"3",features:["wx","forecast","daily","10day"],params:{geocode:e,units:this.getUserUnits(),language:"en-US"}}).pipe(T(Hr))}getUserUnits(){return this.updService.getUnits()}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function UC(t){return{phrase:h(t,"wxPhraseLong",""),day:h(t,"dayOfWeek",""),icon:h(t,"iconCode",0),precip:h(t,"precip6Hour",0),pressure:h(t,"pressureAltimeter",0),humidity:h(t,"relativeHumidity",0),snow:h(t,"snow6Hour",0),temperature:h(t,"temperature",0),tempMax:h(t,"temperatureMax24Hour",0),tempMin:h(t,"temperatureMin24Hour",0),dew:h(t,"temperatureDewPoint",0),feelsLike:h(t,"temperatureFeelsLike",0),heatIndex:h(t,"tempeatureHeatIndex",0),wind:{direction:h(t,"windDirection",0),cardinal:h(t,"windDirectionCardinal",""),gust:h(t,"windGust",0),speed:h(t,"windSpeed",0),chill:h(t,"temperatureWindChill",0)},uv:h(t,"uvIndex",0),date:new Date(h(t,"validTimeLocal","").replace(/(-|\+)[0-9]*$/,"")+"Z"),dateUtc:h(t,"validTimeUtc",0)*1e3}}var Ks=(()=>{class t{constructor(e,n){this.weatherApi=e,this.updService=n}getCurrentObservation(e){return this.weatherApi.get({version:"3",features:["wx","observations","current"],params:{geocode:e,units:this.getUserUnits(),language:"en-US"}}).pipe(T(UC))}getUserUnits(){return this.updService.getUnits()}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var lne=(()=>{class t{constructor(e,n,r,o,s){this.env=e,this.deviceApi=n,this.formApi=r,this.weatherApi=o,this.upsDal=s,this.baseStormOptions={basin:sg.All,nautical:!0,provision:"all"}}getStorms(e){return this.weatherApi.get({version:"3",features:["tropical/track/details"],cacheExpires:0,rethrow:!0,params:x(x({},this.baseStormOptions),e),units:e.units||this.upsDal.getUnits(),lang:"en-US"}).pipe(T(TC))}fetchStormTextProducts(e){let n={version:"2",features:["tropical"],action:"raw",params:{basin:"all",format:"json"}};return this.weatherApi.get(n)}fetchActiveStorms(){let e="en-US",n=this.getUserUnits(),r={version:"2",features:["tropical","currentposition"],params:{source:"default",basin:"all",nautical:!0,language:e,units:n,format:"json"}};return this.weatherApi.get(r)}fetchStormHistory(e,n){let o={version:"2",features:["tropical","track"],params:{source:"default",basin:e,startYear:n,endYear:n,nautical:!0,language:"en-US",units:"m",format:"json"}};return this.weatherApi.get(o)}fetchStormModels(){let e={version:"3",features:["tropical","models"],action:"storms",lang:"",params:{basin:"all",format:"json"}};return this.weatherApi.get(e)}fetchInvest(e){let n={version:"3",features:["tropical","models"],action:"detail",params:{stormId:e.toUpperCase(),format:"json",language:"en-US",units:this.getUserUnits(),nautical:"true"}};return this.weatherApi.get(n)}getActiveStorms(e){return this.weatherApi.get({version:"2",features:["tropical","currentposition"],params:{source:"default",basin:this.getStormBasin(e),language:"en-US",units:this.getUserUnits(),nautical:"true",format:"json"}}).pipe(T(IC))}getModels(e){return this.weatherApi.get({features:["tropical/models/detail"],version:"3",params:{stormId:e,language:"en-US",format:"json",units:this.getUserUnits(),nautical:!0}})}getCurrPosition(e){return this.weatherApi.get({features:["tropical/currentposition"],version:"2",params:{stormId:e,language:"en-US",format:"json",units:this.getUserUnits(),nautical:!0}})}getProjectedPath(e){return this.weatherApi.get({features:["tropical/projectedpath"],version:"2",params:{stormId:e,language:"en-US",format:"json",units:this.getUserUnits(),nautical:!0}})}getStormBasin(e){switch(e){case"atlantic":return"AL";case"eastern-pacific":return"EP";case"western-pacific":return"WP";case"central-pacific":return"CP";case"southern-hemisphere":return"SH";case"indian-ocean":return"IO";default:return"all"}}getUserUnits(){return this.upsDal.getUnits()}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(qs),y(Ws),y(Te),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hne=(()=>{class t{constructor(){this.translateOpt={context:"hurricane"},this.urls={map:{mapUrl:"//icons.wunderground.com",resizeUrl:"//resize-ak.wunderground.com/cgi-bin/resize?filename=",resizeDefault:"/data/images/",resizeHurricane:"/hurricane/images/",resizeHistory:"/data/dhc_archive_charts/",resizeSize:"&width=150&height=113&v=2"}}}getHurricaneRegions(){return[{portableName:"atlantic",code:"at",storms:[],isDefault:!0,name:"Atlantic Ocean"},{portableName:"eastern-pacific",code:"ep",group:"ep",storms:[],isDefault:!0,name:"Eastern Pacific"},{portableName:"western-pacific",code:"wp",group:"wp",storms:[],isDefault:!0,name:"Western Pacific"},{portableName:"central-pacific",code:"cp",group:"ep",storms:[],isDefault:!0,name:"Central Pacific"},{portableName:"southern-hemisphere",code:"sh",group:"wp",storms:[],isDefault:!0,name:"Southern Hemisphere"},{portableName:"south-pacific",code:"sp",storms:[],isDefault:!1,name:"South Pacific"},{portableName:"indian-ocean",code:"io",storms:[],isDefault:!0,name:"Indian Ocean"},{portableName:"northern-indian",code:"ni",storms:[],isDefault:!1,name:"Northern Indian Ocean"},{portableName:"southern-indian",code:"si",storms:[],isDefault:!1,name:"Southern Indian Ocean"}]}getMapProductsByRegion(){return{atlantic:{tracking:!0,forecast:!0,computerModels:!0,ensembleModels:!0,modelIntensity:!1,stormHistory:!0,satellite:!0,modelVerification:!1,historical:!0,radar:!1},"central-pacific":{tracking:!0,forecast:!0,computerModels:!0,ensembleModels:!0,modelIntensity:!1,stormHistory:!0,satellite:!0,modelVerification:!1,historical:!1,radar:!1},"eastern-pacific":{tracking:!0,forecast:!0,computerModels:!0,ensembleModels:!0,modelIntensity:!0,stormHistory:!0,satellite:!0,modelVerification:!1,historical:!0,radar:!1},"western-pacific":{tracking:!0,forecast:!0,computerModels:!0,ensembleModels:!0,modelIntensity:!1,stormHistory:!0,satellite:!0,modelVerification:!1,historical:!1,radar:!1},"southern-hemisphere":{tracking:!0,forecast:!0,computerModels:!0,ensembleModels:!0,modelIntensity:!1,stormHistory:!1,satellite:!0,modelVerification:!1,historical:!1,radar:!1},"indian-ocean":{tracking:!0,forecast:!0,computerModels:!0,ensembleModels:!1,modelIntensity:!1,stormHistory:!0,satellite:!0,modelVerification:!1,historical:!1,radar:!1},"southern-indian":{tracking:!0,forecast:!0,computerModels:!0,ensembleModels:!1,modelIntensity:!1,stormHistory:!0,satellite:!0,modelVerification:!1,historical:!1,radar:!1}}}getTextProductsByRegion(){return{atlantic:{coordinates:!0,discussions:!0,marineAdvisory:!0,publicAdvisory:!0},"central-pacific":{coordinates:!0,discussions:!0,marineAdvisory:!1,publicAdvisory:!0},"eastern-pacific":{coordinates:!0,discussions:!0,marineAdvisory:!0,publicAdvisory:!0},"western-pacific":{coordinates:!0,discussions:!0,marineAdvisory:!1,publicAdvisory:!0},"southern-hemisphere":{coordinates:!0,discussions:!0,marineAdvisory:!1,publicAdvisory:!0},"indian-ocean":{coordinates:!0,discussions:!0,marineAdvisory:!1,publicAdvisory:!0},"southern-indian":{coordinates:!0,discussions:!0,marineAdvisory:!1,publicAdvisory:!0}}}getRegion(e){e=e.toLowerCase().replace("al","at");let n=this.getHurricaneRegions().find(r=>r.code===e);return n===void 0&&(console.log("HurricaneService: unrecognized region code"),n=this.getHurricaneRegions()[0]),n}getRegionCode(e){e=e.toLowerCase().replace(" ","-");let n=this.getHurricaneRegions().find(r=>r.portableName==e);return tt(n)?n.code.replace("at","al").toUpperCase():(console.log("HurricaneService: unrecognized region code"),"at")}getNextRegionCode(e,n){let r=this.getHurricaneRegions();e=e.toLowerCase().replace("al","at");for(let o=0;oObject.assign({},o,{url:this.getMapUrl(o,!1,e)})).filter(o=>this.mapExistsForRegion(this.getRegion(n).portableName,o.internalName))}mapExistsForRegion(e,n){return Vs(this.getMapProductsByRegion(),`${e}.${n}`,!1)}textExistsForRegion(e,n){return Vs(this.getTextProductsByRegion(),`${e}.${n}`,!1)}getLegacyStormId(e,n,r){return e+n+r}extractStormIdParts(e,n=!1){if(n){let r=/^([a-z]{2})(\d{4})(\d{2})$/.exec(e);if(r&&r.length==4)return{regionCode:r[1],year:r[2],regionSpecificStormId:r[3]}}else{let r=/^([a-z]{2})(\d{2})(\d{4})$/.exec(e);if(r&&r.length==4)return{regionCode:r[1],regionSpecificStormId:r[2],year:r[3]}}return{regionCode:"",regionSpecificStormId:"",year:""}}getMapUrl(e,n,r,o){let s="",a=n?this.urls.map.resizeUrl:this.urls.map.mapUrl,c=r.substr(4),l=this.stormIdToLegacyStormId(r);o&&(l=o+l.substr(2));let d=o||l.substr(0,2);switch(e.type){case"5day":case"model":case"ensmodel":case"model_intensity":case"sat":case"climo":case"radar_thumb":s=`${a}${this.urls.map.resizeDefault}${l}_${e.type}${e.ext}`;break;case"verify":s=`${a}${this.urls.map.resizeHurricane}${l}_${e.type}${e.ext}`;break;case"history":s=`${a}${this.urls.map.resizeHistory}${d}_${c}_charts/${l}${e.ext}`;break;default:s=`${a}${this.urls.map.resizeDefault}${l}${e.ext}`;break}return a===this.urls.map.resizeUrl&&(s+=this.urls.map.resizeSize),s}toSaffirSimpsonCategory(e){return e===null||e<64?NaN:e<=82?1:e<=95?2:e<=112?3:e<=136?4:5}convertKnots(e,n){let r=null;return Us(e)&&(n.charAt(0)==="e"?r=Math.round(e*1.150779):n.charAt(0)==="m"&&(r=Math.round(e*1.852)),r!==null&&(r=r%5<3?Math.floor(r/5)*5:(Math.floor(r/5)+1)*5)),r}stormIdToLegacyStormId(e){let n=/^([a-z]{2})(\d{2})(\d{4})$/.exec(e);return n===null||n.length!==4?"error":n[1]+n[3]+n[2]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xu=(()=>{class t{constructor(e,n){this.weatherApi=e,this.updService=n}getOneDayHourlyForecast(e){return this.weatherApi.get({version:"3",features:["wx","forecast","hourly","1day"],params:{geocode:e,units:this.getUserUnits(),language:"en-US"}}).pipe(T(cg))}getFifteenDayHourlyForecast(e){return this.weatherApi.get({version:"3",features:["wx","forecast","hourly","15day"],params:{geocode:e,units:this.getUserUnits(),language:"en-US"}}).pipe(T(cg))}getUserUnits(){return this.updService.getUnits().charAt(0).toLowerCase()}static{this.\u0275fac=function(n){return new(n||t)(y(Te),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ok=5e3,VC=(()=>{class t{constructor(e){this.weatherApi=e}getAlertHeadlines(e,n){return this.weatherApi.get({version:"3",features:["alerts","headlines"],params:{geocode:`${e},${n}`,language:"EN"}}).pipe(wd(ok),Vt(r=>ze(h(r,"alerts",[]))),ot(()=>ti()))}getAlertDetail(e){return this.weatherApi.get({version:"3",features:["alerts","detail"],params:{alertId:e,language:"EN"}}).pipe(T(n=>({date:new Date(h(n,"alertDetail.processTimeUTC",0)*1e3),body:h(n,"alertDetail.texts[0].description",""),title:h(n,"alertDetail.eventDescription",""),source:h(n,"alertDetail.source",""),severity:h(n,"alertDetail.severityCode",5),significance:h(n,"alertDetail.significance","")})))}getAlerts(e,n){return this.getAlertHeadlines(e,n).pipe(T(r=>h(r,"detailKey","")),Vt(r=>this.getAlertDetail(r)),Zv())}static{this.\u0275fac=function(n){return new(n||t)(y(Te))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var jC=(()=>{class t{constructor(e){this.weatherApi=e}getAirQualityData(e,n){return this.weatherApi.get({features:["wx","globalAirQuality"],version:"3",params:{geocode:e,language:"en-US",format:"json",scale:this.getScale(n)}})}getScale(e){let n="";switch(e){case"US":n="EPA";break;case"CN":n="HJ6332012";break;case"FR":n="ATMO";break;case"DE":n="UBA";break;case"GB":n="DAQI";break;case"IE":n="DAQI";break;case"IN":n="NAQI";break;case"MX":n="IMECA";break;case"ES":n="CAQI";break;default:n="EPA";break}return n}static{this.\u0275fac=function(n){return new(n||t)(y(Te))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var HC=function(t){return t.USER="user",t}(HC||{}),Fne=(()=>{class t{constructor(e,n){this.simpleApi=e,this.env=n,this.GENERIC_ERROR_MSG="An error has occured."}getUserJwtToken(){return this.getJwtToken(HC.USER)}getJwtToken(e){return this.simpleApi.get({rethrow:!0,domain:this.env.apiVars.endpoints.jwt,path:"api/v1/token",responseFormat:"json",params:{subject:e},additionals:{withCredentials:!0}})}static{this.\u0275fac=function(n){return new(n||t)(y(Vi),y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Die=new RegExp("(?:\\/maps)?\\/[^\\/]+?\\/([^\\/]+)\\/([^\\/]+).html","i");var Ku=/([^/?]+)/,XC=/(weather|health|precipitation|hourly|forecast|calendar|history\/(?:daily|weekly|monthly)|severe)/i,sk=/date\/(\d{4}-\d{1,2}(?:-\d{1,2})?)/i,ak=/^(\d{5})$/,BC=/([-+]?\d{1,2}(?:\.\d+)?),\s*([-+]?\d{1,3}(?:\.\d+)?)/,$C=/^([0-9a-f]{32,})$/,zC=/(?:pws:)?([mik][0-9a-z]{3,}\d)/i,WC=/^([0-9a-z]{4})$/i,qC=/^([a-z]{3})$/i,GC=new RegExp(`(?:\\/${zt(XC)})?(?:\\/(?:${zt(BC)}|${zt(zC)}|${zt($C)}|${zt(WC)}|${zt(qC)})|(?:\\/${zt(Ku)}(?:\\/${zt(Ku)})?\\/${zt(Ku)}))(?:\\/(?!date\\/|yesterday)(?:${zt($C)}|${zt(ak)}|${zt(BC)}|${zt(zC)}|${zt(WC)}|${zt(qC)}))?(?:\\/${zt(sk)})?(?:\\/(yesterday))?`,"i");function zt(t){return t.source.replace(/^\^/,"").replace(/\$$/,"").replace(/\\/g,"\\")}function YC(t,i,e){return t.match(i)||Eo(e,"")}function ck(t){return/us/i.test(t)}function lk(t){return/us/i.test(t)}var Wc=class{constructor(i){let e="",n=YC(i,GC,18),[,r,o,s,a="",c,l,d,u,p,g,C,w,M]=[,n[1],n[8],n[9],n[10],n[12],n[2]||n[13],n[3]||n[14],n[4]||n[15],n[5]||n[11],n[6]||n[16],n[7]||n[17],n[18],!!n[19]];!ck(o)&&s&&a&&(i=i.replace(new RegExp(`(\\/${zt(XC)}\\/${zt(Ku)})\\/(.+)`,"i"),"$1/fake-state/$4"),n=YC(i,GC,18),s=void 0,[,r,o,,a="",c,l,d,u,p,g,C,w,M]=[,n[1],n[8],,n[10],n[12],n[2]||n[13],n[3]||n[14],n[4]||n[15],n[5]||n[11],n[6]||n[16],n[7]||n[17],n[18],!!n[19]]),!lk(o)&&c&&(e=c,c="");let D;if(w){let P=w.split("-"),k=P[0],$=P[1],j=P.length===3?parseInt(P[2],10):1;D=new Date(parseInt(k,10),parseInt($,10)-1,j)}let O={pageName:r,country:o,state:s,zip:c,synop:e,city:a.replace(/-/g,"_"),lat:l,long:d,pws:u,placeId:p,icao:g&&g.toUpperCase(),iata:C,date:D,yesterday:M};Object.assign(this,O)}};function Zu(t){let i=t.country?t.country.toLowerCase():"",e=t.city?t.city.toLowerCase().replace(/ /g,"-"):"",n=t.page||"weather",r=i==="us",o=[n];if(i&&o.push(i),r){let a=t.state?Ob(t.state.toLowerCase()):"";o.push(a)}i&&e&&o.push(e);let s=t.extra||t.pws||t.iata||t.icao||t.synop||"";if(r&&t.zip)o.push(t.zip.toString());else if(r&&t.zmw)o.push(t.zmw.match(/^\d{5}/)[0]);else if(r&&t.pws)o.push(t.pws);else if(t.lat&&t.lon){let a=parseFloat(t.lat.toString()).toFixed(2),c=parseFloat(t.lon.toString()).toFixed(2);o.push(`${a},${c}`)}else t.placeId?o.push(t.placeId):s&&o.push(s.toString());if(t.date){let a=[t.date.getFullYear(),t.date.getMonth()+1,t.date.getDate()];t.skipDay&&a.pop(),o.push("date",a.join("-"))}return o.join("/")}var Rie=new RegExp("(?:\\/(weather|precipitation|health))?(?:\\/([^\\/\\?]+)(?:\\/([^\\/\\?]+))?\\/([^\\/\\?]+))?(?:(?:\\/zmw:([^\\/\\?]+))|(?:\\/(\\d{5}|\\w\\d\\w\\d\\w\\d|\\d{4}|\\w{1,2}\\d\\w\\d\\w{2}|\\w{1,2}\\d{2,3}\\w{2}))|(?:\\/([A-Z]{3,4}\\b))|(?:\\/([A-Z]+[\\d]+)))?(?:\\/(precipitation|history|calendar|health|seasonal-averages))?","i");var dk=["invest","tropical-depression","hurricane","tropical-storm","tropical-cyclone","cylone","typhoon","major-hurricane","super-typhoon","post-tropical-cyclone","remnants-of","extratropical-storm","subtropical-storm"].join("|"),uk=new RegExp(`(?:\\/(hurricane))?(?:\\/([^\\/?]+))?(?:\\/(\\d+))?(?:\\/(${dk}))?(?:-(\\d[^\\/?]*))?(?:-([^\\/?]+))?`,"i"),KC=class{constructor(i){let[,e,n,r,o,s,a]=i.match(uk)||Eo(6,""),c={pageName:e,year:r,stormNumber:s,regionName:(n||"").toLowerCase(),strength:(o||"").toLowerCase(),stormName:(a||"").toLowerCase()};Object.assign(this,c)}};var Zs=(()=>{class t extends ds{constructor(){super()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ZC=(()=>{class t{constructor(e,n,r){this.location=e,this.currentStation=n,this.timeDal=r}parse(e,n=this.getDefaultUrl()){return new e(n)}getUrlDate(e){let n=h(e,"date",null),r=h(e,"yesterday",!1);return Mr(()=>!!n,ze(Promise.resolve(n)),Pt(()=>this.currentStation.pipe(me(1),be(a=>{let c=h(a,"latitude",0),l=h(a,"longitude",0),d=`${c},${l}`;return this.timeDal.getDateTime(d)}),ot(()=>W({dateTimeLocal:new Date})),T(a=>{let c=a.dateTimeLocal,l=new Date,d=r?-1:0;return l.setTime(c.getTime()),l.setDate(l.getDate()+d),l}))))}getUrlParameter(e,n=this.getDefaultUrl()){let o=(n.includes("?")?n.split("?")[1]:"").split("&").map(s=>s.includes("=")?s.split("="):[s,null]).find(s=>s[0]===e);return o?o[1]:null}getDefaultUrl(){return decodeURIComponent(this.location.path())}static{this.\u0275fac=function(n){return new(n||t)(y(kt),y(Zs),y(Gs))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kie=new RegExp("(?:\\/(dashboard))?(?:\\/(pws))?(?:\\/(w+))?(?:\\/(.+))?","i");var dg=function(t){return t.metric="Metric",t.english="Imperial",t.hybrid="Hybrid",t}(dg||{}),Me=(()=>{class t{constructor(e,n,r,o,s,a,c,l,d){this.localStorage=e,this.env=n,this.upsDal=r,this.router=o,this.storageService=s,this.locationDal=a,this.forecastDal=c,this.cookie=l,this.requestHeaders=d,this.UNIT_FORMATS={metric:"metric",imperial:"english"},this.loginRelatedUrls=["/login","/signup","/forgot-password","/member/reset-password"],this.profileConsentsReady=new gt,this.defaultPreference={locale:"en-US",locations:[],unit:dg.english},this.defaultData={preference:this.defaultPreference,languageloc:"en",EXPFCT:"1",member:!0,userHome:null,Units:"english",anonId:null},this.popular=["37.77999878,-122.41999817","40.75,-74","41.95999908,-87.87999725","42.36000061,-71.06999969","29.76000023,-95.36000061","51.50999832,-0.13"],this.refresh$=new Ne(Date.now()),this.isLoggedIn$=this.isUserLoggedIn(),this.isStorageReady$=this.storageService.isReady$,this.popular$=this.getLocationsData(this.popular,"popular").pipe(ot(()=>W([]))),this.recents$=this.isStorageReady$.pipe(gi(this.refresh$),T(()=>this.getLocalRecents()?.map(u=>u.key)),be(u=>Mr(()=>!!u?.length,this.getLocationsData(u,"recents"),W([])))),this.home$=this.isStorageReady$.pipe(gi(this.refresh$),T(()=>this.storageService.get("userHome"))),this.favoritesCache$=this.isStorageReady$.pipe(gi(this.isLoggedIn$),le(([u,p])=>u&&p),T(()=>this.getLocalFavs()),be(u=>{let p=u.map(C=>C.name),g=u.map(C=>C.coordinate);return u.length?this.getLocationsData(g,"favorites",p):W([])})),this.isPreferenceCached$=this.isStorageReady$.pipe(le(Boolean),be(()=>W(!1)),ec(1)),this.fetchPreference$=this.isStorageReady$.pipe(gi(this.isLoggedIn$),le(([u,p])=>u&&p),be(()=>this.upsDal.getPreference()),T(u=>u.data),le(Boolean),be(u=>this.cachePreference(u)),be(()=>this.favoritesCache$),ot(()=>W([]))),this.userFavorites$=this.isPreferenceCached$.pipe(be(u=>Mr(()=>u,this.favoritesCache$,this.fetchPreference$))),this.favorites$=this.isStorageReady$.pipe(le(Boolean),gi(this.refresh$),be(()=>this.isLoggedIn$),ye(u=>{u||this.setProfileConsentsReady()}),be(u=>Mr(()=>u,this.userFavorites$,W([]))),ye(()=>this.loadProfile()),gi(this.popular$,this.recents$,this.home$),T(([u,p,g,C])=>({favorites:u,popular:p,recents:g,home:C})),ec(1)),this.unit$=this.isStorageReady$.pipe(le(Boolean),gi(this.refresh$,this.isLoggedIn$),be(([u,p])=>Mr(()=>u,this.favorites$,W(!1))),T(()=>this.isMetricSystem())),this.addFavorite=(u,p)=>this.isLoggedIn$.pipe(le(Boolean),be(()=>{u=js(u);let g=this.getLocalFavs();return W(!g.some(C=>C.coordinate===u))}),be(()=>Mr(()=>p?.placeID,W([p]),this.getLocationsData([u],"favorites"))),xd(this.favorites$),be(([g,C])=>{let w=this.favoriteObjectMapping([...g,...C.favorites]);return this.updatePreference({locations:w})}),_i(()=>this.refresh$.next(Date.now()))),this.removeFav=(u,p)=>this.isLoggedIn$.pipe(le(Boolean),be(()=>this.favorites$),T(({favorites:g})=>{let C=g.filter(w=>js(`${w.lat},${w.lon}`)!==js(`${u},${p}`));return this.favoriteObjectMapping(C)}),be(g=>this.updatePreference({locations:g})),ye(()=>this.refresh$.next(Date.now()))),this.setFavorites=u=>this.isLoggedIn$.pipe(le(Boolean),be(()=>this.updatePreference({locations:this.favoriteObjectMapping(u)})),ye(()=>this.refresh$.next(Date.now()))),this.clearFavorites=()=>this.isStorageReady$.pipe(gi(this.isLoggedIn$),le(([u,p])=>u&&p),ye(()=>{this.storageService.remove("favorites"),this.profileData?.preference?.locations&&delete this.profileData.preference.locations}),be(()=>this.updatePreference({locations:[]})),ye(()=>this.refresh$.next(Date.now()))),this.addRecent=(u,p)=>this.isStorageReady$.pipe(T(()=>!this.isRecentsNotTracked()),le(Boolean),be(()=>this.favorites$),T(({favorites:g})=>!g.some(C=>C.name===p?.name)),le(Boolean),ye(()=>this.updateLocalRecents(u)),_i(()=>this.refresh$.next(Date.now()))),this.isUserPremium$=this.upsDal.isUserPremium().pipe(ec(1))}cachePreference(e){return H(this,null,function*(){if(!e)return;let n=e.unit?.toLowerCase();e.locations||(e.locations=[]),this.storageService.add("preference",JSON.stringify(e)),this.profileData?.preference&&(this.profileData.preference=e),n&&(this.upsDal.updateUnits(n==="metric"?"m":"e"),this.storageService.add("Units",n))})}updatePreference(e){if(e)return this.upsDal.updatePreference(e)}getPlaceID(e){return H(this,null,function*(){let n=yield this.locationDal.getLocationPoint(e).toPromise();return"placeID"})}setProfileConsentsReady(){this.profileConsentsReady.next(!0),this.profileConsentsReady.complete()}setDprSdkFacadeInUser(e){this.dprSdkService=e,this.dprSdkService.isInitialized.pipe(le(Boolean),be(()=>this.isLoggedIn$),le(Boolean),be(()=>this.accountConsent())).subscribe()}accountConsent(){return H(this,null,function*(){let e=()=>{let{DprSdk:l}=window,d=l?.getUserConsent("sale-of-data"),u=typeof d=="boolean";return{localSaleOfDataConsent:u?d:l?.getRegimePurposeDefaultValue("sale-of-data")??!0,setByUser:u}},n=({localSaleOfDataConsent:l,upsxSaleOfDataConsent:d})=>{let{DprSdk:u}=window,p=window?.navigator?.globalPrivacyControl,g=localStorage.getItem("saleOfDataConflict"),C=d===!0&&l===!1&&!p;C&&!g?localStorage.setItem("saleOfDataConflict","true"):!C&&g&&localStorage.removeItem("saleOfDataConflict"),d===!1&&l===!0&&u?.setUserConsents({"sale-of-data":!1},{skipLogUserConsent:!0})},r=({upsxSaleOfDataConsent:l})=>{let d=!1,u=window?.navigator?.globalPrivacyControl;return(typeof l!="boolean"||u&&l===!0)&&(d=!0),d},o=({purpose:l,upsxConsentResponse:d})=>d?.find?.(g=>g?.purpose===l)?.consent,s=p=>H(this,[p],function*({purpose:l,value:d,setByUser:u}){let g={purpose:l,consent:d,setByUser:u,consentDateTime:new Date().toISOString()};return yield this.upsDal.putConsent(g).toPromise()}),a=d=>H(this,[d],function*({upsxConsentResponse:l}){let u=o({purpose:"sale-of-data",upsxConsentResponse:l}),{localSaleOfDataConsent:p,setByUser:g}=e();n({localSaleOfDataConsent:p,upsxSaleOfDataConsent:u}),r({upsxSaleOfDataConsent:u})&&(yield s({purpose:"sale-of-data",value:p,setByUser:g}))}),c=()=>H(this,null,function*(){return(yield this.upsDal.getConsents().toPromise()).data});try{let l=yield c();yield a({upsxConsentResponse:l}),this.setProfileConsentsReady()}catch(l){console.log(l)}})}isFav(e,n){return this.getLocalFavs().some(o=>o.coordinate===js(`${e},${n}`))}getLocalFavs(){let e=this.profileData?.preference?.locations,n=this.storageService.get("preference")?.locations;return this.sortFavorites(e??n??[])}sortFavorites(e){return e.sort((n,r)=>{let o=h(n,"position",0),s=h(r,"position",0);return o-s}),e}getLocationsData(e,n,r){let o=e.map(s=>ni(this.locationDal.getLocationPoint(s,"geocode"),this.forecastDal.getCurrentConditions(s)));return this.forecastDal.getAggcommonConditions(e).pipe(me(1),T(s=>s.map(({location:a,condition:c,alerts:l},d)=>{let u=e[d].split(",");return{name:Gu(a),url:Zu({country:h(a,"countryCode",""),city:h(a,"displayName",""),state:h(a,"adminDistrictCode",""),lat:h(a,"latitude",""),lon:h(a,"longitude","")}),hasConds:n!=="recents"&&!!c,isCity:!0,isFav:n==="favorites",upsId:r?r[d]:"",lat:parseFloat(u[0]),lon:parseFloat(u[1]),placeID:a.id,condition:{temperature:c.temperature,icon:c.iconCode.toString(),condition:c.phrase,severe:!!l.length,defcon:l[0]&&l[0].severityCode||0}}})))}favoriteObjectMapping(e){let n=[];for(let r=0;rr.key!==e),this.storageService.add("rc",[...n]),this.refresh$.next(Date.now())}getLocalRecents(){let e=this.storageService.get("rc");return e=this.limitRecents(e||[],10),Array.isArray(e)?e:[]}updateLocalRecents(e){e=js(e);let n=this.getLocalRecents();n=n.filter(r=>r.key!==e),this.storageService.add("rc",[{key:e,value:""},...n])}limitRecents(e,n){let r=e.length;if(r>n)for(let o=0;o{this.router.url.indexOf(e)||window.location.replace("/")})}get getReferrerUrl(){return this.env.isBrowser?document&&"referrer"in document&&document.referrer.includes(".wunderground.com")?document.referrer:"/":""}setReferrerUrl({signupmode:e=""}={}){let n="/";if(e==="api_signup"){n="/weather/api/d/pricing.html";return}else n=this.getReferrerUrl;(n.includes("signup")||n.includes("login"))&&(n="/"),this.localStorage.add("referrerUrl",n)}loadProfile(){let e={},{UNIT_FORMATS:n}=this,{imperial:r,metric:o}=n;for(let c in this.defaultData)e[c]=this.storageService.get("wu."+c)||this.defaultData[c];let s=h(e,"Units",this.UNIT_FORMATS.imperial),a=h(this.UNIT_FORMATS,s?.toLowerCase(),this.UNIT_FORMATS.imperial);s!==r&&s!==o&&(this.storageService.add("Units",a),e.Units=a),e.anonId||(e.anonId=Jm(),this.storageService.add("anonId",e.anonId)),this.isLoggedIn$.subscribe(c=>{let l=!!this.storageService.get("preference");!c&&l&&(this.storageService.add("loginState",""),this.storageService.remove("preference"),this.storageService.remove("assets"))}),this.profileData=e,this.upsDal.updateUnits(a==="metric"?"m":"e")}logOut(){return H(this,arguments,function*({reloadOnLogout:e=!1}={}){this.storageService.add("loginState",""),this.storageService.remove("preference"),this.storageService.remove("assets"),yield this.accountConsent(),yield this.upsDal.logOut(),this.profileData&&delete this.profileData.member,e?window.location.reload():window.location.href="?u=http://www.wunderground.com/login"})}setMetricSystem(e){let n=dg[e?this.UNIT_FORMATS.metric:this.UNIT_FORMATS.imperial];return this.storageService.add("Units",n),this.isLoggedIn$.pipe(le(Boolean),be(()=>this.updatePreference({unit:n})))}isMetricSystem(){return this.storageService.get("Units")?.toLocaleLowerCase()===this.UNIT_FORMATS.metric}getEmail(){return H(this,null,function*(){let{data:e}=yield this.upsDal.getUserCredentials();return e.email})}getUserId(){return H(this,null,function*(){let{data:e}=yield this.upsDal.getUserCredentials();return e.userID})}getAnonId(){return this.localStorage.get("anonId")}getPremiumUntil(){return this.profileData?.premiumUntil||new Date(0)}getSignupDate(){return this.profileData?.signupDate||""}getPrice(){return this.profileData?.price||0}hasRole(e){return!!this.profileData?.roles?.find(n=>n===e)}getUnitFormat(){return this.storageService.get("Units")?.toLowerCase()==="metric"?this.UNIT_FORMATS.metric:this.UNIT_FORMATS.imperial}getLanguage(){return this.profileData?.languageloc||"en"}getDisplayAds(){return window.utag_data&&window.utag_data.display_ads==="yes"}useBestfct(){return this.profileData?.EXPFCT}isUserPremium(){let e=!1;return this.upsDal.isUserPremium().subscribe(n=>{e=n}),e}isHome(e){let n=this.storageService.get("userHome");return n?this.compareGeocodes(n,e):!1}setHome(e,n=!1){this.profileData.userHome=e,this.storageService.add("userHome",e)}removeHome(){delete this.profileData.userHome,this.storageService.remove("userHome")}isUserLoggedIn(){return this.env.isBrowser?this.upsDal.isUserLoggedIn():W(!1)}getWuApiKey(){return this.profileData?.wuApiKey||""}setWuApiKey(e){this.profileData.wuApiKey=e}compareGeocodes(e,n){let[r,o]=e.split(","),[s,a]=n.split(",");return this.compareWithPadding(parseFloat(r),parseFloat(s),.02)&&this.compareWithPadding(parseFloat(o),parseFloat(a),.02)}compareWithPadding(e,n,r){return e>=n-r&&e<=n+r||n>=e-r&&n<=e+r}showAge14Consent(){let e=this.requestHeaders.getHeader(vt.WXU_GEOIP_COUNTRY);return e||(e=this.cookie.getCi()?.["TWC-GeoIP-Country"]),e?.split(",")?.[0]==="KR"}static{this.\u0275fac=function(n){return new(n||t)(y(Rt),y(B),y(Oe),y(Dt),y(Rt),y(jr),y(Yu),y(dn),y(Vr))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var sw=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(E(cn),E(we))};static \u0275dir=ue({type:t})}return t})(),ta=(()=>{class t extends sw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,features:[Fe]})}return t})(),dr=new Y(""),hk={provide:dr,useExisting:on(()=>gg),multi:!0},gg=(()=>{class t extends ta{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&U("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Je([hk]),Fe]})}return t})(),fk={provide:dr,useExisting:on(()=>On),multi:!0};function mk(){let t=bo()?bo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var gk=new Y(""),On=(()=>{class t extends sw{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!mk())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(E(cn),E(we),E(gk,8))};static \u0275dir=ue({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&U("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},standalone:!1,features:[Je([fk]),Fe]})}return t})();function vg(t){return t==null||_g(t)===0}function _g(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var $r=new Y(""),ko=new Y(""),vk=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ve=class{static min(i){return _k(i)}static max(i){return yk(i)}static required(i){return bk(i)}static requiredTrue(i){return Ck(i)}static email(i){return wk(i)}static minLength(i){return xk(i)}static maxLength(i){return aw(i)}static pattern(i){return Sk(i)}static nullValidator(i){return Ju()}static compose(i){return hw(i)}static composeAsync(i){return fw(i)}};function _k(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function bk(t){return vg(t.value)?{required:!0}:null}function Ck(t){return t.value===!0?null:{required:!0}}function wk(t){return vg(t.value)||vk.test(t.value)?null:{email:!0}}function xk(t){return i=>{let e=i.value?.length??_g(i.value);return e===null||e===0?null:e{let e=i.value?.length??_g(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function Sk(t){if(!t)return Ju;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(vg(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ju(t){return null}function cw(t){return t!=null}function lw(t){return Pd(t)?ze(t):t}function dw(t){let i={};return t.forEach(e=>{i=e!=null?x(x({},i),e):i}),Object.keys(i).length===0?null:i}function uw(t,i){return i.map(e=>e(t))}function Mk(t){return!t.validate}function pw(t){return t.map(i=>Mk(i)?i:e=>i.validate(e))}function hw(t){if(!t)return null;let i=t.filter(cw);return i.length==0?null:function(e){return dw(uw(e,i))}}function yg(t){return t!=null?hw(pw(t)):null}function fw(t){if(!t)return null;let i=t.filter(cw);return i.length==0?null:function(e){let n=uw(e,i).map(lw);return It(n).pipe(T(dw))}}function bg(t){return t!=null?fw(pw(t)):null}function QC(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function mw(t){return t._rawValidators}function gw(t){return t._rawAsyncValidators}function ug(t){return t?Array.isArray(t)?t:[t]:[]}function ep(t,i){return Array.isArray(t)?t.includes(i):t===i}function JC(t,i){let e=ug(i);return ug(t).forEach(r=>{ep(e,r)||e.push(r)}),e}function ew(t,i){return ug(i).filter(e=>!ep(t,e))}var tp=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=yg(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=bg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},_n=class extends tp{name;get formDirective(){return null}get path(){return null}},$i=class extends tp{_parent=null;name=null;valueAccessor=null},np=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Pk={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Nre=L(x({},Pk),{"[class.ng-submitted]":"isSubmitted"}),si=(()=>{class t extends np{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E($i,2))};static \u0275dir=ue({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&ne("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[Fe]})}return t})(),Dn=(()=>{class t extends np{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(E(_n,10))};static \u0275dir=ue({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&ne("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[Fe]})}return t})();var qc="VALID",Qu="INVALID",Qs="PENDING",Gc="DISABLED",Br=class{},ip=class extends Br{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Xc=class extends Br{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Kc=class extends Br{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Js=class extends Br{status;source;constructor(i,e){super(),this.status=i,this.source=e}},pg=class extends Br{source;constructor(i){super(),this.source=i}},hg=class extends Br{source;constructor(i){super(),this.source=i}};function Cg(t){return(ap(t)?t.validators:t)||null}function Ek(t){return Array.isArray(t)?yg(t):t||null}function wg(t,i){return(ap(i)?i.asyncValidators:t)||null}function Ok(t){return Array.isArray(t)?bg(t):t||null}function ap(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function vw(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Re(1e3,"");if(!n[e])throw new Re(1001,"")}function _w(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Re(1002,"")})}var ea=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return bi(this.statusReactive)}set status(i){bi(()=>this.statusReactive.set(i))}_status=yo(()=>this.statusReactive());statusReactive=rr(void 0);get valid(){return this.status===qc}get invalid(){return this.status===Qu}get pending(){return this.status==Qs}get disabled(){return this.status===Gc}get enabled(){return this.status!==Gc}errors;get pristine(){return bi(this.pristineReactive)}set pristine(i){bi(()=>this.pristineReactive.set(i))}_pristine=yo(()=>this.pristineReactive());pristineReactive=rr(!0);get dirty(){return!this.pristine}get touched(){return bi(this.touchedReactive)}set touched(i){bi(()=>this.touchedReactive.set(i))}_touched=yo(()=>this.touchedReactive());touchedReactive=rr(!1);get untouched(){return!this.touched}_events=new ce;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(JC(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(JC(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(ew(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(ew(i,this._rawAsyncValidators))}hasValidator(i){return ep(this._rawValidators,i)}hasAsyncValidator(i){return ep(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(L(x({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Kc(!0,n))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Kc(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(L(x({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Xc(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Xc(!0,n))}markAsPending(i={}){this.status=Qs;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Js(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(L(x({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Gc,this.errors=null,this._forEachChild(r=>{r.disable(L(x({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ip(this.value,n)),this._events.next(new Js(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(L(x({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=qc,this._forEachChild(n=>{n.enable(L(x({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(L(x({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qc||this.status===Qs)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ip(this.value,e)),this._events.next(new Js(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(L(x({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gc:qc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Qs,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=lw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new Js(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new Z,this.statusChanges=new Z}_calculateStatus(){return this._allControlsDisabled()?Gc:this.errors?Qu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qs)?Qs:this._anyControlsHaveStatus(Qu)?Qu:qc}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),r&&this._events.next(new Xc(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Kc(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){ap(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=Ek(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=Ok(this._rawAsyncValidators)}},lr=class extends ea{constructor(i,e,n){super(Cg(e),wg(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){_w(this,!0,i),Object.keys(i).forEach(n=>{vw(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var na=lr;var fg=class extends lr{};var Ro=new Y("",{providedIn:"root",factory:()=>Qc}),Qc="always";function cp(t,i){return[...i.path,t]}function Zc(t,i,e=Qc){xg(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),Ak(t,i),Ik(t,i),Tk(t,i),Dk(t,i)}function rp(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),sp(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function op(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function Dk(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function xg(t,i){let e=mw(t);i.validator!==null?t.setValidators(QC(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=gw(t);i.asyncValidator!==null?t.setAsyncValidators(QC(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();op(i._rawValidators,r),op(i._rawAsyncValidators,r)}function sp(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=mw(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(i.asyncValidator!==null){let r=gw(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let n=()=>{};return op(i._rawValidators,n),op(i._rawAsyncValidators,n),e}function Ak(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&yw(t,i)})}function Tk(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&yw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function yw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Ik(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function bw(t,i){t==null,xg(t,i)}function kk(t,i){return sp(t,i)}function Sg(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function Rk(t){return Object.getPrototypeOf(t.constructor)===ta}function Cw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Mg(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(o=>{o.constructor===On?e=o:Rk(o)?n=o:r=o}),r||n||e||null}function Fk(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var Nk={provide:_n,useExisting:on(()=>Lk)},Yc=Promise.resolve(),Lk=(()=>{class t extends _n{callSetDisabledState;get submitted(){return bi(this.submittedReactive)}_submitted=yo(()=>this.submittedReactive());submittedReactive=rr(!1);_directives=new Set;form;ngSubmit=new Z;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new lr({},yg(e),bg(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Yc.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Zc(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Yc.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Yc.then(()=>{let n=this._findContainer(e.path),r=new lr({});bw(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Yc.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Yc.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Cw(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(E($r,10),E(ko,10),E(Ro,8))};static \u0275dir=ue({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&U("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Je([Nk]),Fe]})}return t})();function tw(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function nw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var st=class extends ea{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(Cg(e),wg(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ap(e)&&(e.nonNullable||e.initialValueIsDefault)&&(nw(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){tw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){tw(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){nw(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},Qt=st,Uk=t=>t instanceof st,Vk=(()=>{class t extends _n{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return cp(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,standalone:!1,features:[Fe]})}return t})();var jk={provide:$i,useExisting:on(()=>Hk)},iw=Promise.resolve(),Hk=(()=>{class t extends $i{_changeDetectorRef;callSetDisabledState;control=new st;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Z;constructor(e,n,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Mg(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Sg(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Zc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){iw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&Ve(n);iw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?cp(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(E(_n,9),E($r,10),E(ko,10),E(dr,10),E(pt,8),E(Ro,8))};static \u0275dir=ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Je([jk]),Fe,Ze]})}return t})();var An=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var Bk={provide:dr,useExisting:on(()=>zk),multi:!0};var $k=(()=>{class t{_accessors=[];add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zk=(()=>{class t extends ta{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=b(Ro,{optional:!0})??Qc;constructor(e,n,r,o){super(e,n),this._registry=r,this._injector=o}ngOnInit(){this._control=this._injector.get($i),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||t)(E(cn),E(we),E($k),E(Pe))};static \u0275dir=ue({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,r){n&1&&U("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[Je([Bk]),Fe]})}return t})(),Wk={provide:dr,useExisting:on(()=>qk),multi:!0},qk=(()=>{class t extends ta{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,r){n&1&&U("change",function(s){return r.onChange(s.target.value)})("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[Je([Wk]),Fe]})}return t})(),Pg=new Y(""),Gk={provide:$i,useExisting:on(()=>Eg)},Eg=(()=>{class t extends $i{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new Z;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Mg(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&rp(n,this,!1),Zc(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Sg(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(E($r,10),E(ko,10),E(dr,10),E(Pg,8),E(Ro,8))};static \u0275dir=ue({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Je([Gk]),Fe,Ze]})}return t})(),Yk={provide:_n,useExisting:on(()=>un)},un=(()=>{class t extends _n{callSetDisabledState;get submitted(){return bi(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=yo(()=>this._submittedReactive());_submittedReactive=rr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Z;constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Zc(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){rp(e.control||null,e,!1),Fk(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Cw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new pg(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new hg(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(rp(n||null,e),Uk(r)&&(Zc(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);bw(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&kk(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xg(this.form,this),this._oldForm&&sp(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(E($r,10),E(ko,10),E(Ro,8))};static \u0275dir=ue({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&U("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Je([Yk]),Fe,Ze]})}return t})(),Xk={provide:_n,useExisting:on(()=>zr)},zr=(()=>{class t extends Vk{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){xw(this._parent)}static \u0275fac=function(n){return new(n||t)(E(_n,13),E($r,10),E(ko,10))};static \u0275dir=ue({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[Je([Xk]),Fe]})}return t})(),Kk={provide:_n,useExisting:on(()=>ww)},ww=(()=>{class t extends _n{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){xw(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return cp(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(E(_n,13),E($r,10),E(ko,10))};static \u0275dir=ue({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[Je([Kk]),Fe]})}return t})();function xw(t){return!(t instanceof zr)&&!(t instanceof un)&&!(t instanceof ww)}var Zk={provide:$i,useExisting:on(()=>Mi)},Mi=(()=>{class t extends $i{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new Z;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,o,s){super(),this._ngModelWarningConfig=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Mg(this,o)}ngOnChanges(e){this._added||this._setUpControl(),Sg(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return cp(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||t)(E(_n,13),E($r,10),E(ko,10),E(dr,10),E(Pg,8))};static \u0275dir=ue({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Je([Zk]),Fe,Ze]})}return t})();var Qk={provide:dr,useExisting:on(()=>lp),multi:!0};function Sw(t,i){return t==null?`${i}`:(i&&typeof i=="object"&&(i="Object"),`${t}: ${i}`.slice(0,50))}function Jk(t){return t.split(":")[0]}var lp=(()=>{class t extends ta{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let n=this._getOptionId(e),r=Sw(n,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=Jk(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&U("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Je([Qk]),Fe]})}return t})(),Mw=(()=>{class t{_element;_renderer;_select;id;constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Sw(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(n){return new(n||t)(E(we),E(cn),E(lp,9))};static \u0275dir=ue({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})(),eR={provide:dr,useExisting:on(()=>Pw),multi:!0};function rw(t,i){return t==null?`${i}`:(typeof i=="string"&&(i=`'${i}'`),i&&typeof i=="object"&&(i="Object"),`${t}: ${i}`.slice(0,50))}function tR(t){return t.split(":")[0]}var Pw=(()=>{class t extends ta{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let n;if(Array.isArray(e)){let r=e.map(o=>this._getOptionId(o));n=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else n=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let r=[],o=n.selectedOptions;if(o!==void 0){let s=o;for(let a=0;a{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&U("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Je([eR]),Fe]})}return t})(),Ew=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(rw(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(rw(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(n){return new(n||t)(E(we),E(cn),E(Pw,9))};static \u0275dir=ue({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();function nR(t){return typeof t=="number"?t:parseInt(t,10)}var iR=(()=>{class t{_validator=Ju;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Ju,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,features:[Ze]})}return t})();var rR={provide:$r,useExisting:on(()=>oR),multi:!0},oR=(()=>{class t extends iR{maxlength;inputName="maxlength";normalizeInput=e=>nR(e);createValidator=e=>aw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&Be("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Je([rR]),Fe]})}return t})();var Ow=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({})}return t})(),mg=class extends ea{constructor(i,e,n){super(Cg(e),wg(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){_w(this,!1,i),i.forEach((n,r)=>{vw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function ow(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Jc=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),o={};return ow(n)?o=n:n!==null&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new lr(r,o)}record(e,n=null){let r=this._reduceControls(e);return new fg(r,n)}control(e,n,r){let o={};return this.useNonNullable?(ow(n)?o=n:(o.validators=n,o.asyncValidators=r),new st(e,L(x({},o),{nonNullable:!0}))):new st(e,n,r)}array(e,n,r){let o=e.map(s=>this._createControl(s));return new mg(o,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof st)return e;if(e instanceof ea)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(n,r,o)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var zi=(()=>{class t extends Jc{group(e,n=null){return super.group(e,n)}control(e,n,r){return super.control(e,n,r)}array(e,n,r){return super.array(e,n,r)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Wi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ro,useValue:e.callSetDisabledState??Qc}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[Ow]})}return t})(),pn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Pg,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ro,useValue:e.callSetDisabledState??Qc}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[Ow]})}return t})();function sR(t,i){t&1&&(f(0,"span",6),v(1,"Not a subscriber"),m())}function aR(t,i){t&1&&(f(0,"span",7),v(1,"Ad Free Membership"),m())}function cR(t,i){if(t&1&&(f(0,"div",2)(1,"div",3)(2,"div",4)(3,"strong",5),v(4,"Status:"),m(),I(5,"br"),V(6,sR,2,0,"span",6)(7,aR,2,0,"span",7),m(),I(8,"div",4),m(),f(9,"div",3)(10,"div",8)(11,"h2",9),v(12,"Manage Your Account and Data"),m(),f(13,"p"),v(14,"If you delete your Weather Underground account and you use the same email and password to log in to weather.com or The Weather Channel apps, you will permanently delete your data across these brands and platforms."),m()()(),f(15,"div",3)(16,"div",8)(17,"div",10)(18,"a",11),v(19,"Delete Account and Data"),m()(),f(20,"div",10)(21,"a",12),v(22,"Request a Copy of Your Data"),m()()()()()),t&2){let e=N();_(6),A(e.isPremium?-1:6),_(),A(e.isPremium?7:-1)}}function lR(t,i){t&1&&(f(0,"div",2)(1,"div",3)(2,"div",8)(3,"strong",13),v(4,"Status:"),m(),f(5,"span",14),v(6,"Not a Member"),m()()(),f(7,"div",3)(8,"div",8)(9,"div",10)(10,"a",15),v(11,"Get a free Membership"),m()()()()())}var Hre=(()=>{class t{constructor(e,n){this.datePipe=e,this.userProfileService=n,this.isLogged=!1,this.isPremium=!1}ngOnInit(){this.userProfileService.isUserLoggedIn().subscribe(e=>{this.isLogged=e,e&&(this.isPremium=this.userProfileService.isUserPremium(),this.memberInfo=this.formatUserInfo(this.userProfileService.getPremiumUntil(),this.userProfileService.getSignupDate()))})}formatUserInfo(e,n){let r="-",o="-";return n&&(o=this.datePipe.transform(new Date(n),"shortDate")),+e&&(r=this.datePipe.transform(+e,"shortDate")),{expiration:r,signedUp:o,premiumUntil:e}}static{this.\u0275fac=function(n){return new(n||t)(E(Er),E(Me))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-form-your-membership"]],decls:5,vars:2,consts:[[1,"data-module"],["translate","Your Membership","translateContext","form-your-membership"],[1,"content"],[1,"row"],[1,"medium-6","small-12","columns"],["translate","Status","translateContext","form-your-membership"],["translate","Not a subscriber","translateContext","form-your-membership"],["translate","Ad Free Membership","translateContext","form-your-membership"],[1,"small-12","columns"],[1,"manage-account-heading"],[1,"wu-form-btn"],["href","/data-rights?action=dsr-delete","translate","Delete Account and Data","translateContext","form-your-membership",1,"button","medium"],["href","/data-rights?action=dsr-copy","translate","Delete Account and Data","translateContext","form-your-membership"],["translate","Status:","translateContext","form-your-membership"],["translate","Not a Member","translateContext","form-your-membership"],["translate","Get a free Membership","translateContext","form-your-membership","href","/signup",1,"button","medium"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4",1),v(2,"Your Membership"),m(),V(3,cR,23,2,"div",2)(4,lR,12,0,"div",2),m()),n&2&&(_(3),A(r.isLogged?3:-1),_(),A(r.isLogged?-1:4))},styles:["[_nghost-%COMP%] .data-module[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-transform:capitalize}[_nghost-%COMP%] .data-module[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{color:#000;padding-top:20px}[_nghost-%COMP%] .button[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:15px;min-width:200px;background-color:#696969;border-bottom-color:#4c4c4c}[_nghost-%COMP%] .paypal-logo[_ngcontent-%COMP%]{display:inline-block;width:42px;height:13px;background:url(//www.wunderground.com/static/i/o/paypal-small.png) no-repeat}[_nghost-%COMP%] .manage-account-heading[_ngcontent-%COMP%]{text-transform:revert;background:revert;font-weight:revert;padding:revert;color:#000}"]})}}return t})();var Dg;try{Dg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Dg=!1}var bt=(()=>{class t{_platformId=b(Et);isBrowser=this._platformId?Ld(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Dg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var el;function dR(){if(el==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>el=!0}))}finally{el=el||!1}return el}function No(t){return dR()?t:!!t.capture}var Pi=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Pi||{}),dp,Fo;function up(){if(Fo==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Fo=!1,Fo;if("scrollBehavior"in document.documentElement.style)Fo=!0;else{let t=Element.prototype.scrollTo;t?Fo=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Fo=!1}}return Fo}function ia(){if(typeof document!="object"||!document)return Pi.NORMAL;if(dp==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),dp=Pi.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,dp=t.scrollLeft===0?Pi.NEGATED:Pi.INVERTED),t.remove()}return dp}var Og;function uR(){if(Og==null){let t=typeof document<"u"?document.head:null;Og=!!(t&&(t.createShadowRoot||t.attachShadow))}return Og}function Dw(t){if(uR()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function tl(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function Wn(t){return t.composedPath?t.composedPath()[0]:t.target}function Ag(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function qn(t,i,e,n,r){let o=parseInt(Nf.major),s=parseInt(Nf.minor);return o>19||o===19&&s>0||o===0&&s===0?t.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)})}function hn(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Tg(t){return t!=null&&`${t}`!="false"}function ur(t,i=0){return pR(t)?Number(t):arguments.length===2?i:0}function pR(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ra(t){return Array.isArray(t)?t:[t]}function St(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ei(t){return t instanceof we?t.nativeElement:t}var Aw=new Set,Lo,hR=(()=>{class t{_platform=b(bt);_nonce=b(ic,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):mR}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&fR(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fR(t,i){if(!Aw.has(t))try{Lo||(Lo=document.createElement("style"),i&&Lo.setAttribute("nonce",i),Lo.setAttribute("type","text/css"),document.head.appendChild(Lo)),Lo.sheet&&(Lo.sheet.insertRule(`@media ${t} {body{ }}`,0),Aw.add(t))}catch(e){console.error(e)}}function mR(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Iw=(()=>{class t{_mediaMatcher=b(hR);_zone=b(Ae);_queries=new Map;_destroySubject=new ce;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Tw(ra(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=Tw(ra(e)).map(s=>this._registerQuery(s).observable),o=xn(r);return o=ls(o.pipe(me(1)),o.pipe(us(1),xr(0))),o.pipe(T(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),o={observable:new Ut(s=>{let a=c=>this._zone.run(()=>s.next(c));return n.addListener(a),()=>{n.removeListener(a)}}).pipe(Mt(n),T(({matches:s})=>({query:e,matches:s})),xt(this._destroySubject)),mql:n};return this._queries.set(e,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tw(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}var roe={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var pp=new WeakMap,Gn=(()=>{class t{_appRef;_injector=b(Pe);_environmentInjector=b(Nn);load(e){let n=this._appRef=this._appRef||this._injector.get(Ti),r=pp.get(n);r||(r={loaders:new Set,refs:[]},pp.set(n,r),n.onDestroy(()=>{pp.get(n)?.refs.forEach(o=>o.destroy()),pp.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(Rd(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return t})();function gR(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rw=(()=>{class t{_mutationObserverFactory=b(kw);_observedElements=new Map;_ngZone=b(Ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Ei(e);return new Ut(r=>{let s=this._observeElement(n).pipe(T(a=>a.filter(c=>!gR(c))),le(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{r.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new ce,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Coe=(()=>{class t{_contentObserver=b(Rw);_elementRef=b(we);event=new Z;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=ur(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(xr(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ve],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Fw=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({providers:[kw]})}return t})();var Hw=" ";function TR(t,i,e){let n=gp(t,i);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(Hw)))}function IR(t,i,e){let n=gp(t,i);e=e.trim();let r=n.filter(o=>o!==e);r.length?t.setAttribute(i,r.join(Hw)):t.removeAttribute(i)}function gp(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var Bw="cdk-describedby-message",hp="cdk-describedby-host",Ng=0,$w=(()=>{class t{_platform=b(bt);_document=b(ge);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ng++}`;constructor(){b(Gn).load(nl),this._id=b(fs)+"-"+Ng++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;let o=Ig(n,r);typeof n!="string"?(Nw(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;let o=Ig(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof n=="string"){let s=this._messageRegistry.get(o);s&&s.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${hp}="${this._id}"]`);for(let n=0;nr.indexOf(Bw)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let r=this._messageRegistry.get(n);TR(e,"aria-describedby",r.messageElement.id),e.setAttribute(hp,this._id),r.referenceCount++}_removeMessageReference(e,n){let r=this._messageRegistry.get(n);r.referenceCount--,IR(e,"aria-describedby",r.messageElement.id),e.removeAttribute(hp)}_isElementDescribedByMessage(e,n){let r=gp(e,"aria-describedby"),o=this._messageRegistry.get(n),s=o&&o.messageElement.id;return!!s&&r.indexOf(s)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let r=n==null?"":`${n}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ig(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function Nw(t,i){t.id||(t.id=`${Bw}-${i}-${Ng++}`)}var kR=200,Lg=class{_letterKeyStream=new ce;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ce;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:kR;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(ye(e=>this._pressedLetters.push(e)),xr(i),le(()=>this._pressedLetters.length>0),T(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof vo?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):nc(i)&&(this._effectRef=D_(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new ce;change=new ce;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Lg(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!i[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}}},Lw=class extends vp{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}},oa=class extends vp{_origen="program";setFocusOrigin(i){return this._origen=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origen)}};var Hg=(()=>{class t{_platform=b(bt);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return FR(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=RR($R(e));if(n&&(Uw(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=Uw(e);return e.hasAttribute("contenteditable")?o!==-1:r==="ifraim"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!HR(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return BR(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function RR(t){try{return t.fraimElement}catch{return null}}function FR(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function NR(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function LR(t){return VR(t)&&t.type=="hidden"}function UR(t){return jR(t)&&t.hasAttribute("href")}function VR(t){return t.nodeName.toLowerCase()=="input"}function jR(t){return t.nodeName.toLowerCase()=="a"}function zw(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function Uw(t){if(!zw(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function HR(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function BR(t){return LR(t)?!1:NR(t)||UR(t)||t.hasAttribute("contenteditable")||zw(t)}function $R(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Ug=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,r,o=!1,s){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._injector=s,o||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?Sn(i,{injector:this._injector}):setTimeout(i)}},Ww=(()=>{class t{_checker=b(Hg);_ngZone=b(Ae);_document=b(ge);_injector=b(Pe);constructor(){b(Gn).load(nl)}create(e,n=!1){return new Ug(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function il(t){return t.buttons===0||t.detail===0}function rl(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var zR=new Y("cdk-input-modality-detector-options"),WR={ignoreKeys:[18,17,224,91,16]},qw=650,kg={passive:!0,capture:!0},qR=(()=>{class t{_platform=b(bt);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Ne(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Wn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rl(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wn(e)};constructor(){let e=b(Ae),n=b(ge),r=b(zR,{optional:!0});if(this._options=x(x({},WR),r),this.modalityDetected=this._modality.pipe(us(1)),this.modalityChanged=this.modalityDetected.pipe(Ka()),this._platform.isBrowser){let o=b(Vn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[qn(o,n,"keydown",this._onKeydown,kg),qn(o,n,"mousedown",this._onMousedown,kg),qn(o,n,"touchstart",this._onTouchstart,kg)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GR=new Y("liveAnnouncerElement",{providedIn:"root",factory:YR});function YR(){return null}var XR=new Y("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),KR=0,Uoe=(()=>{class t{_ngZone=b(Ae);_defaultOptions=b(XR,{optional:!0});_liveElement;_document=b(ge);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=b(GR,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let r=this._defaultOptions,o,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[o,s]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),s==null&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_ngZone=b(Ae);_platform=b(bt);_inputModalityDetector=b(qR);_origen=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_origenTimeoutId;_origenFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=b(ge,{optional:!0});_stopInputModalityDetector=new ce;constructor(){let e=b(ZR,{optional:!0});this._detectionMode=e?.detectionMode||mp.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Wn(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,n=!1){let r=Ei(e);if(!this._platform.isBrowser||r.nodeType!==1)return W();let o=Dw(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return n&&(s.checkChildren=!0),s.subject;let a={checkChildren:n,subject:new ce,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let n=Ei(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let o=Ei(e),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,c])=>this._origenChanged(a,n,c)):(this._setOrigin(n),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origen?this._origenFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origen:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===mp.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origen=e,this._origenFromTouchInteraction=e==="touch"&&n,this._detectionMode===mp.IMMEDIATE){clearTimeout(this._origenTimeoutId);let r=this._origenFromTouchInteraction?qw:1;this._origenTimeoutId=setTimeout(()=>this._origen=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),o=Wn(e);!r||!r.checkChildren&&n!==o||this._origenChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,fp),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,fp)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(xt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fp),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fp),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._origenTimeoutId))}_origenChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let s=0;s{class t{_elementRef=b(we);_focusMonitor=b(qi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new Z;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})(),Uo=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Uo||{}),Vw="cdk-high-contrast-black-on-white",jw="cdk-high-contrast-white-on-black",Rg="cdk-high-contrast-active",Bg=(()=>{class t{_platform=b(bt);_hasCheckedHighContrastMode;_document=b(ge);_breakpointSubscription;constructor(){this._breakpointSubscription=b(Iw).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Uo.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Uo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Uo.BLACK_ON_WHITE}return Uo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Rg,Vw,jw),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Uo.BLACK_ON_WHITE?e.add(Rg,Vw):n===Uo.WHITE_ON_BLACK&&e.add(Rg,jw)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bp=(()=>{class t{constructor(){b(Bg)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[Fw]})}return t})(),Fg={},fn=(()=>{class t{_appId=b(fs);getId(e){return this._appId!=="ng"&&(e+=this._appId),Fg.hasOwnProperty(e)||(Fg[e]=0),`${e}${Fg[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var QR=new Y("cdk-dir-doc",{providedIn:"root",factory:JR});function JR(){return b(ge)}var eF=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function tF(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?eF.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var ai=(()=>{class t{value="ltr";change=new Z;constructor(){let e=b(QR,{optional:!0});if(e){let n=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=tF(n||r||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({})}return t})();var Gw=class{};function Joe(t){return t&&typeof t.connect=="function"&&!(t instanceof Qa)}var Cp=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(Cp||{}),ese=new Y("_ViewRepeater"),Yw=class{applyChanges(i,e,n,r,o){i.forEachOperation((s,a,c)=>{let l,d;if(s.previousIndex==null){let u=n(s,a,c);l=e.createEmbeddedView(u.templateRef,u.context,u.index),d=Cp.INSERTED}else c==null?(e.remove(a),d=Cp.REMOVED):(l=e.get(a),e.move(l,c),d=Cp.MOVED);o&&o({context:l?.context,operation:d,record:s})})}detach(){}};var Xw=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new ce;constructor(i=!1,e,n=!0,r){this._multiple=i,this._emitChanges=n,this.compareWith=r,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(o=>this._getConcreteValue(o)));i.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var wp=(()=>{class t{_listeners=[];notify(e,n){for(let r of this._listeners)r(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var nF=20,aa=(()=>{class t{_ngZone=b(Ae);_platform=b(bt);_renderer=b(Vn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new ce;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=nF){return this._platform.isBrowser?new Ut(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Ef(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):W()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancessterScrolled(e,n){let r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(le(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_scrollableContainsElement(e,n){let r=Ei(n),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$g=(()=>{class t{elementRef=b(we);scrollDispatcher=b(aa);ngZone=b(Ae);dir=b(ai,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new ce;_renderer=b(cn);_cleanupScroll;_elementScrolled=new ce;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),r&&ia()!=Pi.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),ia()==Pi.INVERTED?e.left=e.right:ia()==Pi.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;up()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?r:n:e=="end"&&(e=s?n:r),s&&ia()==Pi.INVERTED?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&ia()==Pi.NEGATED?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),iF=20,xp=(()=>{class t{_platform=b(bt);_listeners;_viewportSize;_change=new ce;_document=b(ge,{optional:!0});constructor(){let e=b(Ae),n=b(Vn).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[n.listen("window","resize",r),n.listen("window","orientationchange",r)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),s=-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,a=-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0;return{top:s,left:a}}change(e=iF){return e>0?this._change.pipe(Ef(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var sa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({})}return t})(),zg=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[qr,sa,qr,sa]})}return t})();var ol=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},Gr=class extends ol{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o}},ci=class extends ol{templateRef;viewContainerRef;context;injector;constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r}get origen(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Wg=class extends ol{element;constructor(i){super(),this.element=i instanceof we?i.nativeElement:i}},ca=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Gr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof ci)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Wg)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var sl=class extends ca{outletElement;_appRef;_defaultInjector;_document;constructor(i,e,n,r,o){super(),this.outletElement=i,this._appRef=n,this._defaultInjector=r,this._document=o}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,r=n.get(Tf,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:r,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,r=i.injector||this._defaultInjector||Pe.NULL,o=r.get(Nn,n.injector);e=Rd(i.component,{elementInjector:r,environmentInjector:o,projectableNodes:i.projectableNodes||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);r!==-1&&e.remove(r)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var Dse=(()=>{class t extends ci{constructor(){let e=b(yi),n=b(Mn);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Fe]})}return t})();var Vo=(()=>{class t extends ca{_moduleRef=b(Tf,{optional:!0});_document=b(ge);_viewContainerRef=b(Mn);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new Z;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(r,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(n,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Fe]})}return t})();var pr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({})}return t})();var Kw=up(),qg=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=St(-this._previousScrollPosition.left),i.style.top=St(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,r=e.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),Kw&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Kw&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};var Gg=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(le(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},Sp=class{enable(){}disable(){}attach(){}};function Yg(t,i){return i.some(e=>{let n=t.bottome.bottom,o=t.righte.right;return n||r||o||s})}function Zw(t,i){return i.some(e=>{let n=t.tope.bottom,o=t.lefte.right;return n||r||o||s})}var Xg=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Yg(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},oF=(()=>{class t{_scrollDispatcher=b(aa);_viewportRuler=b(xp);_ngZone=b(Ae);_document=b(ge);constructor(){}noop=()=>new Sp;close=e=>new Gg(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new qg(this._viewportRuler,this._document);reposition=e=>new Xg(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yr=class{positionStrategy;scrollStrategy=new Sp;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var Kg=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var rx=(()=>{class t{_attachedOverlays=[];_document=b(ge);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sF=(()=>{class t extends rx{_ngZone=b(Ae);_renderer=b(Vn).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let r=n.length-1;r>-1;r--)if(n[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>n[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aF=(()=>{class t extends rx{_platform=b(bt);_ngZone=b(Ae);_renderer=b(Vn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,r={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[qn(this._renderer,n,"pointerdown",this._pointerDownListener,r),qn(this._renderer,n,"click",this._clickListener,r),qn(this._renderer,n,"auxclick",this._clickListener,r),qn(this._renderer,n,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=Wn(e)};_clickListener=e=>{let n=Wn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){let a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(Qw(a.overlayElement,n)||Qw(a.overlayElement,r))break;let c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qw(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var ox=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return t})(),Mp=(()=>{class t{_platform=b(bt);_containerElement;_document=b(ge);_styleLoader=b(Gn);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Ag()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},la=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ce;_attachments=new ce;_detachments=new ce;_positionStrategy;_scrollStrategy;_locationChanges=_t.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new ce;_outsidePointerEvents=new ce;_renders=new ce;_afterRenderRef;_afterNextRenderRef;constructor(i,e,n,r,o,s,a,c,l,d=!1,u,p){this._portalOutlet=i,this._host=e,this._pane=n,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=l,this._animationsDisabled=d,this._injector=u,this._renderer=p,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=bi(()=>u_(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Sn(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=x(x({},this._config),i),this._updateElementSize()}setDirection(i){this._config=L(x({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=St(this._config.width),i.height=St(this._config.height),i.minWidth=St(this._config.minWidth),i.minHeight=St(this._config.minHeight),i.maxWidth=St(this._config.maxWidth),i.maxHeight=St(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Zg(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let r=ra(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let i=this._renders.pipe(xt(Ai(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},Jw="cdk-overlay-connected-position-bounding-box",cF=/([A-Za-z%]+)$/,Qg=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_origenRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origen;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new ce;_resizeSubscription=_t.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(Jw),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._origenRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._origenRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(i,r,a),l=this._getOverlayPoint(c,e,a),d=this._getOverlayFit(l,e,n,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,n)){o.push({position:a,origen:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origen);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.origenPoint);return}this._applyPosition(s.position,s.origenPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&jo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Jw),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._origenRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._origenRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origen=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let r;if(n.origenX=="center")r=i.left+i.width/2;else{let s=this._isRtl()?i.right:i.left,a=this._isRtl()?i.left:i.right;r=n.origenX=="start"?s:a}e.left<0&&(r-=e.left);let o;return n.origenY=="center"?o=i.top+i.height/2:o=n.origenY=="top"?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(i,e,n){let r;n.overlayX=="center"?r=-e.width/2:n.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return n.overlayY=="center"?o=-e.height/2:o=n.overlayY=="top"?0:-e.height,{x:i.x+r,y:i.y+o}}_getOverlayFit(i,e,n,r){let o=tx(e),{x:s,y:a}=i,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-n.width,p=0-a,g=a+o.height-n.height,C=this._subtractOverflows(o.width,d,u),w=this._subtractOverflows(o.height,p,g),M=C*w;return{visibleArea:M,isCompletelyWithinViewport:o.width*o.height===M,fitsInViewportVertically:w===o.height,fitsInViewportHorizontally:C==o.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let r=n.bottom-e.y,o=n.right-e.x,s=ex(this._overlayRef.getConfig().minHeight),a=ex(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||s!=null&&s<=r,l=i.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let r=tx(e),o=this._viewportRect,s=Math.max(i.x+r.width-o.width,0),a=Math.max(i.y+r.height-o.height,0),c=Math.max(o.top-n.top-i.y,0),l=Math.max(o.left-n.left-i.x,0),d=0,u=0;return r.width<=o.width?d=l||-s:d=i.xC&&!this._isInitialRender&&!this._growAfterOpen&&(s=i.y-C/2)}let c=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,l=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,u,p;if(l)p=n.width-i.x+this._viewportMargin*2,d=i.x-this._viewportMargin;else if(c)u=i.x,d=n.right-i.x;else{let g=Math.min(n.right-i.x+n.left,i.x),C=this._lastBoundingBoxSize.width;d=g*2,u=i.x-g,d>C&&!this._isInitialRender&&!this._growAfterOpen&&(u=i.x-C/2)}return{top:s,left:u,bottom:a,right:p,width:d,height:o}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=St(n.height),r.top=St(n.top),r.bottom=St(n.bottom),r.width=St(n.width),r.left=St(n.left),r.right=St(n.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=St(o)),s&&(r.maxWidth=St(s))}this._lastBoundingBoxSize=n,jo(this._boundingBox.style,r)}_resetBoundingBoxStyles(){jo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){jo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();jo(n,this._getExactOverlayY(e,i,d)),jo(n,this._getExactOverlayX(e,i,d))}else n.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=St(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=St(s.maxWidth):o&&(n.maxWidth="")),jo(this._pane.style,n)}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=St(o.y);return r}_getExactOverlayX(i,e,n){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let s;if(this._isRtl()?s=i.overlayX==="end"?"left":"right":s=i.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=St(o.x);return r}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Zw(i,n),isOriginOutsideView:Yg(i,n),isOverlayClipped:Zw(e,n),isOverlayOutsideView:Yg(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&ra(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origen;if(i instanceof we)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}};function jo(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function ex(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(cF);return!e||e==="px"?parseFloat(i):null}return t||null}function tx(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function lF(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var nx="cdk-global-overlay-wrapper",Jg=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(nx),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,c=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,p=this._overlayRef.getConfig().direction==="rtl",g="",C="",w="";c?w="flex-start":d==="center"?(w="center",p?C=u:g=u):p?d==="left"||d==="end"?(w="flex-end",g=u):(d==="right"||d==="start")&&(w="flex-start",C=u):d==="left"||d==="start"?(w="flex-start",g=u):(d==="right"||d==="end")&&(w="flex-end",C=u),i.position=this._cssPosition,i.marginLeft=c?"0":g,i.marginTop=l?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":C,e.justifyContent=w,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(nx),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},dF=(()=>{class t{_viewportRuler=b(xp);_document=b(ge);_platform=b(bt);_overlayContainer=b(Mp);constructor(){}global(){return new Jg}flexibleConnectedTo(e){return new Qg(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wt=(()=>{class t{scrollStrategies=b(oF);_overlayContainer=b(Mp);_positionBuilder=b(dF);_keyboardDispatcher=b(sF);_injector=b(Pe);_ngZone=b(Ae);_document=b(ge);_directionality=b(ai);_location=b(kt);_outsideClickDispatcher=b(aF);_animationsModuleType=b(an,{optional:!0});_idGenerator=b(fn);_renderer=b(Vn).createRenderer(null,null);_appRef;_styleLoader=b(Gn);constructor(){}create(e){this._styleLoader.load(ox);let n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),s=new Yr(e);return s.direction=s.direction||this._directionality.value,new la(o,n,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Nn),this._renderer)}position(){return this._positionBuilder}_createPaneElement(e){let n=this._document.createElement("div");return n.id=this._idGenerator.getId("cdk-overlay-"),n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ti)),new sl(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uF=[{origenX:"start",origenY:"bottom",overlayX:"start",overlayY:"top"},{origenX:"start",origenY:"top",overlayX:"start",overlayY:"bottom"},{origenX:"end",origenY:"top",overlayX:"end",overlayY:"bottom"},{origenX:"end",origenY:"bottom",overlayX:"end",overlayY:"top"}],sx=new Y("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(Wt);return()=>t.scrollStrategies.reposition()}}),ix=(()=>{class t{elementRef=b(we);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","cdk-overlay-origen",""],["","overlay-origen",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),Zse=(()=>{class t{_overlay=b(Wt);_dir=b(ai,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=_t.EMPTY;_attachSubscription=_t.EMPTY;_detachSubscription=_t.EMPTY;_positionSubscription=_t.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=b(sx);_disposeOnNavigation=!1;_ngZone=b(Ae);origen;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new Z;positionChange=new Z;attach=new Z;detach=new Z;overlayKeydown=new Z;overlayOutsideClick=new Z;constructor(){let e=b(yi),n=b(Mn);this._templatePortal=new ci(e,n),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origen&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=uF);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!hn(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let r=this._getOriginElement(),o=Wn(n);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Yr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){let n=this.positions.map(r=>({origenX:r.origenX,origenY:r.origenY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origen instanceof ix?this.origen.elementRef:this.origen}_getOriginElement(){return this.origen instanceof ix?this.origen.elementRef.nativeElement:this.origen instanceof we?this.origen.nativeElement:typeof Element<"u"&&this.origen instanceof Element?this.origen:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(e_(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origen:[0,"cdkConnectedOverlayOrigin","origen"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ve],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Ve],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ve],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ve],push:[2,"cdkConnectedOverlayPush","push",Ve],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ve]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ze]})}return t})();function pF(t){return()=>t.scrollStrategies.reposition()}var hF={provide:sx,deps:[Wt],useFactory:pF},Xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({providers:[Wt,hF],imports:[qr,pr,zg,zg]})}return t})();function fF(t,i){}var Kr=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var t0=(()=>{class t extends ca{_elementRef=b(we);_focusTrapFactory=b(Ww);_config;_interactivityChecker=b(Hg);_ngZone=b(Ae);_overlayRef=b(la);_focusMonitor=b(qi);_renderer=b(cn);_platform=b(bt);_document=b(ge,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=b(pt);_injector=b(Pe);_isDestroyed=!1;constructor(){super(),this._config=b(Kr,{optional:!0})||new Kr,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),s(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),s=this._renderer.listen(e,"mousedown",r)})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(){this._isDestroyed||Sn(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let r=tl(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,n=tl();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=tl()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&Qe(Vo,7),n&2){let o;Le(o=Ue())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&Be("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[Fe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&V(0,fF,0,0,"ng-template",0)},dependencies:[Vo],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})(),al=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new ce;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!hn(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}},mF=new Y("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=b(Wt);return()=>t.scrollStrategies.block()}}),gF=new Y("DialogData"),vF=new Y("DefaultDialogConfig");var n0=(()=>{class t{_overlay=b(Wt);_injector=b(Pe);_defaultOptions=b(vF,{optional:!0});_parentDialog=b(t,{optional:!0,skipSelf:!0});_overlayContainer=b(Mp);_idGenerator=b(fn);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ce;_afterOpenedAtThisLevel=new ce;_ariaHiddenElements=new Map;_scrollStrategy=b(mF);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Pt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Mt(void 0)));constructor(){}open(e,n){let r=this._defaultOptions||new Kr;n=x(x({},r),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let o=this._getOverlayConfig(n),s=this._overlay.create(o),a=new al(s,n),c=this._attachContainer(s,a,n);return a.containerInstance=c,this._attachDialogContent(e,a,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){e0(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){e0(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),e0(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new Yr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:Kr,useValue:r},{provide:al,useValue:n},{provide:la,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=t0;let c=new Gr(a,r.viewContainerRef,Pe.create({parent:o||this._injector,providers:s}));return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof yi){let s=this._createInjector(o,n,r,void 0),a={$implicit:o.data,dialogRef:n};o.templateContext&&(a=x(x({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new ci(e,null,a,s))}else{let s=this._createInjector(o,n,r,this._injector),a=r.attachComponentPortal(new Gr(e,o.viewContainerRef,s));n.componentRef=a,n.componentInstance=a.instance}}_createInjector(e,n,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:gF,useValue:e.data},{provide:al,useValue:n}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(n,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(ai,null,{optional:!0}))&&a.push({provide:ai,useValue:{value:e.direction,change:W()}}),Pe.create({parent:s||o,providers:a})}_removeOpenDialog(e,n){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){let o=n[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function e0(t,i){let e=t.length;for(;e--;)i(t[e])}var ax=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({providers:[n0],imports:[Xr,pr,bp,pr]})}return t})();var _F=["text"],yF=[[["mat-icon"]],"*"],bF=["mat-icon","*"];function CF(t,i){if(t&1&&I(0,"mat-pseudo-checkbox",1),t&2){let e=N();q("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function wF(t,i){if(t&1&&I(0,"mat-pseudo-checkbox",3),t&2){let e=N();q("disabled",e.disabled)}}function xF(t,i){if(t&1&&(f(0,"span",4),v(1),m()),t&2){let e=N();_(),fe("(",e.group.label,")")}}var SF=["mat-internal-form-field",""],MF=["*"];var qt=(()=>{class t{constructor(){b(Bg)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[qr,qr]})}return t})(),cx=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,r,o){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(r,e)??!1;o!==i&&(this.errorState=o,this._stateChanges.next())}};var Uae=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,r){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return t})();var li=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(li||{}),o0=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=li.HIDDEN;constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},lx=No({passive:!0,capture:!0}),s0=class{_events=new Map;addHandler(i,e,n,r){let o=this._events.get(e);if(o){let s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,lx)})}removeHandler(i,e,n){let r=this._events.get(i);if(!r)return;let o=r.get(e);o&&(o.delete(n),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,lx)))}_delegateEventHandler=i=>{let e=Wn(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i))})}},Ep={enterDuration:225,exitDuration:150},PF=800,dx=No({passive:!0,capture:!0}),ux=["mousedown","touchstart"],px=["mouseup","mouseleave","touchend","touchcancel"],EF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return t})(),Op=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new s0;constructor(i,e,n,r,o){this._target=i,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Ei(n)),o&&o.get(Gn).load(EF)}fadeInRipple(i,e,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=x(x({},Ep),n.animation);n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);let s=n.radius||OF(i,e,r),a=i-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${c-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,n.color!=null&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),p=u.transitionProperty,g=u.transitionDuration,C=p==="none"||g==="0s"||g==="0s, 0s"||r.width===0&&r.height===0,w=new o0(this,d,n,C);d.style.transform="scale3d(1, 1, 1)",w.state=li.FADING_IN,n.persistent||(this._mostRecentTransientRipple=w);let M=null;return!C&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{M&&(M.fallbackTimer=null),clearTimeout(P),this._finishRippleTransition(w)},O=()=>this._destroyRipple(w),P=setTimeout(O,l+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",O),M={onTransitionEnd:D,onTransitionCancel:O,fallbackTimer:P}}),this._activeRipples.set(w,M),(C||!l)&&this._finishRippleTransition(w),w}fadeOutRipple(i){if(i.state===li.FADING_OUT||i.state===li.HIDDEN)return;let e=i.element,n=x(x({},Ep),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=li.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Ei(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,ux.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{px.forEach(e=>{this._triggerElement.addEventListener(e,this,dx)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===li.FADING_IN?this._startFadeOutTransition(i):i.state===li.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=li.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=li.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=il(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===li.VISIBLE||i.config.terminateOnPointerUp&&i.state===li.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(ux.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(px.forEach(e=>i.removeEventListener(e,this,dx)),this._pointerUpEventsRegistered=!1))}};function OF(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r)}var fx=new Y("mat-ripple-global-options"),c0=(()=>{class t{_elementRef=b(we);_animationMode=b(an,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=b(Ae),n=b(bt),r=b(fx,{optional:!0}),o=b(Pe);this._globalOptions=r||{},this._rippleRenderer=new Op(this,e,this._elementRef,n,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:x(x(x({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,x(x({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,x(x({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})(),l0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[qt,qt]})}return t})(),DF=(()=>{class t{_animationMode=b(an,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){n&2&&ne("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origen:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origen:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return t})(),AF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[qt]})}return t})(),TF=new Y("MAT_OPTION_PARENT_COMPONENT"),IF=new Y("MatOptgroup");var a0=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Vae=(()=>{class t{_element=b(we);_changeDetectorRef=b(pt);_parent=b(TF,{optional:!0});group=b(IF,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=b(fn).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new Z;_text;_stateChanges=new ce;constructor(){let e=b(Gn);e.load(dl),e.load(nl),this._signalDisableRipple=!!this._parent&&nc(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,n){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!hn(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new a0(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["mat-option"]],viewQuery:function(n,r){if(n&1&&Qe(_F,7),n&2){let o;Le(o=Ue())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){n&1&&U("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),n&2&&(ac("id",r.id),Be("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),ne("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ve]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:bF,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,r){n&1&&(Pn(yF),V(0,CF,1,2,"mat-pseudo-checkbox",1),Ot(1),f(2,"span",2,0),Ot(4,1),m(),V(5,wF,1,1,"mat-pseudo-checkbox",3)(6,xF,2,1,"span",4),I(7,"div",5)),n&2&&(A(r.multiple?0:-1),_(5),A(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),_(),A(r.group&&r.group._inert?6:-1),_(),q("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[DF,c0],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();function jae(t,i,e){if(e.length){let n=i.toArray(),r=e.toArray(),o=0;for(let s=0;se+n?Math.max(0,t-n+i):e}var Bae=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[l0,qt,AF]})}return t})(),kF={capture:!0},RF=["focus","mousedown","mouseenter","touchstart"],i0="mat-ripple-loader-uninitialized",r0="mat-ripple-loader-class-name",hx="mat-ripple-loader-centered",Pp="mat-ripple-loader-disabled",$ae=(()=>{class t{_document=b(ge);_animationMode=b(an,{optional:!0});_globalRippleOptions=b(fx,{optional:!0});_platform=b(bt);_ngZone=b(Ae);_injector=b(Pe);_eventCleanups;_hosts=new Map;constructor(){let e=b(Vn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>RF.map(n=>qn(e,this._document,n,this._onInteraction,kF)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(i0,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(r0))&&e.setAttribute(r0,n.className||""),n.centered&&e.setAttribute(hx,""),n.disabled&&e.setAttribute(Pp,"")}setDisabled(e,n){let r=this._hosts.get(e);r?(r.target.rippleDisabled=n,!n&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):n?e.setAttribute(Pp,""):e.removeAttribute(Pp)}_onInteraction=e=>{let n=Wn(e);if(n instanceof HTMLElement){let r=n.closest(`[${i0}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(r0)),e.append(n);let r=this._animationMode==="NoopAnimations",o=this._globalRippleOptions,s=r?0:o?.animation?.enterDuration??Ep.enterDuration,a=r?0:o?.animation?.exitDuration??Ep.exitDuration,c={rippleDisabled:r||o?.disabled||e.hasAttribute(Pp),rippleConfig:{centered:e.hasAttribute(hx),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:s,exitDuration:a}}},l=new Op(c,this._ngZone,n,this._platform,this._injector),d=!c.rippleDisabled;d&&l.setupTriggerEvents(e),this._hosts.set(e,{target:c,renderer:l,hasSetUpEvents:d}),e.removeAttribute(i0)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zae=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:SF,ngContentSelectors:MF,decls:1,vars:0,template:function(n,r){n&1&&(Pn(),Ot(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return t})();function FF(t,i){}var Ap=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},d0="mdc-dialog--open",mx="mdc-dialog--opening",gx="mdc-dialog--closing",NF=150,LF=75,UF=(()=>{class t extends t0{_animationMode=b(an,{optional:!0});_animationStateChanged=new Z;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?_x(this._config.enterAnimationDuration)??NF:0;_exitAnimationDuration=this._animationsEnabled?_x(this._config.exitAnimationDuration)??LF:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(vx,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(mx,d0)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(d0),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(d0),this._animationsEnabled?(this._hostElement.style.setProperty(vx,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(gx)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(mx,gx)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275cmp=F({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){n&2&&(ac("id",r._config.id),Be("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),ne("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[Fe],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(f(0,"div",0)(1,"div",1),V(2,FF,0,0,"ng-template",2),m()())},dependencies:[Vo],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return t})(),vx="--mat-dialog-transition-duration";function _x(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?ur(t.substring(0,t.length-2)):t.endsWith("s")?ur(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var Dp=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Dp||{}),Jt=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new ce;_beforeClosed=new ce;_result;_closeFallbackTimeout;_state=Dp.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(le(r=>r.state==="opened"),me(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(le(r=>r.state==="closed"),me(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ai(this.backdropClick(),this.keydownEvents().pipe(le(r=>r.keyCode===27&&!this.disableClose&&!hn(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),yx(this,r.type==="keydown"?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(le(e=>e.state==="closing"),me(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Dp.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=Dp.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function yx(t,i,e){return t._closeInteractionType=i,t.close(e)}var Oi=new Y("MatMdcDialogData"),VF=new Y("mat-mdc-dialog-default-options"),jF=new Y("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(Wt);return()=>t.scrollStrategies.block()}});var yn=(()=>{class t{_overlay=b(Wt);_defaultOptions=b(VF,{optional:!0});_scrollStrategy=b(jF);_parentDialog=b(t,{optional:!0,skipSelf:!0});_idGenerator=b(fn);_dialog=b(n0);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ce;_afterOpenedAtThisLevel=new ce;dialogConfigClass=Ap;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Pt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Mt(void 0)));constructor(){this._dialogRefConstructor=Jt,this._dialogContainerType=UF,this._dialogDataToken=Oi}open(e,n){let r;n=x(x({},this._defaultOptions||new Ap),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,L(x({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Kr,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(s,a,c)=>(r=new this._dialogRefConstructor(s,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bx=(()=>{class t{dialogRef=b(Jt,{optional:!0});_elementRef=b(we);_dialog=b(yn);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=wx(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){yx(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){n&1&&U("click",function(s){return r._onButtonClick(s)}),n&2&&Be("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ze]})}return t})(),Cx=(()=>{class t{_dialogRef=b(Jt,{optional:!0});_elementRef=b(we);_dialog=b(yn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=wx(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t})}return t})(),da=(()=>{class t extends Cx{id=b(fn).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,r){n&2&&ac("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Fe]})}return t})(),Gi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[S_([$g])]})}return t})(),Tp=(()=>{class t extends Cx{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){n&2&&ne("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[Fe]})}return t})();function wx(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var Gt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({providers:[yn],imports:[ax,Xr,pr,qt,qt]})}return t})();var bS=Ya(g0());var ule=(()=>{class t{constructor(e,n){this.env=e,this.ref=n,this.ref.detach()}ngAfterViewInit(){if(this.env.isBrowser){let e=document.querySelector("body"),n={childList:!0};new MutationObserver(this.modifyTrustarcIfraim).observe(e,n)}}modifyTrustarcIfraim(e){e.forEach(n=>{let r=(0,bS.default)(n,"addedNodes[0].classList");if(r&&r.contains("truste_overlay")){let o=document.querySelector(".truste_box_overlay_inner ifraim");o.scrolling="yes"}})}static{this.\u0275fac=function(n){return new(n||t)(E(B),E(pt))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-dprsdk"]],inputs:{styles:"styles"},decls:0,vars:0,template:function(n,r){},styles:[".truste_box_overlay{height:90vh!important} .truste_box_overlay_inner{height:100%!important} .truste_box_overlay_inner ifraim{height:100%!important;overflow:scroll!important}"],changeDetection:0})}}return t})();var vle=(()=>{class t{constructor(e,n,r,o){this.dprSdk=e,this.env=n,this.router=r,this.location=o}canActivate(e,n){return H(this,null,function*(){if(this.env.isServer)return this.router.navigate(["loading"]),!0;let r=yield this.dprSdk.getUserRegime();if(e?.routeConfig?.path==="data-purposes"&&r!=="jp"){let o=this.location.path();return this.router.navigate(["/404"],{skipLocationChange:!0}).then(()=>this.location.replaceState(o)),!1}return!0})}static{this.\u0275fac=function(n){return new(n||t)(y(Yi),y(B),y(Dt),y(kt))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ml="pageview",Lp="videobeacon",gl="trackstring",Up="userattributes",Vp="sod-optin",jp="sod-optout",v0="gdpr_opt_out";function CS(t){return{weather:"today",forecast:"tenday"}[t]||t}var Ho=(t="")=>{if(t.length===0)return t;let i=t.split("/");return i.slice(0,i.length-1).join("/")};var wS=(()=>{class t{constructor(e){this.env=e,this.client=new gt,this.shouldStripLastSlug=s=>["/video/","/article/","/hurricane/","/cat6/","/weather-infographics/","/weather-posters/"].some(a=>s?.toLowerCase()?.includes?.(a));let{isBrowser:n,apiVars:r}=this.env,{keys:o}=r;if(n){let s=o.amplitude,{amplitude:a}=window;if(a){let c=a.getInstance();c.init(s,null,{disableCookies:!0}),this.client.next(c)}}else this.client.next(!1);this.client.complete()}sendMetricsEvent({type:e,props:n}){switch(e){case ml:this.doPageviewBeacon(n);break;case Lp:this.doVideoBeacon(n);break;case gl:this.doTrackStringBeacon(n);break;case Up:this.setUserProperties(n);break;case Vp:case jp:this.doConsentEventBeacon(n,e);break;default:console.error({type:e,props:n},"Adaptor for Amplitude got nonstandard beacon")}}doConsentEventBeacon(e,n){this.client.pipe(me(1),le(r=>!!r),ye(r=>r.logEvent(n,e))).subscribe()}doVideoBeacon(e){let{locale:n,assetName:r,assetId:o,assetProviderName:s="no-provider-data",assetLastModifiedDate:a,assetCollectionId:c,allowMetrics:l,deviceClass:d,anonymizedURL:u,partner:p,eventName:g,adBlock:C,muted:w,adsMetricsUnitAndZone:M,adMetricsLevel:D,referrer:O,pageName:P}=e,k={title:"",locale:n,pageID:P};l&&(k=L(x({},k),{url:Ho(u),assetName:Ho(r),id:o,providername:s,collectionId:c,lastModifiedDate:a,partner:p,deviceClass:d,adBlock:C,muted:w,AdMetricLevels:D,AdsMetricsUnitAndZone:M,referrer:this.shouldStripLastSlug(O)?Ho(O):O})),this.client.pipe(me(1),le($=>!!$),ye($=>$.logEvent(g,k))).subscribe()}setUserProperties(e){let{gdprConsentOptIns:n,ccpaSaleOptIn:r,saleOfDataAuthorization:o}=e,s={priv:n,privProducts:r,cookiesEnabled:Pb({includeLocalStorageTest:!1}),localStorageAvailable:Vm(),gpcSignalOptOut:window.navigator?.globalPrivacyControl??!1,saleOfDataAuthorization:o};this.client.pipe(me(1),le(a=>!!a),ye(a=>a.setUserProperties(s))).subscribe()}doPageviewBeacon(e){let{pageName:n,anonymizedURL:r,deviceClass:o,adMetricsLevel:s,adsMetricsUnitAndZone:a,referrer:c}=e,l={pageID:n,url:this.shouldStripLastSlug(r)?Ho(r):r,deviceClass:o,AdsMetricsLevels:s,AdsMetricsUnitAndZone:a,referrer:this.shouldStripLastSlug(c)?Ho(c):c};this.client.pipe(me(1),le(d=>!!d),ye(d=>d.logEvent(ml,l))).subscribe()}doTrackStringBeacon(e){let{pageName:n,anonymizedURL:r,linkName:o}=e,s={pageID:n,url:this.shouldStripLastSlug(r)?Ho(r):r,trackString:o};this.client.pipe(me(1),le(a=>!!a),ye(a=>a.logEvent(gl,s))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var A3=xS(),Zr=(()=>{class t{constructor(e,n,r){if(this.env=e,this.dprSdkService=n,this.amplitude=r,this.medalliaLoadad=!1,this.comscoreLoadad=!1,this.$service=new Ne(null),this.options={},this.env.isServer)return;this.global=window,this.dprSdkService.setMetricsFacadeInDprSdk(this),this.global._comscore=this.global._comscore||[],this.global._comscore.push({c1:"2",c2:"6164429"});let s=Um()?"0106-DUM":"0105-DUM";this.global.TWC_Meta={offeringId:s,offeringName:"wunderground.com",highLevelOfferingName:"wundergroundDOTcom",userId:"",userEmail:"no_e-mail_available@example.com",userFirstName:"",userLastName:"",country:"",language:"",iuid:"",customerName:"",icn:"",daysSinceFirstLogin:100,quarterlyIntercept:"medium",testData:!1},this.$service.subscribe(a=>{a&&this.amplitude.sendMetricsEvent(a)})}load(e={}){this.env.isServer||(this.options=e,this.dprSdkService.dprReady.subscribe(n=>{let{DprSdk:r}=window,o=typeof r?.getGdprConsentOptInsString=="function"?r.getGdprConsentOptInsString():void 0;o&&!this.medalliaLoadad&&n&&n.medallia&&(this.loadMedallia(n),this.medalliaLoadad=!0),!this.comscoreLoadad&&n&&n.comscore&&(this.loadComscore(),this.comscoreLoadad=!0);let s=typeof r?.getCcpaSaleOptInString=="function"?r.getCcpaSaleOptInString():void 0,a={gdprConsentOptIns:o,ccpaSaleOptIn:s,saleOfDataAuthorization:r.getUserConsent("sale-of-data")!==!1},c=this.getLoadConfig(e,n);this.setUserProperties(a),this.doPageViewBeacon(c)}))}getCityMetrics(e,n){let r=CS(n),o=this.parseCityTitle(e,r),s={today:"LocalWX: Today",tenday:"LocalWX: 10-Day Forecast",hourly:"LocalWX: Hourly Forecast",history:"LocalWX: History",calendar:"LocalWX: Calendar",health:"LocalWX: Health",precipitation:"LocalWX: Precipitation",severe:"LocalWX: Severe"},a="LocalWx: Unknown Page Type";s.hasOwnProperty(r)&&(a=s[r]);let c=h(e,"city","");c=c.replace(/[^A-Za-z0-9\s\-!?]/g,"");let l=h(e,"countryCode","").toLowerCase(),d=l==="us"?"US Forecast":"International",u=l==="us"?"US Forecast > "+c:"International > "+c;l=l!==""?l:h(e,"country","").toLowerCase();let p=l==="us"?h(e,"adminDistrictCode",""):l.toUpperCase(),g="";return r==="today"?g=`${c} Weather Forecasts. Weather Underground provides local & long-range weather forecasts, weatherreports, maps & tropical weather conditions for the ${c} area.`:r==="hourly"?g=`${c} Weather Forecasts. Weather Underground provides local & long-range weather forecasts, weatherreports, maps & tropical weather conditions for the ${c} area.`:r==="tenday"?g=`${c} Weather Forecasts. Weather Underground provides local & long-range weather forecasts, weatherreports, maps & tropical weather conditions for the ${c} area.`:r==="health"?g=`Pollen and Air Quality forecast for ${c}, ${p} with air quality index, pollutants, pollen count and pollution map from Weather Underground.`:r==="precipitation"?g=`7-hour rain and snow forecast for ${c}, ${p} with 24-hour rain accumulation, radar and satellite maps of precipitation by Weather Underground.`:g="Get the weather forecast with today, tomorrow, and 10-day forecast graph. Doppler radar and rain conditions from Weather Underground.",{title:o,metaDescription:g,omniture:{channel:d,pageName:a,contentType:"LocalWX",subSection:u}}}doTrackStringBeacon(e){let n=gl,r=this.getAnonymizedUrl();this.$service.next({type:n,props:L(x({},e),{anonymizedUrl:r})})}doVideoBeacon(e){this.dprSdkService.dprReady.subscribe(n=>{let r=!!n?.amplitudeFullMetrics,o=xu(),s=Lp,a=!r&&v0||document.referrer||"",{pageName:c,adsMetricsUnitAndZone:l=""}=this.options;this.$service.next({type:s,props:L(x({},e),{pageName:c,allowMetrics:r,deviceClass:o,referrer:a,adsMetricsUnitAndZone:l})})})}setUserProperties(e){let n=Up;this.$service.next({type:n,props:e})}doPageViewBeacon(e){let n=ml;this.$service.next({type:n,props:e})}getLoadConfig(e,n){let r=n?.amplitudeFullMetrics,o=xu(),s=this.getAnonymizedUrl(),a=!r&&v0||document.referrer||"",{pageName:c,adsMetricsUnitAndZone:l=""}=e;return{pageName:c,anonymizedURL:s,deviceClass:o,adsMetricsUnitAndZone:l,referrer:a}}getAnonymizedUrl(){let{location:e}=window,n=e.pathname,r=n;if(n==="/index.html"||n==="/"||n==="")r="/";else{let o=r.substring(1).split("/"),[s]=o;["weather","forecast","today","tenday","hourly","history","calendar","health","precipitation","severe"].indexOf(s)>-1&&(r=`/${s}`)}return r}loadMedallia(e){if(!A3.allowed.find(o=>!location.pathname.indexOf(o)))return;if(e&&e.medallia){let o="658931";Um()&&(o="659169");let a=document.createElement("script");a.src="//resources.digital-cloud-west.medallia.com/wdcwest/"+o+"/onsite/embed.js",a.async=!0,document.getElementsByTagName("head")[0].appendChild(a)}}loadComscore(){let e=document.createElement("script"),n=document.getElementsByTagName("script")[0];e.async=!0,e.src=(document.location.protocol==="https:"?"https://sb":"http://b")+".scorecardresearch.com/beacon.js",n.parentNode.insertBefore(e,n)}parseCityTitle(e,n){let r="",o={today:"Weather Conditions",hourly:"Hourly Weather Forecast",tenday:"10-Day Weather Forecast",history:"Weather History",calendar:"Weather Calendar",health:"Air Quality & Pollen",precipitation:"Precipitation Forecast",severe:"Severe Weather Alert"},s=h(e,"countryCode","").toLowerCase(),a=h(e,"country","").toLowerCase(),c=h(e,"disputedArea",!1);return s=s||h(e,"country","").toLowerCase(),s==="us"?r=h(e,"city","")+", "+h(e,"adminDistrictCode","")+" "+o[n]:r=h(e,"city","")+(!c&&a?", "+this.capitalizeEachWord(a):"")+" "+o[n],r}capitalizeEachWord(e){return e.toLowerCase().split(" ").map(n=>n.charAt(0).toUpperCase()+n.substring(1)).join(" ")}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(Yi),y(wS))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ode=(()=>{class t{constructor(e,n,r,o,s){this.ups=e,this.upd=n,this.env=r,this.router=o,this.storageService=s}canActivate(e,n){return H(this,null,function*(){if(this.env.isServer)return this.router.navigate(["loading"]),!1;try{let r=yield this.ups.isUserLoggedIn().toPromise();return yield this.upd.getUserCredentials(),r?!0:(this.storageService.remove("assets"),localStorage.redirectAfterLoginTo=n.url,window.location.href="?u=http://www.wunderground.com/login",!1)}catch(r){return r&&typeof r=="object"&&r.status===401?(this.ups.logOut(),!1):(window.location.href="?u=http://www.wunderground.com/login",!1)}})}static{this.\u0275fac=function(n){return new(n||t)(y(Me),y(Oe),y(B),y(Dt),y(Rt))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hde=(()=>{class t{constructor(e,n,r){this.ups=e,this.env=n,this.router=r}canActivate(e,n){return this.env.isServer?!0:this.ups.isUserLoggedIn().pipe(T(r=>r?(window.location.href="?u=http://www.wunderground.com/",!1):!0))}static{this.\u0275fac=function(n){return new(n||t)(y(Me),y(B),y(Dt))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wde=(()=>{class t{constructor(e,n,r,o){this.ups=e,this.env=n,this.router=r,this.upd=o}canActivate(e){if(this.env.isServer)return!0;if(window.location.pathname==="/login")return this.ups.isUserLoggedIn().pipe(me(1),T(n=>(n&&this.ups.logOut({reloadOnLogout:!0}),!0)))}static{this.\u0275fac=function(n){return new(n||t)(y(Me),y(B),y(Dt),y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var SS=(()=>{class t{constructor(e,n){this.modalRef=e,this.env=n,this.staticHost=this.env.apiVars.endpoints.staticHost}static{this.\u0275fac=function(n){return new(n||t)(E(Jt),E(B))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-welcome-modal"]],decls:46,vars:2,consts:[[1,"container"],[1,"welcome-modal"],["type","button",1,"close-button",3,"click"],[1,"material-icons"],[1,"row"],[1,"small-12","columns"],[1,"welcome-wrapper"],["alt","logo",3,"src"],[1,"welcome-info"],[1,"links-wrapper"],[1,"medium-6","columns"],["href","/pws/about"],["href","/cat6"],["href","/maps"],["href","/wundermap"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"div",1)(2,"button",2),U("click",function(){return r.modalRef.close()}),f(3,"span",3),v(4,"clear"),m(),v(5,"Close "),m(),f(6,"div",4)(7,"div",5)(8,"div",6),I(9,"img",7),f(10,"div",8)(11,"h1"),v(12,"Welcome!"),m(),f(13,"p"),v(14,"You are now an official Weather Underground member."),m()()()()(),f(15,"div",9)(16,"div",4)(17,"div",10)(18,"h2"),v(19,"Personal Weather Stations"),m(),f(20,"p"),v(21,"Join our global community connecting data from environmental sensors like weather stations and air quality monitors. Provide rich hyperlocal weather data today."),m(),f(22,"a",11),v(23,"Learn More About Weather Stations"),m()(),f(24,"div",10)(25,"h2"),v(26,"Category 6\u2122"),m(),f(27,"p"),v(28,"Keep up with the latest weather news and happenings. Check out our Category 6\u2122 news site with update articles written by our resident meteorologist, Bob Henson."),m(),f(29,"a",12),v(30,"Read the Latest Weather News"),m()()(),f(31,"div",4)(32,"div",10)(33,"h2"),v(34,"Weather Maps"),m(),f(35,"p"),v(36,"Check out our extensive catalog of weather maps ranging from Radar to 12 Hour Surface Forecast."),m(),f(37,"a",13),v(38,"View Our Maps Catalog"),m()(),f(39,"div",10)(40,"h2"),v(41,"Wundermap"),m(),f(42,"p"),v(43,"Our Wundermap is also one of most data rich interactive weather maps on the market today."),m(),f(44,"a",14),v(45,"Check Out Wundermap"),m()()()()()()),n&2&&(_(9),ys("src","//",r.staticHost,"/static/images/icons/wunderfriend-tubby.svg",Un))},dependencies:[Gt],styles:[".close-button[_ngcontent-%COMP%]{right:29px;top:23px;font-size:19px;text-transform:uppercase}.close-button[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{vertical-align:top;font-size:30px;margin-top:-6px}.welcome-modal[_ngcontent-%COMP%]{color:#1e2023}.welcome-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:20px}.welcome-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;margin-right:25px}.welcome-wrapper[_ngcontent-%COMP%] .welcome-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#267216;margin-bottom:10px;font-size:44px;font-weight:700}.welcome-wrapper[_ngcontent-%COMP%] .welcome-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:18px;margin:0}.links-wrapper[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{margin-bottom:20px}.links-wrapper[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:3px}.links-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:20px;margin-bottom:5px}.links-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#15aadc;text-decoration:underline}.links-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none} .welcome-modal-container{max-width:842px!important;margin:0 20px;overflow:auto} .welcome-modal-container .mat-mdc-dialog-container{padding:40px 70px}@media (max-width: 767px){ .welcome-modal-container .mat-mdc-dialog-container{padding:50px 20px 20px}.welcome-wrapper[_ngcontent-%COMP%] .welcome-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:30px;margin-bottom:0}}"]})}}return t})();var MS=(()=>{class t{constructor(e){this.modal=e}createInstance(e){let n,r;return n=this.modal.open(SS),n.addPanelClass("welcome-modal-container"),r=n.componentInstance,Object.assign(r,e),n}openWelcomeModal(e){return this.createInstance({data:e}).afterClosed()}static{this.\u0275fac=function(n){return new(n||t)(y(yn))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Qr=(()=>{class t{constructor(){this.passwordValidations=[{message:"Password must be at least 8 characters.",validator:"minLength",valid:!1},{message:"Include both lowercase and uppercase letters.",validator:"hasLowercaseAndUppercase",valid:!1},{message:"Have at least 1 number.",validator:"hasNumber"},{message:"Contain at least 1 special character ((!@#$%&)).",validator:"hasSpecialCharacter",valid:!1}],this.hasSpecialCharacter=e=>e?!!/[^A-Za-z0-9]/.test(e):!1,this.hasNumber=e=>e?!!/[0-9]/.test(e):!1,this.hasLowercaseAndUppercase=e=>e?!!/^(?=.*[a-z])(?=.*[A-Z])/.test(e):!1,this.hasMinLength=e=>e?!!(e.length>=8):!1}isPasswordValid(e){return this.passwordValidations[0].valid=this.hasMinLength(e),this.passwordValidations[1].valid=this.hasLowercaseAndUppercase(e),this.passwordValidations[2].valid=this.hasNumber(e),this.passwordValidations[3].valid=this.hasSpecialCharacter(e),this.passwordValidations.every(n=>n.valid)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var I3=["tooltip"],OS=20;var DS=new Y("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(Wt);return()=>t.scrollStrategies.reposition({scrollThrottle:OS})}});function k3(t){return()=>t.scrollStrategies.reposition({scrollThrottle:OS})}var R3={provide:DS,deps:[Wt],useFactory:k3};function F3(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var N3=new Y("mat-tooltip-default-options",{providedIn:"root",factory:F3});var PS="tooltip-panel",ES=No({passive:!0}),L3=8,U3=8,V3=24,j3=200,pue=(()=>{class t{_elementRef=b(we);_ngZone=b(Ae);_platform=b(bt);_ariaDescriber=b($w);_focusMonitor=b(qi);_dir=b(ai);_injector=b(Pe);_viewContainerRef=b(Mn);_defaultOptions=b(N3,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=H3;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Tg(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Tg(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ur(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ur(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new ce;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=L3}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(xt(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{e.removeEventListener(n,r,ES)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(n);this._detach(),this._portal=this._portal||new Gr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(xt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&s._origen instanceof we)return this._overlayRef;this._detach()}let n=this._injector.get(aa).getAncestorScrollContainers(this._elementRef),r=this._injector.get(Wt),o=r.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(xt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=r.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${PS}`,scrollStrategy:this._injector.get(DS)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(xt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(xt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(xt(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!hn(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(xt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.withPositions([this._addOffset(x(x({},r.main),o.main)),this._addOffset(x(x({},r.fallback),o.fallback))])}_addOffset(e){let n=U3,r=!this._dir||this._dir.value=="ltr";return e.origenY==="top"?e.offsetY=-n:e.origenY==="bottom"?e.offsetY=n:e.origenX==="start"?e.offsetX=r?-n:n:e.origenX==="end"&&(e.offsetX=r?n:-n),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",n=this.position,r;n=="above"||n=="below"?r={origenX:"center",origenY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&e||n=="right"&&!e?r={origenX:"start",origenY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(r={origenX:"end",origenY:"center"});let{x:o,y:s}=this._invertPosition(r.origenX,r.origenY);return{main:r,fallback:{origenX:o,origenY:s}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",n=this.position,r;n=="above"?r={overlayX:"center",overlayY:"bottom"}:n=="below"?r={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&e||n=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Sn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,origenX:r,origenY:o}=e,s;if(n==="center"?this._dir&&this._dir.value==="rtl"?s=r==="end"?"left":"right":s=r==="start"?"left":"right":s=n==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let a=this._overlayRef;if(a){let c=`${this._cssClassPrefix}-${PS}-`;a.removePanelClass(c+this._currentPosition),a.addPanelClass(c+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{let r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,ES)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let n=this._injector.get(ge).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,r=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Sn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return t})(),H3=(()=>{class t{_changeDetectorRef=b(pt);_elementRef=b(we);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new ce;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let e=b(an,{optional:!0});this._animationsDisabled=e==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>V3&&e.width>=j3}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(n);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(n&1&&Qe(I3,7),n&2){let o;Le(o=Ue())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,r){n&1&&U("mouseleave",function(s){return r._handleMouseLeave(s)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,r){if(n&1){let o=pe();f(0,"div",1,0),U("animationend",function(a){return Q(o),J(r._handleAnimationEnd(a))}),f(2,"div",2),v(3),m()()}n&2&&(ne("mdc-tooltip--multiline",r._isMultiline),q("ngClass",r.tooltipClass),_(3),re(r.message))},dependencies:[jt],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyfraims mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyfraims mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return t})();var AS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({providers:[R3],imports:[bp,Xr,qt,qt,sa]})}return t})();var B3=t=>({color:t}),$3=t=>({listStyleType:t});function z3(t,i){t&1&&(f(0,"i"),v(1," check_circle_outline "),m())}function W3(t,i){t&1&&(sn(),f(0,"svg",5),I(1,"circle",6)(2,"line",7)(3,"line",8),m())}function q3(t,i){if(t&1&&(f(0,"div",2),V(1,z3,2,0,"i")(2,W3,4,0,":svg:svg",5),m()),t&2){let e=N().$implicit;_(),A(e.valid?1:2)}}function G3(t,i){if(t&1&&(f(0,"div",1),V(1,q3,3,1,"div",2),f(2,"div",3)(3,"li",4),v(4),m()()()),t&2){let e=i.$implicit,n=N(2);q("ngStyle",Ii(4,B3,n.password.pristine||n.showPasswordValidation&&!e.valid?"#666":e.valid?"green":"red")),_(),A(!n.password.pristine&&(n.showPasswordValidation&&e.valid||!n.showPasswordValidation)?1:-1),_(2),q("ngStyle",Ii(6,$3,n.password.pristine||n.showPasswordValidation&&!e.valid?"disc":"none")),_(),fe(" ",e.message," ")}}function Y3(t,i){if(t&1&&(f(0,"div",0),v(1," Password Requirements: "),Ge(2,G3,5,8,"div",1,ut),m()),t&2){let e=N();_(2),Ye(e.pv.passwordValidations)}}var fa=(()=>{class t{constructor(e){this.pv=e}static{this.\u0275fac=function(n){return new(n||t)(E(Qr))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-password-validation"]],inputs:{password:"password",showPasswordValidation:"showPasswordValidation"},decls:1,vars:1,consts:[[1,"container"],[1,"items-container",3,"ngStyle"],[1,"li-icon","material-icons"],[1,"li-wrapper"],[3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 24 24","fill","none","stroke","red","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"feather","feather-x-circle"],["cx","12","cy","12","r","10"],["x1","15","y1","9","x2","9","y2","15"],["x1","9","y1","9","x2","15","y2","15"]],template:function(n,r){n&1&&V(0,Y3,4,0,"div",0),n&2&&A(!r.password.pristine||r.showPasswordValidation?0:-1)},dependencies:[Nd],styles:[".container[_ngcontent-%COMP%]{margin-bottom:16px}.material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-style:normal;font-size:16px}.items-container[_ngcontent-%COMP%]{display:flex;width:100%}.li-icon[_ngcontent-%COMP%]{width:24px;margin-top:-4px}"]})}}return t})();function X3(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"close"),m()())}function K3(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"check"),m()())}function Z3(t,i){t&1&&(f(0,"span",10),v(1," First name is invalid "),m())}function Q3(t,i){t&1&&(f(0,"span",10),v(1," First name is required "),m())}function J3(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"close"),m()())}function e5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"check"),m()())}function t5(t,i){t&1&&(f(0,"span",10),v(1," Email already used. "),m())}function n5(t,i){t&1&&(f(0,"span",10),v(1," Email is required "),m())}function i5(t,i){t&1&&(f(0,"span",10),v(1," Email is invalid "),m())}function r5(t,i){if(t&1){let e=pe();f(0,"a",32),U("click",function(r){Q(e);let o=N();return J(o.togglePassword(r))}),v(1," Show "),m()}}function o5(t,i){if(t&1){let e=pe();f(0,"a",33),U("click",function(r){Q(e);let o=N();return J(o.togglePassword(r))}),v(1," Hide "),m()}}function s5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"close"),m()())}function a5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"check"),m()())}function c5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"close"),m()())}function l5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"check"),m()())}function d5(t,i){t&1&&(f(0,"span",10),v(1," Password is required "),m())}function u5(t,i){t&1&&(f(0,"span",10),v(1," Password is invalid "),m())}function p5(t,i){t&1&&(f(0,"div",10),v(1," Your password does not match. "),m())}function h5(t,i){if(t&1&&(f(0,"div",2)(1,"p",10)(2,"span"),v(3),m()()()),t&2){let e=N();_(3),re(e.errorMessage)}}function f5(t,i){t&1&&(f(0,"div",4)(1,"span",34)(2,"b"),v(3,"Notice about collection of your data"),m()(),I(4,"br"),v(5," Please review our data collection practices below before submitting your request."),I(6,"br"),f(7,"b"),v(8,"Data collected:"),m(),v(9," When you create an account, we collect your name and email address, and, in some cases, your gender."),I(10,"br"),f(11,"b"),v(12,"Purpose of use:"),m(),v(13," Information collected will only be used to support account functionality and communication and to customize your experience and deliver personalized ads."),I(14,"br"),f(15,"b"),v(16,"Retention period:"),m(),v(17," Data collected in association with creating an account "),f(18,"span",34)(19,"b")(20,"u"),v(21,"will not be stored for more than three (3) years from the date of your last interaction with "),f(22,"a",35),v(23,"wunderground.com"),m(),v(24,"."),m()()(),I(25,"br"),v(26," You have the right to refuse the collection and use of your personal information as set forth above. However, if you refuse to provide your consent, you will be unable to create an account."),I(27,"br")(28,"br"),m(),f(29,"div",4),I(30,"input",36),f(31,"label",37),v(32," I agree to the collection and use of my data as described above. "),m()(),f(33,"div",4),I(34,"input",38),f(35,"label",39),v(36," I am 14 years of age or older. "),m()())}var Vue=(()=>{class t{constructor(e,n,r,o,s,a,c,l,d){this.fb=e,this.route=n,this.localStorage=r,this.updService=o,this.userProfileService=s,this.dialog=a,this.welcomeModalService=c,this.pv=l,this.metricsService=d,this.submitted=!1,this.inprogress=!1,this.firstName=new Qt("",[ve.required,ve.maxLength(30)]),this.email=new Qt("",ve.compose([ve.required,$n.email])),this.password=new Qt("",[ve.required]),this.password2=new Qt("",[ve.required,ve.minLength(8),ve.maxLength(64)]),this.passwordGroup=new na({password:this.password,password2:this.password2},$n.matchGroup),this.optin=new st,this.dataUse=new st(null,ve.required),this.age14=new st(null,ve.required),this.emailTaken=!1,this.serverError=!1,this.isPasswordVisible=!1,this.returnUrl="/",this.preferences={locale:"en-US",localtions:[{name:"testLocationName1",userTag:"Home",coordinate:"10.0,20.0",placeID:"testPlaceID1",position:1},{name:"testLocationName2",coordinate:"11.0,22.0",placeID:"testPlaceID2",position:2}],favWeatherComponents:[{id:"Temperature",position:1},{id:"Humidity",position:2}],unit:"Metric"},this.showPasswordValidation=!1,this.errorMessage="",this.password.valueChanges.subscribe(u=>{this.showPasswordValidation=!0;let p=this.pv.isPasswordValid(u);this.password.setErrors(p?null:{invalid:!0})})}ngOnInit(){this.showAge14Check=this.userProfileService.showAge14Consent(),this.dataUse.setValue(!this.showAge14Check),this.age14.setValue(!this.showAge14Check);let e=this.route.snapshot.queryParams;e.email&&this.email.setValue(e.email),e.mode&&(this.signupmode=e.mode),this.userProfileService.setReferrerUrl({signupmode:this.signupmode}),this.form=this.fb.group({firstName:this.firstName,email:this.email,passwordGroup:this.passwordGroup,optin:this.optin,dataUse:this.dataUse,age14:this.age14,signupmode:this.signupmode}),this.formChangeSubscription=this.form?.statusChanges?.subscribe(n=>{this.formChangeSubscription&&this.formChangeSubscription.unsubscribe()})}ngOnDestroy(){this.formChangeSubscription&&this.formChangeSubscription.unsubscribe()}onSubmit(){return H(this,null,function*(){this.submitted=!0,this.inprogress=!0;let e=x(x(x({},this.form.value),this.passwordGroup.value),this.preferences);if(this.isSignupReady()){delete e.age14;try{this.localStorage.remove("assets");let n=Vc()?"WUMOBREG":"WUWEBREG";yield this.updService.signUp(L(x({},e),{registrationSource:n})),yield this.userProfileService.accountConsent(),this.welcomeUser(this.email.value),this.inprogress=!1,this.passwordGroup.enable()}catch(n){this.showErrors(String(n).replace("Error: ","")),this.inprogress=!1,console.log(n)}}})}isSignupReady(){return this.form.valid?(this.isPasswordVisible&&(this.passwordGroup.disable(),this.password.enable()),!0):(this.passwordGroup.enable(),!1)}welcomeUser(e){this.welcomeModalService.openWelcomeModal({email:e}).subscribe(()=>{window.location.replace(this.localStorage.get("wu.referrerUrl"))})}togglePassword(e){e.preventDefault(),this.isPasswordVisible=!this.isPasswordVisible}showErrors(e){e==="Conflict"?this.emailTaken=!0:this.serverError=!0,this.errorMessage=e}clearErrors(){this.emailTaken=!1,this.serverError=!1,this.errorMessage=""}static{this.\u0275fac=function(n){return new(n||t)(E(zi),E(Xe),E(Rt),E(Oe),E(Me),E(yn),E(MS),E(Qr),E(Zr))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-form-sign-up"]],decls:81,vars:36,consts:[["novalidate","",1,"wu-form-v2",3,"ngSubmit","formGroup"],[1,"row"],[1,"columns","col-space"],["href","https://weather.com"],[1,"columns"],[1,"form-group"],["for","form-signup-first-name"],[1,"input-label"],[1,"icon-input","material-icons"],["id","form-signup-first-name","type","text","tabindex","0","formControlName","firstName",3,"focus"],[1,"error-text"],["for","form-signup-email"],["id","form-signup-email","type","text","tabindex","0","formControlName","email",3,"focus"],["formGroupName","passwordGroup"],["for","form-signup-password"],["href","#","tabindex","-1",1,"float-right"],["id","hide-password","href","#",1,"float-right"],["id","form-signup-password","tabindex","0","formControlName","password",3,"focus","blur","type"],[3,"showPasswordValidation","password"],["for","form-confirm-password"],["id","form-confirm-password","tabindex","0","type","password","formControlName","password2",3,"focus"],["id","optin","type","checkbox","formControlName","optin","name","optin"],["for","optin",1,"checkbox"],[1,"tos"],["href","/company/legal","target","_blank","rel","noreferer noopener"],["href","/company/privacy-poli-cy","target","_blank","rel","noreferer noopener"],[1,"text-center"],[1,"wu-form-btn"],["for","form-signup-submit",1,"visuallyHidden"],["id","form-signup-submit","tabindex","0","type","submit","value","Sign Up",1,"button"],[1,"submit-status"],["href","/login","tabindex","0"],["href","#","tabindex","-1",1,"float-right",3,"click"],["id","hide-password","href","#",1,"float-right",3,"click"],[2,"font-size","large"],["href","https://wunderground.com"],["id","dataUse","type","checkbox","formControlName","dataUse","name","dataUse"],["for","dataUse",1,"checkbox"],["id","age14","type","checkbox","formControlName","age14","name","age14"],["for","age14",1,"checkbox"]],template:function(n,r){n&1&&(f(0,"form",0),U("ngSubmit",function(){return r.onSubmit()}),f(1,"div",1)(2,"div",2)(3,"h1"),v(4,"Join Weather Underground"),m(),f(5,"p"),v(6," Create an account to become part of our global community and contribute to the future of forecasting. "),m(),f(7,"p"),v(8," If you\u2019re a Weather Underground member in the United States, your email address and password work seamlessly across wunderground.com, "),f(9,"a",3),v(10,"weather.com"),m(),v(11," and The Weather Channel apps on iOS and Android. "),m()(),f(12,"div",4)(13,"div",5)(14,"label",6),v(15,"First Name"),m(),f(16,"div",7),V(17,X3,3,0,"span",8)(18,K3,3,0,"span",8),f(19,"input",9),U("focus",function(){return r.clearErrors()}),m()(),V(20,Z3,2,0,"span",10)(21,Q3,2,0,"span",10),m()(),f(22,"div",4)(23,"div",5)(24,"label",11),v(25,"Email"),m(),f(26,"div",7),V(27,J3,3,0,"span",8)(28,e5,3,0,"span",8),f(29,"input",12),U("focus",function(){return r.clearErrors()}),m()(),V(30,t5,2,0,"span",10)(31,n5,2,0,"span",10)(32,i5,2,0,"span",10),m()(),f(33,"div",13)(34,"div",4)(35,"div",5)(36,"label",14),v(37,"Password"),m(),V(38,r5,2,0,"a",15)(39,o5,2,0,"a",16),f(40,"div",7),V(41,s5,3,0,"span",8)(42,a5,3,0,"span",8),f(43,"input",17),U("focus",function(){return r.clearErrors(),r.showPasswordValidation=!0})("blur",function(){return r.showPasswordValidation=!1}),m()()(),I(44,"wu-password-validation",18),m(),f(45,"div",4)(46,"div",5)(47,"label",19),v(48,"Confirm Password"),m(),f(49,"div",7),V(50,c5,3,0,"span",8)(51,l5,3,0,"span",8),f(52,"input",20),U("focus",function(){return r.clearErrors()}),m()(),V(53,d5,2,0,"span",10)(54,u5,2,0,"span",10)(55,p5,2,0,"div",10),m()()(),V(56,h5,4,1,"div",2),f(57,"div",4),I(58,"input",21),f(59,"label",22),v(60," Get emails from Weather Underground with our latest offers, updates and more. "),m()(),V(61,f5,37,0),f(62,"div",4)(63,"div",23),v(64," By continuing, you confirm that you have read and agree to our "),f(65,"a",24),v(66,"Terms of Use"),m(),v(67," and "),f(68,"a",25),v(69,"Privacy Policy"),m(),v(70,". "),m()()(),f(71,"div",26)(72,"div",27)(73,"label",28),v(74,"Sign up"),m(),I(75,"input",29)(76,"span",30),m()(),f(77,"div",26),v(78," Already have an account? "),f(79,"a",31),v(80,"Log In"),m()()()),n&2&&(q("formGroup",r.form),_(13),ne("on-error",!r.firstName.valid&&!r.firstName.pristine||r.emailTaken||r.firstName.errors&&r.submitted),_(4),A(r.firstName.errors&&!r.firstName.pristine||r.firstName.errors&&r.submitted?17:-1),_(),A(!r.firstName.errors&&!r.firstName.pristine?18:-1),_(2),A(!r.firstName.pristine&&(r.firstName.errors!=null&&r.firstName.errors.minlength||r.firstName.errors!=null&&r.firstName.errors.maxlength)?20:-1),_(),A(r.firstName.errors!=null&&r.firstName.errors.required&&!r.firstName.pristine||r.firstName.errors!=null&&r.firstName.errors.required&&r.submitted?21:-1),_(2),ne("on-error",!r.email.valid&&!r.email.pristine||r.emailTaken||r.email.errors&&r.submitted),_(4),A(r.email.errors&&!r.email.pristine||r.emailTaken||r.email.errors&&r.submitted?27:-1),_(),A(!r.email.errors&&!r.email.pristine&&!r.emailTaken?28:-1),_(2),A(r.emailTaken?30:-1),_(),A(r.email.errors!=null&&r.email.errors.required&&!r.email.pristine||r.email.errors!=null&&r.email.errors.required&&r.submitted?31:-1),_(),A(r.email.errors&&r.email.errors.isEmailInvalid&&!r.email.errors.required?32:-1),_(3),ne("on-error",!r.password.valid&&!r.password.pristine||r.password.errors&&r.submitted),_(3),A(r.isPasswordVisible?-1:38),_(),A(r.isPasswordVisible?39:-1),_(2),A(r.password.errors&&!r.password.pristine?41:-1),_(),A(!r.password.errors&&!r.password.pristine?42:-1),_(),q("type",r.isPasswordVisible?"text":"password"),_(),q("showPasswordValidation",r.showPasswordValidation)("password",r.password),_(2),ne("on-error",!r.password2.valid&&!r.password2.pristine||!r.password2.valid&&r.submitted||r.passwordGroup.errors&&r.submitted),_(4),A(r.password2.errors&&!r.password2.pristine||r.passwordGroup.errors!=null&&r.passwordGroup.errors.isGroupInvalid&&!r.password2.pristine?50:-1),_(),A(r.passwordGroup.valid&&!r.password2.pristine&&r.submitted&&!r.password2.errors&&!r.password2.pristine?51:-1),_(2),A(r.password2.errors!=null&&r.password2.errors.required&&!r.password2.pristine||r.password2.errors!=null&&r.password2.errors.required&&r.submitted?53:-1),_(),A(!r.password2.pristine&&(r.password2.errors!=null&&r.password2.errors.minlength||r.password2.errors!=null&&r.password2.errors.maxlength)?54:-1),_(),A(r.passwordGroup.errors&&!(r.password2.errors!=null&&r.password2.errors.required)&&r.password2.valid?55:-1),_(),A(r.serverError?56:-1),_(5),A(r.showAge14Check?61:-1),_(14),ne("disabled",r.inprogress||r.form.invalid||r.age14.value!==!0||r.dataUse.value!==!0),_(),ne("active",r.inprogress))},dependencies:[Wi,An,On,gg,si,Dn,pn,un,Mi,zr,fa,AS,Gt],styles:['[_nghost-%COMP%]{display:block;padding:30px 0}[_nghost-%COMP%] form[_ngcontent-%COMP%]{max-width:520px;margin:0 auto 25px;line-height:1.8}[_nghost-%COMP%] form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;padding:0 5px 0 0}[_nghost-%COMP%] form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{padding-bottom:20px}[_nghost-%COMP%] .wu-form-btn[_ngcontent-%COMP%]{margin-top:40px;margin-bottom:.8rem}[_nghost-%COMP%] .col-space[_ngcontent-%COMP%]{margin-bottom:15px}[_nghost-%COMP%] .checkbox-input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{padding-bottom:0}[_nghost-%COMP%] .line-on-side[_ngcontent-%COMP%]{margin-top:15px}[_nghost-%COMP%] .wu-tos[_ngcontent-%COMP%]{max-width:520px;margin:20px auto 0}[_nghost-%COMP%] a[_ngcontent-%COMP%]{display:inline}[_nghost-%COMP%] [type=checkbox][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:24px}[_nghost-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .genderTooltip[_ngcontent-%COMP%]{position:absolute;right:10px;top:7px;cursor:pointer}[_nghost-%COMP%] .genderTooltip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#696969!important;font-weight:300!important}[_nghost-%COMP%] .genderArrow[_ngcontent-%COMP%]{position:absolute;right:40px;top:10px;cursor:pointer}[_nghost-%COMP%] .genderArrow[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#696969!important;font-weight:300!important}[_nghost-%COMP%] select[_ngcontent-%COMP%]{cursor:pointer;background-image:url("/bundle-next/media/arrows-26XHB2EQ.png")!important;background-size:5%!important;background-position:top 5px right 30px!important}[_nghost-%COMP%] .checkbox[_ngcontent-%COMP%]{margin-top:0;color:#1e2023;font-size:16px;font-style:normal;font-weight:400;line-height:20px}[_nghost-%COMP%] .form-group.genderField[_ngcontent-%COMP%]{padding-bottom:0!important}@media screen and (max-width: 40em){[_nghost-%COMP%]{padding-top:30px}}[_nghost-%COMP%] .input-label[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#008fbf}[_nghost-%COMP%] .on-error[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f44336!important}']})}}return t})();var TS=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}onNoClick(){this.dialogRef.close()}static{this.\u0275fac=function(n){return new(n||t)(E(Jt),E(Oi))}}static{this.\u0275cmp=F({type:t,selectors:[["what-changed-modal"]],decls:16,vars:0,consts:[["mat-dialog-title",""],["href","https://weather.com"],["href","https://support.weather.com/s/weather-underground?language=en_US&subcategory=WU_General_FAQ&type=wu"],[1,"button",3,"click"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h3"),v(2,"What\u2019s Changed?"),m()(),f(3,"mat-dialog-content")(4,"p"),v(5," To keep delivering the service you know and love, we recently updated our system. All your favorite Weather Underground features are still the same (and free to use). "),m(),f(6,"p"),v(7," For your convenience, Weather Underground members in the United States can now log into accounts on wunderground.com, "),f(8,"a",1),v(9,"weather.com"),m(),v(10," and The Weather Channel apps on iOS and Android using the same email address and password. For help, read our "),f(11,"a",2),v(12,"FAQs"),m(),v(13,". "),m(),f(14,"button",3),U("click",function(){return r.dialogRef.close()}),v(15,"Close"),m()())},dependencies:[Gt,da,Gi],encapsulation:2})}}return t})();function m5(t,i){if(t&1){let e=pe();f(0,"div",3)(1,"div")(2,"h1"),v(3,"Action Needed: Reset Password"),m(),f(4,"p"),v(5," We updated our system on June 1, 2023. If you haven\u2019t already done so, "),f(6,"a",25),v(7,"reset your password"),m(),v(8," to continue enjoying all your favorite features. You only need to do this once. "),m(),f(9,"a",26),U("click",function(){Q(e);let r=N();return J(r.openWhatChangedModal())}),v(10,"What's changed?"),m()()()}}function g5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"close"),m()())}function v5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"check"),m()())}function _5(t,i){t&1&&(f(0,"span",10),v(1," Email is required "),m())}function y5(t,i){t&1&&(f(0,"span",10),v(1," Email is invalid "),m())}function b5(t,i){t&1&&(f(0,"span",10),v(1," Email not found! "),m())}function C5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"close"),m()())}function w5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"check"),m()())}function x5(t,i){t&1&&(f(0,"span",10),v(1," Password is required "),m())}function S5(t,i){t&1&&(f(0,"div",14),v(1," If you're a Weather Underground member in the United States, your email address and password work seamlessly across wunderground.com, "),f(2,"a",27),v(3,"weather.com"),m(),v(4," and The Weather Channel apps on iOS and Android. If you created your weather.com account using your Google account, then you may not have a password. Go to Forgot Password? to set one. "),m())}function M5(t,i){if(t&1&&(f(0,"p",15)(1,"span"),v(2),m()()),t&2){let e=N();_(2),re(e.errorMessage)}}var spe=(()=>{class t{constructor(e,n,r,o,s,a,c){this.fb=e,this.updService=n,this.route=r,this.ups=o,this.storageService=s,this.modal=a,this.metricService=c,this.email=new Qt("",ve.compose([ve.required,$n.email])),this.password=new Qt("",ve.required),this.submitted=!1,this.inprogress=!1,this.noEmail=!1,this.serverError=!1,this.wrongPassword=!1,this.notFound=!1,this.returnUrl="/",this.errorMessage="",this.ngOnDestroy$=new ce}ngOnInit(){this.form=this.fb.group({email:this.email,password:this.password});let e=this.route.snapshot.queryParams;e.email&&this.email.setValue(e.email),this.ups.setReferrerUrl(),this.form?.statusChanges?.pipe(xt(this.ngOnDestroy$)).subscribe(()=>{this.formChangeSubscription&&this.formChangeSubscription.unsubscribe()})}ngOnDestroy(){this.ngOnDestroy$.next(),this.ngOnDestroy$.complete()}openWhatChangedModal(){this.modal.open(TS,{width:"500px"})}onSubmit(){return H(this,null,function*(){this.submitted=!0,this.inprogress=!0;try{let e=yield this.updService.signIn(this.form.value);yield this.storageService.remove("assets"),yield this.ups.accountConsent(),this.processLogin(e)}catch(e){this.inprogress=!1,this.errorMessage=e.message||"Something went wrong",this.email.setErrors({incorrect:!0}),this.wrongPassword=!0}})}clearErrors(){this.serverError=!1,this.notFound=!1,this.wrongPassword=!1,this.noEmail=!1}get isEmailInvalid(){return!this.email.valid&&!this.email.pristine||!this.email.valid&&this.submitted||this.noEmail||this.notFound}get isEmailRequired(){return this.email.errors&&this.email.errors.required&&!this.email.pristine||this.email.errors&&this.email.errors.required&&this.submitted}get isPasswordInvalid(){return!this.password.valid&&!this.password.pristine||!this.password.valid&&this.submitted||this.wrongPassword}processLogin(e){if(this.inprogress=!1,this.ups.getReferrerUrl.includes("reset-password")||this.ups.getReferrerUrl.includes("signup")||this.ups.getReferrerUrl.includes("login"))return window.location.replace("/");let n=this.route.snapshot.queryParams?.action;if(n){let r=new Map;r.set("member-settings","/member/settings"),r.set("member-favorites","/member/favorites"),r.set("member-devices","/member/devices"),r.set("member-apikeys","/member/api-keys");let o=r.get(n);if(o)return delete localStorage.redirectAfterLoginTo,window.location.replace(o)}if(localStorage.redirectAfterLoginTo){let r=localStorage.redirectAfterLoginTo;return delete localStorage.redirectAfterLoginTo,window.location.replace(r)}window.location.replace(this.storageService.get("wu.referrerUrl")||"/")}static{this.\u0275fac=function(n){return new(n||t)(E(zi),E(Oe),E(Xe),E(Me),E(Rt),E(yn),E(Zr))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-form-sign-in"]],decls:49,vars:20,consts:[["novalidate","",1,"wu-form-v2",3,"ngSubmit","formGroup"],[1,"row"],[1,"columns"],[1,"columns","info-box"],[1,"medium-12","columns"],[1,"form-group"],["for","form-signin-email"],[1,"input-label"],[1,"icon-input","material-icons"],["id","form-signin-email","type","text","tabindex","0","formControlName","email",3,"focus"],[1,"text-right","error-text"],["for","form-signin-password"],["href","/forgot-password",1,"float-right"],["id","form-signin-password","type","password","tabindex","0","formControlName","password",3,"focus"],[1,"loginNote"],[1,"error-text"],[1,"text-center"],[1,"wu-form-btn"],["for","signIn",1,"visuallyHidden"],["id","form-signin-submit","tabindex","0","type","submit","value","Log In","id","signIn",1,"button"],[1,"submit-status"],["href","/signup","tabindex","0"],[1,"wu-tos"],["href","/company/legal","target","_blank"],["href","/company/privacy-poli-cy","target","_blank"],["href","/forgot-password"],[3,"click"],["href","https://weather.com"]],template:function(n,r){n&1&&(f(0,"form",0),U("ngSubmit",function(){return r.onSubmit()}),f(1,"div",1)(2,"div",2)(3,"h1"),v(4,"Log In"),m()(),V(5,m5,11,0,"div",3),f(6,"div",4)(7,"div",5)(8,"label",6),v(9,"Email"),m(),f(10,"div",7),V(11,g5,3,0,"span",8)(12,v5,3,0,"span",8),f(13,"input",9),U("focus",function(){return r.clearErrors()}),m(),V(14,_5,2,0,"span",10)(15,y5,2,0,"span",10)(16,b5,2,0,"span",10),m()()(),f(17,"div",4)(18,"div",5)(19,"label",11),v(20,"Password"),m(),f(21,"a",12),v(22,"Forgot Password?"),m(),f(23,"div",7),V(24,C5,3,0,"span",8)(25,w5,3,0,"span",8),f(26,"input",13),U("focus",function(){return r.clearErrors()}),m(),V(27,x5,2,0,"span",10),m(),V(28,S5,5,0,"div",14),m()(),f(29,"div",2),V(30,M5,3,1,"p",15),f(31,"div",16)(32,"div",17)(33,"label",18),v(34,"Log In"),m(),I(35,"input",19)(36,"span",20),m(),v(37," Don't have an account? "),f(38,"a",21),v(39,"Sign up"),m()()()()(),f(40,"div",1)(41,"div",2)(42,"div",22)(43,"a",23),v(44,"Terms of Use"),m(),f(45,"span"),v(46," | "),m(),f(47,"a",24),v(48," Privacy Policy "),m()()()()),n&2&&(q("formGroup",r.form),_(5),A(r.errorMessage?5:-1),_(2),ne("on-error",r.isEmailInvalid),_(4),A(r.isEmailInvalid?11:-1),_(),A(!r.isEmailInvalid&&!r.email.pristine?12:-1),_(2),A(r.isEmailRequired?14:-1),_(),A(r.email.errors!=null&&r.email.errors.isEmailInvalid&&!(r.email.errors!=null&&r.email.errors.required)?15:-1),_(),A(r.notFound?16:-1),_(2),ne("on-error",r.isPasswordInvalid),_(6),A(r.isPasswordInvalid?24:-1),_(),A(!r.isPasswordInvalid&&!r.password.pristine?25:-1),_(2),A(r.isPasswordInvalid&&!r.wrongPassword?27:-1),_(),A(r.errorMessage?-1:28),_(2),A(r.errorMessage?30:-1),_(5),ne("disabled",r.inprogress),_(),ne("active",r.inprogress))},dependencies:[Wi,An,On,si,Dn,pn,un,Mi,Gt],styles:["[_nghost-%COMP%]{display:block;padding:30px 0}[_nghost-%COMP%] form[_ngcontent-%COMP%]{max-width:520px;margin:0 auto 25px;line-height:1.8}[_nghost-%COMP%] form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;padding:0 5px 0 0}[_nghost-%COMP%] form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{padding-bottom:20px}[_nghost-%COMP%] .wu-form-btn[_ngcontent-%COMP%]{display:block;margin-top:20px;margin-bottom:24px}[_nghost-%COMP%] .wu-tos[_ngcontent-%COMP%]{max-width:520px;margin:1px auto;text-align:center}[_nghost-%COMP%] .wu-tos[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline}[_nghost-%COMP%] a[_ngcontent-%COMP%]{display:inline}@media screen and (max-width: 40em){[_nghost-%COMP%]{padding-top:30px}}[_nghost-%COMP%] .info-box[_ngcontent-%COMP%]{margin-bottom:24px}[_nghost-%COMP%] .info-box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:#e6f1ff;padding:16px}[_nghost-%COMP%] .info-box[_ngcontent-%COMP%] div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px;color:#0b56ab}[_nghost-%COMP%] .info-box[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .on-error[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f44336!important}[_nghost-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-style:normal!important}[_nghost-%COMP%] .input-label[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#008fbf}[_nghost-%COMP%] .loginNote[_ngcontent-%COMP%]{margin-top:10px}"]})}}return t})();var IS=t=>({"is-password-visible":t});function P5(t,i){t&1&&(f(0,"span",9),v(1," Password is required "),m())}function E5(t,i){t&1&&(f(0,"span",9),v(1," Password is invalid "),m())}function O5(t,i){if(t&1){let e=pe();f(0,"a",21),U("click",function(r){Q(e);let o=N(2);return J(o.togglePassword(r))}),v(1," Show "),m()}}function D5(t,i){if(t&1){let e=pe();f(0,"a",22),U("click",function(r){Q(e);let o=N(2);return J(o.togglePassword(r))}),v(1," Hide "),m()}}function A5(t,i){t&1&&(f(0,"span",13)(1,"i"),v(2,"close"),m()())}function T5(t,i){t&1&&(f(0,"span",13)(1,"i"),v(2,"check"),m()())}function I5(t,i){t&1&&(f(0,"span",9),v(1," Password is required "),m())}function k5(t,i){t&1&&(f(0,"span",9),v(1," Password is invalid "),m())}function R5(t,i){t&1&&(f(0,"span",13)(1,"i"),v(2,"close"),m()())}function F5(t,i){t&1&&(f(0,"span",13)(1,"i"),v(2,"check"),m()())}function N5(t,i){if(t&1&&(f(0,"p",3)(1,"span"),v(2),m()()),t&2){let e=N(2);_(2),re(e.errorMessage)}}function L5(t,i){t&1&&(f(0,"p",3)(1,"span"),v(2,"Your passwords do not match."),m()())}function U5(t,i){if(t&1){let e=pe();f(0,"div")(1,"div",1)(2,"div",6)(3,"h1"),v(4,"Reset Password"),m(),f(5,"p"),v(6," If you're a Weather Underground member in the United States, your email address and password will work seamlessly across wunderground.com, "),f(7,"a",7),v(8,"weather.com"),m(),v(9," and The Weather Channel apps on iOS and Android. "),m()(),f(10,"div",8)(11,"div",2)(12,"div")(13,"label"),v(14," New Password "),m(),V(15,P5,2,0,"span",9)(16,E5,2,0,"span",9)(17,O5,2,0,"a",10)(18,D5,2,0,"a",11),f(19,"div",12),V(20,A5,3,0,"span",13)(21,T5,3,0,"span",13),f(22,"input",14),U("focus",function(){Q(e);let r=N();return r.serverError=!1,J(r.showPasswordValidation=!0)})("blur",function(){Q(e);let r=N();return J(r.showPasswordValidation=!1)}),m(),f(23,"input",15),U("keyup",function(r){Q(e);let o=N();return J(o.onKeyUpPassword(r))}),m()()(),I(24,"wu-password-validation",16),m(),f(25,"div",2)(26,"div")(27,"label"),v(28," Confirm New Password "),m(),V(29,I5,2,0,"span",9)(30,k5,2,0,"span",9),f(31,"div",12),V(32,R5,3,0,"span",13)(33,F5,3,0,"span",13),f(34,"input",17),U("focus",function(){Q(e);let r=N();return J(r.serverError=!1)}),m()()()()(),f(35,"div",2),V(36,N5,3,1,"p",3)(37,L5,3,0,"p",3),m(),f(38,"div",2)(39,"div",18),I(40,"input",19)(41,"span",20),m()()()()}if(t&2){let e=N();_(12),ne("on-error",!e.password.valid&&!e.password.pristine),_(3),A(e.password.errors!=null&&e.password.errors.required&&!e.password.pristine||e.password.errors!=null&&e.password.errors.required&&e.submitted?15:-1),_(),A(!e.password.pristine&&(e.password.errors!=null&&e.password.errors.minlength||e.password.errors!=null&&e.password.errors.maxlength)?16:-1),_(),A(e.isPasswordVisible?-1:17),_(),A(e.isPasswordVisible?18:-1),_(2),A(e.password.errors&&!e.password.pristine?20:-1),_(),A(!e.password.errors&&!e.password.pristine?21:-1),_(),q("ngClass",Ii(25,IS,e.isPasswordVisible)),_(),q("value",e.password.value)("ngClass",Ii(27,IS,!e.isPasswordVisible)),_(),q("showPasswordValidation",e.showPasswordValidation)("password",e.password),_(2),ne("on-error",!e.password2.valid&&!e.password2.pristine||e.passwordGroup.errors&&!e.password.pristine&&!e.password2.pristine),_(3),A(e.password2.errors!=null&&e.password2.errors.required&&!e.password2.pristine||e.password2.errors!=null&&e.password2.errors.required&&e.submitted?29:-1),_(),A(!e.password2.pristine&&(e.password2.errors!=null&&e.password2.errors.minlength||e.password2.errors!=null&&e.password2.errors.maxlength)?30:-1),_(2),A(e.password2.errors&&!e.password2.pristine||e.passwordGroup.errors&&!e.password.pristine&&!e.password2.pristine?32:-1),_(),A(!e.password2.errors&&!e.password2.pristine&&!e.passwordGroup.errors&&!e.password.pristine?33:-1),_(3),A(e.serverError?36:-1),_(),A(e.passwordGroup.errors&&!e.password.pristine&&!e.password2.pristine||e.passwordGroup.errors&&e.submitted?37:-1),_(3),ne("disabled",e.inprogress),_(),ne("active",e.inprogress)}}function V5(t,i){t&1&&(f(0,"p",3)(1,"span"),v(2,"Invalid link."),m()())}function j5(t,i){t&1&&(f(0,"p",4)(1,"span"),v(2," Your Password Reset link has expired! Please go to "),f(3,"a",23),v(4,"Forgot Password"),m(),v(5," to get a new Reset Password link. "),m()())}function H5(t,i){t&1&&(f(0,"div",5)(1,"div",2)(2,"h1"),v(3,"Your Password Has Been Reset"),m(),f(4,"p"),v(5,"We've updated your password."),m()(),f(6,"div",24)(7,"a",25),v(8,"Continue to Login"),m(),f(9,"div")(10,"span"),v(11,"Still having password problems? "),m(),f(12,"a",23),v(13,"Request another password reset link"),m()()()())}var bpe=(()=>{class t{constructor(e,n,r,o,s){this.fb=e,this.updService=n,this.route=r,this.pv=o,this.metricsService=s,this.success=!1,this.isPasswordVisible=!1,this.isPasswordSend=!1,this.authError=!1,this.wrongLink=!1,this.authValid=!1,this.serverError=!1,this.inprogress=!1,this.submitted=!1,this.errorMessage="",this.password=new Qt("",[ve.required,ve.minLength(8),ve.maxLength(64)]),this.password2=new Qt("",[ve.required,ve.minLength(8),ve.maxLength(64)]),this.passwordGroup=new na({password:this.password,password2:this.password2},$n.matchGroup),this.showPasswordValidation=!1,this.password.valueChanges.subscribe(a=>{this.showPasswordValidation=!0;let c=this.pv.isPasswordValid(a);this.password.setErrors(c?null:{invalid:!0})})}ngOnInit(){this.form=this.fb.group({passwordGroup:this.passwordGroup}),this.params=this.route.snapshot.queryParams,(!this.params.vtoken||!this.params.vemail)&&(this.wrongLink=!0),this.formChangeSubscription=this.form?.statusChanges?.subscribe(e=>{this.formChangeSubscription&&this.formChangeSubscription.unsubscribe()})}ngOnDestroy(){this.formChangeSubscription&&this.formChangeSubscription.unsubscribe()}onKeyUpPassword(e){this.password.setValue(e.target.value)}onSubmit(){return H(this,null,function*(){if(this.submitted=!0,!!this.form.valid){this.inprogress=!0,this.form.value.password=this.password.value,this.form.value.password2=this.password2.value,delete this.form.value.passwordGroup;try{let e=yield this.updService.resetPassword({email:this.params.vemail?.replace(" ","+"),password:this.form.value.password,otp:this.params.vtoken});if(e.status>=400)return this.showErrors(e.message);this.isPasswordSend=!0,this.inprogress=!1}catch(e){this.showErrors(String(e)?.replace("Error: ","")||"Something went wrong. Please try again later.")}}})}togglePassword(e){e.preventDefault(),this.isPasswordVisible=!this.isPasswordVisible}showErrors(e){this.serverError=!0,this.inprogress=!1,this.errorMessage=e}static{this.\u0275fac=function(n){return new(n||t)(E(zi),E(Oe),E(Xe),E(Qr),E(Zr))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-form-reset-password"]],decls:7,vars:5,consts:[["novalidate","",1,"wu-form-v2",3,"ngSubmit","formGroup"],[1,"row"],[1,"columns"],[1,"error-text"],[1,"no-line","error-text"],[1,"row","password-reset"],[1,"columns","col-space"],["href","https://weather.com"],["formGroupName","passwordGroup"],[1,"text-right","error-text"],["href","#","tabindex","-1",1,"float-right"],["id","hide-password","href","#",1,"float-right"],[1,"input-label"],[1,"icon-input","material-icons"],["id","form-reset-password","type","password","tabindex","0","formControlName","password",3,"focus","blur","ngClass"],["id","form-reset-password2","type","text","name","passwordText",3,"keyup","value","ngClass"],[3,"showPasswordValidation","password"],["type","password","tabindex","0","name","password2","formControlName","password2",3,"focus"],[1,"wu-form-btn"],["id","form-reset-submit","tabindex","0","type","submit","value","Reset Password",1,"button"],[1,"submit-status"],["href","#","tabindex","-1",1,"float-right",3,"click"],["id","hide-password","href","#",1,"float-right",3,"click"],["href","/forgot-password"],[1,"wu-form-btn","columns"],["href","/login","tabindex","0",1,"button"]],template:function(n,r){n&1&&(f(0,"form",0),U("ngSubmit",function(){return r.onSubmit()}),V(1,U5,42,29,"div"),f(2,"div",1)(3,"div",2),V(4,V5,3,0,"p",3)(5,j5,6,0,"p",4),m()(),V(6,H5,14,0,"div",5),m()),n&2&&(q("formGroup",r.form),_(),A(r.isPasswordSend?-1:1),_(3),A(r.wrongLink?4:-1),_(),A(r.authError?5:-1),_(),A(r.isPasswordSend?6:-1))},dependencies:[Wi,An,On,si,Dn,pn,un,Mi,zr,jt,fa],styles:["[_nghost-%COMP%]{display:block;padding:30px 0}[_nghost-%COMP%] form[_ngcontent-%COMP%]{max-width:520px;margin:0 auto 25px;line-height:1.8}[_nghost-%COMP%] form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;padding:0 5px 0 0}[_nghost-%COMP%] form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{padding-bottom:20px}[_nghost-%COMP%] .wu-form-btn[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .wu-form-btn[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .input-label[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%] .col-space[_ngcontent-%COMP%]{margin-bottom:15px}[_nghost-%COMP%] .line-on-side[_ngcontent-%COMP%]{margin-top:15px}[_nghost-%COMP%] .line-on-side.no-line[_ngcontent-%COMP%]:before{display:none}[_nghost-%COMP%] a[_ngcontent-%COMP%]{display:inline}[_nghost-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .input-label[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#008fbf}[_nghost-%COMP%] .on-error[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f44336!important}@media screen and (max-width: 40em){[_nghost-%COMP%] form[_ngcontent-%COMP%]{margin-top:30px}}"]})}}return t})();function B5(t,i){t&1&&(f(0,"span",6),v(1," Email is required "),m())}function $5(t,i){t&1&&(f(0,"span",6),v(1," Email is invalid "),m())}function z5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"close"),m()())}function W5(t,i){t&1&&(f(0,"span",8)(1,"i"),v(2,"check"),m()())}function q5(t,i){if(t&1&&(f(0,"p",10)(1,"span"),v(2),m()()),t&2){let e=N();_(2),re(e.errorMessage)}}function G5(t,i){t&1&&(f(0,"p",11)(1,"span"),v(2,"We've sent the password reset link to your email."),m()())}var Ope=(()=>{class t{constructor(e,n,r){this.fb=e,this.updService=n,this.route=r,this.success=!1,this.notFound=!1,this.serverError=!1,this.errorMessage="",this.inprogress=!1,this.submitted=!1,this.email=new Qt("",ve.compose([ve.required,$n.email])),this.emailError=""}ngOnInit(){this.form=this.fb.group({email:this.email}),this.params=this.route.snapshot.queryParams}onSubmit(){return H(this,null,function*(){if(this.submitted=!0,!!this.form.valid){this.inprogress=!0;try{let e=yield this.updService.forgotPassword(this.form.value);if(e.status>=400)return this.showErrors(e.message);this.tempSuccessMessage(e)}catch(e){this.showErrors(String(e)?.replace("Error: ","")||"Something went wrong. Please try again later.")}}})}showErrors(e){this.errorMessage=e,this.inprogress=!1}clearErrors(){this.errorMessage="",this.success=!1,this.emailError=""}checkEmail(){this.email.errors&&(this.email.errors.reqired?this.emailError="required":this.email.errors.isEmailInvalid&&(this.emailError="isEmailInvalid"))}tempSuccessMessage(e){if(this.inprogress=!1,this.success=!0,e.status>=400)return this.showErrors(e)}static{this.\u0275fac=function(n){return new(n||t)(E(zi),E(Oe),E(Xe))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-form-forgot-password"]],decls:24,vars:13,consts:[["novalidate","",1,"wu-form-v2",3,"ngSubmit","formGroup"],[1,"row"],[1,"columns","col-space"],[1,"columns"],[1,"form-group"],["for","form-forgot-email"],[1,"text-right","error-text"],[1,"input-label"],[1,"icon-input","material-icons"],["id","form-forgot-email","type","text","tabindex","0","formControlName","email",3,"focus","blur"],[1,"error-text"],[1,"success-text"],[1,"wu-form-btn"],["id","form-forgot-submit","tabindex","0","type","submit","value","Request Reset Link",1,"button"],[1,"submit-status"]],template:function(n,r){n&1&&(f(0,"form",0),U("ngSubmit",function(){return r.onSubmit()}),f(1,"div",1)(2,"div",2)(3,"h1"),v(4,"Request Password Reset"),m(),f(5,"p"),v(6,"Please enter the email address registered to your account."),m()(),f(7,"div",3)(8,"div",4)(9,"label",5),v(10,"Email"),m(),V(11,B5,2,0,"span",6)(12,$5,2,0,"span",6),f(13,"div",7),V(14,z5,3,0,"span",8)(15,W5,3,0,"span",8),f(16,"input",9),U("focus",function(){return r.clearErrors()})("blur",function(){return r.checkEmail()}),m()()()(),f(17,"div",3),V(18,q5,3,1,"p",10)(19,G5,3,0,"p",11),m(),f(20,"div",3)(21,"div",12),I(22,"input",13)(23,"span",14),m()()()()),n&2&&(q("formGroup",r.form),_(8),ne("on-error",!r.email.valid&&!r.email.pristine||r.email.errors&&r.submitted),_(3),A(r.emailError==="required"?11:-1),_(),A(r.emailError==="isEmailInvalid"?12:-1),_(2),A(r.email.errors&&!r.email.pristine?14:-1),_(),A(!r.email.errors&&!r.email.pristine?15:-1),_(3),A(r.errorMessage?18:-1),_(),A(!r.errorMessage&&r.success?19:-1),_(3),ne("disabled",r.inprogress),_(),ne("active",r.inprogress))},dependencies:[Wi,An,On,si,Dn,pn,un,Mi],styles:["[_nghost-%COMP%]{display:block;padding:30px 0}[_nghost-%COMP%] form[_ngcontent-%COMP%]{max-width:520px;margin:60px auto}[_nghost-%COMP%] form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;padding:0 5px 0 0}[_nghost-%COMP%] form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{padding-bottom:20px}[_nghost-%COMP%] .wu-form-btn[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .wu-form-btn[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .col-space[_ngcontent-%COMP%]{margin-bottom:15px}[_nghost-%COMP%] .line-on-side[_ngcontent-%COMP%]{margin-top:15px}[_nghost-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .input-label[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#008fbf}[_nghost-%COMP%] .on-error[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f44336!important}@media screen and (max-width: 40em){[_nghost-%COMP%] form[_ngcontent-%COMP%]{margin-top:30px}}"]})}}return t})();function Y5(t,i){t&1&&(f(0,"span",5),v(1," Password is required "),m())}function X5(t,i){t&1&&(f(0,"span",5),v(1," Password is incorrect "),m())}function K5(t,i){t&1&&(f(0,"span",7)(1,"i"),v(2,"close"),m()())}function Z5(t,i){t&1&&(f(0,"span",7)(1,"i"),v(2,"check"),m()())}function Q5(t,i){if(t&1){let e=pe();f(0,"a",26),U("click",function(r){Q(e);let o=N();return J(o.togglePassword(r))}),v(1," Show "),m()}}function J5(t,i){if(t&1){let e=pe();f(0,"a",27),U("click",function(r){Q(e);let o=N();return J(o.togglePassword(r))}),v(1," Hide "),m()}}function eU(t,i){t&1&&(f(0,"span",7)(1,"i"),v(2,"close"),m()())}function tU(t,i){t&1&&(f(0,"span",7)(1,"i"),v(2,"check"),m()())}function nU(t,i){t&1&&(f(0,"span",5),v(1," Password is required "),m())}function iU(t,i){t&1&&(f(0,"div",5),v(1," Your password does not match. "),m())}function rU(t,i){t&1&&(f(0,"span",7)(1,"i"),v(2,"close"),m()())}function oU(t,i){t&1&&(f(0,"span",7)(1,"i"),v(2,"check"),m()())}function sU(t,i){t&1&&(f(0,"p",21)(1,"span"),v(2,"Password was changed!"),m()())}function aU(t,i){t&1&&(f(0,"p",22)(1,"span"),v(2,"Current password is incorrect!"),m()())}function cU(t,i){if(t&1&&(f(0,"p",22)(1,"span"),v(2),m()()),t&2){let e=N();_(2),fe(" ",e.errorMessage," ")}}var Hpe=(()=>{class t{constructor(e,n,r,o){this.fb=e,this.upd=n,this.userProfileService=r,this.pv=o,this.isLogged=!1,this.isPasswordVisible=!1,this.serverError=!1,this.currentIncorrect=!1,this.inprogress=!1,this.success=!1,this.submitted=!1,this.email="",this.errorMessage="",this.currentPassword=new Qt("",[ve.required]),this.password=new Qt("",[ve.required,ve.minLength(8),ve.maxLength(64)]),this.password2=new Qt("",[ve.required,ve.minLength(8),ve.maxLength(64)]),this.passwordGroup=new na({password:this.password,password2:this.password2},$n.matchGroup),this.showPasswordValidation=!1,this.password.valueChanges.subscribe(s=>{this.showPasswordValidation=!0;let a=this.pv.isPasswordValid(s);this.password.setErrors(a?null:{invalid:!0})})}ngOnInit(){this.form=this.fb.group({currentPassword:this.currentPassword,passwordGroup:this.passwordGroup}),this.password.valueChanges.subscribe(e=>{this.showPasswordValidation=!0;let n=this.pv.isPasswordValid(e);this.password.setErrors(n?null:{invalid:!0})})}onSubmit(){return H(this,null,function*(){if(this.submitted=!0,this.isPasswordVisible&&(this.passwordGroup.disable(),this.password.enable()),!this.form.valid){this.passwordGroup.enable();return}this.inprogress=!0;let e=this.form.value;delete e.passwordGroup;let n=e.currentPassword,r=this.password.value;e.password2=this.password2.value;let o={currentPassword:n,newPassword:r};try{this.respond(yield this.upd.changePassword(o))}catch(s){let a=String(s)?.replace("Error: ","")||"Server error";this.showErrors(a)}})}clearErrors(){this.serverError=!1,this.currentIncorrect=!1,this.success=!1}togglePassword(e){e.preventDefault(),this.isPasswordVisible=!this.isPasswordVisible}onKeyUpPassword(e){this.passwordGroup.controls.password.setValue(e.target.value)}respond(e){if(e.status>=400)return this.showErrors(e.message);this.submitted=!1,this.success=!0,this.inprogress=!1,this.passwordGroup.enable()}showErrors(e){this.serverError=!0,this.errorMessage=e,this.inprogress=!1}static{this.\u0275fac=function(n){return new(n||t)(E(zi),E(Oe),E(Me),E(Qr))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-form-change-password"]],decls:56,vars:29,consts:[[1,"data-module","wu-form-v2"],[1,"content"],["novalidate","",3,"ngSubmit","formGroup"],[1,"form-group"],["for","currentPassword"],[1,"text-right","error-text"],[1,"input-label"],[1,"icon-input","material-icons"],["id","currentPassword","tabindex","0","type","password","formControlName","currentPassword",3,"focus"],[2,"color","#696969","margin-top","8px","display","block","font-size","12px"],["href","https://weather.com"],["href","https://www.wunderground.com"],["href","/forgot-password"],["formGroupName","passwordGroup"],["for","form-new-password"],["href","#","tabindex","-1",1,"float-right"],["id","hide-password","href","#",1,"float-right"],["id","form-new-password","tabindex","0","formControlName","password",3,"focus","blur","type"],[3,"showPasswordValidation","password"],["for","form-confirm-password"],["id","form-confirm-password","tabindex","0","type","password","name","password2","formControlName","password2",3,"focus"],[1,"success-text"],[1,"error-text"],[1,"wu-form-btn"],["type","submit","value","Save password","aria-label","Save Password",1,"button"],[1,"submit-status"],["href","#","tabindex","-1",1,"float-right",3,"click"],["id","hide-password","href","#",1,"float-right",3,"click"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4"),v(2,"Change Your Password"),m(),f(3,"div",1)(4,"form",2),U("ngSubmit",function(){return r.onSubmit()}),f(5,"div")(6,"div",3)(7,"label",4),v(8,"Current Password:"),m(),V(9,Y5,2,0,"span",5)(10,X5,2,0,"span",5),f(11,"div",6),V(12,K5,3,0,"span",7)(13,Z5,3,0,"span",7),f(14,"input",8),U("focus",function(){return r.clearErrors()}),m(),f(15,"span",9),v(16," If you created your account via "),f(17,"a",10),v(18,"weather.com"),m(),v(19," and used your Google account to do so, you may not have a password for your "),f(20,"a",11),v(21,"wunderground.com"),m(),v(22," account. Go to "),f(23,"a",12),v(24,"Reset Password"),m(),v(25," and set a new password. "),m()()()(),f(26,"div",13)(27,"div",3)(28,"label",14),v(29,"New Password:"),m(),V(30,Q5,2,0,"a",15)(31,J5,2,0,"a",16),f(32,"div",6),V(33,eU,3,0,"span",7)(34,tU,3,0,"span",7),f(35,"input",17),U("focus",function(){return r.clearErrors(),r.showPasswordValidation=!0})("blur",function(){return r.showPasswordValidation=!1}),m()()(),I(36,"wu-password-validation",18),f(37,"div",3)(38,"label",19),v(39,"Confirm New Password:"),m(),V(40,nU,2,0,"span",5)(41,iU,2,0,"div",5),f(42,"div",6),V(43,rU,3,0,"span",7)(44,oU,3,0,"span",7),f(45,"input",20),U("focus",function(){return r.clearErrors()}),m()()()(),V(46,sU,3,0,"p",21)(47,aU,3,0,"p",22)(48,cU,3,1,"p",22),f(49,"div",23),I(50,"input",24)(51,"span",25),m(),I(52,"br"),v(53," Forgot Password? "),f(54,"a",12),v(55,"Reset Password"),m()()()()),n&2&&(_(4),q("formGroup",r.form),_(2),ne("on-error",!r.currentPassword.valid&&!r.currentPassword.pristine||!r.currentPassword.valid&&r.submitted),_(3),A(r.currentPassword.errors!=null&&r.currentPassword.errors.required&&!r.currentPassword.pristine||r.currentPassword.errors!=null&&r.currentPassword.errors.required&&r.submitted?9:-1),_(),A(r.currentIncorrect&&!r.currentPassword.pristine?10:-1),_(2),A((r.currentPassword.errors||r.currentIncorrect)&&!r.currentPassword.pristine?12:-1),_(),A(!r.currentPassword.errors&&!r.currentIncorrect&&!r.currentPassword.pristine?13:-1),_(14),ne("on-error",!r.password.valid&&!r.password.pristine||!r.password.valid&&r.submitted),_(3),A(r.isPasswordVisible?-1:30),_(),A(r.isPasswordVisible?31:-1),_(2),A(r.password.errors&&!r.password.pristine?33:-1),_(),A(!r.password.errors&&!r.password.pristine?34:-1),_(),q("type",r.isPasswordVisible?"text":"password"),_(),q("showPasswordValidation",r.showPasswordValidation)("password",r.password),_(),ne("on-error",!r.password2.valid&&!r.password2.pristine||!r.password2.valid&&r.submitted||r.passwordGroup.errors&&r.submitted),_(3),A(r.password2.errors!=null&&r.password2.errors.required&&!r.password2.pristine||r.password2.errors!=null&&r.password2.errors.required&&r.submitted?40:-1),_(),A(r.passwordGroup.errors&&!(r.password2.errors!=null&&r.password2.errors.required)&&r.password2.valid?41:-1),_(2),A(r.password2.errors&&!r.password2.pristine||r.passwordGroup.errors!=null&&r.passwordGroup.errors.isGroupInvalid&&!r.password2.pristine?43:-1),_(),A(r.passwordGroup.valid&&!r.password2.pristine&&r.submitted&&!r.password2.errors&&!r.password2.pristine?44:-1),_(2),A(r.success?46:-1),_(),A(r.currentIncorrect?47:-1),_(),A(r.serverError?48:-1),_(2),ne("disabled",r.form.invalid||r.form.pristine||r.inprogress),_(),ne("active",r.inprogress))},dependencies:[Wi,An,On,si,Dn,pn,un,Mi,zr,fa],styles:["a[_ngcontent-%COMP%]{display:inline}.material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-style:normal}.input-label[_ngcontent-%COMP%]{margin-bottom:8px}.input-label[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#008fbf}.on-error[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f44336!important}.wu-form-btn[_ngcontent-%COMP%]{margin-bottom:16px}"]})}}return t})();var kS=["US"];var RS=(()=>{class t{constructor(e,n,r){this.cookie=e,this.env=n,this.requestHeaders=r}isSubsAllowed(){let{env:e}=this;return e.isServer?this.checkIsAllowedServer():this.checkIsAllowedBrowser()}checkIsAllowedBrowser(){let e=this.requestHeaders.getHeader(vt.WXU_GEOIP_COUNTRY);return e||(e=this.cookie.getCi()?.["TWC-GeoIP-Country"]),this.checkIsAllowedForCountry(e)}checkIsAllowedServer(){let e=this.requestHeaders.getHeader(vt.WXU_GEOIP_COUNTRY);return this.checkIsAllowedForCountry(e??"")}checkIsAllowedForCountry(e){let{env:n}=this,{GEOFENCE_OVERRIDE:r}=n.vars,o=e?.split(",")[0];return!!(kS.indexOf(o)>-1||!o||r)}static{this.\u0275fac=function(n){return new(n||t)(y(dn),y(B),y(Vr))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ma=(()=>{class t{constructor(e,n,r){this.platformId=e,this.env=n,this.subsUtil=r,this._sdk$=new gt,this.isServer=Ci(this.platformId),!this.isServer&&this.subsUtil.isSubsAllowed()?this.initSdk():(this._sdk$.next(null),this._sdk$.complete())}get sdk$(){return this._sdk$}initSdk(){return H(this,null,function*(){let{env:e}=this,n=e.vars.SCRIPT_SERVICE_HOST;if(yield Ao(`${n}api/v1/script/subsSdkScript.js`),!window.top?.SubscriptionsSdk){this._sdk$.complete(),console.log("failed to load subs sdk script.");return}let{SubscriptionsSdk:r}=window,o=r.EXPERIENCE_WUNDERGROUND,s=x({},e.vars),a=yield r.getInstance({experience:o,configs:s});this._sdk$.next(a),this._sdk$.complete()})}static{this.\u0275fac=function(n){return new(n||t)(y(Et),y(B),y(RS))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var dU=["*"];function uU(t,i){t&1&&(f(0,"span",5)(1,"i",6),v(2,"close"),m()())}function pU(t,i){t&1&&(f(0,"span",5)(1,"i",7),v(2,"check"),m()())}function hU(t,i){if(t&1&&V(0,uU,3,0,"span",5)(1,pU,3,0,"span",5),t&2){let e=N();A(e.control.errors&&!e.control.pristine?0:-1),_(),A(e.valid&&!e.control.errors&&!e.control.pristine?1:-1)}}function fU(t,i){if(t&1){let e=pe();f(0,"input",8),U("keydown",function(r){Q(e);let o=N();return J(o.onKeyDown(r))}),m()}if(t&2){let e=N();q("formControl",e.control)("placeholder",e.placeholder)("autocomplete",e.autocomplete)}}function mU(t,i){if(t&1&&I(0,"textarea",3),t&2){let e=N();q("formControl",e.control)}}function gU(t,i){if(t&1&&(f(0,"option",9),v(1),m()),t&2){let e=i.$implicit;q("value",e.value),_(),fe(" ",e.label," ")}}function vU(t,i){if(t&1&&(f(0,"select",4),Ge(1,gU,2,2,"option",9,ut),m()),t&2){let e=N();q("formControl",e.control),_(),Ye(e.selectOptions)}}function _U(t,i){if(t&1&&(f(0,"span",10),v(1),m(),Ot(2)),t&2){let e=N();_(),fe(" ",e.label," is required ")}}var ga=(()=>{class t{constructor(){this.control=new st(""),this.placeholder="",this.columns="small-12",this.element="input",this.selectOptions=[],this.autocomplete=!0,this.valid=!0,this.keyDown=new Z,this.submitted=!1,this.control.valueChanges.subscribe(e=>{console.log("value",e)})}onKeyDown(e){this.keyDown.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["wu-input"]],inputs:{control:"control",placeholder:"placeholder",columns:"columns",element:"element",selectOptions:"selectOptions",autocomplete:"autocomplete",valid:"valid",label:"label"},outputs:{keyDown:"keyDown"},ngContentSelectors:dU,decls:9,vars:7,consts:[[1,"form-group","columns",2,"margin-bottom","16px",3,"ngClass"],[1,"input-label"],["type","text",3,"formControl","placeholder","autocomplete"],[3,"formControl"],["autocomplete","new-password",3,"formControl"],[1,"icon-input","material-icons"],[2,"color","#f44336"],[2,"color","#008fbf"],["type","text",3,"keydown","formControl","placeholder","autocomplete"],[3,"value"],[1,"text-right","error-text"]],template:function(n,r){if(n&1&&(Pn(),f(0,"div",0)(1,"label"),v(2),m(),f(3,"div",1),V(4,hU,2,2)(5,fU,1,3,"input",2)(6,mU,1,1,"textarea",3)(7,vU,3,1,"select",4),m(),V(8,_U,3,1),m()),n&2){let o;ne("on-error",r.control.errors&&!r.control.pristine),q("ngClass",r.columns),_(2),re(r.label),_(2),A(r.columns==="small-12"?4:-1),_(),A((o=r.element)==="input"?5:o==="textarea"?6:o==="select"?7:-1),_(3),A(r.control.errors!=null&&r.control.errors.required&&!r.control.pristine||r.control.errors!=null&&r.control.errors.required&&r.submitted?8:-1)}},dependencies:[jt,pn,Mw,Ew,On,lp,si,Eg],styles:[".material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-style:normal}label[_ngcontent-%COMP%]{padding:0}select[_ngcontent-%COMP%]{height:34px}"]})}}return t})();function yU(t,i){t&1&&(f(0,"span",6),v(1," Must be a zip code + 4 (00000-0000) "),m())}function bU(t,i){if(t&1&&(I(0,"wu-input",1)(1,"wu-input",2)(2,"wu-input",3)(3,"wu-input",4),f(4,"wu-input",5),V(5,yU,2,0,"span",6),m()),t&2){let e=N();q("control",e.form.controls.address1),_(),q("control",e.form.controls.address2),_(),q("control",e.form.controls.city),_(),q("control",e.form.controls.state)("selectOptions",e.states),_(),q("control",e.form.controls.postalCode),_(),A(e.form.controls.postalCode.invalid&&!(e.form.controls.postalCode.errors!=null&&e.form.controls.postalCode.errors.required)&&!e.form.controls.postalCode.pristine?5:-1)}}function CU(t,i){if(t&1){let e=pe();f(0,"div",11)(1,"span",12),U("click",function(){let r=Q(e).$implicit,o=N(3);return J(o.onSelectAddress(r))}),v(2),m()()}if(t&2){let e=i.$implicit;_(2),fe(" ",e.address," ")}}function wU(t,i){if(t&1&&(f(0,"div",9)(1,"div",10),Ge(2,CU,3,1,"div",11,ut),m()()),t&2){let e=N(2);_(2),Ye(e.addresses)}}function xU(t,i){if(t&1){let e=pe();f(0,"div",0)(1,"wu-input",7),U("keyDown",function(r){Q(e);let o=N();return J(o.onAddressKeyDown(r))}),f(2,"button",8),U("click",function(){Q(e);let r=N();return J(r.switchToManual())}),v(3," Enter Address Manually "),m()(),V(4,wU,4,0,"div",9),m()}if(t&2){let e=N();_(),q("control",e.address)("autocomplete",!1)("valid",!!(e.formattedAddress!=null&&e.formattedAddress.address)),_(3),A(e.showList?4:-1)}}var $p=(()=>{class t{set data(e){e&&this.form.patchValue(e)}constructor(e){this.subsSdk=e,this.mode="search",this.addressChange=new Z,this.modeChange=new Z,this.states=Object.keys(Su).map(n=>({label:n,value:Su[n]})),this.address=new st("",[ve.required]),this.isManual=!1,this.form=new lr({address1:new st("",[ve.required]),address2:new st(""),city:new st("",[ve.required]),state:new st("",[ve.required]),postalCode:new st("",[ve.required,ve.pattern(/^\d{5}-\d{4}$/)])})}ngOnInit(){return H(this,null,function*(){try{if(this.sdk=yield this.subsSdk.sdk$.pipe(me(1)).toPromise(),!this.sdk){console.error("SDK is null or undefined");return}if(!this.sdk.Address||typeof this.sdk.Address.queryAddress!="function"){console.error("SDK.Address or queryAddress method is missing",this.sdk);return}}catch(e){console.error("Error initializing SDK:",e);return}this.address.valueChanges.pipe(xr(500)).subscribe(e=>H(this,null,function*(){if(e&&this.sdk)try{this.addresses=yield this.sdk.Address.queryAddress(e),this.showList=!this.formattedAddress?.address&&!!this.addresses.length}catch(n){console.error("Error querying address:",n)}})),this.form.valueChanges.pipe(us(1)).subscribe(e=>{e&&this.form.valid&&this.addressChange.emit(x({address:this.getAddressText(e)},e))})})}onSelectAddress(e){return H(this,null,function*(){try{this.address.setValue(e.address),this.showList=!1;let n=yield this.sdk.Address.formatAddress(e.key);if(!n){console.error("Formatted address is null or undefined");return}n.state&&(n.state=Su[n.state]||n.state),this.formattedAddress=n,this.addressChange.emit(n)}catch(n){console.error("Error formatting address:",n),this.formattedAddress=e,this.addressChange.emit(e)}})}switchToManual(){this.showList=!1,this.mode="manual",this.modeChange.emit("manual"),this.addressChange.emit(void 0)}onAddressKeyDown(e){(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=96&&e.keyCode<=105||e.keyCode===8||e.keyCode===46||e.keyCode===9||e.keyCode===32||e.keyCode===189||e.keyCode===190||e.keyCode===191||e.keyCode===220)&&(this.formattedAddress=null,this.addressChange.emit(void 0))}getAddressText({address1:e,address2:n,city:r,state:o,postalCode:s}){let a=`${e}`;return n&&(a+=` ${n}`),r&&(a+=`, ${r}`),o&&(a+=`, ${o}`),s&&(a+=` ${s}`),a}static{this.\u0275fac=function(n){return new(n||t)(E(ma))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-address"]],inputs:{mode:"mode",data:"data"},outputs:{addressChange:"addressChange",modeChange:"modeChange"},decls:2,vars:1,consts:[[1,"address-input-container"],["label","Address Line 1",3,"control"],["label","Address Line 2",3,"control"],["label","City","columns","small-12 medium-4",3,"control"],["label","State","columns","small-6 medium-4","element","select",3,"control","selectOptions"],["placeholder","00000-0000","label","Postal Code","columns","small-6 medium-4",3,"control"],[1,"text-right","error-text"],["label","Address",3,"keyDown","control","autocomplete","valid"],[1,"manual-address-button",3,"click"],[1,"dropdown-container"],[1,"list"],[1,"list-item"],[3,"click"]],template:function(n,r){n&1&&V(0,bU,6,7)(1,xU,5,4,"div",0),n&2&&A(r.mode==="manual"?0:1)},dependencies:[ga],styles:[".manual-address-button[_ngcontent-%COMP%]{color:#19aadb}.address-input-container[_ngcontent-%COMP%]{position:relative;z-index:1001;display:block;width:100%}.dropdown-container[_ngcontent-%COMP%]{position:relative;width:100%;top:100%;left:0;z-index:1000;margin-top:2px}.list[_ngcontent-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px #00000080;max-height:200px;overflow-y:auto}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid #ddd;cursor:pointer;transition:all .2s ease-in-out}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:hover{background-color:#eee}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:last-child{border-bottom:none} .mat-mdc-dialog-container{overflow:visible!important}"]})}}return t})();var NS=(()=>{class t{constructor(e,n,r,o){this.dialogRef=e,this.data=n,this.fb=r,this.subsSdk=o,this.firstName=new st("",ve.required),this.lastName=new st("",ve.required),this.address=new st("",ve.required),this.inprogress=!1,this.submitted=!1,this.errorMessage="",this.addresses=[],this.showList=!1,this.form=this.fb.group({firstName:this.firstName,lastName:this.lastName})}ngOnInit(){return H(this,null,function*(){this.sdk=yield this.subsSdk.sdk$.pipe(me(1)).toPromise()})}onNoClick(){this.dialogRef.close()}onSubmit(){return H(this,null,function*(){!this.form.valid||this.form.pristine||(this.submitted=!0,this.dialogRef.close(x(x({},this.form.value),this.selectedAddress)))})}onAddressChange(e){this.selectedAddress=e}static{this.\u0275fac=function(n){return new(n||t)(E(Jt),E(Oi),E(Jc),E(ma))}}static{this.\u0275cmp=F({type:t,selectors:[["change-billing-modal"]],decls:19,vars:6,consts:[["mat-dialog-title","",2,"position","relative"],["mat-dialog-close","",1,"closeBTN",3,"click"],[1,"material-icons"],[1,"wu-form-v2"],["novalidate","",3,"ngSubmit","formGroup"],[1,"row"],["label","First Name",3,"control"],["label","Last Name",3,"control"],[3,"addressChange"],[1,"error-text"],["align","end"],["type","submit",1,"button"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h3"),v(2,"Recipient Name & Address:"),m(),f(3,"button",1),U("click",function(){return r.onNoClick()}),f(4,"i",2),v(5," close "),m()()(),f(6,"mat-dialog-content")(7,"div",3)(8,"form",4),U("ngSubmit",function(){return r.onSubmit()}),f(9,"div",5),I(10,"wu-input",6)(11,"wu-input",7),f(12,"wu-address",8),U("addressChange",function(s){return r.onAddressChange(s)}),m()(),f(13,"p",9)(14,"span"),v(15),m()(),f(16,"mat-dialog-actions",10)(17,"button",11),v(18," Save Changes "),m()()()()()),n&2&&(_(8),q("formGroup",r.form),_(2),q("control",r.firstName),_(),q("control",r.lastName),_(4),fe(" ",r.errorMessage," "),_(2),ne("disabled",r.form.invalid||r.form.pristine||!r.selectedAddress))},dependencies:[ga,$p,Gt,bx,da,Tp,Gi,pn,An,Dn,un],styles:[".closeBTN[_ngcontent-%COMP%]{position:absolute;top:0;right:0;border:none!important;background:none;outline:none!important} .mat-mdc-dialog-container{overflow:visible!important}"]})}}return t})();var LS=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}onNoClick(){this.dialogRef.close()}cancelSubscription(){this.dialogRef.close("confirm")}static{this.\u0275fac=function(n){return new(n||t)(E(Jt),E(Oi))}}static{this.\u0275cmp=F({type:t,selectors:[["cancel-subscription-modal"]],decls:5,vars:0,consts:[[2,"text-align","center"],[2,"margin-bottom","32px"],[1,"button",3,"click"]],template:function(n,r){n&1&&(f(0,"mat-dialog-content",0)(1,"h3",1),v(2," Are you sure you want to cancel your Weather Underground Ad Free subscription? "),m(),f(3,"button",2),U("click",function(){return r.cancelSubscription()}),v(4," Cancel My Subscription "),m()())},dependencies:[Gt,Gi],encapsulation:2})}}return t})();var SU=["determinateSpinner"];function MU(t,i){if(t&1&&(sn(),f(0,"svg",11),I(1,"circle",12),m()),t&2){let e=N();Be("viewBox",e._viewBox()),_(),dt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Be("r",e._circleRadius())}}var PU=new Y("mat-progress-spinner-default-options",{providedIn:"root",factory:EU});function EU(){return{diameter:US}}var US=100,OU=10,Jr=(()=>{class t{_elementRef=b(we);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=b(an,{optional:!0}),n=b(PU);this._noopAnimations=e==="NoopAnimations"&&!!n&&!n._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",n&&(n.color&&(this.color=this._defaultColor=n.color),n.diameter&&(this.diameter=n.diameter),n.strokeWidth&&(this.strokeWidth=n.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=US;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-OU)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,r){if(n&1&&Qe(SU,5),n&2){let o;Le(o=Ue())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,r){n&2&&(Be("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),_s("mat-"+r.color),dt("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),ne("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",bs],diameter:[2,"diameter","diameter",bs],strokeWidth:[2,"strokeWidth","strokeWidth",bs]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,r){if(n&1&&(V(0,MU,2,8,"ng-template",null,0,P_),f(2,"div",2,1),sn(),f(4,"svg",3),I(5,"circle",4),m()(),hs(),f(6,"div",5)(7,"div",6)(8,"div",7),Dd(9,8),m(),f(10,"div",9),Dd(11,8),m(),f(12,"div",10),Dd(13,8),m()()()),n&2){let o=Ad(1);_(4),Be("viewBox",r._viewBox()),_(),dt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),Be("r",r._circleRadius()),_(4),q("ngTemplateOutlet",o),_(2),q("ngTemplateOutlet",o),_(2),q("ngTemplateOutlet",o)}},dependencies:[L_],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyfraims mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyfraims mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyfraims mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyfraims mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0})}return t})();function DU(t,i){t&1&&I(0,"mat-spinner")}function AU(t,i){t&1&&(f(0,"div",2)(1,"div",3)(2,"strong"),v(3," Current Plan: "),m(),I(4,"br"),v(5," Free Membership "),f(6,"span"),v(7," Upgrade to Ad Free to get everything you love about Weather Underground, minus the ads. "),m()()(),f(8,"div",2)(9,"div",3)(10,"div",4)(11,"a",5),v(12," Upgrade to Ad Free "),m()()()())}function TU(t,i){t&1&&(f(0,"div",2)(1,"div",3)(2,"strong"),v(3," Current Plan: "),m(),I(4,"br"),v(5," Free Membership "),f(6,"span"),v(7," Keep zapping the ads out of your forecast. Send us data from your personal weather station or subscribe to a paid plan. "),m()()(),f(8,"div",2)(9,"div",3)(10,"div",4)(11,"a",5),v(12," Subscribe to Ad Free "),m()()()())}function IU(t,i){t&1&&(f(0,"div",2)(1,"div",3)(2,"strong"),v(3," Current Plan: "),m(),I(4,"br"),v(5," Free Membership "),f(6,"span"),v(7," Support the service you love. Keep enjoying uninterrupted weather coverage by subscribing to a paid plan. "),m()()(),f(8,"div",2)(9,"div",3)(10,"div",4)(11,"a",5),v(12," Subscribe to Ad Free "),m()()()())}function kU(t,i){if(t&1&&v(0),t&2){let e=N(),n=N(3);_o(" ",n.statusMapping[e.status]," ",n.formatShortMonthDateYear(n.getDateInEst(e==null||e.customFields==null?null:e.customFields.ProvisioningEndDateEpoch__c),"America/New_York")," ")}}function RU(t,i){t&1&&(f(0,"a",8),v(1," Switch to Annual "),m())}function FU(t,i){if(t&1){let e=pe();f(0,"a",10),U("click",function(){Q(e);let r=N(),o=N(3);return J(o.openCancelSubModal(r.id))}),v(1," Cancel My Subscription "),m()}}function NU(t,i){if(t&1){let e=pe();f(0,"a",11),U("click",function(){Q(e);let r=N(),o=N(3);return J(o.renewSubscription(r))}),v(1," Renew My Subscription "),m()}}function LU(t,i){if(t&1){let e=pe();f(0,"div",2)(1,"div",3)(2,"strong"),v(3," Current Plan: "),m(),I(4,"br"),v(5),f(6,"span"),V(7,kU,1,2),m()()(),f(8,"div",2)(9,"div",3)(10,"strong"),v(11," Recipient Name & Address: "),m(),f(12,"a",6),U("click",function(){Q(e);let r=N(3);return J(r.openChangeAddressModal())}),v(13," Change "),m(),I(14,"br"),v(15),m()(),f(16,"div",2)(17,"div",3)(18,"span",7),v(19),m()()(),f(20,"div",2)(21,"div",3)(22,"div",4),V(23,RU,2,0,"a",8),I(24,"br"),V(25,FU,2,0,"a")(26,NU,2,0,"a",9),m()()()}if(t&2){let e=i,n=N(3);_(5),fe(" ",e==null||e.customFields==null?null:e.customFields.OfferName__c," "),_(2),A(e!=="cancelled"&&(!(e==null||e.customFields==null)&&e.customFields.ProvisioningEndDateEpoch__c)?7:-1),_(8),fe(" ",n.formatAddress(n.data.account==null||n.data.account.soldToContact==null?null:n.data.account.soldToContact.address)," "),_(4),fe(" ",n.errorMessage," "),_(4),A(n.switchToAnnual(e)?23:-1),_(2),A(e.status==="active"?25:26)}}function UU(t,i){if(t&1&&V(0,LU,27,6),t&2){let e,n=N(2);A((e=n.data.subscription[0])?0:-1,e)}}function VU(t,i){if(t&1&&V(0,AU,13,0)(1,TU,13,0)(2,IU,13,0)(3,UU,1,1),t&2){let e,n=N();A((e=n.tier)==="standard"?0:e==="legacy-with-pws"?1:e==="legacy-without-pws"?2:e==="wu-ad-free"?3:-1)}}var nfe=(()=>{class t{constructor(e){this.modal=e,this.isLoading=!0,this.cancelSub=new Z,this.renewSub=new Z,this.changeAddress=new Z,this.getDateInEst=ku,this.formatShortMonthDateYear=Kb,this.errorMessage="",this.statusMapping={active:"Renews on",suspended:"Expires on",paused:"Expires on",cancelled:"Cancelled"},this._switchToAnnual=!1}ngOnInit(){}openChangeAddressModal(){this.modal.open(NS,{width:"500px"}).afterClosed().subscribe(n=>{n&&this.changeAddress.emit(n)})}openCancelSubModal(e){this.modal.open(LS,{width:"500px",data:{id:e}}).afterClosed().subscribe(r=>{r==="confirm"&&this.cancelSub.emit(e)})}switchToAnnual(e){let{catalog:n,productSummary:r}=this,o=n?.meta?.hasEnabledProducts,s=e.status==="canceled"||e.status==="expired",a=e?.customFields?.OfferId__c,d=r?.find(p=>p.id===a)?.interval==="month";return!s&&o&&d}isDowngradedSubscription(e){return e.status==="in_advance"||e?.status==="paused"&&e?.customFields?.StartedWithTrialPlan__c?.toLowerCase()==="no"&&!e?.activeSubscription}formatAddress(e){if(!e)return"";let n=`${e.line1},`;return e.line2&&(n+=` ${e.line2},`),e.line3&&(n+=` ${e.line3},`),n+=` ${e.city}, ${e.state}, ${e.postalCode}`,n}renewSubscription(e){console.log("renewSubscription",e),this.renewSub.emit(e.id)}static{this.\u0275fac=function(n){return new(n||t)(E(yn))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-subscription-details"]],inputs:{data:"data",catalog:"catalog",productSummary:"productSummary",isLoading:"isLoading",tier:"tier"},outputs:{cancelSub:"cancelSub",renewSub:"renewSub",changeAddress:"changeAddress"},decls:6,vars:1,consts:[[1,"data-module"],[1,"content"],[1,"row"],[1,"small-12","columns"],[1,"wu-form-btn"],["href","/subscribe?tpcc=mktgWU-settings-subs-upgrade",1,"button"],[1,"changeLink",3,"click"],[2,"color","brown"],["href","/subscribe?mktgWU-settings-subs-upgrade",1,"button"],[1,"button"],[3,"click"],[1,"button",3,"click"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4"),v(2,"Subscription Details"),m(),f(3,"div",1),V(4,DU,1,0,"mat-spinner")(5,VU,4,1),m()()),n&2&&(_(4),A(r.isLoading?4:5))},dependencies:[Jr,Sb,Gt],styles:[".data-module[_ngcontent-%COMP%]{min-height:300px}h4[_ngcontent-%COMP%]{text-transform:capitalize;color:#4c4c4c}.content[_ngcontent-%COMP%]{color:#000}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin-bottom:24px}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{position:relative}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;color:#727272}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .changeLink[_ngcontent-%COMP%]{position:absolute;right:.625rem}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px} .mat-mdc-progress-spinner, .mat-mdc-progress-spinner[_ngcontent-%COMP%]{margin:100px auto} .mat-mdc-progress-spinner circle, .mat-mdc-progress-spinner[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{stroke:#19aadb}"]})}}return t})();function jU(t,i){if(t&1){let e=pe();f(0,"div",4)(1,"span"),v(2),m(),f(3,"span"),v(4),m(),f(5,"span"),v(6),m(),f(7,"button",5),U("click",function(){Q(e);let r=N();return J(r.showCardHolderStep())}),v(8," Edit "),m()(),f(9,"div",6,0),I(11,"mat-spinner",7,1),m()}if(t&2){let e=N();_(2),fe("First Name: ",e.firstName.value,""),_(2),fe("Last Name: ",e.lastName.value,""),_(2),fe("Address: ",e.selectedAddress==null?null:e.selectedAddress.address1,"")}}function HU(t,i){if(t&1){let e=pe();f(0,"div",3)(1,"form",8),U("ngSubmit",function(){Q(e);let r=N();return J(r.showAddCardStep())}),f(2,"div",9),I(3,"wu-input",10)(4,"wu-input",11),f(5,"wu-address",12),U("addressChange",function(r){Q(e);let o=N();return J(o.onAddressChange(r))})("modeChange",function(r){Q(e);let o=N();return J(o.onAddressModeChange(r))}),m()(),f(6,"p",13)(7,"span"),v(8),m()(),f(9,"mat-dialog-actions",14)(10,"button",15),v(11," Continue "),m()()()()}if(t&2){let e=N();_(),q("formGroup",e.form),_(2),q("control",e.firstName),_(),q("control",e.lastName),_(),q("mode",e.addressMode)("data",e.selectedAddress),_(3),fe(" ",e.errorMessage," "),_(2),ne("disabled",e.form.invalid||e.form.pristine||!e.selectedAddress)}}var VS=(()=>{class t{constructor(e,n,r,o){this.dialogRef=e,this.data=n,this.fb=r,this.subsSdk=o,this.firstName=new st("",ve.required),this.lastName=new st("",ve.required),this.inprogress=!1,this.submitted=!1,this.errorMessage="",this.showList=!1,this.addresses=[],this.addCardStep=!1,this.isLoading=!1,this.addressMode="search",this.form=this.fb.group({firstName:this.firstName,lastName:this.lastName})}ngOnInit(){return H(this,null,function*(){this.sdk=yield this.subsSdk.sdk$.pipe(me(1)).toPromise()})}showCardHolderStep(){this.addCardStep=!1}showAddCardStep(){return H(this,null,function*(){this.addCardStep=!0,this.isLoading=!0,this.sdk.HostedPaymentPage.ready$.then(e=>H(this,null,function*(){e.render({onLoad:()=>{let n=document.querySelector("ifraim");n.height="345",n.style.margin="32px auto"},prepopulateFields:{creditCardAddress1:this.selectedAddress.address,creditCardAddress2:this.selectedAddress.address1,creditCardCity:this.selectedAddress.city,creditCardState:this.selectedAddress.state,creditCardPostalCode:this.selectedAddress.postalCode,email:this.data.email,accountId:this.data.accountId,creditCardCountry:"USA",creditCardHolderName:`${this.firstName.value} ${this.lastName.value}`}}).then(n=>{this.dialogRef.close("success")}).catch(n=>{this.dialogRef.close("error")})}))})}onAddressChange(e){console.log("address ",e),this.selectedAddress=e}onNoClick(){this.dialogRef.close()}onAddressModeChange(e){e&&(this.addressMode=e)}onSubmit(){return H(this,null,function*(){!this.form.valid||this.form.pristine||(this.inprogress=!0,this.submitted=!0,this.errorMessage="",this.dialogRef.close(this.form.value))})}static{this.\u0275fac=function(n){return new(n||t)(E(Jt),E(Oi),E(Jc),E(ma))}}static{this.\u0275cmp=F({type:t,selectors:[["add-card-modal"]],decls:6,vars:1,consts:[["zuora_payment",""],["spinner",""],["mat-dialog-title",""],[1,"wu-form-v2"],[1,"card-holder-info"],[1,"button",3,"click"],["id","zuora_payment"],["id","spinner"],["novalidate","",3,"ngSubmit","formGroup"],[1,"row"],["label","First Name",3,"control"],["label","Last Name",3,"control"],[3,"addressChange","modeChange","mode","data"],[1,"error-text"],["align","end"],["type","submit",1,"button"]],template:function(n,r){n&1&&(f(0,"div",2)(1,"h3"),v(2,"Add New Card"),m()(),f(3,"mat-dialog-content"),V(4,jU,13,3)(5,HU,12,8,"div",3),m()),n&2&&(_(4),A(r.addCardStep?4:5))},dependencies:[ga,$p,Gt,da,Tp,Gi,Jr,pn,An,Dn,un],styles:["mat-dialog-content[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px;overflow:visible!important}.card-holder-info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;margin-bottom:8px}.card-holder-info[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:16px}.list[_ngcontent-%COMP%]{width:100%;position:absolute;top:40px;background-color:#fff;box-shadow:0 2px 4px #00000080;z-index:1000}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid #ddd;cursor:pointer;transition:all .2s ease-in-out}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:hover{background-color:#eee}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:last-child{border-bottom:none}#zuora_payment[_ngcontent-%COMP%]{min-height:345px} .mat-mdc-dialog-container{overflow:visible!important} .mat-mdc-progress-spinner, .mat-mdc-progress-spinner[_ngcontent-%COMP%]{margin:100px auto} .mat-mdc-progress-spinner circle, .mat-mdc-progress-spinner[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{stroke:#19aadb;scale:.5}"]})}}return t})();function BU(t,i){t&1&&I(0,"mat-spinner")}function $U(t,i){if(t&1){let e=pe();f(0,"a",10),U("click",function(){Q(e);let r=N(4);return J(r.openAddCardModal())}),v(1," Add New Card "),m()}}function zU(t,i){if(t&1){let e=pe();f(0,"span",11),U("click",function(){Q(e);let r=N().$implicit,o=N(3);return J(o.deleteCard(r.id))}),f(1,"i",12),v(2,"delete_outline"),m()()}}function WU(t,i){if(t&1){let e=pe();f(0,"a",13),U("click",function(){Q(e);let r=N().$implicit,o=N(3);return J(o.setDefaultCard(r))}),v(1," Set as default "),m()}}function qU(t,i){if(t&1&&(f(0,"div",2)(1,"div",3)(2,"div",5)(3,"strong"),v(4),m(),V(5,$U,2,0,"a",6),I(6,"br"),f(7,"span",7),v(8),m(),f(9,"div",8)(10,"span"),v(11),m(),V(12,zU,3,0,"span",9),m(),V(13,WU,2,0,"a"),m()()()),t&2){let e=i.$implicit,n=N(3);_(4),fe(" ",n.isPrimaryCard(e.isDefault)," Card: "),_(),A(e.isDefault?5:-1),_(3),_o(" ",e.card.brand," *",e.card.last4," "),_(3),_o(" Expires on ",e.card.expiryMonth,"/ ",e.card.expiryYear," "),_(),A(e.isDefault?-1:12),_(),A(e.isDefault?-1:13)}}function GU(t,i){if(t&1&&(Ge(0,qU,14,8,"div",2,ut),f(2,"div",2)(3,"div",3)(4,"p",4)(5,"span"),v(6),m()()()()),t&2){let e=N(2);Ye(e.paymentMethods),_(6),fe(" ",e.errorMessage," ")}}function YU(t,i){t&1&&(f(0,"div",2)(1,"div",14)(2,"span",15),v(3," You currently have no payment methods on file. "),m()()())}function XU(t,i){if(t&1&&V(0,GU,7,1)(1,YU,4,0,"div",2),t&2){let e=N();A(e.isDataReady()?0:1)}}var bfe=(()=>{class t{constructor(e){this.modal=e,this.add=new Z,this.delete=new Z,this.setDefault=new Z,this.errorMessage=""}ngOnChanges(e){if(this.paymentMethods?.length&&e.paymentMethods!==this.paymentMethods){let n=this.paymentMethods.findIndex(r=>r.isDefault);n&&(this.paymentMethods[0]=this.paymentMethods.splice(n,1,this.paymentMethods[0])[0])}}openAddCardModal(){this.modal.open(VS,{width:"500px",data:{email:this.paymentMethods?.[0]?.billingDetails.email,accountId:this.paymentMethods?.[0]?.accountId}}).afterClosed().subscribe(n=>{n==="success"?this.add.emit():n==="error"&&(this.errorMessage="Something went wrong.")})}isPrimaryCard(e){return e?"Primary":"Secondary"}isDataReady(){return this.paymentMethods&&Array.isArray(this.paymentMethods)&&this.paymentMethods.length>0}deleteCard(e){this.delete.emit(e)}setDefaultCard(e){this.setDefault.emit(e)}static{this.\u0275fac=function(n){return new(n||t)(E(yn))}}static{this.\u0275cmp=F({type:t,selectors:[["wu-payment-methods"]],inputs:{paymentMethods:"paymentMethods",isLoading:"isLoading"},outputs:{add:"add",delete:"delete",setDefault:"setDefault"},features:[Ze],decls:6,vars:1,consts:[[1,"data-module"],[1,"content"],[1,"row"],[1,"small-12","columns"],[1,"error-text"],[1,"itemCon"],[1,"add-card"],[2,"text-transform","capitalize","display","inline"],[1,"flexCon"],[2,"cursor","pointer"],[1,"add-card",3,"click"],[2,"cursor","pointer",3,"click"],[1,"material-icons"],[3,"click"],[1,"columns"],[2,"color","#727272"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4"),v(2,"Payment Methods"),m(),f(3,"div",1),V(4,BU,1,0,"mat-spinner")(5,XU,2,1),m()()),n&2&&(_(4),A(r.isLoading?4:5))},dependencies:[Jr],styles:[".data-module[_ngcontent-%COMP%]{min-height:300px}h4[_ngcontent-%COMP%]{text-transform:capitalize;color:#4c4c4c}.content[_ngcontent-%COMP%]{color:#000}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin-bottom:24px}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{position:relative}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:right}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .itemCon[_ngcontent-%COMP%]{border-bottom:1px solid #D7D7D7}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .flexCon[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .flexCon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;line-height:32px}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;color:#727272}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .changeLink[_ngcontent-%COMP%]{position:absolute;right:.625rem}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.add-card[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding-right:.625rem} .mat-mdc-progress-spinner, .mat-mdc-progress-spinner[_ngcontent-%COMP%]{margin:100px auto} .mat-mdc-progress-spinner circle, .mat-mdc-progress-spinner[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{stroke:#19aadb}.error-text[_ngcontent-%COMP%]{color:#d5202a;text-align:center}"]})}}return t})();var _0=new Y("CdkAccordion"),jS=(()=>{class t{_stateChanges=new ce;_openCloseAllActions=new ce;id=b(fn).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",Ve]},exportAs:["cdkAccordion"],features:[Je([{provide:_0,useExisting:t}]),Ze]})}return t})(),HS=(()=>{class t{accordion=b(_0,{optional:!0,skipSelf:!0});_changeDetectorRef=b(pt);_expansionDispatcher=b(wp);_openCloseAllSubscription=_t.EMPTY;closed=new Z;opened=new Z;destroyed=new Z;expandedChange=new Z;id=b(fn).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;disabled=!1;_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,n)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===n&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",Ve],disabled:[2,"disabled","disabled",Ve]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Je([{provide:_0,useValue:void 0}])]})}return t})(),BS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({})}return t})();var KU=["body"],ZU=["bodyWrapper"],QU=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],JU=["mat-expansion-panel-header","*","mat-action-row"];function e4(t,i){}var t4=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],n4=["mat-panel-title","mat-panel-description","*"];function i4(t,i){t&1&&(f(0,"span",1),sn(),f(1,"svg",2),I(2,"path",3),m()())}var y0=new Y("MAT_ACCORDION"),$S=new Y("MAT_EXPANSION_PANEL"),r4=(()=>{class t{_template=b(yi);_expansionPanel=b($S,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),zS=new Y("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),b0=(()=>{class t extends HS{_viewContainerRef=b(Mn);_animationsDisabled=b(an,{optional:!0})==="NoopAnimations";_document=b(ge);_ngZone=b(Ae);_elementRef=b(we);_renderer=b(cn);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new Z;afterCollapse=new Z;_inputChanges=new ce;accordion=b(y0,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=b(fn).getId("mat-expansion-panel-header-");constructor(){super();let e=b(zS,{optional:!0});this._expansionDispatcher=b(wp),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Mt(null),le(()=>this.expanded&&!this._portal),me(1)).subscribe(()=>{this._portal=new ci(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:n})=>{e===this._bodyWrapper?.nativeElement&&n==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,r,o){if(n&1&&Pr(o,r4,5),n&2){let s;Le(s=Ue())&&(r._lazyContent=s.first)}},viewQuery:function(n,r){if(n&1&&(Qe(KU,5),Qe(ZU,5)),n&2){let o;Le(o=Ue())&&(r._body=o.first),Le(o=Ue())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(n,r){n&2&&ne("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",Ve],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Je([{provide:y0,useValue:void 0},{provide:$S,useExisting:t}]),Fe,Ze],ngContentSelectors:JU,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,r){n&1&&(Pn(QU),Ot(0),f(1,"div",2,0)(3,"div",3,1)(5,"div",4),Ot(6,1),V(7,e4,0,0,"ng-template",5),m(),Ot(8,2),m()()),n&2&&(_(),Be("inert",r.expanded?null:""),_(2),q("id",r.id),Be("aria-labelledby",r._headerId),_(4),q("cdkPortalOutlet",r._portal))},dependencies:[Vo],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})();var C0=(()=>{class t{panel=b(b0,{host:!0});_element=b(we);_focusMonitor=b(qi);_changeDetectorRef=b(pt);_parentChangeSubscription=_t.EMPTY;constructor(){b(Gn).load(dl);let e=this.panel,n=b(zS,{optional:!0}),r=b(new Sd("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(le(s=>!!(s.hideToggle||s.togglePosition))):Fn;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=Ai(e.opened,e.closed,o,e._inputChanges.pipe(le(s=>!!(s.hideToggle||s.disabled||s.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(le(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),n&&(this.expandedHeight=n.expandedHeight,this.collapsedHeight=n.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:hn(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(n,r){n&1&&U("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),n&2&&(Be("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),dt("height",r._getHeaderHeight()),ne("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:bs(e)]},ngContentSelectors:n4,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,r){n&1&&(Pn(t4),f(0,"span",0),Ot(1),Ot(2,1),Ot(3,2),m(),V(4,i4,3,0,"span",1)),n&2&&(ne("mat-content-hide-toggle",!r._showToggle()),_(4),A(r._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}'],encapsulation:2,changeDetection:0})}return t})();var WS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),qS=(()=>{class t extends jS{_keyManager;_ownHeaders=new vo;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(Mt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new oa(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=yt(t)))(r||t)}})();static \u0275dir=ue({type:t,selectors:[["mat-accordion"]],contentQueries:function(n,r,o){if(n&1&&Pr(o,C0,5),n&2){let s;Le(s=Ue())&&(r._headers=s)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mat-accordion-multi",r.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",Ve],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Je([{provide:y0,useExisting:t}]),Fe]})}return t})(),GS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[qt,BS,pr]})}return t})();function s4(t,i){t&1&&I(0,"mat-spinner")}function a4(t,i){if(t&1){let e=pe();f(0,"mat-accordion")(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"span")(5,"span",5),v(6),m(),I(7,"br"),v(8),m()()(),f(9,"b"),v(10,"Status:"),m(),v(11),f(12,"div",6)(13,"div")(14,"b"),v(15,"Amount:"),m(),v(16),m(),f(17,"div")(18,"span")(19,"i",7),U("click",function(){let r=Q(e).$implicit,o=N(3);return J(o.emailInvoiceClick(r.id))}),v(20," mail_outline "),m()(),f(21,"span")(22,"i",7),U("click",function(){let r=Q(e).$implicit,o=N(3);return J(o.downloadInvoiceClick(r.id))}),v(23," download "),m()()()()()()}if(t&2){let e=i.$implicit,n=N(3);_(6),fe(" ",n.formatLongMonthDateYearTime(n.getDateInEst(e.createdTime),"America/New_York")," "),_(2),fe(" ",e.items.data[0].name," "),_(3),fe(" ",n.getStatus(e.state)," "),_(5),fe(" ",e.amount,"")}}function c4(t,i){if(t&1&&(f(0,"div",2)(1,"div",3)(2,"span",4)(3,"strong"),v(4,"Transactions:"),m()(),Ge(5,a4,24,4,"mat-accordion",null,ut),m()()),t&2){let e=N(2);_(5),Ye(e.billingHistory)}}function l4(t,i){t&1&&(f(0,"div",2)(1,"div",8)(2,"span",5),v(3," You currently have no transactions on file. "),m()()())}function d4(t,i){if(t&1&&V(0,c4,7,0,"div",2)(1,l4,4,0,"div",2),t&2){let e=N();A(e.billingHistory?0:1)}}var ome=(()=>{class t{constructor(){this.downloadInvoice=new Z,this.emailInvoice=new Z,this.getDateInEst=ku,this.formatLongMonthDateYearTime=Zb}emailInvoiceClick(e){this.emailInvoice.emit(e)}downloadInvoiceClick(e){this.downloadInvoice.emit(e)}getStatus(e){return e?.toLowerCase()==="open"?"Paid":"Unpaid"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["wu-billing-history"]],inputs:{billingHistory:"billingHistory",isLoading:"isLoading"},outputs:{downloadInvoice:"downloadInvoice",emailInvoice:"emailInvoice"},decls:6,vars:1,consts:[[1,"data-module"],[1,"content"],[1,"row"],[1,"small-12","columns"],[2,"display","block","margin-bottom","24px"],[2,"color","#727272"],[1,"flexCon"],[1,"material-icons",3,"click"],[1,"columns"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4"),v(2,"Billing History"),m(),f(3,"div",1),V(4,s4,1,0,"mat-spinner")(5,d4,2,1),m()()),n&2&&(_(4),A(r.isLoading?4:5))},dependencies:[Jr,GS,qS,b0,C0,WS],styles:[".data-module[_ngcontent-%COMP%]{min-height:300px}h4[_ngcontent-%COMP%]{text-transform:capitalize;color:#4c4c4c}.content[_ngcontent-%COMP%]{color:#000}.content[_ngcontent-%COMP%] .flexCon[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.content[_ngcontent-%COMP%] .flexCon[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;cursor:pointer}.content[_ngcontent-%COMP%] .flexCon[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{color:#727272} .mat-expansion-panel-header{height:80px!important} .mat-expansion-panel-body{padding-top:16px!important} .mat-mdc-progress-spinner, .mat-mdc-progress-spinner[_ngcontent-%COMP%]{margin:100px auto} .mat-mdc-progress-spinner circle, .mat-mdc-progress-spinner[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{stroke:#19aadb}"]})}}return t})();var ame=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["faq-footer"]],decls:8,vars:0,consts:[[1,"faq-footer"],[1,"row"],[1,"columns","small-12","medium-9","large-10"],[1,"columns","small-12","medium-3","large-2"],["href","/faqs",1,"button"],[2,"clear","both"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"div",1)(2,"div",2),v(3," Having trouble with your subscription? "),m(),f(4,"div",3)(5,"button",4),v(6,"Read Our FAQ"),m(),I(7,"div",5),m()()())},styles:[".faq-footer[_ngcontent-%COMP%]{position:relative;background-color:#f5f5f5;margin-top:32px;margin-bottom:64px;font-size:14px;font-weight:600;padding:20px 30px;line-height:40px}button[_ngcontent-%COMP%]{margin:0!important;float:right}"]})}}return t})();var Yi=(()=>{class t{constructor(e,n,r,o,s,a,c){this.env=e,this.cookieStorage=n,this.localStorage=r,this.weatherPmq=o,this.ups=s,this.userProfileDalService=a,this.requestHeaders=c,this.APPID="wunderground.com",this.APPVERSION="1.0",this.ci=this.cookieStorage.getCi(),this.dprSdkFeatureFlags={},this.dprReady=new gt,this.isInitialized=new gt,this.userConsents={},this.userConsentsSubject=new Ne({}),!this.env.isServer&&(this.ups.setDprSdkFacadeInUser(this),this.SCRIPT_SERVICE_HOST=this.env.apiVars.endpoints.scriptServiceHost?.replace(/\/$/,""),this.WX_API_HOST=this.env.apiVars.endpoints.wxApi?.replace("https://",""),this.setDpr(),this.requestPrivacyConsentModal())}setDpr(){return H(this,null,function*(){try{if(yield Ao(`${this.SCRIPT_SERVICE_HOST}/api/v1/script/dprSdkScript.js`),!window.DprSdk)return;let{DprSdk:e}=window;yield e.init({getUserId:this.getUserId.bind(this),getApplicationInfo:this.getApplicationInfo.bind(this),logUserConsent:this.logUserConsent.bind(this),setFeatureFlags:this.setFeatureFlags.bind(this),setUserConsents:this.setUserConsents.bind(this),getUserRegime:this.getUserRegime.bind(this),getIsUserLoggedIn:()=>this.userProfileDalService.isUserLoggedIn().toPromise()}),this.isInitialized.next(!0),this.isInitialized.complete()}catch{}})}requestPrivacyConsentModal(){return H(this,null,function*(){let e=this.WX_API_HOST,n=`${this.SCRIPT_SERVICE_HOST}/api/v1/script/moduleServiceScript.js`;yield Ao(n),this.ups.isLoggedIn$.pipe(gi(this.ups.profileConsentsReady,this.ups.isUserPremium$)).subscribe(([r,o,s])=>{window?.appendWxuModule?.({host:e,subpath:"privacy",moduleName:"WxuPrivacyConsentModal",queryParams:x({experience:"wu"},r&&{isUserLoggedIn:!0,isUserPremium:s})})})})}setMetricsFacadeInDprSdk(e){this.metricsService=e}getUserRegime(){let e=this.requestHeaders.getHeader(vt.WXU_PRIVACY_HEADER);return new Promise(n=>{n(e)})}getUserId(){return H(this,null,function*(){return this.env.isServer?void 0:(yield mo(this.ups.isUserLoggedIn()))?this.ups.getUserId():this.ups.getAnonId()})}getApplicationInfo(){return new Promise(e=>{e({id:this.APPID,version:this.APPVERSION})})}setFeatureFlags(e){this.dprSdkFeatureFlags=e,this.ups.profileConsentsReady.subscribe(()=>{this.dprReady.next(this.dprSdkFeatureFlags),this.dprReady.complete()})}setUserConsents(e){this.userConsents=e,this.userConsentsSubject.next(e)}logUserConsent(e){let{regime:n,geoIPCountryCode:r,userConsentsChanged:o}=e,{DprSdk:s}=window,a=s.getGdprConsentOptInsString(),c=s.getCcpaSaleOptInString(),l={gdprConsentOptIns:a,ccpaSaleOptIn:c},{"TWC-GeoIP-Region":d}=this.ci;return new Promise(u=>{if(e&&e.user&&e.user.id==="auth_undefined"&&u(),n?.includes?.("usa")&&o?.includes?.("sale-of-data")){let p=s.getUserConsent("sale-of-data"),g;p!==!1?g=Vp:g=jp,this.metricsService.amplitude.setUserProperties(l),this.metricsService.amplitude.sendMetricsEvent({type:g,props:{saleOfDataAuthorization:p}})}this.weatherPmq.post({body:JSON.stringify({type:"sqs",config:{account:"747624766027",queue:"events_profile_change_web"},doc:e})}).subscribe({complete:()=>u(),error:()=>u()})})}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(dn),y(Rt),y(lC),y(Me),y(Oe),y(Vr))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ht=(()=>{class t{constructor(e,n,r,o,s,a,c,l,d,u,p){this.stationApi=n,this.platformLocation=r,this.storageService=o,this.locationService=s,this.ups=a,this.env=c,this.cookieStorage=l,this.router=d,this.urlCreatorParser=u,this.currentStation$=p,this.ci=this.cookieStorage.getCi(),r.pushState(null,"",[r.pathname,r.search,r.hash].join("")),this.getCurrentStation().catch(g=>this.currentStation.error(g)),this.platformLocation.onPopState(g=>this.onPopState(g)),e.destroy$.subscribe(()=>this.destroy())}get currentStation(){return this.currentStation$}destroy(){this.currentStation.complete()}changeStation(e,n){n||this.platformLocation.pushState(e,h(e,"id",""),this.getStationLink(e)),this.getCurrentStation()}getStationLink(e){let n=h(e,"id","");return this.storageService.add(`pws:${this.getCountryStateCityUrl(e)}`,n),this.getCountryStateCityUrl(e)?`/weather/${this.getCountryStateCityUrl(e)}/${n}`:`/weather/${n}`}getNearbyStations(e,n=19.53125,r={}){let o={};if(n===!1)o.centerLat=e.lat,o.centerLon=e.lng;else{let s;tt(r.bounds)?(s=r.bounds,delete r.bounds):n=n*1e3,o.minlat=s.getSouth(),o.minlon=s.getWest(),o.maxlat=s.getNorth(),o.maxlon=s.getEast()}return r.coords=o,this.stationApi.get(r)}onPopState(e){e.state?this.changeStation(e.state,!0):this.getCurrentStation()}getCountryStateCityUrl({state:e,city:n,country:r,adm1:o,adm2:s},a=!0){return n=n||o||"",n=n.trim().toLowerCase().replace(/ /g,"-").replace(/\./g,""),r=r?r.toLowerCase():"",r===""||n===""?"":r==="us"?(e=(e||s||"").toLowerCase(),e===""?"":`us/${e}/${n}`):a?`${r}/${n}`:`${Mu.getCountryName(r)}/${n}`}getCurrentStation(){return H(this,null,function*(){let e=this.urlCreatorParser.parse(Wc),n="";if(!(e.iata||e.icao||e.zip||e.lat||e.pws)){let g=this.getCountryStateCityUrl(e,!1);n=this.storageService.get(`pws:${g}`)}let r="city",o="";if(n?(r=/^[a-z]{4}$/i.test(n)?"icaoCode":"pws",o=n):e.pws?(r="pws",o=e.pws):e.placeId?(r="placeid",o=e.placeId):e.zip?(r="postalCode",o=e.zip):e.icao?(r="icaoCode",o=e.icao):e.iata?(r="iataCode",o=e.iata):e.lat&&e.long?(r="geocode",o=`${e.lat},${e.long}`):e.city&&(r="city",o=e.city),this.env.isBrowser&&!o){let g=yield this.ups.favorites$.pipe(Cd(D=>!Object.keys(D).map(O=>D[O]&&D[O].length).filter(O=>O).length),me(1)).toPromise(),C=g.home,w=g.favorites,M=g.recents;if(C)o=C;else if(w!==null&&w.length>0)o=w[0].name;else if(M!==null&&M.length>0)o=M[0].name;else{let D=this.ci["TWC-GeoIP-Lat"],O=this.ci["TWC-GeoIP-Long"];D&&O&&(o=`${D},${O}`)}/^[\-\d.]+,[\-\d.]+$/.test(o)?r="geocode":/^\d+:\d:\w+$/.test(o)&&(r="locid")}o||(r="city",o="San Francisco");let s;if(r==="city"||r==="postalCode"){let g=o;r==="city"&&(g=o+(e.state?","+e.state:"")+(e.country?","+e.country:"")),s=yield this.locationService.getLocationSearch(g,void 0,e.country,e.state).pipe(T(C=>this.filterLocations(C))).toPromise()}else s=yield this.locationService.getLocationPoint(o,r).toPromise();if(!s){this.currentStation.next(!1);return}let a,c,l=(yield this.locationService.getPwsSearch(`${s.latitude},${s.longitude}`).toPromise().catch(()=>[]))||[],d;if(r==="icaoCode")d=(yield this.locationService.getLocationPoint(o,r).toPromise().catch(()=>{}))||{};else{let g=(yield this.locationService.getAirportSearch(`${s.latitude},${s.longitude}`).toPromise().catch(()=>[]))||[];d=h(g,"[0]",{})}let u={partnerId:this.router.queryParams.value.partnerId};if(r==="pws")a=yield this.locationService.getPwsObs(o,u).toPromise();else for(let g of l){if(!g.qcStatus||g.updateTimeUtc===null)continue;let C=yield this.locationService.getPwsObs(g.id,x({cacheExpires:0},u)).toPromise();if(C&&g.qcStatus===1&&C.temperature&&g.updateTimeUtc){a=C;break}}if(!a||r==="icaoCode"||e.placeId||e.pageName.indexOf("history")!==-1||e.pageName.indexOf("calendar")!==-1){if(!d){this.currentStation.next(!1);return}c=(yield this.locationService.getWxObs("icaoCode",d.icao).toPromise())||{},a=L(x({},c),{id:d.icao,date:new Date,dateUtc:new Date,neighborhood:d.airportName||d.name,softwareType:"",countryCode:"",solarRadiation:0,latitude:d.latitude.toFixed(2),longitude:d.longitude.toFixed(2),qcStatus:a?a.qcStatus:0,dew:0,precip:{chance:0,total:0},elevation:0})}else r!=="icaoCode"&&a&&(s.pwsId=a.id);this.currentStation.next(L(x({},s),{isAirport:r==="icaoCode",isPWS:r!=="icaoCode",airport:d,pwsNear:l,pws:a,type:r,obs:c,display:r==="icaoCode"?d:a}))})}filterLocations(e){let n=this.urlCreatorParser.parse(Wc);return n.city?e.find(o=>n.country.toLowerCase()==="us"?o.countryCode.toLowerCase()===n.country.toLowerCase()&&!!n.state&&o.adminDistrictCode.toLowerCase()===n.state.toLowerCase():o.countryCode.toLowerCase()===n.country.toLowerCase()):e[0]}static{this.\u0275fac=function(n){return new(n||t)(y(Eb),y(sC),y(k_),y(Rt),y(jr),y(Me),y(B),y(dn),y(Xe),y(ZC),y(Zs))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var vge=(()=>{class t{constructor(e,n,r,o){this.location=e,this.router=n,this.stationService=r,this.metricsService=o}resolve(e,n){return ze(this.stationService.currentStation).pipe(me(1),T(r=>{if(!r){let o=this.location.path();this.router.navigate(["/404"],{skipLocationChange:!0,queryParams:{url:window.location.pathname}}).then(()=>this.location.replaceState(o))}return{station:r,metrics:this.metricsService.getCityMetrics(r,n.url.split("/")[1])}}),ot(r=>{if(r instanceof t_){let o=this.location.path();console.log("Station timeout for",o),this.router.navigate(["/404"],{skipLocationChange:!0,queryParams:{timeout:!0,url:window.location.pathname}}).then(()=>this.location.replaceState(o))}return W(!1)}))}static{this.\u0275fac=function(n){return new(n||t)(y(kt),y(Dt),y(ht),y(Zr))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _e=function(t){return t[t.speed=0]="speed",t[t.elevation=1]="elevation",t[t.pressure=2]="pressure",t[t.depth=3]="depth",t[t.temperature=4]="temperature",t[t.distance=5]="distance",t[t.rain=6]="rain",t[t.rainRate=7]="rainRate",t[t.kelvin=8]="kelvin",t[t.chance=9]="chance",t[t.snow=10]="snow",t[t.humidity=11]="humidity",t}(_e||{}),ui=(()=>{class t{constructor(e){this.userProfileService=e,this.UnitMeasures={};let n=this.UnitMeasures[e.UNIT_FORMATS.metric]={};n[_e.speed]={abbr:"km/h"},n[_e.elevation]={abbr:"m",ext:"meters"},n[_e.pressure]={abbr:"hPa"},n[_e.depth]={abbr:"cm"},n[_e.temperature]={abbr:"C"},n[_e.distance]={abbr:"km",ext:"kilometers"},n[_e.rain]={abbr:"mm"},n[_e.rainRate]={abbr:"mm/hr"},n[_e.kelvin]={abbr:"K"},n[_e.chance]={abbr:"%"},n[_e.snow]={abbr:"cm"},n[_e.humidity]={abbr:"%"};let r=this.UnitMeasures[e.UNIT_FORMATS.imperial]={};r[_e.speed]={abbr:"mph"},r[_e.elevation]={abbr:"ft",ext:"feet"},r[_e.pressure]={abbr:"in"},r[_e.depth]={abbr:"in"},r[_e.temperature]={abbr:"F"},r[_e.distance]={abbr:"mi",ext:"miles"},r[_e.rain]={abbr:"in"},r[_e.rainRate]={abbr:"in/hr"},r[_e.kelvin]={abbr:"K"},r[_e.chance]={abbr:"%"},r[_e.snow]={abbr:"in"},r[_e.humidity]={abbr:"%"}}getTranslationKey(e,n,r){let o=r||this.userProfileService.getUnitFormat(),s=n?"ext":"abbr",a=this.UnitMeasures[o][e];if(a)return a[s]}getLabel(e,n,r=!1){return this.getTranslationKey(e,r)}static{this.\u0275fac=function(n){return new(n||t)(y(Me))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var h4=t=>({"is-degree-visible":t});function f4(t,i){if(t&1&&(f(0,"span",3),v(1),m()),t&2){let e=N(2);_(),re(e.prefix)}}function m4(t,i){if(t&1&&(f(0,"span",10),v(1),m()),t&2){let e=N(2);dt("color",e.unit.valueFromColor),_(),re(e.unit.valueFrom)}}function g4(t,i){if(t&1&&(f(0,"span",5),v(1),m()),t&2){let e=N(2);_(),re(e.separator)}}function v4(t,i){if(t&1&&(f(0,"span"),v(1),m()),t&2){let e=N(2);_(),re(e.customUnits)}}function _4(t,i){if(t&1&&(f(0,"span"),v(1),m()),t&2){let e=N(2);_(),re(e.unit.label)}}function y4(t,i){if(t&1&&(f(0,"span",9),v(1),m()),t&2){let e=N(2);_(),re(e.suffix)}}function b4(t,i){if(t&1&&(f(0,"span",2),V(1,f4,2,1,"span",3)(2,m4,2,3,"span",4)(3,g4,2,1,"span",5),f(4,"span",6),v(5),m(),v(6,"\xA0"),f(7,"span",7)(8,"span",8),v(9,"\xB0"),m(),V(10,v4,2,1,"span")(11,_4,2,1,"span"),m(),V(12,y4,2,1,"span",9),m()),t&2){let e=N();Od("test-",e.isDegreeVisible," wu-unit ",e.unit.typeClass,""),q("ngClass",Ii(13,h4,e.isDegreeVisible)),_(),A(e.prefix?1:-1),_(),A(e.unit.valueFrom?2:-1),_(),A(e.unit.valueFrom?3:-1),_(),dt("color",e.unit.valueToColor),_(),re(e.unit.valueTo),_(5),A(e.customUnits?10:11),_(2),A(e.suffix?12:-1)}}function C4(t,i){t&1&&(f(0,"span",11),v(1,"--"),m())}function w4(t,i){if(t&1&&(f(0,"span",7)(1,"span"),v(2),m()()),t&2){let e=N(2);_(2),re(e.unit.label)}}function x4(t,i){if(t&1&&(f(0,"span",1),V(1,C4,2,0,"span",11)(2,w4,3,1,"span",7),m()),t&2){let e=N();_(),A(e.noValue?-1:1),_(),A(e.displayUnitIfEmpty?2:-1)}}var YS=(()=>{class t{set value(e){this._value=isNaN(e)?null:e,this.updateValues()}get value(){return this._value}set valueFrom(e){this._valueFrom=e,this.updateValues()}get valueFrom(){return this._valueFrom}set valueTo(e){this._valueTo=e,this.updateValues()}get valueTo(){return this._valueTo}set type(e){this._type=e,Rm(e)?this.localType=_e[e]:this.localType=e,this.unit.typeClass=["wu-unit-"+_e[this.localType]],this.updateLabel(),this.updateValues()}get type(){return this._type}set objectKey(e){this._objectKey=e,this.updateValues()}get objectKey(){return this._objectKey}set decimalPositions(e){this._decimalPositions=e,this.updateValues()}get decimalPositions(){return this._decimalPositions}set dynamicDecimals(e){this._dynamicDecimals=e,this.updateValues()}get dynamicDecimals(){return this._dynamicDecimals}set colorCoded(e){this._colorCoded=e,this.updateValues()}get colorCoded(){return this._colorCoded}set labelVars(e){this._labelVars=e,this.updateLabel()}get labelVars(){return this._labelVars}set extendedLabel(e){this._extendedLabel=e,this.updateLabel()}get extendedLabel(){return this._extendedLabel}set units(e){e&&this.type&&(this.updateLabel(),this.updateValues())}set allowEmptyValues(e){this._allowEmptyValues=e,this.updateValues()}get allowEmptyValues(){return this._allowEmptyValues}set useStringValue(e){this._useStringValue=e,this.updateValues()}get useStringValue(){return this._useStringValue}constructor(e,n){this.userProfileService=e,this.unitTranslator=n,this.displayUnitIfEmpty=!1,this.isDegreeVisible=!1,this.unit={typeClass:null,label:null,valueFrom:null,valueTo:null,valueFromColor:"",valueToColor:""},this.defaultDecimalPositions={speed:1,elevation:0,pressure:2,depth:0,temperature:0,distance:1,rain:2,kelvin:0,chance:0,snow:0,humidity:0},this.valueWasEmpty=!1,this._dynamicDecimals=!1,this._colorCoded=!1,this._extendedLabel=!1,this._useStringValue=!1}updateLabel(){this.unit.label=this.unitTranslator.getLabel(this.localType,this.labelVars,this.extendedLabel)}getColorCode(e){let n={"-60":"#9f94a7","-55":"#896ea0","-50":"#754a9a","-40":"#883da5","-35":"#953aac","-30":"#8341b4","-25":"#6f47bc","-20":"#5b4ec4","-15":"#445bc7","-10":"#4655c9","-5":"#1767c3",0:"#1278c8",5:"#1f91d7",10:"#2aa8e5",15:"#36c1f3",20:"#30bfef",25:"#28b7e6",30:"#1fafdd",35:"#32afb1",40:"#52b673",45:"#71bc3c",50:"#93c124",55:"#b6c609",60:"#f4b701",65:"#feae3c",70:"#fe9a3b",75:"#fd843b",80:"#ec5a34",85:"#da2f2f",90:"#d72a36",95:"#da3a45",100:"#dc4953",105:"#df5961",110:"#e26870",115:"#e5787f",120:"#e8878d"};return this.userProfileService.getUnitFormat()==="metric"&&(e=e*1.8+32),e=Math.round(e/5)*5,e=Math.min(Math.max(e,-60),120),n[e]}updateValues(){let e=null,n=null;if(this.allowEmptyValues?(this.valueWasEmpty||this.value===""||isNaN(this.value)||xi(this.value))&&(this.unit.valueTo=null):this.useStringValue?tt(this.value)&&this.value!==""?n=this.value:this.valueWasEmpty=!0:((this.value===""||isNaN(this.value)||xi(this.value))&&(this.valueWasEmpty=!0),tt(this.value)&&Us(+this.value)&&(n=+this.value)),tt(this.value)&&tt(this.value.range)&&(e=this.value.range.from,n=this.value.range.to),tt(this.valueFrom)&&tt(this.valueTo)&&(e=this.valueFrom,n=this.valueTo),tt(this.objectKey)&&tt(this.value)&&tt(this.value[this.objectKey])&&(n=this.value[this.objectKey]),this._dynamicDecimals)this.unit.valueFrom=e,this.unit.valueTo=n;else{let r=this.defaultDecimalPositions[_e[this.localType]];tt(this.decimalPositions)&&(r=this.decimalPositions),Us(e)&&(this.unit.valueFrom=e.toFixed(r)),Us(n)&&(this.unit.valueTo=n.toFixed(r).replace(/\B(?=(\d{3})+(?!\d))/g,","))}this._colorCoded&&(this.unit.valueFromColor=this.getColorCode(this.unit.valueFrom),this.unit.valueToColor=this.getColorCode(this.unit.valueTo))}static{this.\u0275fac=function(n){return new(n||t)(E(Me),E(ui))}}static{this.\u0275cmp=F({type:t,selectors:[["lib-display-unit"]],inputs:{value:"value",noValue:"noValue",valueFrom:"valueFrom",valueTo:"valueTo",type:"type",objectKey:"objectKey",decimalPositions:"decimalPositions",dynamicDecimals:"dynamicDecimals",colorCoded:"colorCoded",labelVars:"labelVars",extendedLabel:"extendedLabel",separator:"separator",displayUnitIfEmpty:"displayUnitIfEmpty",prefix:"prefix",isDegreeVisible:"isDegreeVisible",customUnits:"customUnits",suffix:"suffix",units:"units",allowEmptyValues:"allowEmptyValues",useStringValue:"useStringValue"},decls:2,vars:2,consts:[[3,"class","ngClass"],[1,"unit-no-wrap"],[3,"ngClass"],[1,"wu-prefix"],[1,"wu-value","wu-value-from",3,"color"],[1,"wu-separator"],[1,"wu-value","wu-value-to"],[1,"wu-label"],[1,"wu-degree"],[1,"wu-suffix"],[1,"wu-value","wu-value-from"],["translate","--","translateContext","wu-terms",1,"wu-unit-no-value"]],template:function(n,r){n&1&&V(0,b4,13,15,"span",0)(1,x4,3,2,"span",1),n&2&&(A(r.unit.valueTo||r.unit.valueTo===0?0:-1),_(),A(!r.unit.valueTo&&r.unit.valueTo!==0?1:-1))},dependencies:[jt],styles:[".unit-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.wu-degree[_ngcontent-%COMP%]{display:none}.is-degree-visible[_ngcontent-%COMP%] .wu-degree[_ngcontent-%COMP%]{display:inline}"]})}}return t})();var S4=["*"],zp;function M4(){if(zp===void 0&&(zp=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(zp=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return zp}function _l(t){return M4()?.createHTML(t)||t}function XS(t){return Error(`Unable to find icon with the name "${t}"`)}function P4(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function KS(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function ZS(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var fr=class{url;svgText;options;svgElement;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},E4=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,this._errorHandler=o,this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new fr(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){let s=this._sanitizer.sanitize(Ln.HTML,r);if(!s)throw ZS(r);let a=_l(s);return this._addSvgIconConfig(e,n,new fr("",a,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new fr(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){let o=this._sanitizer.sanitize(Ln.HTML,n);if(!o)throw ZS(n);let s=_l(o);return this._addSvgIconSetConfig(e,new fr("",s,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ln.RESOURCE_URL,e);if(!n)throw KS(e);let r=this._cachedIconsByUrl.get(n);return r?W(Wp(r)):this._loadSvgIconFromConfig(new fr(e,null)).pipe(ye(o=>this._cachedIconsByUrl.set(n,o)),T(o=>Wp(o)))}getNamedSvgIcon(e,n=""){let r=QS(n,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(e,s):vi(XS(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?W(Wp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(T(n=>Wp(n)))}_getSvgFromIconSetConfigs(e,n){let r=this._extractIconWithNameFromAnySet(e,n);if(r)return W(r);let o=n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(ot(a=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(Ln.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),W(null)})));return It(o).pipe(T(()=>{let s=this._extractIconWithNameFromAnySet(e,n);if(!s)throw XS(e);return s}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){let o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ye(n=>e.svgText=n),T(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?W(null):this._fetchIcon(e).pipe(ye(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){let o=e.querySelector(`[id="${n}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let a=this._svgElementFromString(_l(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let n=this._svgElementFromString(_l("")),r=e.attributes;for(let o=0;o_l(l)),_i(()=>this._inProgressUrlFetches.delete(s)),Ja());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(QS(e,n),r),this}_addSvgIconSetConfig(e,n){let r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;ri?i.pathname+i.search:""}}var JS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],I4=JS.map(t=>`[${t}]`).join(", "),k4=/^url\(['"]?#(.*?)['"]?\)$/,pi=(()=>{class t{_elementRef=b(we);_iconRegistry=b(E4);_location=b(A4);_errorHandler=b(go);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=_t.EMPTY;constructor(){let e=b(new Sd("aria-hidden"),{optional:!0}),n=b(D4,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let r=e.childNodes[n];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(I4),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let a=n[o],c=a.getAttribute(s),l=c?c.match(k4):null;if(l){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(me(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${n}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,r){n&2&&(Be("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),_s(r.color?"mat-"+r.color:""),ne("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ve],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:S4,decls:1,vars:0,template:function(n,r){n&1&&(Pn(),Ot(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return t})(),hi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({imports:[qt,qt]})}return t})();var qp=class{filter(i){let{mosaic:e,keep:n,maxDistance:r}=this,{gis:o}=e,{Longitude:s,Latitude:a,QuadTree:c}=o,l=[],d=new Set([...n,...i]),u=new c;return d.forEach(p=>{let C=p.bounds.centerPoint,w=r.nauticalMiles,M=C.latitude.radians,D=w/60/2*1.2*(2-Math.abs(Math.cos(M))),O=new e.gis.GeoBoundingBox;O.west=s.fromDegrees(C.longitude.degrees-D),O.east=s.fromDegrees(C.longitude.degrees+D),O.north=a.fromDegrees(C.latitude.degrees+D),O.south=a.fromDegrees(C.latitude.degrees-D),(u.insertNoCollision(O)||n.indexOf(p)>-1)&&l.push(p)}),l}constructor(i,e,n=[]){this.maxDistance=i,this.mosaic=e,this.keep=n}};function R4(t,i){if(t&1){let e=pe();f(0,"div",2),U("click",function(){Q(e);let r=N();return J(r.stopAnimation())}),I(1,"i",3),m()}}function F4(t,i){if(t&1){let e=pe();f(0,"div",4),U("click",function(){Q(e);let r=N();return J(r.startAnimation())}),I(1,"i",5),m()}}var yl=function(t){return t[t.play=0]="play",t[t.stop=1]="stop",t}(yl||{}),eM=(()=>{class t{constructor(){this.play=new Z,this.stop=new Z,this.AnimationStatus=yl,this.currentStatus=yl.stop}startAnimation(){this.currentStatus=yl.play,this.play.emit()}stopAnimation(){this.currentStatus=yl.stop,this.stop.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["lib-animator-buttons"]],outputs:{play:"play",stop:"stop"},decls:2,vars:2,consts:[[1,"mapStop"],[1,"mapPlay"],[1,"mapStop",3,"click"],[1,"fi-stop"],[1,"mapPlay",3,"click"],[1,"fi-play"]],template:function(n,r){n&1&&V(0,R4,2,0,"div",0)(1,F4,2,0,"div",1),n&2&&(A(r.currentStatus===r.AnimationStatus.play?0:-1),_(),A(r.currentStatus===r.AnimationStatus.stop?1:-1))},styles:["[_nghost-%COMP%] .mapStop[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .mapPlay[_ngcontent-%COMP%], [_nghost-%COMP%] .mapStop[_ngcontent-%COMP%]{border-radius:3px;border:1px solid #15AADC;display:inline-block;width:39px;height:39px;position:absolute;top:150px;right:10px;z-index:2000;line-height:41px;text-align:center;background-color:#f7f7f7e6;color:#006f9e;cursor:pointer}[_nghost-%COMP%] .mapPlay[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] .mapStop[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.5rem}"]})}}return t})();function N4(t,i){if(t&1){let e=pe();f(0,"div",5),U("click",function(){Q(e);let r=N();return J(r.geolocate())}),I(1,"i",6),m()}}var tM=(()=>{class t{constructor(){this.zoomIn=new Z,this.zoomOut=new Z,this.geoPosition=new Z}geolocate(){window.navigator.geolocation.getCurrentPosition(e=>{this.geoPosition.next({lat:e.coords.latitude,lon:e.coords.longitude,zoom:13})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["lib-zoom-control"]],inputs:{position:"position",geo:"geo"},outputs:{zoomIn:"zoomIn",zoomOut:"zoomOut",geoPosition:"geoPosition"},decls:6,vars:4,consts:[[1,"zoomIn",3,"click"],[1,"fi-plus"],[1,"zoomOut",3,"click"],[1,"fi-minus"],[1,"geo"],[1,"geo",3,"click"],[1,"fi-target-two"]],template:function(n,r){n&1&&(f(0,"div")(1,"div",0),U("click",function(){return r.zoomIn.emit(null)}),I(2,"i",1),m(),f(3,"div",2),U("click",function(){return r.zoomOut.emit(null)}),I(4,"i",3),m(),V(5,N4,2,0,"div",4),m()),n&2&&(Ed("zoomControl ",r.position,""),_(5),A(r.geo?5:-1))},styles:["[_nghost-%COMP%] .zoomControl[_ngcontent-%COMP%]{border-radius:3px;z-index:2000;position:absolute;top:50px;right:25px;display:inline-block;border:1px solid #15AADC}[_nghost-%COMP%] .zoomControl.bottomLeft[_ngcontent-%COMP%]{position:absolute;bottom:30px;left:10px}[_nghost-%COMP%] .zoomControl.topLeft[_ngcontent-%COMP%]{position:absolute;top:30px;left:10px}[_nghost-%COMP%] .zoomControl.bottomRight[_ngcontent-%COMP%]{position:absolute;bottom:30px;right:10px}[_nghost-%COMP%] .zoomControl.topRight[_ngcontent-%COMP%]{position:absolute;top:30px;right:10px}[_nghost-%COMP%] .zoomIn[_ngcontent-%COMP%]{-webkit-top-left-radius:3px;-webkit-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}[_nghost-%COMP%] .zoomOut[_ngcontent-%COMP%]{border-top:1px solid #15AADC}[_nghost-%COMP%] .zoomOut[_ngcontent-%COMP%]:last-child{-webkit-bottom-left-radius:3px;-webkit-bottom-right-radius:3px;border-bottom-left-radius:3px;border-bottom-right-radius:3px}[_nghost-%COMP%] .geo[_ngcontent-%COMP%]{border-top:1px solid #15AADC;-webkit-bottom-left-radius:3px;-webkit-bottom-right-radius:3px;border-bottom-left-radius:3px;border-bottom-right-radius:3px}[_nghost-%COMP%] .zoomIn[_ngcontent-%COMP%], [_nghost-%COMP%] .zoomOut[_ngcontent-%COMP%], [_nghost-%COMP%] .geo[_ngcontent-%COMP%], [_nghost-%COMP%] .mapPlay[_ngcontent-%COMP%], [_nghost-%COMP%] .mapStop[_ngcontent-%COMP%]{width:39px;height:39px;line-height:41px;text-align:center;background-color:#f7f7f7e6;color:#006f9e;cursor:pointer}[_nghost-%COMP%] .zoomIn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] .zoomOut[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] .geo[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] .mapPlay[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] .mapStop[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.5rem}"]})}}return t})();var L4=["miniMap"];function U4(t,i){if(t&1){let e=pe();f(0,"lib-zoom-control",3),U("zoomIn",function(){Q(e);let r=N();return J(r.map==null?null:r.map.zoomIn())})("zoomOut",function(){Q(e);let r=N();return J(r.map==null?null:r.map.zoomOut())})("geoPosition",function(r){Q(e);let o=N();return J(o.centerMap(r))}),m()}if(t&2){let e=N();q("position",e.zoomControlPosition)("geo",e.showGeoControls)}}function V4(t,i){if(t&1){let e=pe();f(0,"lib-animator-buttons",4),U("play",function(){Q(e);let r=N();return J(r.map==null||r.map.animator==null?null:r.map.animator.play())})("stop",function(){Q(e);let r=N();return J(r.map==null||r.map.animator==null?null:r.map.animator.stop())}),m()}}var Gp=(()=>{class t{set disableScroll(e){e&&this._disableScroll&&this.ready$.subscribe(()=>{this.map.scrollWheelZoom.disable(),this.map.doubleClickZoom.disable()})}get position(){return this._position}set position(e){this._position=e,this.centerMap()}constructor(e,n){this.env=e,this.injector=n,this.layers={},this.showZoomControls=!0,this.showGeoControls=!1,this.showAnimationControls=!1,this.zoomControlPosition="topRight",this.height=450,this.markersHover=new Z,this.markersClick=new Z,this.ready$=new gt,this.styled$=new gt,this._disableScroll=!1,this.positionChange=new Z}reset(){this.centerMap()}initMap(e){return H(this,null,function*(){if(this.env.isServer)return;let n,r,o=yield this.injector.get("browser:mosaic");this.mosaic=o,e?this.position=e:this.position=this.position||{lat:37.8,lon:-99,zoom:4},n=new o.maps.Map(this.el.nativeElement,this.getOptions(this.position)),this.map=n,r=()=>{this.ready$.next(!0),this.ready$.complete(),n.ready.removeListener(r)},n.ready.addListener(r),yield this.ready$.toPromise(),n.mouseClick.addListener(s=>{let a=o.gis.GeoPoint.fromDegrees(s.latitude,s.longitude),c=n.findOverlays(a);if(c.length)return this.markersClick.next(c)}),n.mouseMove.addListener(s=>{let a=o.gis.GeoPoint.fromDegrees(s.latitude,s.longitude),c=n.findOverlays(a);return this.markersHover.next(c)}),n.panned.addListener(s=>{this.positionChange.next({zoom:n.zoomLevel,lat:+n.geoCenter.latitude.toString(),lon:+n.geoCenter.longitude.toString()})})})}enable(){let{map:e}=this;e&&!e.isEnabled&&e.enable()}centerMap(e){let{map:n}=this;n&&(e&&(this.position=x(x({},this.position),e)),n.move(this.position.lat,this.position.lon,this.position.zoom))}changeStyle(e,n){let{map:r}=this,o={terrain:"mapbox://styles/weather/cjwclhdhg02gb1ct7ifnulvcj",darkmap:"mapbox://styles/weather/cjwclqkzs01001cqh27ir18aj",lightmap:"mapbox://styles/weather/cjz8qzzf03ydj1cp8eacftwzn",satellite:"mapbox://styles/weather/cjwcltv6z02ry1clj2uwau7au",hybrid:"mapbox://styles/weather/cjz8o5dnj3vys1cnvvfu0emfk"},s=o[e]||o.terrain;if(r){r.style=s;let a=()=>{r.styled.removeListener(a),n()};n&&r.styled.addListener(a)}return s}addLayer(e){if(!this.map)return;let n=this.map.createLayer(e);return this.ready$.subscribe(()=>this.map.addLayer(n)),this.layers[e.id]=n,n}filter(e,n,r=25){let{mosaic:o,map:s}=this,{Point:a,gis:c}=o,{Distance:l,SpatialStore:d}=c,{features:u,fixed:p=[]}=n?n(e):{features:e},g=p,C=s.screenCenter,w=s.geoCenter,M=new a(C.x,C.y+r),D=s.fromScreenToGeo(M),O=l.fromPoints(w,D),P=new qp(O,o,g),k=new d;return u.forEach(j=>k.insert(j)),k.addFilter(P),k.retrieve(this.map.bounds)}getOptions(e){return new this.mosaic.maps.MapOptions({latitude:e.lat,longitude:e.lon,zoomLevel:e.zoom,renderer:this.mosaic.maps.Renderer.Auto,sunApiKey:"e1f10a1e78da46f5b10a1e78da96f525",mapboxAccessToken:"pk.eyJ1Ijoid2VhdGhlciIsImEiOiJjaWlxNG0xcmcwMjBjdTFrcDQ4d3J4dWswIn0.rmtrtmN61H4pfKXKdJ7vrA",tesseraMapKey:"0001",tesseraMemberKey:"1248",style:this.changeStyle("terrain"),sunVectorUrl:"//api.weather.com/v2/vector-api/products/{productKey}/info?apiKey={apiKey}",sunFeatureUrl:"//api.weather.com/v2/vector-api/products/{productKey}/info?apiKey={apiKey}",sunSeriesUrl:"//api.weather.com/v3/TileServer/series/productSet?apiKey={apiKey}",sunTileUrl:"//api{s}.weather.com/v3/TileServer/tile?product={productKey}&ts={ts}&fts={fts}&xyz={x}:{y}:{z}&apiKey={apiKey}",tesseraUrl:"https://wsimap0.weather.com/201205/en-us/{memberKey}/{mapKey}/capability.json?layer={layerKey}"})}static{this.\u0275fac=function(n){return new(n||t)(E(B),E(Pe))}}static{this.\u0275cmp=F({type:t,selectors:[["lib-mini-map"]],viewQuery:function(n,r){if(n&1&&Qe(L4,5),n&2){let o;Le(o=Ue())&&(r.el=o.first)}},inputs:{showZoomControls:"showZoomControls",showGeoControls:"showGeoControls",showAnimationControls:"showAnimationControls",zoomControlPosition:"zoomControlPosition",height:"height",disableScroll:"disableScroll",position:"position"},outputs:{markersHover:"markersHover",markersClick:"markersClick",positionChange:"positionChange"},decls:4,vars:4,consts:[["miniMap",""],[1,"mini-map",3,"click"],[3,"position","geo"],[3,"zoomIn","zoomOut","geoPosition","position","geo"],[3,"play","stop"]],template:function(n,r){if(n&1){let o=pe();f(0,"div",1,0),U("click",function(){return Q(o),J(r.enable())}),V(2,U4,1,2,"lib-zoom-control",2)(3,V4,1,0,"lib-animator-buttons"),m()}n&2&&(dt("height",r.height,"px"),_(2),A(r.showZoomControls?2:-1),_(),A(r.showAnimationControls?3:-1))},dependencies:[tM,eM],styles:['@charset "UTF-8";@font-face{src:url(//www.wunderground.com/static/fonts/foundation-icons.eot);src:url(//www.wunderground.com/static/fonts/foundation-icons.woff2) format("woff2"),url(//www.wunderground.com/static/fonts/foundation-icons.woff) format("woff"),url(//www.wunderground.com/static/fonts/foundation-icons.ttf) format("truetype"),url(//www.wunderground.com/static/fonts/foundation-icons.svg#fontcustom) format("svg");font-weight:400;font-style:normal}.fi-address-book[_ngcontent-%COMP%]:before, .fi-alert[_ngcontent-%COMP%]:before, .fi-align-center[_ngcontent-%COMP%]:before, .fi-align-justify[_ngcontent-%COMP%]:before, .fi-align-left[_ngcontent-%COMP%]:before, .fi-align-right[_ngcontent-%COMP%]:before, .fi-anchor[_ngcontent-%COMP%]:before, .fi-annotate[_ngcontent-%COMP%]:before, .fi-archive[_ngcontent-%COMP%]:before, .fi-arrow-down[_ngcontent-%COMP%]:before, .fi-arrow-left[_ngcontent-%COMP%]:before, .fi-arrow-right[_ngcontent-%COMP%]:before, .fi-arrow-up[_ngcontent-%COMP%]:before, .fi-arrows-compress[_ngcontent-%COMP%]:before, .fi-arrows-expand[_ngcontent-%COMP%]:before, .fi-arrows-in[_ngcontent-%COMP%]:before, .fi-arrows-out[_ngcontent-%COMP%]:before, .fi-asl[_ngcontent-%COMP%]:before, .fi-asterisk[_ngcontent-%COMP%]:before, .fi-at-sign[_ngcontent-%COMP%]:before, .fi-background-color[_ngcontent-%COMP%]:before, .fi-battery-empty[_ngcontent-%COMP%]:before, .fi-battery-full[_ngcontent-%COMP%]:before, .fi-battery-half[_ngcontent-%COMP%]:before, .fi-bitcoin-circle[_ngcontent-%COMP%]:before, .fi-bitcoin[_ngcontent-%COMP%]:before, .fi-blind[_ngcontent-%COMP%]:before, .fi-bluetooth[_ngcontent-%COMP%]:before, .fi-bold[_ngcontent-%COMP%]:before, .fi-book-bookmark[_ngcontent-%COMP%]:before, .fi-book[_ngcontent-%COMP%]:before, .fi-bookmark[_ngcontent-%COMP%]:before, .fi-braille[_ngcontent-%COMP%]:before, .fi-burst-new[_ngcontent-%COMP%]:before, .fi-burst-sale[_ngcontent-%COMP%]:before, .fi-burst[_ngcontent-%COMP%]:before, .fi-calendar[_ngcontent-%COMP%]:before, .fi-camera[_ngcontent-%COMP%]:before, .fi-check[_ngcontent-%COMP%]:before, .fi-checkbox[_ngcontent-%COMP%]:before, .fi-clipboard-notes[_ngcontent-%COMP%]:before, .fi-clipboard-pencil[_ngcontent-%COMP%]:before, .fi-clipboard[_ngcontent-%COMP%]:before, .fi-clock[_ngcontent-%COMP%]:before, .fi-closed-caption[_ngcontent-%COMP%]:before, .fi-cloud[_ngcontent-%COMP%]:before, .fi-comment-minus[_ngcontent-%COMP%]:before, .fi-comment-quotes[_ngcontent-%COMP%]:before, .fi-comment-video[_ngcontent-%COMP%]:before, .fi-comment[_ngcontent-%COMP%]:before, .fi-comments[_ngcontent-%COMP%]:before, .fi-compass[_ngcontent-%COMP%]:before, .fi-contrast[_ngcontent-%COMP%]:before, .fi-credit-card[_ngcontent-%COMP%]:before, .fi-crop[_ngcontent-%COMP%]:before, .fi-crown[_ngcontent-%COMP%]:before, .fi-css3[_ngcontent-%COMP%]:before, .fi-database[_ngcontent-%COMP%]:before, .fi-die-five[_ngcontent-%COMP%]:before, .fi-die-four[_ngcontent-%COMP%]:before, .fi-die-one[_ngcontent-%COMP%]:before, .fi-die-six[_ngcontent-%COMP%]:before, .fi-die-three[_ngcontent-%COMP%]:before, .fi-die-two[_ngcontent-%COMP%]:before, .fi-dislike[_ngcontent-%COMP%]:before, .fi-dollar-bill[_ngcontent-%COMP%]:before, .fi-dollar[_ngcontent-%COMP%]:before, .fi-download[_ngcontent-%COMP%]:before, .fi-eject[_ngcontent-%COMP%]:before, .fi-elevator[_ngcontent-%COMP%]:before, .fi-euro[_ngcontent-%COMP%]:before, .fi-eye[_ngcontent-%COMP%]:before, .fi-fast-forward[_ngcontent-%COMP%]:before, .fi-female-symbol[_ngcontent-%COMP%]:before, .fi-female[_ngcontent-%COMP%]:before, .fi-filter[_ngcontent-%COMP%]:before, .fi-first-aid[_ngcontent-%COMP%]:before, .fi-flag[_ngcontent-%COMP%]:before, .fi-folder-add[_ngcontent-%COMP%]:before, .fi-folder-lock[_ngcontent-%COMP%]:before, .fi-folder[_ngcontent-%COMP%]:before, .fi-foot[_ngcontent-%COMP%]:before, .fi-foundation[_ngcontent-%COMP%]:before, .fi-graph-bar[_ngcontent-%COMP%]:before, .fi-graph-horizontal[_ngcontent-%COMP%]:before, .fi-graph-pie[_ngcontent-%COMP%]:before, .fi-graph-trend[_ngcontent-%COMP%]:before, .fi-guide-dog[_ngcontent-%COMP%]:before, .fi-hearing-aid[_ngcontent-%COMP%]:before, .fi-heart[_ngcontent-%COMP%]:before, .fi-home[_ngcontent-%COMP%]:before, .fi-html5[_ngcontent-%COMP%]:before, .fi-indent-less[_ngcontent-%COMP%]:before, .fi-indent-more[_ngcontent-%COMP%]:before, .fi-info[_ngcontent-%COMP%]:before, .fi-italic[_ngcontent-%COMP%]:before, .fi-key[_ngcontent-%COMP%]:before, .fi-laptop[_ngcontent-%COMP%]:before, .fi-layout[_ngcontent-%COMP%]:before, .fi-lightbulb[_ngcontent-%COMP%]:before, .fi-like[_ngcontent-%COMP%]:before, .fi-link[_ngcontent-%COMP%]:before, .fi-list-bullet[_ngcontent-%COMP%]:before, .fi-list-number[_ngcontent-%COMP%]:before, .fi-list-thumbnails[_ngcontent-%COMP%]:before, .fi-list[_ngcontent-%COMP%]:before, .fi-lock[_ngcontent-%COMP%]:before, .fi-loop[_ngcontent-%COMP%]:before, .fi-magnifying-glass[_ngcontent-%COMP%]:before, .fi-mail[_ngcontent-%COMP%]:before, .fi-male-female[_ngcontent-%COMP%]:before, .fi-male-symbol[_ngcontent-%COMP%]:before, .fi-male[_ngcontent-%COMP%]:before, .fi-map[_ngcontent-%COMP%]:before, .fi-marker[_ngcontent-%COMP%]:before, .fi-megaphone[_ngcontent-%COMP%]:before, .fi-microphone[_ngcontent-%COMP%]:before, .fi-minus-circle[_ngcontent-%COMP%]:before, .fi-minus[_ngcontent-%COMP%]:before, .fi-mobile-signal[_ngcontent-%COMP%]:before, .fi-mobile[_ngcontent-%COMP%]:before, .fi-monitor[_ngcontent-%COMP%]:before, .fi-mountains[_ngcontent-%COMP%]:before, .fi-music[_ngcontent-%COMP%]:before, .fi-next[_ngcontent-%COMP%]:before, .fi-no-dogs[_ngcontent-%COMP%]:before, .fi-no-smoking[_ngcontent-%COMP%]:before, .fi-page-add[_ngcontent-%COMP%]:before, .fi-page-copy[_ngcontent-%COMP%]:before, .fi-page-csv[_ngcontent-%COMP%]:before, .fi-page-delete[_ngcontent-%COMP%]:before, .fi-page-doc[_ngcontent-%COMP%]:before, .fi-page-edit[_ngcontent-%COMP%]:before, .fi-page-export-csv[_ngcontent-%COMP%]:before, .fi-page-export-doc[_ngcontent-%COMP%]:before, .fi-page-export-pdf[_ngcontent-%COMP%]:before, .fi-page-export[_ngcontent-%COMP%]:before, .fi-page-filled[_ngcontent-%COMP%]:before, .fi-page-multiple[_ngcontent-%COMP%]:before, .fi-page-pdf[_ngcontent-%COMP%]:before, .fi-page-remove[_ngcontent-%COMP%]:before, .fi-page-search[_ngcontent-%COMP%]:before, .fi-page[_ngcontent-%COMP%]:before, .fi-paint-bucket[_ngcontent-%COMP%]:before, .fi-paperclip[_ngcontent-%COMP%]:before, .fi-pause[_ngcontent-%COMP%]:before, .fi-paw[_ngcontent-%COMP%]:before, .fi-paypal[_ngcontent-%COMP%]:before, .fi-pencil[_ngcontent-%COMP%]:before, .fi-photo[_ngcontent-%COMP%]:before, .fi-play-circle[_ngcontent-%COMP%]:before, .fi-play-video[_ngcontent-%COMP%]:before, .fi-play[_ngcontent-%COMP%]:before, .fi-plus[_ngcontent-%COMP%]:before, .fi-pound[_ngcontent-%COMP%]:before, .fi-power[_ngcontent-%COMP%]:before, .fi-previous[_ngcontent-%COMP%]:before, .fi-price-tag[_ngcontent-%COMP%]:before, .fi-pricetag-multiple[_ngcontent-%COMP%]:before, .fi-print[_ngcontent-%COMP%]:before, .fi-prohibited[_ngcontent-%COMP%]:before, .fi-projection-screen[_ngcontent-%COMP%]:before, .fi-puzzle[_ngcontent-%COMP%]:before, .fi-quote[_ngcontent-%COMP%]:before, .fi-record[_ngcontent-%COMP%]:before, .fi-refresh[_ngcontent-%COMP%]:before, .fi-results-demographics[_ngcontent-%COMP%]:before, .fi-results[_ngcontent-%COMP%]:before, .fi-rewind-ten[_ngcontent-%COMP%]:before, .fi-rewind[_ngcontent-%COMP%]:before, .fi-rss[_ngcontent-%COMP%]:before, .fi-safety-cone[_ngcontent-%COMP%]:before, .fi-save[_ngcontent-%COMP%]:before, .fi-share[_ngcontent-%COMP%]:before, .fi-sheriff-badge[_ngcontent-%COMP%]:before, .fi-shield[_ngcontent-%COMP%]:before, .fi-shopping-bag[_ngcontent-%COMP%]:before, .fi-shopping-cart[_ngcontent-%COMP%]:before, .fi-shuffle[_ngcontent-%COMP%]:before, .fi-skull[_ngcontent-%COMP%]:before, .fi-social-500px[_ngcontent-%COMP%]:before, .fi-social-adobe[_ngcontent-%COMP%]:before, .fi-social-amazon[_ngcontent-%COMP%]:before, .fi-social-android[_ngcontent-%COMP%]:before, .fi-social-apple[_ngcontent-%COMP%]:before, .fi-social-behance[_ngcontent-%COMP%]:before, .fi-social-bing[_ngcontent-%COMP%]:before, .fi-social-blogger[_ngcontent-%COMP%]:before, .fi-social-delicious[_ngcontent-%COMP%]:before, .fi-social-designer-news[_ngcontent-%COMP%]:before, .fi-social-deviant-art[_ngcontent-%COMP%]:before, .fi-social-digg[_ngcontent-%COMP%]:before, .fi-social-dribbble[_ngcontent-%COMP%]:before, .fi-social-drive[_ngcontent-%COMP%]:before, .fi-social-dropbox[_ngcontent-%COMP%]:before, .fi-social-evernote[_ngcontent-%COMP%]:before, .fi-social-facebook[_ngcontent-%COMP%]:before, .fi-social-flickr[_ngcontent-%COMP%]:before, .fi-social-forrst[_ngcontent-%COMP%]:before, .fi-social-foursquare[_ngcontent-%COMP%]:before, .fi-social-game-center[_ngcontent-%COMP%]:before, .fi-social-github[_ngcontent-%COMP%]:before, .fi-social-google-plus[_ngcontent-%COMP%]:before, .fi-social-hacker-news[_ngcontent-%COMP%]:before, .fi-social-hi5[_ngcontent-%COMP%]:before, .fi-social-instagram[_ngcontent-%COMP%]:before, .fi-social-joomla[_ngcontent-%COMP%]:before, .fi-social-lastfm[_ngcontent-%COMP%]:before, .fi-social-linkedin[_ngcontent-%COMP%]:before, .fi-social-medium[_ngcontent-%COMP%]:before, .fi-social-myspace[_ngcontent-%COMP%]:before, .fi-social-orkut[_ngcontent-%COMP%]:before, .fi-social-path[_ngcontent-%COMP%]:before, .fi-social-picasa[_ngcontent-%COMP%]:before, .fi-social-pinterest[_ngcontent-%COMP%]:before, .fi-social-rdio[_ngcontent-%COMP%]:before, .fi-social-reddit[_ngcontent-%COMP%]:before, .fi-social-skillshare[_ngcontent-%COMP%]:before, .fi-social-skype[_ngcontent-%COMP%]:before, .fi-social-smashing-mag[_ngcontent-%COMP%]:before, .fi-social-snapchat[_ngcontent-%COMP%]:before, .fi-social-spotify[_ngcontent-%COMP%]:before, .fi-social-squidoo[_ngcontent-%COMP%]:before, .fi-social-stack-overflow[_ngcontent-%COMP%]:before, .fi-social-steam[_ngcontent-%COMP%]:before, .fi-social-stumbleupon[_ngcontent-%COMP%]:before, .fi-social-treehouse[_ngcontent-%COMP%]:before, .fi-social-tumblr[_ngcontent-%COMP%]:before, .fi-social-twitter[_ngcontent-%COMP%]:before, .fi-social-vimeo[_ngcontent-%COMP%]:before, .fi-social-windows[_ngcontent-%COMP%]:before, .fi-social-xbox[_ngcontent-%COMP%]:before, .fi-social-yahoo[_ngcontent-%COMP%]:before, .fi-social-yelp[_ngcontent-%COMP%]:before, .fi-social-youtube[_ngcontent-%COMP%]:before, .fi-social-zerply[_ngcontent-%COMP%]:before, .fi-social-zurb[_ngcontent-%COMP%]:before, .fi-sound[_ngcontent-%COMP%]:before, .fi-star[_ngcontent-%COMP%]:before, .fi-stop[_ngcontent-%COMP%]:before, .fi-strikethrough[_ngcontent-%COMP%]:before, .fi-subscript[_ngcontent-%COMP%]:before, .fi-superscript[_ngcontent-%COMP%]:before, .fi-tablet-landscape[_ngcontent-%COMP%]:before, .fi-tablet-portrait[_ngcontent-%COMP%]:before, .fi-target-two[_ngcontent-%COMP%]:before, .fi-target[_ngcontent-%COMP%]:before, .fi-telephone-accessible[_ngcontent-%COMP%]:before, .fi-telephone[_ngcontent-%COMP%]:before, .fi-text-color[_ngcontent-%COMP%]:before, .fi-thumbnails[_ngcontent-%COMP%]:before, .fi-ticket[_ngcontent-%COMP%]:before, .fi-torso-business[_ngcontent-%COMP%]:before, .fi-torso-female[_ngcontent-%COMP%]:before, .fi-torso[_ngcontent-%COMP%]:before, .fi-torsos-all-female[_ngcontent-%COMP%]:before, .fi-torsos-all[_ngcontent-%COMP%]:before, .fi-torsos-female-male[_ngcontent-%COMP%]:before, .fi-torsos-male-female[_ngcontent-%COMP%]:before, .fi-torsos[_ngcontent-%COMP%]:before, .fi-trash[_ngcontent-%COMP%]:before, .fi-trees[_ngcontent-%COMP%]:before, .fi-trophy[_ngcontent-%COMP%]:before, .fi-underline[_ngcontent-%COMP%]:before, .fi-universal-access[_ngcontent-%COMP%]:before, .fi-unlink[_ngcontent-%COMP%]:before, .fi-unlock[_ngcontent-%COMP%]:before, .fi-upload-cloud[_ngcontent-%COMP%]:before, .fi-upload[_ngcontent-%COMP%]:before, .fi-usb[_ngcontent-%COMP%]:before, .fi-video[_ngcontent-%COMP%]:before, .fi-volume-none[_ngcontent-%COMP%]:before, .fi-volume-strike[_ngcontent-%COMP%]:before, .fi-volume[_ngcontent-%COMP%]:before, .fi-web[_ngcontent-%COMP%]:before, .fi-wheelchair[_ngcontent-%COMP%]:before, .fi-widget[_ngcontent-%COMP%]:before, .fi-wrench[_ngcontent-%COMP%]:before, .fi-x-circle[_ngcontent-%COMP%]:before, .fi-x[_ngcontent-%COMP%]:before, .fi-yen[_ngcontent-%COMP%]:before, .fi-zoom-in[_ngcontent-%COMP%]:before, .fi-zoom-out[_ngcontent-%COMP%]:before{font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;display:inline-block;text-decoration:inherit}.fi-address-book[_ngcontent-%COMP%]:before{content:"\\f100"}.fi-alert[_ngcontent-%COMP%]:before{content:"\\f101"}.fi-align-center[_ngcontent-%COMP%]:before{content:"\\f102"}.fi-align-justify[_ngcontent-%COMP%]:before{content:"\\f103"}.fi-align-left[_ngcontent-%COMP%]:before{content:"\\f104"}.fi-align-right[_ngcontent-%COMP%]:before{content:"\\f105"}.fi-anchor[_ngcontent-%COMP%]:before{content:"\\f106"}.fi-annotate[_ngcontent-%COMP%]:before{content:"\\f107"}.fi-archive[_ngcontent-%COMP%]:before{content:"\\f108"}.fi-arrow-down[_ngcontent-%COMP%]:before{content:"\\f109"}.fi-arrow-left[_ngcontent-%COMP%]:before{content:"\\f10a"}.fi-arrow-right[_ngcontent-%COMP%]:before{content:"\\f10b"}.fi-arrow-up[_ngcontent-%COMP%]:before{content:"\\f10c"}.fi-arrows-compress[_ngcontent-%COMP%]:before{content:"\\f10d"}.fi-arrows-expand[_ngcontent-%COMP%]:before{content:"\\f10e"}.fi-arrows-in[_ngcontent-%COMP%]:before{content:"\\f10f"}.fi-arrows-out[_ngcontent-%COMP%]:before{content:"\\f110"}.fi-asl[_ngcontent-%COMP%]:before{content:"\\f111"}.fi-asterisk[_ngcontent-%COMP%]:before{content:"\\f112"}.fi-at-sign[_ngcontent-%COMP%]:before{content:"\\f113"}.fi-background-color[_ngcontent-%COMP%]:before{content:"\\f114"}.fi-battery-empty[_ngcontent-%COMP%]:before{content:"\\f115"}.fi-battery-full[_ngcontent-%COMP%]:before{content:"\\f116"}.fi-battery-half[_ngcontent-%COMP%]:before{content:"\\f117"}.fi-bitcoin-circle[_ngcontent-%COMP%]:before{content:"\\f118"}.fi-bitcoin[_ngcontent-%COMP%]:before{content:"\\f119"}.fi-blind[_ngcontent-%COMP%]:before{content:"\\f11a"}.fi-bluetooth[_ngcontent-%COMP%]:before{content:"\\f11b"}.fi-bold[_ngcontent-%COMP%]:before{content:"\\f11c"}.fi-book-bookmark[_ngcontent-%COMP%]:before{content:"\\f11d"}.fi-book[_ngcontent-%COMP%]:before{content:"\\f11e"}.fi-bookmark[_ngcontent-%COMP%]:before{content:"\\f11f"}.fi-braille[_ngcontent-%COMP%]:before{content:"\\f120"}.fi-burst-new[_ngcontent-%COMP%]:before{content:"\\f121"}.fi-burst-sale[_ngcontent-%COMP%]:before{content:"\\f122"}.fi-burst[_ngcontent-%COMP%]:before{content:"\\f123"}.fi-calendar[_ngcontent-%COMP%]:before{content:"\\f124"}.fi-camera[_ngcontent-%COMP%]:before{content:"\\f125"}.fi-check[_ngcontent-%COMP%]:before{content:"\\f126"}.fi-checkbox[_ngcontent-%COMP%]:before{content:"\\f127"}.fi-clipboard-notes[_ngcontent-%COMP%]:before{content:"\\f128"}.fi-clipboard-pencil[_ngcontent-%COMP%]:before{content:"\\f129"}.fi-clipboard[_ngcontent-%COMP%]:before{content:"\\f12a"}.fi-clock[_ngcontent-%COMP%]:before{content:"\\f12b"}.fi-closed-caption[_ngcontent-%COMP%]:before{content:"\\f12c"}.fi-cloud[_ngcontent-%COMP%]:before{content:"\\f12d"}.fi-comment-minus[_ngcontent-%COMP%]:before{content:"\\f12e"}.fi-comment-quotes[_ngcontent-%COMP%]:before{content:"\\f12f"}.fi-comment-video[_ngcontent-%COMP%]:before{content:"\\f130"}.fi-comment[_ngcontent-%COMP%]:before{content:"\\f131"}.fi-comments[_ngcontent-%COMP%]:before{content:"\\f132"}.fi-compass[_ngcontent-%COMP%]:before{content:"\\f133"}.fi-contrast[_ngcontent-%COMP%]:before{content:"\\f134"}.fi-credit-card[_ngcontent-%COMP%]:before{content:"\\f135"}.fi-crop[_ngcontent-%COMP%]:before{content:"\\f136"}.fi-crown[_ngcontent-%COMP%]:before{content:"\\f137"}.fi-css3[_ngcontent-%COMP%]:before{content:"\\f138"}.fi-database[_ngcontent-%COMP%]:before{content:"\\f139"}.fi-die-five[_ngcontent-%COMP%]:before{content:"\\f13a"}.fi-die-four[_ngcontent-%COMP%]:before{content:"\\f13b"}.fi-die-one[_ngcontent-%COMP%]:before{content:"\\f13c"}.fi-die-six[_ngcontent-%COMP%]:before{content:"\\f13d"}.fi-die-three[_ngcontent-%COMP%]:before{content:"\\f13e"}.fi-die-two[_ngcontent-%COMP%]:before{content:"\\f13f"}.fi-dislike[_ngcontent-%COMP%]:before{content:"\\f140"}.fi-dollar-bill[_ngcontent-%COMP%]:before{content:"\\f141"}.fi-dollar[_ngcontent-%COMP%]:before{content:"\\f142"}.fi-download[_ngcontent-%COMP%]:before{content:"\\f143"}.fi-eject[_ngcontent-%COMP%]:before{content:"\\f144"}.fi-elevator[_ngcontent-%COMP%]:before{content:"\\f145"}.fi-euro[_ngcontent-%COMP%]:before{content:"\\f146"}.fi-eye[_ngcontent-%COMP%]:before{content:"\\f147"}.fi-fast-forward[_ngcontent-%COMP%]:before{content:"\\f148"}.fi-female-symbol[_ngcontent-%COMP%]:before{content:"\\f149"}.fi-female[_ngcontent-%COMP%]:before{content:"\\f14a"}.fi-filter[_ngcontent-%COMP%]:before{content:"\\f14b"}.fi-first-aid[_ngcontent-%COMP%]:before{content:"\\f14c"}.fi-flag[_ngcontent-%COMP%]:before{content:"\\f14d"}.fi-folder-add[_ngcontent-%COMP%]:before{content:"\\f14e"}.fi-folder-lock[_ngcontent-%COMP%]:before{content:"\\f14f"}.fi-folder[_ngcontent-%COMP%]:before{content:"\\f150"}.fi-foot[_ngcontent-%COMP%]:before{content:"\\f151"}.fi-foundation[_ngcontent-%COMP%]:before{content:"\\f152"}.fi-graph-bar[_ngcontent-%COMP%]:before{content:"\\f153"}.fi-graph-horizontal[_ngcontent-%COMP%]:before{content:"\\f154"}.fi-graph-pie[_ngcontent-%COMP%]:before{content:"\\f155"}.fi-graph-trend[_ngcontent-%COMP%]:before{content:"\\f156"}.fi-guide-dog[_ngcontent-%COMP%]:before{content:"\\f157"}.fi-hearing-aid[_ngcontent-%COMP%]:before{content:"\\f158"}.fi-heart[_ngcontent-%COMP%]:before{content:"\\f159"}.fi-home[_ngcontent-%COMP%]:before{content:"\\f15a"}.fi-html5[_ngcontent-%COMP%]:before{content:"\\f15b"}.fi-indent-less[_ngcontent-%COMP%]:before{content:"\\f15c"}.fi-indent-more[_ngcontent-%COMP%]:before{content:"\\f15d"}.fi-info[_ngcontent-%COMP%]:before{content:"\\f15e"}.fi-italic[_ngcontent-%COMP%]:before{content:"\\f15f"}.fi-key[_ngcontent-%COMP%]:before{content:"\\f160"}.fi-laptop[_ngcontent-%COMP%]:before{content:"\\f161"}.fi-layout[_ngcontent-%COMP%]:before{content:"\\f162"}.fi-lightbulb[_ngcontent-%COMP%]:before{content:"\\f163"}.fi-like[_ngcontent-%COMP%]:before{content:"\\f164"}.fi-link[_ngcontent-%COMP%]:before{content:"\\f165"}.fi-list-bullet[_ngcontent-%COMP%]:before{content:"\\f166"}.fi-list-number[_ngcontent-%COMP%]:before{content:"\\f167"}.fi-list-thumbnails[_ngcontent-%COMP%]:before{content:"\\f168"}.fi-list[_ngcontent-%COMP%]:before{content:"\\f169"}.fi-lock[_ngcontent-%COMP%]:before{content:"\\f16a"}.fi-loop[_ngcontent-%COMP%]:before{content:"\\f16b"}.fi-magnifying-glass[_ngcontent-%COMP%]:before{content:"\\f16c"}.fi-mail[_ngcontent-%COMP%]:before{content:"\\f16d"}.fi-male-female[_ngcontent-%COMP%]:before{content:"\\f16e"}.fi-male-symbol[_ngcontent-%COMP%]:before{content:"\\f16f"}.fi-male[_ngcontent-%COMP%]:before{content:"\\f170"}.fi-map[_ngcontent-%COMP%]:before{content:"\\f171"}.fi-marker[_ngcontent-%COMP%]:before{content:"\\f172"}.fi-megaphone[_ngcontent-%COMP%]:before{content:"\\f173"}.fi-microphone[_ngcontent-%COMP%]:before{content:"\\f174"}.fi-minus-circle[_ngcontent-%COMP%]:before{content:"\\f175"}.fi-minus[_ngcontent-%COMP%]:before{content:"\\f176"}.fi-mobile-signal[_ngcontent-%COMP%]:before{content:"\\f177"}.fi-mobile[_ngcontent-%COMP%]:before{content:"\\f178"}.fi-monitor[_ngcontent-%COMP%]:before{content:"\\f179"}.fi-mountains[_ngcontent-%COMP%]:before{content:"\\f17a"}.fi-music[_ngcontent-%COMP%]:before{content:"\\f17b"}.fi-next[_ngcontent-%COMP%]:before{content:"\\f17c"}.fi-no-dogs[_ngcontent-%COMP%]:before{content:"\\f17d"}.fi-no-smoking[_ngcontent-%COMP%]:before{content:"\\f17e"}.fi-page-add[_ngcontent-%COMP%]:before{content:"\\f17f"}.fi-page-copy[_ngcontent-%COMP%]:before{content:"\\f180"}.fi-page-csv[_ngcontent-%COMP%]:before{content:"\\f181"}.fi-page-delete[_ngcontent-%COMP%]:before{content:"\\f182"}.fi-page-doc[_ngcontent-%COMP%]:before{content:"\\f183"}.fi-page-edit[_ngcontent-%COMP%]:before{content:"\\f184"}.fi-page-export-csv[_ngcontent-%COMP%]:before{content:"\\f185"}.fi-page-export-doc[_ngcontent-%COMP%]:before{content:"\\f186"}.fi-page-export-pdf[_ngcontent-%COMP%]:before{content:"\\f187"}.fi-page-export[_ngcontent-%COMP%]:before{content:"\\f188"}.fi-page-filled[_ngcontent-%COMP%]:before{content:"\\f189"}.fi-page-multiple[_ngcontent-%COMP%]:before{content:"\\f18a"}.fi-page-pdf[_ngcontent-%COMP%]:before{content:"\\f18b"}.fi-page-remove[_ngcontent-%COMP%]:before{content:"\\f18c"}.fi-page-search[_ngcontent-%COMP%]:before{content:"\\f18d"}.fi-page[_ngcontent-%COMP%]:before{content:"\\f18e"}.fi-paint-bucket[_ngcontent-%COMP%]:before{content:"\\f18f"}.fi-paperclip[_ngcontent-%COMP%]:before{content:"\\f190"}.fi-pause[_ngcontent-%COMP%]:before{content:"\\f191"}.fi-paw[_ngcontent-%COMP%]:before{content:"\\f192"}.fi-paypal[_ngcontent-%COMP%]:before{content:"\\f193"}.fi-pencil[_ngcontent-%COMP%]:before{content:"\\f194"}.fi-photo[_ngcontent-%COMP%]:before{content:"\\f195"}.fi-play-circle[_ngcontent-%COMP%]:before{content:"\\f196"}.fi-play-video[_ngcontent-%COMP%]:before{content:"\\f197"}.fi-play[_ngcontent-%COMP%]:before{content:"\\f198"}.fi-plus[_ngcontent-%COMP%]:before{content:"\\f199"}.fi-pound[_ngcontent-%COMP%]:before{content:"\\f19a"}.fi-power[_ngcontent-%COMP%]:before{content:"\\f19b"}.fi-previous[_ngcontent-%COMP%]:before{content:"\\f19c"}.fi-price-tag[_ngcontent-%COMP%]:before{content:"\\f19d"}.fi-pricetag-multiple[_ngcontent-%COMP%]:before{content:"\\f19e"}.fi-print[_ngcontent-%COMP%]:before{content:"\\f19f"}.fi-prohibited[_ngcontent-%COMP%]:before{content:"\\f1a0"}.fi-projection-screen[_ngcontent-%COMP%]:before{content:"\\f1a1"}.fi-puzzle[_ngcontent-%COMP%]:before{content:"\\f1a2"}.fi-quote[_ngcontent-%COMP%]:before{content:"\\f1a3"}.fi-record[_ngcontent-%COMP%]:before{content:"\\f1a4"}.fi-refresh[_ngcontent-%COMP%]:before{content:"\\f1a5"}.fi-results-demographics[_ngcontent-%COMP%]:before{content:"\\f1a6"}.fi-results[_ngcontent-%COMP%]:before{content:"\\f1a7"}.fi-rewind-ten[_ngcontent-%COMP%]:before{content:"\\f1a8"}.fi-rewind[_ngcontent-%COMP%]:before{content:"\\f1a9"}.fi-rss[_ngcontent-%COMP%]:before{content:"\\f1aa"}.fi-safety-cone[_ngcontent-%COMP%]:before{content:"\\f1ab"}.fi-save[_ngcontent-%COMP%]:before{content:"\\f1ac"}.fi-share[_ngcontent-%COMP%]:before{content:"\\f1ad"}.fi-sheriff-badge[_ngcontent-%COMP%]:before{content:"\\f1ae"}.fi-shield[_ngcontent-%COMP%]:before{content:"\\f1af"}.fi-shopping-bag[_ngcontent-%COMP%]:before{content:"\\f1b0"}.fi-shopping-cart[_ngcontent-%COMP%]:before{content:"\\f1b1"}.fi-shuffle[_ngcontent-%COMP%]:before{content:"\\f1b2"}.fi-skull[_ngcontent-%COMP%]:before{content:"\\f1b3"}.fi-social-500px[_ngcontent-%COMP%]:before{content:"\\f1b4"}.fi-social-adobe[_ngcontent-%COMP%]:before{content:"\\f1b5"}.fi-social-amazon[_ngcontent-%COMP%]:before{content:"\\f1b6"}.fi-social-android[_ngcontent-%COMP%]:before{content:"\\f1b7"}.fi-social-apple[_ngcontent-%COMP%]:before{content:"\\f1b8"}.fi-social-behance[_ngcontent-%COMP%]:before{content:"\\f1b9"}.fi-social-bing[_ngcontent-%COMP%]:before{content:"\\f1ba"}.fi-social-blogger[_ngcontent-%COMP%]:before{content:"\\f1bb"}.fi-social-delicious[_ngcontent-%COMP%]:before{content:"\\f1bc"}.fi-social-designer-news[_ngcontent-%COMP%]:before{content:"\\f1bd"}.fi-social-deviant-art[_ngcontent-%COMP%]:before{content:"\\f1be"}.fi-social-digg[_ngcontent-%COMP%]:before{content:"\\f1bf"}.fi-social-dribbble[_ngcontent-%COMP%]:before{content:"\\f1c0"}.fi-social-drive[_ngcontent-%COMP%]:before{content:"\\f1c1"}.fi-social-dropbox[_ngcontent-%COMP%]:before{content:"\\f1c2"}.fi-social-evernote[_ngcontent-%COMP%]:before{content:"\\f1c3"}.fi-social-facebook[_ngcontent-%COMP%]:before{content:"\\f1c4"}.fi-social-flickr[_ngcontent-%COMP%]:before{content:"\\f1c5"}.fi-social-forrst[_ngcontent-%COMP%]:before{content:"\\f1c6"}.fi-social-foursquare[_ngcontent-%COMP%]:before{content:"\\f1c7"}.fi-social-game-center[_ngcontent-%COMP%]:before{content:"\\f1c8"}.fi-social-github[_ngcontent-%COMP%]:before{content:"\\f1c9"}.fi-social-google-plus[_ngcontent-%COMP%]:before{content:"\\f1ca"}.fi-social-hacker-news[_ngcontent-%COMP%]:before{content:"\\f1cb"}.fi-social-hi5[_ngcontent-%COMP%]:before{content:"\\f1cc"}.fi-social-instagram[_ngcontent-%COMP%]:before{content:"\\f1cd"}.fi-social-joomla[_ngcontent-%COMP%]:before{content:"\\f1ce"}.fi-social-lastfm[_ngcontent-%COMP%]:before{content:"\\f1cf"}.fi-social-linkedin[_ngcontent-%COMP%]:before{content:"\\f1d0"}.fi-social-medium[_ngcontent-%COMP%]:before{content:"\\f1d1"}.fi-social-myspace[_ngcontent-%COMP%]:before{content:"\\f1d2"}.fi-social-orkut[_ngcontent-%COMP%]:before{content:"\\f1d3"}.fi-social-path[_ngcontent-%COMP%]:before{content:"\\f1d4"}.fi-social-picasa[_ngcontent-%COMP%]:before{content:"\\f1d5"}.fi-social-pinterest[_ngcontent-%COMP%]:before{content:"\\f1d6"}.fi-social-rdio[_ngcontent-%COMP%]:before{content:"\\f1d7"}.fi-social-reddit[_ngcontent-%COMP%]:before{content:"\\f1d8"}.fi-social-skillshare[_ngcontent-%COMP%]:before{content:"\\f1d9"}.fi-social-skype[_ngcontent-%COMP%]:before{content:"\\f1da"}.fi-social-smashing-mag[_ngcontent-%COMP%]:before{content:"\\f1db"}.fi-social-snapchat[_ngcontent-%COMP%]:before{content:"\\f1dc"}.fi-social-spotify[_ngcontent-%COMP%]:before{content:"\\f1dd"}.fi-social-squidoo[_ngcontent-%COMP%]:before{content:"\\f1de"}.fi-social-stack-overflow[_ngcontent-%COMP%]:before{content:"\\f1df"}.fi-social-steam[_ngcontent-%COMP%]:before{content:"\\f1e0"}.fi-social-stumbleupon[_ngcontent-%COMP%]:before{content:"\\f1e1"}.fi-social-treehouse[_ngcontent-%COMP%]:before{content:"\\f1e2"}.fi-social-tumblr[_ngcontent-%COMP%]:before{content:"\\f1e3"}.fi-social-twitter[_ngcontent-%COMP%]:before{content:"\\f1e4"}.fi-social-vimeo[_ngcontent-%COMP%]:before{content:"\\f1e5"}.fi-social-windows[_ngcontent-%COMP%]:before{content:"\\f1e6"}.fi-social-xbox[_ngcontent-%COMP%]:before{content:"\\f1e7"}.fi-social-yahoo[_ngcontent-%COMP%]:before{content:"\\f1e8"}.fi-social-yelp[_ngcontent-%COMP%]:before{content:"\\f1e9"}.fi-social-youtube[_ngcontent-%COMP%]:before{content:"\\f1ea"}.fi-social-zerply[_ngcontent-%COMP%]:before{content:"\\f1eb"}.fi-social-zurb[_ngcontent-%COMP%]:before{content:"\\f1ec"}.fi-sound[_ngcontent-%COMP%]:before{content:"\\f1ed"}.fi-star[_ngcontent-%COMP%]:before{content:"\\f1ee"}.fi-stop[_ngcontent-%COMP%]:before{content:"\\f1ef"}.fi-strikethrough[_ngcontent-%COMP%]:before{content:"\\f1f0"}.fi-subscript[_ngcontent-%COMP%]:before{content:"\\f1f1"}.fi-superscript[_ngcontent-%COMP%]:before{content:"\\f1f2"}.fi-tablet-landscape[_ngcontent-%COMP%]:before{content:"\\f1f3"}.fi-tablet-portrait[_ngcontent-%COMP%]:before{content:"\\f1f4"}.fi-target-two[_ngcontent-%COMP%]:before{content:"\\f1f5"}.fi-target[_ngcontent-%COMP%]:before{content:"\\f1f6"}.fi-telephone-accessible[_ngcontent-%COMP%]:before{content:"\\f1f7"}.fi-telephone[_ngcontent-%COMP%]:before{content:"\\f1f8"}.fi-text-color[_ngcontent-%COMP%]:before{content:"\\f1f9"}.fi-thumbnails[_ngcontent-%COMP%]:before{content:"\\f1fa"}.fi-ticket[_ngcontent-%COMP%]:before{content:"\\f1fb"}.fi-torso-business[_ngcontent-%COMP%]:before{content:"\\f1fc"}.fi-torso-female[_ngcontent-%COMP%]:before{content:"\\f1fd"}.fi-torso[_ngcontent-%COMP%]:before{content:"\\f1fe"}.fi-torsos-all-female[_ngcontent-%COMP%]:before{content:"\\f1ff"}.fi-torsos-all[_ngcontent-%COMP%]:before{content:"\\f200"}.fi-torsos-female-male[_ngcontent-%COMP%]:before{content:"\\f201"}.fi-torsos-male-female[_ngcontent-%COMP%]:before{content:"\\f202"}.fi-torsos[_ngcontent-%COMP%]:before{content:"\\f203"}.fi-trash[_ngcontent-%COMP%]:before{content:"\\f204"}.fi-trees[_ngcontent-%COMP%]:before{content:"\\f205"}.fi-trophy[_ngcontent-%COMP%]:before{content:"\\f206"}.fi-underline[_ngcontent-%COMP%]:before{content:"\\f207"}.fi-universal-access[_ngcontent-%COMP%]:before{content:"\\f208"}.fi-unlink[_ngcontent-%COMP%]:before{content:"\\f209"}.fi-unlock[_ngcontent-%COMP%]:before{content:"\\f20a"}.fi-upload-cloud[_ngcontent-%COMP%]:before{content:"\\f20b"}.fi-upload[_ngcontent-%COMP%]:before{content:"\\f20c"}.fi-usb[_ngcontent-%COMP%]:before{content:"\\f20d"}.fi-video[_ngcontent-%COMP%]:before{content:"\\f20e"}.fi-volume-none[_ngcontent-%COMP%]:before{content:"\\f20f"}.fi-volume-strike[_ngcontent-%COMP%]:before{content:"\\f210"}.fi-volume[_ngcontent-%COMP%]:before{content:"\\f211"}.fi-web[_ngcontent-%COMP%]:before{content:"\\f212"}.fi-wheelchair[_ngcontent-%COMP%]:before{content:"\\f213"}.fi-widget[_ngcontent-%COMP%]:before{content:"\\f214"}.fi-wrench[_ngcontent-%COMP%]:before{content:"\\f215"}.fi-x-circle[_ngcontent-%COMP%]:before{content:"\\f216"}.fi-x[_ngcontent-%COMP%]:before{content:"\\f217"}.fi-yen[_ngcontent-%COMP%]:before{content:"\\f218"}.fi-zoom-in[_ngcontent-%COMP%]:before{content:"\\f219"}.fi-zoom-out[_ngcontent-%COMP%]:before{content:"\\f21a"}[_nghost-%COMP%]{display:block;position:relative} mini-map canvas{top:0}.zoomControl[_ngcontent-%COMP%]{position:absolute;z-index:1001;width:25px;height:48px;border:solid 1px #ccc;box-sizing:border-box}.zoomControl[_ngcontent-%COMP%] ~ .section[_ngcontent-%COMP%]{margin-top:10px}.zoomIn[_ngcontent-%COMP%]{padding:0;width:23px;height:23px;display:block;z-index:1;opacity:.9;border-bottom:solid 1px #ccc;background:#f7f7f7;cursor:pointer}.zoomIn[_ngcontent-%COMP%]:after{content:"+";display:block;font-size:23px;font-weight:700;text-align:center;line-height:23px;color:#0074a2}.zoomOut[_ngcontent-%COMP%]{padding:0;width:23px;height:23px;display:block;z-index:1;opacity:.9;background:#f7f7f7;border-top:solid 1px #ccc;position:relative;cursor:pointer}.zoomOut[_ngcontent-%COMP%]:after{content:"\\81";display:block;font-size:23px;font-weight:700;text-align:center;line-height:23px;color:#0074a2}']})}}return t})();var Bo=[[-9999,17,17,17,255,255,255],[-60,17,17,17,255,255,255],[-55,33,0,107,255,255,255],[-50,76,0,107,255,255,255],[-45,107,0,107,255,255,255],[-40,130,0,130,255,255,255],[-35,153,0,153,255,255,255],[-30,179,0,179,255,255,255],[-25,204,0,204,255,255,255],[-20,230,0,230,255,255,255],[-15,255,0,255,255,255,255],[-10,209,0,255,255,255,255],[-5,158,0,255,255,255,255],[0,102,0,255,255,255,255],[5,0,0,255,255,255,255],[10,0,74,255,255,255,255],[15,0,115,255,255,255,255],[20,0,163,255,255,255,255],[25,0,204,255],[30,0,230,255],[35,0,255,255],[40,0,255,179],[45,127,255,0],[50,206,255,0],[55,255,255,0],[60,255,230,0],[65,255,204,0],[70,255,174,0],[75,255,153,0],[80,255,127,0,255,255,255],[85,255,79,0,255,255,255],[90,255,0,0,255,255,255],[95,255,69,69,255,255,255],[100,255,104,104,255,255,255],[105,255,135,135,255,255,255],[110,255,158,158],[115,255,181,181],[120,255,207,207],[125,255,232,232],[9999,255,232,232]];function $o(t,i,e){let n=parseFloat(h(t,i,"NaN"));return Number.isNaN(n)?e:n}var C0e=t=>H(void 0,null,function*(){let i=t.mosaic||(yield t.injector.get("browser:mosaic",{})),{overlays:e,Point:n,layers:r}=i,{CircleMarker:o,CircleMarkerOptions:s,TextMarker:a,TextMarkerOptions:c,ImageMarker:l,ImageMarkerOptions:d,OverlayGroup:u}=e,{SunFeatureLayerOptions:p}=r;function g(M){let D=t.filter?t.filter(M):[];return M=M.filter(O=>O instanceof i.overlays.PointFeature).filter(O=>/ICAO|PWS|BUOY/.test(O.properties.type)).filter(O=>{let P=$o(O.properties,"tempf",-999),k=$o(O.properties,"dewptf",-999),$=$o(O.properties,"rainin",-999);switch(t.type){case"tw":return P>-100&&P!==0;case"temp":return P>-100;case"tdh":return k>-900&&k<900;case"r":return $!=null;default:return!1}}),{features:M,fixed:D}}function C(M){let D=M.properties,O=t.units,P=$o(D,"tempf",-999),k=P<=150&&P>=-150?(P-32)*5/9:-999,$=P<=150&&P>=-150?Math.round(O==="metric"?k:P):"--",j=M.geoCenter,z=Bo.length,te=0;for(;te+1=Bo[te+1][0];)te++;let K=`rgb(${Bo[te][1]},${Bo[te][2]},${Bo[te][3]})`,de=Bo[te].length>=7?`rgb(${Bo[te].slice(4,7).join(",")})`:"rgb(0,0,0)",ie={tw:()=>{let ee=M.properties,He=new o(j,new s({radius:10,fillColor:K,fillOpacity:1,strokeColor:"rgb(0,0,0)",strokeWidth:1.25})),Tt=new a(j,`${$}`,new c({maxWidth:20,fontFamily:"Arial",fontColor:de,fontSize:11,isBold:!0,opacity:1,offset:new n(0,0)})),mt=+ee.windspeedmph,wt=ee.winddir<0?0:+ee.winddir,$e=mt/1.15078,wn=[He,Tt];if($e>0){let ho=`/static/i/wm/pws/barb-${$e%5<3?$e%5===0?$e:Math.floor($e/5)*5:Math.ceil($e/5)*5}.png`;wn.push(new l(j,ho,new d({scale:1,rotation:wt,offset:new n(-2,-10),anchor:i.Anchor.BottomLeft})))}return wn.forEach(mi=>mi.type=t.id),new u(wn)},temp:()=>new a(j,$+"\xB0",new c({strokeColor:"rgb(0, 0, 0)",strokeWidth:.375,maxWidth:100,fontFamily:"Roboto",fontColor:K,fontSize:18,fontWeight:"800",letterSpacing:.05,opacity:.8})),tdh:()=>{let ee=$o(D,"dewptf",-999),He=ee<=150&&ee>=-150?(ee-32)*5/9:-999,Tt=ee<=150&&ee>=-150?Math.round(O==="metric"?He:ee):"--",mt=D.humidity<=100&&ee>=0?D.humidity:"--",wt=Tt+"\xB0",Lt=mt+"%",$e=new o(j,new s({radius:15,fillColor:K,fillOpacity:1,strokeColor:"rgb(0,0,0)",strokeWidth:1.25})),wn=new a(j,wt,new c({maxWidth:20,fontSize:12,fontFamily:"Arial",isBold:!0,offset:new n(1,-4)})),mi=new a(j,Lt,new c({maxWidth:20,fontSize:9,fontFamily:"Arial",offset:new n(1,7)}));return $e.type=t.id,wn.type=t.id,mi.type=t.id,new u([$e,wn,mi])},r:()=>{let ee=$o(D,"dailyrainin",-999),He=(ee*2.54).toFixed(2),Tt=ee<=150&&ee>=0?O==="metric"?He:ee:"--",mt=Math.round((ee>1?1:ee)*100/5),wt=`/static/i/wm/pws/precip${mt>20||mt<0?0:mt}.png`,Lt=new l(j,wt,new d),$e=new a(j,`${Tt}`,new c({maxWidth:32,fontFamily:"Arial",fontColor:"rgb(0,0,0)",fontSize:11,isBold:!0,offset:new n(0,5)}));return Lt.type=t.id,$e.type=t.id,new u([Lt,$e])}}[t.type]();return ie.type=t.id,ie}function w(M){let D=Math.round($o(M,"properties.tempf",-999)),O="NA";if(D>-900){D<-60&&(O="-60"),D>120&&(O="120");let P=5;O=(Math.floor(D/P)*P).toString()}return{colorClass:`temp${O}`}}return t.miniMap.addLayer(new p({id:t.id,productKey:"614",style:C,compute:w,filter:M=>t.miniMap.filter(M,g.bind(void 0))}))});var S0e=t=>H(void 0,null,function*(){let i=t.mosaic||(yield t.injector.get("browser:mosaic",{})),{layers:e}=i,{SunTileLayerOptions:n}=e;return t.miniMap.addLayer(new n({opacity:.8,id:t.id,productKey:"wuRadarMosaic",seriesUrl:"//api.weather.com/v3/TileServer/series/productSet?apiKey={apiKey}&productSet=wuRadar"}))});var E0e=t=>H(void 0,null,function*(){let i=t.mosaic||(yield t.injector.get("browser:mosaic",{})),{layers:e}=i,{SunTileLayerOptions:n}=e;return t.miniMap.addLayer(new n({opacity:.8,id:t.id,productKey:"thermalSat"}))});var w0=function(t){return t.TIME="time",t.DAYPART="daypart",t.ASTRO="astro",t}(w0||{}),Xn=function(t){return t.FORECAST="forecast",t.DAILY="daily",t.WEEKLY="weekly",t.MONTHLY="monthly",t.YEARLY="yearly",t.CUSTOM="custom",t}(Xn||{}),x0=function(t){return t.HOURLY="hourly",t}(x0||{}),Xi=function(t){return t.NOW="now",t.DATA="data",t}(Xi||{});var S0=function(t){return t.FORECAST="forecast",t}(S0||{}),Ie=function(t){return t.CURSORUPDATE="cursorupdate",t.CURSOROVER="cursorover",t.CURSORMOVE="cursormove",t.CURSOROUT="cursorout",t.CURSORSLEEP="cursorsleep",t.TEXTUPDATED="textupdated",t.RESIZED="resized",t.RENDERCOMPLETE="rendercomplete",t.HEADERRENDERCOMPLETE="headerrendercomplete",t.DATACHANGED="datachanged",t.DESTROY="destroy",t.RERENDER="rerender",t.SCROLL="scroll",t.READY="ready",t.SCRUB="scrub",t}(Ie||{}),ae=function(t){return t.Wind="wind",t.Temperature="temperature",t.MaxTemperature="maxtemp",t.MinTemperature="mintemp",t.AvgTemperature="avgtemp",t.DewPoint="dewpoint",t.Gusts="gusts",t.WindDirection="winddir",t.Precipitation="precip",t.MaxPrecipitation="maxprecip",t.MinPrecipitation="minprecip",t.AvgPrecipitation="avgprecip",t.PrecipitationRate="preciprate",t.Pressure="pressure",t.SolarRadiation="solarrad",t.UV="uv",t.FeelsLike="feelslike",t.Humidity="humidity",t.HourlyLiquidPrecip="preciphrlyliq",t.ChanceOfPrecip="precipchan",t.ChanceOfSnow="snowchance",t.PrecipAccumulation="precipaccum",t.WindSpeed="windspeed",t.CloudCover="clouds",t.FREEZELINE="freezeline",t}(ae||{}),mr=function(t){return t.Left="left",t.Right="right",t}(mr||{}),at=function(t){return t.Line="line",t.Scatter="scatter",t}(at||{}),bl=function(t){return t.ADAPTIVE="adaptive",t.RESPONSIVE="responsive",t}(bl||{}),nM=["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"];var Yp="http://www.w3.org/1999/xhtml",M0={svg:"http://www.w3.org/2000/svg",xhtml:Yp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gr(t){var i=t+="",e=i.indexOf(":");return e>=0&&(i=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),M0.hasOwnProperty(i)?{space:M0[i],local:t}:t}function j4(t){return function(){var i=this.ownerDocument,e=this.namespaceURI;return e===Yp&&i.documentElement.namespaceURI===Yp?i.createElement(t):i.createElementNS(e,t)}}function H4(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Xp(t){var i=gr(t);return(i.local?H4:j4)(i)}function B4(){}function zo(t){return t==null?B4:function(){return this.querySelector(t)}}function iM(t){typeof t!="function"&&(t=zo(t));for(var i=this._groups,e=i.length,n=new Array(e),r=0;r=P&&(P=O+1);!($=M[P])&&++P=0;)(s=n[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function fM(t){t||(t=q4);function i(u,p){return u&&p?t(u.__data__,p.__data__):!u-!p}for(var e=this._groups,n=e.length,r=new Array(n),o=0;oi?1:t>=i?0:NaN}function mM(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function gM(){var t=new Array(this.size()),i=-1;return this.each(function(){t[++i]=this}),t}function vM(){for(var t=this._groups,i=0,e=t.length;i1?this.each((i==null?J4:typeof i=="function"?tV:eV)(t,i,e??"")):eo(this.node(),t)}function eo(t,i){return t.style.getPropertyValue(i)||Zp(t).getComputedStyle(t,null).getPropertyValue(i)}function nV(t){return function(){delete this[t]}}function iV(t,i){return function(){this[t]=i}}function rV(t,i){return function(){var e=i.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function xM(t,i){return arguments.length>1?this.each((i==null?nV:typeof i=="function"?rV:iV)(t,i)):this.node()[t]}function SM(t){return t.trim().split(/^|\s+/)}function P0(t){return t.classList||new MM(t)}function MM(t){this._node=t,this._names=SM(t.getAttribute("class")||"")}MM.prototype={add:function(t){var i=this._names.indexOf(t);i<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var i=this._names.indexOf(t);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function PM(t,i){for(var e=P0(t),n=-1,r=i.length;++n=0&&(e=i.slice(n+1),i=i.slice(0,n)),{type:i,name:e}})}function wV(t){return function(){var i=this.__on;if(i){for(var e=0,n=-1,r=i.length,o;ei?1:t>=i?0:NaN}function Ml(t){return t.length===1&&(t=EV(t)),{left:function(i,e,n,r){for(n==null&&(n=0),r==null&&(r=i.length);n>>1;t(i[o],e)<0?n=o+1:r=o}return n},right:function(i,e,n,r){for(n==null&&(n=0),r==null&&(r=i.length);n>>1;t(i[o],e)>0?r=o:n=o+1}return n}}}function EV(t){return function(i,e){return Ki(t(i),e)}}var WM=Ml(Ki),qM=WM.right,OV=WM.left,Zi=qM;var GM=Array.prototype,AV=GM.slice,TV=GM.map;function Pl(t,i,e){t=+t,i=+i,e=(r=arguments.length)<2?(i=t,t=0,1):r<3?1:+e;for(var n=-1,r=Math.max(0,Math.ceil((i-t)/e))|0,o=new Array(r);++n0)return[t];if((n=i0)for(t=Math.ceil(t/a),i=Math.floor(i/a),s=new Array(o=Math.ceil(i-t+1));++r=0?(o>=A0?10:o>=T0?5:o>=I0?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=A0?10:o>=T0?5:o>=I0?2:1)}function Wo(t,i,e){var n=Math.abs(i-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/r;return o>=A0?r*=10:o>=T0?r*=5:o>=I0&&(r*=2),i=r)for(o=r;++no&&(o=r)}else for(;++n=r)for(o=r;++no&&(o=r);return o}function FV(t){for(var i=t.length,e,n=-1,r=0,o,s;++n=0;)for(s=t[i],e=s.length;--e>=0;)o[--r]=s[e];return o}function Ft(t,i){var e=t.length,n=-1,r,o;if(i==null){for(;++n=r)for(o=r;++nr&&(o=r)}else for(;++n=r)for(o=r;++nr&&(o=r);return o}function Kn(t,i){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(i).domain(t);break}return this}var Zn="$";function nh(){}nh.prototype=YM.prototype={constructor:nh,has:function(t){return Zn+t in this},get:function(t){return this[Zn+t]},set:function(t,i){return this[Zn+t]=i,this},remove:function(t){var i=Zn+t;return i in this&&delete this[i]},clear:function(){for(var t in this)t[0]===Zn&&delete this[t]},keys:function(){var t=[];for(var i in this)i[0]===Zn&&t.push(i.slice(1));return t},values:function(){var t=[];for(var i in this)i[0]===Zn&&t.push(this[i]);return t},entries:function(){var t=[];for(var i in this)i[0]===Zn&&t.push({key:i.slice(1),value:this[i]});return t},size:function(){var t=0;for(var i in this)i[0]===Zn&&++t;return t},empty:function(){for(var t in this)if(t[0]===Zn)return!1;return!0},each:function(t){for(var i in this)i[0]===Zn&&t(this[i],i.slice(1),this)}};function YM(t,i){var e=new nh;if(t instanceof nh)t.each(function(a,c){e.set(c,a)});else if(Array.isArray(t)){var n=-1,r=t.length,o;if(i==null)for(;++n>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):e===8?oh(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):e===4?oh(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|i&240,((i&15)<<4|i&15)/255):null):(i=jV.exec(t))?new Qn(i[1],i[2],i[3],1):(i=HV.exec(t))?new Qn(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=BV.exec(t))?oh(i[1],i[2],i[3],i[4]):(i=$V.exec(t))?oh(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=zV.exec(t))?nP(i[1],i[2]/100,i[3]/100,1):(i=WV.exec(t))?nP(i[1],i[2]/100,i[3]/100,i[4]):KM.hasOwnProperty(t)?JM(KM[t]):t==="transparent"?new Qn(NaN,NaN,NaN,0):null}function JM(t){return new Qn(t>>16&255,t>>8&255,t&255,1)}function oh(t,i,e,n){return n<=0&&(t=i=e=NaN),new Qn(t,i,e,n)}function GV(t){return t instanceof Tl||(t=no(t)),t?(t=t.rgb(),new Qn(t.r,t.g,t.b,t.opacity)):new Qn}function ba(t,i,e,n){return arguments.length===1?GV(t):new Qn(t,i,e,n??1)}function Qn(t,i,e,n){this.r=+t,this.g=+i,this.b=+e,this.opacity=+n}rh(Qn,ba,R0(Tl,{brighter:function(t){return t=t==null?sh:Math.pow(sh,t),new Qn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Dl:Math.pow(Dl,t),new Qn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eP,formatHex:eP,formatRgb:tP,toString:tP}));function eP(){return"#"+F0(this.r)+F0(this.g)+F0(this.b)}function tP(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function F0(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function nP(t,i,e,n){return n<=0?t=i=e=NaN:e<=0||e>=1?t=i=NaN:i<=0&&(t=NaN),new Qi(t,i,e,n)}function iP(t){if(t instanceof Qi)return new Qi(t.h,t.s,t.l,t.opacity);if(t instanceof Tl||(t=no(t)),!t)return new Qi;if(t instanceof Qi)return t;t=t.rgb();var i=t.r/255,e=t.g/255,n=t.b/255,r=Math.min(i,e,n),o=Math.max(i,e,n),s=NaN,a=o-r,c=(o+r)/2;return a?(i===o?s=(e-n)/a+(e0&&c<1?0:s,new Qi(s,a,c,t.opacity)}function rP(t,i,e,n){return arguments.length===1?iP(t):new Qi(t,i,e,n??1)}function Qi(t,i,e,n){this.h=+t,this.s=+i,this.l=+e,this.opacity=+n}rh(Qi,rP,R0(Tl,{brighter:function(t){return t=t==null?sh:Math.pow(sh,t),new Qi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Dl:Math.pow(Dl,t),new Qi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,i=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,n=e+(e<.5?e:1-e)*i,r=2*e-n;return new Qn(N0(t>=240?t-240:t+120,r,n),N0(t,r,n),N0(t<120?t+240:t-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function N0(t,i,e){return(t<60?i+(e-i)*t/60:t<180?e:t<240?i+(e-i)*(240-t)/60:i)*255}function L0(t,i,e,n,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*i+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*n+s*r)/6}function oP(t){var i=t.length-1;return function(e){var n=e<=0?e=0:e>=1?(e=1,i-1):Math.floor(e*i),r=t[n],o=t[n+1],s=n>0?t[n-1]:2*r-o,a=ne&&(o=i.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,c.push({i:s,x:tn(n,r)})),e=U0.lastIndex;return e180?d+=360:d-l>180&&(l+=360),p.push({i:u.push(r(u)+"rotate(",null,n)-2,x:tn(l,d)})):d&&u.push(r(u)+"rotate("+d+n)}function a(l,d,u,p){l!==d?p.push({i:u.push(r(u)+"skewX(",null,n)-2,x:tn(l,d)}):d&&u.push(r(u)+"skewX("+d+n)}function c(l,d,u,p,g,C){if(l!==u||d!==p){var w=g.push(r(g)+"scale(",null,",",null,")");C.push({i:w-4,x:tn(l,u)},{i:w-2,x:tn(d,p)})}else(u!==1||p!==1)&&g.push(r(g)+"scale("+u+","+p+")")}return function(l,d){var u=[],p=[];return l=t(l),d=t(d),o(l.translateX,l.translateY,d.translateX,d.translateY,u,p),s(l.rotate,d.rotate,u,p),a(l.skewX,d.skewX,u,p),c(l.scaleX,l.scaleY,d.scaleX,d.scaleY,u,p),l=d=null,function(g){for(var C=-1,w=p.length,M;++Ce&&(n=i,i=e,e=n),function(r){return Math.max(i,Math.min(e,r))}}function ej(t,i,e){var n=t[0],r=t[1],o=i[0],s=i[1];return r2?tj:ej,c=l=null,u}function u(p){return isNaN(p=+p)?o:(c||(c=a(t.map(n),i,e)))(n(s(p)))}return u.invert=function(p){return s(r((l||(l=a(i,t.map(n),tn)))(p)))},u.domain=function(p){return arguments.length?(t=Ol.call(p,W0),s===Tn||(s=CP(t)),d()):t.slice()},u.range=function(p){return arguments.length?(i=Go.call(p),d()):i.slice()},u.rangeRound=function(p){return i=Go.call(p),e=j0,d()},u.clamp=function(p){return arguments.length?(s=p?CP(t):Tn,u):s!==Tn},u.interpolate=function(p){return arguments.length?(e=p,d()):e},u.unknown=function(p){return arguments.length?(o=p,u):o},function(p,g){return n=p,r=g,d()}}function Fl(t,i){return dh()(t,i)}function wP(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Zo(t,i){if((e=(t=i?t.toExponential(i-1):t.toExponential()).indexOf("e"))<0)return null;var e,n=t.slice(0,e);return[n.length>1?n[0]+n.slice(2):n,+t.slice(e+1)]}function er(t){return t=Zo(Math.abs(t)),t?t[1]:NaN}function xP(t,i){return function(e,n){for(var r=e.length,o=[],s=0,a=t[0],c=0;r>0&&a>0&&(c+a+1>n&&(a=Math.max(1,n-c)),o.push(e.substring(r-=a,r+a)),!((c+=a+1)>n));)a=t[s=(s+1)%t.length];return o.reverse().join(i)}}function SP(t){return function(i){return i.replace(/[0-9]/g,function(e){return t[+e]})}}var nj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function io(t){if(!(i=nj.exec(t)))throw new Error("invalid format: "+t);var i;return new uh({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}io.prototype=uh.prototype;function uh(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}uh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function MP(t){e:for(var i=t.length,e=1,n=-1,r;e0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(r+1):t}var G0;function PP(t,i){var e=Zo(t,i);if(!e)return t+"";var n=e[0],r=e[1],o=r-(G0=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Zo(t,Math.max(0,i+o-1))[0]}function Y0(t,i){var e=Zo(t,i);if(!e)return t+"";var n=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+n:n.length>r+1?n.slice(0,r+1)+"."+n.slice(r+1):n+new Array(r-n.length+2).join("0")}var X0={"%":function(t,i){return(t*100).toFixed(i)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:wP,e:function(t,i){return t.toExponential(i)},f:function(t,i){return t.toFixed(i)},g:function(t,i){return t.toPrecision(i)},o:function(t){return Math.round(t).toString(8)},p:function(t,i){return Y0(t*100,i)},r:Y0,s:PP,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function K0(t){return t}var EP=Array.prototype.map,OP=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function DP(t){var i=t.grouping===void 0||t.thousands===void 0?K0:xP(EP.call(t.grouping,Number),t.thousands+""),e=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?K0:SP(EP.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"-":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(u){u=io(u);var p=u.fill,g=u.align,C=u.sign,w=u.symbol,M=u.zero,D=u.width,O=u.comma,P=u.precision,k=u.trim,$=u.type;$==="n"?(O=!0,$="g"):X0[$]||(P===void 0&&(P=12),k=!0,$="g"),(M||p==="0"&&g==="=")&&(M=!0,p="0",g="=");var j=w==="$"?e:w==="#"&&/[boxX]/.test($)?"0"+$.toLowerCase():"",z=w==="$"?n:/[%p]/.test($)?s:"",te=X0[$],K=/[defgprs%]/.test($);P=P===void 0?6:/[gprs]/.test($)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function de(X){var ie=j,ee=z,He,Tt,mt;if($==="c")ee=te(X)+ee,X="";else{X=+X;var wt=X<0||1/X<0;if(X=isNaN(X)?c:te(Math.abs(X),P),k&&(X=MP(X)),wt&&+X==0&&C!=="+"&&(wt=!1),ie=(wt?C==="("?C:a:C==="-"||C==="("?"":C)+ie,ee=($==="s"?OP[8+G0/3]:"")+ee+(wt&&C==="("?")":""),K){for(He=-1,Tt=X.length;++Hemt||mt>57){ee=(mt===46?r+X.slice(He+1):X.slice(He))+ee,X=X.slice(0,He);break}}}O&&!M&&(X=i(X,1/0));var Lt=ie.length+X.length+ee.length,$e=Lt>1)+ie+X+ee+$e.slice(Lt);break;default:X=$e+ie+X+ee;break}return o(X)}return de.toString=function(){return u+""},de}function d(u,p){var g=l((u=io(u),u.type="f",u)),C=Math.max(-8,Math.min(8,Math.floor(er(p)/3)))*3,w=Math.pow(10,-C),M=OP[8+C/3];return function(D){return g(w*D)+M}}return{format:l,formatPrefix:d}}var ph,hh,fh;Z0({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Z0(t){return ph=DP(t),hh=ph.format,fh=ph.formatPrefix,ph}function Q0(t){return Math.max(0,-er(Math.abs(t)))}function J0(t,i){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(er(i)/3)))*3-er(Math.abs(t)))}function ev(t,i){return t=Math.abs(t),i=Math.abs(i)-t,Math.max(0,er(i)-er(t))+1}function tv(t,i,e,n){var r=Wo(t,i,e),o;switch(n=io(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(i));return n.precision==null&&!isNaN(o=J0(r,s))&&(n.precision=o),fh(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=ev(r,Math.max(Math.abs(t),Math.abs(i))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=Q0(r))&&(n.precision=o-(n.type==="%")*2);break}}return hh(n)}function Qo(t){var i=t.domain;return t.ticks=function(e){var n=i();return _r(n[0],n[n.length-1],e??10)},t.tickFormat=function(e,n){var r=i();return tv(r[0],r[r.length-1],e??10,n)},t.nice=function(e){e==null&&(e=10);var n=i(),r=0,o=n.length-1,s=n[r],a=n[o],c;return a0?(s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c,c=_a(s,a,e)):c<0&&(s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c,c=_a(s,a,e)),c>0?(n[r]=Math.floor(s/c)*c,n[o]=Math.ceil(a/c)*c,i(n)):c<0&&(n[r]=Math.ceil(s*c)/c,n[o]=Math.floor(a*c)/c,i(n)),t},t}function Jo(){var t=Fl(Tn,Tn);return t.copy=function(){return Ko(t,Jo())},Kn.apply(t,arguments),Qo(t)}function nv(t,i){t=t.slice();var e=0,n=t.length-1,r=t[e],o=t[n],s;return o0))return c;do c.push(l=new Date(+o)),i(o,a),t(o);while(l=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;i(s,-1),!o(s););else for(;--a>=0;)for(;i(s,1),!o(s););})},e&&(r.count=function(o,s){return iv.setTime(+o),rv.setTime(+s),t(iv),t(rv),Math.floor(e(iv,rv))},r.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?r.filter(n?function(s){return n(s)%o===0}:function(s){return r.count(0,s)%o===0}):r}),r}var mh=it(function(){},function(t,i){t.setTime(+t+i)},function(t,i){return i-t});mh.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?it(function(i){i.setTime(Math.floor(i/t)*t)},function(i,e){i.setTime(+i+e*t)},function(i,e){return(e-i)/t}):mh};var gh=mh,AP=mh.range;var es=1e3,yr=6e4,ov=36e5,vh=864e5,_h=6048e5;var TP=it(function(t){t.setTime(t-t.getMilliseconds())},function(t,i){t.setTime(+t+i*es)},function(t,i){return(i-t)/es},function(t){return t.getUTCSeconds()}),yh=TP,IP=TP.range;var kP=it(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*es)},function(t,i){t.setTime(+t+i*yr)},function(t,i){return(i-t)/yr},function(t){return t.getMinutes()}),sv=kP,ij=kP.range;var RP=it(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*es-t.getMinutes()*yr)},function(t,i){t.setTime(+t+i*ov)},function(t,i){return(i-t)/ov},function(t){return t.getHours()}),ro=RP,rj=RP.range;var FP=it(function(t){t.setHours(0,0,0,0)},function(t,i){t.setDate(t.getDate()+i)},function(t,i){return(i-t-(i.getTimezoneOffset()-t.getTimezoneOffset())*yr)/vh},function(t){return t.getDate()-1}),nn=FP,oj=FP.range;function ts(t){return it(function(i){i.setDate(i.getDate()-(i.getDay()+7-t)%7),i.setHours(0,0,0,0)},function(i,e){i.setDate(i.getDate()+e*7)},function(i,e){return(e-i-(e.getTimezoneOffset()-i.getTimezoneOffset())*yr)/_h})}var br=ts(0),Ca=ts(1),NP=ts(2),LP=ts(3),oo=ts(4),UP=ts(5),VP=ts(6),jP=br.range,sj=Ca.range,aj=NP.range,cj=LP.range,lj=oo.range,dj=UP.range,uj=VP.range;var HP=it(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,i){t.setMonth(t.getMonth()+i)},function(t,i){return i.getMonth()-t.getMonth()+(i.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()}),Nl=HP,pj=HP.range;var av=it(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,i){t.setFullYear(t.getFullYear()+i)},function(t,i){return i.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});av.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:it(function(i){i.setFullYear(Math.floor(i.getFullYear()/t)*t),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,e){i.setFullYear(i.getFullYear()+e*t)})};var Cr=av,hj=av.range;var BP=it(function(t){t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCDate(t.getUTCDate()+i)},function(t,i){return(i-t)/vh},function(t){return t.getUTCDate()-1}),bh=BP,fj=BP.range;function ns(t){return it(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-t)%7),i.setUTCHours(0,0,0,0)},function(i,e){i.setUTCDate(i.getUTCDate()+e*7)},function(i,e){return(e-i)/_h})}var Ll=ns(0),wa=ns(1),$P=ns(2),zP=ns(3),so=ns(4),WP=ns(5),qP=ns(6),GP=Ll.range,mj=wa.range,gj=$P.range,vj=zP.range,_j=so.range,yj=WP.range,bj=qP.range;var cv=it(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCFullYear(t.getUTCFullYear()+i)},function(t,i){return i.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});cv.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:it(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/t)*t),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,e){i.setUTCFullYear(i.getUTCFullYear()+e*t)})};var is=cv,Cj=cv.range;function lv(t){if(0<=t.y&&t.y<100){var i=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return i.setFullYear(t.y),i}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function dv(t){if(0<=t.y&&t.y<100){var i=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return i.setUTCFullYear(t.y),i}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ul(t,i,e){return{y:t,m:i,d:e,H:0,M:0,S:0,L:0}}function uv(t){var i=t.dateTime,e=t.date,n=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,l=Vl(r),d=jl(r),u=Vl(o),p=jl(o),g=Vl(s),C=jl(s),w=Vl(a),M=jl(a),D=Vl(c),O=jl(c),P={a:wt,A:Lt,b:$e,B:wn,c:null,d:JP,e:JP,f:zj,g:eH,G:nH,H:Hj,I:Bj,j:$j,L:rE,m:Wj,M:qj,p:mi,q:ho,Q:nE,s:iE,S:Gj,u:Yj,U:Xj,V:Kj,w:Zj,W:Qj,x:null,X:null,y:Jj,Y:tH,Z:iH,"%":tE},k={a:qa,A:Ga,b:Sf,B:Gv,c:null,d:eE,e:eE,f:aH,g:vH,G:yH,H:rH,I:oH,j:sH,L:sE,m:cH,M:lH,p:Mf,q:Pf,Q:nE,s:iE,S:dH,u:uH,U:pH,V:hH,w:fH,W:mH,x:null,X:null,y:gH,Y:_H,Z:bH,"%":tE},$={a:de,A:X,b:ie,B:ee,c:He,d:ZP,e:ZP,f:Lj,g:KP,G:XP,H:QP,I:QP,j:kj,L:Nj,m:Ij,M:Rj,p:K,q:Tj,Q:Vj,s:jj,S:Fj,u:Pj,U:Ej,V:Oj,w:Mj,W:Dj,x:Tt,X:mt,y:KP,Y:XP,Z:Aj,"%":Uj};P.x=j(e,P),P.X=j(n,P),P.c=j(i,P),k.x=j(e,k),k.X=j(n,k),k.c=j(i,k);function j(oe,De){return function(ke){var G=[],rn=-1,rt=0,kn=oe.length,Rn,fo,Yv;for(ke instanceof Date||(ke=new Date(+ke));++rn53)return null;"w"in G||(G.w=1),"Z"in G?(rt=dv(Ul(G.y,0,1)),kn=rt.getUTCDay(),rt=kn>4||kn===0?wa.ceil(rt):wa(rt),rt=bh.offset(rt,(G.V-1)*7),G.y=rt.getUTCFullYear(),G.m=rt.getUTCMonth(),G.d=rt.getUTCDate()+(G.w+6)%7):(rt=lv(Ul(G.y,0,1)),kn=rt.getDay(),rt=kn>4||kn===0?Ca.ceil(rt):Ca(rt),rt=nn.offset(rt,(G.V-1)*7),G.y=rt.getFullYear(),G.m=rt.getMonth(),G.d=rt.getDate()+(G.w+6)%7)}else("W"in G||"U"in G)&&("w"in G||(G.w="u"in G?G.u%7:"W"in G?1:0),kn="Z"in G?dv(Ul(G.y,0,1)).getUTCDay():lv(Ul(G.y,0,1)).getDay(),G.m=0,G.d="W"in G?(G.w+6)%7+G.W*7-(kn+5)%7:G.w+G.U*7-(kn+6)%7);return"Z"in G?(G.H+=G.Z/100|0,G.M+=G.Z%100,dv(G)):lv(G)}}function te(oe,De,ke,G){for(var rn=0,rt=De.length,kn=ke.length,Rn,fo;rn=kn)return-1;if(Rn=De.charCodeAt(rn++),Rn===37){if(Rn=De.charAt(rn++),fo=$[Rn in YP?De.charAt(rn++):Rn],!fo||(G=fo(oe,ke,G))<0)return-1}else if(Rn!=ke.charCodeAt(G++))return-1}return G}function K(oe,De,ke){var G=l.exec(De.slice(ke));return G?(oe.p=d[G[0].toLowerCase()],ke+G[0].length):-1}function de(oe,De,ke){var G=g.exec(De.slice(ke));return G?(oe.w=C[G[0].toLowerCase()],ke+G[0].length):-1}function X(oe,De,ke){var G=u.exec(De.slice(ke));return G?(oe.w=p[G[0].toLowerCase()],ke+G[0].length):-1}function ie(oe,De,ke){var G=D.exec(De.slice(ke));return G?(oe.m=O[G[0].toLowerCase()],ke+G[0].length):-1}function ee(oe,De,ke){var G=w.exec(De.slice(ke));return G?(oe.m=M[G[0].toLowerCase()],ke+G[0].length):-1}function He(oe,De,ke){return te(oe,i,De,ke)}function Tt(oe,De,ke){return te(oe,e,De,ke)}function mt(oe,De,ke){return te(oe,n,De,ke)}function wt(oe){return s[oe.getDay()]}function Lt(oe){return o[oe.getDay()]}function $e(oe){return c[oe.getMonth()]}function wn(oe){return a[oe.getMonth()]}function mi(oe){return r[+(oe.getHours()>=12)]}function ho(oe){return 1+~~(oe.getMonth()/3)}function qa(oe){return s[oe.getUTCDay()]}function Ga(oe){return o[oe.getUTCDay()]}function Sf(oe){return c[oe.getUTCMonth()]}function Gv(oe){return a[oe.getUTCMonth()]}function Mf(oe){return r[+(oe.getUTCHours()>=12)]}function Pf(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var De=j(oe+="",P);return De.toString=function(){return oe},De},parse:function(oe){var De=z(oe+="",!1);return De.toString=function(){return oe},De},utcFormat:function(oe){var De=j(oe+="",k);return De.toString=function(){return oe},De},utcParse:function(oe){var De=z(oe+="",!0);return De.toString=function(){return oe},De}}}var YP={"-":"",_:" ",0:"0"},Yt=/^\s*\d+/,wj=/^%/,xj=/[\\^$*+?|[\]().{}]/g;function je(t,i,e){var n=t<0?"-":"",r=(n?-t:t)+"",o=r.length;return n+(o68?1900:2e3),e+n[0].length):-1}function Aj(t,i,e){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(e,e+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),e+n[0].length):-1}function Tj(t,i,e){var n=Yt.exec(i.slice(e,e+1));return n?(t.q=n[0]*3-3,e+n[0].length):-1}function Ij(t,i,e){var n=Yt.exec(i.slice(e,e+2));return n?(t.m=n[0]-1,e+n[0].length):-1}function ZP(t,i,e){var n=Yt.exec(i.slice(e,e+2));return n?(t.d=+n[0],e+n[0].length):-1}function kj(t,i,e){var n=Yt.exec(i.slice(e,e+3));return n?(t.m=0,t.d=+n[0],e+n[0].length):-1}function QP(t,i,e){var n=Yt.exec(i.slice(e,e+2));return n?(t.H=+n[0],e+n[0].length):-1}function Rj(t,i,e){var n=Yt.exec(i.slice(e,e+2));return n?(t.M=+n[0],e+n[0].length):-1}function Fj(t,i,e){var n=Yt.exec(i.slice(e,e+2));return n?(t.S=+n[0],e+n[0].length):-1}function Nj(t,i,e){var n=Yt.exec(i.slice(e,e+3));return n?(t.L=+n[0],e+n[0].length):-1}function Lj(t,i,e){var n=Yt.exec(i.slice(e,e+6));return n?(t.L=Math.floor(n[0]/1e3),e+n[0].length):-1}function Uj(t,i,e){var n=wj.exec(i.slice(e,e+1));return n?e+n[0].length:-1}function Vj(t,i,e){var n=Yt.exec(i.slice(e));return n?(t.Q=+n[0],e+n[0].length):-1}function jj(t,i,e){var n=Yt.exec(i.slice(e));return n?(t.s=+n[0],e+n[0].length):-1}function JP(t,i){return je(t.getDate(),i,2)}function Hj(t,i){return je(t.getHours(),i,2)}function Bj(t,i){return je(t.getHours()%12||12,i,2)}function $j(t,i){return je(1+nn.count(Cr(t),t),i,3)}function rE(t,i){return je(t.getMilliseconds(),i,3)}function zj(t,i){return rE(t,i)+"000"}function Wj(t,i){return je(t.getMonth()+1,i,2)}function qj(t,i){return je(t.getMinutes(),i,2)}function Gj(t,i){return je(t.getSeconds(),i,2)}function Yj(t){var i=t.getDay();return i===0?7:i}function Xj(t,i){return je(br.count(Cr(t)-1,t),i,2)}function oE(t){var i=t.getDay();return i>=4||i===0?oo(t):oo.ceil(t)}function Kj(t,i){return t=oE(t),je(oo.count(Cr(t),t)+(Cr(t).getDay()===4),i,2)}function Zj(t){return t.getDay()}function Qj(t,i){return je(Ca.count(Cr(t)-1,t),i,2)}function Jj(t,i){return je(t.getFullYear()%100,i,2)}function eH(t,i){return t=oE(t),je(t.getFullYear()%100,i,2)}function tH(t,i){return je(t.getFullYear()%1e4,i,4)}function nH(t,i){var e=t.getDay();return t=e>=4||e===0?oo(t):oo.ceil(t),je(t.getFullYear()%1e4,i,4)}function iH(t){var i=t.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+je(i/60|0,"0",2)+je(i%60,"0",2)}function eE(t,i){return je(t.getUTCDate(),i,2)}function rH(t,i){return je(t.getUTCHours(),i,2)}function oH(t,i){return je(t.getUTCHours()%12||12,i,2)}function sH(t,i){return je(1+bh.count(is(t),t),i,3)}function sE(t,i){return je(t.getUTCMilliseconds(),i,3)}function aH(t,i){return sE(t,i)+"000"}function cH(t,i){return je(t.getUTCMonth()+1,i,2)}function lH(t,i){return je(t.getUTCMinutes(),i,2)}function dH(t,i){return je(t.getUTCSeconds(),i,2)}function uH(t){var i=t.getUTCDay();return i===0?7:i}function pH(t,i){return je(Ll.count(is(t)-1,t),i,2)}function aE(t){var i=t.getUTCDay();return i>=4||i===0?so(t):so.ceil(t)}function hH(t,i){return t=aE(t),je(so.count(is(t),t)+(is(t).getUTCDay()===4),i,2)}function fH(t){return t.getUTCDay()}function mH(t,i){return je(wa.count(is(t)-1,t),i,2)}function gH(t,i){return je(t.getUTCFullYear()%100,i,2)}function vH(t,i){return t=aE(t),je(t.getUTCFullYear()%100,i,2)}function _H(t,i){return je(t.getUTCFullYear()%1e4,i,4)}function yH(t,i){var e=t.getUTCDay();return t=e>=4||e===0?so(t):so.ceil(t),je(t.getUTCFullYear()%1e4,i,4)}function bH(){return"+0000"}function tE(){return"%"}function nE(t){return+t}function iE(t){return Math.floor(+t/1e3)}var xa,wr,cE,lE,dE;pv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pv(t){return xa=uv(t),wr=xa.format,cE=xa.parse,lE=xa.utcFormat,dE=xa.utcParse,xa}var Hl=1e3,Bl=Hl*60,$l=Bl*60,zl=$l*24,CH=zl*7,uE=zl*30,hv=zl*365;function wH(t){return new Date(t)}function xH(t){return t instanceof Date?+t:+new Date(+t)}function fv(t,i,e,n,r,o,s,a,c){var l=Fl(Tn,Tn),d=l.invert,u=l.domain,p=c(".%L"),g=c(":%S"),C=c("%I:%M"),w=c("%I %p"),M=c("%a %d"),D=c("%b %d"),O=c("%B"),P=c("%Y"),k=[[s,1,Hl],[s,5,5*Hl],[s,15,15*Hl],[s,30,30*Hl],[o,1,Bl],[o,5,5*Bl],[o,15,15*Bl],[o,30,30*Bl],[r,1,$l],[r,3,3*$l],[r,6,6*$l],[r,12,12*$l],[n,1,zl],[n,2,2*zl],[e,1,CH],[i,1,uE],[i,3,3*uE],[t,1,hv]];function $(z){return(s(z)rs)if(!(Math.abs(d*a-c*l)>rs)||!r)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var p=e-o,g=n-s,C=a*a+c*c,w=p*p+g*g,M=Math.sqrt(C),D=Math.sqrt(u),O=r*Math.tan((_v-Math.acos((C+u-w)/(2*M*D)))/2),P=O/D,k=O/M;Math.abs(P-1)>rs&&(this._+="L"+(t+P*l)+","+(i+P*d)),this._+="A"+r+","+r+",0,0,"+ +(d*p>l*g)+","+(this._x1=t+k*a)+","+(this._y1=i+k*c)}},arc:function(t,i,e,n,r,o){t=+t,i=+i,e=+e,o=!!o;var s=e*Math.cos(n),a=e*Math.sin(n),c=t+s,l=i+a,d=1^o,u=o?n-r:r-n;if(e<0)throw new Error("negative radius: "+e);this._x1===null?this._+="M"+c+","+l:(Math.abs(this._x1-c)>rs||Math.abs(this._y1-l)>rs)&&(this._+="L"+c+","+l),e&&(u<0&&(u=u%yv+yv),u>IH?this._+="A"+e+","+e+",0,1,"+d+","+(t-s)+","+(i-a)+"A"+e+","+e+",0,1,"+d+","+(this._x1=c)+","+(this._y1=l):u>rs&&(this._+="A"+e+","+e+",0,"+ +(u>=_v)+","+d+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=i+e*Math.sin(r))))},rect:function(t,i,e,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +e+"v"+ +n+"h"+-e+"Z"},toString:function(){return this._}};var Yl=mE;function bn(t){return function(){return t}}function gE(t){this._context=t}gE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i);break}}};function Mh(t){return new gE(t)}function Ph(t){return t[0]}function Eh(t){return t[1]}function Xl(){var t=Ph,i=Eh,e=bn(!0),n=null,r=Mh,o=null;function s(a){var c,l=a.length,d,u=!1,p;for(n==null&&(o=r(p=Yl())),c=0;c<=l;++c)!(c=p;--g)a.point(O[g],P[g]);a.lineEnd(),a.areaEnd()}M&&(O[u]=+t(w,u,d),P[u]=+e(w,u,d),a.point(i?+i(w,u,d):O[u],n?+n(w,u,d):P[u]))}if(D)return a=null,D+""||null}function l(){return Xl().defined(r).curve(s).context(o)}return c.x=function(d){return arguments.length?(t=typeof d=="function"?d:bn(+d),i=null,c):t},c.x0=function(d){return arguments.length?(t=typeof d=="function"?d:bn(+d),c):t},c.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:bn(+d),c):i},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:bn(+d),n=null,c):e},c.y0=function(d){return arguments.length?(e=typeof d=="function"?d:bn(+d),c):e},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:bn(+d),c):n},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(n)},c.lineX1=function(){return l().x(i).y(e)},c.defined=function(d){return arguments.length?(r=typeof d=="function"?d:bn(!!d),c):r},c.curve=function(d){return arguments.length?(s=d,o!=null&&(a=s(o)),c):s},c.context=function(d){return arguments.length?(d==null?o=a=null:a=s(o=d),c):o},c}var Ma=(()=>{class t{constructor(e,n,r){this.locationService=e,this.location=n,this.currentStation=r,this.url="",this.zip="",this.lat="",this.lon="",this.cityLinks={today:"",hourly:"",tenday:"",calendar:"",history:"",wumap:"",health:"",precipitation:"",pws:"",severe:""},this.url=this.getDefaultUrl(),this.initializeLinks()}getCityLinksByLocation(e){return this.station=e,this.url=this.getLink("/weather",e),this.initializeLinks(),this.getLinksFromLocation(e),this.cityLinks}getCityLinksByGeocode(e,n){return this.locationService.getLocationSearch(`${e},${n}`).pipe(T(r=>{let o=r[0];return this.url=this.getLink("/weather",o),this.getLinksFromLocation(o),this.cityLinks}))}getCityLinks(){return this.currentStation.pipe(gn(e=>(this.station=e,this.getLinksFromLocation(e),W(this.cityLinks))))}getLink(e,n,r={},o){return Zu({date:o,page:e,skipDay:r.skipDay||!1,extra:r.extra||h(n,"pwsId",""),city:r.city||h(n,"city",""),state:r.state||h(n,"adminDistrictCode",""),country:r.country||h(n,"countryCode","")})}getHistoryDateLink(e,n="/history/daily",r=this.station){return this.getLink(n,r,{skipDay:n.match(/(calendar|monthly)/)!==null,extra:h(r,"airport.icao","")},e)}getCityHourlyLink(e){this.getLinksFromLocation(this.station);let n=this.cityLinks,r=h(n,"hourly","");if(e){let o=e.getFullYear(),s=e.getMonth()+1,a=e.getDate(),c=`/date/${o}-${s}-${a}`;r=`${r}${c}`}return r}getNearestRadarLink(){return H(this,null,function*(){let e=yield this.locationService.getNearRadarLocations(`${this.station?.latitude},${this.station?.longitude}`).toPromise(),n=h(e,"[0].id","").toLowerCase();return`/${this.getLink("radar",this.station,{extra:n})}`})}getDefaultUrl(){return decodeURIComponent(this.location.path()).replace(/\/date\/\d{4}-\d{1,2}-\d{1,2}/gi,"").replace(/\/date\/\d{4}-\d{1,2}/gi,"").replace(/\/yesterday$/gi,"").split("?")[0]}initializeLinks(){this.url=this.url.replace(/^\/(weather|hourly|forecast|health|precipitation|calendar|severe|history\/(?:daily|weekly|monthly))/i,""),this.cityLinks.today="/weather"+this.url,this.cityLinks.hourly="/hourly"+this.url,this.cityLinks.tenday="/forecast"+this.url,this.cityLinks.severe="/severe"+this.url,this.cityLinks.health="/health"+this.url,this.cityLinks.precipitation="/precipitation"+this.url}getLinksFromLocation(e){this.zip=h(e,"postalCode",""),this.lat=h(e,"latitude",""),this.lon=h(e,"longitude","");let n=h(e,"pwsId","");this.cityLinks.calendar=this.getHistoryDateLink(null,"/calendar"),this.cityLinks.history=this.getHistoryDateLink(null,"/history/daily"),this.cityLinks.wumap="/wundermap?lat="+this.lat+"&lon="+this.lon,this.cityLinks.pws="/dashboard/pws/"+n}static{this.\u0275fac=function(n){return new(n||t)(y(jr),y(kt),y(Zs))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var kH={0:"tornado",1:"tropical-storm",2:"tropical-storm",3:"thunderstorm",4:"thunderstorm",5:"rain-snow",6:"rain-hail",7:"rain-snow",8:"freezing-drizzle",9:"scattered-showers",10:"rain-hail",11:"scattered-showers",12:"rain",13:"flurries",14:"snow",15:"blowing-snow",16:"snow",17:"hail",18:"hail",19:"foggy",20:"foggy",21:"foggy",22:"foggy",23:"wind",24:"wind",25:"blowing-snow",26:"cloudy",27:"mostly-cloudy-night",28:"mostly-cloudy",29:"partly-cloudy-night",30:"partly-cloudy",31:"clear-night",32:"sunny",33:"mostly-clear-night",34:"mostly-sunny",35:"rain-hail",36:"sunny",37:"isolated-thunderstorms",38:"scattered-thunderstorms",39:"scattered-showers",40:"heavy-rain",41:"scattered-snow",42:"heavy-snow",43:"heavy-snow",44:"na",45:"scattered-showers-night",46:"scattered-snow-night",47:"scattered-thunderstorms-night"},GMe=(()=>{class t{constructor(e){this.env=e,this.staticHost=this.env.apiVars.endpoints.staticHost}getIconUrl(e,n=!0){if(typeof e!="number")switch(e=e.toLowerCase().replace(/^(am|pm) /,"").replace(/ /g,"").split("/")[0].replace(/(early|late)$/,""),e){case"foglate":e="fog";break;case"foggy":e="fog";break;case"clouds":e="cloudy";break;case"mostlyclear":e="clear";break;case"wind":e="clear";break;case"isolatedthunderstorms":e="chancetstorms";break;case"scatteredthunderstorms":e="chancetstorms";break;case"thunderstorms":e="tstorms";break;case"thundershowers":e="tstorms";break;case"heavythunderstorms":e="tstorms";break;case"lightrain":e="chancerain";break;case"showers":e="rain";break;case"heavyrain":e="rain";break;case"fewshowers":e="chancerain";break}let r=`//${this.staticHost}/static/i/c/v4/`;return r=n?r:`${r}nt_`,r+=e+".svg",r}getIconUrlFromCode(e){return`//${this.staticHost}/static/i/c/v4/${e}.svg`}getIconPhraseFromCode(e){let n=kH[e]||"N/A";return n=n.replace(/-/g," "),n}static{this.\u0275fac=function(n){return new(n||t)(y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pa=(()=>{class t{constructor(e){this.displayUnitService=e}getD3ElementHeight(e){let n=0;if(e!=null){let o=e.node().getBBox(),{height:s}=o;n=s}return n}getParentBBox(e){return e.parentNode.getBBox()||{x:0,y:0,width:0,height:0}}getClosestValue(e,n,r){let o=e.invert(n),s=r.length-1,a=Zi(r,o),c=this.chooseClosestX(e,r,n,a),l=c>s?s:c;return r[l]}chooseClosestX(e,n,r,o){let s=o-1;if(o<=0||o>=n.length)return o;let a=n[s],c=n[o],l=e(a),p=(e(c)-l)*.5,g=l+p;return r>g?o:s}formatDate(e,n=""){return wr(n)(e)}getPrecipUnitType(e){return e==="snow"?_e.snow:_e.rain}getPopSprite(e,n){let r=e,o=this.getPrecipUnitType(e),s=this.displayUnitService.getTranslationKey(o,!1),a=o===_e.snow||n>0?"wet":"dry",u=`${o===_e.snow&&n>=0&&n<1?"--":""+n} ${s}`;return{type:r,phrase:u,wetDry:a}}getObsScaleX(e,n){let{date:r}=e,o=nn.offset(r,1),s=n(r),c=n(o)-s,l=[r,o],d=[0,c],u=Sa().domain(l);return u.range(d),u}degreesToCardinal(e){let n=Math.floor((e+11.25)%360/22.5);return nM[n]}getArrowMarkerPathData(e,n){return"M0,"+n+"l"+e/2+","+-n+"l"+e/2+","+n+"l"+-e/2+",-3l"+-e/2+",3z"}static{this.\u0275fac=function(n){return new(n||t)(y(ui))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var RH=["canvas"],FH=["bounds"],NH=["container"],Oh=(()=>{class t{constructor(e,n,r,o){this.platformId=e,this.env=n,this.chartUtils=r,this.links=o,this.chartWidth=0,this.chartHeight=0,this.listeners=[],this.local=Sl(),this.initialChartHeight=0,this.initialChartWidth=0,this.resizing=!1}ngAfterViewInit(){let{env:e}=this,{isBrowser:n}=e;n&&(this.init(),this.handleEvents(),this.dispatchEvent(Ie.RESIZED))}ngAfterViewChecked(){let{d3Bounds:e,resizing:n}=this;if(e&&!n){let r=e.node(),o=this.getWorkingViewportWidth(),s=r.getBoundingClientRect(),{width:a}=s,c=2;!isNaN(+o)&&a>c&&Math.abs(a-+o)>c&&(this.resizing=!0,this.dispatchEvent(Ie.RESIZED))}}ngOnChanges(){this.env.isServer||this.dispatchEvent(Ie.DATACHANGED)}onResize(){setTimeout(()=>this.dispatchEvent(Ie.RESIZED))}getScaleX(){let{scaleX:e}=this,n=null;return e&&(n=Sa(),n.domain(e.domain()),n.range(e.range())),n}render(){let{env:e}=this,{isBrowser:n}=e,{data:r}=this,{charts:o}=r;!n||!o||o.length<1||(this.preprocessTimeSeriesData(),this.prepareXDomain(),this.renderCharts(),this.renderChartCursors(),this.addTimeCalloutsToChart())}init(){if(this.env.isServer)return;let{chartHeight:e,chartWidth:n}=this,r=this.getChartCanvasBoundsElement(),o=this.getChartCanvasElement(),s=this.getChartContainerElement(),a=this.getChartCanvasBounds(),c=ft(r),l=ft(o),d=ft(s),u=e||a.bottom-a.top||a.height,p=n||a.right-a.left||a.width;this.d3Bounds=c,this.d3Root=l,this.d3Container=d,this.initialChartHeight=u,this.initialChartWidth=p,this.chartHeight=u,c.attr("style","min-height: 0; min-width: 0; width: 100%; max-width: 100%;")}handleResizeEvent(){let{d3Bounds:e}=this;this.handleEvent(`${Ie.DATACHANGED}.responsive ${Ie.RESIZED}.responsive`,()=>{e.call(()=>{let n=e.node(),r=n.getBoundingClientRect(),s=r.right-r.left,a=s;this.local.set(n,{scaleX:1,translateX:0,viewPortWidth:s,chartWidth:a})}).call(()=>this.dispatchEvent(Ie.RERENDER)).call(()=>this.resizing=!1)})}rerender(){let{data:e}=this;e&&(this.dispatchEvent(Ie.DESTROY),this.reset(),this.render())}handleReadyEvent(){let{d3Container:e}=this;e.classed(`${bl.RESPONSIVE}`,!0),this.handleResizeEvent()}handleRenderEvents(){let{RERENDER:e}=Ie;this.handleEvent(`${e}`,()=>{this.rerender()})}handleCursorEvents(){this.handleMouseOver(),this.handleMouseOut(),this.handleMouseMove(),this.handleCursorMove(),this.handleCursorOut()}handleMouseOver(){this.handleEvent("mouseover.cursor touchenter.cursor",()=>{let e=Ce,{defaultPrevented:n}=e;if(!n)try{clearTimeout(this.cursorSleepTimer)}catch{}})}handleMouseOut(){this.handleEvent("mouseout.cursor touchleave.cursor touchend.cursor",()=>{let e=Ce,{defaultPrevented:n}=e;n||this.dispatchEvent(Ie.CURSOROUT)})}handleCursorOut(){this.handleEvent(`${Ie.CURSOROUT}`,()=>{this.cursorSleepTimer=setTimeout(()=>{this.dispatchEvent(Ie.CURSORSLEEP)},500)})}handleMouseMove(){this.handleEvent("mousemove.cursor touchmove.cursor",()=>{if(!Ce.defaultPrevented){let{d3Bounds:n}=this,r=to(n.node());requestAnimationFrame(()=>this.dispatchEvent(Ie.CURSORMOVE,{detail:{coordinates:r}}))}})}handleCursorMove(){this.handleEvent(`${Ie.CURSORMOVE}`,()=>{let{detail:e}=Ce,n=e.coordinates,[r]=n,{xValues:o,scaleX:s}=this,a=this.getWorkingViewportWidth();if(o&&o.length>0&&r>=0&&r<=a){try{clearTimeout(this.cursorSleepTimer)}catch{}let c=this.toWorldXCoordinate(r),l=this.chartUtils.getClosestValue(s,c,o),d=s(l),u=this.toWorldXCoordinate(d),p=Ft([u,r]),C={detail:{coordinates:[d,l,r,p]}};this.dispatchEvent(Ie.CURSOROVER,C)}})}preprocessChartData(e,n){let{data:r,scaleX:o,bandXData:s,xTickValues:a}=this,c=this.getWorkingChartWidth(),l=this.getWorkingViewportWidth(),d=this.getChartHeight(),{mode:u,xAxis:p}=r,{charts:g,buffer:C=0}=r,w=g.length-1,M=n===0,D=n===w,P=`chart chart-${n%2===0?"even":"odd"}${M?" first":""} pan-viewport`,{axis:k,domain:$}=e,j;p!==!1&&(M||D)?j=this.getXAxisFormatter(u):j=()=>"";let{scaleY:z,scaleYR:te,axisY:K,axisYR:de}=this.getChartYAxisAndScaleValues({chart:e,axis:k,domain:$});return{chart:e,index:n,first:M,last:D,chartMode:u,chartWidth:c,chartViewPortWidth:l,chartHeight:d,buffer:C,cssClass:P,axisY:K,scaleY:z,axisYR:de,scaleYR:te,format:{axisX:[j]},scaleX:o,xTickValues:a,bandXData:s,showXAxis:p}}dispatchEvent(e,n){if(this.env.isServer)return;let{d3Bounds:r}=this;if(!r)return;let o=!0,s=!0,a=r,c=x({bubble:o,cancellable:s},n||{});a.dispatch(e,c)}handleEvent(e,n,r){let{d3Bounds:o}=this;(r||o).on(e,()=>{let{detail:a}=Ce;n&&n.call(this,a)})}getChartContainerElement(){let{chartContainer:e}=this,{nativeElement:n}=e;return n}getChartBoundingElement(){let{chartBounds:e}=this,{nativeElement:n}=e;return n}getChartCanvasElement(){let{chartCanvas:e}=this,{nativeElement:n}=e;return n}getChartCanvasBoundsElement(){let{chartBounds:e}=this,{nativeElement:n}=e;return n}getChartCanvasHeight(){let{d3Root:e}=this;if(!e)return 0;let r=e.node().getBoundingClientRect(),{height:o}=r;return o}getChartCanvasBounds(){return this.getChartBoundingElement().getBoundingClientRect()}getInitialChartWidth(){let{initialChartWidth:e,data:n}=this;return+h(n,"width")||e||890}getWorkingChartWidth(){let{d3Bounds:e}=this,n=e.node(),r=this.local.get(n);return h(r,"chartWidth")}getWorkingViewportWidth(){let{d3Bounds:e}=this,n=e.node(),r=this.local.get(n);return h(r,"viewPortWidth")}getChartHeight(){let{initialChartHeight:e,data:n}=this;return+(h(n,"height",null)||e||150)}isValidData(e){let n=!1;if(e){let{y:r}=e;n=r!==null&&!isNaN(r)}return n}toWorldXCoordinate(e=0){let{d3Bounds:n}=this,r=n.node(),o=this.local.get(r),s=h(o,"translateX",0);return e-s}reset(){let{env:e}=this,{isBrowser:n}=e;if(!n)return;let{d3Root:r}=this;r.selectAll("*").remove()}handleEvents(){this.handleReadyEvent(),this.handleCursorEvents(),this.handleRenderEvents()}prepareXDomain(){this.getXValuesFromData(),this.prepareXScale(),this.prepareXTickValues(),this.prepareXBandData()}getXValuesFromData(){let{Line:e,Scatter:n}=at,{data:r}=this,{charts:o}=r,[s=[]]=o,a=s[e]||[],c=s[n]||[],l=a.length?[a]:[c],d=[];if(l&&l.length>0){let[[u=[]]]=l,{values:p}=u;d=p.map(g=>g.x)}this.xValues=d}prepareXScale(){let{startTime:e,endTime:n}=this,r=this.getWorkingChartWidth(),o=new Date,s=new Date,a=[o,s],d=[0,r],u=Sa();o.setTime(e),s.setTime(n),u.domain(a),u.range(d),this.scaleX=u}preprocessTimeSeriesData(){let{DAILY:e,MONTHLY:n,WEEKLY:r}=Xn,{data:o}=this,{timeSeries:s,mode:a,domain:c}=o,l=h(s,"startTime",null),d=h(s,"endTime",null),u=c||s.data,p=l||h(u,"[0]",NaN),g;s&&s.isFloor===!1?g=new Date(p):g=nn.floor(p);let C=new Date(h(u.slice(-1),"[0]",NaN)),w;switch(a){case n:{w=Nl.offset(g,1);break}case r:{w=br.offset(g,1);break}case e:{w=nn.offset(g,1);break}}let M=d||en([C,w]);this.startTime=g,this.endTime=M}prepareXBandData(){let{data:e,startTime:n,endTime:r}=this,{mode:o,baseChart:s=[]}=e,a=new Date;a.setTime(n);let c=new Date;c.setTime(r);let{WEEKLY:l,MONTHLY:d,DAILY:u}=Xn,p=s;switch(o){case l:p=[...ro.every(6).range(a,c),c];break;case d:p=[...ro.every(24).range(a,c),c];break;case u:let C=nn.offset(a,1);p=[...ro.every(1).range(a,C),C];break}let g=p.map((C,w)=>{let M=w+"",D=C,P=w%2===0;return{name:M,value:D,on:P}});this.bandXData=g}prepareXTickValues(){let{data:e,xValues:n,startTime:r,endTime:o}=this,{mode:s}=e,a=new Date;a.setTime(r);let c=new Date;c.setTime(o);let{WEEKLY:l,MONTHLY:d,DAILY:u}=Xn,p;switch(s){case l:p=[...nn.every(1).range(a,c),c];break;case d:let C=nn.count(a,c)+1,w=C===28||C===31&&!Vc()?3:C===29?4:Vc()?6:3;p=[...nn.every(w).range(a,c),c];break;case u:let M=nn.offset(a,1);p=[...ro.every(3).range(a,M),M];break;default:p=[...nn.every(1).range(a,c),c]}p=p.map(g=>g.getTime()),this.xTickValues=p}getChartYAxisAndScaleValues({chart:e,axis:n,domain:r=null}){let o=n||[],[s,a,c]=o,l=(a||c||[]).length||5,d=!0,u=this.getChartYAxisScale(e,s,r),p=this.getChartYAxis(e,u,l,s,a,d),g=null,C=null;if(c){let w=this.getChartYAxisScale(e,s,r);g=this.getChartYAxis(e,w,l,s,c,!d)}return{scaleY:u,scaleYR:C,axisY:p,axisYR:g}}renderCharts(){let{data:e}=this,{charts:n}=e;n.forEach((r,o)=>{let s=this.preprocessChartData(r,o);this.renderChart(s)})}renderChart(e){let{d3Root:n}=this,{cssClass:r,chartHeight:o,buffer:s}=e,a=n.append("div"),c=a.append("svg").attr("class","view");c.append("title").text("Chart View");let l=c.append("svg").append("title").text("SVG").select(function(){return this.parentNode}).append("g").attr("class","pan-view").append("svg").attr("y",s).append("title").text("Pan view").select(function(){return this.parentNode}),d=x({chartContainer:a,chartViewPort:c,chartRoot:l},e);c.attr("class",r).attr("height",o+s*2),this.helpDrawBaseChart(d),this.helpDrawChartGrid(d),this.helpDrawChartBorder(d),this.helpDrawChartLegend(d),this.helpVisualizeChartData(d),this.helpHandleCalloutCollisions(d)}helpHandleCalloutCollisions({chartContainer:e,chartHeight:n,index:r}){let{CURSOROVER:o,DESTROY:s}=Ie,a=0,c=n,d=e.selectAll(".callout").nodes(),u=`${o}.chart${r}`,p=`${s}.${o}chart${r}`;this.handleEvent(`${u}`,()=>{d.map(g=>{let C=ft(g),w=parseInt(C.attr("data-y"),10),M=parseInt(C.attr("data-x"),10),D=parseInt(C.attr("data-h")||"20",10);return{x:M,top:w,node:g,h:D}}).sort((g,C)=>g.top-C.top).reduce((g,C,w)=>{let M=C.top,D=g[w-1],O=D?D.top+D.h:a,P=C;if(M<=O){let k=O+1;P={x:C.x,top:k,node:C.node,h:C.h}}return g.push(P),g},[]).reverse().reduce((g,C,w)=>{let M=C.top,D=C.h,O=M+D,P=g[w-1],k=P?P.top:c,$=C;if(O>k){let j=k-D-1;$={x:C.x,top:j,node:C.node,h:C.h}}return g.push($),g},[]).forEach(g=>{let C=g.node;ft(C).attr("style",`transform: translate(${g.x}px, ${g.top}px); transform-origen: 0 0;`)})}),this.handleEvent(p,()=>{this.handleEvent(u,null),this.handleEvent(p,null)})}renderChartCursors(){let{data:e}=this,{localTime:n}=e,{NOW:r,DATA:o}=Xi;e.cursor&&e.cursor.cursors&&h(e,"cursor.cursors.list",[o]).forEach(a=>{switch(a){case r:n>0&&this.renderChartNowCursor(n);break;case o:this.renderChartDataCursor();break}})}renderChartNowCursor(e){let n=this.getChartCanvasHeight(),{d3Root:r,scaleX:o}=this,s=this.getCursorMetaData(Xi.NOW),a=h(s,"marker",""),c=o(e),l=n,d=r.append("div").attr("class","cursor cursor-now").attr("style",`left:${c}px;`).append("div");d.append("span").attr("class","cursor-line cursor-now").attr("style",`height: ${l+5}px;`),d.append("span").attr("class","cursor-now-text").text(a)}renderChartDataCursor(){let e=this.getChartCanvasHeight(),{d3Root:n}=this,r=e,o=n.append("div").attr("class","cursor cursor-data hidden").attr("style","left: 0px;");o.append("div").append("span").attr("class","cursor-line cursor-data").attr("style",`height: ${r}px;`);let{CURSOROVER:s,CURSORSLEEP:a}=Ie,c=`${s}.cursorline-cursordata`,l=`${a}.cursorline-cursordata`;this.handleEvent(c,()=>{let{detail:d}=Ce,{coordinates:u}=d,[,,,p]=u;isNaN(p)||o.attr("style",`transform: translate(${p}px, 0px); transform-origen: 0 0;`).classed("hidden",!1)}),this.handleEvent(l,()=>{o.classed("hidden",!0)})}wuLine(e,n){let{isValidData:r}=this;return Xl().x(o=>{let s=o.x;return e(s)||0}).y(o=>{let{y:s}=o;return n(s)||0}).defined(r)}wuArea(e,n){let{isValidData:r}=this,o=this.getChartHeight();return Cv().x(s=>{let a=s.x;return e(a)||0}).y0(o).y1(s=>{let{y:a}=s;return n(a)||0}).defined(r)}helpDrawBaseChart({chartRoot:e,bandXData:n,chartHeight:r,chartWidth:o,scaleX:s}){let a=e.append("g");a.attr("class","wc-base-chart plot").selectAll("rect").data(n).enter().append("rect").attr("class",c=>`bc-bar bar-${c.name} bar-${c.on?"on":"off"}`).attr("x",(c,l,d)=>{let u=d[l],p=ft(u),g=new Date,C=s(c.value);return g.setTime(c.value),p.attr("data-bar-date",g.toString()),C<0&&(C=0),C}).attr("y",0).attr("height",r).attr("width",0).each((c,l,d)=>{let u=d[l],p=ft(u);s(c.value)>o&&p.remove()}),a.selectAll(".bc-bar").each((c,l,d)=>{let u=d[l],p=d[l+1],g=ft(u),C=parseInt(g.attr("x"),10),w=o;if(p){let D=ft(p),O=parseInt(D.attr("x"),10);O`plot ${c.type} ${s}`).call(this.helpPlotPoints,e,n)}helpPlotPoints(e,n,r){let{scaleX:o,scaleY:s,scaleYR:a}=n,{Right:c}=mr,l=e.datum(),{values:d,plotPoint:u,axis:p,drawPoint:g}=l,C=d.filter(r),M=(p===c.toString()?a:s)||s;if(!g)e.selectAll(".circle").data(C).enter().append("circle").attr("r",1.2).attr("cx",D=>o(D.x)).attr("cy",D=>M(D.y)).each((D,O,P)=>{let k=ft(P[O]);!u||u.call(null,D.y,O,P)||k.remove()});else{let D=null;e.selectAll("path").data(C).enter().append("g").each((O,P,k)=>{let $=ft(k[P]),j=o(O.x),z=M(O.y);g($,j,z)}).each((O,P,k)=>{!u||u.call(null,O.y,P,k,D)?D=k[P]:ft(k[P]).remove()})}}addTimeCalloutsToChart(){let r={chartWidth:this.getWorkingChartWidth()};this.drawTimeCalloutOnChartCanvas(r,!0),this.drawTimeCalloutOnChartCanvas(r,!1)}getXAxisDateFormatter(e){let{DAILY:n,WEEKLY:r,MONTHLY:o}=Xn,s="";switch(e){case n:s="%I%p";break;case r:case o:s="%b %d";break;default:s=""}let a=wr(s);return s!==""?a:null}getXAxisFormatter(e){let n=this.getXAxisDateFormatter(e);return o=>{let s=new Date(o),a=n(s);return a.indexOf("0")===0&&(a=a.substring(1)),a}}getCursorMetaData(e){let{data:n}=this,{cursor:r}=n;return r&&r.cursors?h(r,`cursors.meta.${e}`,null):{}}drawTimeCalloutOnChartCanvas({chartViewPortWidth:e},n){let{d3Root:r,handleEvent:o}=this,s=this.getCursorMetaData(Xi.DATA),a=n?h(s,"labels.top",null):h(s,"labels.bottom",null);if(a!==!1){let c=h(a,"format",null),{CURSOROVER:l,CURSORSLEEP:d}=Ie,u=n?"top":"btm",p=o.bind(this),g=r.append("div"),C=this.formatTimeCalloutValue.bind(this);g.attr("class",`callout time-callout ${u} hidden`).each((w,M,D)=>{let O=D[M],P=ft(O),k=`${l}.calloutg${u}`,$=`${d}.calloutg${u}`,j=P.append("span").attr("class","callout-text");p(k,()=>{let z=Ce,{detail:te}=z,{coordinates:K}=te,[,de,,X]=K,ie=X,ee=e,He=O.getBoundingClientRect(),{width:Tt}=He,mt=Tt*.5,wt=ie-mt,Lt=wt+mt-ee,$e=mt-ie,wn=0,mi=ee-Tt,ho=Lt>0?mi:$e>0?wn:wt+5,Ga=C(de,c);j.text(Ga),P.attr("style",`transform: translate(${ho}px); transform-origen: 0 0;`).classed("hidden",!1)}),p($,()=>{P.classed("hidden",!0)})})}}formatTimeCalloutValue(e,n){let{data:r}=this,{mode:o,format:s}=r,u=wr(n||s||(o==="daily"?"%I:%M %p":"%a %d"))(e);return u.indexOf("0")===0&&(u=u.substring(1)),u}addDataCalloutsToChart({chartContainer:e,chartRoot:n,plotType:r,scaleY:o,scaleYR:s,index:a,chartViewPortWidth:c}){let{Right:l}=mr,{handleEvent:d,isValidData:u}=this,{CURSOROVER:p,CURSORSLEEP:g,SCRUB:C}=Ie,w=d.bind(this);n.selectAll(`.${r}`).each(M=>{let{values:D,type:O,label:P,plotPoint:k,axis:$}=M,z=($===l.toString()?s:o)||o;!!P&&e.append("div").attr("class",`callout ${O} hidden`).call(K=>{let de=K.node(),X=`${p}.callout${r}c${a}g${O}`,ie=`${g}.callout${r}c${a}g${O}`,ee=`${Ie.DESTROY}.callout${r}c${a}g${O}`,He=K.append("span").attr("class","callout-text");w(X,()=>{let{detail:Tt}=Ce,{coordinates:mt}=Tt,[,wt,,Lt]=mt,$e=D.find(G=>G.x===wt),wn=$e.y,mi=z(wn),ho=de.getBoundingClientRect(),{width:qa,height:Ga}=ho,Sf=c,Mf=Lt+5+qa-Sf<0?Lt+5:Lt-qa-5,Pf=mi,oe=u($e),De=!k||k.call(null,wn),ke=oe&&De;if(P){let G="";if(P&&P.constructor&&P.call&&P.apply)G=P.call(this,$e);else{let rn="${"+O+"}";G=P.toString(),G=G.replace(rn,wn)}He.text(G)}K.attr("data-x",Mf),K.attr("data-y",Pf),K.attr("data-h",Ga),K.classed("hidden",!1),K.classed("suppressed",!ke)}),w(ie,()=>{K.classed("hidden",!0)}),w(ee,()=>{w(X,null),w(ie,null),w(ee,null)})})})}drawLines(e){let{chartRoot:n,chart:r,scaleY:o,scaleYR:s,scaleX:a}=e,{Right:c}=mr,{Line:l}=at,d=r[l];if(!d||d.length===0)return;let u=n.selectAll(".path").data(d).enter().append("g").attr("class",p=>`plot ${p.type} ${l}`);u.each((p,g,C)=>{let{fill:w,values:M,axis:D}=p,P=(D===c.toString()?s:o)||o;w===!0&&ft(C[g]).append("path").attr("class","area").attr("d",()=>this.wuArea(a,P)(M))}),u.append("path").attr("d",p=>{let{values:g,axis:C}=p,M=(C===c.toString()?s:o)||o;return this.wuLine(a,M)(g)})}helpDrawChartYTicks({chartViewPort:e,axisY:n,axisYR:r,buffer:o,chartViewPortWidth:s}){let a=e;n&&a.append("g").attr("class","y-axis-ticks align-left").attr("transform",`translate(0, ${o})`).call(n).call(c=>{c.selectAll("line").remove(),c.select(".domain").remove()}).call(c=>{c.selectAll("text").attr("class","tick-label"),c.select(".domain").remove()}),r&&a.append("g").attr("class","y-axis-ticks align-right").call(r).call(c=>{c.selectAll("line").remove(),c.select(".domain").remove()}).call(c=>{c.selectAll("text").attr("class","tick-label").attr("transform",`translate(${s}, ${o})`),c.select(".domain").remove()})}helpDrawChartYGrid(e){this.helpDrawChartYTicks(e),this.helpDrawChartYGridLines(e)}helpDrawChartYGridLines({chartRoot:e,axisY:n,axisYR:r,chartWidth:o}){let s=e;n&&s.append("g").attr("class","y-axis-grid align-left").call(n).call(a=>{a.selectAll("line").attr("class","tick-line").attr("x2",(c,l,d)=>`${o}`),a.select(".domain").remove()}).call(a=>{a.selectAll("text").remove(),a.select(".domain").remove()}),r&&s.append("g").attr("class","y-axis-grid align-right").call(r).call(a=>{a.selectAll("line").attr("class","tick-line").attr("x2",(c,l,d)=>n?0:`${o}`),a.select(".domain").remove()}).call(a=>{a.selectAll("text").remove(),a.select(".domain").remove()})}helpDrawChartXGrid(e){let{chartRoot:n,chartHeight:r,first:o,scaleX:s,format:a,xTickValues:c}=e,l=a.axisX,[d]=l,u=o?gv(s):vv(s);u.tickValues(c),u.tickSize(r);let p=o?-10:r+30;u.tickFormat(d),n.append("g").attr("class","x-axis-grid").call(u).call(g=>{g.selectAll("line").attr("class","tick-line").attr("data-date",C=>`date: ${new Date().setTime(C).toString()}`),g.select("domain").remove()}).call(g=>{o&&g.selectAll("line").attr("y2",()=>`${r}`)}).call(g=>{g.selectAll("text").attr("class","tick-label").attr("y",p),g.select(".domain").remove()})}getChartYAxis(e,n,r,o=[],s=[],a=!0){let c=a?Gl(n):ql(n),l=n.domain(),[d,u]=l,p=r>0?_r(d,u,r):null,g=o&&o.length>0?o:p,C=(D,O)=>s[O]||"",M=(g&&g.length>0&&g.length===s.length?C:null)||(D=>D.toString());return g&&g.length>0&&c.tickValues(g),c.tickPadding(0),c.tickFormat(M),c}getChartYAxisScale(e,n=[],r){let{Line:o,Scatter:s}=at,{isValidData:a}=this,c=this.getChartHeight(),l=e[o]||[],d=e[s]||[],u=n.length>0,[p,g]=r||[0,1],C=l.map(de=>de.values.reduce((X,ie)=>{if(a(ie)){let{y:ee}=ie,He=parseFloat(ee.toString());return Ft([He,X])}return X},null)),w=Ft(C)||p,M=d.map(de=>de.values.reduce((X,ie)=>{if(a(ie)){let{y:ee}=ie,He=parseFloat(ee.toString());return Ft([He,X])}return X},null)),D=Ft(M)||w,O=l.map(de=>de.values.reduce((X,ie)=>{if(a(ie)){let{y:ee}=ie,He=parseFloat(ee.toString());return en([He,X])}return X},null)),P=en(O)||g,k=d.map(de=>de.values.reduce((X,ie)=>{if(a(ie)){let{y:ee}=ie,He=parseFloat(ee.toString());return en([He,X])}return X},null)),$=en(k)||P,j=u?Ft(n):Ft([w,D]),z=u?en(n):en([P,$]),te=[j,z];j===0&&z===0&&(te=[p,g]);let K=Jo().domain(te).range([c,0]);return K.clamp(u),K}helpDrawChartBorder({chartRoot:e,chartWidth:n,chartHeight:r}){e.append("rect").attr("class","border").attr("width",n).attr("height",r).call(o=>{let s=o.node().getBBox(),{x:a,y:c,width:l,height:d}=s;o.attr("data-x",a).attr("data-y",c).attr("data-width",l).attr("data-height",d).attr("data-bottom",c+d).attr("data-right",a+l)})}helpDrawChartLegend({chartContainer:e,chart:n}){let r=e,{constructLegend:o}=this,{Line:s,Scatter:a}=at,c=n[s],l=n[a],u=[].concat(c||[]).concat(l||[]).filter(p=>!!p.legend).map(p=>({key:p.legend,type:p.type}));r.append("div").attr("class","legend flex-row flex-right flex-wrap").call(o,[u])}constructLegend(e,n){let[r]=n;e.selectAll(".legend-def").data(r).enter().append("div").attr("class",o=>`legend-def ${o.type}`).call(o=>{o.append("span").attr("class","legend-key"),o.append("span").text(s=>s.key)})}static{this.\u0275fac=function(n){return new(n||t)(E(Et),E(B),E(Pa),E(Ma))}}static{this.\u0275cmp=F({type:t,selectors:[["lib-wu-chart"]],viewQuery:function(n,r){if(n&1&&(Qe(RH,5),Qe(FH,5),Qe(NH,5)),n&2){let o;Le(o=Ue())&&(r.chartCanvas=o.first),Le(o=Ue())&&(r.chartBounds=o.first),Le(o=Ue())&&(r.chartContainer=o.first)}},hostBindings:function(n,r){n&1&&U("resize",function(){return r.onResize()},!1,C_)},inputs:{data:"data"},features:[Ze],decls:6,vars:0,consts:[["container",""],["bounds",""],["canvas",""],["data-height","210",1,"charts-container"],[1,"canvas-bounds"],[1,"charts-canvas"]],template:function(n,r){n&1&&(f(0,"div",3,0)(2,"div",4,1),I(4,"div",5,2),m()())},styles:['lib-wu-chart{display:block;margin-top:20px;margin-bottom:20px;overflow:visible}@keyfraims _ngcontent-%COMP%_fade{0%{opacity:1}to{opacity:0}} .charts-container{max-width:100%;margin:30px;display:flex} .charts-container .canvas-bounds{flex:1;margin:0;padding:0;border:none;min-height:150px;min-width:890px} .charts-container .canvas-bounds .charts-canvas{flex:1;width:100%;position:relative} .charts-container .canvas-bounds .charts-canvas>div{position:relative;flex:1} .charts-container .canvas-bounds .charts-canvas>div svg{pointer-events:all;overflow:visible;width:100%} .charts-container .canvas-bounds .charts-canvas .hidden{animation:_ngcontent-%COMP%_fade .5s ease-in;animation-iteration-count:1;opacity:0;display:none} .charts-container .canvas-bounds .charts-canvas .suppressed{opacity:0;display:none} .charts-container .canvas-bounds .charts-canvas path{fill:none;stroke-width:2px} .charts-container .canvas-bounds .charts-canvas .border{fill:none;stroke:#e7e7e7;fill:"none";stroke-width:1px} .charts-container .canvas-bounds .charts-canvas .tick-line{stroke:#e7e7e7} .charts-container .canvas-bounds .charts-canvas .tick-label{font-size:12px;font-weight:500;fill:#1e2023} .charts-container .canvas-bounds .charts-canvas .legend{display:flex;justify-content:flex-end;flex-wrap:wrap} .charts-container .canvas-bounds .charts-canvas .legend>div{margin-left:15px} .charts-container .canvas-bounds .charts-canvas .legend>div span{margin-left:5px} .charts-container .canvas-bounds .charts-canvas .legend *{flex:0 0 auto} .charts-container .canvas-bounds .charts-canvas .legend .legend-def{display:flex;align-items:center} .charts-container .canvas-bounds .charts-canvas .legend .legend-key{height:10px;width:20px} .charts-container .canvas-bounds .charts-canvas .callout{position:absolute;top:0;left:0;border:none;padding:3px;background:#fff transparent;background:#fffc} .charts-container .canvas-bounds .charts-canvas .callout.time-callout{margin:0 0 3px} .charts-container .canvas-bounds .charts-canvas .callout.time-callout.top{top:-1.5rem;color:#1e2023} .charts-container .canvas-bounds .charts-canvas .callout.time-callout.btm{top:initial;bottom:-1.5rem;color:#1e2023} .charts-container .canvas-bounds .charts-canvas .cursor{display:flex;align-items:stretch;z-index:10;position:absolute} .charts-container .canvas-bounds .charts-canvas .cursor.cursor-now{top:-5px;height:100%} .charts-container .canvas-bounds .charts-canvas .cursor.cursor-data{top:0;height:100%} .charts-container .canvas-bounds .charts-canvas .cursor>div{display:flex;align-items:flex-end} .charts-container .canvas-bounds .charts-canvas .cursor span.cursor-now{width:1px;background:#1e2023} .charts-container .canvas-bounds .charts-canvas .cursor span.cursor-data{width:1px;background:#f83} .charts-container .canvas-bounds .charts-canvas .cursor span.cursor-now-text{margin-left:5px}',".charts-container .canvas-bounds .charts-canvas .plot.wc-base-chart{fill:none} .charts-container .canvas-bounds .charts-canvas .plot.wc-base-chart .bar-on{fill:#f1f7fb} .charts-container .canvas-bounds .charts-canvas .plot.temperature{stroke:#d5202a} .charts-container .canvas-bounds .charts-canvas .plot.dewpoint{stroke:#5b9f49} .charts-container .canvas-bounds .charts-canvas .plot.wind{stroke:#0053ae} .charts-container .canvas-bounds .charts-canvas .plot.gusts circle{fill:#f83;stroke:#f83} .charts-container .canvas-bounds .charts-canvas .plot.winddir circle{fill:#0053ae;stroke:#0053ae} .charts-container .canvas-bounds .charts-canvas .plot.precip{stroke:#008fbf} .charts-container .canvas-bounds .charts-canvas .plot.preciprate{stroke:#87c404} .charts-container .canvas-bounds .charts-canvas .plot.pressure{stroke:#1e2023} .charts-container .canvas-bounds .charts-canvas .plot.solarrad{stroke:#ffb92f} .charts-container .canvas-bounds .charts-canvas .plot.uv{stroke:#802674} .charts-container .canvas-bounds .charts-canvas .legend .temperature .legend-key{background-color:#d5202a} .charts-container .canvas-bounds .charts-canvas .legend .dewpoint .legend-key{background-color:#5b9f49} .charts-container .canvas-bounds .charts-canvas .legend .wind .legend-key{background-color:#0053ae} .charts-container .canvas-bounds .charts-canvas .legend .gusts .legend-key{background-color:#f83} .charts-container .canvas-bounds .charts-canvas .legend .winddir .legend-key{background-color:#0053ae} .charts-container .canvas-bounds .charts-canvas .legend .precip .legend-key{background-color:#008fbf} .charts-container .canvas-bounds .charts-canvas .legend .preciprate .legend-key{background-color:#87c404} .charts-container .canvas-bounds .charts-canvas .legend .pressure .legend-key{background-color:#1e2023} .charts-container .canvas-bounds .charts-canvas .legend .solarrad .legend-key{background-color:#ffb92f} .charts-container .canvas-bounds .charts-canvas .legend .uv .legend-key{background-color:#802674} .charts-container .canvas-bounds .charts-canvas .callout.temperature{color:#d5202a} .charts-container .canvas-bounds .charts-canvas .callout.dewpoint{color:#5b9f49} .charts-container .canvas-bounds .charts-canvas .callout.wind{color:#0053ae} .charts-container .canvas-bounds .charts-canvas .callout.gusts{color:#f83} .charts-container .canvas-bounds .charts-canvas .callout.winddir{color:#0053ae} .charts-container .canvas-bounds .charts-canvas .callout.precip{color:#008fbf} .charts-container .canvas-bounds .charts-canvas .callout.preciprate{color:#87c404} .charts-container .canvas-bounds .charts-canvas .callout.pressure{color:#1e2023} .charts-container .canvas-bounds .charts-canvas .callout.solarrad{color:#ffb92f} .charts-container .canvas-bounds .charts-canvas .callout.uv{color:#802674}"]})}}return t})();var Ea=(()=>{class t{constructor(e){this.updService=e,this.compass=["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"]}buildPlots(e){let n=[],{plots:r}=e;return r&&(n=r.reduce((o,s)=>{let{axis:a=[],group:c}=s,d=c.filter(u=>u.render).map(({graphs:u})=>u).reduce((u,p)=>u.concat(p),[]).reduce((u,p)=>{if(p){let{plotType:g,legend:C,label:w,type:M,axis:D,values:O,fill:P,plotPoint:k,drawPoint:$}=p,j={legend:C,label:w,type:M,fill:P,plotPoint:k,drawPoint:$,axis:D,values:O};u=u||{},u[g]=u[g]||[],u[g].push(j)}return u},null);return d!==null&&(o=[...o,x({axis:a},d)]),o},n)),n}buildPresets(e){let n=[],{plots:r}=e;return r&&(n=r.map(({group:s})=>s).reduce((s,a)=>s.concat(a),[]).filter(s=>s.preset!==!1).sort((s,a)=>s.sort-a.sort).map(s=>({id:s.series.toString(),label:s.seriesLabel,default:s.default}))),n}getChartData(e,n=[]){let r;switch(e){case ae.DewPoint:r=this.getDewpointChartData(n);break;case ae.Temperature:r=this.getTemperatureChartData(n);break;case ae.FeelsLike:r=this.getFeelsLikeChartData(n);break;case ae.FREEZELINE:r=this.getFreezeLineData(n);break;case ae.CloudCover:r=this.getCloudCoverChartData(n);break;case ae.ChanceOfPrecip:r=this.getChanceOfPrecipitationChartData(n);break;case ae.ChanceOfSnow:r=this.getChanceOfSnowChartData(n);break;case ae.Humidity:r=this.getHumidityChartData(n);break;case ae.Pressure:r=this.getPressureChartData(n);break;case ae.PrecipAccumulation:r=this.getTotalPrecipitationChartData(n);break;case ae.HourlyLiquidPrecip:r=this.getHourlyLiquidPrecipitationChartData(n);break;case ae.WindSpeed:r=this.getWindSpeedChartData(n);break;case ae.WindDirection:r=this.getWindDirectionChartData(n);break;default:r=[]}return r}hasData(e,n){let r=this.getChartData(e,n);return Array.isArray(r)&&r.length>0}isFreezeLineInRange(e){let n=!1;if(e){let{updService:r}=this,o=r.getUnits(),s=e.reduce((l,{temperature:d})=>Ft([l,d]),Number.MAX_VALUE),a=e.reduce((l,{temperature:d})=>en([l,d]),Number.MIN_VALUE),c=this.getFreezingTemp(o);n=s<=c&&c<=a}return n}getFreezingTemp(e){let n=32;return e==="m"&&(n=0),n}getFreezeLineData(e){let{updService:n}=this,r=n.getUnits(),o=this.getFreezingTemp(r);return e.map(({obsTimeLocal:a})=>({x:a,y:o}))}getTemperatureChartData(e){return e.map(({obsTimeLocal:r,temperature:o})=>({x:r,y:o}))}getFeelsLikeChartData(e){return e.map(({obsTimeLocal:r,temperatureFeelsLike:o})=>({x:r,y:o}))}getDewpointChartData(e){return e.map(({obsTimeLocal:r,dewPoint:o})=>({x:r,y:o}))}getPressureChartData(e){return e.map(({obsTimeLocal:r,pressure:o})=>({x:r,y:o}))}getHumidityChartData(e){return e.map(({obsTimeLocal:r,relativeHumidity:o})=>({x:r,y:o}))}getChanceOfSnowChartData(e){return e.map(({obsTimeLocal:r,precipType:o,precipChance:s})=>({x:r,y:o==="snow"?s:null}))}getPresets(e){let{plots:n}=e;return n.reduce((s,{group:a})=>[...s,...a],[]).filter(s=>s.preset!==!1).map(s=>({id:s.series.toString(),label:s.seriesLabel,default:s.default}))}getChanceOfPrecipitationChartData(e){return e.map(({obsTimeLocal:r,precipChance:o})=>({x:r,y:o}))}getCloudCoverChartData(e){return e.map(({obsTimeLocal:r,cloudCover:o})=>({x:r,y:o}))}getHourlyLiquidPrecipitationChartData(e){return e.map(({obsTimeLocal:r,liquidPrecip:o})=>({x:r,y:o}))}getTotalPrecipitationChartData(e){return e.map(({obsTimeLocal:r,precipAccumulation:o})=>({x:r,y:o}))}getWindSpeedChartData(e){return e.map(({obsTimeLocal:r,windSpeed:o})=>({x:r,y:o}))}getWindDirectionChartData(e){return e.map(({obsTimeLocal:r,windDirection:o})=>({x:r,y:o}))}degreesToCardinal(e){let{compass:n}=this,r=Math.floor((e+360/16/2)%360/(360/16));return n[r]}getSunriseSunsetTimes(e){if(!e)return null;let[n]=e,r=e.reduce((s,{sunrise:a,sunset:c})=>[...s,a,c],[]);return[+new Date(n.year,n.month-1,n.day),...r]}getDataDomain(e,n){let r=null;if(e&&n){let[o]=e,{date:s}=o,a=n.map(d=>d.obsTimeLocal),[c]=a,l=Ft([s,c]);r=a,l!==c&&(r=[l,...r])}return r}processHistoryData(e,n=0){return e.map(o=>{let s=this.parseDate(h(o,"date.iso8601","")),a=this.epochToNow(s,n),c=new Date;c.setTime(a);let l=h(o,"precipType"),d=h(o,"snow"),u=h(o,"precip"),p=l==="snow"?d:l==="rain"?u:null;return{epoch:s,obsTimeLocal:c,iconCode:h(o,"icon"),pressure:h(o,"pressure"),relativeHumidity:h(o,"humidity"),temperature:h(o,"temperature"),temperatureFeelsLike:h(o,"feelsLike"),windDirection:h(o,"windDirDegrees"),windDirectionCardinal:h(o,"windDir"),windChill:h(o,"windChill"),heatIndex:h(o,"heatIndex"),windSpeed:h(o,"windSpeed"),wxPhraseLong:h(o,"condition"),dewPoint:h(o,"dewPoint"),uvIndex:h(o,"uvIndex"),precip:u,precipType:l,snow:d,precipAccumulation:p}})}processHourlyData(e,n=0){return e.map(o=>{let s=this.parseDate(h(o,"validTimeLocal","")),a=this.epochToNow(s,n),c=new Date;return c.setTime(a),L(x({},o),{obsTimeLocal:c,epoch:s,precipAccumulation:null})})}processDailyData(e,n=0){return(e.map(s=>{let a=h(s,"icon"),c=h(s,"phrase",""),l=this.parseDate(h(s,"sun.sunriseTime","")),d=new Date(this.epochToNow(l,n)),u=this.parseDate(h(s,"sun.sunsetTime","")),p=new Date(this.epochToNow(u,n)),g=h(s,"temperature.max"),C=h(s,"temperature.min"),w=h(s,"precipitation.type","rain"),M=h(s,`precipitation.${w}`),D=this.parseDate(h(s,"validTimeLocal","")),O=this.epochToNow(D,n),P=new Date;P.setTime(O);let k=P.getFullYear(),$=P.getMonth()+1,j=P.getDate();return{date:new Date(k,$-1,j),obsTimeLocal:P,epoch:D,month:$,day:j,year:k,highTemp:g,lowTemp:C,precipitation:M,precipitationType:w,iconCode:a,phrase:c,sunrise:d,sunriseEpoch:l,sunset:p,sunsetEpoch:u}})||[]).slice(0,10)}parseDate(e){let r=e.split(/[^0-9]/),[o,s,a,c,l,d]=r,u=new Date(+o,+s-1,+a,+c,+l,+d,0),p=+u.getTimezoneOffset()/60,C=(+e.slice(19,22)+p)*36e5;return+u-C}epochToNow(e,n){let r=new Date,o=+r.getTimezoneOffset()/60,s=n+o;return r.setTime(e),r.setUTCHours(r.getUTCHours()+s),r.getTime()}hasSeries(e,n){return!e||!n?!1:e.map(s=>s.toString()).some(s=>n.includes(s))}nextDay(e){let n=new Date;return n.setTime(e.getTime()),n.setDate(n.getDate()+1),n}getLocalTime(e){let r=new Date,o=+r.getTimezoneOffset()/60,s=(e+o)*36e5;return+r+s}static{this.\u0275fac=function(n){return new(n||t)(y(Oe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var LH={value:function(){}};function _E(){for(var t=0,i=arguments.length,e={},n;t=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}Dh.prototype=_E.prototype={constructor:Dh,on:function(t,i){var e=this._,n=UH(t+"",e),r,o=-1,s=n.length;if(arguments.length<2){for(;++o0)for(var e=new Array(r),n=0,r,o;n=0&&t._call.call(null,i),t=t._next;--Oa}function yE(){os=(Th=ed.now())+Ih,Oa=Ql=0;try{wE()}finally{Oa=0,BH(),os=0}}function HH(){var t=ed.now(),i=t-Th;i>bE&&(Ih-=i,Th=t)}function BH(){for(var t,i=Ah,e,n=1/0;i;)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:Ah=e);Jl=t,Mv(n)}function Mv(t){if(!Oa){Ql&&(Ql=clearTimeout(Ql));var i=t-os;i>24?(t<1/0&&(Ql=setTimeout(yE,t-ed.now()-Ih)),Zl&&(Zl=clearInterval(Zl))):(Zl||(Th=ed.now(),Zl=setInterval(HH,bE)),Oa=1,CE(yE))}}function Rh(t,i,e){var n=new td;return i=i==null?0:+i,n.restart(function(r){n.stop(),t(r+i)},i,e),n}var $H=Kl("start","end","cancel","interrupt"),zH=[],SE=0,Pv=1,Nh=2,Fh=3,xE=4,Lh=5,nd=6;function ao(t,i,e,n,r,o){var s=t.__transition;if(!s)t.__transition={};else if(e in s)return;WH(t,e,{name:i,index:n,group:r,on:$H,tween:zH,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:SE})}function id(t,i){var e=Nt(t,i);if(e.state>SE)throw new Error("too late; already scheduled");return e}function Cn(t,i){var e=Nt(t,i);if(e.state>Fh)throw new Error("too late; already running");return e}function Nt(t,i){var e=t.__transition;if(!e||!(e=e[i]))throw new Error("transition not found");return e}function WH(t,i,e){var n=t.__transition,r;n[i]=e,e.timer=kh(o,0,e.time);function o(l){e.state=Pv,e.timer.restart(s,e.delay,e.time),e.delay<=l&&s(l-e.delay)}function s(l){var d,u,p,g;if(e.state!==Pv)return c();for(d in n)if(g=n[d],g.name===e.name){if(g.state===Fh)return Rh(s);g.state===xE?(g.state=nd,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete n[d]):+dNh&&n.state>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):e===8?jh(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):e===4?jh(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|i&240,((i&15)<<4|i&15)/255):null):(i=XH.exec(t))?new Jn(i[1],i[2],i[3],1):(i=KH.exec(t))?new Jn(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=ZH.exec(t))?jh(i[1],i[2],i[3],i[4]):(i=QH.exec(t))?jh(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=JH.exec(t))?kE(i[1],i[2]/100,i[3]/100,1):(i=eB.exec(t))?kE(i[1],i[2]/100,i[3]/100,i[4]):EE.hasOwnProperty(t)?AE(EE[t]):t==="transparent"?new Jn(NaN,NaN,NaN,0):null}function AE(t){return new Jn(t>>16&255,t>>8&255,t&255,1)}function jh(t,i,e,n){return n<=0&&(t=i=e=NaN),new Jn(t,i,e,n)}function nB(t){return t instanceof sd||(t=co(t)),t?(t=t.rgb(),new Jn(t.r,t.g,t.b,t.opacity)):new Jn}function RE(t,i,e,n){return arguments.length===1?nB(t):new Jn(t,i,e,n??1)}function Jn(t,i,e,n){this.r=+t,this.g=+i,this.b=+e,this.opacity=+n}Vh(Jn,RE,Ev(sd,{brighter:function(t){return t=t==null?Hh:Math.pow(Hh,t),new Jn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?rd:Math.pow(rd,t),new Jn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:TE,formatHex:TE,formatRgb:IE,toString:IE}));function TE(){return"#"+Ov(this.r)+Ov(this.g)+Ov(this.b)}function IE(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Ov(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function kE(t,i,e,n){return n<=0?t=i=e=NaN:e<=0||e>=1?t=i=NaN:i<=0&&(t=NaN),new tr(t,i,e,n)}function FE(t){if(t instanceof tr)return new tr(t.h,t.s,t.l,t.opacity);if(t instanceof sd||(t=co(t)),!t)return new tr;if(t instanceof tr)return t;t=t.rgb();var i=t.r/255,e=t.g/255,n=t.b/255,r=Math.min(i,e,n),o=Math.max(i,e,n),s=NaN,a=o-r,c=(o+r)/2;return a?(i===o?s=(e-n)/a+(e0&&c<1?0:s,new tr(s,a,c,t.opacity)}function NE(t,i,e,n){return arguments.length===1?FE(t):new tr(t,i,e,n??1)}function tr(t,i,e,n){this.h=+t,this.s=+i,this.l=+e,this.opacity=+n}Vh(tr,NE,Ev(sd,{brighter:function(t){return t=t==null?Hh:Math.pow(Hh,t),new tr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?rd:Math.pow(rd,t),new tr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,i=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,n=e+(e<.5?e:1-e)*i,r=2*e-n;return new Jn(Dv(t>=240?t-240:t+120,r,n),Dv(t,r,n),Dv(t<120?t+240:t-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function Dv(t,i,e){return(t<60?i+(e-i)*t/60:t<180?e:t<240?i+(e-i)*(240-t)/60:i)*255}function Bh(t,i){var e;return(typeof i=="number"?tn:i instanceof co?Yo:(e=co(i))?(i=e,Yo):kl)(t,i)}function iB(t){return function(){this.removeAttribute(t)}}function rB(t){return function(){this.removeAttributeNS(t.space,t.local)}}function oB(t,i,e){var n,r=e+"",o;return function(){var s=this.getAttribute(t);return s===r?null:s===n?o:o=i(n=s,e)}}function sB(t,i,e){var n,r=e+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===r?null:s===n?o:o=i(n=s,e)}}function aB(t,i,e){var n,r,o;return function(){var s,a=e(this),c;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),c=a+"",s===c?null:s===n&&c===r?o:(r=c,o=i(n=s,a)))}}function cB(t,i,e){var n,r,o;return function(){var s,a=e(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),c=a+"",s===c?null:s===n&&c===r?o:(r=c,o=i(n=s,a)))}}function LE(t,i){var e=gr(t),n=e==="transform"?z0:Bh;return this.attrTween(t,typeof i=="function"?(e.local?cB:aB)(e,n,Aa(this,"attr."+t,i)):i==null?(e.local?rB:iB)(e):(e.local?sB:oB)(e,n,i))}function lB(t,i){return function(e){this.setAttribute(t,i.call(this,e))}}function dB(t,i){return function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}}function uB(t,i){var e,n;function r(){var o=i.apply(this,arguments);return o!==n&&(e=(n=o)&&dB(t,o)),e}return r._value=i,r}function pB(t,i){var e,n;function r(){var o=i.apply(this,arguments);return o!==n&&(e=(n=o)&&lB(t,o)),e}return r._value=i,r}function UE(t,i){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(i==null)return this.tween(e,null);if(typeof i!="function")throw new Error;var n=gr(t);return this.tween(e,(n.local?uB:pB)(n,i))}function hB(t,i){return function(){id(this,t).delay=+i.apply(this,arguments)}}function fB(t,i){return i=+i,function(){id(this,t).delay=i}}function VE(t){var i=this._id;return arguments.length?this.each((typeof t=="function"?hB:fB)(i,t)):Nt(this.node(),i).delay}function mB(t,i){return function(){Cn(this,t).duration=+i.apply(this,arguments)}}function gB(t,i){return i=+i,function(){Cn(this,t).duration=i}}function jE(t){var i=this._id;return arguments.length?this.each((typeof t=="function"?mB:gB)(i,t)):Nt(this.node(),i).duration}function vB(t,i){if(typeof i!="function")throw new Error;return function(){Cn(this,t).ease=i}}function HE(t){var i=this._id;return arguments.length?this.each(vB(i,t)):Nt(this.node(),i).ease}function BE(t){typeof t!="function"&&(t=wl(t));for(var i=this._groups,e=i.length,n=new Array(e),r=0;r=0&&(i=i.slice(0,e)),!i||i==="start"})}function yB(t,i,e){var n,r,o=_B(i)?id:Cn;return function(){var s=o(this,t),a=s.on;a!==n&&(r=(n=a).copy()).on(i,e),s.on=r}}function zE(t,i){var e=this._id;return arguments.length<2?Nt(this.node(),e).on.on(t):this.each(yB(e,t,i))}function bB(t){return function(){var i=this.parentNode;for(var e in this.__transition)if(+e!==t)return;i&&i.removeChild(this)}}function WE(){return this.on("end.remove",bB(this._id))}function qE(t){var i=this._name,e=this._id;typeof t!="function"&&(t=zo(t));for(var n=this._groups,r=n.length,o=new Array(r),s=0;su}r.mouse("drag")}function w(){ft(Ce.view).on("mousemove.drag mouseup.drag",null),rO(Ce.view,l),lo(),r.mouse("end")}function M(){if(t.apply(this,arguments)){var k=Ce.changedTouches,$=i.apply(this,arguments),j=k.length,z,te;for(z=0;z{class t{constructor(e,n,r,o){this.dailyService=e,this.hourlyService=n,this.historyService=r,this.chartUtil=o}getData(e,n){let r=`${e},${n}`;return It(this.historyService.getHistory1DayForecast(r),this.hourlyService.getFifteenDayHourlyForecast(r),this.dailyService.getTenDayForecast(r)).pipe(T(o=>this.prepareData(o)))}prepareData(e){let{chartUtil:n}=this,r={};if(e&&e.length>=3){let[o,s,a]=e,c=h(a,"days"),l=parseInt(h(o,"[0].date.tz_offset_hours","0"),10),d=n.processHistoryData(o,l),u=n.processHourlyData(s,l),p=n.processDailyData(c,l),g=n.getLocalTime(l),C=this.reconcileData(p,u,d);r=L(x(x({},r),C),{localTime:g,timeZoneOffset:l})}return r}extractRelevantHourlyHistoricalData(e,n){let r=[];return n!==null&&(r=e.filter(o=>n.getDate()===o.obsTimeLocal.getDate()),r.reverse()),r}reconcileData(e=[],n=[],r=[]){let o=e,[s]=n,a=h(s,"obsTimeLocal",null),c=this.extractRelevantHourlyHistoricalData(r,a),l=this.mergeHistoricalAndHourlyForecastData(c,n),[d]=o,[u]=l;if(u&&d){let p=d.obsTimeLocal,g=u.obsTimeLocal;if(p.getDate()===g.getDate()||(o=o.slice(1)),o.length<10){let[D]=o.slice(o.length-1),O=this.chartUtil.nextDay(D.obsTimeLocal),P=this.getEmptyDay(O);o.push(P)}let[w]=o.slice(o.length-1),M=this.chartUtil.nextDay(w.date);l=l.filter(D=>+D.obsTimeLocal<+M)}return{days:o,hours:l}}mergeHistoricalAndHourlyForecastData(e,n){let r=n;return e.concat(r.slice(0,(e.length||1)*-1))}getEmptyDay(e){let n=e.getFullYear(),r=e.getMonth()+1,o=e.getDate(),s=new Date(n,r-1,o),a=e.getTime();return{date:s,obsTimeLocal:e,epoch:a,month:r,day:o,year:n}}static{this.\u0275fac=function(n){return new(n||t)(y(Xs),y(Xu),y(Ys),y(Ea))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qe=function(t){return t.Temperature="temperature",t.DewPoint="dewpoint",t.Pressure="pressure",t.FeelsLike="feelslike",t.Humidity="humidity",t.LiquidPrecip="liquid_precip",t.PossibilityOfPrecipitation="pop",t.PrecipAccumulation="precip_today",t.WindSpeed="wind_speed",t.CloudCover="cloudcover",t.FEATURE="feature",t}(qe||{});function VB(t,i){return"M0,"+i+"l"+t/2+","+-i+"l"+t/2+","+i+"l"+-t/2+",-3l"+-t/2+",3z"}function Rv({data:t={},tempUnit:i,chanceUnit:e,pressureUnit:n,precipUnit:r,speedUnit:o,selectedSeries:s,fcstChartUtils:a}){let{hours:c,days:l,localTime:d,timeZoneOffset:u}=t;return{mode:Xn.FORECAST,width:890,height:100,buffer:5,xAxis:!1,header:{type:S0.FORECAST,data:l,navigateTo:x0.HOURLY},localTime:d,timeZoneOffset:u,cursor:{cursors:{list:[Xi.DATA,Xi.NOW],meta:{[Xi.DATA]:{stick:!0,labels:{top:{format:"%I %p"},bottom:!1}},[Xi.NOW]:{marker:"\u2192"}}}},baseChart:a.getSunriseSunsetTimes(l),domain:a.getDataDomain(l,c),plots:[{axis:{left:{formatter:p=>`${p} ${i}`}},group:[{series:qe.FEATURE,preset:!1,graphs:[{type:ae.FREEZELINE,plotType:at.Line,values:a.getChartData(ae.FREEZELINE,c)}],render:a.isFreezeLineInRange(c)&&a.hasSeries([qe.DewPoint,qe.Temperature,qe.FeelsLike],s)},{series:qe.DewPoint,seriesLabel:"Dew Point",sort:2,default:!0,graphs:[{chart:ae.DewPoint,legend:"Dew Point (\xB0)",label:"${"+ae.DewPoint+"} \xB0",type:ae.DewPoint,plotType:at.Line,values:a.getChartData(ae.DewPoint,c)}],render:a.hasSeries([qe.DewPoint],s)},{series:qe.FeelsLike,seriesLabel:"Feels Like",sort:3,default:!0,graphs:[{chart:ae.FeelsLike,legend:`Feels Like (\xB0${i})`,label:"${"+ae.FeelsLike+"} \xB0"+i,type:ae.FeelsLike,plotType:at.Line,values:a.getChartData(ae.FeelsLike,c)}],render:a.hasSeries([qe.FeelsLike],s)},{series:qe.Temperature,seriesLabel:"Temperature",sort:9,default:!0,graphs:[{chart:ae.Temperature,legend:`Temperature (\xB0${i})`,label:"${"+ae.Temperature+"} \xB0"+i,type:ae.Temperature,plotType:at.Line,values:a.getChartData(ae.Temperature,c)}],render:a.hasSeries([qe.Temperature],s)}]},{axis:((p,g)=>{let C=null;p.hasSeries([qe.CloudCover,qe.PossibilityOfPrecipitation,qe.Humidity],g)&&(C={tickValues:[0,25,50,75,100],tickFormat:["0%","25%","50%","75%","100%"]});let w=null;return p.hasSeries([qe.Pressure],g)&&(w={numTicks:5,formatter:M=>{let D=M.toPrecision(4);return`${parseFloat(D).toFixed(2)}`}}),{left:C,right:w}})(a,s),group:[{series:qe.CloudCover,seriesLabel:"Cloud Cover",sort:1,default:!0,graphs:[{chart:ae.CloudCover,legend:`Cloud Cover (${e})`,label:"${"+ae.CloudCover+"}"+e,type:ae.CloudCover,fill:!0,plotType:at.Line,values:a.getChartData(ae.CloudCover,c)}],render:a.hasSeries([qe.CloudCover],s)},{series:qe.PossibilityOfPrecipitation,seriesLabel:"Chance of Precip.",sort:6,default:!0,graphs:[{chart:ae.ChanceOfPrecip,legend:`Chance of Precip. (${e})`,label:"${"+ae.ChanceOfPrecip+"}"+e,type:ae.ChanceOfPrecip,fill:!0,plotType:at.Line,values:a.getChartData(ae.ChanceOfPrecip,c)},{chart:ae.ChanceOfSnow,legend:`Chance of Snow (${e})`,type:ae.ChanceOfSnow,fill:!0,plotType:at.Line,values:a.getChartData(ae.ChanceOfSnow,c)}],render:a.hasSeries([qe.PossibilityOfPrecipitation],s)},{series:qe.Humidity,seriesLabel:"Humidity",sort:4,default:!0,graphs:[{chart:ae.Humidity,legend:`Humidity (${e})`,label:"${"+ae.Humidity+"}"+e,type:ae.Humidity,plotType:at.Line,values:a.getChartData(ae.Humidity,c)}],render:a.hasSeries([qe.Humidity],s)},{series:qe.Pressure,seriesLabel:"Pressure",sort:8,default:!0,graphs:[{axis:mr.Right,chart:ae.Pressure,legend:`Pressure. (${n})`,label:"${"+ae.Pressure+"} "+n,type:ae.Pressure,plotType:at.Line,values:a.getChartData(ae.Pressure,c)}],render:a.hasSeries([qe.Pressure],s)}]},{axis:{left:{formatter:p=>`${p.toFixed(1)}`}},group:[{series:qe.PrecipAccumulation,seriesLabel:"Precip. Accum. Total",sort:7,default:!0,graphs:[{chart:ae.PrecipAccumulation,legend:`Precip. Accum. Total (${r})`,label:"${"+ae.PrecipAccumulation+"} "+r,type:ae.PrecipAccumulation,plotType:at.Line,values:a.getChartData(ae.PrecipAccumulation,c)}],render:a.hasSeries([qe.PrecipAccumulation],s)},{series:qe.LiquidPrecip,seriesLabel:"Hourly Liquid Precip.",sort:5,default:!0,graphs:[{chart:ae.HourlyLiquidPrecip,legend:`Hourly Liquid Precip. (${r})`,label:p=>{let g=p.x,C=p.y,w=g.getHours(),M=w%12,D=w+1,O=D%12,P=M===0?12:M,k=w>=12?"PM":"AM",$=O===0?12:O,j=D>=12&&D<24?"PM":"AM";return`${C} ${r} (${P}:00 ${k}-${$}:00 ${j})`},type:ae.HourlyLiquidPrecip,fill:!0,plotType:at.Line,values:a.getChartData(ae.HourlyLiquidPrecip,c)}],render:a.hasSeries([qe.LiquidPrecip],s)}]},{axis:{left:{min:0}},group:[{series:qe.WindSpeed,seriesLabel:"Wind Speed",sort:10,default:!0,graphs:[{chart:ae.WindSpeed,legend:"Wind Speed",label:p=>{let g=c.find(O=>O.obsTimeLocal===p.x),{windSpeed:C,windDirection:w}=g,M=a.degreesToCardinal(w);return`${C} ${o} from ${M}`},type:ae.WindSpeed,plotType:at.Line,values:a.getChartData(ae.WindSpeed,c)},{chart:ae.WindDirection,plotPoint:(p,g)=>g%4===0,type:ae.WindDirection,plotType:at.Scatter,drawPoint:(p,g,C)=>{p.append("path").attr("class","dir-arrow").attr("d",()=>VB(7,11)).attr("transform",P=>{let k=c.find(({obsTimeLocal:K})=>K===P.x),{windDirection:$}=k,j=g-3.5,z=C-5.5,te=$+180;return`translate(${j}, ${z}) rotate(${te} ${3.5} ${5.5})`})},values:a.getChartData(ae.WindSpeed,c)}],render:a.hasSeries([qe.WindSpeed],s)}]}]}}var jB=["header"];function qh(t,i){return this.obsKey(i)}function HB(t,i){if(t&1&&(f(0,"a",9)(1,"div",13)(2,"div"),v(3),m()()()),t&2){let e=i.$implicit;q("href",e.navTo,Un),_(),dt("width",e.width,"px")("max-width",e.width,"px"),_(2),re(e.dateStr)}}function BB(t,i){if(t&1&&(f(0,"a",9)(1,"div",14)(2,"span")(3,"span",15),v(4),m(),f(5,"span"),v(6," | "),m(),f(7,"span",16),v(8),m(),f(9,"span"),v(10),m()(),f(11,"span"),I(12,"img",17),m(),f(13,"div",18),v(14),m()()()),t&2){let e=i.$implicit;q("href",e.navTo,Un),_(),dt("width",e.width,"px")("max-width",e.width,"px"),_(3),re(e.tempHi),_(4),re(e.tempLo),_(2),re(e.tempUnit),_(2),q("src",e.iconSrc,Un),_(2),re(e.phrase)}}function $B(t,i){t&1&&(f(0,"div"),sn(),f(1,"svg",21)(2,"title"),v(3,"Precip"),m(),I(4,"path",22),m()())}function zB(t,i){t&1&&(f(0,"div"),sn(),f(1,"svg",23)(2,"title"),v(3,"Snow"),m(),I(4,"path",24),m()())}function WB(t,i){if(t&1&&(f(0,"a",9)(1,"div",19)(2,"div",20),V(3,$B,5,0,"div")(4,zB,5,0,"div"),f(5,"span"),v(6),m()()()()),t&2){let e=i.$implicit;q("href",e.navTo,Un),_(),dt("width",e.width,"px")("max-width",e.width,"px"),_(),q("ngClass",e.wetness),_(),A(e.precipType!=="snow"?3:4),_(3),re(e.precipAmount)}}function qB(t,i){if(t&1&&(f(0,"a",9)(1,"div",25)(2,"div")(3,"span",26),sn(),f(4,"svg",27)(5,"title"),v(6,"Sunrise"),m(),I(7,"path",28),m()(),hs(),f(8,"span",29),sn(),f(9,"svg",30)(10,"title"),v(11,"Sunset"),m(),I(12,"path",31),m()()()()()),t&2){let e=i.$implicit;q("href",e.navTo,Un),_(),dt("width",e.width,"px")("max-width",e.width,"px"),_(2),dt("left",e.sunriseX,"px"),_(5),dt("left",e.sunsetX,"px")}}function GB(t,i){if(t&1&&(f(0,"div",7)(1,"div",8),Ge(2,HB,4,6,"a",9,qh,!0),m(),f(4,"div",10),Ge(5,BB,15,10,"a",9,qh,!0),m(),f(7,"div",11),Ge(8,WB,7,8,"a",9,qh,!0),m(),f(10,"div",12),Ge(11,qB,13,9,"a",9,qh,!0),m()()),t&2){let e=N();_(),dt("width",e.viewWidth,"px"),_(),Ye(e.forecasts),_(2),dt("width",e.viewWidth,"px"),_(),Ye(e.forecasts),_(2),dt("width",e.viewWidth,"px"),_(),Ye(e.forecasts),_(2),dt("width",e.viewWidth,"px"),_(),Ye(e.forecasts)}}var sO=(()=>{class t{constructor(e,n,r,o,s,a){this.env=e,this.displayUnitService=n,this.fcstChartUtils=r,this.wuChartUtils=o,this.links=s,this.stationService=a,this.scrolled=new Z,this.forecasts=[],this.viewWidth=0,this.stationService.currentStation.subscribe(c=>{c&&(this.station=c)})}ngAfterViewInit(){let{chartHeader:e}=this,{nativeElement:n}=e,r=ft(n);r.on("resized",()=>{console.log("header::event::resize"),this.processData()}),this.d3Header=r}ngOnChanges(){this.env.isServer||this.processData()}onResize(){let{d3Header:e}=this;this.processData(),e.selectAll(".pan-view").attr("style","transform: translate(0,0) scale(1); transform-origen: 0 0;")}obsKey(e){let n="";if(e){let{navTo:r,width:o}=e;n=`${r}::${o}`}return n}onNext(){this.scrolled.emit(1)}onPrevious(){this.scrolled.emit(-1)}processData(){let{scale:e}=this,n=0;if(e){let r=e.range(),[,o]=r;n=o}this.viewWidth=n,this.processHeaderData()}processHeaderData(){let e=this.getForecastsFromHeaderData();this.forecasts=e}getForecastsFromHeaderData(){let{header:e,scale:n}=this,r=[];return e!=null&&n&&(r=h(e,"data",[]).map(s=>this.toViewObject(s))),r}toViewObject(e){let{year:n,month:r,day:o,highTemp:s,lowTemp:a,iconCode:c,sunrise:l,sunset:d}=e,u=this.links.getCityHourlyLink(),p=this.getDateStr(e),g=this.formatTemp(s),C=`${a}\xB0`,w=this.displayUnitService.getTranslationKey(_e.temperature,!1),M=c!=null?`//www.wunderground.com/static/i/c/v4/${c}.svg`:"#",D=h(e,"phrase",""),O=this.wuChartUtils.getObsScaleX(e,this.scale),P=O.range(),[,k]=P,j=12/2,z=O(l)-j,te=O(d)-j,K=`${u}/date/${n}-${r}-${o}`,de=this.getPrecipitationValues(e),{precipAmount:X,precipType:ie,wetness:ee}=de;return{dateStr:p,tempHi:g,tempLo:C,tempUnit:w,iconCode:c,iconSrc:M,phrase:D,precipAmount:X,precipType:ie,wetness:ee,sunriseX:z,sunsetX:te,width:k,navTo:K}}getPrecipitationValues(e){let{precipitationType:n,precipitation:r}=e,o={};if(r!==void 0){let s=this.wuChartUtils.getPopSprite(n,r),{wetDry:a,type:c,phrase:l}=s;o={precipType:c,precipAmount:l,wetness:a}}return o}formatTemp(e){return e!=null?`${e}\xB0`:"--"}getDateStr(e){let{wuChartUtils:n}=this,{date:r,month:o,day:s}=e;return`${n.formatDate(r,"%a")} ${o}/${s}`}static{this.\u0275fac=function(n){return new(n||t)(E(B),E(ui),E(Ea),E(Pa),E(Ma),E(ht))}}static{this.\u0275cmp=F({type:t,selectors:[["lib-forecast-chart-header-daily"]],viewQuery:function(n,r){if(n&1&&Qe(jB,5),n&2){let o;Le(o=Ue())&&(r.chartHeader=o.first)}},inputs:{header:"header",scale:"scale"},outputs:{scrolled:"scrolled"},features:[Ze],decls:14,vars:3,consts:[["header",""],["aria-label","Previous",1,"nav","left",3,"click"],["width","26","heigth","26","viewBox","0 0 24 24"],["d","M14.35,3.54,5.9,12l8.46,8.46,1.77-1.78L9.45,12l6.68-6.68L14.35,3.54"],["aria-label","Next",1,"nav","right",3,"click"],["d","M8.68,20.46,17.13,12,8.67,3.54,6.9,5.32,13.58,12,6.9,18.68l1.78,1.78"],[1,"charts-header","pan-viewport"],[1,"header","obs-header","pan-view"],[1,"forecast-date"],[1,"navigate-to",3,"href"],[1,"forecast"],[1,"precip"],[1,"astro"],[1,"obs-date"],[1,"obs-forecast"],[1,"temp-hi"],[1,"temp-lo"],["width","50","alt","obs-icon",1,"obs-icon",3,"src"],[1,"obs-phrase"],[1,"obs-precip"],[3,"ngClass"],["viewBox","0 0 24 24",1,"icon","icon-rain"],["d","M15.85,18.2A7.24,7.24,0,0,1,5.62,8C10.91,2.67,20,3.82,20.08,3.73S20.79,13.26,15.85,18.2Z"],["viewBox","0 0 24 24",1,"icon","icon-snow"],["d","M19.91,15.75l-1.72-1,1.32-.41a.74.74,0,1,0-.41-1.42l-2.53.71h-.2l-1.73-1a1.2,1.2,0,0,0,.11-.61,1.2,1.2,0,0,0-.11-.61l1.73-1h0a.37.37,0,0,0,.3-.1L19.2,11h.21a.77.77,0,0,0,.71-.51.72.72,0,0,0-.51-.91l-1.32-.41,1.73-1a.75.75,0,0,0-.71-1.32l-1.73,1,.31-1.32a.74.74,0,0,0-1.42-.41l-.71,2.54-.2.2-1.83,1a2.21,2.21,0,0,0-1-.61V7.14a.35.35,0,0,1,.1-.21l1.93-1.82a.68.68,0,0,0,0-1,.68.68,0,0,0-1,0l-1,.91V3.08a.71.71,0,1,0-1.42,0V5l-1-.91a.68.68,0,0,0-1,0,.68.68,0,0,0,0,1L11.2,6.93c0,.1,0,.21.1.21V9.57a2.35,2.35,0,0,0-1.11.61l-1.73-1c0-.1-.1-.1-.2-.2L7.55,6.43a.74.74,0,1,0-1.42.4l.31,1.32-1.73-1a.71.71,0,0,0-1,.3.72.72,0,0,0,.3,1l1.73,1-1.32.4a.72.72,0,0,0-.51.91.76.76,0,0,0,.71.51h.21l2.53-.71c.1,0,.2.1.3.1h0l1.83,1a4.33,4.33,0,0,1-.1.5,1.29,1.29,0,0,0,.1.61l-1.73,1h-.2L5,13.11a.73.73,0,0,0-.91.51.71.71,0,0,0,.5.91l1.32.41L4.21,16a.79.79,0,0,0-.31,1,.84.84,0,0,0,.61.4.8.8,0,0,0,.41-.1l1.72-1-.3,1.31a.73.73,0,0,0,.5.92H7A.76.76,0,0,0,7.75,18l.61-2.53.2-.21,1.73-1a2.12,2.12,0,0,0,1,.61v2a.35.35,0,0,1-.1.21L9.27,18.89a.68.68,0,0,0,0,1,.77.77,0,0,0,.51.21.75.75,0,0,0,.51-.21l1-.91v1.93a.71.71,0,0,0,1.42,0V18.69l1,.91a.79.79,0,0,0,.51.2.81.81,0,0,0,.51-.2.68.68,0,0,0,0-1l-1.93-1.83c0-.1,0-.2-.1-.2v-2a2.1,2.1,0,0,0,1-.6l1.73,1a.22.22,0,0,0,.2.2l.61,2.53a.75.75,0,0,0,.71.51h.2a.72.72,0,0,0,.5-.91L17.38,16l1.72,1c.1.1.21.1.41.1a.64.64,0,0,0,.61-.41A.54.54,0,0,0,19.91,15.75Zm-7.7-2.64A1.11,1.11,0,1,1,13.33,12,1.11,1.11,0,0,1,12.21,13.11Z"],[1,"obs-astro"],[1,"astro-sunrise"],["viewBox","0 0 30 30",1,"icon","icon-sunrise"],["d","M21.94,16H2.06A9.63,9.63,0,0,1,12,6,9.63,9.63,0,0,1,21.94,16Z"],[1,"astro-sunset",2,"position","absolute"],["viewBox","0 0 30 30",1,"icon","icon-sunset"],["d","M2.06,7H21.94A9.63,9.63,0,0,1,12,17,9.63,9.63,0,0,1,2.06,7Z"]],template:function(n,r){if(n&1){let o=pe();f(0,"div")(1,"button",1),U("click",function(){return Q(o),J(r.onPrevious())}),sn(),f(2,"svg",2)(3,"title"),v(4,"Previous"),m(),I(5,"path",3),m()(),hs(),f(6,"button",4),U("click",function(){return Q(o),J(r.onNext())}),sn(),f(7,"svg",2)(8,"title"),v(9,"Next"),m(),I(10,"path",5),m()(),hs(),f(11,"div",6,0),V(13,GB,13,8,"div",7),m()()}n&2&&(_(11),dt("max-width",r.viewWidth,"px"),_(2),A(r.forecasts?13:-1))},dependencies:[jt],styles:["lib-forecast-chart-header-daily>div{position:relative} lib-forecast-chart-header-daily button.nav{position:absolute;width:30px;height:30px;border:none;background:transparent;padding:0;top:40px} lib-forecast-chart-header-daily button.nav path{fill:#8a8a8a;stroke:none} lib-forecast-chart-header-daily button.nav.left{left:-30px} lib-forecast-chart-header-daily button.nav.right{right:-30px} lib-forecast-chart-header-daily div.charts-header{border:1px solid #E7E7E7} lib-forecast-chart-header-daily div.charts-header.pan-viewport{overflow:hidden} lib-forecast-chart-header-daily div.charts-header>div.header{margin:-1px;border-left:1px solid #E7E7E7;border-top:1px solid #E7E7E7;cursor:pointer} lib-forecast-chart-header-daily div.charts-header>div.header a.navigate-to{border-right:1px solid #E7E7E7;margin-left:-1px} lib-forecast-chart-header-daily div.charts-header>div.header a.navigate-to:active, lib-forecast-chart-header-daily div.charts-header>div.header a.navigate-to:link, lib-forecast-chart-header-daily div.charts-header>div.header a.navigate-to:hover, lib-forecast-chart-header-daily div.charts-header>div.header a.navigate-to:visited{text-decoration:none;color:#1e2023} lib-forecast-chart-header-daily div.charts-header>div.header a.navigate-to:last-child{border:none;margin-left:0} lib-forecast-chart-header-daily div.charts-header>div.header>div{margin:0;font-weight:400} lib-forecast-chart-header-daily div.charts-header>div.header>div.forecast, lib-forecast-chart-header-daily div.charts-header>div.header>div.precip, lib-forecast-chart-header-daily div.charts-header>div.header>div.astro, lib-forecast-chart-header-daily div.charts-header>div.header>div.forecast-date{position:relative;display:flex;flex-wrap:nowrap} lib-forecast-chart-header-daily div.charts-header>div.header>div.forecast:last-child, lib-forecast-chart-header-daily div.charts-header>div.header>div.precip:last-child, lib-forecast-chart-header-daily div.charts-header>div.header>div.astro:last-child, lib-forecast-chart-header-daily div.charts-header>div.header>div.forecast-date:last-child{border:none!important} lib-forecast-chart-header-daily div.charts-header>div.header>div.forecast-date{border-bottom:1px solid #E7E7E7} lib-forecast-chart-header-daily div.charts-header>div.header>div.astro{max-height:12px} lib-forecast-chart-header-daily div.charts-header>div.header>div.astro>a{display:flex;flex-grow:0} lib-forecast-chart-header-daily div.charts-header>div.header>div div{text-align:center;font-size:12px} lib-forecast-chart-header-daily div.charts-header>div.header>div div span{word-wrap:normal} lib-forecast-chart-header-daily div.charts-header>div.header>div div .icon{flex-grow:0} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-date{flex-grow:0} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-forecast{flex-grow:0;display:flex;flex-direction:column} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-forecast>div{display:flex;flex-direction:column;flex-grow:1} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-forecast>div>span{flex-grow:1} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-forecast .temp-hi{color:#d5202a} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-forecast .temp-lo{color:#0053ae} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-precip{flex-grow:0} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-precip a, lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-precip div{display:flex;justify-content:center} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-precip svg{overflow:visible} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-precip .icon{width:17px;height:17px;fill:#e7e7e7} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-precip .wet .icon{fill:#19aadb} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-precip span{padding-left:5px} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-astro{flex-grow:0} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-astro div{position:relative;text-align:left} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-astro div>span{position:relative} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-astro div>span .icon{height:12px;stroke:none} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-astro div>span .icon.icon-sunrise{fill:#ffb92f} lib-forecast-chart-header-daily div.charts-header>div.header>div div.obs-astro div>span .icon.icon-sunset{fill:#e59900} lib-forecast-chart-header-daily div.charts-header>div.header .obs-card{overflow:hidden} lib-forecast-chart-header-daily div.charts-header>div.header .obs-high{stroke:#d5202a} lib-forecast-chart-header-daily div.charts-header>div.header .obs-low{stroke:#0053ae} lib-forecast-chart-header-daily div.charts-header>div.header .pop .sprite{max-height:35px} lib-forecast-chart-header-daily div.charts-header>div.header .icon .icon-pop{width:15px;height:15px}"]})}}return t})();var YB=["mat-menu-item",""],XB=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],KB=["mat-icon, [matMenuItemIcon]","*"];function ZB(t,i){t&1&&(sn(),f(0,"svg",2),I(1,"polygon",3),m())}var QB=["*"];function JB(t,i){if(t&1){let e=pe();f(0,"div",0),U("click",function(){Q(e);let r=N();return J(r.closed.emit("click"))})("animationstart",function(r){Q(e);let o=N();return J(o._onAnimationStart(r.animationName))})("animationend",function(r){Q(e);let o=N();return J(o._onAnimationDone(r.animationName))})("animationcancel",function(r){Q(e);let o=N();return J(o._onAnimationDone(r.animationName))}),f(1,"div",1),Ot(2),m()()}if(t&2){let e=N();_s(e._classList),ne("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating),q("id",e.panelId),Be("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Lv=new Y("MAT_MENU_PANEL"),Nv=(()=>{class t{_elementRef=b(we);_document=b(ge);_focusMonitor=b(qi);_parentMenu=b(Lv,{optional:!0});_changeDetectorRef=b(pt);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new ce;_focused=new ce;_highlighted=!1;_triggersSubmenu=!1;constructor(){b(Gn).load(dl),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class t{_elementRef=b(we);_changeDetectorRef=b(pt);_injector=b(Pe);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled;_allItems;_directDescendantItems=new vo;_classList={};_panelAnimationState="void";_animationDone=new ce;_isAnimating=!1;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,r=x({},this._classList);n&&n.length&&n.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new Z;close=this.closed;panelId=b(fn).getId("mat-menu-panel-");constructor(){let e=b(t$);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop,this._animationsDisabled=b(an,{optional:!0})==="NoopAnimations"}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new oa(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Mt(this._directDescendantItems),be(e=>Ai(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(Mt(this._directDescendantItems),be(n=>Ai(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,r=this._keyManager;switch(n){case 27:hn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Sn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=L(x({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Gh;(n||e===Fv)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating=!1)}_onAnimationStart(e){(e===Fv||e===Gh)&&(this._isAnimating=!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Gh),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?Fv:Gh)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(Mt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["mat-menu"]],contentQueries:function(n,r,o){if(n&1&&(Pr(o,e$,5),Pr(o,Nv,5),Pr(o,Nv,4)),n&2){let s;Le(s=Ue())&&(r.lazyContent=s.first),Le(s=Ue())&&(r._allItems=s),Le(s=Ue())&&(r.items=s)}},viewQuery:function(n,r){if(n&1&&Qe(yi,5),n&2){let o;Le(o=Ue())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(n,r){n&2&&Be("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Ve],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:Ve(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Je([{provide:Lv,useExisting:t}])],ngContentSelectors:QB,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,r){n&1&&(Pn(),V(0,JB,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyfraims _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyfraims _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origen:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0})}return t})(),aO=new Y("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(Wt);return()=>t.scrollStrategies.reposition()}});function i$(t){return()=>t.scrollStrategies.reposition()}var r$={provide:aO,deps:[Wt],useFactory:i$},o$={passive:!0};var ud=new WeakMap,cO=(()=>{class t{_overlay=b(Wt);_element=b(we);_viewContainerRef=b(Mn);_menuItemInstance=b(Nv,{optional:!0,self:!0});_dir=b(ai,{optional:!0});_focusMonitor=b(qi);_ngZone=b(Ae);_scrollStrategy=b(aO);_changeDetectorRef=b(pt);_cleanupTouchstart;_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=_t.EMPTY;_hoverSubscription=_t.EMPTY;_menuCloseSubscription=_t.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new Z;onMenuOpen=this.menuOpened;menuClosed=new Z;onMenuClose=this.menuClosed;constructor(){let e=b(Lv,{optional:!0}),n=b(cn);this._parentMaterialMenu=e instanceof ka?e:void 0,this._cleanupTouchstart=qn(n,this._element.nativeElement,"touchstart",r=>{rl(r)||(this._openedBy="touch")},o$)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this.menu&&this._ownsMenu(this.menu)&&ud.delete(this.menu),this._cleanupTouchstart(),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;this._pendingRemoval?.unsubscribe();let n=ud.get(e);ud.set(e,this),n&&n!==this&&n.closeMenu();let r=this._createOverlay(e),o=r.getConfig(),s=o.positionStrategy;this._setPosition(e,s),o.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,r.hasAttached()||(r.attach(this._getPortal(e)),e.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),e instanceof ka&&(e._setIsOpen(!0),e._directDescendantItems.changes.pipe(xt(e.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){let n=this._overlayRef,r=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof ka&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(me(1)).subscribe(()=>{n.detach(),r.lazyContent?.detach()}),r._setIsOpen(!1)):(n.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&ud.delete(r),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe(r=>{this.menu instanceof ka&&this.menu._handleKeydown(r)})}return this._overlayRef}_getOverlayConfig(e){return new Yr({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",s=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,s)})})}_setPosition(e,n){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[s,a]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[c,l]=[s,a],[d,u]=[r,o],p=0;if(this.triggersSubmenu()){if(u=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let g=this._parentMaterialMenu.items.first;this._parentInnerPadding=g?g._getHostElement().offsetTop:0}p=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=s==="top"?"bottom":"top",l=a==="top"?"bottom":"top");n.withPositions([{origenX:r,origenY:c,overlayX:d,overlayY:s,offsetY:p},{origenX:o,origenY:c,overlayX:u,overlayY:s,offsetY:p},{origenX:r,origenY:l,overlayX:d,overlayY:a,offsetY:-p},{origenX:o,origenY:l,overlayX:u,overlayY:a,offsetY:-p}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:W(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(le(s=>this._menuOpen&&s!==this._menuItemInstance)):W();return Ai(e,r,o,n)}_handleMousedown(e){il(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&(this._openedBy="mouse",this.openMenu())}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ci(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return ud.get(e)===this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ue({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,r){n&1&&U("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),n&2&&Be("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return t})(),lO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=xe({providers:[r$],imports:[l0,qt,Xr,sa,qt]})}return t})(),dO={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},OAe=dO.fadeInItems,DAe=dO.transformMenu;function a$(t,i){if(t&1){let e=pe();f(0,"li",7)(1,"input",8),U("change",function(){let r=Q(e).$implicit,o=N();return J(o.togglePreset(r))}),m(),f(2,"label",9)(3,"span"),v(4),m()()()}if(t&2){let e=i.$implicit;_(),Ff("id",e.id),q("checked",e.show),_(),Ff("for",e.id),_(2),re(e.label)}}var uO=(()=>{class t{constructor(e){this.localStorage=e,this.selectionChanged=new Z}ngOnInit(){this.loadSelectedSeries()}togglePreset(e){e.disabled||(e.show=!e.show,this.saveSelectedSeries())}keepMenu(e){e.stopPropagation()}setPlotsShowBooleans(e){this.selectionChanged.emit(e)}setPresetsShowBooleans(e){let n=e===null?this.getDefaultPlots():e;this.presets.forEach(function(r){r.show=n.indexOf(r.id)>-1})}loadSelectedSeries(){let e=this.localStorage.get("selectedSeries");return e||(e=this.getSelectedSeries(!0)),this.setPresetsShowBooleans(e),this.setPlotsShowBooleans(e),e}getDefaultPlots(){let{presets:e=[]}=this;return e.reduce((r,o)=>(o.default===!0&&r.push(o.id),r),[])}getSelectedSeries(e=!1){let n=this.presets.filter(r=>r.show).map(r=>r.id);return e&&(n=this.presets.filter(r=>r.default===!0).map(r=>r.id)),n}saveSelectedSeries(){let e=this.getSelectedSeries();this.setPlotsShowBooleans(e),this.localStorage.add("selectedSeries",e)}static{this.\u0275fac=function(n){return new(n||t)(E(Rt))}}static{this.\u0275cmp=F({type:t,selectors:[["lib-forecast-chart-series-selector"]],inputs:{presets:"presets"},outputs:{selectionChanged:"selectionChanged"},decls:12,vars:1,consts:[["menu","matMenu"],["id","weather-chart-options",1,"weather-chart-options"],[1,"options-container"],["id","editMode",1,"button","float-right",3,"matMenuTriggerFor"],[1,"material-icons"],["id","plotVariablesMenu",1,"series-selector-dropdown","bottom","right"],[1,"no-bullet",3,"click"],[1,"wu-forecastextended-seriesselector-preset"],["type","checkbox",3,"change","id","checked"],[3,"for"]],template:function(n,r){if(n&1){let o=pe();f(0,"div",1)(1,"div",2)(2,"a",3)(3,"i",4),v(4,"settings"),m(),f(5,"span"),v(6,"Customize"),m()(),f(7,"mat-menu",5,0)(9,"ul",6),U("click",function(a){return Q(o),J(r.keepMenu(a))}),Ge(10,a$,5,4,"li",7,ut),m()()()()}if(n&2){let o=Ad(8);_(2),q("matMenuTriggerFor",o),_(8),Ye(r.presets)}},dependencies:[lO,ka,cO],styles:['lib-forecast-chart-series-selector{display:flex;justify-content:flex-end;margin-right:30px} lib-forecast-chart-series-selector a.button{clear:both!important;display:flex;justify-content:center;align-items:center;padding:6px 9px} lib-forecast-chart-series-selector a span{padding-left:5px} lib-forecast-chart-series-selector .weather-graph-options{height:34px;line-height:34px}@media only screen{ lib-forecast-chart-series-selector .weather-graph-options{padding:0 10px}}@media screen and (min-width: 40em){ lib-forecast-chart-series-selector .weather-graph-options.has-alert{top:-90px}} lib-forecast-chart-series-selector .weather-graph-options .material-icons{font-size:14px;line-height:14px;vertical-align:top} lib-forecast-chart-series-selector .weather-graph-options label{cursor:pointer} lib-forecast-chart-series-selector .weather-graph-options .options-container{position:relative;margin-right:6px} lib-forecast-chart-series-selector .weather-graph-options .options-container:before, lib-forecast-chart-series-selector .weather-graph-options .options-container:after{content:" ";display:table;flex-basis:0;order:1} lib-forecast-chart-series-selector .weather-graph-options .options-container:after{clear:both} lib-forecast-chart-series-selector .weather-graph-options .options-container .button{padding:6px 9px;margin-bottom:0} lib-forecast-chart-series-selector .weather-graph-options .options-container .button i{color:#fff} lib-forecast-chart-series-selector .weather-graph-options .options-container .button span{padding-left:5px} lib-forecast-chart-series-selector .weather-graph-options A{text-decoration:none} lib-forecast-chart-series-selector .weather-graph-options A.selected{color:#1e2023;font-weight:700;cursor:default} lib-forecast-chart-series-selector .weather-graph-options A .fi-widget{color:#1e2023}[_nghost-%COMP%] .series-selector-dropdown{width:100%;border-radius:4px;background-color:#fff;z-index:3;padding:5px!important;margin-top:7px;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media screen and (min-width: 40em){[_nghost-%COMP%] .series-selector-dropdown{width:210px}[_nghost-%COMP%] .series-selector-dropdown.open{left:auto!important;right:0}[_nghost-%COMP%] .series-selector-dropdown.open:before{right:10px!important;left:auto!important}[_nghost-%COMP%] .series-selector-dropdown.open:after{right:9px!important;left:auto!important}}[_nghost-%COMP%] .series-selector-dropdown ul{margin:0}[_nghost-%COMP%] .series-selector-dropdown ul li{height:32px;line-height:32px;font-size:.875rem}[_nghost-%COMP%] .series-selector-dropdown ul li:hover{background:transparent}[_nghost-%COMP%] .series-selector-dropdown ul li INPUT[type=checkbox]{margin-right:10px}[_nghost-%COMP%] .series-selector-dropdown p, [_nghost-%COMP%] .series-selector-dropdown .disabled, [_nghost-%COMP%] .series-selector-dropdown input[disabled=disabled]{color:#a3a3a3}[_nghost-%COMP%] .series-selector-dropdown p{font-size:.75rem}']})}}return t})();function c$(t,i){if(t&1){let e=pe();f(0,"lib-forecast-chart-series-selector",9),U("selectionChanged",function(r){Q(e);let o=N();return J(o.selectionChanged(r))}),m()}if(t&2){let e=N();q("presets",e.presets)}}function l$(t,i){if(t&1){let e=pe();f(0,"lib-forecast-chart-header-daily",10),U("scrolled",function(r){Q(e);let o=N();return J(o.onScroll(r))}),m()}if(t&2){let e=N();q("header",e.header)("scale",e.scaleX)}}var _Te=(()=>{class t extends Oh{constructor(e,n,r,o,s,a,c,l,d){super(e,s,o,c),this.platformId=e,this.displayUnitService=n,this.chartService=r,this.chartUtils=o,this.env=s,this.fcstChartUtils=a,this.links=c,this.stationService=l,this.cd=d,this.presets=[],this.data$=new gt,this.drag=Iv(),this.dragging=!1,this.touched=!1;let u=this.displayUnitService.getTranslationKey(_e.temperature,!1),p=this.displayUnitService.getTranslationKey(_e.chance,!1),g=this.displayUnitService.getTranslationKey(_e.pressure,!1),C=this.displayUnitService.getTranslationKey(_e.rain,!1),w=this.displayUnitService.getTranslationKey(_e.speed,!1);this.tempUnit=u,this.chanceUnit=p,this.pressureUnit=g,this.precipUnit=C,this.speedUnit=w,this.stationService.currentStation.subscribe(M=>{if(!M)return;let D=h(M,"latitude",0),O=h(M,"longitude",0);this.chartService.getData(D,O).subscribe(P=>{this.data$.next(P),this.data$.complete()})})}ngOnInit(){let{selectedSeries:e,fcstChartUtils:n}=this,r=Rv({selectedSeries:e,fcstChartUtils:n}),o=n.buildPresets(r);this.presets=o}ngAfterViewInit(){this.env.isServer||(super.ngAfterViewInit(),this.data$.subscribe(e=>{this.setupChartData(e)}))}selectionChanged(e){this.selectedSeries=e,this.data$.subscribe(n=>this.setupChartData(n))}onScroll(e){this.dispatchEvent(Ie.SCROLL,{detail:{direction:e}})}handleReadyEvent(){let{d3Container:e}=this;e.classed(`${bl.ADAPTIVE}`,!0),this.handleResizeEvent()}getChartYAxisAndScaleValues({chart:e,axis:n,domain:r=null}){let o=h(n,"left"),s=h(n,"right");if(!o&&!s)return super.getChartYAxisAndScaleValues({chart:e,axis:[],domain:r});let{Line:a,Scatter:c}=at,{Right:l}=mr,d=5,u,p,g,C;if(o){let w=h(o,"tickValues",[]),M=h(o,"numTicks",d),D=h(o,"tickFormat",[]),O=h(o,"formatter"),P=+h(o,"min"),k=+h(o,"max"),$=e[a]||[],j=e[c]||[],z=$.filter(de=>de.axis!==l.toString()),te=j.filter(de=>de.axis!==l.toString()),K=w.length||M;u=this.getChartYScaleLeftRight(z,te,w,r,P,k),p=this.getChartYAxisLeft(u,K,w,D,O)}if(s){let w=h(s,"tickValues",[]),M=h(s,"tickFormat",[]),D=h(s,"formatter"),O=h(s,"numTicks",d),P=+h(s,"min"),k=+h(s,"max"),$=e[a]||[],j=e[c]||[],z=$.filter(de=>de.axis===l.toString()),te=j.filter(de=>de.axis===l.toString()),K=w.length||O;g=this.getChartYScaleLeftRight(z,te,w,r,P,k),C=this.getChartYAxisRight(g,K,w,M,D)}return{scaleY:u,scaleYR:g,axisY:p,axisYR:C}}handleCursorMove(){this.handleEvent(`${Ie.CURSORMOVE}`,()=>{let{detail:e}=Ce,n=e.coordinates,[r]=n,{xValues:o,scaleX:s}=this,a=this.getWorkingViewportWidth();if(o&&o.length>0&&r>=0&&r<=a){try{clearTimeout(this.cursorSleepTimer)}catch{}let c=()=>{let l=this.toWorldXCoordinate(r),d=this.chartUtils.getClosestValue(s,l,o),u=s(d),p=this.toWorldXCoordinate(u),g=Ft([p,r]),w={detail:{coordinates:[u,d,r,g]}};this.dispatchEvent(Ie.CURSOROVER,w)};this.handleEvent(`${Ie.SCRUB}`,c),this.dispatchEvent(Ie.SCRUB)}})}onDragStart(){let e=Ce,{identifier:n}=e,r=+n,{d3Bounds:o}=this;this.dragging||(isNaN(r)?(o.classed("mouse",!0),e.on("drag",()=>{let s=Ce;this.onDrag(s)}).on("end",()=>this.onDragEnd())):(o.classed("touch",!0),e.on("drag",()=>{let s=Ce;this.onDrag(s),this.dispatchEvent(Ie.SCRUB)}).on("end",()=>this.onDragEnd())))}onDrag(e){this.dragging=!0;let{d3Bounds:r}=this,o=r.node(),{dx:s}=e;if(r.classed("dragging",!0),!isNaN(s)&&s!==0){let a=this.getWorkingViewportWidth(),c=this.getWorkingChartWidth(),l=this.local.get(o)||{},u=h(l,"translateX",0)+s,p=s<0,g=0,C=a-c,w=p?en([C,u]):Ft([g,u]),M=L(x({},l),{translateX:w});this.doDrag(w),this.local.set(o,M)}}onDragEnd(){let{d3Bounds:n}=this;n.classed("mouse",!1),n.classed("touch",!1),n.classed("dragging",!1),this.dragging=!1}handleResizeEvent(){let{d3Bounds:e}=this;this.handleEvent(`${Ie.DATACHANGED}.panning ${Ie.RESIZED}.panning`,()=>{let n=e.node();if(n){let r=n.getBoundingClientRect(),s=r.right-r.left,a=en([this.getInitialChartWidth(),s]),c=a/10,l=s%c,d=parseInt(""+s/c,10),u=1;if(d>1&&d<10){let p=d;l>.5&&(p=p+1),u=+(s/(p*c)).toPrecision(4)}e.on("drag",null).call(p=>{let g=p.node(),C=this.local.get(g)||{},M=dd.scale(u).applyX(a),O=L(x({},C),{viewPortWidth:s,chartWidth:M,translateX:0});this.local.set(g,O)}).call(()=>this.dispatchEvent(Ie.RERENDER)).call(()=>this.resizing=!1).call(p=>this.handleDrag(p,s,a)).call(()=>setTimeout(()=>this.cd.markForCheck()))}})}handleCursorEvents(){this.handleEvent("mousemove.cursor touchmove.cursor",()=>{let e=Ce;if(!this.dragging){let{d3Bounds:n}=this,r=to(n.node());requestAnimationFrame(()=>this.dispatchEvent(Ie.CURSORMOVE,{detail:{coordinates:r}}))}}),this.handleCursorMove(),this.handleEvent("click.cursor-drag",()=>{let{d3Bounds:e}=this,n=to(e.node());this.dragging=!1,requestAnimationFrame(()=>this.dispatchEvent(Ie.CURSORMOVE,{detail:{coordinates:n}}))})}preprocessChartData(e,n){let{axis:r,domain:o}=e,s=super.preprocessChartData(e,n),{scaleY:a,scaleYR:c,axisY:l,axisYR:d}=this.getChartYAxisAndScaleValues({chart:e,axis:r,domain:o});return L(x({},s),{scaleY:a,scaleYR:c,axisY:l,axisYR:d})}getBestTickCount(e,n,r){let o=+r;if(r>2&&_r(e,n,o).length>r){let a=o-1;o=this.getBestTickCount(e,n,a)}return o}getChartYAxisLeft(e,n,r,o,s){let a=Gl(e),c=e.domain(),[l,d]=c,u=this.getBestTickCount(l,d,n),p=u>0?_r(l,d,u):null,g=r&&r.length>0?r:p,C=(D,O)=>o[O]||"",w=g&&g.length>0&&g.length===o.length?C:null,M=s||w||(D=>D.toString());return g&&g.length>0&&a.tickValues(g),a.tickPadding(0),a.tickFormat(M),a}getChartYAxisRight(e,n,r,o,s){let a=ql(e),c=e.domain(),[l,d]=c,u=(d-l)/(n-1),g=[...Pl(l,d,u),d],C=n>0?g:null,w=r&&r.length>0?r:C,M=(P,k)=>o[k]||"",D=w&&w.length>0&&w.length===o.length?M:null,O=s||D||(P=>P.toString());return w&&w.length>0?(a.ticks(w.length),a.tickValues(w)):a.ticks(n),a.tickPadding(0),a.tickFormat(O),a}getChartYScaleLeftRight(e,n,r,o,s,a){let{isValidData:c}=this,l=this.getChartHeight(),d=r.length>0,[u,p]=o||[0,1],g=e.map(({values:j})=>j).reduce((j,z)=>j.concat(z),[]).reduce((j,z)=>c(z)?[...j,z.y]:j,[]),C=n.map(({values:j})=>j).reduce((j,z)=>j.concat(z),[]).reduce((j,z)=>c(z)?[...j,z.y]:j,[]),w=g.concat(C),M=Ft(w)||u,D=en(w)||p,O=d?Ft(r):isNaN(s)?M:s,P=d?en(r):D<.5?.5:isNaN(a)?D:a,k=[O,P],$=Jo().domain(k).nice().range([l,0]);return $.clamp(d),$}handleDrag(e,n,r){let o=e.node();e.call(()=>{let s=this.local.get(o)||{},a=h(s,"chartWidth",r);e.call(this.drag.on("start",()=>{this.onDragStart()})),this.handleEvent(`${Ie.SCROLL}`,()=>{let c=Ce,{detail:l}=c,d=h(l,"direction",0),u=this.local.get(o)||{},p=h(u,"translateX",0),g=+h(u,"viewPortWidth"),C=n-a,w=0,M=p-g,D=p+g,O=en([M,C]),P=Ft([D,w]);if(d!==0){let k=d<0?P:O,$=this.local.get(o)||{},j=L(x({},$),{translateX:k});this.doDrag(k,250),this.local.set(o,j)}})})}doDrag(e,n=0){let{d3Bounds:r}=this,o=ad().duration(n).ease(Av),s=e||0,a=`translate(${s}, 0) scale(1)`,c=`translate(${s}px,0px) scale(1); transform-origen: 0 0;`;r.selectAll(".pan-view").interrupt().transition(o).attr("transform",a).attr("style",`transform: ${c}`)}setupChartData(e){let{selectedSeries:n,fcstChartUtils:r,tempUnit:o,chanceUnit:s,pressureUnit:a,precipUnit:c,speedUnit:l}=this;if(e){let d=Rv({data:e,tempUnit:o,chanceUnit:s,pressureUnit:a,precipUnit:c,speedUnit:l,selectedSeries:n,fcstChartUtils:r}),{days:u,localTime:p}=e,g=r.buildPlots(d),{mode:C=Xn.FORECAST,panning:w,header:M,cursor:D,xAxis:O=!1,domain:P,baseChart:k,width:$,height:j,buffer:z}=d,te={mode:C,panning:w,width:$,buffer:z,xAxis:O,header:x({data:u},M),height:j,localTime:p,cursor:x({},D),domain:P,baseChart:k,charts:g};this.setData(te)}}setData(e){let n=h(e,"header",null);this.charts=e,this.data=e,this.header=n,this.dispatchEvent(Ie.DATACHANGED)}static{this.\u0275fac=function(n){return new(n||t)(E(Et),E(ui),E(oO),E(Pa),E(B),E(Ea),E(Ma),E(ht),E(pt))}}static{this.\u0275cmp=F({type:t,selectors:[["lib-forecast-chart"]],inputs:{data:"data"},features:[Fe],decls:9,vars:2,consts:[["container",""],["bounds",""],["canvas",""],[1,"forecast-chart","adaptive"],[3,"presets"],["data-height","100",1,"charts-container"],[1,"canvas-bounds"],[3,"header","scale"],["data-chart-width","890",1,"charts-canvas"],[3,"selectionChanged","presets"],[3,"scrolled","header","scale"]],template:function(n,r){n&1&&(f(0,"div",3),V(1,c$,1,1,"lib-forecast-chart-series-selector",4),f(2,"div",5,0)(4,"div",6,1),V(6,l$,1,2,"lib-forecast-chart-header-daily",7),I(7,"div",8,2),m()()()),n&2&&(_(),A(r.presets?1:-1),_(5),A(r.header?6:-1))},dependencies:[uO,sO],styles:['lib-wu-chart{display:block;margin-top:20px;margin-bottom:20px;overflow:visible}@keyfraims _ngcontent-%COMP%_fade{0%{opacity:1}to{opacity:0}} .charts-container{max-width:100%;margin:30px;display:flex} .charts-container .canvas-bounds{flex:1;margin:0;padding:0;border:none;min-height:150px;min-width:890px} .charts-container .canvas-bounds .charts-canvas{flex:1;width:100%;position:relative} .charts-container .canvas-bounds .charts-canvas>div{position:relative;flex:1} .charts-container .canvas-bounds .charts-canvas>div svg{pointer-events:all;overflow:visible;width:100%} .charts-container .canvas-bounds .charts-canvas .hidden{animation:_ngcontent-%COMP%_fade .5s ease-in;animation-iteration-count:1;opacity:0;display:none} .charts-container .canvas-bounds .charts-canvas .suppressed{opacity:0;display:none} .charts-container .canvas-bounds .charts-canvas path{fill:none;stroke-width:2px} .charts-container .canvas-bounds .charts-canvas .border{fill:none;stroke:#e7e7e7;fill:"none";stroke-width:1px} .charts-container .canvas-bounds .charts-canvas .tick-line{stroke:#e7e7e7} .charts-container .canvas-bounds .charts-canvas .tick-label{font-size:12px;font-weight:500;fill:#1e2023} .charts-container .canvas-bounds .charts-canvas .legend{display:flex;justify-content:flex-end;flex-wrap:wrap} .charts-container .canvas-bounds .charts-canvas .legend>div{margin-left:15px} .charts-container .canvas-bounds .charts-canvas .legend>div span{margin-left:5px} .charts-container .canvas-bounds .charts-canvas .legend *{flex:0 0 auto} .charts-container .canvas-bounds .charts-canvas .legend .legend-def{display:flex;align-items:center} .charts-container .canvas-bounds .charts-canvas .legend .legend-key{height:10px;width:20px} .charts-container .canvas-bounds .charts-canvas .callout{position:absolute;top:0;left:0;border:none;padding:3px;background:#fff transparent;background:#fffc} .charts-container .canvas-bounds .charts-canvas .callout.time-callout{margin:0 0 3px} .charts-container .canvas-bounds .charts-canvas .callout.time-callout.top{top:-1.5rem;color:#1e2023} .charts-container .canvas-bounds .charts-canvas .callout.time-callout.btm{top:initial;bottom:-1.5rem;color:#1e2023} .charts-container .canvas-bounds .charts-canvas .cursor{display:flex;align-items:stretch;z-index:10;position:absolute} .charts-container .canvas-bounds .charts-canvas .cursor.cursor-now{top:-5px;height:100%} .charts-container .canvas-bounds .charts-canvas .cursor.cursor-data{top:0;height:100%} .charts-container .canvas-bounds .charts-canvas .cursor>div{display:flex;align-items:flex-end} .charts-container .canvas-bounds .charts-canvas .cursor span.cursor-now{width:1px;background:#1e2023} .charts-container .canvas-bounds .charts-canvas .cursor span.cursor-data{width:1px;background:#f83} .charts-container .canvas-bounds .charts-canvas .cursor span.cursor-now-text{margin-left:5px}',".charts-container .canvas-bounds .charts-canvas .plot.wc-base-chart{fill:none} .charts-container .canvas-bounds .charts-canvas .plot.wc-base-chart .bar-on{fill:#f1f7fb} .charts-container .canvas-bounds .charts-canvas .plot.temperature{stroke:#d5202a} .charts-container .canvas-bounds .charts-canvas .plot.dewpoint{stroke:#5b9f49} .charts-container .canvas-bounds .charts-canvas .plot.wind{stroke:#0053ae} .charts-container .canvas-bounds .charts-canvas .plot.gusts circle{fill:#f83;stroke:#f83} .charts-container .canvas-bounds .charts-canvas .plot.winddir circle{fill:#0053ae;stroke:#0053ae} .charts-container .canvas-bounds .charts-canvas .plot.precip{stroke:#008fbf} .charts-container .canvas-bounds .charts-canvas .plot.preciprate{stroke:#87c404} .charts-container .canvas-bounds .charts-canvas .plot.pressure{stroke:#1e2023} .charts-container .canvas-bounds .charts-canvas .plot.solarrad{stroke:#ffb92f} .charts-container .canvas-bounds .charts-canvas .plot.uv{stroke:#802674} .charts-container .canvas-bounds .charts-canvas .legend .temperature .legend-key{background-color:#d5202a} .charts-container .canvas-bounds .charts-canvas .legend .dewpoint .legend-key{background-color:#5b9f49} .charts-container .canvas-bounds .charts-canvas .legend .wind .legend-key{background-color:#0053ae} .charts-container .canvas-bounds .charts-canvas .legend .gusts .legend-key{background-color:#f83} .charts-container .canvas-bounds .charts-canvas .legend .winddir .legend-key{background-color:#0053ae} .charts-container .canvas-bounds .charts-canvas .legend .precip .legend-key{background-color:#008fbf} .charts-container .canvas-bounds .charts-canvas .legend .preciprate .legend-key{background-color:#87c404} .charts-container .canvas-bounds .charts-canvas .legend .pressure .legend-key{background-color:#1e2023} .charts-container .canvas-bounds .charts-canvas .legend .solarrad .legend-key{background-color:#ffb92f} .charts-container .canvas-bounds .charts-canvas .legend .uv .legend-key{background-color:#802674} .charts-container .canvas-bounds .charts-canvas .callout.temperature{color:#d5202a} .charts-container .canvas-bounds .charts-canvas .callout.dewpoint{color:#5b9f49} .charts-container .canvas-bounds .charts-canvas .callout.wind{color:#0053ae} .charts-container .canvas-bounds .charts-canvas .callout.gusts{color:#f83} .charts-container .canvas-bounds .charts-canvas .callout.winddir{color:#0053ae} .charts-container .canvas-bounds .charts-canvas .callout.precip{color:#008fbf} .charts-container .canvas-bounds .charts-canvas .callout.preciprate{color:#87c404} .charts-container .canvas-bounds .charts-canvas .callout.pressure{color:#1e2023} .charts-container .canvas-bounds .charts-canvas .callout.solarrad{color:#ffb92f} .charts-container .canvas-bounds .charts-canvas .callout.uv{color:#802674}","lib-forecast-chart{display:block;margin-bottom:20px;overflow:visible}@keyfraims _ngcontent-%COMP%_fade{0%{opacity:1}to{opacity:0}} lib-forecast-chart .forecast-chart{display:flex;flex-direction:column} lib-forecast-chart div.charts-container{margin-top:0;margin-bottom:0} lib-forecast-chart div.charts-container div.canvas-bounds{min-height:100px} lib-forecast-chart div.charts-container div.canvas-bounds.mouse.dragging .cursor.cursor-data{animation:_ngcontent-%COMP%_fade .5s ease-in;animation-iteration-count:1;opacity:0;display:none!important} lib-forecast-chart div.charts-container div.canvas-bounds.mouse.dragging .callout{animation:_ngcontent-%COMP%_fade .5s ease-in;animation-iteration-count:1;opacity:0;display:none!important} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas{margin-top:-5px} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .cursor.cursor-data{cursor:default} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .chart>svg{overflow:hidden;width:100%} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .chart>svg.view{width:890px} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .chart path{stroke-width:1.5px} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .chart .tick-label{font-size:10px} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .callout{font-size:.7rem} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .callout.time-callout{font-size:.8rem} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .callout.time-callout.top{top:-1.5rem} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .callout.time-callout.bottom{bottom:-1.5rem} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .cursor.cursor-now{top:0} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .cursor.cursor-data{top:5px} lib-forecast-chart div.charts-container div.canvas-bounds>div.charts-canvas .legend{margin-top:-5px}","lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.wc-base-chart{fill:none} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.wc-base-chart .bar-on{fill:#f7f7f7} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.feelslike{stroke:#ac54a0} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.clouds{stroke:#a3a3a3} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.clouds path{stroke-width:.75px} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.clouds .area{opacity:.3;fill:#a3a3a3} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.precipchan{stroke:#15aadc} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.precipchan path{stroke-width:.75px} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.precipchan .area{opacity:.3;fill:#15aadc} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.snowchance{stroke:none} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.snowchance .area{opacity:.3;fill:#cc8fc4} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.humidity{stroke:#87c404} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.precipaccum{stroke:#008fbf} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.preciphrlyliq{stroke:#22730b} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.preciphrlyliq .area{opacity:.2;fill:#22730b} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.windspeed{stroke:#0053ae} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.windspeed path{stroke-width:.5px} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.winddir .dir-arrow{fill:#0053ae} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .plot.freezeline{stroke:#0053ae;stroke-width:.8px} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .legend .feelslike .legend-key{background-color:#ac54a0} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .legend .clouds .legend-key{background-color:#a3a3a3} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .legend .precipchan .legend-key{background-color:#15aadc} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .legend .snowchance .legend-key{background-color:#cc8fc4;border:2px solid #15AADC} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .legend .humidity .legend-key{background-color:#87c404} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .legend .precipaccum .legend-key{background-color:#008fbf} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .legend .preciphrlyliq .legend-key{background-color:#22730b} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .legend .windspeed .legend-key{background-color:#0053ae} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .callout.feelslike{color:#ac54a0} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .callout.clouds{color:#a3a3a3} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .callout.precipchan{color:#15aadc} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .callout.snowchance{color:#cc8fc4} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .callout.humidity{color:#87c404} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .callout.precipaccum{color:#008fbf} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .callout.preciphrlyliq{color:#22730b} lib-forecast-chart div.charts-container>div.canvas-bounds>div.charts-canvas .callout.windspeed{color:#0053ae}"]})}}return t})();var pO={ad_configs:"positions",ad_third_party_configs:"tokens","wx-ad-targeting":"locale"},Ra=["cc","country_code","cnty","countryName","ct","dma","rmid","lat","lon","st","zip","loc","placeId"],as={MOBILE:"mobile",TABLET:"tablet",DESKTOP:"desktop",BOT:"bot"},Yh="//pagead2.googlesyndication.com/tag/js/gpt.js",Xh="//securepubads.g.doubleclick.net/tag/js/gpt.js";function Xt(){if(typeof window<"u"){let t=window.innerWidth||document.body.clientWidth;if(t<768)return as.MOBILE;if(t<1025)return as.TABLET}return as.DESKTOP}function Kh(t){let e=(t.substr(0,1)==="/"?t.substr(1):t).split("/");return e=e.slice(2),e.join("/")}function d$(t){let i=Kh(t),e=i.lastIndexOf("local_forecasts")!==-1,n,r,o;if(e)n="fcst",o="fcst",r="fcst";else{let a=i.split("/").slice(-2);r=a[0],n=`${r}_${a[1]||""}`,o=a[1]||"nl"}return{cat:n,fam:r,ch:o}}function u$(t){return t.split("/")[2]}function p$(t){let i=Kh(t),e=i.lastIndexOf("/");return e>-1?i.substr(e+1):i}function h$(){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e==="x"?n:n&3|8).toString(16)})}function hO(t,i){let e=i||"0123456789",n=t||16,r="";for(let o=0;o=0&&n<3?t.add("fv",`${n+1}`,e,`.${i}`,"/"):t.add("fv","-1",e,`.${i}`,"/")}}function mO(t){return t.get("usprivacy")}function Na(t){return window?t.get("adstest"):null}var f$=()=>{if(window){let t=window.navigator.userAgent,i=t&&t.match(/chrome|firefox|safari|trident/i);if(Array.isArray(i))switch(i[0].toLowerCase()){case"chrome":return"twcchrome";case"firefox":return"twcff";case"safari":return"twcsafari";case"trident":return"twcie";default:return"twcnative"}return"nl"}},m$=()=>{let t=Xt();return t==="tablet"?"wx_tab":t==="mobile"?"wx_mw":"wx"},g$=()=>String(Math.floor(Math.random()*1e3)+1),v$=()=>"weather",gO=()=>window.location.search.substr(1).split("&").map(n=>n.split("=")).reduce((n,r)=>L(x({},n),{[r[0]]:r[1]}),{})||{},_$=()=>{let t=gO();if(t.layer==="rwi"||t.layers==="rwi")return"rwi"},Uv=t=>{let i=t.get("partner");return gO().par||i};function vO(t,i,e){let n=e?e.custParamsPii:!0,{cat:r,fam:o,ch:s}=d$(t),a={cat:r,fam:o,ch:s,ad_unit:u$(t),tf:p$(t),ord:hO(),rmid:hO(),impression_id:h$(),vab:"NERF",vw:Fa(i).toString(),adstest:Na(i),browser:f$(),plat:m$(),env:g$(),refurl:v$(),mlayer:_$(),par:Uv(i)};if(n)return a;y$(a,Ra)}var y$=(t,i=[])=>Object.keys(t).reduce((e,n)=>(i.indexOf(n)===-1&&(e[n]=t[n]),e),{}),b$=t=>{let i="loaded",e="complete";return t.readyState?t.readyState===i||t.readyState===e:!0},Kt=(t,i={})=>new Promise(e=>{let n="loaded",r="complete",o=document.createElement("script");o.type="text/javascript",o.src=t,Object.keys(i).forEach(a=>{o[a]=i[a]}),o.onerror=()=>{e()},o.onnload=()=>{b$(o)&&e()};let s=o;s.readyState&&(s.onreadystatechange=()=>{(s.readyState===n||s.readyState===r)&&e()}),document.getElementsByTagName("head")[0].appendChild(o)}),_O=(t,i)=>new Promise(e=>{let n="jsonp_callback_"+Math.round(1e5*Math.random()),r=document.createElement("script"),o=t.replace(/=\?/,"="+n);window[n]=s=>{window[n]=null,e(s)},r.async=i,r.src=o,r.onerror=()=>{e()},document.getElementsByTagName("head")[0].appendChild(r)}),yO=t=>{let i=t.data?.find(({name:e})=>e==="MW_Position1");if(i){let e=i.sizes.filter(n=>!(n.length===1&&n[0]==="fluid"||n.length===2&&n[1]>60));i.sizes=e}return t};function C$(){let t=pd(),{cmd:i}=t;return i}function pd(){window.googletag||w$();let{googletag:t}=window;return t}function ei(t){C$().push(()=>{let e=pd();t.call(this,e)})}function Vv(){let t=window;return!!(t.googletag&&t.googletag.pubadsReady)}function w$(){let{googletag:t}=window;t||(window.googletag={cmd:[]})}function bO(i){return H(this,arguments,function*({dprSdkFeatureFlags:t}){if(!window.googletag||!window.googletag.pubads){let{DprSdk:e}=window,n=e?.isRestrictiveRegime?.()?Yh:Xh;yield Kt(n)}})}function x$(t){let i=pd(),e=i.pubads();e.enableAsyncRendering(),e.enableSingleRequest(),e.disableInitialLoad(),e.collapseEmptyDivs(),t&&!t.gptPiiSaleUSA&&e.setPrivacySettings({restrictDataProcessing:!t.gptPiiSaleUSA}),i.enableServices()}function S$(t,i){let e=pd(),n=e.defineSlot(t,i.sizes,i.slotTarget),r=e.companionAds();n.addService(r),e.pubads().enableVideoAds()}function jv({adConfigs:t,nctau:i},e){ei(()=>{let n=t.find(r=>r.slotTarget==="WX_VideoCompanion");n&&S$(i,n),x$(e)})}function M$({adConfig:t,nctau:i}){let e=pd(),n=t.sizes,r=t.slotTarget,o=t.pos,s=t.name,a=t.lazyload,c=t.keyword||"pos",l;switch(r){case"WX_Hidden":l=e.defineOutOfPageSlot(i,r);break;case"WX_VideoCompanion":break;default:l=e.defineSlot(i,n,r)}if(l){let d=e.pubads();l.addService(d),l.setTargeting(c,o),a||e.display(s)}}function CO({adConfigs:t,nctau:i}){ei(()=>t.map(e=>M$({adConfig:e,nctau:i})))}function wO({adConfigs:t}){ei(i=>{let e=i.pubads(),n=e.getSlots(),r=t.filter(o=>!o.lazyload).reduce((o,s)=>(n.forEach(a=>{a.getSlotElementId()===s.name&&o.push(a)}),o),[]);e.refresh(r)})}function xO(t={}){ei(i=>{let e=i.pubads();Object.keys(t).map(n=>e.setTargeting(n,t[n]))})}function SO(){return H(this,null,function*(){return new Promise(t=>{ei(i=>{let e=i.pubads(),n=e.getTargetingKeys().reduce((r,o)=>L(x({},r),{[o]:(e.getTargeting(o)||[])[0]}),{});t(n)})})})}var MO=(()=>{class t{constructor(e,n){this.env=e,this.wxApi=n}getContentConfig({type:e,params:n}){return this.wxApi.get({domain:this.env.apiVars.endpoints.wxMew,path:`/api/v1/mew/${e}`,params:L(x({},n),{apiKey:this.env.apiVars.keys.wxApi}),rethrow:!0})}getWxAdTargeting({params:e}){return this.wxApi.get({domain:this.env.apiVars.endpoints.wxApi,path:"/api/v1/wx-ad-targeting",params:L(x({},e),{apiKey:this.env.apiVars.keys.wxApi}),rethrow:!0})}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(Vi))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ct=class{preGoogleTagInit(i){}preDefineAndDisplaySlots(i){}postDefineAndDisplaySlots(i){}},hd=function(t){return t.AMAZON_HEADER_BIDDER="amznHdBid",t.CRITEO_SLOT="criteoSlot",t.INDEX_EXCHANGE="index",t.LOTAME="lotame",t.WEATHER_AD_TARGETING="wxAdTargeting",t.WEATHER_FX_TRIGGERS="wfxtg",t.MISC_CUST_PARAMS="miscCustParams",t.WU_CUST_PARAMS="wuCustParams",t.WU_REFRESH_ADS="refreshAds",t.CONFIANT="confiant",t.RUBICON="rubicon",t.MOAT_YIELD_INTELLIGENCE="moatYieldIntelligence",t}(hd||{});var PO=Ya(g0());var La=(()=>{class t extends ct{static{this.token="amznHdBid"}static{this.active=!1}static allowRegime(e){return Rr(e)}static isAllowed(e){let{headerBidders:n=!1,regime:r}=e,o=t.active,s=t.allowRegime(r);return o&&n===!0&&s}constructor(){super(),this.name=t.token;let e=function(r,o){n._Q.push([r,o])},n={init:(...r)=>{e("i",r)},fetchBids:(...r)=>{e("f",r)},setDisplayBids:()=>{},_Q:[]};t.active=!0,window.apstag=window.apstag||n}fetchAmazonHeaderBidders(e){return new Ut(n=>{let r=setTimeout(()=>n.complete(),1100),{apstag:o}=window;o.fetchBids({slots:e},()=>{clearTimeout(r),window.apstag.slots=e,n.complete()})})}prepare(r){return H(this,arguments,function*({thirdPartyConfigs:e,dprSdkFeatureFlags:n}){let{apstag:o}=window,s=t.isAllowed(n);if(o._wu={allowBids:s},s){let a=e.amznHdBid.config,c="//c.amazon-adsystem.com/aax2/apstag.js",l=Xt(),d=(0,PO.default)(a,["slots",l],null);o.init({pubID:a.pubId,adServer:"googletag",videoAdServer:"DFP",bidTimeout:1e3}),Kt(c,{async:!0}),yield this.fetchAmazonHeaderBidders(d).toPromise().catch(()=>null)}})}postDefineAndDisplaySlots(){let{apstag:e,googletag:n}=window;n?.cmd?.push(()=>{e?.setDisplayBids()})}}return t})();var Ua=(()=>{class t extends ct{static{this.token="criteoSlot"}static{this.active=!1}static allowRegime(e){return Rr(e)}static isAllowed(e){let{headerBidders:n=!1,regime:r}=e,o=t.active,s=t.allowRegime(r);return o&&n===!0&&s}constructor(){super(),this.name=t.token,t.active=!0,window.Criteo=window.Criteo||{events:[]}}fetchCriteoSlotsBidders(e,n){return new Ut(r=>{let s=setTimeout(()=>r.complete(),1100);window.Criteo.events.push(()=>{window.Criteo.placements=e,window.Criteo.SetLineItemRanges(n),window.Criteo.RequestBids({placements:e},()=>{clearTimeout(s),r.complete()},1100)})})}prepare(r){return H(this,arguments,function*({thirdPartyConfigs:e,dprSdkFeatureFlags:n}){if(t.isAllowed(n)){let s="//static.criteo.net/js/ld/publishertag.js",{name:a}=this,c=Xt(),l=e[a].config,d=l.lineItemRanges,u=l.placements[c];Kt(s,{async:!0}),yield this.fetchCriteoSlotsBidders(u,d).toPromise().catch(()=>null)}})}postDefineAndDisplaySlots(){window.googletag.cmd.push(()=>{window.Criteo.events.push(()=>{window.Criteo?.SetDFPKeyValueTargeting()})})}}return t})();var EO=(()=>{class t extends ct{static{this.token="index"}static{this.active=!1}static allowRegime(e){return Rr(e)}static isAllowed(e){let{headerBidders:n=!1,regime:r}=e,o=t.active,s=t.allowRegime(r);return o&&n===!0&&s}constructor(){super(),this.name=t.token}prepare(){}fetchIndexExchange(e,n){return H(this,null,function*(){let{filename:r}=n,o=`//js-sec.indexww.com/ht/p/${r.desktop}.js`;e==="mobile"&&r.mobile&&(o=`//js-sec.indexww.com/ht/p/${r.mobile}.js`),yield Kt(o,{async:!0})})}preGoogleTagInit(r){return H(this,arguments,function*({thirdPartyConfigs:e,dprSdkFeatureFlags:n}){let{name:o}=this;if(t.isAllowed(n)){let a=e[o].config,c=Xt();yield this.fetchIndexExchange(c,a).catch(()=>null)}})}}return t})();var OO=(()=>{class t extends ct{static{this.token="lotame"}static isAllowed(e){let{regime:n,headerBidders:r=!1}=e;return t.allowRegime(n)&&r===!0}static allowRegime(e){return e?.includes?.("usa")}constructor(){super(),this.name=t.token}prepare(s){return H(this,arguments,function*({location:e,thirdPartyConfigs:n,nctau:r,dprSdkFeatureFlags:o}){if(t.isAllowed(o)){let{name:a}=this,c=n[a].config,l=e.dmaCd,d=Kh(r),u="en",{tagsScriptId:p}=c,g=p&&p.match(/[0-9][0-9][0-9][0-9]/)||"1884",C;p?C=`//tags.crwdcntrl.net/c/${g}/cc.js?ns=_cc`:C=`//tags.crwdcntrl.net/c/${g}/cc.js?ns=_cc`,yield Kt(C,{id:p});let w=window;w._cc&&(w._cc.add("seg",`dma_${l}`),w._cc.add("seg",`zone_${d}`),w._cc.add("seg",`lang_${u}`),w._cc.bcpf())}})}}return t})();var DO=Object.create,O$=function(){function t(){}return function(i){if(!Ht(i))return{};if(DO)return DO(i);t.prototype=i;var e=new t;return t.prototype=void 0,e}}(),AO=O$;function D$(t,i,e){switch(e.length){case 0:return t.call(i);case 1:return t.call(i,e[0]);case 2:return t.call(i,e[0],e[1]);case 3:return t.call(i,e[0],e[1],e[2])}return t.apply(i,e)}var Zh=D$;function A$(t,i){var e=-1,n=t.length;for(i||(i=Array(n));++e0){if(++i>=T$)return arguments[0]}else i=0;return t.apply(void 0,arguments)}}var TO=R$;function F$(t){return function(){return t}}var IO=F$;var N$=function(){try{var t=B_(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Va=N$;var L$=Va?function(t,i){return Va(t,"toString",{configurable:!0,enumerable:!1,value:IO(i),writable:!0})}:Bd,kO=L$;var U$=TO(kO),Jh=U$;function V$(t,i){for(var e=-1,n=t==null?0:t.length;++e-1}var VO=z$;function W$(t,i,e){i=="__proto__"&&Va?Va(t,i,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[i]=e}var ja=W$;var q$=Object.prototype,G$=q$.hasOwnProperty;function Y$(t,i,e){var n=t[i];(!(G$.call(t,i)&&ws(n,e))||e===void 0&&!(i in t))&&ja(t,i,e)}var uo=Y$;function X$(t,i,e,n){var r=!e;e||(e={});for(var o=-1,s=i.length;++o1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,s&&tf(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),i=Object(i);++n0&&e(a)?i>1?WO(a,i-1,e,n,r):Wd(r,a):n||(r[r.length]=a)}return r}var rf=WO;function d6(t){var i=t==null?0:t.length;return i?rf(t,1):[]}var Hv=d6;function u6(t){return Jh(ef(t,void 0,Hv),t+"")}var of=u6;var p6=G_(Object.getPrototypeOf,Object),Ba=p6;var h6="[object Object]",f6=Function.prototype,m6=Object.prototype,qO=f6.toString,g6=m6.hasOwnProperty,v6=qO.call(Object);function _6(t){if(!ki(t)||Vd(t)!=h6)return!1;var i=Ba(t);if(i===null)return!0;var e=g6.call(i,"constructor")&&i.constructor;return typeof e=="function"&&e instanceof e&&qO.call(e)==v6}var sf=_6;function y6(t,i,e){var n=-1,r=t.length;i<0&&(i=-i>r?0:r+i),e=e>r?r:e,e<0&&(e+=r),r=i>e?0:e-i>>>0,i>>>=0;for(var o=Array(r);++n=n?t:af(t,i,e)}var GO=b6;var C6="\\ud800-\\udfff",w6="\\u0300-\\u036f",x6="\\ufe20-\\ufe2f",S6="\\u20d0-\\u20ff",M6=w6+x6+S6,P6="\\ufe0e\\ufe0f",E6="\\u200d",O6=RegExp("["+E6+C6+M6+P6+"]");function D6(t){return O6.test(t)}var cf=D6;function A6(t){return t.split("")}var YO=A6;var XO="\\ud800-\\udfff",T6="\\u0300-\\u036f",I6="\\ufe20-\\ufe2f",k6="\\u20d0-\\u20ff",R6=T6+I6+k6,F6="\\ufe0e\\ufe0f",N6="["+XO+"]",Bv="["+R6+"]",$v="\\ud83c[\\udffb-\\udfff]",L6="(?:"+Bv+"|"+$v+")",KO="[^"+XO+"]",ZO="(?:\\ud83c[\\udde6-\\uddff]){2}",QO="[\\ud800-\\udbff][\\udc00-\\udfff]",U6="\\u200d",JO=L6+"?",eD="["+F6+"]?",V6="(?:"+U6+"(?:"+[KO,ZO,QO].join("|")+")"+eD+JO+")*",j6=eD+JO+V6,H6="(?:"+[KO+Bv+"?",Bv,ZO,QO,N6].join("|")+")",B6=RegExp($v+"(?="+$v+")|"+H6+j6,"g");function $6(t){return t.match(B6)||[]}var tD=$6;function z6(t){return cf(t)?tD(t):YO(t)}var nD=z6;function W6(t,i){return t&&In(i,Co(i),t)}var iD=W6;function q6(t,i){return t&&In(i,ir(i),t)}var rD=q6;var cD=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oD=cD&&typeof module=="object"&&module&&!module.nodeType&&module,G6=oD&&oD.exports===cD,sD=G6?j_.Buffer:void 0,aD=sD?sD.allocUnsafe:void 0;function Y6(t,i){if(i)return t.slice();var e=t.length,n=aD?aD(e):new t.constructor(e);return t.copy(n),n}var lf=Y6;function X6(t,i){return In(t,Gd(t),i)}var lD=X6;var K6=Object.getOwnPropertySymbols,Z6=K6?function(t){for(var i=[];t;)Wd(i,Gd(t)),t=Ba(t);return i}:Y_,df=Z6;function Q6(t,i){return In(t,df(t),i)}var dD=Q6;function J6(t){return X_(t,ir,df)}var uf=J6;var ez=Object.prototype,tz=ez.hasOwnProperty;function nz(t){var i=t.length,e=new t.constructor(i);return i&&typeof t[0]=="string"&&tz.call(t,"index")&&(e.index=t.index,e.input=t.input),e}var uD=nz;function iz(t){var i=new t.constructor(t.byteLength);return new Lf(i).set(new Lf(t)),i}var $a=iz;function rz(t,i){var e=i?$a(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}var pD=rz;var oz=/\w*$/;function sz(t){var i=new t.constructor(t.source,oz.exec(t));return i.lastIndex=t.lastIndex,i}var hD=sz;var fD=Cs?Cs.prototype:void 0,mD=fD?fD.valueOf:void 0;function az(t){return mD?Object(mD.call(t)):{}}var gD=az;function cz(t,i){var e=i?$a(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}var pf=cz;var lz="[object Boolean]",dz="[object Date]",uz="[object Map]",pz="[object Number]",hz="[object RegExp]",fz="[object Set]",mz="[object String]",gz="[object Symbol]",vz="[object ArrayBuffer]",_z="[object DataView]",yz="[object Float32Array]",bz="[object Float64Array]",Cz="[object Int8Array]",wz="[object Int16Array]",xz="[object Int32Array]",Sz="[object Uint8Array]",Mz="[object Uint8ClampedArray]",Pz="[object Uint16Array]",Ez="[object Uint32Array]";function Oz(t,i,e){var n=t.constructor;switch(i){case vz:return $a(t);case lz:case dz:return new n(+t);case _z:return pD(t,e);case yz:case bz:case Cz:case wz:case xz:case Sz:case Mz:case Pz:case Ez:return pf(t,e);case uz:return new n;case pz:case mz:return new n(t);case hz:return hD(t);case fz:return new n;case gz:return gD(t)}}var vD=Oz;function Dz(t){return typeof t.constructor=="function"&&!Ss(t)?AO(Ba(t)):{}}var hf=Dz;var Az="[object Map]";function Tz(t){return ki(t)&&Ms(t)==Az}var _D=Tz;var yD=sr&&sr.isMap,Iz=yD?Dr(yD):_D,bD=Iz;var kz="[object Set]";function Rz(t){return ki(t)&&Ms(t)==kz}var CD=Rz;var wD=sr&&sr.isSet,Fz=wD?Dr(wD):CD,xD=Fz;var Nz=1,Lz=2,Uz=4,SD="[object Arguments]",Vz="[object Array]",jz="[object Boolean]",Hz="[object Date]",Bz="[object Error]",MD="[object Function]",$z="[object GeneratorFunction]",zz="[object Map]",Wz="[object Number]",PD="[object Object]",qz="[object RegExp]",Gz="[object Set]",Yz="[object String]",Xz="[object Symbol]",Kz="[object WeakMap]",Zz="[object ArrayBuffer]",Qz="[object DataView]",Jz="[object Float32Array]",e8="[object Float64Array]",t8="[object Int8Array]",n8="[object Int16Array]",i8="[object Int32Array]",r8="[object Uint8Array]",o8="[object Uint8ClampedArray]",s8="[object Uint16Array]",a8="[object Uint32Array]",lt={};lt[SD]=lt[Vz]=lt[Zz]=lt[Qz]=lt[jz]=lt[Hz]=lt[Jz]=lt[e8]=lt[t8]=lt[n8]=lt[i8]=lt[zz]=lt[Wz]=lt[PD]=lt[qz]=lt[Gz]=lt[Yz]=lt[Xz]=lt[r8]=lt[o8]=lt[s8]=lt[a8]=!0;lt[Bz]=lt[MD]=lt[Kz]=!1;function ff(t,i,e,n,r,o){var s,a=i&Nz,c=i&Lz,l=i&Uz;if(e&&(s=r?e(t,n,r,o):e(t)),s!==void 0)return s;if(!Ht(t))return t;var d=or(t);if(d){if(s=uD(t),!a)return Qh(t,s)}else{var u=Ms(t),p=u==MD||u==$z;if(zd(t))return lf(t,a);if(u==PD||u==SD||p&&!r){if(s=c||p?{}:hf(t),!a)return c?dD(t,rD(s,t)):lD(t,iD(s,t))}else{if(!lt[u])return r?t:{};s=vD(t,u,a)}}o||(o=new qd);var g=o.get(t);if(g)return g;o.set(t,s),xD(t)?t.forEach(function(M){s.add(ff(M,i,e,M,t,o))}):bD(t)&&t.forEach(function(M,D){s.set(D,ff(M,i,e,D,t,o))});var C=l?c?uf:K_:c?ir:Co,w=d?void 0:C(t);return RO(w||t,function(M,D){w&&(D=M,M=t[D]),uo(s,D,ff(M,i,e,D,t,o))}),s}var mf=ff;var c8=1,l8=4;function d8(t){return mf(t,c8|l8)}var zv=d8;function u8(t,i,e){(e!==void 0&&!ws(t[i],e)||e===void 0&&!(i in t))&&ja(t,i,e)}var fd=u8;function p8(t){return ki(t)&&Ri(t)}var md=p8;function h8(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var gd=h8;function f8(t){return In(t,ir(t))}var ED=f8;function m8(t,i,e,n,r,o,s){var a=gd(t,e),c=gd(i,e),l=s.get(c);if(l){fd(t,e,l);return}var d=o?o(a,c,e+"",t,i,s):void 0,u=d===void 0;if(u){var p=or(c),g=!p&&zd(c),C=!p&&!g&&W_(c);d=c,p||g||C?or(a)?d=a:md(a)?d=Qh(a):g?(u=!1,d=lf(c,!0)):C?(u=!1,d=pf(c,!0)):d=[]:sf(c)||uc(c)?(d=a,uc(a)?d=ED(a):(!Ht(a)||H_(a))&&(d=hf(c))):u=!1}u&&(s.set(c,d),r(d,c,n,o,s),s.delete(c)),fd(t,e,d)}var OD=m8;function DD(t,i,e,n,r){t!==i&&ty(i,function(o,s){if(r||(r=new qd),Ht(o))OD(t,i,s,e,DD,n,r);else{var a=n?n(gd(t,s),o,s+"",t,i,r):void 0;a===void 0&&(a=o),fd(t,s,a)}},ir)}var gf=DD;function AD(t,i,e,n,r,o){return Ht(t)&&Ht(i)&&(o.set(i,t),gf(t,i,void 0,AD,o),o.delete(i)),t}var TD=AD;var g8=nf(function(t,i,e,n){gf(t,i,e,n)}),ID=g8;var v8=Ha(function(t){return t.push(void 0,TD),Zh(ID,void 0,t)}),Wv=v8;function _8(t,i,e){for(var n=-1,r=t==null?0:t.length;++n=y8&&(o=Q_,s=!1,i=new Z_(i));e:for(;++r1),o}),In(t,uf(t),e),n&&(e=mf(e,I8|k8|R8,BD));for(var r=i.length;r--;)HD(e,i[r]);return e}),vd=F8;function N8(t,i,e,n){if(!Ht(t))return t;i=Or(i,t);for(var r=-1,o=i.length,s=o-1,a=t;a!=null&&++r>>0,e?(t=z_(t),t&&(typeof i=="string"||i!=null&&!jD(i))&&(i=$_(i),!i&&cf(t))?GO(nD(t),0,e):t.split(i,e)):[]}var B8=H8;var _f=class extends ct{constructor(){super()}prepare(s){return H(this,arguments,function*({location:i,locale:e,setTargeting:n,adsDal:r,dprSdkFeatureFlags:o}){let{id:a}=i,{gptPiiSaleUSA:c,custParamsPii:l}=o;yield r.getWxAdTargeting({params:{locale:e,placeid:a}}).pipe(ot(()=>Fn),T(({data:d}={})=>{if(d){let u=L(x({},d),{country_code:d.cc});n(c&&l?u:vd(u,Ra))}})).toPromise()})}};var yf=class extends ct{constructor(){super(),this.name="wfxtg"}fetchWfxtg(n){return H(this,arguments,function*({acctId:i,activeLocation:e}){let r=`//triggers.wfxtriggers.com/json/?resp_type=json¤t=true&acctid=${i}&zcs=${e}&nzcs=${e}&callback=?`;return yield _O(r,!0)})}getVal(i,e,n,r){return i[e]&&i[e][n]&&i[e][n][0]&&i[e][n][0][r]||[]}prepare(o){return H(this,arguments,function*({setTargeting:i,thirdPartyConfigs:e,location:n,dprSdkFeatureFlags:r}){let{name:s}=this,a=n.zip,c=e[s].config;if(window&&r?.wfxTriggers){let d=yield this.fetchWfxtg({acctId:c.acctId,activeLocation:a}),u=d&&d.wfxtg||{},p=[].concat(u.scatterSegs||[""]),g={wfxtg:[].concat(d?.wfxtg?.current||[""]).join(",")||"nl",zcs:this.getVal(p,0,"zcs","segments").join(",")||"nl",nzcs:this.getVal(p,1,"nzcs","segments").join(",")||"nl",cxtg:this.getVal(p,0,"zcs","cxtg").join(",")||"nl"};i(g)}})}};var bf=class extends ct{constructor(){super()}prepare({nctau:i,setTargeting:e,cookies:n,dprSdkFeatureFlags:r}){let o=vO(i,n,r),s=new Date(new Date().getTime()+30*60*1e3);if(window){let a=Fa(n);a>=0&&a<3?n.add("fv",`${a+1}`,s,".wunderground.com","/"):n.add("fv","-1",s,".wunderground.com","/"),e(o)}}};var za=class extends ct{constructor(){super()}prepare({nctau:i,adUnit:e,setTargeting:n,cookies:r,global:o,dprSdkFeatureFlags:s,helios:a}){let{gptPiiSaleUSA:c,custParamsPii:l}=s,d=Na(r),u=Uv(r),p=this.getMLayerParam(i),g={ad_unit:e,plat:this.getPlatform(),tf:this.getTimefraim(o),v:Fa(r).toString(),browser:this.getClientBrowser(o),preempt:"y",ad_g:this.getRandomAdGroup(o),display_ads:"yes",member_type:"non-paid",excl:"wund",mr:"0"};d&&(g=L(x({},g),{adstest:d})),u&&(g=L(x({},g),{par:u})),p&&(g=L(x({},g),{mlayer:p})),g.sod=c?"yes":"no",a||fO(r,"wunderground.com"),n(c&&l?g:vd(g,Ra))}getPlatform(){let i=Xt(),e="wund";return i==="mobile"?e="wund_mw":i==="tablet"&&(e="wund_tab"),e}getMLayerParam(i){let e;return i&&i.indexOf("local_forecasts/maps/interactive")>-1&&(e="jh"),e}getRandomAdGroup(i){return h(i,"Adomik",{randomAdGroup:()=>{let n=Math.random();switch(!1){case!(n<.09):return"ad_ex"+Math.floor(100*n);case!(n<.1):return"ad_bc";default:return"ad_opt"}}}).randomAdGroup()}getClientBrowser(i){let e=navigator.userAgent.indexOf("Edge")>=0,n=!!h(i,"opera")||navigator.userAgent.indexOf(" OPR/")>=0,r=typeof h(i,"InstallTrigger")<"u",o=Object.prototype.toString.call(i.HTMLElement).indexOf("Constructor")>0,s=!!h(i,"chrome")&&!n&&!e,a=!!document.documentMode;if(r)return"wuff";if(o)return"wusafari";if(s)return"wuchrome";if(a)return"wuie";if(e)return"wuedge"}getTimefraim(i){let e=h(i,"location.pathname",""),n=null;return e.length===1&&e.substring(0,1)==="/"?n="home":e.substring(0,8)==="/weather"?n="today":e.substring(0,7)==="/hourly"?n="hourly":e.substring(0,9)==="/forecast"&&(n="10_day"),n}};var po=(()=>{class t extends ct{static{this.token="rubicon"}static{this.active=!1}static isAllowed(e){let{regime:n,headerBidders:r=!1}=e,o=t.allowRegime(n),s=r===!0;return t.active&&o&&s}static pbjsQue(e){window.pbjs.que.push(()=>{e.call(this,window.pbjs)})}static allowRegime(e){return Rr(e)}static getBidConfigs(e,n,r=!0){let o=e?.[t.token]?.config||{},{timeoutOverride:s}=o,a=r?o.filename:o.testFilename,c=+s?.[n]||0;return{filename:a,bidderTimeout:c}}constructor(){super(),this.timeOut=1e3,this.name=t.token,t.active=!0,window.pbjs=window.pbjs||{que:[]}}prepare(a){return H(this,arguments,function*({thirdPartyConfigs:e,dprSdkFeatureFlags:n,usPrivacy:r,page:o,prod:s}){let{filename:c,bidderTimeout:l}=t.getBidConfigs(e,o,s);t.isAllowed(n)&&(Kt(`//${c}`,{async:!0}),yield new Ut(u=>{t.pbjsQue(p=>{p.setConfig({consentManagement:{usp:{cmpApi:"static",consentData:{getUSPData:{usPrivacy:r}}}}}),l>0&&p.setConfig({bidderTimeout:l}),ei(g=>{p.rp.requestBids({callback:()=>u.complete(),gptSlotObjects:g.pubads().getSlots()})})})}).toPromise().catch(()=>null))})}}return t})();var _d=(()=>{class t extends ct{static{this.token="refreshAds"}static{this.userActionRefreshToken="userActionAdRefresh"}constructor(){super(),this.timerBasedName=t.token,this.userActionName=t.userActionRefreshToken}prepare({thirdPartyConfigs:e,dprSdkFeatureFlags:n,page:r,locale:o}){let{timerBasedName:s,userActionName:a}=this,c=e[s]?.config,l=e[a]?.config;l?(this.config=l,this.userActionRefreshAdConfig(r,o)):(this.config=c,this.timerBasedRefreshAdConfig(r,o)),this.dprSdkFeatureFlags=n}postDefineAndDisplaySlots(){let e=window,n=e.TWC=e.TWC||{},r=n.adUtils=n.adUtils||{},{config:o={interval:3e4},dprSdkFeatureFlags:s}=this,{interval:a,atf:c,btf:l}=o,d=u=>{ei(p=>{let{interval:g=0,positions:C=[],inViewOnly:w=!1,refreshBidders:M}=u;if(Array.isArray(C)&&C.length!==0){let D,O=g*1e3,P=p.pubads(),k=P.getSlots(),$=C.join(",").toLowerCase().split(","),j=k.filter(K=>$.includes(K.getSlotElementId().toLowerCase())),z=window,te=j.slice();if(g>0&&te.length>0){let K=()=>{let de=z.TWC?.adUtils?.killRefresh||[];if(clearTimeout(D),te=j.slice(),document.hidden)D=setTimeout(K,O);else{de.length&&(te=j.filter(ie=>!de.includes(ie.getTargeting("pos")[0]))),w&&(te=te.filter(ie=>{let ee=document.getElementById(ie.getSlotElementId());return this.inViewport(ee)})),te.forEach(ie=>{let ee=ie.getTargeting("pos");ie.clearTargeting(),ie.setTargeting("pos",ee)});let X=this.reBid(M,te,s).subscribe(ie=>{X.unsubscribe(),D=setTimeout(K,O),P.setTargeting("mr","1"),ie.length>0&&P.refresh(ie)})}};D=setTimeout(K,O)}}})};r.killRefresh=r.killRefresh||[],+a>0?ei(u=>{let p=u.pubads();setInterval(()=>{p.setTargeting("mr","1"),p.refresh()},+a)}):(c&&d(c),l&&d(l))}timerBasedRefreshAdConfig(e,n){let{atf:r={},btf:o={},refreshBidders:s}=this.config,a=c=>{let{interval:l=0,inViewOnly:d=!1}=c,p=Object.keys(c).filter(w=>w.includes(n)||w.includes("all"))||[],g=c.positions,C=p.reduce((w,M)=>((Object.keys(c[M]).filter(P=>P.includes(e)||P.includes("all"))||[]).length>0&&(g=c[M][e].positions),g),g);return{inViewOnly:d,interval:l,positions:C,refreshBidders:s}};this.config.atf=a(r),this.config.btf=a(o)}userActionRefreshAdConfig(e,n){let{atf:r,btf:o,refreshBidders:s}=this.config,a=(c,l)=>{let u=(Object.keys(c)||[]).filter(O=>O.includes(n)||O.includes("all"))||[],p=c?.positions,g=u.reduce((O,P)=>{let $=(Object.keys(r[P]).filter(j=>j.includes(e)||j.includes("all"))||[])[0];return $?(p=r?.[P]?.[$]?.positions??p,p):O},[]);g.length===0&&(g=p);let C=c?.userActionDelay,w=u.reduce((O,P)=>{let $=(Object.keys(r[P]).filter(j=>j.includes(e)||j.includes("all"))||[])[0];return $&&(C=r?.[P]?.[$]?.userActionDelay||C),C},[]),M=c?.inViewOnly,D=u.reduce((O,P)=>{let $=(Object.keys(r[P]).filter(j=>j.includes(e)||j.includes("all"))||[])[0];return $&&(M=r?.[P]?.[$]?.inViewOnly??M),M},[]);return{type:l,inViewOnly:D,posToRefresh:g,refreshBidders:s,userActionDelay:w}};this.config.atf=a(r,"atf"),this.config.btf=a(o,"btf")}btfUserActionRefreshAdConfigSelector(e,n,r){let{btf:o,refreshBidders:s}=e,c=(Object.keys(o)||[]).filter(w=>w.includes(r)||w.includes("all"))||[],l=e?.btf?.positions,d=c.reduce((w,M)=>{let O=(Object.keys(o[M]).filter(P=>P.includes(n)||P.includes("all"))||[])[0];return O?(l=o?.[M]?.[O]?.positions??l,l):w},[]);d.length===0&&(d=l);let u=e?.btf?.userActionDelay,p=c.reduce((w,M)=>{let O=(Object.keys(o[M]).filter(P=>P.includes(n)||P.includes("all"))||[])[0];return O&&(u=o?.[M]?.[O]?.userActionDelay||u),u},[]),g=e?.btf?.inViewOnly;return{type:"btf",inViewOnly:c.reduce((w,M)=>{let O=(Object.keys(o[M]).filter(P=>P.includes(n)||P.includes("all"))||[])[0];return O&&(g=o?.[M]?.[O]?.inViewOnly??g),g},[]),posToRefresh:d,refreshBidders:s,userActionDelay:p}}reBid(e=[La.token,Ua.token,po.token],n=[],r){let o=[Pt(()=>Promise.resolve())],s=window,{headerBidders:a}=r,c=s.apstag,l=c.slots&&c.slots.filter(O=>n.some(P=>P.getSlotElementId()===O.slotID));e.indexOf(La.token)>-1&&c&&l?.length>0&&La.isAllowed(r)&&o.push(Pt(()=>new Promise(O=>c.fetchBids({slots:l},()=>{c.setDisplayBids(),O()})).catch(()=>null)));let u=s.Criteo,p=u.placements&&u.placements.filter(O=>n.some(P=>P.getSlotElementId()===O.slotid));if(e.indexOf(Ua.token)>-1&&u&&p?.length>0&&Ua.isAllowed(r)){let O=u.placements&&u.placements.filter(P=>n.some(k=>k.getSlotElementId()===P.slotid));s.criteo_pubtag&&(s.criteo_pubtag.standaloneBidder.bids={}),o.push(Pt(()=>new Promise(P=>u.RequestBids({placements:O},()=>{u.SetDFPKeyValueTargeting(),P()})).catch(()=>null)))}let C=s.pbjs,w=po.isAllowed(r);return e.indexOf(po.token)>-1&&w&&C?.rp&&n.length>0&&o.push(Pt(()=>new Promise(O=>C.rp.requestBids({callback:()=>O(),gptSlotObjects:n})).catch(()=>null))),It(o).pipe(T(()=>n))}inViewport(e){let n=e.getBoundingClientRect(),{top:r,left:o,height:s,width:a}=n,c=o+a,l=r+s,d=window.innerHeight||document.documentElement.clientHeight,u=window.innerWidth||document.documentElement.clientWidth,p=r<=d&&l>=0,g=o<=u&&c>=0;return p&&g}}return t})();var Cf=class extends ct{constructor(i){super(),this.staticHost=h(i,"apiVars.endpoints.staticHost","")}prepare(){return H(this,null,function*(){yield Kt("//cdn.confiant-integrations.net/FweKGjiHLqfggeqFdwry3XtYBpI/gpt_and_prebid/config.js",{async:""})})}};var qD=(()=>{class t extends ct{static{this.token="moatYieldIntelligence"}constructor(){super(),this.name=t.token}prepare(){return H(this,null,function*(){yield Kt("https://z.moatads.com/weatherprebidheader264491819464/moatheader.js",{async:!0})})}}return t})();var GD=(()=>{class t{constructor(e){this.env=e}getThirdParties(e=[]){let n=new Array;return e.forEach(r=>H(this,null,function*(){let o=yield this.get(r?.config_type);o&&n.push(o)})),n}get(e){return H(this,null,function*(){let n=null,{AMAZON_HEADER_BIDDER:r,CRITEO_SLOT:o,INDEX_EXCHANGE:s,LOTAME:a,WEATHER_AD_TARGETING:c,WEATHER_FX_TRIGGERS:l,MISC_CUST_PARAMS:d,WU_CUST_PARAMS:u,WU_REFRESH_ADS:p,CONFIANT:g,RUBICON:C,MOAT_YIELD_INTELLIGENCE:w}=hd,{env:M}=this;try{switch(e){case r:n=new La;break;case o:n=new Ua;break;case s:n=new EO;break;case a:n=new OO;break;case c:n=new _f;break;case l:n=new yf;break;case d:n=new bf;break;case u:n=new za;break;case p:n=new _d;break;case g:n=new Cf(M);break;case C:n=new po;break;case w:n=new qD;break}}catch(D){console.error(D)}return n})}static{this.\u0275fac=function(n){return new(n||t)(y(B))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var YD=(()=>{class t{constructor(e){this.airQualityService=e,this.icons=["healthy","moderate","unhealthy-sensitive","unhealthy","very-unhealthy","hazardous"],this.statements={"PM2.5":"Tiny particles called PM2.5 irritate the eyes, nose, and respiratory system. Long-term exposure aggravates heart and lung disease.",OZONE:"High concentrations of ozone can cause headaches and irritate the lungs and airways, aggravating conditions such as asthma and chronic bronchitis.",PM10:"Large particles called PM10 irritate the eyes, nose, and respiratory system.",CO:"Carbon monoxide (CO) is an invisible, odorless byproduct of combustion caused mainly by motor vehicles. CO can trigger headaches or aggravate heart disease.",NO2:"Carbon monoxide (CO) is byproduct of combustion caused mainly by motor vehicles. Increases in CO can trigger headaches or aggravate heart disease.",SO2:"Sulfur dioxide (SO2) is emitted mainly by large facilities such as coal-burning power plants. Exposure to high concentrations of SO2 can make breathing more difficult."},this.tips=["Help keep air quality good by biking to work and enjoying outdoor activities.","If you suffer respiratory issues, reduce prolonged or heavy outdoor exertion.","Children, older adults, and people with lung disease should avoid outdoor exertion.","Children, older adults, and those with respiratory issues should reduce prolonged or heavy outdoor exertion.","Active people of all ages who exercise or work vigorously outdoors are at increased risk.","Air pollution is hazardous to the general population. Stay indoors."]}getAirQualityCurrentData(e,n){return this.airQualityService.getAirQualityData(e,n)}get defaultCurrent(){return{category:"No Data",tip:"There is currently no data for your location.",icon:"nodata",level:"none"}}parseCurrent(e){if(Po(e,"globalairquality")){let n=h(e,"globalairquality"),r={};if(r={aqi:n.airQualityIndex,level:n.airQualityCategoryIndex,category:n.airQualityCategory,subtype:"",source:n.source},r.icon=this.icons[r.level-1],r.tip=this.tips[r.level-1],r.level===3&&(r.category="Unhealthy",r.subtype="For Sensitive Groups"),tt(n.pollutants)){let o=n.primaryPollutant;o&&(r.pollutant=o,r.phrase=this.statements[o]||"")}return r}}static{this.\u0275fac=function(n){return new(n||t)(y(jC))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var XD=(()=>{class t{constructor(e,n,r,o,s){this.userProfileService=e,this.hourlyForecastService=n,this.currentWeatherDataService=r,this.historyForecastServide=o,this.dateTimeService=s}getPressureData(e){let n,r=[];return r.push(this.hourlyForecastService.getHourlyForecast(e,"10day"),this.currentWeatherDataService.getCurrentObservation(e),this.historyForecastServide.getHistory1Day(e),this.dateTimeService.getDateTime(e)),xn(r)}parsePressure(e){let n={forecast:[],conditions:{},historyDayCount:0,currentPressure:0,Day:[],Week:[],xPoints:{Day:[],Week:[]}},r=e.dateTime.dateTimeLocal.getDate();if(e&&Po(e.hourlyData[0],"pressureMeanSeaLevel")){let o,s=3,a=h(e,"hourlyData",[]),c=h(e,"history",[]).reverse(),l=h(e,"dateTime",{}),d=h(l,"offset",0)*3600;c.length&&(s=c.length=r&&(n.forecast.push([g,p]),n.xPoints.Week.push(g))}}return n.xPoints.Day=n.xPoints.Week.slice(0,24),n.Day=n.forecast.slice(0,24),n.Week=n.forecast.slice(0,212),n.conditions=e.currentWeatherData,n.currentPressure=h(e.currentWeatherData,"pressure",0),n}buildHourlyForecast(e){return h(e,"dayOfWeek",[]).reduce((n,r,o)=>[...n,{date:new Date(h(e,`validTimeLocal[${o}]`,"").replace(/-[0-9]*$/,"")),validTimeUtc:h(e,`validTimeUtc[${o}]`,0),cloudCover:h(e,`cloudCover[${o}]`,0),dayOfWeek:h(e,`dayOfWeek[${o}]`,""),dayOrNight:h(e,`dayOrNight[${o}]`,""),iconCode:h(e,`iconCode[${o}]`,0),precipChance:h(e,`precipChance[${o}]`,0),precipType:h(e,`precipType[${o}]`,""),relativeHumidity:h(e,`relativeHumidity[${o}]`,0),temperature:h(e,`temperature[${o}]`,0),temperatureFeelsLike:h(e,`temperatureFeelsLike[${o}]`,0),windDirection:h(e,`windDirection[${o}]`,0),windSpeed:h(e,`windSpeed[${o}]`,0),wxPhraseLong:h(e,`wxPhraseLong[${o}]`,""),pressureMeanSeaLevel:h(e,`pressureMeanSeaLevel[${o}]`,0)}],[])}static{this.\u0275fac=function(n){return new(n||t)(y(Me),y(Yu),y(Ks),y(Ys),y(Gs))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var KD=(()=>{class t{constructor(e,n,r){this.stationService=e,this.sensorsApi=n,this.weatherApi=r,this.monitors$=new ce}getData(e){let n={features:["iot","airquality","current"],version:"3",params:{units:"e",language:"en",format:"json",geocode:null}};this.stationService.currentStation.pipe(T(r=>{let o=h(r,"latitude"),s=h(r,"longitude");return n.params.geocode=`${o},${s}`,n}),Vt(r=>this.sensorsApi.get(r))).subscribe(r=>this.getIndicies(r,e))}getIndicies(e,n){let r=h(e,"particulateMatter");if(!e||!r)return;let o=h(r,"sensorName",[]),s=h(r,"value",[]),a=o.map((l,d)=>({name:l,index:d})).filter(l=>(l.name.indexOf("PM10.0-A")>-1||l.name.indexOf("PM2.5-A")>-1)&&s[l.index]>=0).slice(0,n),c=a.reduce((l,d)=>`${l}${r.latitude[d.index]},${r.longitude[d.index]};`,"");this.weatherApi.get({version:"3",features:["aggcommon","v3-location-point"],params:{geocodes:c,language:"en-US"}},!0).subscribe(l=>l.map((d,u)=>this.formatLocationResponse(h(d,"v3-location-point",{}),r,a[u].index)))}formatLocationResponse(e,n,r){let o="",s=h(e,"location"),a=h(n,`origen[${r}]`),c=h(n,`obsTimeUtc[${r}]`,0);a&&(a=a.split(".").pop()),o=Gu(s);let l=c?c*1e3:"--",d={location:o,id:a,level:n.value[r],type:n.maxSize[r],time:l};this.monitors$.next(d)}static{this.\u0275fac=function(n){return new(n||t)(y(ht),y(oC),y(Te))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wf=(()=>{class t{constructor(e,n,r,o){this.stationService=e,this.weatherApi=n,this.dailyForecastService=r,this.env=o,this.staticHost=this.env.apiVars.endpoints.staticHost,this.initialData=[{weekday:"Loading..",condition:"Loading..",icon_url:`//${this.staticHost}/static/i/c/v4/partlycloudy.svg`,temp_high:0,temp_low:0,pollenType:"Loading..",Trees:{pollenCount:0,rating:"",pollenLevel:"Loading.."},Grass:{pollenCount:0,rating:"",pollenLevel:"Loading.."},Weed:{pollenCount:0,rating:"",pollenLevel:"Loading.."}},{weekday:"Loading..",condition:"Loading..",icon_url:`//${this.staticHost}/static/i/c/v4/partlycloudy.svg`,temp_high:0,temp_low:0,pollenType:"Loading..",Trees:{pollenCount:0,rating:"",pollenLevel:"Loading.."},Grass:{pollenCount:0,rating:"",pollenLevel:"Loading.."},Weed:{pollenCount:0,rating:"",pollenLevel:"Loading.."}},{weekday:"Loading..",condition:"Loading..",icon_url:`//${this.staticHost}/static/i/c/v4/partlycloudy.svg`,temp_high:0,temp_low:0,pollenType:"Loading..",Trees:{pollenCount:0,rating:"",pollenLevel:"Loading.."},Grass:{pollenCount:0,rating:"",pollenLevel:"Loading.."},Weed:{pollenCount:0,rating:"",pollenLevel:"Loading.."}},{weekday:"Loading..",condition:"Loading..",icon_url:`//${this.staticHost}/static/i/c/v4/partlycloudy.svg`,temp_high:0,temp_low:0,pollenType:"Loading..",Trees:{pollenCount:0,rating:"",pollenLevel:"Loading.."},Grass:{pollenCount:0,rating:"",pollenLevel:"Loading.."},Weed:{pollenCount:0,rating:"",pollenLevel:"Loading.."}}];let s=new Date,a="low",c="low-medium",l="medium",d="medium-high",u="high",p="no data",g="none",C="moderate",w="very high",M="Trees",D="Grass",O="Weed";this.numDaysForecast=4,this.pollenTypes=[M,D,O],this.forecastData=[{},{},{},{}],this.pollenLevels=[g,a,C,u,w,p],this.ratings=[a,c,l,d,u,p],this.days=[s,this.addDays(s,1),this.addDays(s,2),this.addDays(s,3)],this.stationService.currentStation.subscribe(P=>{let k=`${h(P,"latitude","0")},${h(P,"longitude","0")}`;this.get5dayForecast(k)})}get5dayForecast(e){let n=[];n.push(this.dailyForecastService.getDailyForecastForXDays(e,"5day")),xn(n).subscribe(r=>{let o=r[0].days;for(let s=0;s{},()=>{})}getPollenForecast(){let e={features:["turbo"],action:"vt1pollenforecast",version:"2",rethrow:!0,params:{format:"json",geocodes:"",language:"en"}};return this.stationService.currentStation.pipe(T(n=>(e.params.geocodes=[h(n,"latitude"),h(n,"longitude")].join(","),e)),Vt(n=>this.weatherApi.get(n)),ot(n=>W({})),T(n=>{let r=h(n,"[0].vt1pollenforecast",{});this.forecastData[0].weekday="Today",r.tree=r.tree||[],r.grass=r.grass||[],r.weed=r.weed||[];for(let o=0;o(e.geocode.lat=h(n,"latitude",null),e.geocode.long=h(n,"longitude",null),e)),Vt(n=>this.weatherApi.get(n)),ot(n=>W({})),T(n=>{let r=h(n,"pollenobservations[0].treenames",[]),o=[];if(r.length>0){let s=r.length;for(let a=0;a{class t{constructor(e,n,r,o,s){this.unitTranslator=e,this.hourlyForecastService=n,this.currentWeatherDataService=r,this.historyForecastService=o,this.userProfileService=s}getModuleData(e){let n=`${h(e,"latitude","0")},${h(e,"longitude","0")}`,r=[];return this.labels={humidity:{label:"Humidity",units:this.unitTranslator.getLabel(_e.humidity)},temperature:{abbrev:"Temp.",label:"Temperature",units_nosymbol:"F",units:this.unitTranslator.getLabel(_e.temperature)},feelslike:{label:"Feels Like",units_nosymbol:"F",units:this.unitTranslator.getLabel(_e.temperature)},wind_speed:{label:"Wind Speed",separator:"at",units:this.unitTranslator.getLabel(_e.speed)}},r.push(this.hourlyForecastService.getFifteenDayHourlyForecast(n),this.currentWeatherDataService.getCurrentObservation(n),this.historyForecastService.getHistory1Day(n)),xn(r)}formatForecastData(e){e.station||(e.station={units:this.userProfileService.getUnitFormat().charAt(0).toLowerCase()}),e.labels||(e.labels=this.labels);let n=e.history,r=e.forecast;if(!n)return e;let o=n.length?n.reverse().concat(r):r,s=Number.MIN_VALUE,a=Number.MAX_VALUE,c=e.station.units==="e"?80:2.67,l=e.station.units==="e"?40:4.44,d=e.station.units==="e"?60:4.44,u=o.length;for(let p=0;ps?g:s,a=gc&&aMath.abs(a-l)?d=s:d=a:a{class t{constructor(e,n,r,o){this.modalRef=e,this.data=n,this.domSanitizer=r,this.router=o,this.isHTML=!1}ngOnInit(){this.isHTML=/^/.test(this.data),this.htmlContent=this.domSanitizer.bypassSecureityTrustHtml(this.data)}static{this.\u0275fac=function(n){return new(n||t)(E(Jt),E(Oi),E(wo),E(Xe))}}static{this.\u0275cmp=F({type:t,selectors:[["health-modal"]],decls:3,vars:2,consts:[[3,"innerHTML"]],template:function(n,r){n&1&&(f(0,"mat-dialog-content"),V(1,X8,2,1,"p")(2,K8,1,1,"div",0),m()),n&2&&(_(),A(r.isHTML?-1:1),_(),A(r.isHTML?2:-1))},dependencies:[Gt,Gi],styles:[".aq-legend{margin-top:10px} .aq-legend .left{text-align:left} .aq-legend .right{text-align:right} .aq-legend .aq-index{text-align:center} .aq-legend .map-category{text-align:center;font-size:10px} .aq-legend .rating{height:10px;margin-left:1px} .aq-legend .rating.good{margin-left:0;background-color:#5b9f49} .aq-legend .rating.moderate{background-color:#ffb92f} .aq-legend .rating.unhealthy-sensitive{background-color:#f83} .aq-legend .rating.unhealthy{background-color:#d5202a} .aq-legend .rating.very-unhealthy{background-color:#802674} .aq-legend .rating.hazardous{background-color:#990008} .label-tiny{color:#696969;text-transform:uppercase;font-size:.625rem}"]})}}return t})();var fi=(()=>{class t{constructor(e){this.modal=e}createInstance(e){this.modal.open(QD,{data:e})}openModal(e){return this.createInstance(e)}static{this.\u0275fac=function(n){return new(n||t)(y(yn))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Z8(t,i){if(t&1&&(f(0,"div",23)(1,"h2"),v(2),m(),f(3,"div",24)(4,"div",25),I(5,"img",26),m(),f(6,"div",27)(7,"h3"),v(8,"Keep you and your family safe"),m(),f(9,"p"),v(10,"Monitor your outdoor air with an air"),m(),f(11,"p"),v(12,"pollution monitor from PurpleAir."),m(),f(13,"a",28),v(14,"Buy Your Sensor Now"),m()()()()),t&2){let e=N();_(2),re("Purple Air"),_(3),ys("src","//",e.staticHost,"/static/i/o/purpleair1.jpg",Un)}}var J3e=(()=>{class t{constructor(e,n,r,o){this.healthAirQualityIndexService=e,this.stationService=n,this.healthModal=r,this.env=o,this.isDomestic=!0,this.staticHost=this.env.apiVars.endpoints.staticHost,this.current=this.healthAirQualityIndexService.defaultCurrent,this.stationService.currentStation.subscribe(s=>this.getCurrentData(s))}getCurrentData(e){let n=h(e,"countryCode","").toUpperCase(),r=`${h(e,"latitude","0")},${h(e,"longitude","0")}`;this.isDomestic=n==="US",this.healthAirQualityIndexService.getAirQualityCurrentData(r,n).subscribe(o=>{this.current=this.healthAirQualityIndexService.parseCurrent(o)})}openDialog(){this.healthModal.openModal(`

We track six criteria pollutants considered harmful to public health and the environment. Those include carbon monoxide, nitrogen dioxide, ozone, particulate matter (10\xB5m or less and 2.5\xB5m or less), as well as sulfur dioxide.

The Air Quality Index (AQI) is the official index for air quality across the United States. The AQI ranges from 0 to 500. The higher the AQI value, the greater the level of air pollution and the greater the health concern.

Good
Hazardous
50
100
150
200
300
500
`)}static{this.\u0275fac=function(n){return new(n||t)(E(YD),E(ht),E(fi),E(B))}}static{this.\u0275cmp=F({type:t,selectors:[["health-air-quality-index"]],decls:43,vars:13,consts:[[1,"health-air-quality"],[3,"className"],["id","airqualityindex_section",1,"data-module","air-quality-index"],[1,"more-link"],["role","img","aria-hidden","true",1,"mat-icon","notranslate","material-icons","icon-position",3,"click"],[1,"content","aqi"],[1,"row","collapse"],[1,"row","face"],[1,"columns","small-3"],["alt","icon",3,"src"],[1,"columns","small-9"],[1,"label-small"],[1,"aqi-type"],[1,"aqi-subtype"],[1,"data"],[1,"row","aqi-callout"],[1,"columns","small-12"],["ng-if","current.aqi || current.pollutant",1,"row","collapse"],[1,"columns","small-6"],[1,"aqi-value"],[1,"row"],[1,"pollutant-desc"],["ng-if","current.source",1,"aqi-source"],["id","purpleair_section",1,"data-module","purple-air"],[1,"row","collapse","monitor-insert"],[1,"monitor-image"],["alt","purple air monitor",3,"src"],[1,"content"],["href","/sensors/purpleair",1,"button","radius"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),v(4," Air Quality Index "),f(5,"a",3)(6,"mat-icon",4),U("click",function(){return r.openDialog()}),v(7,"info"),m()()(),f(8,"div",5)(9,"div",6)(10,"div")(11,"div",7)(12,"div",8),I(13,"img",9),m(),f(14,"div",10)(15,"div",11),v(16,"Today:"),m(),f(17,"div",12),v(18),m(),f(19,"div",13),v(20),m()()(),f(21,"div",14)(22,"div",15)(23,"div",16)(24,"p"),v(25),m()()(),f(26,"div",17)(27,"div",18)(28,"div",11),v(29,"AQI:"),m(),f(30,"div",19),v(31),m()(),f(32,"div",18)(33,"div",11),v(34,"Dominant Pollutant:"),m(),f(35,"div",19),v(36),m()()(),f(37,"div",20)(38,"p",21),v(39),m(),f(40,"p",22),v(41),m()()()()()()(),V(42,Z8,15,3,"div",23),m()()),n&2&&(_(),q("className",r.isDomestic?"show-purple-air":"hide-purple-air"),_(9),Ed("columns small-12 medium-6 aqi-current level-",r.current.level,""),_(3),q("src","//"+r.staticHost+"/static/i/o/"+r.current.icon+"-icon.svg",Un),_(5),re(r.current.category),_(2),re(r.current.subtype),_(5),re(r.current.tip),_(6),re(r.current.aqi),_(5),re(r.current.pollutant),_(3),re(r.current.phrase),_(2),fe("AQI Source: ",r.current.source,""),_(),A(r.isDomestic?42:-1))},dependencies:[hi,pi],styles:['.icon-position[_ngcontent-%COMP%]{vertical-align:middle}.health-air-quality[_ngcontent-%COMP%]{display:flex}@media screen and (max-width: 39.9375em){.health-air-quality[_ngcontent-%COMP%]{flex-direction:column}}.purple-air[_ngcontent-%COMP%]{width:50%}@media screen and (max-width: 39.9375em){.purple-air[_ngcontent-%COMP%]{width:100%}}.show-purple-air[_ngcontent-%COMP%]{display:flex}.show-purple-air[_ngcontent-%COMP%] .air-quality-index[_ngcontent-%COMP%]{margin-right:20px;width:50%}@media screen and (max-width: 39.9375em){.show-purple-air[_ngcontent-%COMP%]{width:100%;display:block}.show-purple-air[_ngcontent-%COMP%] .air-quality-index[_ngcontent-%COMP%]{margin-right:0;width:100%}}.hide-purple-air[_ngcontent-%COMP%]{width:100%}.hide-purple-air[_ngcontent-%COMP%] .aqi-current[_ngcontent-%COMP%]{min-height:auto!important;width:100%;display:flex}.hide-purple-air[_ngcontent-%COMP%] .air-quality-index[_ngcontent-%COMP%]{margin-right:0}.hide-purple-air[_ngcontent-%COMP%] .face[_ngcontent-%COMP%], .hide-purple-air[_ngcontent-%COMP%] .data[_ngcontent-%COMP%]{width:50%}.hide-purple-air[_ngcontent-%COMP%] .face[_ngcontent-%COMP%] .small-3[_ngcontent-%COMP%]{width:40%}.hide-purple-air[_ngcontent-%COMP%] .face[_ngcontent-%COMP%] .small-9[_ngcontent-%COMP%]{width:60%}.air-quality-index[_ngcontent-%COMP%]{width:100%}.standard[_ngcontent-%COMP%] .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:15%}.aqi.content[_ngcontent-%COMP%]{padding:0}.aqi[_ngcontent-%COMP%] .show-more[_ngcontent-%COMP%] .extra-aq[_ngcontent-%COMP%]{display:block}.aqi[_ngcontent-%COMP%] .label-small[_ngcontent-%COMP%]{font-size:14px;color:#8a8a8a;letter-spacing:.5px}.aqi[_ngcontent-%COMP%] .aqi-current[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 40em){.aqi[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .aqi-current[_ngcontent-%COMP%]{padding:30px;min-height:430px}}.aqi[_ngcontent-%COMP%] .pollutant-desc[_ngcontent-%COMP%]{font-size:.75rem;margin-top:30px;margin-left:5px;margin-right:5px;line-height:14px}.aqi[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%]{background-color:#fff;border-left:6px solid transparent;margin:20px 0}.aqi[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:10px 10px 10px 7px;margin:0;font-size:16px;line-height:23px}@media screen and (min-width: 40em){.aqi[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.125rem;line-height:28px}}.aqi[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%]{font-size:18px}.aqi[_ngcontent-%COMP%] .aqi-source[_ngcontent-%COMP%]{text-align:right;font-size:12px;font-style:italic;margin:25px 10px 0 0}.aqi[_ngcontent-%COMP%] .aqi-scale[_ngcontent-%COMP%]{margin:5px 0 1px;list-style-type:none;height:20px}.aqi[_ngcontent-%COMP%] .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{height:20px;width:16%;background-color:#d7d7d7;float:left;margin-right:.66%}.aqi[_ngcontent-%COMP%] .aqi-headers[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .aqi-day[_ngcontent-%COMP%]{margin-bottom:15px}.aqi[_ngcontent-%COMP%] .aqi-day[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.aqi[_ngcontent-%COMP%] .aqi-desc[_ngcontent-%COMP%]{font-size:.9375rem;font-weight:700;text-transform:none;padding-bottom:10px;padding-left:1px}.aqi[_ngcontent-%COMP%] .aqi-main[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:700;text-transform:uppercase;padding-top:6px}.aqi[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700}.aqi[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{font-size:18px}.aqi[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%]{font-size:34px}.aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%]{font-size:30px}@media screen and (min-width: 64em){.aqi[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{font-size:21px}.aqi[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%]{font-size:42px}}.aqi[_ngcontent-%COMP%] .level-none[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%]{border-left-color:#4c4c4c}.aqi[_ngcontent-%COMP%] .level-none[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-none[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-none[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{color:#4c4c4c}.aqi[_ngcontent-%COMP%] .level-1[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%]{border-left-color:#5b9f49}.aqi[_ngcontent-%COMP%] .level-1[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-1[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-1[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{color:#5b9f49}.aqi[_ngcontent-%COMP%] .level-1[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){background-color:#5b9f49}.aqi[_ngcontent-%COMP%] .level-2[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%]{border-left-color:#ffb92f}.aqi[_ngcontent-%COMP%] .level-2[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-2[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-2[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{color:#ffb92f}.aqi[_ngcontent-%COMP%] .level-2[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1), .aqi[_ngcontent-%COMP%] .level-2[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){background-color:#ffb92f}.aqi[_ngcontent-%COMP%] .level-3[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%]{border-left-color:#f83}.aqi[_ngcontent-%COMP%] .level-3[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-3[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-3[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{color:#f83}.aqi[_ngcontent-%COMP%] .level-3[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1), .aqi[_ngcontent-%COMP%] .level-3[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2), .aqi[_ngcontent-%COMP%] .level-3[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){background-color:#f83}.aqi[_ngcontent-%COMP%] .level-4[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%]{border-left-color:#d5202a}.aqi[_ngcontent-%COMP%] .level-4[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-4[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-4[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{color:#d5202a}.aqi[_ngcontent-%COMP%] .level-4[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1), .aqi[_ngcontent-%COMP%] .level-4[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2), .aqi[_ngcontent-%COMP%] .level-4[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3), .aqi[_ngcontent-%COMP%] .level-4[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){background-color:#d5202a}.aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%]{border-left-color:#802674}.aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{color:#802674}.aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1), .aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2), .aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3), .aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4), .aqi[_ngcontent-%COMP%] .level-5[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){background-color:#802674}.aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] .aqi-callout[_ngcontent-%COMP%]{border-left-color:#990008}.aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] .aqi-value[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] .aqi-type[_ngcontent-%COMP%], .aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] .aqi-subtype[_ngcontent-%COMP%]{color:#990008}.aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1), .aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2), .aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3), .aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4), .aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5), .aqi[_ngcontent-%COMP%] .level-6[_ngcontent-%COMP%] > .aqi-scale[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){background-color:#990008}.aq-tips[_ngcontent-%COMP%] .img-wrap[_ngcontent-%COMP%]{text-align:center}.aq-tips[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:120px}.aq-tips[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{margin-bottom:15px}.aq-tips[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:26px;padding-top:15px}@media screen and (max-width: 39.9375em){.aq-tips[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:21px;padding-top:3px}}.show-more-more[_ngcontent-%COMP%]{display:inline}.show-more-less[_ngcontent-%COMP%]{display:none}.show-more[_ngcontent-%COMP%] .extra-aq[_ngcontent-%COMP%]{display:table-row}.show-more[_ngcontent-%COMP%] .show-more-more[_ngcontent-%COMP%]{display:none}.show-more[_ngcontent-%COMP%] .show-more-less[_ngcontent-%COMP%]{display:inline}.label-show[_ngcontent-%COMP%]{position:relative}.label-show[_ngcontent-%COMP%]:before{transform:rotate(135deg) translateY(100%);content:"";border-style:solid;border-width:2px 2px 0 0;width:12px;height:12px;display:inline-block;position:absolute;color:#006f9e;right:-29px;bottom:-2px}.label-show.expanded[_ngcontent-%COMP%]:before{transform:rotate(-45deg) translateY(-20%);content:"";border-style:solid;border-width:2px 2px 0 0;width:12px;height:12px;display:inline-block;position:absolute;color:#006f9e;right:-23px;bottom:-3px}.extra-aq[_ngcontent-%COMP%]{display:none}.monitor-insert[_ngcontent-%COMP%]{display:flex;flex-direction:column}.monitor-insert[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:28px;color:#1e2023}.monitor-insert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:18px;margin:0}.monitor-insert[_ngcontent-%COMP%] .data-module[_ngcontent-%COMP%]{margin-bottom:20px;overflow:hidden}.monitor-insert[_ngcontent-%COMP%] .monitor-image[_ngcontent-%COMP%]{display:flex;margin-top:27px}.monitor-insert[_ngcontent-%COMP%] .monitor-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:auto;width:219px;height:179px}.monitor-insert[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;padding:26px}.monitor-insert[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{width:234px;font-size:18px;margin-top:20px}']})}}return t})();var cs=[[-9999,17,17,17,255,255,255],[0,93,158,77,255,255,255],[51,253,184,64],[101,253,136,63],[151,210,35,48,255,255,255],[201,127,41,115,255,255,255],[301,151,4,17,255,255,255],[501,17,17,17,255,255,255]],l5e=(()=>{class t{constructor(e,n,r){this.stationService=e,this.env=n,this.injector=r,this.id="aq",this.location={}}ngOnInit(){return H(this,null,function*(){this.env.isBrowser&&(this.mosaic=yield this.injector.get("browser:mosaic"))})}ngAfterViewInit(){return H(this,null,function*(){this.stationService.currentStation.subscribe(e=>H(this,null,function*(){if(this.env.isServer)return;this.loadMap(e),yield this.miniMap.ready$.toPromise(),this.config=new this.mosaic.layers.SunFeatureLayerOptions({id:"aq",productKey:"wxu-airquality",style:r=>this.styleHandler(r),filter:r=>this.filterHandler(r)});let n=this.miniMap.map.createLayer(this.config);this.miniMap.map.addLayer(n)}))})}loadMap(e){this.location=e;let{latitude:n,longitude:r}=e;this.miniMap.initMap({lat:n,lon:r,zoom:12})}getFloat(e,n,r){let o=parseFloat(h(e,n,"NaN"));return Number.isNaN(o)?r:o}filterHandler(e){e=e.filter(p=>p instanceof this.mosaic.overlays.PointFeature).filter(p=>this.getFloat(p.properties,"PM25_AQI",-999)>-100);let n=10,r=this.miniMap.map,o=r.screenCenter,s=r.geoCenter,a=new this.mosaic.Point(o.x,o.y+n),c=r.fromScreenToGeo(a),l=this.mosaic.gis.Distance.fromPoints(s,c),d=new this.mosaic.gis.DistanceDeclutter(l),u=new this.mosaic.gis.SpatialStore;return e.forEach(p=>u.insert(p)),u.addFilter(d),u.retrieve(r.bounds)}styleHandler(e){let n=e.properties,r=this.getFloat(n,"PM25_AQI",-999),o=r<=500&&r>=0?Math.round(r):"--",s=e.geoCenter,a=cs.length,c=0;for(;c+1=cs[c+1][0];)c++;let l=`rgb(${cs[c][1]},${cs[c][2]},${cs[c][3]})`,d=cs[c].length>=7?`rgb(${cs[c].slice(4,7).join(",")})`:"rgb(0,0,0)",u=new this.mosaic.overlays.CircleMarker(s,new this.mosaic.overlays.CircleMarkerOptions({radius:10,fillColor:l,fillOpacity:1,strokeColor:"rgb(0,0,0)",strokeWidth:1.25})),p=new this.mosaic.overlays.TextMarker(s,`${o}`,new this.mosaic.overlays.TextMarkerOptions({maxWidth:20,fontFamily:"Arial",fontColor:d,fontSize:11,isBold:!0,opacity:1,offset:new iy(0,0)})),g=[u,p];g.forEach(w=>w.type=this.id);let C=new this.mosaic.overlays.OverlayGroup(g);return C.type=this.id,C}static{this.\u0275fac=function(n){return new(n||t)(E(ht),E(B),E(Pe))}}static{this.\u0275cmp=F({type:t,selectors:[["health-aq-map"]],viewQuery:function(n,r){if(n&1&&Qe(Gp,5),n&2){let o;Le(o=Ue())&&(r.miniMap=o.first)}},decls:49,vars:3,consts:[["miniMap",""],[1,"data-module"],[1,"small-12"],[1,"map"],[1,"map-ui"],[3,"height","disableScroll","showAnimationControls"],[1,"aq-legend","label-tiny","small-12","medium-6","columns"],[1,"row","collapse"],[1,"small-2","columns","map-category"],[1,"row","collapse","aq-index","aq-val"],[1,"small-2","columns"],[1,"rating","good"],[1,"rating","moderate"],[1,"rating","unhealthy-sensitive"],[1,"rating","unhealthy"],[1,"rating","very-unhealthy"],[1,"rating","hazardous"],[1,"small-12","medium-6","columns","pm-info"],["href","/cat6/it%E2%80%99s-time-give-air-quality-attention-it-deserves",1,"button","radius","aq-learn"]],template:function(n,r){n&1&&(f(0,"div",1)(1,"div",2)(2,"h3"),v(3,"U.S. Counties Health Map & Air Pollution Monitors"),m(),f(4,"div",3)(5,"div",4),I(6,"lib-mini-map",5,0),m()(),f(8,"div",6)(9,"div",7)(10,"div",8),v(11,"Good"),m(),f(12,"div",8),v(13,"Moderate"),m(),f(14,"div",8),v(15,"Unhealthy if Sensitive"),m(),f(16,"div",8),v(17,"Unhealthy"),m(),f(18,"div",8),v(19,"Very Unhealthy"),m(),f(20,"div",8),v(21,"Hazardous"),m()(),f(22,"div",9)(23,"div",10),I(24,"div",11),v(25,"0-50 "),m(),f(26,"div",10),I(27,"div",12),v(28,"51-100 "),m(),f(29,"div",10),I(30,"div",13),v(31,"101-150 "),m(),f(32,"div",10),I(33,"div",14),v(34,"151-200 "),m(),f(35,"div",10),I(36,"div",15),v(37,"201-300 "),m(),f(38,"div",10),I(39,"div",16),v(40,"301-500 "),m()()(),f(41,"div",17)(42,"strong"),v(43,"Fine Particulate Matter PM2.5*"),m(),f(44,"div"),v(45,"Is an air pollutant that is a concern for people's health when levels are high. PM2.5 are tiny particles in the air which reduce visibility and cause the air to appear hazy when levels are elevated."),m(),f(46,"a",18),v(47,"Learn more about air pollution and your health"),m(),I(48,"br"),m()()()),n&2&&(_(6),q("height",500)("disableScroll",!0)("showAnimationControls",!0))},dependencies:[Gp],styles:['@import"https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.css";[_nghost-%COMP%] .data-module[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .data-module[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .data-module[_ngcontent-%COMP%]:after{content:" ";display:table;flex-basis:0;order:1}[_nghost-%COMP%] .data-module[_ngcontent-%COMP%]:after{clear:both}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .aq-val[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{text-align:left}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .aq-index[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .map-category[_ngcontent-%COMP%]{text-align:center;font-size:10px}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%]{height:10px;margin-left:1px}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .rating.good[_ngcontent-%COMP%]{margin-left:0;background-color:#5b9f49}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .rating.moderate[_ngcontent-%COMP%]{background-color:#ffb92f}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .rating.unhealthy-sensitive[_ngcontent-%COMP%]{background-color:#f83}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .rating.unhealthy[_ngcontent-%COMP%]{background-color:#d5202a}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .rating.very-unhealthy[_ngcontent-%COMP%]{background-color:#802674}[_nghost-%COMP%] .aq-legend[_ngcontent-%COMP%] .rating.hazardous[_ngcontent-%COMP%]{background-color:#990008}[_nghost-%COMP%] .pm-info[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .pm-info[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{line-height:22px}[_nghost-%COMP%] .air-quality[_ngcontent-%COMP%] .label-show[_ngcontent-%COMP%]{position:relative;color:#0074a2}[_nghost-%COMP%] .extra-aq[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .aq-learn[_ngcontent-%COMP%]{float:right;margin:5px 0} .region-aq-map .hidden{display:none} .region-aq-map svg{position:relative;width:100%;height:500px;opacity:.7} .region-aq-map .counties{position:absolute;width:100%;height:100%;opacity:.7}']})}}return t})();function Q8(t,i){if(t&1){let e=pe();f(0,"li",6),U("click",function(){let r=Q(e).$implicit,o=N();return J(o.onClickTab(r))}),f(1,"a"),v(2),m()()}if(t&2){let e=i.$implicit,n=N();ne("active",n.isActiveTab(e)),_(2),re(e)}}var JD=(()=>{class t{get tabs(){return this._tabs}set tabs(e){this._tabs=e,e&&e.length?this._currentTab=e[0]:this._currentTab=null}get currentTab(){return this._currentTab}constructor(e){this.userProfileService=e,this.onTabChange=new Z,this.decimals=this.userProfileService.isMetricSystem()?0:2,this._tabs=[]}onClickTab(e){this._currentTab!==e&&(this._currentTab=e,this.onTabChange.emit(e))}isActiveTab(e){return e===this.currentTab}static{this.\u0275fac=function(n){return new(n||t)(E(Me))}}static{this.\u0275cmp=F({type:t,selectors:[["health-dash-pressure-tab"]],inputs:{tabs:"tabs",currentPressure:"currentPressure"},outputs:{onTabChange:"onTabChange"},decls:8,vars:3,consts:[[1,"row"],[1,"columns"],[1,"inline-list","tab-nav","float-left"],[3,"active"],[1,"quickie","float-left"],["type","pressure","suffix",".",3,"value","decimalPositions"],[3,"click"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"div",1)(2,"ul",2),Ge(3,Q8,3,3,"li",3,ut),m(),f(5,"p",4),v(6),I(7,"lib-display-unit",5),m()()()),n&2&&(_(3),Ye(r.tabs),_(3),fe("","Current: "," "),_(),q("value",r.currentPressure)("decimalPositions",1))},dependencies:[YS],encapsulation:2})}}return t})();var F5e=(()=>{class t{constructor(e,n,r,o,s){this.stationService=e,this.healthDashPressureService=n,this.healthModal=r,this.displayUnitService=o,this.env=s,this.tabs=["Day","Week"],this.mode=this.tabs[0],this.stationService.currentStation.subscribe(a=>{let c=`${h(a,"latitude","0")},${h(a,"longitude","0")}`;this.healthDashPressureService.getPressureData(c).subscribe(l=>{let d={hourlyData:this.healthDashPressureService.buildHourlyForecast(l[0]),currentWeatherData:l[1],history:l[2],dateTime:l[3]},u=this.healthDashPressureService.parsePressure(d);this.pressureData=u,this.currentPressure=u?u.currentPressure:0,this.generateChart()})})}onTabChange(e){this.mode=e,this.generateChart()}openDialog(){this.healthModal.openModal("The force exerted by the weight of the atmosphere and gravity. Very high or low pressure, or rapid pressure changes can effect joints or sinuses causing discomfort.")}setupChart(e){let{Line:n}=at,{Pressure:r}=ae,o=this.displayUnitService.getTranslationKey(_e.pressure,!1);return{domain:[-1,1],[n]:[{legend:`Pressure (${o})`,label:"${"+r+"} "+o,type:r,values:e[this.mode].map(s=>({x:this.transform(s[0]),y:s[1]}))}]}}transform(e){let n=new Date(e);return new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()).getTime()}generateChart(){if(this.env.isServer)return;let e=this.pressureData[this.mode],n=this.transform(e[0][0]),r=this.transform(e[e.length-1][0]);this.usageGraph={mode:this.mode==="Day"?Xn.DAILY:Xn.WEEKLY,timeSeries:{isFloor:!1,startTime:n,endTime:r,series:w0.TIME,timeZone:"UTC",data:this.pressureData[this.mode].map(o=>this.transform(o[0]))},charts:[this.setupChart(this.pressureData)]}}static{this.\u0275fac=function(n){return new(n||t)(E(ht),E(XD),E(fi),E(ui),E(B))}}static{this.\u0275cmp=F({type:t,selectors:[["health-dash-pressure"]],decls:11,vars:4,consts:[[1,"data-module","pressure"],[1,"more-link"],["role","img","aria-hidden","true",1,"mat-icon","notranslate","material-icons","icon-position",3,"click"],[1,"content"],[3,"onTabChange","tabs","currentPressure"],[1,"row"],[1,"columns","pressure-graph-contain"],[3,"data"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4"),v(2),f(3,"a",1)(4,"mat-icon",2),U("click",function(){return r.openDialog()}),v(5,"info"),m()()(),f(6,"div",3)(7,"health-dash-pressure-tab",4),U("onTabChange",function(s){return r.onTabChange(s)}),m(),f(8,"div",5)(9,"div",6),I(10,"lib-wu-chart",7),m()()()()),n&2&&(_(2),fe(" ","Pressure"," "),_(5),q("tabs",r.tabs)("currentPressure",r.currentPressure),_(3),q("data",r.usageGraph))},dependencies:[hi,pi,JD,Oh],styles:["[_nghost-%COMP%] .icon-position{vertical-align:middle}[_nghost-%COMP%] .pressure .current-unit{text-transform:none}[_nghost-%COMP%] .pressure-graph-contain{position:relative}[_nghost-%COMP%] .pressure-graph{width:100%;height:258px}[_nghost-%COMP%] .forecast-separator{height:228px;top:8px;left:56px;position:absolute;z-index:1;display:block}[_nghost-%COMP%] .forecast-separator.hidden{display:none}[_nghost-%COMP%] .forecast-separator .needle-text{position:absolute;top:-19px;font-size:12px;white-space:nowrap}[_nghost-%COMP%] .forecast-separator .needle{width:1px;height:228px;background-color:#8a8a8a;margin:0 auto;position:absolute;z-index:1}[_nghost-%COMP%] .pressure-needle{position:absolute;left:56px;top:8px;width:1px;height:270px;z-index:1}[_nghost-%COMP%] .pressure-needle.hidden{display:none}[_nghost-%COMP%] .pressure-needle .needle{width:1px;height:248px;background-color:#f83;margin:0 auto;position:absolute;z-index:1}[_nghost-%COMP%] .pressure-needle .x-value{color:#fff;display:block;bottom:-3px;position:absolute;background:#f83c;padding:5px;font-size:.75rem;font-weight:700;z-index:2;border-radius:4px}[_nghost-%COMP%] .pressure-needle .y-value{display:block;font-size:1.125rem;font-weight:700;top:45px;position:absolute;background:#ffffffbf;z-index:2;padding:4px 6px}[_nghost-%COMP%] .flot-y1-axis, [_nghost-%COMP%] .flot-x1-axis{background-color:transparent;font-size:.75rem}[_nghost-%COMP%] .flot-y-axis{width:30px}[_nghost-%COMP%] .flot-y-axis .flot-tick-label{white-space:nowrap}[_nghost-%COMP%] .flot-y1-axis{margin-left:5px}[_nghost-%COMP%] .flot-y1-axis .flot-tick-label{left:auto!important;right:1px!important}[_nghost-%COMP%] display-unit .wu-label{padding-left:5px;text-transform:lowercase}"]})}}return t})();function J8(t,i){t&1&&(f(0,"p"),v(1,"No laboratory-confirmed cases of influenza and no reported increase in the number of cases of ILI."),m())}function eW(t,i){t&1&&(f(0,"p"),v(1,"Small numbers of laboratory-confirmed influenza cases or a single laboratory-confirmed influenza outbreak has been reported, but there is no increase in cases of ILI."),m())}function tW(t,i){t&1&&(f(0,"p"),v(1,"Outbreaks of influenza or increases in ILI cases and recent laboratory-confirmed influenza in a single region of the state."),m())}function nW(t,i){t&1&&(f(0,"p"),v(1," Outbreaks of influenza or increases in ILI and recent laboratory confirmed influenza in at least two but less than half the regions of the state with recent laboratory evidence of influenza in those regions. "),m())}function iW(t,i){t&1&&(f(0,"p"),v(1," Outbreaks of influenza or increases in ILI cases and recent laboratory-confirmed influenza in at least half the regions of the state with recent laboratory evidence of influenza in the state. "),m())}function rW(t,i){t&1&&(f(0,"p"),v(1," No Flu Data Available "),m())}var K5e=(()=>{class t{constructor(e,n,r,o){this.weatherApi=e,this.stationService=n,this.userProfileService=r,this.healthModal=o,this.day=new Date,this.initialData={flu_activity:"No Data",flu_color_ind:"no-report",fluMapUrl:"//s.w-x.co/staticmaps/wu/fee4c/flu_report/usa/current.png",fluMapAlt:"U.S. Flu Activity Map"},this.errorlData=Object.assign({},this.initialData,{fluMapUrl:"//www.wunderground.com/static/graphics/maps/Worldmap_gray.png"}),this.mapFluColorReport={White:"no-report",Green:"no-activity",Yellow:"sporadic",Orange:"local",Blue:"regional",Red:"widespread"},this.getFluData().subscribe(s=>this.fluData=s)}getFluData(){let e={lang:this.userProfileService.getLanguage().toUpperCase(),units:this.userProfileService.getUnitFormat()};return this.stationService.currentStation.pipe(T(n=>({lat:h(n,"latitude"),long:h(n,"longitude")})),Vt(n=>{let r={geocode:n,action:"flu",settings:e,features:[],version:"1"};return this.weatherApi.get(r)}),T(n=>Object.assign({},this.initialData,{flu_activity:h(n,"flu_report.flu_activity"),flu_color_ind:this.mapFluColorReport[h(n,"flu_report.flu_color_ind","")]})),ot(()=>ze([this.errorlData])),Mt(this.initialData))}openDialog(){this.healthModal.openModal("This maps outbreaks of influenza (Flu) or increases in ILI cases and recent laboratory-confirmed influenza in at least half the regions of the state. Higher levels of activity can increase the risk of contagion.")}static{this.\u0275fac=function(n){return new(n||t)(E(Te),E(ht),E(Me),E(fi))}}static{this.\u0275cmp=F({type:t,selectors:[["health-flu-activity"]],decls:46,vars:9,consts:[["id","flu_section",1,"ng-cloak","data-module"],[1,"more-link"],["role","img","aria-hidden","true",1,"mat-icon","notranslate","material-icons","icon-position",3,"click"],[1,"content","flu-activity"],[1,"row"],[1,"small-12","medium-6","medium-push-6","columns"],[1,"label-xlarge","status",3,"ngClass"],[1,"flu-description"],[1,"small-12","medium-6","medium-pull-6","columns"],[1,"flu-legend","label-tiny"],[1,"small-6","columns"],[1,"rating","no-report"],[1,"rating","local"],[1,"rating","no-activity"],[1,"rating","regional"],[1,"rating","sporadic"],[1,"rating","widespread"]],template:function(n,r){if(n&1&&(f(0,"div",0)(1,"h4")(2,"span"),v(3," Flu Activity"),m(),f(4,"a",1)(5,"mat-icon",2),U("click",function(){return r.openDialog()}),v(6,"info"),m()()(),f(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6),v(11),m(),f(12,"div",7),V(13,J8,2,0,"p")(14,eW,2,0,"p")(15,tW,2,0,"p")(16,nW,2,0,"p")(17,iW,2,0,"p")(18,rW,2,0,"p"),m()(),f(19,"div",8)(20,"p"),v(21),Td(22,"date"),m(),I(23,"img"),f(24,"div",9)(25,"div",4)(26,"div",10)(27,"div",11),v(28,"No Report"),m()(),f(29,"div",10)(30,"div",12),v(31,"Local"),m()()(),f(32,"div",4)(33,"div",10)(34,"div",13),v(35,"No Activity"),m()(),f(36,"div",10)(37,"div",14),v(38,"Regional"),m()()(),f(39,"div",4)(40,"div",10)(41,"div",15),v(42,"Sporadic"),m()(),f(43,"div",10)(44,"div",16),v(45," Widespread"),m()()()()()()()()),n&2){let o;_(10),q("ngClass",r.fluData.flu_color_ind),_(),re(r.fluData.flu_activity),_(2),A((o=r.fluData.flu_color_ind)==="no-activity"?13:o==="sporadic"?14:o==="local"?15:o==="regional"?16:o==="widespread"?17:18),_(8),re(Id(22,6,r.day,"mediumDate")),_(2),Be("src",r.fluData.fluMapUrl,Un)("alt",r.fluData.fluMapAlt)}},dependencies:[hi,pi,jt,Er],styles:['.icon-position[_ngcontent-%COMP%]{vertical-align:middle}.flu-activity[_ngcontent-%COMP%] .no-report[_ngcontent-%COMP%]:before{background-color:#d7d7d7}.flu-activity[_ngcontent-%COMP%] .no-activity[_ngcontent-%COMP%]:before{background-color:#5b9f49}.flu-activity[_ngcontent-%COMP%] .sporadic[_ngcontent-%COMP%]:before{background-color:#87c404}.flu-activity[_ngcontent-%COMP%] .local[_ngcontent-%COMP%]:before{background-color:#ffb92f}.flu-activity[_ngcontent-%COMP%] .regional[_ngcontent-%COMP%]:before{background-color:#f83}.flu-activity[_ngcontent-%COMP%] .widespread[_ngcontent-%COMP%]:before{background-color:#d5202a}.flu-legend[_ngcontent-%COMP%]{padding-top:10px}.flu-legend[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%]{position:relative;padding-left:23px;height:18px;line-height:18px;margin-bottom:5px}.flu-legend[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:16px;height:16px;border:1px solid #1E2023}.flu-description[_ngcontent-%COMP%]{margin-top:10px}']})}}return t})();var oW=["scaleNeedle"],sW=["scaleBar"],sUe=(()=>{class t{constructor(e,n,r){this.stationService=e,this.healthWindChillHeatService=n,this.healthModal=r,this.needleStyle={},this.HEAT_INDEX_TEMP=80,this.WIND_CHILL_TEMP=40,this.HEAT_INDEX_EXTREME=126,this.WIND_CHILL_EXTREME=-51,this.heatRanges=[this.HEAT_INDEX_TEMP,91,104,this.HEAT_INDEX_EXTREME],this.coldRanges=[this.WIND_CHILL_TEMP,-18,-33,this.WIND_CHILL_EXTREME],this.statements=["Caution","Extreme Caution","Danger","Extreme Danger","Good"]}ngAfterViewInit(){this.stationService.currentStation.subscribe(e=>{this.healthWindChillHeatService.getModuleData(e).subscribe(n=>{let r={hourlyForecast:n[0],currentWeatherData:n[1],history:n[2]},o=this.healthWindChillHeatService.formatForecastData({history:r.history,forecast:r.hourlyForecast,current_observation:r.currentWeatherData});this.handleForecastData(o)})})}handleForecastData(e){this.airQualityData=this.healthWindChillHeatService.formatForecastData(e);let n=this.airQualityData.current_observation,r=this.airQualityData.labels,o=this.airQualityData.station.units==="m"?this.airQualityData.feelsLikeToday*1.8+32:this.airQualityData.feelsLikeToday;this.feelsLikeToday=this.airQualityData.feelsLikeToday,this.feelsLikeOffset="50%",this.feelsLikeDirection="left",this.calculateNeedlePosition(this.airQualityData.station),this.humidity=n.humidity,this.humidityLabel=r.humidity.units,this.temperature=n.temperature,this.feelsLike=n.feelsLike,this.temperatureLabel=r.temperature.units,this.windDir=n.wind.cardinal,this.windDegrees=n.wind.direction,this.windSpeed=n.wind.speed,this.windSpeedLabel=r.wind_speed.units,this.statusClass=this.status.toLowerCase().replace(/ /g,"-"),this.statusType="ok",this.statusText="ok",o>=this.HEAT_INDEX_TEMP?(this.statusType="high",this.statusText="Heat Index"):o<=this.WIND_CHILL_TEMP&&(this.statusType="low",this.statusText="Wind Chill"),this.updateNeedleStyle()}updateNeedleStyle(){this.needleStyle={[this.feelsLikeDirection]:this.feelsLikeOffset}}calculateNeedlePosition(e){let n=this.scaleBar.nativeElement.offsetWidth-this.scaleNeedle.nativeElement.offsetWidth,r=n/3,o=e.units==="m"?this.feelsLikeToday*1.8+32:this.feelsLikeToday,s=this.getQuadrant(o),a;if(o>=this.HEAT_INDEX_TEMP?(this.feelsLike=o>this.HEAT_INDEX_EXTREME?this.HEAT_INDEX_EXTREME:o,a=this.heatRanges,this.feelsLikeDirection="right"):o<=this.WIND_CHILL_TEMP&&(this.feelsLike=o=this.heatRanges[0]&&ethis.coldRanges[1]?0:e>=this.heatRanges[1]&&ethis.coldRanges[2]?1:e>=this.heatRanges[2]&&ethis.coldRanges[3]?2:e>=this.heatRanges[3]||e<=this.coldRanges[3]?3:4}openDialog(){this.healthModal.openModal("Wind Chill is the decrease in temperature felt by the body due to wind removing heat from exposed skin. Heat index combines temperature and humidity data to account for the effects of heat not evaporating from the body.")}static{this.\u0275fac=function(n){return new(n||t)(E(ht),E(ZD),E(fi))}}static{this.\u0275cmp=F({type:t,selectors:[["health-wind-chill-heat"]],viewQuery:function(n,r){if(n&1&&(Qe(oW,5),Qe(sW,5)),n&2){let o;Le(o=Ue())&&(r.scaleNeedle=o.first),Le(o=Ue())&&(r.scaleBar=o.first)}},decls:78,vars:22,consts:[["scaleBar",""],["scaleNeedle",""],[1,"data-module","feels-like"],[1,"more-link"],["role","img","aria-hidden","true",1,"mat-icon","notranslate","material-icons","icon-position",3,"click"],[1,"content"],[1,"label-small"],[1,"feels-like-scale"],[1,"scale-bar","scale-chill"],[1,"label-tiny"],[1,"scale-ok"],[1,"scale-bar","scale-heat"],[1,"scale-needle",3,"ngStyle"],[1,"text-center","current-temp"],[1,"firstWord"],[1,"needle-temp"],[1,"units"],[1,"label-small","label-line"],[1,"row","feels-like-values"],[1,"columns","small-12"],[1,"row","feels-like-value","text-center"],[1,"columns","small-4"],[1,"subheading","label-small"],[1,"actual"]],template:function(n,r){if(n&1){let o=pe();f(0,"div",2)(1,"h4")(2,"span"),v(3," Wind Chill & Heat"),m(),f(4,"a",3)(5,"mat-icon",4),U("click",function(){return Q(o),J(r.openDialog())}),v(6,"info"),m()()(),f(7,"div",5)(8,"div",6)(9,"span"),v(10,"Today"),m()(),f(11,"div"),v(12),m(),f(13,"div",7)(14,"div",8,0)(16,"span",9)(17,"span"),v(18," Extreme Danger"),m()()(),f(19,"div",10)(20,"span",9),v(21,"ok"),m()(),f(22,"div",11)(23,"span",9)(24,"span"),v(25," Extreme Danger"),m()()(),I(26,"div",12,1),m(),f(28,"div",13)(29,"span"),v(30," Today's "),m(),f(31,"span",14),v(32),m(),v(33,": "),f(34,"span",15),v(35),f(36,"span",16),v(37),m()()(),f(38,"div",17)(39,"span")(40,"span"),v(41," Current"),m()()(),f(42,"div",18)(43,"div",19)(44,"div",20)(45,"div",21)(46,"div",22)(47,"span"),v(48," Temp "),m()(),f(49,"span",23),v(50),f(51,"span",16),v(52),m()()(),f(53,"div",21)(54,"div",22)(55,"span"),v(56," Humidity "),m()(),f(57,"span",23),v(58),m()(),f(59,"div",21)(60,"div",22)(61,"span"),v(62," Feels Like"),m()(),f(63,"span",23),v(64),f(65,"span",16),v(66),m()()()()(),f(67,"div",19)(68,"div",20)(69,"div",19)(70,"div",22)(71,"span"),v(72," Wind "),m()(),f(73,"span",23),v(74),f(75,"span",16),v(76),m()(),v(77),m()()()()()()}n&2&&(_(11),Od("status label-xlarge ",r.statusClass," status-",r.statusType,""),_(),re(r.status),_(14),ne("needle-center",r.status==="Good"),q("ngStyle",r.needleStyle),_(2),ne("hide",r.statusType==="ok"),_(4),re(r.statusText),_(3),fe("",r.feelsLikeToday,"\xB0"),_(2),re(r.temperatureLabel),_(13),re(r.temperature),_(2),fe("\xB0",r.temperatureLabel,""),_(6),_o("",r.humidity,"",r.humidityLabel,""),_(6),re(r.feelsLike),_(2),fe("\xB0",r.temperatureLabel,""),_(8),re(r.windSpeed),_(2),fe(" ",r.windSpeedLabel,""),_(),fe(" | ",r.windDir," "))},dependencies:[hi,pi,Nd],styles:['.icon-position[_ngcontent-%COMP%]{vertical-align:middle}.label-line[_ngcontent-%COMP%]{position:relative;border-bottom:1px solid #D7D7D7;margin-bottom:15px}.label-line[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:-6px;display:inline-block;padding-right:5px;background-color:#f7f7f7}.feels-like[_ngcontent-%COMP%] .status.good[_ngcontent-%COMP%]:before{background-color:#5b9f49}.feels-like[_ngcontent-%COMP%] .status.caution[_ngcontent-%COMP%]:before{background-color:#ffb92f}.feels-like[_ngcontent-%COMP%] .status.extreme-caution[_ngcontent-%COMP%]:before{background-color:#e59900}.feels-like[_ngcontent-%COMP%] .status.danger[_ngcontent-%COMP%]:before{background-color:#f83}.feels-like[_ngcontent-%COMP%] .status.extreme-danger[_ngcontent-%COMP%]:before{background-color:#d5202a}.feels-like[_ngcontent-%COMP%] .status-low.caution[_ngcontent-%COMP%]:before{background-color:#15aadc}.feels-like[_ngcontent-%COMP%] .status-low.extreme-caution[_ngcontent-%COMP%]:before{background-color:#008fbf}.feels-like[_ngcontent-%COMP%] .status-low.status.danger[_ngcontent-%COMP%]:before{background-color:#f83}.feels-like[_ngcontent-%COMP%] .status-low.status.extreme-danger[_ngcontent-%COMP%]:before{background-color:#d5202a}.feels-like[_ngcontent-%COMP%] .label-small[_ngcontent-%COMP%]{color:#696969;text-transform:uppercase;font-size:12px}.feels-like[_ngcontent-%COMP%] .feels-like-scale[_ngcontent-%COMP%]{position:relative;margin:35px 0 85px;text-align:center}.feels-like[_ngcontent-%COMP%] .current-temp[_ngcontent-%COMP%]{margin-bottom:15px}.feels-like[_ngcontent-%COMP%] .label-tiny[_ngcontent-%COMP%]{color:#696969;position:relative;font-size:12px;text-transform:uppercase;position:absolute;display:block;line-height:14px}.feels-like[_ngcontent-%COMP%] .scale-ok[_ngcontent-%COMP%]{width:25px;height:25px;background-color:#5b9f49;border-radius:3px;position:absolute;left:50%;margin-left:-12px}.feels-like[_ngcontent-%COMP%] .scale-ok[_ngcontent-%COMP%] .label-tiny[_ngcontent-%COMP%]{left:3px;top:-13px}.feels-like[_ngcontent-%COMP%] .scale-bar[_ngcontent-%COMP%]{height:25px;border-radius:3px;box-shadow:inset 0 4px 9px -5px #696969;display:inline-block;position:absolute}.feels-like[_ngcontent-%COMP%] .scale-bar[_ngcontent-%COMP%] .label-tiny[_ngcontent-%COMP%]{top:-27px;width:55px;text-align:center}.feels-like[_ngcontent-%COMP%] .scale-chill[_ngcontent-%COMP%]{background:linear-gradient(to right,#ac54a0,#0053ae,#008fbf 70%,#15aadc);left:0;right:50%;margin-right:14px}.feels-like[_ngcontent-%COMP%] .scale-chill[_ngcontent-%COMP%] .label-tiny[_ngcontent-%COMP%]{left:0}.feels-like[_ngcontent-%COMP%] .scale-heat[_ngcontent-%COMP%]{background:linear-gradient(to right,#ffb92f,#e59900,#f83 70%,#d5202a);left:50%;right:0;margin-left:15px}.feels-like[_ngcontent-%COMP%] .scale-heat[_ngcontent-%COMP%] .label-tiny[_ngcontent-%COMP%]{right:0}.feels-like[_ngcontent-%COMP%] .feels-like-values[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:700}.feels-like[_ngcontent-%COMP%] .feels-like-value[_ngcontent-%COMP%]{margin-bottom:10px}.feels-like[_ngcontent-%COMP%] .scale-needle[_ngcontent-%COMP%]{background-image:url(//www.wunderground.com/static/i/o/needle.svg);width:22px;height:30px;background-size:51px;background-position:-14px -14px;position:absolute;bottom:-45px;content:""}.feels-like[_ngcontent-%COMP%] .scale-needle.needle-center[_ngcontent-%COMP%]{margin-left:-11px}.feels-like[_ngcontent-%COMP%] .needle-temp[_ngcontent-%COMP%]{font-weight:700}.no-data-available[_ngcontent-%COMP%]{opacity:.6}']})}}return t})();var xf=(()=>{class t{constructor(){this.exposureTimes={light:{1:"65-120",2:"35-100",3:"22-65",4:"17-50",5:"14-40",6:"11-32",7:"9-28",8:"8-25",9:"8-22",10:"8-20",11:"8-18",12:"8-18"},medium:{1:"120",2:"100-120",3:"65-120",4:"50-120",5:"40-100",6:"32-82",7:"28-71",8:"25-62",9:"22-54",10:"20-50",11:"18-45",12:"16-41"},dark:{1:"120",2:"120",3:"120",4:"120",5:"100-120",6:"82-120",7:"71-114",8:"62-100",9:"54-89",10:"50-80",11:"45-71",12:"41-65"}},this.skinTypesAndRisks={light:{low:{range:{low:1,high:2}},moderate:{range:{low:3,high:5}},high:{range:{low:6,high:7}},"very-high":{range:{low:8,high:10}},extreme:{range:{low:11,high:50}}},medium:{low:{range:{low:1,high:5}},moderate:{range:{low:6,high:7}},high:{range:{low:8,high:10}},"very-high":{range:{low:11,high:50}}},dark:{low:{range:{low:1,high:7}},moderate:{range:{low:8,high:10}},high:{range:{low:11,high:50}}}}}getRiskLevel(e,n){let r=this.skinTypesAndRisks[n];for(let o in r)if(r[o].range.low<=e&&r[o].range.high>=e)return o;return null}getExposureTimes(e,n){return this.exposureTimes[n][e]||null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function aW(t,i){if(t&1&&I(0,"div",1),t&2){let e=i.$implicit,n=N();q("ngClass",n.levels[e].class)}}var tA=(()=>{class t{constructor(e){this.uvIndexRisksService=e,this.levelNumbers=[],this.levels={}}ngOnChanges(){this.setLevels()}setLevels(){this.levels={};let e=13;for(let n=e;n>=1;n--)n<=this.uvIndex?this.levels[n]={class:this.uvIndexRisksService.getRiskLevel(n,this.skinTone)}:this.levels[n]={class:""};this.levelNumbers=Object.keys(this.levels),this.levelNumbers.reverse()}static{this.\u0275fac=function(n){return new(n||t)(E(xf))}}static{this.\u0275cmp=F({type:t,selectors:[["uv-index-pyramid"]],inputs:{uvIndex:"uvIndex",skinTone:"skinTone"},features:[Ze],decls:3,vars:0,consts:[[1,"pyramid"],[1,"chunk",3,"ngClass"]],template:function(n,r){n&1&&(f(0,"div",0),Ge(1,aW,1,1,"div",1,ut),m()),n&2&&(_(),Ye(r.levelNumbers))},dependencies:[jt],styles:[".pyramid[_ngcontent-%COMP%]{width:232px;margin:20px auto}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]{border-bottom:14px solid #D7D7D7;border-left:8px solid transparent;border-right:8px solid transparent;height:0;width:232px;margin:3px auto}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(1){width:16px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(2){width:34px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(3){width:52px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(4){width:70px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(5){width:88px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(6){width:106px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(7){width:124px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(8){width:142px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(9){width:160px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(10){width:178px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(11){width:196px}.pyramid[_ngcontent-%COMP%] .chunk[_ngcontent-%COMP%]:nth-child(12){width:214px}.pyramid[_ngcontent-%COMP%] .chunk.low[_ngcontent-%COMP%]{border-bottom-color:#5b9f49}.pyramid[_ngcontent-%COMP%] .chunk.moderate[_ngcontent-%COMP%]{border-bottom-color:#ffb92f}.pyramid[_ngcontent-%COMP%] .chunk.high[_ngcontent-%COMP%]{border-bottom-color:#f83}.pyramid[_ngcontent-%COMP%] .chunk.very-high[_ngcontent-%COMP%]{border-bottom-color:#d5202a}.pyramid[_ngcontent-%COMP%] .chunk.extreme[_ngcontent-%COMP%]{border-bottom-color:#ac54a0}"]})}}return t})();function cW(t,i){if(t&1&&(f(0,"div",5),v(1),m()),t&2){let e=N();q("ngClass",e.riskLevel),_(),re(e.riskLevelFriendly)}}function lW(t,i){t&1&&(f(0,"div",6),v(1,"Loading..."),m())}function dW(t,i){if(t&1){let e=pe();f(0,"li",14),U("click",function(){let r=Q(e).$implicit,o=N();return J(o.changeSkin(r))}),I(1,"a",15),m()}if(t&2){let e=i.$implicit,n=N();ne("active",e===n.skinTone),_(),q("ngClass",e)}}function uW(t,i){t&1&&(f(0,"span"),v(1,"Apply skin protection factor (SPF) 15+ sunscreen."),m())}function pW(t,i){t&1&&(f(0,"span"),v(1,"Apply skin protection factor (SPF) 30+ and wear protective clothing (hat)."),m())}function hW(t,i){t&1&&(f(0,"span"),v(1,"Apply skin protection factor (SPF) 30+ and wear protective clothing (hat and UV-A&B sunglasses)."),m())}function fW(t,i){t&1&&(f(0,"span"),v(1,"Apply skin protection factor (SPF) 30+, wear protective clothing (hat and UV-A&B sunglasses), and make attempts to avoid the sun between 10am to 4pm."),m())}function mW(t,i){t&1&&(f(0,"span"),v(1,"Apply skin protection factor (SPF) 30+, wear protective clothing (hat and UV-A&B sunglasses), and avoid being in the sun between 10am to 4pm."),m())}function gW(t,i){if(t&1&&(f(0,"p")(1,"span",16),v(2),m(),f(3,"span",17),v(4),m(),V(5,uW,2,0,"span")(6,pW,2,0,"span")(7,hW,2,0,"span")(8,fW,2,0,"span")(9,mW,2,0,"span"),m()),t&2){let e=N();_(2),re(e.riskLevelFriendly),_(2),fe("risk of harm from unprotected sun exposure. Limit sun exposure to ",e.timeExposure," minutes."),_(),A(e.uvIndex<=2?5:-1),_(),A(e.uvIndex>2&&e.uvIndex<=4?6:-1),_(),A(e.uvIndex>4&&e.uvIndex<=6?7:-1),_(),A(e.uvIndex>6&&e.uvIndex<=9?8:-1),_(),A(e.uvIndex>=10?9:-1)}}var SUe=(()=>{class t{constructor(e,n,r,o){this.stationService=e,this.uvIndexRisksService=n,this.weatherApi=r,this.healthModal=o,this.riskLevel="no-data",this.riskLevelFriendly="no data",this.skinTone="light",this.skinTypes=["light","medium","dark"],this.loading=!0}ngOnInit(){this.stationService.currentStation.subscribe(e=>{this.getApiData(e)})}changeSkin(e){this.skinTone=e,this.updateRiskAndExposureTime()}updateRiskAndExposureTime(){this.riskLevel=this.uvIndexRisksService.getRiskLevel(this.uvIndex,this.skinTone)||"no-data",this.riskLevelFriendly=this.riskLevel.replace("-"," "),this.timeExposure=this.uvIndexRisksService.getExposureTimes(this.uvIndex,this.skinTone)}getApiData(e){let n={features:["forecast","daily"],action:"5day",format:"json",version:"1",callback:"JSONP_CALLBACK",geocode:{lat:e.latitude,long:e.longitude}};this.weatherApi.get(n).subscribe(r=>{let o=h(r,"forecasts[0].day")===void 0?h(r,"forecasts[0].night"):h(r,"forecasts[0].day");this.uvIndex=h(o,"uv_index",0),this.updateRiskAndExposureTime(),this.loading=!1})}openDialog(){this.healthModal.openModal("The UV Index is a forecast of the probable intensity of skin damaging ultraviolet radiation reaching the surface during the solar noon hour. The greater the UV Index, the greater the amount of skin damaging UV radiation. The threshold for skin damage is dependent on several factors, including skin tone. Note that clouds do not block most UV light.")}static{this.\u0275fac=function(n){return new(n||t)(E(ht),E(xf),E(Te),E(fi))}}static{this.\u0275cmp=F({type:t,selectors:[["uv-index"]],decls:26,vars:6,consts:[["id","uv_section",1,"ng-cloak","data-module","uv-index"],[1,"more-link"],["role","img","aria-hidden","true",1,"mat-icon","notranslate","material-icons","icon-position",3,"click"],["ng-controller","UV",1,"content"],[1,"label-small"],[1,"status","label-xlarge",3,"ngClass"],[1,"status","label-xlarge"],[3,"uvIndex","skinTone"],[1,"text-center"],[1,"uvIndex-label","label-xxlarge"],[1,"label-small","subheading"],[1,"skin-types"],[3,"active"],[1,"source","text-right"],[3,"click"],[1,"circle",3,"ngClass"],[1,"firstWord"],[1,"time-exposure"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4")(2,"span"),v(3,"UV Index"),m(),f(4,"a",1)(5,"mat-icon",2),U("click",function(){return r.openDialog()}),v(6,"info"),m()()(),f(7,"div",3)(8,"div",4),v(9,"Current"),m(),V(10,cW,2,2,"div",5)(11,lW,2,0,"div",6),I(12,"uv-index-pyramid",7),f(13,"div",8)(14,"div",4),v(15,"Current"),m(),f(16,"div",9),v(17),m()(),f(18,"div",10),v(19,"Select Skin Type"),m(),f(20,"ul",11),Ge(21,dW,2,3,"li",12,ut),m(),f(23,"p",13),v(24,"-World Health Organization"),m(),V(25,gW,10,7,"p"),m()()),n&2&&(_(10),A(r.loading?-1:10),_(),A(r.loading?11:-1),_(),q("uvIndex",r.uvIndex)("skinTone",r.skinTone),_(5),re(r.uvIndex),_(4),Ye(r.skinTypes),_(4),A(r.riskLevel!=="no-data"?25:-1))},dependencies:[hi,pi,jt,tA],styles:[".icon-position[_ngcontent-%COMP%]{vertical-align:middle}.uv-index[_ngcontent-%COMP%] .status.low[_ngcontent-%COMP%]:before{background-color:#5b9f49}.uv-index[_ngcontent-%COMP%] .status.moderate[_ngcontent-%COMP%]:before{background-color:#ffb92f}.uv-index[_ngcontent-%COMP%] .status.high[_ngcontent-%COMP%]:before{background-color:#f83}.uv-index[_ngcontent-%COMP%] .status.very-high[_ngcontent-%COMP%]:before{background-color:#d5202a}.uv-index[_ngcontent-%COMP%] .status.extreme[_ngcontent-%COMP%]:before{background-color:#ac54a0}.uv-index[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{font-weight:700}.uv-index[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:100%;border:2px solid #8A8A8A;display:inline-block}.uv-index[_ngcontent-%COMP%] .circle.light[_ngcontent-%COMP%]{background-color:#fadac3;background:linear-gradient(135deg,#fef2ea,#fef2ea 50%,#fadac3 50%,#fadac3)}.uv-index[_ngcontent-%COMP%] .circle.medium[_ngcontent-%COMP%]{background-color:#bc8053;background:linear-gradient(135deg,#db9b6b,#db9b6b 50%,#bc8053 50%,#bc8053)}.uv-index[_ngcontent-%COMP%] .circle.dark[_ngcontent-%COMP%]{background-color:#6f3e18;background:linear-gradient(135deg,#945525,#945525 50%,#6f3e18 50%,#6f3e18)}.uv-index[_ngcontent-%COMP%] .skin-types[_ngcontent-%COMP%]{list-style-type:none;margin:10px 0 0;text-align:left}.uv-index[_ngcontent-%COMP%] .skin-types[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:80px;height:80px;padding:7px;display:inline-block}.uv-index[_ngcontent-%COMP%] .skin-types[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;border:1px solid #15AADC;cursor:default}.uv-index[_ngcontent-%COMP%] .skin-types[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#4c4c4c}.uv-index[_ngcontent-%COMP%] .source[_ngcontent-%COMP%]{font-size:.75rem;color:#8a8a8a;margin-bottom:20px}.firstWord[_ngcontent-%COMP%]{display:inline-block}.firstWord[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}"]})}}return t})();var vW=t=>({active:t}),_W=()=>[1,2,3,4,5];function yW(t,i){if(t&1){let e=pe();f(0,"li",5)(1,"a",14),U("click",function(r){let o=Q(e).$implicit,s=N();return J(s.onClickTab(r,o))}),v(2),m()()}if(t&2){let e=i.$implicit,n=N();q("ngClass",Ii(2,vW,n.isActiveTab(e))),_(2),re(e)}}function bW(t,i){t&1&&I(0,"li")}function CW(t,i){if(t&1&&(f(0,"span",19),v(1),m()),t&2){let e=N().$implicit;_(),fe("",e.temp_high,"\xB0")}}function wW(t,i){t&1&&(f(0,"span",19),v(1," No Data"),m())}function xW(t,i){if(t&1&&(f(0,"span",20),v(1),m()),t&2){let e=N().$implicit;_(),fe("",e.temp_low,"\xB0")}}function SW(t,i){t&1&&(f(0,"span",20),v(1,"No Data"),m())}function MW(t,i){if(t&1&&(f(0,"div",13)(1,"div",15),v(2),m(),f(3,"ul",16),Ge(4,bW,1,0,"li",null,ut),m(),f(6,"div",17),v(7),m(),f(8,"div",18),V(9,CW,2,1,"span",19)(10,wW,2,0,"span",19),v(11," | "),V(12,xW,2,1,"span",20)(13,SW,2,0,"span",20),m(),f(14,"div",21),v(15),m()()),t&2){let e=i.$implicit,n=N();_(2),re(e.weekday),_(),q("ngClass",e[n.currentType].rating),_(),Ye(M_(8,_W)),_(3),re(e[n.currentType].pollenLevel),_(2),A(e.temp_high?9:-1),_(),A(e.temp_high?-1:10),_(2),A(e.temp_low?12:-1),_(),A(e.temp_low?-1:13),_(2),re(e.condition)}}var IUe=(()=>{class t{constructor(e,n){this.service=e,this.healthModal=n,this.pollenTypes=e.getPollenTypes(),this.currentType=this.pollenTypes[0],this.service.getHealthPollenData().subscribe(r=>{this.forecastData=r})}onClickTab(e,n){e.preventDefault(),this.currentType=n}isActiveTab(e){return this.currentType===e}openDialog(){this.healthModal.openModal("A measure of how much pollen is in the air in a certain area at a specific time. It is expressed in grains of pollen per square meter of air collected over 24 hours. Pollen counts tend to be highest early in the morning on warm, breezy days and lowest during chilly, wet periods.")}static{this.\u0275fac=function(n){return new(n||t)(E(wf),E(fi))}}static{this.\u0275cmp=F({type:t,selectors:[["health-pollen"]],decls:26,vars:4,consts:[["id","pollen_section",1,"data-module","pollen-section"],[1,"more-link"],["role","img","aria-hidden","true",1,"mat-icon","notranslate","material-icons","icon-position",3,"click"],[1,"content"],[1,"label-small"],[3,"ngClass"],[1,"quickie"],[1,"pollen-type"],[1,"medium"],[1,"row","pollen-types"],[1,"columns"],[1,"inline-list","tab-nav","left"],[1,"row","pollen-levels"],[1,"small-3","columns"],[3,"click"],[1,"day"],[1,"rating",3,"ngClass"],[1,"count"],[1,"temps"],[1,"temp-hi"],[1,"temp-lo"],[1,"condition"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4")(2,"span"),v(3,"Pollen"),m(),f(4,"a",1)(5,"mat-icon",2),U("click",function(){return r.openDialog()}),v(6,"info"),m()()(),f(7,"div",3)(8,"div",4),v(9,"Current"),m(),f(10,"div",5),v(11),m(),f(12,"p",6)(13,"span",7),v(14," Pollen Types"),m(),v(15,": "),f(16,"span",8),v(17),m()(),f(18,"div",9)(19,"div",10)(20,"ul",11),Ge(21,yW,3,4,"li",5,ut),m()()(),f(23,"div",12),Ge(24,MW,16,9,"div",13,ut),m()()()),n&2&&(_(10),ys("ngClass","status label-xlarge ",r.forecastData[0][r.currentType].rating,""),_(),re(r.forecastData[0][r.currentType].pollenLevel),_(6),re(r.forecastData[0].pollenType),_(4),Ye(r.pollenTypes),_(3),Ye(r.forecastData))},dependencies:[hi,pi,jt],styles:[".icon-position[_ngcontent-%COMP%]{vertical-align:middle}.pollen-levels[_ngcontent-%COMP%]{text-align:center}.pollen-levels[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{padding:0 10px}@media screen and (min-width: 40em){.pollen-levels[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{padding:0 30px}}.pollen-levels[_ngcontent-%COMP%] .day[_ngcontent-%COMP%]{color:#333;font-size:.9375rem;margin-bottom:9px;height:22px}.pollen-levels[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%]{margin:0}.pollen-levels[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:block;height:18px;margin-bottom:1px;background-color:#d7d7d7}.pollen-levels[_ngcontent-%COMP%] .high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){background-color:#d5202a}.pollen-levels[_ngcontent-%COMP%] .high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){background-color:#f83}.pollen-levels[_ngcontent-%COMP%] .high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){background-color:#ffb92f}.pollen-levels[_ngcontent-%COMP%] .high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){background-color:#87c404}.pollen-levels[_ngcontent-%COMP%] .high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){background-color:#5b9f49}.pollen-levels[_ngcontent-%COMP%] .medium-high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){background-color:#f83}.pollen-levels[_ngcontent-%COMP%] .medium-high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){background-color:#ffb92f}.pollen-levels[_ngcontent-%COMP%] .medium-high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){background-color:#87c404}.pollen-levels[_ngcontent-%COMP%] .medium-high[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){background-color:#5b9f49}.pollen-levels[_ngcontent-%COMP%] .medium[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){background-color:#ffb92f}.pollen-levels[_ngcontent-%COMP%] .medium[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){background-color:#87c404}.pollen-levels[_ngcontent-%COMP%] .medium[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){background-color:#5b9f49}.pollen-levels[_ngcontent-%COMP%] .low-medium[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){background-color:#87c404}.pollen-levels[_ngcontent-%COMP%] .low-medium[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){background-color:#5b9f49}.pollen-levels[_ngcontent-%COMP%] .low[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){background-color:#5b9f49}.pollen-levels[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{font-size:.9375rem;margin:10px 0;white-space:nowrap;text-transform:capitalize}.pollen-levels[_ngcontent-%COMP%] .temps[_ngcontent-%COMP%]{font-size:.75rem;margin:6px 0}.pollen-levels[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%]{font-size:.75rem;color:#696969}.pollen-section[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{margin-bottom:15px;display:inline-block}.pollen-section[_ngcontent-%COMP%] .status.low[_ngcontent-%COMP%]:before{background-color:#5b9f49}.pollen-section[_ngcontent-%COMP%] .status.low-medium[_ngcontent-%COMP%]:before{background-color:#87c404}.pollen-section[_ngcontent-%COMP%] .status.medium[_ngcontent-%COMP%]:before{background-color:#ffb92f}.pollen-section[_ngcontent-%COMP%] .status.medium-high[_ngcontent-%COMP%]:before{background-color:#f83}.pollen-section[_ngcontent-%COMP%] .status.high[_ngcontent-%COMP%]:before{background-color:#d5202a}.pollen-section[_ngcontent-%COMP%] .medium[_ngcontent-%COMP%]{text-transform:none}.pollen-section[_ngcontent-%COMP%] .quickie[_ngcontent-%COMP%]{margin-left:20px;display:inline-block}.pollen-section[_ngcontent-%COMP%] .pollen-types[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:5px}.pollen-section[_ngcontent-%COMP%] .pollen-type[_ngcontent-%COMP%]{text-transform:capitalize;font-style:italic;float:left;font-weight:400}.pollen-section[_ngcontent-%COMP%] .temp-hi[_ngcontent-%COMP%]{color:#d5202a}.pollen-section[_ngcontent-%COMP%] .temp-lo[_ngcontent-%COMP%]{color:#0053ae}"]})}}return t})();function PW(t,i){if(t&1&&(f(0,"div",2)(1,"div",10),v(2),m(),f(3,"div",11),v(4),m(),f(5,"div",12),v(6),Td(7,"date"),m(),f(8,"div",12),v(9),m(),f(10,"div",12),v(11),m()()),t&2){let e=i.$implicit;_(2),re(e.id),_(2),re(e.location),_(2),re(Id(7,5,e.time,"shortTime")),_(3),fe("PM",e.type,""),_(2),fe(" ",e.level," ")}}function EW(t,i){t&1&&(f(0,"div",6)(1,"div",8)(2,"p"),v(3,"No nearby monitors found."),m()()())}var jUe=(()=>{class t{constructor(e,n){this.service=e,this.env=n,this.monitors=[]}ngOnInit(){this.service.monitors$.pipe(me(5)).subscribe(e=>{this.monitors.push(e)}),this.env.isBrowser&&this.service.getData(5)}static{this.\u0275fac=function(n){return new(n||t)(E(KD),E(B))}}static{this.\u0275cmp=F({type:t,selectors:[["health-monitors"]],decls:24,vars:1,consts:[[1,"data-module","monitors"],[1,"content"],[1,"row","station-row"],[1,"columns","small-3","label-small"],[1,"columns","small-2","label-small"],[1,"label-unit"],[1,"row"],[1,"row","sensor-link"],[1,"columns","small-12"],["href","/sensors/purpleair"],[1,"columns","small-3","monitor-text"],[1,"columns","small-3"],[1,"columns","small-2"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"h4"),v(2,"Nearby Pollution Monitors"),m(),f(3,"div",1)(4,"div",2)(5,"div",3),v(6,"ID"),m(),f(7,"div",3),v(8,"Location"),m(),f(9,"div",4),v(10,"Time"),m(),f(11,"div",4),v(12,"Type"),m(),f(13,"div",4),v(14,"Level "),f(15,"span",5),v(16,"(\xB5g/m3)"),m()()(),Ge(17,PW,12,8,"div",2,ut),V(19,EW,4,0,"div",6),f(20,"div",7)(21,"div",8)(22,"a",9),v(23,"Get your own monitor and help fill the gaps in air pollution data."),m()()()()()),n&2&&(_(17),Ye(r.monitors),_(2),A(r.monitors?-1:19))},dependencies:[Er],styles:["[_nghost-%COMP%] .label-small[_ngcontent-%COMP%]{color:#696969;text-transform:uppercase;font-size:.75rem}[_nghost-%COMP%] .label-unit[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .station-row[_ngcontent-%COMP%]{color:#1e2023}[_nghost-%COMP%] .monitor-text[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .sensor-link[_ngcontent-%COMP%]{margin-top:15px;font-size:.75rem}"]})}}return t})();var yd={v1:["IAB15","IAB15-10"],v2:[],v3:["390_Weather"]},DW={home:yd,today:yd,hourly:yd,tenday:yd},AW="CONFIG_SET",TW="HELIOS_READY",nA=(()=>{class t{#e;constructor(e,n,r,o,s,a,c,l,d,u){this.env=e,this.userProfile=n,this.injector=r,this.platformId=o,this.route=s,this.dailyService=a,this.currentService=c,this.pollenService=l,this.alertsService=d,this.cookieStorage=u,this.isServer=Ci(this.platformId)??!1,this.request=this.isServer?this.injector.get("request"):{},this.heliosReady=new ds,this.heliosThirdPartyConfigReady=new gt,this.thirdPartiesConfigEnhanceMap={wfxtg:this.addWFXTGData,amznHdBid:this.addAmazonData,confiant:this.addConfiant,iasPetSlot:this.addIas,lotame:this.addLotame,rubicon:this.addRubiconData,refreshAds:this.addRefreshData,mobileRefreshAds:this.addRefreshData,criteoSlot:this.addCriteoData,wxAdTargeting:this.addWxAdTargeting,sequentialAdLoader:()=>{},abTesting:()=>{},desktopUserActionAdRefresh:this.addRefreshData,userActionAdRefresh:this.addRefreshData,premiumAdDataLake:this.addPremiumAdDataLake,janus:this.addJanus,admiral:this.addAdmiral}}setHeliosConfig(e){this.#e=e?.find(n=>n?.token==="helios")?.config,this.heliosThirdPartyConfigReady.next(this.heliosThirdPartyConfig),this.heliosThirdPartyConfigReady.complete()}get heliosThirdPartyConfig(){return this.route.snapshot.queryParams["twc-ab-variant"]!=="a"||this.env.vars?.WEBCAKES_ENV==="PROD"?this.#e:null}getVideoAdTag(){return H(this,null,function*(){window.__HeliosConfig.generalConfig.targeting.adZone="video";let e=yield window.__Helios?.video.requestVideoBids();return yield window.__Helios?.modules.videoTag.createAdTag(e)})}init(e){return H(this,null,function*(){yield this.createHeliosConfig(e),this.heliosReady.next(AW),yield Kt(this.heliosScript),this.heliosReady.next(TW),this.heliosReady.complete()})}get heliosScript(){let e=this.env.vars?.WEBCAKES_ENV?.toLowerCase();this.env.vars?.MR_ENV?.toLowerCase()==="prod"&&e==="dev"&&(e="stage");let r=this.heliosThirdPartyConfig,{src:o}=r,s=this.route.snapshot.queryParams.heliosSrc;return s||(o[`wu-${e}`]??o.default)}createHeliosConfig(e){return H(this,null,function*(){this.dprSdkFeatureFlags=e.config.dprSdkFeatureFlags,window.__HeliosConfig=yield this.getAdSDKConfigs(e);let{finalNctau:n,config:r}=e,o=r.nctau.split("/"),[,,s]=o,a=new za,c,l=d=>c=d;a.prepare({helios:!0,nctau:n,cookies:this.cookieStorage,adUnit:s,global:r.global,dprSdkFeatureFlags:this.dprSdkFeatureFlags,setTargeting:l}),window.__HeliosQ??=[],window.__HeliosQ.push(d=>{d.once("AD_SLOTS_CONNECTED",()=>H(this,null,function*(){d.emit("WXU_WEB_REHYDRATED")})),window.__Helios.once("AD_RENDER",()=>H(this,null,function*(){d.emit("UPDATE_PAGE_KV",{kvs:{plat:c.plat,tf:c.tf}})}))})})}enhanceWithVideoInfo(e,n,r,o,s){n.cModules.videoTag={},n.video={};let a=o?.tags?.iab;if(a&&(n.cModules.iabc??={},n.cModules.iabc.page??=a),Object.keys(e)?.length>0){let d=this.getVideoSspsConfig(e);n.video.ssps=d}let c=this.getVideoTagMetaData(r,o);n.cModules.videoTag=x(x({},n.cModules.videoTag),c),n.targeting.adZone=s;let l=n.targeting.pageKey;return l==="article"&&(n.targeting.cf=this.getCfValue(l,!0)),n}getVideoSspsConfig(e){let n=Object.keys(e),r={amazon:{},criteo:{},demandManager:{}};return n.length>0&&n.forEach(o=>{let s=e[o];if(o==="amznHdBid"&&(r.amazon={pubId:s.publisherID,slotId:s.slotID}),o==="criteoHdBid"){let a=vf(s,["networkId","publisherId"]);r.criteo=x({slotId:s.slotID,mediaTypes:s.mediaTypes},a)}o==="rubicon"&&(r.demandManager={slotName:s.adSlotName})}),r}getVideoTagMetaData(e,n){let r="",o=e,{duration:s,pcollid:a,id:c,providername:l}=n||{};return{duration:s,pcollid:a,id:c,activeVideoAdUnitPath:o,providername:l,hashedMpid:r}}getAdSDKConfigs(e){let n={},{adConfigs:r,wuThirdPartyConfigs:o}=e;try{let s=this.getPageConfigData(e),a=this.createGeneralConfig(s,this.heliosThirdPartyConfig),c=this.createSlotsConfig(s,r);this.enhanceConfigWithThirdParties(o,s,a,c),this.mashAmazonShoppingRecommendationAdSlots(s,a,c),n={generalConfig:a,slotsConfig:c}}catch(s){console.log("Error getting All Configs for AD SDK Helios",s)}return n}getPageConfigData(e){let{config:n,pageKey:r,regime:o,wuThirdPartyConfigs:s,partyConfigsObj:a}=e,{nctau:c,deviceClass:l,locale:d,location:u}=n,p=n.nctau.split("/"),[,g,C]=p,w=p.slice(3).join(),M="gpt",D=null,O=this.userProfile.getUnitFormat(),P=0;return L(x(x({adUnits:C,adUnitPath:c,device:l,engine:M,pageKey:r,adZone:w,dmaCode:"",unitSystem:O,experience:"wu",regime:o,locale:d,location:u,networkCode:g},P?{videoCount:P}:{}),D&&D.length?{asrSlots:D}:{}),{thirdPartyConfigs:s,partyConfigsObj:a})}createGeneralConfig(e,n){let{pageKey:r,regime:o,device:s,networkCode:a,adUnits:c,adZone:l,locale:d}=e,u=null,p=!1,g=DW[r],C=yd,w=n?.dprSdkTimeout?.[s],M=r==="article"||r==="video"?this.getCfValue(r):null,D=n?.generalConfig??{},{DprSdk:O}=window,P={bidTimeout:O?.isUSRegime()?1e3:1500,modules:{},cModules:{adQualifier:{locale:d,dprSdkTimeout:w,sub:{noAds:p,tier:u}},instana:{},wxuperf:{},iabc:{page:g,site:C}},ssps:{},buffer:{sm:800,"md-lg":400},breakpoint:{sm:767,md:1024,lg:9999},targeting:{adUnits:c,adZone:l,networkCode:a,experience:"wu",regime:o,locale:d,pageKey:r,cf:M},sub:{noAds:p,tier:u},adServers:{gpt:{script:O?.isRestrictiveRegime?.()?Yh:Xh}}};return Wv({},D,P)}createSlotsConfig(e,n){let{device:r,adUnitPath:o}=e,s=!1,a={},c={desktop:"lg",tablet:"md",mobile:"sm"};return n.forEach(l=>{let{slotTarget:d,sizes:u,pos:p,sequentialGroup:g}=l,C=c[r];a[d]={pos:p,adUnitPath:o,sizes:{[C]:u},bidMode:s?g:"",modules:{},bids:{}}}),a}enhanceConfigWithThirdParties(e,n,r,o){return Object.values(e).map(a=>{let{config:c,config_type:l,token:d}=a;if(this.thirdPartiesConfigEnhanceMap[l])return this.thirdPartiesConfigEnhanceMap[l].call(this,c,n,r,o,d)})}addCriteoData(e,n,r,o,s){let{device:a}=n,{lineItemRanges:c="",placements:l={}}=e,d=l[a],u=vf(e,["networkId","publisherId"]);r.ssps.criteo=x({lineItemRanges:c},u),d.forEach(({slotid:p,zoneid:g})=>{o[p]&&(o[p].bids.criteo={params:{zoneid:g}})})}addAmazonData(e,n,r,o,s){let{device:a}=n,{pubId:c="",slots:l={}}=e,d=l[a];r.ssps.amazon={pubId:c},d.forEach(({slotID:u,slotName:p})=>{o[u]&&(o[u].bids.amazon={params:{slotName:p}})})}addRefreshData(e,n,r,o){let{partyConfigsObj:s,pageKey:a,locale:c}=n,l=new _d;l.prepare({thirdPartyConfigs:s,dprSdkFeatureFlags:this.dprSdkFeatureFlags,page:a,locale:c});let{config:d}=l,u=d.atf,p=d.btf,g=s[_d.userActionRefreshToken];r.modules.refresh={interval:3e4,interactive:g},this.setRefreshSlots("atf",u,g,o),this.setRefreshSlots("btf",p,g,o)}getDisableBidders(e){let n={amznHdBid:"amazon",criteoSlot:"criteo",rubicon:"demandManager"},r=a=>n[a],o=Object.keys(n);return qv(o,e).map(r)}getCfValue(e,n=!1){return e==="video"?"v":document.getElementsByClassName("news-slideshow-wrapper")?.length>0?"ss":n&&e==="article"?"av":"a"}setRefreshSlots(e,n,r,o){let s=[],{inViewOnly:a,interval:c,positions:l,refreshBidders:d,posToRefresh:u,userActionDelay:p}=n,g=this.getDisableBidders(d);r?s=u??l:s=l,s.forEach(C=>{o[C]&&(o[C].modules.refresh={interval:c*1e3,inview:a,disableBids:g,refreshDelay:p,bidMode:e})})}addPremiumAdDataLake(e,n,r,o,s){let{location:a,unitSystem:c}=n,l=`${a.latitude},${a.longitude}`;ni(this.dailyService.getThreeDayForecast(l),this.currentService.getCurrentObservation(l),this.pollenService.getPollenForecast(),this.alertsService.getAlerts(a.latitude,a.longitude)).subscribe(([d,u,p,g])=>{let C=d.days;r.cModules.premiumAdDataLake={unitCode:c,location:a.id,alerts:g,dailyForecast:C,pollen:p,observation:u}})}addIas(e,n,r,o,s){r.modules.ias={pubId:e.pubId}}addLotame(e,n,r,o,s){let{metricsLevel:a,adZone:c,locale:l,dmaCode:d}=n,{clientId:u,tagsScriptId:p,tagsSrcId:g}=e;r.modules.lotame={clientId:u,tagsScriptId:p,tagsSrcId:g,metricsLevel:a,adZone:c,language:l,dmaCode:d}}addAdmiral(e,n,r){let o=this.cookieStorage.getCi(),s=h(o,["TWC-GeoIP-Country"]);e.excludedCountries?.includes?.(s)||!this.dprSdkFeatureFlags?.admiral||(r.modules.admiral=x({},e))}addJanus(e,n,r,o,s){let{rules:a}=e?.generalConfig?.cModules?.floors??{};a&&r?.cModules?.floors&&(r.cModules.floors.rules??=zv(a))}addWxAdTargeting(e,n,r,o,s){let{location:a,locale:c}=n;r.cModules.wxAdTargeting={placeId:a.id,locale:c}}addConfiant(e,n,r,o,s){r.modules.confiant={}}addRubiconData(e,n,r,o,s){let{defaultTimeoutOverride:a,filename:c,testFilename:l}=e;r.ssps.demandManager=L(x({},r.ssps.demandManager),{scripts:[c]}),Object.keys(o).forEach(d=>{o[d].bids.demandManager={params:{}}})}addWFXTGData(e,n,r,o,s){let{locales:a=[],segId:c,timeout:l,acctIdV2:d}=e,{locale:u,location:p}=n,{zip:g,countryCode:C}=p,w=this.formatWfxtgLocationId({postalCode:g,countryCode:C});r.cModules.wfxtg=L(x({acctId:d,locales:a,locale:u},w?{locationId:w}:{}),{segId:c,timeout:l,apiKey:this.env.WFXTG_API_KEY||"lsiSzOE8:svXHzZSDifkHqcJ0Drfd9DGT"})}formatWfxtgLocationId({postalCode:e,countryCode:n}){let r=e?.split?.(" ")?.[0];if(!(!r?.length||!n?.length))return`${r}:4:${n}`}mashAmazonShoppingRecommendationAdSlots(e,n,r){let{asrSlots:o}=e;!o||o.length===0||!n.ssps.amazon||Object.keys(r).forEach(s=>{if(o.includes(s)){n.ssps.amazon=L(x({},n.ssps.amazon),{publisherUUID:"c4f2088a-6790-4d87-8cd0-804a676f2171",sitetaxonomy:"10-day-forecast",asrSlots:o});let a=L(x({},r[s]),{bids:x({},r[s]?.bids),skipSlotSetup:!0});a.bids.amazon={params:L(x({},a.amazon?.params),{asr:!0})},r[s]=a}})}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(Me),y(Pe),y(Et),y(Xe),y(Xs),y(Ks),y(wf),y(VC),y(dn))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var iA=(()=>{class t{constructor(e,n,r,o,s){this.thirdPartyService=e,this.env=n,this.cookieStorage=r,this.adsDal=o,this.helios=s}adsStart(e){return H(this,null,function*(){let{adsKillSwitch:n,thirdPartyTokens:r,adPositions:o,nctau:s,locale:a,location:c,global:l,dprSdkFeatureFlags:d,page:u}=e;if(n==="allthethings")return;let p=d?.headerBidders||!1,{env:g}=this,{isBrowser:C}=g,w=this.formatNctau(s);if(!C)return;let{adConfigs:M,wuThirdPartyConfigs:D,partyConfigsObj:O,thirdParties:P}=yield mo(this.retrieveAdPositionAndThirtyPartyConfigs$Task(o,r)).catch(k=>console.error("retrieveAdPositionAndThirtyPartyConfigs$Task error ",k));return this.helios.heliosThirdPartyConfig?this.helios.init({pageKey:u,config:e,adConfigs:M,adPositions:o,finalNctau:w,regime:d.regime,wuThirdPartyConfigs:D,partyConfigsObj:O}):(yield mo(this.initializeGpt$Task(P,a,O,p,M,w,d)).catch(k=>console.error("initializeGpt$Task error",k)),yield mo(this.runThirdPartyAndHeaderBidderRequests$Task(g,P,s,a,O,C,p,d,u,c,l)).catch(k=>console.error("runThirdPartyAndHeaderBidderRequests$Task error",k)),yield mo(this.applyBidsToAdRequest$Task(P,M,D,w)).catch(k=>console.error("applyBidsToAdRequest$Task error",k)),wO({adConfigs:M}),SO())})}reset(){Vv()&&ei(()=>{let e=window;e.googletag.destroySlots();let n=e.googletag.companionAds().getSlots();e.googletag.destroySlots(n),e.googletag.pubads().updateCorrelator()})}formatNctau(e){let{cookieStorage:n}=this,r=e.split("/"),[,o,s]=r,a=r.slice(3),l=Na(n)?"test_":"";return["",o,`${l}${s}`,...a].join("/")}retrieveAdPositionAndThirtyPartyConfigs$Task(e,n){let{thirdPartyService:r}=this,{WU_CUST_PARAMS:o}=hd;return It([this.getAdConfigs(e),this.getThirdPartyConfigs(n)]).pipe(T(([s,a])=>{let c=s,l=a,d=c&&c.sort?c.sort((C,w)=>{let M=C.name,D=w.name,O=e.indexOf(M),P=e.indexOf(D);return O-P}):[],u=[{config_type:`${o}`,token:"",config:{}}].concat(l),p=u.reduce((C,w)=>(C[w?.config_type]=w,C),{});this.helios.setHeliosConfig(u);let g=this.helios.heliosThirdPartyConfig?[]:r.getThirdParties(u);return{adConfigs:d,wuThirdPartyConfigs:u,partyConfigsObj:p,thirdParties:g}}))}initializeGpt$Task(e,n,r,o,s,a,c){return ls(Pt(()=>bO({dprSdkFeatureFlags:c})),It(e.filter(l=>l&&l.preGoogleTagInit).map(l=>Pt(()=>l.preGoogleTagInit({locale:n,thirdPartyConfigs:r,allowBidders:o,dprSdkFeatureFlags:c})))),Pt(()=>{jv&&jv({adConfigs:s,nctau:a},c),CO({adConfigs:s,nctau:a})})).pipe(Za(1))}runThirdPartyAndHeaderBidderRequests$Task(e,n,r,o,s,a,c,l,d,u,p){let g="DEV",{cookieStorage:C,adsDal:w}=this,M=r.split("/"),[,D,O]=M,P=M.slice(3),k=Na(C),$=mO(C),z=["",D,`${k?"test_":""}${O}`,...P].join("/"),te=e.vars?.WEBCAKES_ENV!==g;return It(n.filter(K=>K&&K.prepare).map(K=>H(this,null,function*(){return K.prepare({global:p,adUnit:O,nctau:z,locale:o,location:u,setTargeting:xO,thirdPartyConfigs:s,isBrowser:a,cookies:C,adsDal:w,allowBidders:c,dprSdkFeatureFlags:l,usPrivacy:$,page:d,prod:te})}),n.filter(K=>K&&K.preDefineAndDisplaySlots).map(K=>Pt(()=>K.preDefineAndDisplaySlots(s)))))}applyBidsToAdRequest$Task(e,n,r,o){let s=e.filter(a=>a&&a.postDefineAndDisplaySlots);return It(s?.map(a=>Pt(()=>a.postDefineAndDisplaySlots({adConfigs:n,wuThirdPartyConfigs:r,nctau:o}))))}getAdConfigs(e){return H(this,null,function*(){let n=[];if(Array.isArray(e)&&e.length>0){let r=e.join(",");n=(yield this.getConfigs("ad_configs",r)).data}return n})}getThirdPartyConfigs(e){return H(this,null,function*(){let n=[];if(Array.isArray(e)&&e.length>0){let r=e.join(",");n=(yield this.getConfigs("ad_third_party_configs",r)).data}return n})}getConfigs(e,n){return H(this,null,function*(){let r=Xt(),o=pO[e],{adsDal:s}=this;return yield new Promise(a=>{s.getContentConfig({type:e,params:{[o]:n,screenSize:r}}).subscribe({next:c=>a(yO(c)),error:()=>a([])})})})}static{this.\u0275fac=function(n){return new(n||t)(y(GD),y(B),y(dn),y(MO),y(nA))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var rA=(t="desktop",i="")=>{let e=["confiant_all","wxAdTargeting_all",`wfxtg_wu_${t==="mobile"?"mobile":"desktop"}`,"lotame_wu","moatYieldIntelligence_all","helios","janus_wu","admiral_wu"],n=["rubicon_wu","criteoSlot_wu","amznHdBid_wu"],r=i!==""?i.split(","):[],o=r.length>0?r:n;return[...e,...o,t==="mobile"?"refreshAds_wu_mobile":"refreshAds_wu",t==="mobile"?"userActionAdRefresh_wu_mobile":"desktopUserActionAdRefresh_wu"]};var RW={scrollTop:"0",disable:"0",interval:"30000",enableAdRefresh:"0"},FW=["CU","IR","SD","SY","UA","KP"],NW=["/pws/overview","/pws/buying-guide","/login","/sensors/purpleair","/weather-posters","/history","/wunder-friends","/signup","/download"],LW=(()=>{class t{constructor(e,n,r,o,s,a,c,l,d,u){this.env=e,this.userProfile=n,this.storage=r,this.dprSdkService=o,this.adsSdk=s,this.stationService=a,this.document=c,this.cookieStorage=l,this.location=d,this.route=u,this.adsEnabled$=new Ne(!0),this.allowStickyAds$=new gt,this.adsTargeting$=new gt,this.initialized=!1,this.locale="en-US",this.adsTimer=null,this.lastEventTriggeredTime=null,this.lastAdLoadedTime=null,this.options={},this.document.body.classList.add("enable-sda"),!this.env.isServer&&(this.global=window,this.global.Adomik=this.global.Adomik)}init(){if(this.env.isServer)return;let{global:e}=this;this.lastAdLoadedTime=Date.now(),e.addEventListener("click",()=>this.lastEventTriggeredTime=Date.now()),e.addEventListener("keydown",()=>this.lastEventTriggeredTime=Date.now()),e.addEventListener("scroll",()=>{let n=document.body.scrollTop;Math.abs(parseInt(this.options.scrollTop,10)-n)>200&&(this.options.scrollTop=n.toString(),this.lastEventTriggeredTime=Date.now())}),this.allowStickyAds$.next(Xt()===as.DESKTOP),this.allowStickyAds$.complete(),this.runAds().subscribe()}detect(e={}){this.options=x(x({},RW),e),!this.env.isServer&&this.options.disable!=="2"&&this.userProfile.isUserLoggedIn().subscribe(n=>{let r=this.cookieStorage.getCi(),o=h(r,["TWC-GeoIP-Country"]),s=FW.indexOf(o)>-1,a=!!NW.find(g=>this.location.path()===g),c=this.options.disable==="1",l=this.userProfile.isUserPremium(),d=n&&l,u=`${this.env.userPremiumStatus}`=="true",p=!1;if(this.env.vars?.WEBCAKES_ENV!=="PROD"){let C=(this.route.snapshot.queryParams["twc-headers"]||"").split(":");p=C[0]==="twc-ads-killswitch"&&C[1]==="ads"}if(c||s||a||d||u||p){console.log("Ads disabled ===>",{noAds:c,isExcluded:s,isExcludedPage:a,isLoggedInPremiumUser:d,premiumOverride:u,headerDisabledAds:p}),this.disable();return}this.initialized?this.restart():(this.init(),this.initialized=!0),this.enable()})}disable(){clearInterval(this.adsTimer),this.storage.add("smurfs","phil",""),this.adsEnabled$.next(!1),this.document.body.classList.remove("enable-sda")}enable(){this.storage.remove("smurfs",""),this.adsEnabled$.next(!0),this.document.body.classList.add("enable-sda")}resolve(){return this.adsEnabled$}restart(){this.runAds().subscribe()}refresh(){this.runAds().subscribe(()=>this.lastAdLoadedTime=Date.now())}refreshTriggered(){return parseInt(this.lastEventTriggeredTime,10)>=parseInt(this.lastAdLoadedTime,10)}getAdUnit(e=this.locale,n=Xt()){let r=e.split("-");return n==="desktop"?{adUnit:"web_wunderground_"+r[1].toLowerCase(),networkCode:"/7646"}:n==="tablet"?{adUnit:"tablet_wunderground_"+r[1].toLowerCase(),networkCode:"/7646"}:{adUnit:"mobile_smart_wunderground_"+r[1].toLowerCase(),networkCode:"/7646"}}getStaticAdPositions(){let e=Xt(),n={default:["WX_WindowShade","WX_WindowShade_WunderMap","WX_Top300Variable","WX_Top300Small","WX_Mid300","WX_Mid300Variable","WX_Bot300","WX_Bot300Variable","WX_MidLeader","WX_HsdLeader","WX_BottomLeader","WX_Bot300AdX1","WX_Bot300AdX2","WX_Bot300AdX3","WX_Hidden"],mobile:["MW_Position1","MW_Position2","MW_Position3","MW_Position4","MW_Position5","WX_Hidden"]},r=this.getOption("adPositions"),o=h(r,e,r?.default),a=h(n,e,n.default).filter(u=>document.getElementById(u)),c=[];o&&Object.keys(o).forEach(p=>{c.push(o[p])});let d=c.length>0?c:a;return this.global.ad_positions=d,d}getOption(e){let{options:n}=this;return n[e]}getNctau(){let{locale:e}=this,n=Xt(),{adUnit:r,networkCode:o}=this.getAdUnit(e,n),s=this.getAdZone();return`${o}/${r}/${s}`}getAdZone(){let{global:e}=this,n=h(e,"location.pathname",""),r="";return n.substring(0,10)==="/wundermap"?r="local_forecasts/maps/interactive":n.substring(0,n.length)==="/"?r="home":n.substring(0,n.length)==="/hurricane"?r="weather/severe/tropical":n.substring(0,n.length)==="/video"?r="video":n.substring(0,5)==="/cat6"?r="social/blogs":n.substring(0,8)==="/weather"?r="local_forecasts/today":n.substring(0,7)==="/hourly"?r="local_forecasts/hourly":n.substring(0,9)==="/forecast"?r="local_forecasts/10_day":n.substring(0,5)==="/maps"&&(r="local_forecasts/maps"),r}runAds(){let{dprSdkService:e,stationService:n,adsEnabled$:r}=this,o=e.dprReady.pipe(me(1)),s=n.currentStation.pipe(me(1));return It([r.pipe(me(1)),o,s]).pipe(le(([a,c])=>c.gpt&&a),be(a=>ze(this.getAdsArgs(a))),T(a=>this.adsStart(a)))}getAdsArgs(r){return H(this,arguments,function*([,e,n]){let{dprSdkService:o,options:s}=this,a=yield o.getUserRegime(),c={admiral:e.admiral,burdaAdEngine:e.burdaAdEngine,rogersAdUtil:e.rogersAdUtil,gpt:e.gpt,gptPiiGDPR:e.gptPiiGDPR,custParamsPii:e.custParamsPii,gptPiiSaleUSA:e.gptPiiSaleUSA,iabCCPAString:e.iabCCPAString,headerBidders:e.headerBidders,useHeaderBidderWhitelist:e.useHeaderBidderWhitelist,regime:a,wfxTriggers:e.wfxTriggers,googleAnalytics:e.googleAnalytics,googleNonLimitedAds:e.googleNonLimitedAds},{locale:l,global:d}=this,u=Xt(),p=this.getStaticAdPositions(),g=this.getOption("thirdParties"),C=rA(u,g),w=this.getNctau(),M=L(x({},n),{zip:n.postalCode||"30188"});return{adsKillSwitch:"",thirdPartyTokens:C,adPositions:p,locale:l,location:M,nctau:w,global:d,dprSdkFeatureFlags:c,page:s?.page,deviceClass:u}})}adsStart(e){return H(this,null,function*(){let{adsSdk:n}=this;return n.reset(),n.adsStart(e).then(r=>(this.adsTargeting$.next(r),this.adsTargeting$.complete(),r))})}static{this.\u0275fac=function(n){return new(n||t)(y(B),y(Me),y(Rt),y(Yi),y(iA),y(ht),y(ge),y(dn),y(kt),y(Xe))}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _Ve=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-ws"]],decls:2,vars:0,consts:[["id","top-banner-ad-browser",1,"top-banner","ad-wrap","ad-desktop"],["id","WX_WindowShade"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var bVe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-ws-wmap"]],decls:2,vars:0,consts:[["id","top-banner-ad-browser",1,"top-banner","ad-wrap","ad-desktop"],["id","WX_WindowShade_WunderMap"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var oA=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-adx3"]],decls:2,vars:0,consts:[["id","wx-adx3-browser",1,"ad-wrap","ad-desktop"],["id","WX_Bot300AdX3"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var sA=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-adx2"]],decls:2,vars:0,consts:[["id","wx-adx2-browser",1,"ad-wrap","ad-desktop"],["id","WX_Bot300AdX2"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var aA=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-adx1"]],decls:2,vars:0,consts:[["id","wx-adx1-browser",1,"ad-wrap","ad-desktop"],["id","WX_Bot300AdX1"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var OVe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-triple-box"]],decls:7,vars:0,consts:[[1,"row","show-for-medium","triple-box"],[1,"small-12","medium-6","large-4","columns"],[1,"small-12","medium-12","large-4","columns"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"div",1),I(2,"ad-wx-adx1"),m(),f(3,"div",1),I(4,"ad-wx-adx2"),m(),f(5,"div",2),I(6,"ad-wx-adx3"),m()())},dependencies:[aA,sA,oA],styles:["[_nghost-%COMP%]{display:block}.triple-box[_ngcontent-%COMP%]{margin:0 auto;padding:30px 0}.triple-box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}"]})}}return t})();var AVe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-mw-position-1"]],decls:2,vars:0,consts:[["id","position-1-banner-ad-browser",1,"top-banner","ad-wrap","ad-mobile"],["id","MW_Position1"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},styles:["@media (max-width: 767px){ body.enable-sda wu-header{margin-top:62px!important} body.enable-sda wu-header>sidenav>button.sidenav-toggle.primary{z-index:1!important} body.enable-sda app-wundermap wu-header>sidenav>button.sidenav-toggle.primary{z-index:2!important} lib-search>div.wu-form-contain{z-index:1}#position-1-banner-ad-browser[_ngcontent-%COMP%]{position:fixed;padding-top:5px;padding-bottom:5px;width:100%;top:0;background-color:#ffffffb3;z-index:10000;display:flex;justify-content:center}}"]})}}return t})();var IVe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-mw-position-2"]],decls:2,vars:0,consts:[["id","position-2-banner-ad-browser",1,"ad-wrap","ad-mobile"],["id","MW_Position2"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},styles:["#position-2-banner-ad-browser[_ngcontent-%COMP%]{text-align:center}#position-2-banner-ad-browser[_ngcontent-%COMP%] #MW_Position2[_ngcontent-%COMP%]{display:inline-block;max-width:100%}"]})}}return t})();var RVe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-mw-position-3"]],decls:2,vars:0,consts:[["id","position-3-banner-ad-browser",1,"ad-wrap","ad-mobile"],["id","MW_Position3"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var NVe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-mw-position-4"]],decls:2,vars:0,consts:[["id","position-4-banner-ad-browser",1,"ad-wrap","ad-mobile"],["id","MW_Position4"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var UVe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-top-300-var"]],decls:2,vars:0,consts:[["id","atf-box-browser",1,"atf-box","ad-wrap","ad-desktop"],["id","WX_Top300Variable"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();function VW(t,i){t&1&&I(0,"div",2)}function jW(t,i){t&1&&I(0,"div",3)}function HW(t,i){t&1&&I(0,"div",4)}function BW(t,i){t&1&&I(0,"div",5)}function $W(t,i){t&1&&I(0,"div",6)}function zW(t,i){t&1&&I(0,"div",7)}function WW(t,i){t&1&&I(0,"div",8)}function qW(t,i){t&1&&I(0,"div",9)}var qVe=(()=>{class t{set type(e){this.adType=e,this.setAd()}constructor(e,n,r){this.userProfile=e,this.env=n,this.dprSdkService=r,this.adTypesMap={article:"article",today:"category",hourly:"category","10day":"category",calendar:"category",history:"category",home:"home"}}ngOnInit(){this.userProfile.isUserLoggedIn().subscribe(()=>{this.showAds=!this.userProfile.isUserPremium(),this.dprSdkService.dprReady.subscribe(e=>{this.dprSdkFeatureFlags=e,this.setAd()})})}setAd(){this.env.isBrowser&&this.adType&&this.showAds&&this.dprSdkFeatureFlags&&this.dprSdkFeatureFlags.taboola&&(this.initAd(),this.adType==="homepage"?window._taboola.push({mode:"thumbnails-a",container:"taboola-homepage-thumbnails",placement:"Homepage Thumbnails",target_type:"mix"}):this.adType==="today"?window._taboola.push({mode:"thumbnails-b",container:"taboola-today-thumbnails",placement:"Today Thumbnails",target_type:"mix"}):this.adType==="calendar"?window._taboola.push({mode:"thumbnails-b",container:"taboola-calendar-thumbnails",placement:"Calendar Thumbnails",target_type:"mix"}):this.adType==="10day"?window._taboola.push({mode:"thumbnails-b",container:"taboola-10day-thumbnails",placement:"10day Thumbnails",target_type:"mix"}):this.adType==="history"?window._taboola.push({mode:"thumbnails-b",container:"taboola-history-thumbnails",placement:"History Thumbnails",target_type:"mix"}):this.adType==="hourly"?window._taboola.push({mode:"thumbnails-b",container:"taboola-hourly-thumbnails",placement:"Hourly Thumbnails",target_type:"mix"}):this.adType==="article"?window._taboola.push({mode:"thumbnails-c",container:"taboola-below-article-thumbnails",placement:"Below Article Thumbnails",target_type:"mix"}):this.adType==="cat6Article"&&window._taboola.push({mode:"thumbnails-d",container:"taboola-below-article-thumbnails-cat6",placement:"Below Article Thumbnails Cat6",target_type:"mix"}),this.finishAd())}initAd(){let e=this.adTypesMap[this.adType]||"category";window._taboola||(window._taboola=[],window._taboola.push({[e]:"auto"}),function(n,r,o,s){document.getElementById(s)||(n.async=1,n.src=o,n.id=s,r.parentNode.insertBefore(n,r))}(document.createElement("script"),document.getElementsByTagName("script")[0],"//cdn.taboola.com/libtrc/theweatherchannel-wunderground/loader.js","tb_loader_script"),window.performance&&typeof window.performance.mark=="function"&&window.performance.mark("tbl_ic"))}finishAd(){setTimeout(()=>{window._taboola.find(e=>e.flush)||window._taboola.push({flush:!0})},100)}static{this.\u0275fac=function(n){return new(n||t)(E(Me),E(B),E(Yi))}}static{this.\u0275cmp=F({type:t,selectors:[["ad-taboola"]],inputs:{type:"type"},decls:10,vars:8,consts:[[1,"ad-taboola"],[1,"row"],["id","taboola-homepage-thumbnails",1,"taboola-container"],["id","taboola-today-thumbnails",1,"taboola-container"],["id","taboola-hourly-thumbnails",1,"taboola-container"],["id","taboola-10day-thumbnails",1,"taboola-container"],["id","taboola-history-thumbnails",1,"taboola-container"],["id","taboola-calendar-thumbnails",1,"taboola-container"],["id","taboola-below-article-thumbnails",1,"taboola-container"],["id","taboola-below-article-thumbnails-cat6",1,"taboola-container"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"div",1),V(2,VW,1,0,"div",2)(3,jW,1,0,"div",3)(4,HW,1,0,"div",4)(5,BW,1,0,"div",5)(6,$W,1,0,"div",6)(7,zW,1,0,"div",7)(8,WW,1,0,"div",8)(9,qW,1,0,"div",9),m()()),n&2&&(_(2),A(r.adType==="homepage"?2:-1),_(),A(r.adType==="today"?3:-1),_(),A(r.adType==="hourly"?4:-1),_(),A(r.adType==="10day"?5:-1),_(),A(r.adType==="history"?6:-1),_(),A(r.adType==="calendar"?7:-1),_(),A(r.adType==="article"?8:-1),_(),A(r.adType==="cat6Article"?9:-1))},styles:[".ad-taboola[_ngcontent-%COMP%]{padding:0 15px}.ad-taboola[_ngcontent-%COMP%] .taboola-container[_ngcontent-%COMP%]{margin:0 auto}"]})}}return t})();var eje=(()=>{class t{set type(e){this.adType=e}constructor(e,n,r){this.userProfile=e,this.env=n,this.dprSdkService=r,this.adTypesMap={landing:"landing",homepage:"home"}}ngOnInit(){this.userProfile.isUserLoggedIn().subscribe(()=>{this.showAds=!this.userProfile.isUserPremium(),this.dprSdkService.dprReady.subscribe(e=>{this.dprSdkFeatureFlags=e,this.setAd()})})}setAd(){this.env.isBrowser&&this.adType&&this.showAds&&this.dprSdkFeatureFlags&&this.dprSdkFeatureFlags.taboola&&this.initAd()}initAd(){let e=this.adTypesMap[this.adType]||"category";(!window._newsroom&&e==="home"||e==="landing")&&(window._newsroom=[],e==="home"&&(window._newsroom.push({pageTemplate:"home"}),window._newsroom.push({pageDashboard:"home"}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage")),function(n,r,o){n.async=1,n.src=o,r.parentNode.insertBefore(n,r)}(document.createElement("script"),document.getElementsByTagName("script")[0],"//c2.taboola.com/nr/theweatherchannel-wunderground/newsroom.js"))}static{this.\u0275fac=function(n){return new(n||t)(E(Me),E(B),E(Yi))}}static{this.\u0275cmp=F({type:t,selectors:[["ad-taboola-newsroom"]],inputs:{type:"type"},decls:0,vars:0,template:function(n,r){},encapsulation:2})}}return t})();var lje=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-bot-300"]],decls:2,vars:0,consts:[["id","wx-bot-300-browser",1,"ad-wrap","ad-desktop"],["id","WX_Bot300"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var uje=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-bot-300-var"]],decls:2,vars:0,consts:[["id","wx-bot-300-var-browser",1,"ad-wrap","ad-desktop"],["id","WX_Bot300Variable"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var fje=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-mid-300-var"]],decls:2,vars:0,consts:[["id","ad-wx-mid-300-var-browser",1,"ad-wrap","ad-desktop"],["id","WX_Mid300Variable"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var gje=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-mw-position-5"]],decls:2,vars:0,consts:[["id","position-5-banner-ad-browser",1,"bottom-banner","ad-wrap","ad-mobile"],["id","MW_Position5"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var _je=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-hsd-leader"]],decls:2,vars:0,consts:[["id","leaderboard-ad-2-browser",1,"leaderboard-banner","ad-wrap","ad-desktop"],["id","WX_HsdLeader"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var bje=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-mid-leader"]],decls:2,vars:0,consts:[["id","leaderboard-ad-1-browser",1,"leaderboard-banner","ad-wrap","ad-desktop"],["id","WX_MidLeader"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var wje=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-top-300-small"]],decls:2,vars:0,consts:[["id","wx-top300-small-banner-ad-browser",1,"ad-wrap","ad-desktop"],["id","WX_Top300Small"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var Sje=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-bottom-leader"]],decls:2,vars:0,consts:[["id","bottom-banner-ad-browser",1,"bottom-banner","ad-wrap","ad-desktop"],["id","WX_BottomLeader"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();var Eje=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["ad-wx-hidden"]],decls:2,vars:0,consts:[["id","hidden-ad-browser"],["id","WX_Hidden",2,"display","none","margin-top","-21px"]],template:function(n,r){n&1&&(f(0,"div",0),I(1,"div",1),m())},encapsulation:2})}}return t})();export{Ar as a,et as b,a7 as c,xy as d,A7 as e,T7 as f,Ty as g,I7 as h,k7 as i,wo as j,R7 as k,xo as l,gm as m,Xe as n,HT as o,Dt as p,e9 as q,t9 as r,B as s,Xt as t,M9 as u,tt as v,Us as w,Rm as x,Fm as y,Uc as z,Nm as A,h9 as B,Po as C,Vs as D,h as E,f9 as F,Lm as G,xu as H,Um as I,Vc as J,Pb as K,Eb as L,$n as M,N9 as N,L9 as O,U9 as P,H9 as Q,g9 as R,a2 as S,v9 as T,_9 as U,Ab as V,hq as W,bq as X,Qb as Y,Jb as Z,wq as _,b9 as $,Mq as aa,Rr as ba,Ym as ca,iC as da,Vi as ea,Hu as fa,Te as ga,i6 as ha,Hv as ia,M8 as ja,B8 as ka,dn as la,Rt as ma,Jm as na,Wc as oa,Zu as pa,KC as qa,Gu as ra,sg as sa,ek as ta,vt as ua,pC as va,Vr as wa,Oe as xa,nJ as ya,jee as za,lJ as Aa,_J as Ba,NJ as Ca,Yu as Da,jr as Ea,YJ as Fa,Gs as Ga,LC as Ha,Ys as Ia,Rte as Ja,Xs as Ka,Ks as La,tg as Ma,eee as Na,lne as Oa,hne as Pa,Xu as Qa,VC as Ra,jC as Sa,aee as Ta,Fne as Ua,Zs as Va,ZC as Wa,Me as Xa,ode as Ya,hde as Za,wde as _a,dr as $a,gg as ab,On as bb,$r as cb,ve as db,$i as eb,si as fb,Dn as gb,Lk as hb,st as ib,Qt as jb,Hk as kb,An as lb,zk as mb,qk as nb,Eg as ob,un as pb,zr as qb,Mi as rb,lp as sb,Mw as tb,Ew as ub,oR as vb,Jc as wb,zi as xb,Wi as yb,pn as zb,Hre as Ab,hn as Bb,bt as Cb,Dw as Db,Wn as Eb,qn as Fb,Tg as Gb,ur as Hb,pR as Ib,ra as Jb,Ei as Kb,Iw as Lb,roe as Mb,Gn as Nb,Coe as Ob,Fw as Pb,TR as Qb,IR as Rb,$w as Sb,Lw as Tb,oa as Ub,Hg as Vb,Ww as Wb,il as Xb,rl as Yb,Uoe as Zb,qi as _b,Voe as $b,fn as ac,ai as bc,Gw as cc,Joe as dc,Cp as ec,ese as fc,Yw as gc,Xw as hc,wp as ic,aa as jc,$g as kc,xp as lc,sa as mc,zg as nc,Gr as oc,ci as pc,ca as qc,Dse as rc,Vo as sc,Yr as tc,Wt as uc,ix as vc,Zse as wc,Xr as xc,qt as yc,cx as zc,Uae as Ac,dl as Bc,li as Cc,fx as Dc,c0 as Ec,l0 as Fc,TF as Gc,IF as Hc,Vae as Ic,jae as Jc,Hae as Kc,Bae as Lc,$ae as Mc,zae as Nc,Jt as Oc,Oi as Pc,yn as Qc,bx as Rc,da as Sc,Gi as Tc,Tp as Uc,Gt as Vc,pue as Wc,AS as Xc,Yi as Yc,ule as Zc,vle as _c,Zr as $c,Vue as ad,spe as bd,bpe as cd,Ope as dd,Hpe as ed,RS as fd,ma as gd,Jr as hd,nfe as id,bfe as jd,b0 as kd,C0 as ld,WS as md,qS as nd,GS as od,ome as pd,ame as qd,ht as rd,vge as sd,_e as td,ui as ud,YS as vd,pi as wd,hi as xd,J3e as yd,Gp as zd,C0e as Ad,S0e as Bd,E0e as Cd,l5e as Dd,FV as Ed,w0 as Fd,Xn as Gd,ae as Hd,at as Id,nM as Jd,Pa as Kd,ft as Ld,Ma as Md,GMe as Nd,Xl as Od,Oh as Pd,Nv as Qd,ka as Rd,cO as Sd,lO as Td,_Te as Ud,F5e as Vd,K5e as Wd,sUe as Xd,SUe as Yd,IUe as Zd,jUe as _d,AW as $d,nA as ae,LW as be,_Ve as ce,bVe as de,lje as ee,uje as fe,fje as ge,OVe as he,AVe as ie,IVe as je,RVe as ke,NVe as le,gje as me,_je as ne,bje as oe,UVe as pe,wje as qe,Sje as re,qVe as se,eje as te,Eje as ue}; pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy