From d062b7bbb076f35833688770dae5862bb002babd Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 5 Jan 2024 13:30:43 +0000 Subject: [PATCH] Updating /dist --- dist/index.html | 2 +- dist/{main.d344a9e18b60c769.js => main.accb7d29684e2779.js} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename dist/{main.d344a9e18b60c769.js => main.accb7d29684e2779.js} (99%) diff --git a/dist/index.html b/dist/index.html index b704d5a..cae9444 100644 --- a/dist/index.html +++ b/dist/index.html @@ -11,6 +11,6 @@ - + \ No newline at end of file diff --git a/dist/main.d344a9e18b60c769.js b/dist/main.accb7d29684e2779.js similarity index 99% rename from dist/main.d344a9e18b60c769.js rename to dist/main.accb7d29684e2779.js index d0b0d60..83eb546 100644 --- a/dist/main.d344a9e18b60c769.js +++ b/dist/main.accb7d29684e2779.js @@ -1 +1 @@ -(self.webpackChunkrpi_webinterface=self.webpackChunkrpi_webinterface||[]).push([[179],{3515:(H,w,f)=>{"use strict";var p=f(9808),e=f(5e3);class I extends p.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends I{static makeCurrent(){(0,p.HT)(new O)}onAndCancel(u,i,l){return u.addEventListener(i,l,!1),()=>{u.removeEventListener(i,l,!1)}}dispatchEvent(u,i){u.dispatchEvent(i)}remove(u){u.parentNode&&u.parentNode.removeChild(u)}createElement(u,i){return(i=i||this.getDefaultDocument()).createElement(u)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(u){return u.nodeType===Node.ELEMENT_NODE}isShadowRoot(u){return u instanceof DocumentFragment}getGlobalEventTarget(u,i){return"window"===i?window:"document"===i?u:"body"===i?u.body:null}getBaseHref(u){const i=function R(){return A=A||document.querySelector("base"),A?A.getAttribute("href"):null}();return null==i?null:function D(o){b=b||document.createElement("a"),b.setAttribute("href",o);const u=b.pathname;return"/"===u.charAt(0)?u:`/${u}`}(i)}resetBaseElement(){A=null}getUserAgent(){return window.navigator.userAgent}getCookie(u){return(0,p.Mx)(document.cookie,u)}}let b,A=null;const F=new e.InjectionToken("TRANSITION_ID"),z=[{provide:e.APP_INITIALIZER,useFactory:function U(o,u,i){return()=>{i.get(e.ApplicationInitStatus).donePromise.then(()=>{const l=(0,p.q)(),d=u.querySelectorAll(`style[ng-transition="${o}"]`);for(let h=0;h{const h=u.findTestabilityInTree(l,d);if(null==h)throw new Error("Could not find testability for element.");return h},e.\u0275global.getAllAngularTestabilities=()=>u.getAllTestabilities(),e.\u0275global.getAllAngularRootElements=()=>u.getAllRootElements(),e.\u0275global.frameworkStabilizers||(e.\u0275global.frameworkStabilizers=[]),e.\u0275global.frameworkStabilizers.push(l=>{const d=e.\u0275global.getAllAngularTestabilities();let h=d.length,P=!1;const W=function(q){P=P||q,h--,0==h&&l(P)};d.forEach(function(q){q.whenStable(W)})})}findTestabilityInTree(u,i,l){if(null==i)return null;const d=u.getTestability(i);return null!=d?d:l?(0,p.q)().isShadowRoot(i)?this.findTestabilityInTree(u,i.host,!0):this.findTestabilityInTree(u,i.parentElement,!0):null}}let Y=(()=>{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();const X=new e.InjectionToken("EventManagerPlugins");let te=(()=>{class o{constructor(i,l){this._zone=l,this._eventNameToPlugin=new Map,i.forEach(d=>d.manager=this),this._plugins=i.slice().reverse()}addEventListener(i,l,d){return this._findPluginFor(l).addEventListener(i,l,d)}addGlobalEventListener(i,l,d){return this._findPluginFor(l).addGlobalEventListener(i,l,d)}getZone(){return this._zone}_findPluginFor(i){const l=this._eventNameToPlugin.get(i);if(l)return l;const d=this._plugins;for(let h=0;h{class o{constructor(){this._stylesSet=new Set}addStyles(i){const l=new Set;i.forEach(d=>{this._stylesSet.has(d)||(this._stylesSet.add(d),l.add(d))}),this.onStylesAdded(l)}onStylesAdded(i){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),Te=(()=>{class o extends se{constructor(i){super(),this._doc=i,this._hostNodes=new Map,this._hostNodes.set(i.head,[])}_addStylesToHost(i,l,d){i.forEach(h=>{const P=this._doc.createElement("style");P.textContent=h,d.push(l.appendChild(P))})}addHost(i){const l=[];this._addStylesToHost(this._stylesSet,i,l),this._hostNodes.set(i,l)}removeHost(i){const l=this._hostNodes.get(i);l&&l.forEach(Ge),this._hostNodes.delete(i)}onStylesAdded(i){this._hostNodes.forEach((l,d)=>{this._addStylesToHost(i,d,l)})}ngOnDestroy(){this._hostNodes.forEach(i=>i.forEach(Ge))}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(p.K0))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();function Ge(o){(0,p.q)().remove(o)}const rt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Rt=/%COMP%/g;function st(o,u,i){for(let l=0;l{if("__ngUnwrap__"===u)return o;!1===o(u)&&(u.preventDefault(),u.returnValue=!1)}}let lt=(()=>{class o{constructor(i,l,d){this.eventManager=i,this.sharedStylesHost=l,this.appId=d,this.rendererByCompId=new Map,this.defaultRenderer=new Re(i)}createRenderer(i,l){if(!i||!l)return this.defaultRenderer;switch(l.encapsulation){case e.ViewEncapsulation.Emulated:{let d=this.rendererByCompId.get(l.id);return d||(d=new Cn(this.eventManager,this.sharedStylesHost,l,this.appId),this.rendererByCompId.set(l.id,d)),d.applyToHost(i),d}case 1:case e.ViewEncapsulation.ShadowDom:return new Ft(this.eventManager,this.sharedStylesHost,i,l);default:if(!this.rendererByCompId.has(l.id)){const d=st(l.id,l.styles,[]);this.sharedStylesHost.addStyles(d),this.rendererByCompId.set(l.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(te),e.\u0275\u0275inject(Te),e.\u0275\u0275inject(e.APP_ID))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();class Re{constructor(u){this.eventManager=u,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(u,i){return i?document.createElementNS(rt[i]||i,u):document.createElement(u)}createComment(u){return document.createComment(u)}createText(u){return document.createTextNode(u)}appendChild(u,i){u.appendChild(i)}insertBefore(u,i,l){u&&u.insertBefore(i,l)}removeChild(u,i){u&&u.removeChild(i)}selectRootElement(u,i){let l="string"==typeof u?document.querySelector(u):u;if(!l)throw new Error(`The selector "${u}" did not match any elements`);return i||(l.textContent=""),l}parentNode(u){return u.parentNode}nextSibling(u){return u.nextSibling}setAttribute(u,i,l,d){if(d){i=d+":"+i;const h=rt[d];h?u.setAttributeNS(h,i,l):u.setAttribute(i,l)}else u.setAttribute(i,l)}removeAttribute(u,i,l){if(l){const d=rt[l];d?u.removeAttributeNS(d,i):u.removeAttribute(`${l}:${i}`)}else u.removeAttribute(i)}addClass(u,i){u.classList.add(i)}removeClass(u,i){u.classList.remove(i)}setStyle(u,i,l,d){d&(e.RendererStyleFlags2.DashCase|e.RendererStyleFlags2.Important)?u.style.setProperty(i,l,d&e.RendererStyleFlags2.Important?"important":""):u.style[i]=l}removeStyle(u,i,l){l&e.RendererStyleFlags2.DashCase?u.style.removeProperty(i):u.style[i]=""}setProperty(u,i,l){u[i]=l}setValue(u,i){u.nodeValue=i}listen(u,i,l){return"string"==typeof u?this.eventManager.addGlobalEventListener(u,i,ht(l)):this.eventManager.addEventListener(u,i,ht(l))}}class Cn extends Re{constructor(u,i,l,d){super(u),this.component=l;const h=st(d+"-"+l.id,l.styles,[]);i.addStyles(h),this.contentAttr=function ot(o){return"_ngcontent-%COMP%".replace(Rt,o)}(d+"-"+l.id),this.hostAttr=function it(o){return"_nghost-%COMP%".replace(Rt,o)}(d+"-"+l.id)}applyToHost(u){super.setAttribute(u,this.hostAttr,"")}createElement(u,i){const l=super.createElement(u,i);return super.setAttribute(l,this.contentAttr,""),l}}class Ft extends Re{constructor(u,i,l,d){super(u),this.sharedStylesHost=i,this.hostEl=l,this.shadowRoot=l.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const h=st(d.id,d.styles,[]);for(let P=0;P{class o extends fe{constructor(i){super(i)}supports(i){return!0}addEventListener(i,l,d){return i.addEventListener(l,d,!1),()=>this.removeEventListener(i,l,d)}removeEventListener(i,l,d){return i.removeEventListener(l,d)}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(p.K0))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();const _r=["alt","control","meta","shift"],Mr={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Dt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ln={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let dn=(()=>{class o extends fe{constructor(i){super(i)}supports(i){return null!=o.parseEventName(i)}addEventListener(i,l,d){const h=o.parseEventName(l),P=o.eventCallback(h.fullKey,d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,p.q)().onAndCancel(i,h.domEventName,P))}static parseEventName(i){const l=i.toLowerCase().split("."),d=l.shift();if(0===l.length||"keydown"!==d&&"keyup"!==d)return null;const h=o._normalizeKey(l.pop());let P="";if(_r.forEach(q=>{const le=l.indexOf(q);le>-1&&(l.splice(le,1),P+=q+".")}),P+=h,0!=l.length||0===h.length)return null;const W={};return W.domEventName=d,W.fullKey=P,W}static getEventFullKey(i){let l="",d=function Tt(o){let u=o.key;if(null==u){if(u=o.keyIdentifier,null==u)return"Unidentified";u.startsWith("U+")&&(u=String.fromCharCode(parseInt(u.substring(2),16)),3===o.location&&Dt.hasOwnProperty(u)&&(u=Dt[u]))}return Mr[u]||u}(i);return d=d.toLowerCase()," "===d?d="space":"."===d&&(d="dot"),_r.forEach(h=>{h!=d&&Ln[h](i)&&(l+=h+".")}),l+=d,l}static eventCallback(i,l,d){return h=>{o.getEventFullKey(h)===i&&d.runGuarded(()=>l(h))}}static _normalizeKey(i){return"esc"===i?"escape":i}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(p.K0))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();const $t=(0,e.createPlatformFactory)(e.platformCore,"browser",[{provide:e.PLATFORM_ID,useValue:p.bD},{provide:e.PLATFORM_INITIALIZER,useValue:function Yn(){O.makeCurrent(),G.init()},multi:!0},{provide:p.K0,useFactory:function zt(){return(0,e.\u0275setDocument)(document),document},deps:[]}]),bn=[{provide:e.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:e.ErrorHandler,useFactory:function tr(){return new e.ErrorHandler},deps:[]},{provide:X,useClass:ft,multi:!0,deps:[p.K0,e.NgZone,e.PLATFORM_ID]},{provide:X,useClass:dn,multi:!0,deps:[p.K0]},{provide:lt,useClass:lt,deps:[te,Te,e.APP_ID]},{provide:e.RendererFactory2,useExisting:lt},{provide:se,useExisting:Te},{provide:Te,useClass:Te,deps:[p.K0]},{provide:e.Testability,useClass:e.Testability,deps:[e.NgZone]},{provide:te,useClass:te,deps:[X,e.NgZone]},{provide:p.JF,useClass:Y,deps:[]}];let ur=(()=>{class o{constructor(i){if(i)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(i){return{ngModule:o,providers:[{provide:e.APP_ID,useValue:i.appId},{provide:F,useExisting:e.APP_ID},z]}}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(o,12))},o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({providers:bn,imports:[p.ez,e.ApplicationModule]}),o})();"undefined"!=typeof window&&window;var re=f(1086),ve=f(4202),Ee=f(1406),xe=f(2198),$e=f(4850);class Fe{}class Xe{}class Ye{constructor(u){this.normalizedNames=new Map,this.lazyUpdate=null,u?this.lazyInit="string"==typeof u?()=>{this.headers=new Map,u.split("\n").forEach(i=>{const l=i.indexOf(":");if(l>0){const d=i.slice(0,l),h=d.toLowerCase(),P=i.slice(l+1).trim();this.maybeSetNormalizedName(d,h),this.headers.has(h)?this.headers.get(h).push(P):this.headers.set(h,[P])}})}:()=>{this.headers=new Map,Object.keys(u).forEach(i=>{let l=u[i];const d=i.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(this.headers.set(d,l),this.maybeSetNormalizedName(i,d))})}:this.headers=new Map}has(u){return this.init(),this.headers.has(u.toLowerCase())}get(u){this.init();const i=this.headers.get(u.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(u){return this.init(),this.headers.get(u.toLowerCase())||null}append(u,i){return this.clone({name:u,value:i,op:"a"})}set(u,i){return this.clone({name:u,value:i,op:"s"})}delete(u,i){return this.clone({name:u,value:i,op:"d"})}maybeSetNormalizedName(u,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,u)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(u=>this.applyUpdate(u)),this.lazyUpdate=null))}copyFrom(u){u.init(),Array.from(u.headers.keys()).forEach(i=>{this.headers.set(i,u.headers.get(i)),this.normalizedNames.set(i,u.normalizedNames.get(i))})}clone(u){const i=new Ye;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([u]),i}applyUpdate(u){const i=u.name.toLowerCase();switch(u.op){case"a":case"s":let l=u.value;if("string"==typeof l&&(l=[l]),0===l.length)return;this.maybeSetNormalizedName(u.name,i);const d=("a"===u.op?this.headers.get(i):void 0)||[];d.push(...l),this.headers.set(i,d);break;case"d":const h=u.value;if(h){let P=this.headers.get(i);if(!P)return;P=P.filter(W=>-1===h.indexOf(W)),0===P.length?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,P)}else this.headers.delete(i),this.normalizedNames.delete(i)}}forEach(u){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>u(this.normalizedNames.get(i),this.headers.get(i)))}}class St{encodeKey(u){return Kt(u)}encodeValue(u){return Kt(u)}decodeKey(u){return decodeURIComponent(u)}decodeValue(u){return decodeURIComponent(u)}}const rr=/%(\d[a-f0-9])/gi,$n={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Kt(o){return encodeURIComponent(o).replace(rr,(u,i)=>{var l;return null!==(l=$n[i])&&void 0!==l?l:u})}function fr(o){return`${o}`}class Bt{constructor(u={}){if(this.updates=null,this.cloneFrom=null,this.encoder=u.encoder||new St,u.fromString){if(u.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function sn(o,u){const i=new Map;return o.length>0&&o.replace(/^\?/,"").split("&").forEach(d=>{const h=d.indexOf("="),[P,W]=-1==h?[u.decodeKey(d),""]:[u.decodeKey(d.slice(0,h)),u.decodeValue(d.slice(h+1))],q=i.get(P)||[];q.push(W),i.set(P,q)}),i}(u.fromString,this.encoder)}else u.fromObject?(this.map=new Map,Object.keys(u.fromObject).forEach(i=>{const l=u.fromObject[i];this.map.set(i,Array.isArray(l)?l:[l])})):this.map=null}has(u){return this.init(),this.map.has(u)}get(u){this.init();const i=this.map.get(u);return i?i[0]:null}getAll(u){return this.init(),this.map.get(u)||null}keys(){return this.init(),Array.from(this.map.keys())}append(u,i){return this.clone({param:u,value:i,op:"a"})}appendAll(u){const i=[];return Object.keys(u).forEach(l=>{const d=u[l];Array.isArray(d)?d.forEach(h=>{i.push({param:l,value:h,op:"a"})}):i.push({param:l,value:d,op:"a"})}),this.clone(i)}set(u,i){return this.clone({param:u,value:i,op:"s"})}delete(u,i){return this.clone({param:u,value:i,op:"d"})}toString(){return this.init(),this.keys().map(u=>{const i=this.encoder.encodeKey(u);return this.map.get(u).map(l=>i+"="+this.encoder.encodeValue(l)).join("&")}).filter(u=>""!==u).join("&")}clone(u){const i=new Bt({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(u),i}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(u=>this.map.set(u,this.cloneFrom.map.get(u))),this.updates.forEach(u=>{switch(u.op){case"a":case"s":const i=("a"===u.op?this.map.get(u.param):void 0)||[];i.push(fr(u.value)),this.map.set(u.param,i);break;case"d":if(void 0===u.value){this.map.delete(u.param);break}{let l=this.map.get(u.param)||[];const d=l.indexOf(fr(u.value));-1!==d&&l.splice(d,1),l.length>0?this.map.set(u.param,l):this.map.delete(u.param)}}}),this.cloneFrom=this.updates=null)}}class et{constructor(){this.map=new Map}set(u,i){return this.map.set(u,i),this}get(u){return this.map.has(u)||this.map.set(u,u.defaultValue()),this.map.get(u)}delete(u){return this.map.delete(u),this}has(u){return this.map.has(u)}keys(){return this.map.keys()}}function Yt(o){return"undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer}function Jn(o){return"undefined"!=typeof Blob&&o instanceof Blob}function jt(o){return"undefined"!=typeof FormData&&o instanceof FormData}class mt{constructor(u,i,l,d){let h;if(this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=u.toUpperCase(),function vt(o){switch(o){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||d?(this.body=void 0!==l?l:null,h=d):h=l,h&&(this.reportProgress=!!h.reportProgress,this.withCredentials=!!h.withCredentials,h.responseType&&(this.responseType=h.responseType),h.headers&&(this.headers=h.headers),h.context&&(this.context=h.context),h.params&&(this.params=h.params)),this.headers||(this.headers=new Ye),this.context||(this.context=new et),this.params){const P=this.params.toString();if(0===P.length)this.urlWithParams=i;else{const W=i.indexOf("?");this.urlWithParams=i+(-1===W?"?":Wze.set(Ve,u.setHeaders[Ve]),le)),u.setParams&&(Le=Object.keys(u.setParams).reduce((ze,Ve)=>ze.set(Ve,u.setParams[Ve]),Le)),new mt(l,d,P,{params:Le,headers:le,context:Ne,reportProgress:q,responseType:h,withCredentials:W})}}var yt=(()=>((yt=yt||{})[yt.Sent=0]="Sent",yt[yt.UploadProgress=1]="UploadProgress",yt[yt.ResponseHeader=2]="ResponseHeader",yt[yt.DownloadProgress=3]="DownloadProgress",yt[yt.Response=4]="Response",yt[yt.User=5]="User",yt))();class Dn{constructor(u,i=200,l="OK"){this.headers=u.headers||new Ye,this.status=void 0!==u.status?u.status:i,this.statusText=u.statusText||l,this.url=u.url||null,this.ok=this.status>=200&&this.status<300}}class Ke extends Dn{constructor(u={}){super(u),this.type=yt.ResponseHeader}clone(u={}){return new Ke({headers:u.headers||this.headers,status:void 0!==u.status?u.status:this.status,statusText:u.statusText||this.statusText,url:u.url||this.url||void 0})}}class Un extends Dn{constructor(u={}){super(u),this.type=yt.Response,this.body=void 0!==u.body?u.body:null}clone(u={}){return new Un({body:void 0!==u.body?u.body:this.body,headers:u.headers||this.headers,status:void 0!==u.status?u.status:this.status,statusText:u.statusText||this.statusText,url:u.url||this.url||void 0})}}class on extends Dn{constructor(u){super(u,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${u.url||"(unknown url)"}`:`Http failure response for ${u.url||"(unknown url)"}: ${u.status} ${u.statusText}`,this.error=u.error||null}}function ir(o,u){return{body:u,headers:o.headers,context:o.context,observe:o.observe,params:o.params,reportProgress:o.reportProgress,responseType:o.responseType,withCredentials:o.withCredentials}}let On=(()=>{class o{constructor(i){this.handler=i}request(i,l,d={}){let h;if(i instanceof mt)h=i;else{let q,le;q=d.headers instanceof Ye?d.headers:new Ye(d.headers),d.params&&(le=d.params instanceof Bt?d.params:new Bt({fromObject:d.params})),h=new mt(i,l,void 0!==d.body?d.body:null,{headers:q,context:d.context,params:le,reportProgress:d.reportProgress,responseType:d.responseType||"json",withCredentials:d.withCredentials})}const P=(0,re.of)(h).pipe((0,Ee.b)(q=>this.handler.handle(q)));if(i instanceof mt||"events"===d.observe)return P;const W=P.pipe((0,xe.h)(q=>q instanceof Un));switch(d.observe||"body"){case"body":switch(h.responseType){case"arraybuffer":return W.pipe((0,$e.U)(q=>{if(null!==q.body&&!(q.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return q.body}));case"blob":return W.pipe((0,$e.U)(q=>{if(null!==q.body&&!(q.body instanceof Blob))throw new Error("Response is not a Blob.");return q.body}));case"text":return W.pipe((0,$e.U)(q=>{if(null!==q.body&&"string"!=typeof q.body)throw new Error("Response is not a string.");return q.body}));default:return W.pipe((0,$e.U)(q=>q.body))}case"response":return W;default:throw new Error(`Unreachable: unhandled observe type ${d.observe}}`)}}delete(i,l={}){return this.request("DELETE",i,l)}get(i,l={}){return this.request("GET",i,l)}head(i,l={}){return this.request("HEAD",i,l)}jsonp(i,l){return this.request("JSONP",i,{params:(new Bt).append(l,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,l={}){return this.request("OPTIONS",i,l)}patch(i,l,d={}){return this.request("PATCH",i,ir(d,l))}post(i,l,d={}){return this.request("POST",i,ir(d,l))}put(i,l,d={}){return this.request("PUT",i,ir(d,l))}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(Fe))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();class Q{constructor(u,i){this.next=u,this.interceptor=i}handle(u){return this.interceptor.intercept(u,this.next)}}const ae=new e.InjectionToken("HTTP_INTERCEPTORS");let ue=(()=>{class o{intercept(i,l){return l.handle(i)}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();const Ot=/^\)\]\}',?\n/;let Qt=(()=>{class o{constructor(i){this.xhrFactory=i}handle(i){if("JSONP"===i.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ve.y(l=>{const d=this.xhrFactory.build();if(d.open(i.method,i.urlWithParams),i.withCredentials&&(d.withCredentials=!0),i.headers.forEach((Ve,Vt)=>d.setRequestHeader(Ve,Vt.join(","))),i.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){const Ve=i.detectContentTypeHeader();null!==Ve&&d.setRequestHeader("Content-Type",Ve)}if(i.responseType){const Ve=i.responseType.toLowerCase();d.responseType="json"!==Ve?Ve:"text"}const h=i.serializeBody();let P=null;const W=()=>{if(null!==P)return P;const Ve=1223===d.status?204:d.status,Vt=d.statusText||"OK",Vn=new Ye(d.getAllResponseHeaders()),Sr=function an(o){return"responseURL"in o&&o.responseURL?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null}(d)||i.url;return P=new Ke({headers:Vn,status:Ve,statusText:Vt,url:Sr}),P},q=()=>{let{headers:Ve,status:Vt,statusText:Vn,url:Sr}=W(),nn=null;204!==Vt&&(nn=void 0===d.response?d.responseText:d.response),0===Vt&&(Vt=nn?200:0);let us=Vt>=200&&Vt<300;if("json"===i.responseType&&"string"==typeof nn){const ci=nn;nn=nn.replace(Ot,"");try{nn=""!==nn?JSON.parse(nn):null}catch(ji){nn=ci,us&&(us=!1,nn={error:ji,text:nn})}}us?(l.next(new Un({body:nn,headers:Ve,status:Vt,statusText:Vn,url:Sr||void 0})),l.complete()):l.error(new on({error:nn,headers:Ve,status:Vt,statusText:Vn,url:Sr||void 0}))},le=Ve=>{const{url:Vt}=W(),Vn=new on({error:Ve,status:d.status||0,statusText:d.statusText||"Unknown Error",url:Vt||void 0});l.error(Vn)};let Le=!1;const Ne=Ve=>{Le||(l.next(W()),Le=!0);let Vt={type:yt.DownloadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(Vt.total=Ve.total),"text"===i.responseType&&!!d.responseText&&(Vt.partialText=d.responseText),l.next(Vt)},ze=Ve=>{let Vt={type:yt.UploadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(Vt.total=Ve.total),l.next(Vt)};return d.addEventListener("load",q),d.addEventListener("error",le),d.addEventListener("timeout",le),d.addEventListener("abort",le),i.reportProgress&&(d.addEventListener("progress",Ne),null!==h&&d.upload&&d.upload.addEventListener("progress",ze)),d.send(h),l.next({type:yt.Sent}),()=>{d.removeEventListener("error",le),d.removeEventListener("abort",le),d.removeEventListener("load",q),d.removeEventListener("timeout",le),i.reportProgress&&(d.removeEventListener("progress",Ne),null!==h&&d.upload&&d.upload.removeEventListener("progress",ze)),d.readyState!==d.DONE&&d.abort()}})}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(p.JF))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();const Xn=new e.InjectionToken("XSRF_COOKIE_NAME"),Ar=new e.InjectionToken("XSRF_HEADER_NAME");class qn{}let Xt=(()=>{class o{constructor(i,l,d){this.doc=i,this.platform=l,this.cookieName=d,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,p.Mx)(i,this.cookieName),this.lastCookieString=i),this.lastToken}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(p.K0),e.\u0275\u0275inject(e.PLATFORM_ID),e.\u0275\u0275inject(Xn))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),mi=(()=>{class o{constructor(i,l){this.tokenService=i,this.headerName=l}intercept(i,l){const d=i.url.toLowerCase();if("GET"===i.method||"HEAD"===i.method||d.startsWith("http://")||d.startsWith("https://"))return l.handle(i);const h=this.tokenService.getToken();return null!==h&&!i.headers.has(this.headerName)&&(i=i.clone({headers:i.headers.set(this.headerName,h)})),l.handle(i)}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(qn),e.\u0275\u0275inject(Ar))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),jr=(()=>{class o{constructor(i,l){this.backend=i,this.injector=l,this.chain=null}handle(i){if(null===this.chain){const l=this.injector.get(ae,[]);this.chain=l.reduceRight((d,h)=>new Q(d,h),this.backend)}return this.chain.handle(i)}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(Xe),e.\u0275\u0275inject(e.Injector))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),Or=(()=>{class o{static disable(){return{ngModule:o,providers:[{provide:mi,useClass:ue}]}}static withOptions(i={}){return{ngModule:o,providers:[i.cookieName?{provide:Xn,useValue:i.cookieName}:[],i.headerName?{provide:Ar,useValue:i.headerName}:[]]}}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({providers:[mi,{provide:ae,useExisting:mi,multi:!0},{provide:qn,useClass:Xt},{provide:Xn,useValue:"XSRF-TOKEN"},{provide:Ar,useValue:"X-XSRF-TOKEN"}]}),o})(),Pr=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({providers:[On,{provide:Fe,useClass:jr},Qt,{provide:Xe,useExisting:Qt}],imports:[[Or.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),o})();var De=f(3075),ln=f(3527),wn=f(591),Pn=f(6053),Mi=f(4450),Wr=f(1961),Gr=f(8514),Er=f(8896),Ps=f(1762),Dr=f(8929),or=f(7545),Hn=f(2986),Ii=f(1059),zr=f(2014),pr=f(7221),ei=f(8127),Kr=f(7224),fn=f(1709),gn=f(2994),Ti=f(2821),wr=f(4327),gs=f(537),mn=f(9146);class ar{constructor(u,i){this.id=u,this.url=i}}class _i extends ar{constructor(u,i,l="imperative",d=null){super(u,i),this.navigationTrigger=l,this.restoredState=d}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Yr extends ar{constructor(u,i,l){super(u,i),this.urlAfterRedirects=l}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ms extends ar{constructor(u,i,l){super(u,i),this.reason=l}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vi extends ar{constructor(u,i,l){super(u,i),this.error=l}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ti extends ar{constructor(u,i,l,d){super(u,i),this.urlAfterRedirects=l,this.state=d}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ki extends ar{constructor(u,i,l,d){super(u,i),this.urlAfterRedirects=l,this.state=d}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ni extends ar{constructor(u,i,l,d,h){super(u,i),this.urlAfterRedirects=l,this.state=d,this.shouldActivate=h}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class io extends ar{constructor(u,i,l,d){super(u,i),this.urlAfterRedirects=l,this.state=d}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nt extends ar{constructor(u,i,l,d){super(u,i),this.urlAfterRedirects=l,this.state=d}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class x{constructor(u){this.route=u}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class V{constructor(u){this.route=u}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class S{constructor(u){this.snapshot=u}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class k{constructor(u){this.snapshot=u}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class J{constructor(u){this.snapshot=u}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ce{constructor(u){this.snapshot=u}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _e{constructor(u,i,l){this.routerEvent=u,this.position=i,this.anchor=l}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const be="primary";class Pt{constructor(u){this.params=u||{}}has(u){return Object.prototype.hasOwnProperty.call(this.params,u)}get(u){if(this.has(u)){const i=this.params[u];return Array.isArray(i)?i[0]:i}return null}getAll(u){if(this.has(u)){const i=this.params[u];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function ct(o){return new Pt(o)}const ut="ngNavigationCancelingError";function dt(o){const u=Error("NavigationCancelingError: "+o);return u[ut]=!0,u}function M(o,u,i){const l=i.path.split("/");if(l.length>o.length||"full"===i.pathMatch&&(u.hasChildren()||l.lengthl[h]===d)}return o===u}function ne(o){return Array.prototype.concat.apply([],o)}function Pe(o){return o.length>0?o[o.length-1]:null}function Mt(o,u){for(const i in o)o.hasOwnProperty(i)&&u(o[i],i)}function Sn(o){return(0,e.\u0275isObservable)(o)?o:(0,e.\u0275isPromise)(o)?(0,ln.D)(Promise.resolve(o)):(0,re.of)(o)}const Bo={exact:function so(o,u,i){if(!Qr(o.segments,u.segments)||!hr(o.segments,u.segments,i)||o.numberOfChildren!==u.numberOfChildren)return!1;for(const l in u.children)if(!o.children[l]||!so(o.children[l],u.children[l],i))return!1;return!0},subset:Qi},_s={exact:function _t(o,u){return C(o,u)},subset:function _n(o,u){return Object.keys(u).length<=Object.keys(o).length&&Object.keys(u).every(i=>L(o[i],u[i]))},ignored:()=>!0};function Ce(o,u,i){return Bo[i.paths](o.root,u.root,i.matrixParams)&&_s[i.queryParams](o.queryParams,u.queryParams)&&!("exact"===i.fragment&&o.fragment!==u.fragment)}function Qi(o,u,i){return Zi(o,u,u.segments,i)}function Zi(o,u,i,l){if(o.segments.length>i.length){const d=o.segments.slice(0,i.length);return!(!Qr(d,i)||u.hasChildren()||!hr(d,i,l))}if(o.segments.length===i.length){if(!Qr(o.segments,i)||!hr(o.segments,i,l))return!1;for(const d in u.children)if(!o.children[d]||!Qi(o.children[d],u.children[d],l))return!1;return!0}{const d=i.slice(0,o.segments.length),h=i.slice(o.segments.length);return!!(Qr(o.segments,d)&&hr(o.segments,d,l)&&o.children[be])&&Zi(o.children[be],u,h,l)}}function hr(o,u,i){return u.every((l,d)=>_s[i](o[d].parameters,l.parameters))}class ri{constructor(u,i,l){this.root=u,this.queryParams=i,this.fragment=l}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ct(this.queryParams)),this._queryParamMap}toString(){return oo.serialize(this)}}class pt{constructor(u,i){this.segments=u,this.children=i,this.parent=null,Mt(i,(l,d)=>l.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ii(this)}}class Rs{constructor(u,i){this.path=u,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ct(this.parameters)),this._parameterMap}toString(){return lo(this)}}function Qr(o,u){return o.length===u.length&&o.every((i,l)=>i.path===u[l].path)}class Wn{}class Zr{parse(u){const i=new Ls(u);return new ri(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(u){const i=`/${gr(u.root,!0)}`,l=function Ka(o){const u=Object.keys(o).map(i=>{const l=o[i];return Array.isArray(l)?l.map(d=>`${vs(i)}=${vs(d)}`).join("&"):`${vs(i)}=${vs(l)}`}).filter(i=>!!i);return u.length?`?${u.join("&")}`:""}(u.queryParams);return`${i}${l}${"string"==typeof u.fragment?`#${function za(o){return encodeURI(o)}(u.fragment)}`:""}`}}const oo=new Zr;function ii(o){return o.segments.map(u=>lo(u)).join("/")}function gr(o,u){if(!o.hasChildren())return ii(o);if(u){const i=o.children[be]?gr(o.children[be],!1):"",l=[];return Mt(o.children,(d,h)=>{h!==be&&l.push(`${h}:${gr(d,!1)}`)}),l.length>0?`${i}(${l.join("//")})`:i}{const i=function Fs(o,u){let i=[];return Mt(o.children,(l,d)=>{d===be&&(i=i.concat(u(l,d)))}),Mt(o.children,(l,d)=>{d!==be&&(i=i.concat(u(l,d)))}),i}(o,(l,d)=>d===be?[gr(o.children[be],!1)]:[`${d}:${gr(l,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[be]?`${ii(o)}/${i[0]}`:`${ii(o)}/(${i.join("//")})`}}function jo(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vs(o){return jo(o).replace(/%3B/gi,";")}function ao(o){return jo(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ji(o){return decodeURIComponent(o)}function Ns(o){return Ji(o.replace(/\+/g,"%20"))}function lo(o){return`${ao(o.path)}${function uo(o){return Object.keys(o).map(u=>`;${ao(u)}=${ao(o[u])}`).join("")}(o.parameters)}`}const co=/^[^\/()?;=#]+/;function $i(o){const u=o.match(co);return u?u[0]:""}const Vs=/^[^=?&#]+/,Ho=/^[^&#]+/;class Ls{constructor(u){this.url=u,this.remaining=u}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pt([],{}):new pt([],this.parseChildren())}parseQueryParams(){const u={};if(this.consumeOptional("?"))do{this.parseQueryParam(u)}while(this.consumeOptional("&"));return u}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const u=[];for(this.peekStartsWith("(")||u.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),u.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(u.length>0||Object.keys(i).length>0)&&(l[be]=new pt(u,i)),l}parseSegment(){const u=$i(this.remaining);if(""===u&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(u),new Rs(Ji(u),this.parseMatrixParams())}parseMatrixParams(){const u={};for(;this.consumeOptional(";");)this.parseParam(u);return u}parseParam(u){const i=$i(this.remaining);if(!i)return;this.capture(i);let l="";if(this.consumeOptional("=")){const d=$i(this.remaining);d&&(l=d,this.capture(l))}u[Ji(i)]=Ji(l)}parseQueryParam(u){const i=function Uo(o){const u=o.match(Vs);return u?u[0]:""}(this.remaining);if(!i)return;this.capture(i);let l="";if(this.consumeOptional("=")){const P=function Wo(o){const u=o.match(Ho);return u?u[0]:""}(this.remaining);P&&(l=P,this.capture(l))}const d=Ns(i),h=Ns(l);if(u.hasOwnProperty(d)){let P=u[d];Array.isArray(P)||(P=[P],u[d]=P),P.push(h)}else u[d]=h}parseParens(u){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const l=$i(this.remaining),d=this.remaining[l.length];if("/"!==d&&")"!==d&&";"!==d)throw new Error(`Cannot parse url '${this.url}'`);let h;l.indexOf(":")>-1?(h=l.substr(0,l.indexOf(":")),this.capture(h),this.capture(":")):u&&(h=be);const P=this.parseChildren();i[h]=1===Object.keys(P).length?P[be]:new pt([],P),this.consumeOptional("//")}return i}peekStartsWith(u){return this.remaining.startsWith(u)}consumeOptional(u){return!!this.peekStartsWith(u)&&(this.remaining=this.remaining.substring(u.length),!0)}capture(u){if(!this.consumeOptional(u))throw new Error(`Expected "${u}".`)}}class Go{constructor(u){this._root=u}get root(){return this._root.value}parent(u){const i=this.pathFromRoot(u);return i.length>1?i[i.length-2]:null}children(u){const i=fo(u,this._root);return i?i.children.map(l=>l.value):[]}firstChild(u){const i=fo(u,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(u){const i=Rn(u,this._root);return i.length<2?[]:i[i.length-2].children.map(d=>d.value).filter(d=>d!==u)}pathFromRoot(u){return Rn(u,this._root).map(i=>i.value)}}function fo(o,u){if(o===u.value)return u;for(const i of u.children){const l=fo(o,i);if(l)return l}return null}function Rn(o,u){if(o===u.value)return[u];for(const i of u.children){const l=Rn(o,i);if(l.length)return l.unshift(u),l}return[]}class Gn{constructor(u,i){this.value=u,this.children=i}toString(){return`TreeNode(${this.value})`}}function Lt(o){const u={};return o&&o.children.forEach(i=>u[i.value.outlet]=i),u}class po extends Go{constructor(u,i){super(u),this.snapshot=i,qi(this,u)}toString(){return this.snapshot.toString()}}function ho(o,u){const i=function zo(o,u){const P=new Ai([],{},{},"",{},be,u,null,o.root,-1,{});return new ys("",new Gn(P,[]))}(o,u),l=new wn.X([new Rs("",{})]),d=new wn.X({}),h=new wn.X({}),P=new wn.X({}),W=new wn.X(""),q=new Xi(l,d,P,W,h,be,u,i.root);return q.snapshot=i.root,new po(new Gn(q,[]),i)}class Xi{constructor(u,i,l,d,h,P,W,q){this.url=u,this.params=i,this.queryParams=l,this.fragment=d,this.data=h,this.outlet=P,this.component=W,this._futureSnapshot=q}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._paramMap=this.params.pipe((0,$e.U)(u=>ct(u)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$e.U)(u=>ct(u)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ko(o,u="emptyOnly"){const i=o.pathFromRoot;let l=0;if("always"!==u)for(l=i.length-1;l>=1;){const d=i[l],h=i[l-1];if(d.routeConfig&&""===d.routeConfig.path)l--;else{if(h.component)break;l--}}return function Ya(o){return o.reduce((u,i)=>({params:Object.assign(Object.assign({},u.params),i.params),data:Object.assign(Object.assign({},u.data),i.data),resolve:Object.assign(Object.assign({},u.resolve),i._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(l))}class Ai{constructor(u,i,l,d,h,P,W,q,le,Le,Ne){this.url=u,this.params=i,this.queryParams=l,this.fragment=d,this.data=h,this.outlet=P,this.component=W,this.routeConfig=q,this._urlSegment=le,this._lastPathIndex=Le,this._resolve=Ne}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._paramMap=ct(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ct(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(l=>l.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ys extends Go{constructor(u,i){super(i),this.url=u,qi(this,i)}toString(){return Cs(this._root)}}function qi(o,u){u.value._routerState=o,u.children.forEach(i=>qi(o,i))}function Cs(o){const u=o.children.length>0?` { ${o.children.map(Cs).join(", ")} } `:"";return`${o.value}${u}`}function ks(o){if(o.snapshot){const u=o.snapshot,i=o._futureSnapshot;o.snapshot=i,C(u.queryParams,i.queryParams)||o.queryParams.next(i.queryParams),u.fragment!==i.fragment&&o.fragment.next(i.fragment),C(u.params,i.params)||o.params.next(i.params),function E(o,u){if(o.length!==u.length)return!1;for(let i=0;iC(i.parameters,u[l].parameters))}(o.url,u.url);return i&&!(!o.parent!=!u.parent)&&(!o.parent||go(o.parent,u.parent))}function si(o,u,i){if(i&&o.shouldReuseRoute(u.value,i.value.snapshot)){const l=i.value;l._futureSnapshot=u.value;const d=function Qa(o,u,i){return u.children.map(l=>{for(const d of i.children)if(o.shouldReuseRoute(l.value,d.value.snapshot))return si(o,l,d);return si(o,l)})}(o,u,i);return new Gn(l,d)}{if(o.shouldAttach(u.value)){const h=o.retrieve(u.value);if(null!==h){const P=h.route;return P.value._futureSnapshot=u.value,P.children=u.children.map(W=>si(o,W)),P}}const l=function Za(o){return new Xi(new wn.X(o.url),new wn.X(o.params),new wn.X(o.queryParams),new wn.X(o.fragment),new wn.X(o.data),o.outlet,o.component,o)}(u.value),d=u.children.map(h=>si(o,h));return new Gn(l,d)}}function es(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function Es(o){return"object"==typeof o&&null!=o&&o.outlets}function Bs(o,u,i,l,d){let h={};return l&&Mt(l,(P,W)=>{h[W]=Array.isArray(P)?P.map(q=>`${q}`):`${P}`}),new ri(i.root===o?u:Ja(i.root,o,u),h,d)}function Ja(o,u,i){const l={};return Mt(o.children,(d,h)=>{l[h]=d===u?i:Ja(d,u,i)}),new pt(o.segments,l)}class Xa{constructor(u,i,l){if(this.isAbsolute=u,this.numberOfDoubleDots=i,this.commands=l,u&&l.length>0&&es(l[0]))throw new Error("Root segment cannot have matrix parameters");const d=l.find(Es);if(d&&d!==Pe(l))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class m{constructor(u,i,l){this.segmentGroup=u,this.processChildren=i,this.index=l}}function me(o,u,i){if(o||(o=new pt([],{})),0===o.segments.length&&o.hasChildren())return Be(o,u,i);const l=function kt(o,u,i){let l=0,d=u;const h={match:!1,pathIndex:0,commandIndex:0};for(;d=i.length)return h;const P=o.segments[d],W=i[l];if(Es(W))break;const q=`${W}`,le=l0&&void 0===q)break;if(q&&le&&"object"==typeof le&&void 0===le.outlets){if(!mo(q,le,P))return h;l+=2}else{if(!mo(q,{},P))return h;l++}d++}return{match:!0,pathIndex:d,commandIndex:l}}(o,u,i),d=i.slice(l.commandIndex);if(l.match&&l.pathIndex{"string"==typeof h&&(h=[h]),null!==h&&(d[P]=me(o.children[P],u,h))}),Mt(o.children,(h,P)=>{void 0===l[P]&&(d[P]=h)}),new pt(o.segments,d)}}function tn(o,u,i){const l=o.segments.slice(0,u);let d=0;for(;d{"string"==typeof i&&(i=[i]),null!==i&&(u[l]=tn(new pt([],{}),0,i))}),u}function Oi(o){const u={};return Mt(o,(i,l)=>u[l]=`${i}`),u}function mo(o,u,i){return o==i.path&&C(u,i.parameters)}class mu{constructor(u,i,l,d){this.routeReuseStrategy=u,this.futureState=i,this.currState=l,this.forwardEvent=d}activate(u){const i=this.futureState._root,l=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,l,u),ks(this.futureState.root),this.activateChildRoutes(i,l,u)}deactivateChildRoutes(u,i,l){const d=Lt(i);u.children.forEach(h=>{const P=h.value.outlet;this.deactivateRoutes(h,d[P],l),delete d[P]}),Mt(d,(h,P)=>{this.deactivateRouteAndItsChildren(h,l)})}deactivateRoutes(u,i,l){const d=u.value,h=i?i.value:null;if(d===h)if(d.component){const P=l.getContext(d.outlet);P&&this.deactivateChildRoutes(u,i,P.children)}else this.deactivateChildRoutes(u,i,l);else h&&this.deactivateRouteAndItsChildren(i,l)}deactivateRouteAndItsChildren(u,i){u.value.component&&this.routeReuseStrategy.shouldDetach(u.value.snapshot)?this.detachAndStoreRouteSubtree(u,i):this.deactivateRouteAndOutlet(u,i)}detachAndStoreRouteSubtree(u,i){const l=i.getContext(u.value.outlet),d=l&&u.value.component?l.children:i,h=Lt(u);for(const P of Object.keys(h))this.deactivateRouteAndItsChildren(h[P],d);if(l&&l.outlet){const P=l.outlet.detach(),W=l.children.onOutletDeactivated();this.routeReuseStrategy.store(u.value.snapshot,{componentRef:P,route:u,contexts:W})}}deactivateRouteAndOutlet(u,i){const l=i.getContext(u.value.outlet),d=l&&u.value.component?l.children:i,h=Lt(u);for(const P of Object.keys(h))this.deactivateRouteAndItsChildren(h[P],d);l&&l.outlet&&(l.outlet.deactivate(),l.children.onOutletDeactivated(),l.attachRef=null,l.resolver=null,l.route=null)}activateChildRoutes(u,i,l){const d=Lt(i);u.children.forEach(h=>{this.activateRoutes(h,d[h.value.outlet],l),this.forwardEvent(new ce(h.value.snapshot))}),u.children.length&&this.forwardEvent(new k(u.value.snapshot))}activateRoutes(u,i,l){const d=u.value,h=i?i.value:null;if(ks(d),d===h)if(d.component){const P=l.getOrCreateContext(d.outlet);this.activateChildRoutes(u,i,P.children)}else this.activateChildRoutes(u,i,l);else if(d.component){const P=l.getOrCreateContext(d.outlet);if(this.routeReuseStrategy.shouldAttach(d.snapshot)){const W=this.routeReuseStrategy.retrieve(d.snapshot);this.routeReuseStrategy.store(d.snapshot,null),P.children.onOutletReAttached(W.contexts),P.attachRef=W.componentRef,P.route=W.route.value,P.outlet&&P.outlet.attach(W.componentRef,W.route.value),ks(W.route.value),this.activateChildRoutes(u,null,P.children)}else{const W=function bd(o){for(let u=o.parent;u;u=u.parent){const i=u.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig;if(i&&i.component)return null}return null}(d.snapshot),q=W?W.module.componentFactoryResolver:null;P.attachRef=null,P.route=d,P.resolver=q,P.outlet&&P.outlet.activateWith(d,q),this.activateChildRoutes(u,null,P.children)}}else this.activateChildRoutes(u,null,l)}}class qa{constructor(u,i){this.routes=u,this.module=i}}function Jr(o){return"function"==typeof o}function Pi(o){return o instanceof ri}const js=Symbol("INITIAL_VALUE");function Us(){return(0,or.w)(o=>(0,Pn.aj)(o.map(u=>u.pipe((0,Hn.q)(1),(0,Ii.O)(js)))).pipe((0,zr.R)((u,i)=>{let l=!1;return i.reduce((d,h,P)=>d!==js?d:(h===js&&(l=!0),l||!1!==h&&P!==i.length-1&&!Pi(h)?d:h),u)},js),(0,xe.h)(u=>u!==js),(0,$e.U)(u=>Pi(u)?u:!0===u),(0,Hn.q)(1)))}class vu{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new _o,this.attachRef=null}}class _o{constructor(){this.contexts=new Map}onChildOutletCreated(u,i){const l=this.getOrCreateContext(u);l.outlet=i,this.contexts.set(u,l)}onChildOutletDestroyed(u){const i=this.getContext(u);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const u=this.contexts;return this.contexts=new Map,u}onOutletReAttached(u){this.contexts=u}getOrCreateContext(u){let i=this.getContext(u);return i||(i=new vu,this.contexts.set(u,i)),i}getContext(u){return this.contexts.get(u)||null}}let tl=(()=>{class o{constructor(i,l,d,h,P){this.parentContexts=i,this.location=l,this.resolver=d,this.changeDetector=P,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.EventEmitter,this.deactivateEvents=new e.EventEmitter,this.attachEvents=new e.EventEmitter,this.detachEvents=new e.EventEmitter,this.name=h||be,i.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const i=this.parentContexts.getContext(this.name);i&&i.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,l){this.activated=i,this._activatedRoute=l,this.location.insert(i.hostView),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){const i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,l){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=i;const P=(l=l||this.resolver).resolveComponentFactory(i._futureSnapshot.routeConfig.component),W=this.parentContexts.getOrCreateContext(this.name).children,q=new Zo(i,W,this.location.injector);this.activated=this.location.createComponent(P,this.location.length,q),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(_o),e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.ComponentFactoryResolver),e.\u0275\u0275injectAttribute("name"),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},o.\u0275dir=e.\u0275\u0275defineDirective({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class Zo{constructor(u,i,l){this.route=u,this.childContexts=i,this.parent=l}get(u,i){return u===Xi?this.route:u===_o?this.childContexts:this.parent.get(u,i)}}let Hs=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(i,l){1&i&&e.\u0275\u0275element(0,"router-outlet")},directives:[tl],encapsulation:2}),o})();function yu(o,u=""){for(let i=0;iRr(l)===u);return i.push(...o.filter(l=>Rr(l)!==u)),i}const Xo={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ri(o,u,i){var l;if(""===u.path)return"full"===u.pathMatch&&(o.hasChildren()||i.length>0)?Object.assign({},Xo):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const h=(u.matcher||M)(i,o,u);if(!h)return Object.assign({},Xo);const P={};Mt(h.posParams,(q,le)=>{P[le]=q.path});const W=h.consumed.length>0?Object.assign(Object.assign({},P),h.consumed[h.consumed.length-1].parameters):P;return{matched:!0,consumedSegments:h.consumed,lastChild:h.consumed.length,parameters:W,positionalParamSegments:null!==(l=h.posParams)&&void 0!==l?l:{}}}function Fi(o,u,i,l,d="corrected"){if(i.length>0&&function nl(o,u,i){return i.some(l=>oi(o,u,l)&&Rr(l)!==be)}(o,i,l)){const P=new pt(u,function Gs(o,u,i,l){const d={};d[be]=l,l._sourceSegment=o,l._segmentIndexShift=u.length;for(const h of i)if(""===h.path&&Rr(h)!==be){const P=new pt([],{});P._sourceSegment=o,P._segmentIndexShift=u.length,d[Rr(h)]=P}return d}(o,u,l,new pt(i,o.children)));return P._sourceSegment=o,P._segmentIndexShift=u.length,{segmentGroup:P,slicedSegments:[]}}if(0===i.length&&function zs(o,u,i){return i.some(l=>oi(o,u,l))}(o,i,l)){const P=new pt(o.segments,function Ws(o,u,i,l,d,h){const P={};for(const W of l)if(oi(o,i,W)&&!d[Rr(W)]){const q=new pt([],{});q._sourceSegment=o,q._segmentIndexShift="legacy"===h?o.segments.length:u.length,P[Rr(W)]=q}return Object.assign(Object.assign({},d),P)}(o,u,i,l,o.children,d));return P._sourceSegment=o,P._segmentIndexShift=u.length,{segmentGroup:P,slicedSegments:i}}const h=new pt(o.segments,o.children);return h._sourceSegment=o,h._segmentIndexShift=u.length,{segmentGroup:h,slicedSegments:i}}function oi(o,u,i){return(!(o.hasChildren()||u.length>0)||"full"!==i.pathMatch)&&""===i.path}function rl(o,u,i,l){return!!(Rr(o)===l||l!==be&&oi(u,i,o))&&("**"===o.path||Ri(u,o,i).matched)}function un(o,u,i){return 0===u.length&&!o.children[i]}class vo{constructor(u){this.segmentGroup=u||null}}class il{constructor(u){this.urlTree=u}}function ns(o){return new ve.y(u=>u.error(new vo(o)))}function Eu(o){return new ve.y(u=>u.error(new il(o)))}function Dd(o){return new ve.y(u=>u.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${o}'`)))}class Fn{constructor(u,i,l,d,h){this.configLoader=i,this.urlSerializer=l,this.urlTree=d,this.config=h,this.allowRedirects=!0,this.ngModule=u.get(e.NgModuleRef)}apply(){const u=Fi(this.urlTree.root,[],[],this.config).segmentGroup,i=new pt(u.segments,u.children);return this.expandSegmentGroup(this.ngModule,this.config,i,be).pipe((0,$e.U)(h=>this.createUrlTree(vn(h),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,pr.K)(h=>{if(h instanceof il)return this.allowRedirects=!1,this.match(h.urlTree);throw h instanceof vo?this.noMatchError(h):h}))}match(u){return this.expandSegmentGroup(this.ngModule,this.config,u.root,be).pipe((0,$e.U)(d=>this.createUrlTree(vn(d),u.queryParams,u.fragment))).pipe((0,pr.K)(d=>{throw d instanceof vo?this.noMatchError(d):d}))}noMatchError(u){return new Error(`Cannot match any routes. URL Segment: '${u.segmentGroup}'`)}createUrlTree(u,i,l){const d=u.segments.length>0?new pt([],{[be]:u}):u;return new ri(d,i,l)}expandSegmentGroup(u,i,l,d){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(u,i,l).pipe((0,$e.U)(h=>new pt([],h))):this.expandSegment(u,l,i,l.segments,d,!0)}expandChildren(u,i,l){const d=[];for(const h of Object.keys(l.children))"primary"===h?d.unshift(h):d.push(h);return(0,ln.D)(d).pipe((0,Ee.b)(h=>{const P=l.children[h],W=Jo(i,h);return this.expandSegmentGroup(u,W,P,h).pipe((0,$e.U)(q=>({segment:q,outlet:h})))}),(0,zr.R)((h,P)=>(h[P.outlet]=P.segment,h),{}),(0,ei.Z)())}expandSegment(u,i,l,d,h,P){return(0,ln.D)(l).pipe((0,Ee.b)(W=>this.expandSegmentAgainstRoute(u,i,l,W,d,h,P).pipe((0,pr.K)(le=>{if(le instanceof vo)return(0,re.of)(null);throw le}))),(0,Kr.P)(W=>!!W),(0,pr.K)((W,q)=>{if(W instanceof Mi.K||"EmptyError"===W.name){if(un(i,d,h))return(0,re.of)(new pt([],{}));throw new vo(i)}throw W}))}expandSegmentAgainstRoute(u,i,l,d,h,P,W){return rl(d,i,h,P)?void 0===d.redirectTo?this.matchSegmentAgainstRoute(u,i,d,h,P):W&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(u,i,l,d,h,P):ns(i):ns(i)}expandSegmentAgainstRouteUsingRedirect(u,i,l,d,h,P){return"**"===d.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(u,l,d,P):this.expandRegularSegmentAgainstRouteUsingRedirect(u,i,l,d,h,P)}expandWildCardWithParamsAgainstRouteUsingRedirect(u,i,l,d){const h=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?Eu(h):this.lineralizeSegments(l,h).pipe((0,fn.zg)(P=>{const W=new pt(P,{});return this.expandSegment(u,W,i,P,d,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(u,i,l,d,h,P){const{matched:W,consumedSegments:q,lastChild:le,positionalParamSegments:Le}=Ri(i,d,h);if(!W)return ns(i);const Ne=this.applyRedirectCommands(q,d.redirectTo,Le);return d.redirectTo.startsWith("/")?Eu(Ne):this.lineralizeSegments(d,Ne).pipe((0,fn.zg)(ze=>this.expandSegment(u,i,l,ze.concat(h.slice(le)),P,!1)))}matchSegmentAgainstRoute(u,i,l,d,h){if("**"===l.path)return l.loadChildren?(l._loadedConfig?(0,re.of)(l._loadedConfig):this.configLoader.load(u.injector,l)).pipe((0,$e.U)(ze=>(l._loadedConfig=ze,new pt(d,{})))):(0,re.of)(new pt(d,{}));const{matched:P,consumedSegments:W,lastChild:q}=Ri(i,l,d);if(!P)return ns(i);const le=d.slice(q);return this.getChildConfig(u,l,d).pipe((0,fn.zg)(Ne=>{const ze=Ne.module,Ve=Ne.routes,{segmentGroup:Vt,slicedSegments:Vn}=Fi(i,W,le,Ve),Sr=new pt(Vt.segments,Vt.children);if(0===Vn.length&&Sr.hasChildren())return this.expandChildren(ze,Ve,Sr).pipe((0,$e.U)(ji=>new pt(W,ji)));if(0===Ve.length&&0===Vn.length)return(0,re.of)(new pt(W,{}));const nn=Rr(l)===h;return this.expandSegment(ze,Sr,Ve,Vn,nn?be:h,!0).pipe((0,$e.U)(ci=>new pt(W.concat(ci.segments),ci.children)))}))}getChildConfig(u,i,l){return i.children?(0,re.of)(new qa(i.children,u)):i.loadChildren?void 0!==i._loadedConfig?(0,re.of)(i._loadedConfig):this.runCanLoadGuards(u.injector,i,l).pipe((0,fn.zg)(d=>d?this.configLoader.load(u.injector,i).pipe((0,$e.U)(h=>(i._loadedConfig=h,h))):function wd(o){return new ve.y(u=>u.error(dt(`Cannot load children because the guard of the route "path: '${o.path}'" returned false`)))}(i))):(0,re.of)(new qa([],u))}runCanLoadGuards(u,i,l){const d=i.canLoad;if(!d||0===d.length)return(0,re.of)(!0);const h=d.map(P=>{const W=u.get(P);let q;if(function Yo(o){return o&&Jr(o.canLoad)}(W))q=W.canLoad(i,l);else{if(!Jr(W))throw new Error("Invalid CanLoad guard");q=W(i,l)}return Sn(q)});return(0,re.of)(h).pipe(Us(),(0,gn.b)(P=>{if(!Pi(P))return;const W=dt(`Redirecting to "${this.urlSerializer.serialize(P)}"`);throw W.url=P,W}),(0,$e.U)(P=>!0===P))}lineralizeSegments(u,i){let l=[],d=i.root;for(;;){if(l=l.concat(d.segments),0===d.numberOfChildren)return(0,re.of)(l);if(d.numberOfChildren>1||!d.children[be])return Dd(u.redirectTo);d=d.children[be]}}applyRedirectCommands(u,i,l){return this.applyRedirectCreatreUrlTree(i,this.urlSerializer.parse(i),u,l)}applyRedirectCreatreUrlTree(u,i,l,d){const h=this.createSegmentGroup(u,i.root,l,d);return new ri(h,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(u,i){const l={};return Mt(u,(d,h)=>{if("string"==typeof d&&d.startsWith(":")){const W=d.substring(1);l[h]=i[W]}else l[h]=d}),l}createSegmentGroup(u,i,l,d){const h=this.createSegments(u,i.segments,l,d);let P={};return Mt(i.children,(W,q)=>{P[q]=this.createSegmentGroup(u,W,l,d)}),new pt(h,P)}createSegments(u,i,l,d){return i.map(h=>h.path.startsWith(":")?this.findPosParam(u,h,d):this.findOrReturn(h,l))}findPosParam(u,i,l){const d=l[i.path.substring(1)];if(!d)throw new Error(`Cannot redirect to '${u}'. Cannot find '${i.path}'.`);return d}findOrReturn(u,i){let l=0;for(const d of i){if(d.path===u.path)return i.splice(l),d;l++}return u}}function vn(o){const u={};for(const l of Object.keys(o.children)){const h=vn(o.children[l]);(h.segments.length>0||h.hasChildren())&&(u[l]=h)}return function bg(o){if(1===o.numberOfChildren&&o.children[be]){const u=o.children[be];return new pt(o.segments.concat(u.segments),u.children)}return o}(new pt(o.segments,u))}class Ks{constructor(u){this.path=u,this.route=this.path[this.path.length-1]}}class sl{constructor(u,i){this.component=u,this.route=i}}function xd(o,u,i){const l=o._root;return rs(l,u?u._root:null,i,[l.value])}function Fr(o,u,i){const l=function Du(o){if(!o)return null;for(let u=o.parent;u;u=u.parent){const i=u.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(u);return(l?l.module.injector:i).get(o)}function rs(o,u,i,l,d={canDeactivateChecks:[],canActivateChecks:[]}){const h=Lt(u);return o.children.forEach(P=>{(function yo(o,u,i,l,d={canDeactivateChecks:[],canActivateChecks:[]}){const h=o.value,P=u?u.value:null,W=i?i.getContext(o.value.outlet):null;if(P&&h.routeConfig===P.routeConfig){const q=function wu(o,u,i){if("function"==typeof i)return i(o,u);switch(i){case"pathParamsChange":return!Qr(o.url,u.url);case"pathParamsOrQueryParamsChange":return!Qr(o.url,u.url)||!C(o.queryParams,u.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!go(o,u)||!C(o.queryParams,u.queryParams);default:return!go(o,u)}}(P,h,h.routeConfig.runGuardsAndResolvers);q?d.canActivateChecks.push(new Ks(l)):(h.data=P.data,h._resolvedData=P._resolvedData),rs(o,u,h.component?W?W.children:null:i,l,d),q&&W&&W.outlet&&W.outlet.isActivated&&d.canDeactivateChecks.push(new sl(W.outlet.component,P))}else P&&Co(u,W,d),d.canActivateChecks.push(new Ks(l)),rs(o,null,h.component?W?W.children:null:i,l,d)})(P,h[P.value.outlet],i,l.concat([P.value]),d),delete h[P.value.outlet]}),Mt(h,(P,W)=>Co(P,i.getContext(W),d)),d}function Co(o,u,i){const l=Lt(o),d=o.value;Mt(l,(h,P)=>{Co(h,d.component?u?u.children.getContext(P):null:u,i)}),i.canDeactivateChecks.push(new sl(d.component&&u&&u.outlet&&u.outlet.isActivated?u.outlet.component:null,d))}class xu{}function Mu(o){return new ve.y(u=>u.error(o))}class Td{constructor(u,i,l,d,h,P){this.rootComponentType=u,this.config=i,this.urlTree=l,this.url=d,this.paramsInheritanceStrategy=h,this.relativeLinkResolution=P}recognize(){const u=Fi(this.urlTree.root,[],[],this.config.filter(P=>void 0===P.redirectTo),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,u,be);if(null===i)return null;const l=new Ai([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},be,this.rootComponentType,null,this.urlTree.root,-1,{}),d=new Gn(l,i),h=new ys(this.url,d);return this.inheritParamsAndData(h._root),h}inheritParamsAndData(u){const i=u.value,l=Ko(i,this.paramsInheritanceStrategy);i.params=Object.freeze(l.params),i.data=Object.freeze(l.data),u.children.forEach(d=>this.inheritParamsAndData(d))}processSegmentGroup(u,i,l){return 0===i.segments.length&&i.hasChildren()?this.processChildren(u,i):this.processSegment(u,i,i.segments,l)}processChildren(u,i){const l=[];for(const h of Object.keys(i.children)){const P=i.children[h],W=Jo(u,h),q=this.processSegmentGroup(W,P,h);if(null===q)return null;l.push(...q)}const d=ea(l);return function $d(o){o.sort((u,i)=>u.value.outlet===be?-1:i.value.outlet===be?1:u.value.outlet.localeCompare(i.value.outlet))}(d),d}processSegment(u,i,l,d){for(const h of u){const P=this.processSegmentAgainstRoute(h,i,l,d);if(null!==P)return P}return un(i,l,d)?[]:null}processSegmentAgainstRoute(u,i,l,d){if(u.redirectTo||!rl(u,i,l,d))return null;let h,P=[],W=[];if("**"===u.path){const Ve=l.length>0?Pe(l).parameters:{};h=new Ai(l,Ve,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ta(u),Rr(u),u.component,u,Od(i),Ni(i)+l.length,bo(u))}else{const Ve=Ri(i,u,l);if(!Ve.matched)return null;P=Ve.consumedSegments,W=l.slice(Ve.lastChild),h=new Ai(P,Ve.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ta(u),Rr(u),u.component,u,Od(i),Ni(i)+P.length,bo(u))}const q=function Ad(o){return o.children?o.children:o.loadChildren?o._loadedConfig.routes:[]}(u),{segmentGroup:le,slicedSegments:Le}=Fi(i,P,W,q.filter(Ve=>void 0===Ve.redirectTo),this.relativeLinkResolution);if(0===Le.length&&le.hasChildren()){const Ve=this.processChildren(q,le);return null===Ve?null:[new Gn(h,Ve)]}if(0===q.length&&0===Le.length)return[new Gn(h,[])];const Ne=Rr(u)===d,ze=this.processSegment(q,le,Le,Ne?be:d);return null===ze?null:[new Gn(h,ze)]}}function al(o){const u=o.value.routeConfig;return u&&""===u.path&&void 0===u.redirectTo}function ea(o){const u=[],i=new Set;for(const l of o){if(!al(l)){u.push(l);continue}const d=u.find(h=>l.value.routeConfig===h.value.routeConfig);void 0!==d?(d.children.push(...l.children),i.add(d)):u.push(l)}for(const l of i){const d=ea(l.children);u.push(new Gn(l.value,d))}return u.filter(l=>!i.has(l))}function Od(o){let u=o;for(;u._sourceSegment;)u=u._sourceSegment;return u}function Ni(o){let u=o,i=u._segmentIndexShift?u._segmentIndexShift:0;for(;u._sourceSegment;)u=u._sourceSegment,i+=u._segmentIndexShift?u._segmentIndexShift:0;return i-1}function ta(o){return o.data||{}}function bo(o){return o.resolve||{}}function Tu(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}function Do(o){return(0,or.w)(u=>{const i=o(u);return i?(0,ln.D)(i).pipe((0,$e.U)(()=>u)):(0,re.of)(u)})}class ul extends class zn{shouldDetach(u){return!1}store(u,i){}shouldAttach(u){return!1}retrieve(u){return null}shouldReuseRoute(u,i){return u.routeConfig===i.routeConfig}}{}const cl=new e.InjectionToken("ROUTES");class na{constructor(u,i,l,d){this.injector=u,this.compiler=i,this.onLoadStartListener=l,this.onLoadEndListener=d}load(u,i){if(i._loader$)return i._loader$;this.onLoadStartListener&&this.onLoadStartListener(i);const d=this.loadModuleFactory(i.loadChildren).pipe((0,$e.U)(h=>{this.onLoadEndListener&&this.onLoadEndListener(i);const P=h.create(u);return new qa(ne(P.injector.get(cl,void 0,e.InjectFlags.Self|e.InjectFlags.Optional)).map(ts),P)}),(0,pr.K)(h=>{throw i._loader$=void 0,h}));return i._loader$=new Ps.c(d,()=>new Dr.xQ).pipe((0,wr.x)()),i._loader$}loadModuleFactory(u){return Sn(u()).pipe((0,fn.zg)(i=>i instanceof e.NgModuleFactory?(0,re.of)(i):(0,ln.D)(this.compiler.compileModuleAsync(i))))}}class Vd{shouldProcessUrl(u){return!0}extract(u){return u}merge(u,i){return u}}function Ld(o){throw o}function kd(o,u,i){return u.parse("/")}function Qs(o,u){return(0,re.of)(null)}const ws={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ra={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Nn=(()=>{class o{constructor(i,l,d,h,P,W,q){this.rootComponentType=i,this.urlSerializer=l,this.rootContexts=d,this.location=h,this.config=q,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Dr.xQ,this.errorHandler=Ld,this.malformedUriErrorHandler=kd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Qs,afterPreactivation:Qs},this.urlHandlingStrategy=new Vd,this.routeReuseStrategy=new ul,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=P.get(e.NgModuleRef),this.console=P.get(e.\u0275Console);const Ne=P.get(e.NgZone);this.isNgZoneEnabled=Ne instanceof e.NgZone&&e.NgZone.isInAngularZone(),this.resetConfig(q),this.currentUrlTree=function Yi(){return new ri(new pt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new na(P,W,ze=>this.triggerEvent(new x(ze)),ze=>this.triggerEvent(new V(ze))),this.routerState=ho(this.currentUrlTree,this.rootComponentType),this.transitions=new wn.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var i;return null===(i=this.location.getState())||void 0===i?void 0:i.\u0275routerPageId}setupNavigations(i){const l=this.events;return i.pipe((0,xe.h)(d=>0!==d.id),(0,$e.U)(d=>Object.assign(Object.assign({},d),{extractedUrl:this.urlHandlingStrategy.extract(d.rawUrl)})),(0,or.w)(d=>{let h=!1,P=!1;return(0,re.of)(d).pipe((0,gn.b)(W=>{this.currentNavigation={id:W.id,initialUrl:W.currentRawUrl,extractedUrl:W.extractedUrl,trigger:W.source,extras:W.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,or.w)(W=>{const q=this.browserUrlTree.toString(),le=!this.navigated||W.extractedUrl.toString()!==q||q!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||le)&&this.urlHandlingStrategy.shouldProcessUrl(W.rawUrl))return So(W.source)&&(this.browserUrlTree=W.extractedUrl),(0,re.of)(W).pipe((0,or.w)(Ne=>{const ze=this.transitions.getValue();return l.next(new _i(Ne.id,this.serializeUrl(Ne.extractedUrl),Ne.source,Ne.restoredState)),ze!==this.transitions.getValue()?Er.E:Promise.resolve(Ne)}),function qo(o,u,i,l){return(0,or.w)(d=>function Sd(o,u,i,l,d){return new Fn(o,u,i,l,d).apply()}(o,u,i,d.extractedUrl,l).pipe((0,$e.U)(h=>Object.assign(Object.assign({},d),{urlAfterRedirects:h}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,gn.b)(Ne=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ne.urlAfterRedirects})}),function Pd(o,u,i,l,d){return(0,fn.zg)(h=>function Id(o,u,i,l,d="emptyOnly",h="legacy"){try{const P=new Td(o,u,i,l,d,h).recognize();return null===P?Mu(new xu):(0,re.of)(P)}catch(P){return Mu(P)}}(o,u,h.urlAfterRedirects,i(h.urlAfterRedirects),l,d).pipe((0,$e.U)(P=>Object.assign(Object.assign({},h),{targetSnapshot:P}))))}(this.rootComponentType,this.config,Ne=>this.serializeUrl(Ne),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,gn.b)(Ne=>{if("eager"===this.urlUpdateStrategy){if(!Ne.extras.skipLocationChange){const Ve=this.urlHandlingStrategy.merge(Ne.urlAfterRedirects,Ne.rawUrl);this.setBrowserUrl(Ve,Ne)}this.browserUrlTree=Ne.urlAfterRedirects}const ze=new ti(Ne.id,this.serializeUrl(Ne.extractedUrl),this.serializeUrl(Ne.urlAfterRedirects),Ne.targetSnapshot);l.next(ze)}));if(le&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:ze,extractedUrl:Ve,source:Vt,restoredState:Vn,extras:Sr}=W,nn=new _i(ze,this.serializeUrl(Ve),Vt,Vn);l.next(nn);const us=ho(Ve,this.rootComponentType).snapshot;return(0,re.of)(Object.assign(Object.assign({},W),{targetSnapshot:us,urlAfterRedirects:Ve,extras:Object.assign(Object.assign({},Sr),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=W.rawUrl,W.resolve(null),Er.E}),Do(W=>{const{targetSnapshot:q,id:le,extractedUrl:Le,rawUrl:Ne,extras:{skipLocationChange:ze,replaceUrl:Ve}}=W;return this.hooks.beforePreactivation(q,{navigationId:le,appliedUrlTree:Le,rawUrlTree:Ne,skipLocationChange:!!ze,replaceUrl:!!Ve})}),(0,gn.b)(W=>{const q=new Ki(W.id,this.serializeUrl(W.extractedUrl),this.serializeUrl(W.urlAfterRedirects),W.targetSnapshot);this.triggerEvent(q)}),(0,$e.U)(W=>Object.assign(Object.assign({},W),{guards:xd(W.targetSnapshot,W.currentSnapshot,this.rootContexts)})),function Md(o,u){return(0,fn.zg)(i=>{const{targetSnapshot:l,currentSnapshot:d,guards:{canActivateChecks:h,canDeactivateChecks:P}}=i;return 0===P.length&&0===h.length?(0,re.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function Eg(o,u,i,l){return(0,ln.D)(o).pipe((0,fn.zg)(d=>function wg(o,u,i,l,d){const h=u&&u.routeConfig?u.routeConfig.canDeactivate:null;if(!h||0===h.length)return(0,re.of)(!0);const P=h.map(W=>{const q=Fr(W,u,d);let le;if(function _u(o){return o&&Jr(o.canDeactivate)}(q))le=Sn(q.canDeactivate(o,u,i,l));else{if(!Jr(q))throw new Error("Invalid CanDeactivate guard");le=Sn(q(o,u,i,l))}return le.pipe((0,Kr.P)())});return(0,re.of)(P).pipe(Us())}(d.component,d.route,i,u,l)),(0,Kr.P)(d=>!0!==d,!0))}(P,l,d,o).pipe((0,fn.zg)(W=>W&&function el(o){return"boolean"==typeof o}(W)?function Dg(o,u,i,l){return(0,ln.D)(u).pipe((0,Ee.b)(d=>(0,Wr.z)(function Nr(o,u){return null!==o&&u&&u(new S(o)),(0,re.of)(!0)}(d.route.parent,l),function Su(o,u){return null!==o&&u&&u(new J(o)),(0,re.of)(!0)}(d.route,l),function Ys(o,u,i){const l=u[u.length-1],h=u.slice(0,u.length-1).reverse().map(P=>function Xr(o){const u=o.routeConfig?o.routeConfig.canActivateChild:null;return u&&0!==u.length?{node:o,guards:u}:null}(P)).filter(P=>null!==P).map(P=>(0,Gr.P)(()=>{const W=P.guards.map(q=>{const le=Fr(q,P.node,i);let Le;if(function Ed(o){return o&&Jr(o.canActivateChild)}(le))Le=Sn(le.canActivateChild(l,o));else{if(!Jr(le))throw new Error("Invalid CanActivateChild guard");Le=Sn(le(l,o))}return Le.pipe((0,Kr.P)())});return(0,re.of)(W).pipe(Us())}));return(0,re.of)(h).pipe(Us())}(o,d.path,i),function ol(o,u,i){const l=u.routeConfig?u.routeConfig.canActivate:null;if(!l||0===l.length)return(0,re.of)(!0);const d=l.map(h=>(0,Gr.P)(()=>{const P=Fr(h,u,i);let W;if(function Qo(o){return o&&Jr(o.canActivate)}(P))W=Sn(P.canActivate(u,o));else{if(!Jr(P))throw new Error("Invalid CanActivate guard");W=Sn(P(u,o))}return W.pipe((0,Kr.P)())}));return(0,re.of)(d).pipe(Us())}(o,d.route,i))),(0,Kr.P)(d=>!0!==d,!0))}(l,h,o,u):(0,re.of)(W)),(0,$e.U)(W=>Object.assign(Object.assign({},i),{guardsResult:W})))})}(this.ngModule.injector,W=>this.triggerEvent(W)),(0,gn.b)(W=>{if(Pi(W.guardsResult)){const le=dt(`Redirecting to "${this.serializeUrl(W.guardsResult)}"`);throw le.url=W.guardsResult,le}const q=new ni(W.id,this.serializeUrl(W.extractedUrl),this.serializeUrl(W.urlAfterRedirects),W.targetSnapshot,!!W.guardsResult);this.triggerEvent(q)}),(0,xe.h)(W=>!!W.guardsResult||(this.restoreHistory(W),this.cancelNavigationTransition(W,""),!1)),Do(W=>{if(W.guards.canActivateChecks.length)return(0,re.of)(W).pipe((0,gn.b)(q=>{const le=new io(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(le)}),(0,or.w)(q=>{let le=!1;return(0,re.of)(q).pipe(function Rd(o,u){return(0,fn.zg)(i=>{const{targetSnapshot:l,guards:{canActivateChecks:d}}=i;if(!d.length)return(0,re.of)(i);let h=0;return(0,ln.D)(d).pipe((0,Ee.b)(P=>function Fd(o,u,i,l){return function Iu(o,u,i,l){const d=Tu(o);if(0===d.length)return(0,re.of)({});const h={};return(0,ln.D)(d).pipe((0,fn.zg)(P=>function Eo(o,u,i,l){const d=Fr(o,u,l);return Sn(d.resolve?d.resolve(u,i):d(u,i))}(o[P],u,i,l).pipe((0,gn.b)(W=>{h[P]=W}))),(0,Ti.h)(1),(0,fn.zg)(()=>Tu(h).length===d.length?(0,re.of)(h):Er.E))}(o._resolve,o,u,l).pipe((0,$e.U)(h=>(o._resolvedData=h,o.data=Object.assign(Object.assign({},o.data),Ko(o,i).resolve),null)))}(P.route,l,o,u)),(0,gn.b)(()=>h++),(0,Ti.h)(1),(0,fn.zg)(P=>h===d.length?(0,re.of)(i):Er.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,gn.b)({next:()=>le=!0,complete:()=>{le||(this.restoreHistory(q),this.cancelNavigationTransition(q,"At least one route resolver didn't emit any value."))}}))}),(0,gn.b)(q=>{const le=new Nt(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(q.urlAfterRedirects),q.targetSnapshot);this.triggerEvent(le)}))}),Do(W=>{const{targetSnapshot:q,id:le,extractedUrl:Le,rawUrl:Ne,extras:{skipLocationChange:ze,replaceUrl:Ve}}=W;return this.hooks.afterPreactivation(q,{navigationId:le,appliedUrlTree:Le,rawUrlTree:Ne,skipLocationChange:!!ze,replaceUrl:!!Ve})}),(0,$e.U)(W=>{const q=function yi(o,u,i){const l=si(o,u._root,i?i._root:void 0);return new po(l,u)}(this.routeReuseStrategy,W.targetSnapshot,W.currentRouterState);return Object.assign(Object.assign({},W),{targetRouterState:q})}),(0,gn.b)(W=>{this.currentUrlTree=W.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(W.urlAfterRedirects,W.rawUrl),this.routerState=W.targetRouterState,"deferred"===this.urlUpdateStrategy&&(W.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,W),this.browserUrlTree=W.urlAfterRedirects)}),((o,u,i)=>(0,$e.U)(l=>(new mu(u,l.targetRouterState,l.currentRouterState,i).activate(o),l)))(this.rootContexts,this.routeReuseStrategy,W=>this.triggerEvent(W)),(0,gn.b)({next(){h=!0},complete(){h=!0}}),(0,gs.x)(()=>{var W;h||P||this.cancelNavigationTransition(d,`Navigation ID ${d.id} is not equal to the current navigation id ${this.navigationId}`),(null===(W=this.currentNavigation)||void 0===W?void 0:W.id)===d.id&&(this.currentNavigation=null)}),(0,pr.K)(W=>{if(P=!0,function en(o){return o&&o[ut]}(W)){const q=Pi(W.url);q||(this.navigated=!0,this.restoreHistory(d,!0));const le=new ms(d.id,this.serializeUrl(d.extractedUrl),W.message);l.next(le),q?setTimeout(()=>{const Le=this.urlHandlingStrategy.merge(W.url,this.rawUrlTree),Ne={skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||So(d.source)};this.scheduleNavigation(Le,"imperative",null,Ne,{resolve:d.resolve,reject:d.reject,promise:d.promise})},0):d.resolve(!1)}else{this.restoreHistory(d,!0);const q=new vi(d.id,this.serializeUrl(d.extractedUrl),W);l.next(q);try{d.resolve(this.errorHandler(W))}catch(le){d.reject(le)}}return Er.E}))}))}resetRootComponentType(i){this.rootComponentType=i,this.routerState.root.component=this.rootComponentType}setTransition(i){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),i))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(i=>{const l="popstate"===i.type?"popstate":"hashchange";"popstate"===l&&setTimeout(()=>{var d;const h={replaceUrl:!0},P=(null===(d=i.state)||void 0===d?void 0:d.navigationId)?i.state:null;if(P){const q=Object.assign({},P);delete q.navigationId,delete q.\u0275routerPageId,0!==Object.keys(q).length&&(h.state=q)}const W=this.parseUrl(i.url);this.scheduleNavigation(W,l,P,h)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(i){this.events.next(i)}resetConfig(i){yu(i),this.config=i.map(ts),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(i,l={}){const{relativeTo:d,queryParams:h,fragment:P,queryParamsHandling:W,preserveFragment:q}=l,le=d||this.routerState.root,Le=q?this.currentUrlTree.fragment:P;let Ne=null;switch(W){case"merge":Ne=Object.assign(Object.assign({},this.currentUrlTree.queryParams),h);break;case"preserve":Ne=this.currentUrlTree.queryParams;break;default:Ne=h||null}return null!==Ne&&(Ne=this.removeEmptyProps(Ne)),function bs(o,u,i,l,d){if(0===i.length)return Bs(u.root,u.root,u,l,d);const h=function B(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new Xa(!0,0,o);let u=0,i=!1;const l=o.reduce((d,h,P)=>{if("object"==typeof h&&null!=h){if(h.outlets){const W={};return Mt(h.outlets,(q,le)=>{W[le]="string"==typeof q?q.split("/"):q}),[...d,{outlets:W}]}if(h.segmentPath)return[...d,h.segmentPath]}return"string"!=typeof h?[...d,h]:0===P?(h.split("/").forEach((W,q)=>{0==q&&"."===W||(0==q&&""===W?i=!0:".."===W?u++:""!=W&&d.push(W))}),d):[...d,h]},[]);return new Xa(i,u,l)}(i);if(h.toRoot())return Bs(u.root,new pt([],{}),u,l,d);const P=function v(o,u,i){if(o.isAbsolute)return new m(u.root,!0,0);if(-1===i.snapshot._lastPathIndex){const h=i.snapshot._urlSegment;return new m(h,h===u.root,0)}const l=es(o.commands[0])?0:1;return function j(o,u,i){let l=o,d=u,h=i;for(;h>d;){if(h-=d,l=l.parent,!l)throw new Error("Invalid number of '../'");d=l.segments.length}return new m(l,!1,d-h)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+l,o.numberOfDoubleDots)}(h,u,o),W=P.processChildren?Be(P.segmentGroup,P.index,h.commands):me(P.segmentGroup,P.index,h.commands);return Bs(P.segmentGroup,W,u,l,d)}(le,this.currentUrlTree,i,Ne,null!=Le?Le:null)}navigateByUrl(i,l={skipLocationChange:!1}){const d=Pi(i)?i:this.parseUrl(i),h=this.urlHandlingStrategy.merge(d,this.rawUrlTree);return this.scheduleNavigation(h,"imperative",null,l)}navigate(i,l={skipLocationChange:!1}){return function $u(o){for(let u=0;u{const h=i[d];return null!=h&&(l[d]=h),l},{})}processNavigations(){this.navigations.subscribe(i=>{this.navigated=!0,this.lastSuccessfulId=i.id,this.currentPageId=i.targetPageId,this.events.next(new Yr(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,i.resolve(!0)},i=>{this.console.warn(`Unhandled Navigation Error: ${i}`)})}scheduleNavigation(i,l,d,h,P){var W,q,le;if(this.disposed)return Promise.resolve(!1);const Le=this.transitions.value,Ne=So(l)&&Le&&!So(Le.source),ze=Le.rawUrl.toString()===i.toString(),Ve=Le.id===(null===(W=this.currentNavigation)||void 0===W?void 0:W.id);if(Ne&&ze&&Ve)return Promise.resolve(!0);let Vn,Sr,nn;P?(Vn=P.resolve,Sr=P.reject,nn=P.promise):nn=new Promise((ji,Kc)=>{Vn=ji,Sr=Kc});const us=++this.navigationId;let ci;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(d=this.location.getState()),ci=d&&d.\u0275routerPageId?d.\u0275routerPageId:h.replaceUrl||h.skipLocationChange?null!==(q=this.browserPageId)&&void 0!==q?q:0:(null!==(le=this.browserPageId)&&void 0!==le?le:0)+1):ci=0,this.setTransition({id:us,targetPageId:ci,source:l,restoredState:d,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:i,extras:h,resolve:Vn,reject:Sr,promise:nn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),nn.catch(ji=>Promise.reject(ji))}setBrowserUrl(i,l){const d=this.urlSerializer.serialize(i),h=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(d)||l.extras.replaceUrl?this.location.replaceState(d,"",h):this.location.go(d,"",h)}restoreHistory(i,l=!1){var d,h;if("computed"===this.canceledNavigationResolution){const P=this.currentPageId-i.targetPageId;"popstate"!==i.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(d=this.currentNavigation)||void 0===d?void 0:d.finalUrl)||0===P?this.currentUrlTree===(null===(h=this.currentNavigation)||void 0===h?void 0:h.finalUrl)&&0===P&&(this.resetState(i),this.browserUrlTree=i.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(P)}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=i.currentRouterState,this.currentUrlTree=i.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(i,l){const d=new ms(i.id,this.serializeUrl(i.extractedUrl),l);this.triggerEvent(d),i.resolve(!1)}generateNgRouterState(i,l){return"computed"===this.canceledNavigationResolution?{navigationId:i,\u0275routerPageId:l}:{navigationId:i}}}return o.\u0275fac=function(i){e.\u0275\u0275invalidFactory()},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();function So(o){return"imperative"!==o}let Vi=(()=>{class o{constructor(i,l,d){this.router=i,this.route=l,this.locationStrategy=d,this.commands=null,this.href=null,this.onChanges=new Dr.xQ,this.subscription=i.events.subscribe(h=>{h instanceof Yr&&this.updateTargetUrlAndHref()})}set routerLink(i){this.commands=null!=i?Array.isArray(i)?i:[i]:null}ngOnChanges(i){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(i,l,d,h,P){if(0!==i||l||d||h||P||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const W={skipLocationChange:Ss(this.skipLocationChange),replaceUrl:Ss(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,W),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Ss(this.preserveFragment)})}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(Nn),e.\u0275\u0275directiveInject(Xi),e.\u0275\u0275directiveInject(p.S$))},o.\u0275dir=e.\u0275\u0275defineDirective({type:o,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(i,l){1&i&&e.\u0275\u0275listener("click",function(h){return l.onClick(h.button,h.ctrlKey,h.shiftKey,h.altKey,h.metaKey)}),2&i&&e.\u0275\u0275attribute("target",l.target)("href",l.href,e.\u0275\u0275sanitizeUrl)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.\u0275\u0275NgOnChangesFeature]}),o})();function Ss(o){return""===o||!!o}class xs{}class Ou{preload(u,i){return(0,re.of)(null)}}let jd=(()=>{class o{constructor(i,l,d,h){this.router=i,this.injector=d,this.preloadingStrategy=h,this.loader=new na(d,l,q=>i.triggerEvent(new x(q)),q=>i.triggerEvent(new V(q)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,xe.h)(i=>i instanceof Yr),(0,Ee.b)(()=>this.preload())).subscribe(()=>{})}preload(){const i=this.injector.get(e.NgModuleRef);return this.processRoutes(i,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,l){const d=[];for(const h of l)if(h.loadChildren&&!h.canLoad&&h._loadedConfig){const P=h._loadedConfig;d.push(this.processRoutes(P.module,P.routes))}else h.loadChildren&&!h.canLoad?d.push(this.preloadConfig(i,h)):h.children&&d.push(this.processRoutes(i,h.children));return(0,ln.D)(d).pipe((0,mn.J)(),(0,$e.U)(h=>{}))}preloadConfig(i,l){return this.preloadingStrategy.preload(l,()=>(l._loadedConfig?(0,re.of)(l._loadedConfig):this.loader.load(i.injector,l)).pipe((0,fn.zg)(h=>(l._loadedConfig=h,this.processRoutes(h.module,h.routes)))))}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(Nn),e.\u0275\u0275inject(e.Compiler),e.\u0275\u0275inject(e.Injector),e.\u0275\u0275inject(xs))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),ia=(()=>{class o{constructor(i,l,d={}){this.router=i,this.viewportScroller=l,this.options=d,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},d.scrollPositionRestoration=d.scrollPositionRestoration||"disabled",d.anchorScrolling=d.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(i=>{i instanceof _i?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Yr&&(this.lastId=i.id,this.scheduleScrollEvent(i,this.router.parseUrl(i.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(i=>{i instanceof _e&&(i.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,l){this.router.triggerEvent(new _e(i,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(i){e.\u0275\u0275invalidFactory()},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();const Zs=new e.InjectionToken("ROUTER_CONFIGURATION"),Pu=new e.InjectionToken("ROUTER_FORROOT_GUARD"),Hd=[p.Ye,{provide:Wn,useClass:Zr},{provide:Nn,useFactory:function Sg(o,u,i,l,d,h,P={},W,q){const le=new Nn(null,o,u,i,l,d,ne(h));return W&&(le.urlHandlingStrategy=W),q&&(le.routeReuseStrategy=q),function oa(o,u){o.errorHandler&&(u.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(u.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(u.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(u.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(u.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(u.canceledNavigationResolution=o.canceledNavigationResolution)}(P,le),P.enableTracing&&le.events.subscribe(Le=>{var Ne,ze;null===(Ne=console.group)||void 0===Ne||Ne.call(console,`Router Event: ${Le.constructor.name}`),console.log(Le.toString()),console.log(Le),null===(ze=console.groupEnd)||void 0===ze||ze.call(console)}),le},deps:[Wn,_o,p.Ye,e.Injector,e.Compiler,cl,Zs,[class wo{},new e.Optional],[class Nd{},new e.Optional]]},_o,{provide:Xi,useFactory:function fl(o){return o.routerState.root},deps:[Nn]},jd,Ou,class Mo{preload(u,i){return i().pipe((0,pr.K)(()=>(0,re.of)(null)))}},{provide:Zs,useValue:{enableTracing:!1}}];function Wd(){return new e.NgProbeToken("Router",Nn)}let sa=(()=>{class o{constructor(i,l){}static forRoot(i,l){return{ngModule:o,providers:[Hd,Ru(i),{provide:Pu,useFactory:Gd,deps:[[Nn,new e.Optional,new e.SkipSelf]]},{provide:Zs,useValue:l||{}},{provide:p.S$,useFactory:Js,deps:[p.lw,[new e.Inject(p.mr),new e.Optional],Zs]},{provide:ia,useFactory:dl,deps:[Nn,p.EM,Zs]},{provide:xs,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:Ou},{provide:e.NgProbeToken,multi:!0,useFactory:Wd},[aa,{provide:e.APP_INITIALIZER,multi:!0,useFactory:Fu,deps:[aa]},{provide:is,useFactory:Nu,deps:[aa]},{provide:e.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:is}]]}}static forChild(i){return{ngModule:o,providers:[Ru(i)]}}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(Pu,8),e.\u0275\u0275inject(Nn,8))},o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({}),o})();function dl(o,u,i){return i.scrollOffset&&u.setOffset(i.scrollOffset),new ia(o,u,i)}function Js(o,u,i={}){return i.useHash?new p.Do(o,u):new p.b0(o,u)}function Gd(o){return"guarded"}function Ru(o){return[{provide:e.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:o},{provide:cl,multi:!0,useValue:o}]}let aa=(()=>{class o{constructor(i){this.injector=i,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Dr.xQ}appInitializer(){return this.injector.get(p.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let l=null;const d=new Promise(W=>l=W),h=this.injector.get(Nn),P=this.injector.get(Zs);return"disabled"===P.initialNavigation?(h.setUpLocationChangeListener(),l(!0)):"enabled"===P.initialNavigation||"enabledBlocking"===P.initialNavigation?(h.hooks.afterPreactivation=()=>this.initNavigation?(0,re.of)(null):(this.initNavigation=!0,l(!0),this.resultOfPreactivationDone),h.initialNavigation()):l(!0),d})}bootstrapListener(i){const l=this.injector.get(Zs),d=this.injector.get(jd),h=this.injector.get(ia),P=this.injector.get(Nn),W=this.injector.get(e.ApplicationRef);i===W.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&P.initialNavigation(),d.setUpPreloading(),h.init(),P.resetRootComponentType(W.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(e.Injector))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();function Fu(o){return o.appInitializer.bind(o)}function Nu(o){return o.bootstrapListener.bind(o)}const is=new e.InjectionToken("Router Initializer");var Li=f(8247),ss=f(4715),Kd=f(567),Ci=f(5154);class bi{}let pl=(()=>{class o extends bi{getTranslation(i){return(0,re.of)({})}}return o.\u0275fac=function(){let u;return function(l){return(u||(u=e.\u0275\u0275getInheritedFactory(o)))(l||o)}}(),o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();class hl{}let Vu=(()=>{class o{handle(i){return i.key}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();function Io(o,u){if(o===u)return!0;if(null===o||null===u)return!1;if(o!=o&&u!=u)return!0;let d,h,P,i=typeof o;if(i==typeof u&&"object"==i){if(!Array.isArray(o)){if(Array.isArray(u))return!1;for(h in P=Object.create(null),o){if(!Io(o[h],u[h]))return!1;P[h]=!0}for(h in u)if(!(h in P)&&void 0!==u[h])return!1;return!0}if(!Array.isArray(u))return!1;if((d=o.length)==u.length){for(h=0;h{la(u[l])?l in o?i[l]=Lu(o[l],u[l]):Object.assign(i,{[l]:u[l]}):Object.assign(i,{[l]:u[l]})}),i}class ua{}let ku=(()=>{class o extends ua{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(i,l){let d;return d="string"==typeof i?this.interpolateString(i,l):"function"==typeof i?this.interpolateFunction(i,l):i,d}getValue(i,l){let d="string"==typeof l?l.split("."):[l];l="";do{l+=d.shift(),!Vr(i)||!Vr(i[l])||"object"!=typeof i[l]&&d.length?d.length?l+=".":i=void 0:(i=i[l],l="")}while(d.length);return i}interpolateFunction(i,l){return i(l)}interpolateString(i,l){return l?i.replace(this.templateMatcher,(d,h)=>{let P=this.getValue(l,h);return Vr(P)?P:d}):i}}return o.\u0275fac=function(){let u;return function(l){return(u||(u=e.\u0275\u0275getInheritedFactory(o)))(l||o)}}(),o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();class ca{}let Yd=(()=>{class o extends ca{compile(i,l){return i}compileTranslations(i,l){return i}}return o.\u0275fac=function(){let u;return function(l){return(u||(u=e.\u0275\u0275getInheritedFactory(o)))(l||o)}}(),o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})();class Bu{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.EventEmitter,this.onLangChange=new e.EventEmitter,this.onDefaultLangChange=new e.EventEmitter}}const Ms=new e.InjectionToken("USE_STORE"),da=new e.InjectionToken("USE_DEFAULT_LANG"),qr=new e.InjectionToken("DEFAULT_LANGUAGE"),Is=new e.InjectionToken("USE_EXTEND");let Ei=(()=>{class o{constructor(i,l,d,h,P,W=!0,q=!1,le=!1,Le){this.store=i,this.currentLoader=l,this.compiler=d,this.parser=h,this.missingTranslationHandler=P,this.useDefaultLang=W,this.isolate=q,this.extend=le,this.pending=!1,this._onTranslationChange=new e.EventEmitter,this._onLangChange=new e.EventEmitter,this._onDefaultLangChange=new e.EventEmitter,this._langs=[],this._translations={},this._translationRequests={},Le&&this.setDefaultLang(Le)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(i){this.isolate?this._defaultLang=i:this.store.defaultLang=i}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(i){this.isolate?this._currentLang=i:this.store.currentLang=i}get langs(){return this.isolate?this._langs:this.store.langs}set langs(i){this.isolate?this._langs=i:this.store.langs=i}get translations(){return this.isolate?this._translations:this.store.translations}set translations(i){this.isolate?this._translations=i:this.store.translations=i}setDefaultLang(i){if(i===this.defaultLang)return;let l=this.retrieveTranslations(i);void 0!==l?(null==this.defaultLang&&(this.defaultLang=i),l.pipe((0,Hn.q)(1)).subscribe(d=>{this.changeDefaultLang(i)})):this.changeDefaultLang(i)}getDefaultLang(){return this.defaultLang}use(i){if(i===this.currentLang)return(0,re.of)(this.translations[i]);let l=this.retrieveTranslations(i);return void 0!==l?(this.currentLang||(this.currentLang=i),l.pipe((0,Hn.q)(1)).subscribe(d=>{this.changeLang(i)}),l):(this.changeLang(i),(0,re.of)(this.translations[i]))}retrieveTranslations(i){let l;return(void 0===this.translations[i]||this.extend)&&(this._translationRequests[i]=this._translationRequests[i]||this.getTranslation(i),l=this._translationRequests[i]),l}getTranslation(i){this.pending=!0;const l=this.currentLoader.getTranslation(i).pipe((0,Ci.d)(1),(0,Hn.q)(1));return this.loadingTranslations=l.pipe((0,$e.U)(d=>this.compiler.compileTranslations(d,i)),(0,Ci.d)(1),(0,Hn.q)(1)),this.loadingTranslations.subscribe({next:d=>{this.translations[i]=this.extend&&this.translations[i]?Object.assign(Object.assign({},d),this.translations[i]):d,this.updateLangs(),this.pending=!1},error:d=>{this.pending=!1}}),l}setTranslation(i,l,d=!1){l=this.compiler.compileTranslations(l,i),this.translations[i]=(d||this.extend)&&this.translations[i]?Lu(this.translations[i],l):l,this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}getLangs(){return this.langs}addLangs(i){i.forEach(l=>{-1===this.langs.indexOf(l)&&this.langs.push(l)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(i,l,d){let h;if(l instanceof Array){let P={},W=!1;for(let q of l)P[q]=this.getParsedResult(i,q,d),(0,ss.b)(P[q])&&(W=!0);if(W){const q=l.map(le=>(0,ss.b)(P[le])?P[le]:(0,re.of)(P[le]));return(0,Kd.D)(q).pipe((0,$e.U)(le=>{let Le={};return le.forEach((Ne,ze)=>{Le[l[ze]]=Ne}),Le}))}return P}if(i&&(h=this.parser.interpolate(this.parser.getValue(i,l),d)),void 0===h&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(h=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],l),d)),void 0===h){let P={key:l,translateService:this};void 0!==d&&(P.interpolateParams=d),h=this.missingTranslationHandler.handle(P)}return void 0!==h?h:l}get(i,l){if(!Vr(i)||!i.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Ee.b)(d=>(d=this.getParsedResult(d,i,l),(0,ss.b)(d)?d:(0,re.of)(d))));{let d=this.getParsedResult(this.translations[this.currentLang],i,l);return(0,ss.b)(d)?d:(0,re.of)(d)}}getStreamOnTranslationChange(i,l){if(!Vr(i)||!i.length)throw new Error('Parameter "key" required');return(0,Wr.z)((0,Gr.P)(()=>this.get(i,l)),this.onTranslationChange.pipe((0,or.w)(d=>{const h=this.getParsedResult(d.translations,i,l);return"function"==typeof h.subscribe?h:(0,re.of)(h)})))}stream(i,l){if(!Vr(i)||!i.length)throw new Error('Parameter "key" required');return(0,Wr.z)((0,Gr.P)(()=>this.get(i,l)),this.onLangChange.pipe((0,or.w)(d=>{const h=this.getParsedResult(d.translations,i,l);return(0,ss.b)(h)?h:(0,re.of)(h)})))}instant(i,l){if(!Vr(i)||!i.length)throw new Error('Parameter "key" required');let d=this.getParsedResult(this.translations[this.currentLang],i,l);if((0,ss.b)(d)){if(i instanceof Array){let h={};return i.forEach((P,W)=>{h[i[W]]=i[W]}),h}return i}return d}set(i,l,d=this.currentLang){this.translations[d][i]=this.compiler.compile(l,d),this.updateLangs(),this.onTranslationChange.emit({lang:d,translations:this.translations[d]})}changeLang(i){this.currentLang=i,this.onLangChange.emit({lang:i,translations:this.translations[i]}),null==this.defaultLang&&this.changeDefaultLang(i)}changeDefaultLang(i){this.defaultLang=i,this.onDefaultLangChange.emit({lang:i,translations:this.translations[i]})}reloadLang(i){return this.resetLang(i),this.getTranslation(i)}resetLang(i){this._translationRequests[i]=void 0,this.translations[i]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let i=window.navigator.languages?window.navigator.languages[0]:null;return i=i||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==i?(-1!==i.indexOf("-")&&(i=i.split("-")[0]),-1!==i.indexOf("_")&&(i=i.split("_")[0]),i):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let i=window.navigator.languages?window.navigator.languages[0]:null;return i=i||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,i}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(Bu),e.\u0275\u0275inject(bi),e.\u0275\u0275inject(ca),e.\u0275\u0275inject(ua),e.\u0275\u0275inject(hl),e.\u0275\u0275inject(da),e.\u0275\u0275inject(Ms),e.\u0275\u0275inject(Is),e.\u0275\u0275inject(qr))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),ai=(()=>{class o{constructor(i,l,d){this.translateService=i,this.element=l,this._ref=d,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(h=>{h.lang===this.translateService.currentLang&&this.checkNodes(!0,h.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(h=>{this.checkNodes(!0,h.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(h=>{this.checkNodes(!0)}))}set translate(i){i&&(this.key=i,this.checkNodes())}set translateParams(i){Io(this.currentParams,i)||(this.currentParams=i,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(i=!1,l){let d=this.element.nativeElement.childNodes;d.length||(this.setContent(this.element.nativeElement,this.key),d=this.element.nativeElement.childNodes);for(let h=0;h{P!==i&&(l.lastKey=i),l.originalContent||(l.originalContent=this.getContent(l)),l.currentValue=Vr(P)?P:l.originalContent||i,this.setContent(l,this.key?l.currentValue:l.originalContent.replace(i,l.currentValue)),this._ref.markForCheck()};if(Vr(d)){let P=this.translateService.getParsedResult(d,i,this.currentParams);(0,ss.b)(P)?P.subscribe(h):h(P)}else this.translateService.get(i,this.currentParams).subscribe(h)}}getContent(i){return Vr(i.textContent)?i.textContent:i.data}setContent(i,l){Vr(i.textContent)?i.textContent=l:i.data=l}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(Ei),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},o.\u0275dir=e.\u0275\u0275defineDirective({type:o,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),o})(),Lr=(()=>{class o{constructor(i,l){this.translate=i,this._ref=l,this.value=""}updateValue(i,l,d){let h=P=>{this.value=void 0!==P?P:i,this.lastKey=i,this._ref.markForCheck()};if(d){let P=this.translate.getParsedResult(d,i,l);(0,ss.b)(P.subscribe)?P.subscribe(h):h(P)}this.translate.get(i,l).subscribe(h)}transform(i,...l){if(!i||!i.length)return i;if(Io(i,this.lastKey)&&Io(l,this.lastParams))return this.value;let d;if(Vr(l[0])&&l.length)if("string"==typeof l[0]&&l[0].length){let h=l[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{d=JSON.parse(h)}catch(P){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${l[0]}`)}}else"object"==typeof l[0]&&!Array.isArray(l[0])&&(d=l[0]);return this.lastKey=i,this.lastParams=l,this.updateValue(i,d),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(h=>{this.lastKey&&h.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(i,d,h.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(h=>{this.lastKey&&(this.lastKey=null,this.updateValue(i,d,h.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(i,d))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(Ei,16),e.\u0275\u0275directiveInject(e.ChangeDetectorRef,16))},o.\u0275pipe=e.\u0275\u0275definePipe({name:"translate",type:o,pure:!1}),o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),gl=(()=>{class o{static forRoot(i={}){return{ngModule:o,providers:[i.loader||{provide:bi,useClass:pl},i.compiler||{provide:ca,useClass:Yd},i.parser||{provide:ua,useClass:ku},i.missingTranslationHandler||{provide:hl,useClass:Vu},Bu,{provide:Ms,useValue:i.isolate},{provide:da,useValue:i.useDefaultLang},{provide:Is,useValue:i.extend},{provide:qr,useValue:i.defaultLanguage},Ei]}}static forChild(i={}){return{ngModule:o,providers:[i.loader||{provide:bi,useClass:pl},i.compiler||{provide:ca,useClass:Yd},i.parser||{provide:ua,useClass:ku},i.missingTranslationHandler||{provide:hl,useClass:Vu},{provide:Ms,useValue:i.isolate},{provide:da,useValue:i.useDefaultLang},{provide:Is,useValue:i.extend},{provide:qr,useValue:i.defaultLanguage},Ei]}}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({}),o})();class ml{constructor(u,i="/assets/i18n/",l=".json"){this.http=u,this.prefix=i,this.suffix=l}getTranslation(u){return this.http.get(`${this.prefix}${u}${this.suffix}`)}}function fa(o,u,i,l){return new(i||(i=Promise))(function(h,P){function W(Le){try{le(l.next(Le))}catch(Ne){P(Ne)}}function q(Le){try{le(l.throw(Le))}catch(Ne){P(Ne)}}function le(Le){Le.done?h(Le.value):function d(h){return h instanceof i?h:new i(function(P){P(h)})}(Le.value).then(W,q)}le((l=l.apply(o,u||[])).next())})}f(5561);const xn_apiURL="./backend/";let kr=(()=>{class o{constructor(i){this.http=i}getSettings(){const i="t="+(new Date).getTime();return this.http.get("./backend/settings.php?getSettings&"+i,{responseType:"json"})}setSettings(i){return this.http.post("./backend/settings.php?setSettings",JSON.stringify(i)).map(l=>l)}getTemperatureSensors(){const i="t="+(new Date).getTime();return this.http.get("./backend/ds18b20.php?"+i).map(l=>{if(l)return l})}getLog(){const i="t="+(new Date).getTime();return this.http.get("./backend/log.php?"+i,{responseType:"text"})}deleteLog(){const i="t="+(new Date).getTime();return this.http.get("./backend/log.php?delete&"+i,{responseType:"text"})}deleteCsv(i){const l="t="+(new Date).getTime();return this.http.get("./backend/csv-download.php?delete&channelId="+i+"&"+l,{responseType:"text"})}uploadCsv(i,l){return(new Date).getTime(),this.http.post("./backend/csv-upload.php",{channelId:i,writeKey:l}).map(h=>{if(h)return h})}update(i="update",l=!1,d=""){const h="t="+(new Date).getTime();return this.http.get("./backend/update.php?mode="+i+"&stable="+(l?0:1)+d+"&"+h,{responseType:"json"})}getMeasurement(){const i="t="+(new Date).getTime();return this.http.get("./backend/measurement.php?"+i).map(l=>{if(l)return l})}checkInternet(){const i="t="+(new Date).getTime();return this.http.get("./backend/check_internet.php?"+i).map(l=>{if(l)return l})}checkDiag(){const i="t="+(new Date).getTime();return this.http.get("./backend/check_diag.php?"+i,{responseType:"text"}).map(l=>l)}checkThingSpeakChannel(i){return this.http.post("./backend/check_thingspeak.php",i).map(l=>{if(l)return l})}checkNewUpdate(){return this.http.get("./backend/update.php?mode=checkUpdate").map(i=>{if(i)return i})}getWeight(i){return this.http.post("./backend/weight.php",i,{responseType:"text"}).map(l=>l)}boot(i){const l="t="+(new Date).getTime();return this.http.get("./backend/control.php?"+i+"&"+l,{responseType:"text"})}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275inject(On))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function lr(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"span",3),e.\u0275\u0275listener("mouseover",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().initialiseTooltip()}),e.\u0275\u0275elementStart(1,"a",4),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().jumpToUpdateSection()}),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275element(3,"img",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind1(2,1,"settings.update.newVersionAvailable")))}let To=(()=>{class o{constructor(i){i.setDefaultLang("en"),console.log("Browser language is: "+i.getBrowserLang()),i.use(i.getBrowserLang())}ngOnInit(){}initialiseTooltip(){$(function(){$('[data-toggle="tooltip"]').tooltip()})}jumpToUpdateSection(){document.querySelector("#headingSeven").scrollIntoView()}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(Ei))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-navbar"]],inputs:{isNewReleaseAvailable:"isNewReleaseAvailable"},decls:4,vars:2,consts:[[1,"navbar","navbar-dark","bg-dark"],["href","",1,"navbar-brand",3,"translate"],["class","navbar-text",3,"mouseover",4,"ngIf"],[1,"navbar-text",3,"mouseover"],["routerLink","[]","data-toggle","collapse","data-target","#collapseSeven","data-toggle","tooltip","data-placement","left",3,"title","click"],["src","data:image/webp;base64,UklGRswJAABXRUJQVlA4TMAJAAAv/8F/EKDYRpIkSaL+it9OTXW65X0dQQHb9vNt9YuT2vYZq7POtlHbbqeT2bat4jRjbWNb3c6srXm1k3/+7wQgX/9//f/1/9f/X/9//f/1/9f/82MwEyrCS616SEj0aPVShFDmmLfNTDd0wV/03W3zbhprZfBHveWKeclMUwR/3DuLbxiW/cbhB9HCyF0v8jLhh31lfLnoqIYf98fsq0VDNTxQnzkXC98beKRuE+6VKHioKrK3ygZ4rDuXiqyu56AtvFMOwIO9xrhRBP4+Cay/Ubzg0TJulBfPQtG+T2SNPQv43yfr4OFi75MDT1N3nzx6GgrvOsl9GtC9Tsofx/Q6qXgci8uEw9Tbx7GjfI2oW+eIOFXE8Bt9V+AmX+ZYdwfHPHskaYdfbli5Gxxp3RlsC53w0jC8pQYiXjQvCwMhkvXBy6J9dNFy7FvChFAZGt5Zj3je5O+HKU5rhFc3IpEd3s2gSegtfEA9wizCuBRmeEwMn1KD/dTuA2V7NMBHNeqxOXeBoQv64PN6xxvrGpgmmgQ+szpBuFeAuXg0fG4dhHj5MZeIhs+uhR92erSFoeDzq+PUHYH9+uEMFbCMjqN2OEYStykGR1cSHKUfvGvDJjQApymTYWqmeAsHaoBfZxiCDcGZSqYWGR25cKx+WJeYVX7DwaJdwM4Lw34UnK1i2nFRlQ3H65flaTHTAgdMLCAsK/TCGbuJWRV/YjhliWSSwnAODloFlaAw3ISjVk0nJywiOGx19GPClQjHrc2ElHBlwYHrZBQSllg4ck10MsIQAYeunmZFrsKx+0S5IUfg4D3HKYgz+uRAVEAWGIWzty8fxn7B4aO5xkNeLRy/YRbteAoDaqBYDiFMKBWjG3OMbwD+y4aqDhjRuNnViIMZNZFrhicM6WYydHUvgbYmGAzZMKUuyr0IhTGF50JTzxqk5tXiCczpC3YrFqP3AMJUcNXAoAbolmIvTOpJKJR1b0Jqeieuw6jyMmFkbBWwshLRMKtPmI2Yjt4FuDQiBYZVjVmIqaTLAOtCPIVpvQ6ECck2YEUfwmBcz/OgaWwdML0OR2FekXFg69zHCJU2OMLAdrehcCFNmGUwRS8E1pXhOkwsMQxsPzYyTqUL62FkQV2IXklJFuQNr4RmXAVfmNnhKuTt5GsUlIzvBCY2wROGtqsJCUspTgLPwFIo6kXYCFPzLUL4VpKL0LaVPqweTISxze5B6FoO9iBhLQU5YPqzllGCGljB3JbVYNdeTtUgeS/5NejaSx9mC/RgcFNa4LAYnxZcWszdFhQv5l0KWAYXI8YvwRSYnFUJHDfjVYLjm7lQgvjNZJSgZjOtIeCSbIYm3wFLGN2cDrisxrcDh1ZzogMRq3nUgeerKelA82o6M8AiXo0UrwJGMLuJFVi2m9UV8NlNYAUO7OZwBa7v5mYFoncTW4EXuymsQNVuairwZzfdEWCT7obGbYAmDE+nAZOWM7kBM5czswHLlrO8ATbLsWmA53I8G7BlOVsasH85+xtwZjlnG3BtOVcbcGs5Nxtwfzl3GxCxnPAGiJYT1YAny3nSgNjlxDQgcTkJDUhdTloDMpaT0YDs5WQ1IHc5OQ3IX05eA54vp6ABL5fzogFFyylsQMlyihtQtpzSBlQup7wBr5fzugEfl/OxATXLqW5A03IaG9C5nI4G/FrOzwb0Lqe3ASPLGW4AtRwqASyYHqsAstuRK4DGdjQKYLwd4wKYb8e8AHO3M6cAK7azogDW27EugNt23AoQtJ3AAuzYzs4CnNjOyQLc2M6tAjzazuMCpG0nowDF2yktwOftVBWgYzvfCjCwneEAcNDbAcF+dGF8hvuxWs+s/axdz4b9eK/Hfz9713NgP5fWc3U/j9bzZD856ynYT9V66vbTt57h+cjD/FTWM3U/lutZvZ8N6/HfT+h6ju3nzHoi9/N0PYX7qVxP535+j4dPuh9Q3I4pBGj6dqwL4LSdnQU4uJ27BRBtp6gAr7fzuwCDGMtRgwQZLWdpAzYuZ2sD9i/nXgMeL6ekAZ+HwzTQAIrMbkwhQnN3412Bbbu5WQHRbsoq8GU2LEMVkJBdzXTI0LLVCDtwbDUJHShYzfcODOFsZgKEaNZm/EqwezPPSpAzGYZfJRghWMx0SNGqxRxsweXFFLbg82AUjLeApr8XN4jRf3uJr0HhXHgGakBRX8tGyFHAWv7vQdZY+Hp7IKG5FWcIknArGUV4NxV14iKA+VKEkKSLS6lqwh/8nSyDKHnuJL4K5TPRIq4CTF/JCciSaCSy/nRBzGAjOyFM1ybC0V6GIWoL8YU0nRgIR1MbBmnsYwvE6fI8+DrrMEp/HXshT+Hj0NDbB6mZ24iCQJVjLGMGaSHAfRhMbyBRXRR2sRMidW8WRgYrQVsxCoZ8yFQL2U2EQqhuTGKq4VLQNg6C5yOk6jetPdyAWOVgrsEWXQs4NobJ+iFXUuunoKAOgtXNZAgsmZCsKoo7uAXRysNegRCyFTkCe1Q34NAElhmFcv03gFkGIF1SzsfnX38gXmM2HR4rfyFf4+yOznR/IWAUt4MzQzckjOJxbObrh4hRPA/NYoOQMYrHkbExDCGj7TswASTQspuYh4XhBOQsEf+osEVA0F5QPChyciBpX+kdE32fIGqtzA6JlQ7I2qBNR8TJMISNsv98MOxHQ9sicA4H31PIWwm1o6HrLQSu3sSDYaUdEtdj5bFwNQyRo+w/Ewwn0NC5cJwDIScVUldK4zj8owpi18zsMCzyG3I3wOYoBBND8GgnzgHbLYheNMEhUPUSsldB6whYaIHwdZlxADboh/QNsf98jJnEz/jzff3/9f//jbQFPqT398LiT0F0Lyh/CrvuBaLrQ1h5MaR9BhTVi2HrZ1CJXEzGn8Hxm4Fo/AhmXw3XP4EfmFeDxSdwAbmb3rwf2sTLIeT9vEQuJwX9r8f1diBOv50G7OtBSc/LcUPupxPvpgbzglDy+9U4IDeU95vJQe6o5+9lmMklMdHoa9mD3FK730o59jXBkPxOuhki95SSljcitRa5qWYZfSFnkLvKmuR1RGNeFkTw23iBh1xXJ97FW3LIhXXuTbymilxZ20lfQyEF5NLyInkJ6QTItbVO9yu4ho1cXAZe/z6DXJC7S0D029QyRa6vTbp+E1oYOeQCUxL2ezRaglxi69T+DkNO4CHXGJOT1ucRC6ONXGUC+/18FoloE5HrjMtJ+XP0uckAudPmEel5Akohf3zkXmNZ6KafP4NSRkgbud1YzAR7rOXPGFbmgk1UkFtO11KBzov3ylfNuo2i9ehU751cd+1kzRQH+fr/6/+v/7/+//r/6/+v/7/+3x4=",1,"bell",2,"width","23px","height","23px"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"nav",0),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"HoneyPi"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,lr,4,3,"span",2),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","brand"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",l.isNewReleaseAvailable))},directives:[ai,p.O5,Vi],pipes:[Lr],styles:["img.bell[_ngcontent-%COMP%]{opacity:.8;-webkit-animation:ring 8s 1s ease-in-out infinite;-webkit-transform-origin:50% 4px;-moz-animation:ring 8s 1s ease-in-out infinite;-moz-transform-origin:50% 4px;animation:ring 8s 1s ease-in-out infinite;transform-origin:50% 4px}@keyframes ring{0%{transform:rotate(0)}1%{transform:rotate(30deg)}3%{transform:rotate(-28deg)}5%{transform:rotate(34deg)}7%{transform:rotate(-32deg)}9%{transform:rotate(30deg)}11%{transform:rotate(-28deg)}13%{transform:rotate(26deg)}15%{transform:rotate(-24deg)}17%{transform:rotate(22deg)}19%{transform:rotate(-20deg)}21%{transform:rotate(18deg)}23%{transform:rotate(-16deg)}25%{transform:rotate(14deg)}27%{transform:rotate(-12deg)}29%{transform:rotate(10deg)}31%{transform:rotate(-8deg)}33%{transform:rotate(6deg)}35%{transform:rotate(-4deg)}37%{transform:rotate(2deg)}39%{transform:rotate(-1deg)}41%{transform:rotate(1deg)}43%{transform:rotate(0)}to{transform:rotate(0)}}"]}),o})();const{version:Cl}=f(4147);let rf=(()=>{class o{constructor(i){this.translate=i,this.appVersion=Cl}ngOnInit(){}useLanguage(i){this.translate.use(i)}get currentYear(){return(new Date).getFullYear()}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(Ei))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-footer"]],decls:16,vars:1,consts:[[1,"footer"],[1,"container"],[1,"text-muted"],["href","https://www.honey-pi.de","target","_blank"],[1,"float-right","text-muted",2,"padding-left","10px"],["routerLink","",3,"click"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"footer",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275elementStart(2,"span",2),e.\u0275\u0275text(3,"\xa9 "),e.\u0275\u0275elementStart(4,"a",3),e.\u0275\u0275text(5,"HoneyPi.de"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"span",4),e.\u0275\u0275elementStart(8,"a",5),e.\u0275\u0275listener("click",function(){return l.useLanguage("de")}),e.\u0275\u0275text(9,"Deutsch"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(10," | "),e.\u0275\u0275elementStart(11,"a",5),e.\u0275\u0275listener("click",function(){return l.useLanguage("en")}),e.\u0275\u0275text(12,"English"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(13," | "),e.\u0275\u0275elementStart(14,"a",5),e.\u0275\u0275listener("click",function(){return l.useLanguage("el_GR")}),e.\u0275\u0275text(15,"Greek"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" 2018-",l.currentYear,""))},directives:[Vi],styles:[""]}),o})(),sf=(()=>{class o{constructor(i,l){this.appService=i,this.translate=l,this.isNewReleaseAvailable=!1}ngOnInit(){this.initNewUpdateRoutine()}initNewUpdateRoutine(){return fa(this,void 0,void 0,function*(){let l=parseInt(sessionStorage.getItem("lastUpdateCheck"));isNaN(l)||new Date(l)<=new Date(Date.now()-6e4)?(sessionStorage.setItem("lastUpdateCheck",Date.now().toString()),yield this.searchForNewUpdate()):console.log("Did not search for new updates because latest check is less than 1 minutes ago.")})}searchForNewUpdate(){return console.log("Initiated a check to search for new available updates."),new Promise(i=>{setTimeout(()=>{this.appService.checkNewUpdate().timeout(7e3).finally(()=>{console.log("Finished search for new Updates."),i("resolved")}).subscribe(l=>{!0===l.isNewVersionAvailable?(console.log("There is a new release available. Install it to keep your HoneyPi up-to-date."),console.log("isStable=",l.isStable),this.isNewReleaseAvailable=!0):console.log("Successful checked for new updates but you have the most recent HoneyPi releases installed.")},l=>{console.error("Error while searching for new updates:",l),this.isNewReleaseAvailable=!1})},6500)})}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr),e.\u0275\u0275directiveInject(Ei))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-root"]],decls:3,vars:1,consts:[[3,"isNewReleaseAvailable"]],template:function(i,l){1&i&&(e.\u0275\u0275element(0,"app-navbar",0),e.\u0275\u0275element(1,"router-outlet"),e.\u0275\u0275element(2,"app-footer")),2&i&&e.\u0275\u0275property("isNewReleaseAvailable",l.isNewReleaseAvailable)},directives:[To,tl,rf],styles:['.ng-invalid:not(form){border-left:5px solid #a94442}@keyframes spinner{to{transform:rotate(360deg)}} .spinner:before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-10px;margin-left:-10px;border-radius:50%;border:6px solid #f7f7f7;border-top-color:#ffc107;animation:spinner .8s linear infinite}']}),o})();class bl{constructor(){this.router=new Yu,this.honeypi=new Yu,this.modem=new Qu}}class Yu{}class Qu{}class of{constructor(){this.enabled=!1,this.version=2,this.dummyload=!1,this.voltagecheck_enabled=!1,this.low=new El,this.normal=new El}}class El{constructor(){this.enabled=!1,this.schedule=""}}class Zu{}class af{constructor(){this.ts_channels=[],this.ts_channels.push(new ha),this.sensors=[],this.internet=new bl,this.wittyPi=new of,this.display=new Zu}}class ha{constructor(){this.ts_write_key="",this.ts_channel_id=void 0}}function lf(o,u){1&o&&e.\u0275\u0275element(0,"br")}f(3505);const $o=function(){return{field:"Write-API-Key"}};function uf(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",29),e.\u0275\u0275elementStart(1,"a",30),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,1,"error.spaces",e.\u0275\u0275pureFunction0(4,$o))," "))}const Ju=function(){return{field:"Channel-ID"}};function Ao(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.required",e.\u0275\u0275pureFunction0(4,Ju))," "))}function Xu(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.length",e.\u0275\u0275pureFunction0(4,Ju))," "))}function qu(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",31),e.\u0275\u0275template(1,Ao,3,5,"div",10),e.\u0275\u0275template(2,Xu,3,5,"div",10),e.\u0275\u0275elementEnd()),2&o){e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(20);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==i?null:i.errors.min)||(null==i?null:i.errors.max))}}function cf(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.required",e.\u0275\u0275pureFunction0(4,$o))," "))}function df(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.length",e.\u0275\u0275pureFunction0(4,$o))," "))}function ff(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",31),e.\u0275\u0275template(1,cf,3,5,"div",10),e.\u0275\u0275template(2,df,3,5,"div",10),e.\u0275\u0275elementEnd()),2&o){e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(29);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==i?null:i.errors.minlength)||(null==i?null:i.errors.maxlength))}}function ec(o,u){1&o&&e.\u0275\u0275element(0,"br")}const pf=function(o){return{"my-bg-ts":o}};function hf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275elementStart(1,"div",9),e.\u0275\u0275template(2,lf,1,0,"br",10),e.\u0275\u0275elementStart(3,"div",11),e.\u0275\u0275elementStart(4,"button",12),e.\u0275\u0275listener("click",function(){const h=e.\u0275\u0275restoreView(i).index;return e.\u0275\u0275nextContext().removeChannel(h)}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275text(6,"\u232b"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"h5",13),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",0),e.\u0275\u0275elementStart(10,"label",14),e.\u0275\u0275text(11,"Channel-Name "),e.\u0275\u0275elementStart(12,"i"),e.\u0275\u0275text(13,"(optional)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"input",15,16),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i).$implicit.name=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",0),e.\u0275\u0275elementStart(17,"label",17),e.\u0275\u0275text(18,"ThingSpeak Channel-ID"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"input",18,19),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i).$implicit.ts_channel_id=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"div",0),e.\u0275\u0275elementStart(22,"label",20),e.\u0275\u0275text(23,"ThingSpeak "),e.\u0275\u0275elementStart(24,"strong"),e.\u0275\u0275text(25,"Write"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(26,"-API-Key"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",21),e.\u0275\u0275elementStart(28,"input",22,23),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i).$implicit.ts_write_key=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(30,"span",24),e.\u0275\u0275elementStart(31,"button",25,26),e.\u0275\u0275listener("click",function(){const h=e.\u0275\u0275restoreView(i).$implicit,P=e.\u0275\u0275reference(32);return e.\u0275\u0275nextContext().checkThingSpeakChannel(h.ts_channel_id,h.ts_write_key,P)}),e.\u0275\u0275pipe(33,"translate"),e.\u0275\u0275text(34,"\u2713"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(35,uf,5,5,"div",27),e.\u0275\u0275template(36,qu,3,2,"div",28),e.\u0275\u0275template(37,ff,3,2,"div",28),e.\u0275\u0275template(38,ec,1,0,"br",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=u.$implicit,l=u.index,d=u.last,h=u.first,P=e.\u0275\u0275reference(20),W=e.\u0275\u0275reference(29),q=e.\u0275\u0275reference(32),le=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("spinner",q.disabled),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(23,pf,l%2!=0)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!h),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind1(5,19,"settings.thingspeak.removeChannel")),e.\u0275\u0275property("disabled",le.isRemovingDisabled),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1("ThingSpeak Channel #",l+1,""),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngModel",i.name),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",i.ts_channel_id)("min",0)("max",9999999),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngModel",i.ts_write_key),e.\u0275\u0275advance(3),e.\u0275\u0275classProp("disabled",!i.ts_channel_id||!i.ts_write_key),e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind1(33,21,"settings.thingspeak.checkConnection")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",(null==W?null:W.value)&&-1!==(null==W||null==W.value?null:W.value.indexOf(" "))),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",P.invalid&&(P.dirty||P.touched)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",W.invalid&&(W.dirty||W.touched)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!d)}}let gf=(()=>{class o{constructor(i,l){this.appService=i,this.translate=l,this.thingspeakUrlPattern=new RegExp("https?://.+"),this.thingspeakUrlPattern2="^(?:(?:(?:[a-zA-z\\-]+)\\:\\/{1,3})?(?:[a-zA-Z0-9])(?:[a-zA-Z0-9-\\.]){1,61}[a-zA-Z0-9](?:\\.[a-zA-Z]{2,})+|\\[(?:(?:(?:[a-fA-F0-9]){1,4})(?::(?:[a-fA-F0-9]){1,4}){7}|::1|::)\\]|(?:(?:[0-9]{1,3})(?:\\.[0-9]{1,3}){3}))(?:\\:[0-9]{1,5})?$",this.settingsChange=new e.EventEmitter}set settings(i){this.settingsChange.emit(i),this._settings=i}get settings(){return this._settings}ngOnInit(){}addChannel(){this.settings.ts_channels.push({ts_channel_id:void 0,ts_write_key:""})}removeChannel(i){this.settings.ts_channels.splice(i,1)}get isAddingDisabled(){return this.settings.ts_channels.length>=10}get isRemovingDisabled(){return this.settings.ts_channels.length<=1}checkThingSpeakChannel(i,l,d){this.translate.get("settings.thingspeak.confirmCheck").subscribe(h=>{window.confirm(h)&&(d.setAttribute("disabled","disabled"),this.appService.checkThingSpeakChannel({channelId:i,writeKey:l}).timeout(15e3).finally(()=>{d.removeAttribute("disabled")}).subscribe(W=>{d.classList.remove("btn-danger","btn-warning"),d.classList.add("btn-success")},W=>{console.log(W),d.classList.remove("btn-success","btn-warning"),d.classList.add("btn-danger")}))})}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr),e.\u0275\u0275directiveInject(Ei))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-thingspeak"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:12,vars:7,consts:[[1,"form-group"],["for","ts_server_url"],["type","url","id","ts_server_url","name","ts_server_url","placeholder","http://api.thingspeak.com",1,"form-control",3,"ngModel","pattern","ngModelChange"],["ts_server_url","ngModel"],["class","rounded row",4,"ngFor","ngForOf"],[1,"row"],[1,"col-12"],["type","button",1,"btn","btn-primary","btn-sm","float-left","shadow-sm",3,"disabled","click"],[1,"rounded","row"],[1,"col-12",3,"ngClass"],[4,"ngIf"],["role","group",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-danger","btn-sm",2,"margin-bottom","10px",3,"disabled","title","click"],[1,"h5"],["for","ts_name"],["type","text","id","ts_name","name","ts_name","placeholder","Name",1,"form-control",3,"ngModel","ngModelChange"],["ts_name","ngModel"],["for","ts_channel_id"],["type","number","id","ts_channel_id","name","ts_channel_id","placeholder","Channel-ID","required","",1,"form-control",3,"ngModel","min","max","ngModelChange"],["ts_channel_id","ngModel"],["for","ts_write_key"],[1,"input-group"],["type","text","id","ts_write_key","name","ts_write_key","placeholder","Write-API-Key","required","","minlength","16","maxlength","16",1,"form-control",3,"ngModel","ngModelChange"],["ts_write_key","ngModel"],[1,"input-group-btn"],["type","button",1,"btn","btn-warning",3,"title","click"],["checkElement",""],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-danger",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"alert","alert-danger"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"label",1),e.\u0275\u0275text(2,"ThingSpeak Server-URL"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"input",2,3),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.ts_server_url=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,hf,39,25,"div",4),e.\u0275\u0275elementStart(6,"div",5),e.\u0275\u0275elementStart(7,"div",6),e.\u0275\u0275element(8,"br"),e.\u0275\u0275elementStart(9,"button",7),e.\u0275\u0275listener("click",function(){return l.addChannel()}),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",l.settings.ts_server_url)("pattern",l.thingspeakUrlPattern),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",l.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",l.isAddingDisabled),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("+ ",e.\u0275\u0275pipeBind1(11,5,"settings.thingspeak.addChannel"),""))},directives:[De.DefaultValueAccessor,De.NgControlStatus,De.NgModel,De.PatternValidator,p.sg,p.mk,p.O5,De.NumberValueAccessor,De.MinValidator,De.MaxValidator,De.RequiredValidator,Li.qQ,Li.Fd,De.MinLengthValidator,De.MaxLengthValidator],pipes:[Lr],styles:[".my-bg-ts[_ngcontent-%COMP%]{background-color:#e9ecef}"]}),o})();const Ts=function(o){return{field:o}};function tc(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",39),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,1,"error.spaces",e.\u0275\u0275pureFunction1(6,Ts,e.\u0275\u0275pipeBind1(5,4,"settings.internet.ssid")))," "))}function nc(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",39),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,1,"error.spaces",e.\u0275\u0275pureFunction1(6,Ts,e.\u0275\u0275pipeBind1(5,4,"settings.internet.password")))," "))}function rc(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.required",e.\u0275\u0275pureFunction1(6,Ts,e.\u0275\u0275pipeBind1(3,4,"settings.internet.ssid")))," "))}function ic(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.length",e.\u0275\u0275pureFunction1(6,Ts,e.\u0275\u0275pipeBind1(3,4,"settings.internet.ssid")))," "))}function qs(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",40),e.\u0275\u0275template(1,rc,4,8,"div",13),e.\u0275\u0275template(2,ic,4,8,"div",13),e.\u0275\u0275elementEnd()),2&o){e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.maxlength)}}function Di(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.required",e.\u0275\u0275pureFunction1(6,Ts,e.\u0275\u0275pipeBind1(3,4,"settings.internet.password")))," "))}function Rg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.length",e.\u0275\u0275pureFunction1(6,Ts,e.\u0275\u0275pipeBind1(3,4,"settings.internet.password")))," "))}function Fg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.specialchar",e.\u0275\u0275pureFunction1(6,Ts,e.\u0275\u0275pipeBind1(3,4,"settings.internet.password")))," "))}function sc(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",40),e.\u0275\u0275template(1,Di,4,8,"div",13),e.\u0275\u0275template(2,Rg,4,8,"div",13),e.\u0275\u0275template(3,Fg,4,8,"div",13),e.\u0275\u0275elementEnd()),2&o){e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(9);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==i?null:i.errors.minlength)||(null==i?null:i.errors.maxlength)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.pattern)}}const mf=function(o){return{value:o}};function wi(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275elementStart(1,"div",26),e.\u0275\u0275element(2,"label",27),e.\u0275\u0275elementStart(3,"input",28,29),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().wifi.router.ssid=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",30),e.\u0275\u0275element(7,"label",31),e.\u0275\u0275elementStart(8,"input",32,33),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().wifi.router.password=d}),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",26),e.\u0275\u0275element(12,"label",34),e.\u0275\u0275elementStart(13,"select",35),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().wifi.router.wpa_type=d})("change",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onRouterSelectChange(null==d||null==d.target?null:d.target.value)}),e.\u0275\u0275element(14,"option",11),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275pipe(16,"translate"),e.\u0275\u0275elementStart(17,"option",36),e.\u0275\u0275text(18,"WPA2 (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"option",36),e.\u0275\u0275text(20,"No Password"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(21,tc,6,8,"div",37),e.\u0275\u0275template(22,nc,6,8,"div",37),e.\u0275\u0275template(23,qs,3,2,"div",38),e.\u0275\u0275template(24,sc,4,3,"div",38),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275reference(4),l=e.\u0275\u0275reference(9),d=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.internet.ssid"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(5,21,"settings.internet.ssid")),e.\u0275\u0275property("ngModel",d.wifi.router.ssid)("maxlength",32),e.\u0275\u0275advance(3),e.\u0275\u0275property("hidden",2===d.wifi.router.wpa_type),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.internet.password"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(10,23,"settings.internet.password")),e.\u0275\u0275property("ngModel",d.wifi.router.password)("minlength",8)("maxlength",63)("pattern",d.disallowedChars),e.\u0275\u0275advance(4),e.\u0275\u0275property("translate","settings.internet.wpa_type"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",d.wifi.router.wpa_type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(15,25,"buttons.select",e.\u0275\u0275pureFunction1(30,mf,e.\u0275\u0275pipeBind1(16,28,"settings.internet.wpa_type")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",2),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==i?null:i.value)&&-1!==(null==i||null==i.value?null:i.value.indexOf(" "))),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==l?null:l.value)&&-1!==(null==l||null==l.value?null:l.value.indexOf(" "))),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.invalid&&(i.dirty||i.touched)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.invalid&&(l.dirty||l.touched)&&2!==d.wifi.router.wpa_type)}}function Dl(o,u){1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",7),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"a",41),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&o&&(e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,1,"settings.internet.defaultGW")))}function wl(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",7),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"label",42),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"input",43),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().wifi.modem.apn=d}),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",19),e.\u0275\u0275element(9,"label",44),e.\u0275\u0275elementStart(10,"select",45),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().wifi.modem.ttyUSB=d}),e.\u0275\u0275element(11,"option",11),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementStart(14,"option",36),e.\u0275\u0275text(15,"ttyUSB0 (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"option",36),e.\u0275\u0275text(17,"ttyUSB1"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"option",36),e.\u0275\u0275text(19,"ttyUSB2"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"option",36),e.\u0275\u0275text(21,"ttyS0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"option",36),e.\u0275\u0275text(23,"ttyS1"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"option",36),e.\u0275\u0275text(25,"ttyAMA0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(26,"option",36),e.\u0275\u0275text(27,"ttyAMA1"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,14,"settings.internet.apn")),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(7,16,"settings.internet.apn")),e.\u0275\u0275property("ngModel",i.wifi.modem.apn),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.internet.ttyUSB"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.wifi.modem.ttyUSB),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(12,18,"buttons.select",e.\u0275\u0275pureFunction1(23,mf,e.\u0275\u0275pipeBind1(13,21,"settings.internet.ttyUSB")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue","ttyUSB0"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","ttyUSB1"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","ttyUSB2"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","ttyS0"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","ttyS1"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","ttyAMA0"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","ttyAMA1")}}function _f(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",48),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",49),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"settings.internet.testSuccess"),e.\u0275\u0275sanitizeHtml))}function oc(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",50),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",49),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"settings.internet.testError"),e.\u0275\u0275sanitizeHtml))}function Oo(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"pre",51),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"json"),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,i.checkInternetResponse.content))}}function ac(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,_f,5,3,"div",46),e.\u0275\u0275template(2,oc,5,3,"div",47),e.\u0275\u0275template(3,Oo,3,3,"pre",24),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.checkInternetResponse.connected),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!i.checkInternetResponse.connected),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!i.checkInternetResponse.connected&&i.checkInternetResponse.content)}}function lc(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"pre",51),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(i.checkSurfstickResponse)}}function Sl(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",52),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const d=e.\u0275\u0275nextContext();return d.copyMessage(d.checkSurfstickResponse)}),e.\u0275\u0275elementEnd()}2&o&&e.\u0275\u0275property("translate","settings.log.copy")}let xl=(()=>{class o{constructor(i){this.appService=i,this.isLoading=!1,this.isLoadingAP=!1,this.disallowedChars="[^/]+",this.wifiChange=new e.EventEmitter}set wifi(i){this.wifiChange.emit(i),this._wifi=i}get wifi(){return this._wifi}ngOnInit(){}onRouterSelectChange(i){this.wifi.router.password=""}checkInternet(){this.isLoading=!0,this.checkInternetResponse=null,this.appService.checkInternet().timeout(15e3).finally(()=>this.isLoading=!1).subscribe(i=>{this.checkInternetResponse=i},i=>{console.log(i),this.checkInternetResponse=i.name&&"TimeoutError"===i.name?{connected:!1,content:"Timeout after 15 Seconds."}:i.name&&"HttpErrorResponse"===i.name?{connected:!1,content:null}:{connected:!1,content:i}})}checkDiag(){this.isLoadingAP=!0,this.checkSurfstickResponse=null,this.appService.checkDiag().timeout(15e3).finally(()=>this.isLoadingAP=!1).subscribe(i=>{this.checkSurfstickResponse=i},i=>{console.error(i),this.checkSurfstickResponse=JSON.stringify(i)})}copyMessage(i){const l=document.createElement("textarea");l.style.position="fixed",l.style.left="0",l.style.top="0",l.style.opacity="0",l.value=i,document.body.appendChild(l),l.focus(),l.select(),document.execCommand("copy"),document.body.removeChild(l)}get isAccessPoint(){return"192.168.4.1"===window.location.hostname}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-internet"]],inputs:{wifi:"wifi"},outputs:{wifiChange:"wifiChange"},decls:56,vars:54,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"h5",3,"translate"],[1,"form-check"],["type","checkbox","id","enabledWifi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledWifi",1,"form-check-label",3,"translate"],["class","row",4,"ngIf"],[1,"row"],[1,"form-group","col-12"],["for","enabledModem",3,"translate"],["id","enabledModem","name","enabledModem","required","",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],[3,"ngValue","translate"],[4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"disabled","translate","click"],["data-toggle","collapse","href","#collapseAP","role","button","aria-expanded","false","aria-controls","collapseAP",1,"text-danger",3,"translate"],["id","collapseAP",1,"collapse"],[1,"card","card-body"],[3,"translate"],[1,"form-group","col-12","col-sm-6"],["for","honeypiWifissid"],["type","text","id","honeypiWifissid","name","honeypiWifissid","required","",1,"form-control",3,"ngModel","placeholder","maxlength","ngModelChange"],["for","honeypiWifipassword"],["type","text","id","honeypiWifipassword","name","honeypiWifipassword","required","",1,"form-control",3,"ngModel","placeholder","minlength","maxlength","pattern","ngModelChange"],["class","pre-scrollable",4,"ngIf"],["class","btn btn-light btn-sm","type","button","role","button",3,"translate","click",4,"ngIf"],[1,"form-group","col-12","col-sm-4"],["for","ssid",3,"translate"],["type","text","id","ssid","name","ssid","required","",1,"form-control",3,"ngModel","placeholder","maxlength","ngModelChange"],["router_ssid","ngModel"],[1,"form-group","col-12","col-sm-4",3,"hidden"],["for","password",3,"translate"],["type","text","id","password","name","password","required","",1,"form-control",3,"ngModel","placeholder","minlength","maxlength","pattern","ngModelChange"],["router_password","ngModel"],["for","wpa_type",3,"translate"],["id","wpa_type","name","wpa_type","required","",1,"custom-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"],["class","alert alert-warning col-12","role","alert",4,"ngIf"],["class","alert alert-danger col-12","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning","col-12"],["role","alert",1,"alert","alert-danger","col-12"],["href","./backend/open_gateway.php","target","_blank"],["for","honeypiModemApn"],["type","text","id","honeypiModemApn","name","honeypiModemApn","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","ttyUSB",3,"translate"],["id","ttyUSB","name","ttyUSB","required","",1,"custom-select",3,"ngModel","ngModelChange"],["class","alert alert-success","role","alert",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-success"],[3,"innerHTML"],["role","alert",1,"alert","alert-danger"],[1,"pre-scrollable"],["type","button","role","button",1,"btn","btn-light","btn-sm",3,"translate","click"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"h5",2),e.\u0275\u0275elementStart(6,"div",3),e.\u0275\u0275elementStart(7,"input",4),e.\u0275\u0275listener("ngModelChange",function(h){return l.wifi.router.enabled=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"label",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,wi,25,32,"div",6),e.\u0275\u0275element(10,"hr"),e.\u0275\u0275element(11,"h5",2),e.\u0275\u0275elementStart(12,"div",7),e.\u0275\u0275elementStart(13,"div",8),e.\u0275\u0275element(14,"label",9),e.\u0275\u0275elementStart(15,"select",10),e.\u0275\u0275listener("ngModelChange",function(h){return l.wifi.modem.enabled=h}),e.\u0275\u0275element(16,"option",11),e.\u0275\u0275elementStart(17,"option",12),e.\u0275\u0275text(18,"none"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"option",12),e.\u0275\u0275text(20,"hiLink"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"option",12),e.\u0275\u0275text(22,"wvdial"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(23,Dl,6,3,"ng-container",13),e.\u0275\u0275template(24,wl,28,25,"ng-container",13),e.\u0275\u0275element(25,"hr"),e.\u0275\u0275element(26,"h5",2),e.\u0275\u0275elementStart(27,"p"),e.\u0275\u0275elementStart(28,"button",14),e.\u0275\u0275listener("click",function(){return l.checkInternet()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(29,ac,4,3,"div",13),e.\u0275\u0275element(30,"hr"),e.\u0275\u0275elementStart(31,"p"),e.\u0275\u0275element(32,"a",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"div",16),e.\u0275\u0275elementStart(34,"div",17),e.\u0275\u0275element(35,"h5",2),e.\u0275\u0275element(36,"p",18),e.\u0275\u0275elementStart(37,"div",7),e.\u0275\u0275elementStart(38,"div",19),e.\u0275\u0275elementStart(39,"label",20),e.\u0275\u0275text(40),e.\u0275\u0275pipe(41,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(42,"input",21),e.\u0275\u0275listener("ngModelChange",function(h){return l.wifi.honeypi.ssid=h}),e.\u0275\u0275pipe(43,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(44,"div",19),e.\u0275\u0275elementStart(45,"label",22),e.\u0275\u0275text(46),e.\u0275\u0275pipe(47,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(48,"input",23),e.\u0275\u0275listener("ngModelChange",function(h){return l.wifi.honeypi.password=h}),e.\u0275\u0275pipe(49,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(50,"hr"),e.\u0275\u0275element(51,"h5",2),e.\u0275\u0275elementStart(52,"p"),e.\u0275\u0275elementStart(53,"button",14),e.\u0275\u0275listener("click",function(){return l.checkDiag()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(54,lc,2,1,"pre",24),e.\u0275\u0275template(55,Sl,1,1,"button",25),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,44,"alerts.afterSave"),"\n"),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.internet.wifi"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",l.wifi.router.enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.internet.connectWifi"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.wifi.router.enabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.internet.honeypiModem"),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.internet.connect"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",l.wifi.modem.enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate","settings.internet.connectSelect"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",0)("translate","settings.internet.connectNothing"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1)("translate","settings.internet.connectHiLink"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",2)("translate","settings.internet.connectModem"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",1===l.wifi.modem.enabled&&l.isAccessPoint),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",2===l.wifi.modem.enabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.internet.isMobileConnected"),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("spinner",l.isLoading),e.\u0275\u0275property("disabled",l.isLoading)("translate","settings.internet.testConnection"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.checkInternetResponse),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.internet.collapseAP"),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.internet.honeypiAP"),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.internet.honeypiAPtext"),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(41,46,"settings.internet.ssid")),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(43,48,"settings.internet.ssid")),e.\u0275\u0275property("ngModel",l.wifi.honeypi.ssid)("maxlength",32),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(47,50,"settings.internet.password")),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(49,52,"settings.internet.password")),e.\u0275\u0275property("ngModel",l.wifi.honeypi.password)("minlength",8)("maxlength",63)("pattern",l.disallowedChars),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.internet.isSurfstickConnected"),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("spinner",l.isLoadingAP),e.\u0275\u0275property("disabled",l.isLoadingAP)("translate","settings.internet.testDiag"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.checkSurfstickResponse),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.checkSurfstickResponse))},directives:[ai,De.CheckboxControlValueAccessor,De.NgControlStatus,De.NgModel,p.O5,De.DefaultValueAccessor,De.RequiredValidator,De.MaxLengthValidator,De.MinLengthValidator,De.PatternValidator,De.SelectControlValueAccessor,De.NgSelectOption,De.\u0275NgSelectMultipleOption],pipes:[Lr,p.Ts],styles:[""]}),o})();class uc{constructor(u=0){this.offset=0,this.reference_unit=1}}function Ng(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"option",6),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&o){const i=u.$implicit,l=e.\u0275\u0275nextContext().index;e.\u0275\u0275propertyInterpolate1("value","field",i+8*l,""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate3("",e.\u0275\u0275pipeBind1(2,4,"settings.thingspeak.field")," ",i," - Channel #",l+1,"")}}const eo=function(){return[1,2,3,4,5,6,7,8]};function Ml(o,u){1&o&&(e.\u0275\u0275elementStart(0,"optgroup",4),e.\u0275\u0275template(1,Ng,3,6,"option",5),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275propertyInterpolate2("label","ThingSpeak Channel #",u.index+1," ",u.$implicit.name,""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pureFunction0(3,eo)))}const cc=function(o){return{value:o}};let vf=(()=>{class o{constructor(){this.ts_field_id="ts_field",this.ts_fieldChanged=new e.EventEmitter,this.required=!1}onChange(i){this.ts_fieldChanged.emit(this.ts_field),console.log("Selected Field: "+this.ts_field)}ngOnInit(){}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["settings-ts-field"]],inputs:{label:"label",ts_field_id:"ts_field_id",ts_field:"ts_field",required:"required",channels:"channels"},outputs:{ts_fieldChanged:"ts_fieldChanged"},decls:7,vars:16,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"label",0),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"select",1),e.\u0275\u0275listener("ngModelChange",function(h){return l.ts_field=h})("ngModelChange",function(h){return l.onChange(h)}),e.\u0275\u0275element(3,"option",2),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275template(6,Ml,2,4,"optgroup",3),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275propertyInterpolate("for",l.ts_field_id),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(l.label),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("id",l.ts_field_id),e.\u0275\u0275propertyInterpolate("name",l.ts_field_id),e.\u0275\u0275property("ngModel",l.ts_field)("required",l.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(4,9,"buttons.select",e.\u0275\u0275pureFunction1(14,cc,e.\u0275\u0275pipeBind1(5,12,"settings.thingspeak.field")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",l.channels))},directives:[De.SelectControlValueAccessor,De.NgControlStatus,De.NgModel,De.RequiredValidator,De.NgSelectOption,De.\u0275NgSelectMultipleOption,ai,p.sg],pipes:[Lr],styles:[""]}),o})();const Il=function(){return{value:"GPIO"}};let yf=(()=>{class o{constructor(){this.label="GPIO",this.field_id="w1gpio",this.fieldChanged=new e.EventEmitter,this.required=!1}onChange(i){this.fieldChanged.emit(this.field)}ngOnInit(){}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["settings-gpio-field"]],inputs:{label:"label",field_id:"field_id",field:"field",required:"required",disabled_pins:"disabled_pins"},outputs:{fieldChanged:"fieldChanged"},decls:57,vars:62,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],["disabled","",3,"value"],[3,"value","disabled"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"label",0),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"select",1),e.\u0275\u0275listener("ngModelChange",function(h){return l.field=h})("ngModelChange",function(h){return l.onChange(h)}),e.\u0275\u0275element(3,"option",2),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementStart(5,"option",3),e.\u0275\u0275text(6,"GPIO2 (I2C SDI/SDA)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"option",3),e.\u0275\u0275text(8,"GPIO3 (I2C SCL/SCK)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"option",4),e.\u0275\u0275text(10,"GPIO4 (WittyPi)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"option",4),e.\u0275\u0275text(12,"GPIO5 (HX711_1 DT)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"option",4),e.\u0275\u0275text(14,"GPIO6 (HX711_1 SCK)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"option",4),e.\u0275\u0275text(16,"GPIO7 (HX711_6 DT)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"option",4),e.\u0275\u0275text(18,"GPIO8 (HX711_6 SCK)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"option",4),e.\u0275\u0275text(20,"GPIO9 (HX711_8 DT / 1-Wire Power PCBv2)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"option",4),e.\u0275\u0275text(22,"GPIO10 (HX711_8 SCK)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"option",4),e.\u0275\u0275text(24,"GPIO11 (DS18b20 1-Wire)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"option",4),e.\u0275\u0275text(26,"GPIO12 (HX711_2 DT)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"option",4),e.\u0275\u0275text(28,"GPIO13 (HX711_2 SCK)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"option",4),e.\u0275\u0275text(30,"GPIO14 (UART TX)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(31,"option",4),e.\u0275\u0275text(32,"GPIO15 (UART RX)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"option",4),e.\u0275\u0275text(34,"GPIO16 (Button)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"option",4),e.\u0275\u0275text(36,"GPIO17 (WittyPi)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(37,"option",4),e.\u0275\u0275text(38,"GPIO18 (HX711_7 DT / MAX CLK)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(39,"option",4),e.\u0275\u0275text(40,"GPIO19 (HX711_7 SCK / MAX MISO)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(41,"option",4),e.\u0275\u0275text(42,"GPIO20 (1-Wire Power PCBv3)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(43,"option",4),e.\u0275\u0275text(44,"GPIO21 (LED)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"option",4),e.\u0275\u0275text(46,"GPIO22 (HX711_3 SCK)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(47,"option",4),e.\u0275\u0275text(48,"GPIO23 (HX711_4 DT)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(49,"option",4),e.\u0275\u0275text(50,"GPIO24 (HX711_4 SCK)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(51,"option",4),e.\u0275\u0275text(52,"GPIO25 (HX711_5 DT)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(53,"option",4),e.\u0275\u0275text(54,"GPIO26 (HX711_5 SCK / MAX CS)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(55,"option",4),e.\u0275\u0275text(56,"GPIO27 (HX711_3 DT / MAX CS2)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275propertyInterpolate("for",l.field_id),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(l.label),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("id",l.field_id),e.\u0275\u0275propertyInterpolate("name",l.field_id),e.\u0275\u0275property("ngModel",l.field)("required",l.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(4,58,"buttons.select",e.\u0275\u0275pureFunction0(61,Il))),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",2),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",3),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",4)("disabled",l.disabled_pins.includes(4)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",5)("disabled",l.disabled_pins.includes(5)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",6)("disabled",l.disabled_pins.includes(6)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",7)("disabled",l.disabled_pins.includes(7)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",8)("disabled",l.disabled_pins.includes(8)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",9)("disabled",l.disabled_pins.includes(9)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",10)("disabled",l.disabled_pins.includes(10)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",11)("disabled",l.disabled_pins.includes(11)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",12)("disabled",l.disabled_pins.includes(12)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",13)("disabled",l.disabled_pins.includes(13)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",14)("disabled",l.disabled_pins.includes(14)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",15)("disabled",l.disabled_pins.includes(15)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",16)("disabled",l.disabled_pins.includes(16)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",17)("disabled",l.disabled_pins.includes(17)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",18)("disabled",l.disabled_pins.includes(18)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",19)("disabled",l.disabled_pins.includes(19)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",20)("disabled",l.disabled_pins.includes(20)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",21)("disabled",l.disabled_pins.includes(21)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",22)("disabled",l.disabled_pins.includes(22)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",23)("disabled",l.disabled_pins.includes(23)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",24)("disabled",l.disabled_pins.includes(24)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",25)("disabled",l.disabled_pins.includes(25)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",26)("disabled",l.disabled_pins.includes(26)),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",27)("disabled",l.disabled_pins.includes(27)))},directives:[De.SelectControlValueAccessor,De.NgControlStatus,De.NgModel,De.RequiredValidator,De.NgSelectOption,De.\u0275NgSelectMultipleOption,ai],pipes:[Lr],styles:[".line[_ngcontent-%COMP%]{text-decoration:line-through}"]}),o})();function Cf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"div",14),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"button",15),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().next_step()}),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,2,"settings.sensors.calibration.step0"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" \u2b46 ",e.\u0275\u0275pipeBind1(5,4,"settings.sensors.calibration.btnNext")," "))}function bf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"div",14),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"button",16),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().next_step()}),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,3,"settings.sensors.calibration.step1"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",i.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" \u2b46 ",e.\u0275\u0275pipeBind1(5,5,"settings.sensors.calibration.btnNext")," ")}}function Ef(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"div",14),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"p"),e.\u0275\u0275elementStart(4,"input",17),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().calibration_weight=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"button",16),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().next_step()}),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,7,"settings.sensors.calibration.step2"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(5,9,"settings.sensors.calibration.weightPlaceholder")),e.\u0275\u0275property("min",0)("max",3e5)("ngModel",i.calibration_weight),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",i.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" \u2b46 ",e.\u0275\u0275pipeBind1(8,11,"settings.sensors.calibration.btnNext")," ")}}function Df(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"div",14),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"button",15),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().next_step()}),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,2,"settings.sensors.calibration.step3"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" \u2b46 ",e.\u0275\u0275pipeBind1(5,4,"settings.sensors.calibration.btnFinish")," "))}function wf(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"br"),e.\u0275\u0275text(2,"Output: "),e.\u0275\u0275elementStart(3,"pre",18),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(i.result)}}function dc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",11),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().step_back()}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",i.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("\u2b45 ",e.\u0275\u0275pipeBind1(2,2,"settings.sensors.calibration.btnBack"),"")}}let Tl=(()=>{class o{constructor(i){this.appService=i,this.isLoading=!1,this.step=0,this.calibration_weight=5e3,this.weight1=0,this.weight2=0,this.offset=0,this.reference_unit=1,this.calibrationChange=new e.EventEmitter,this.closeModal=new e.EventEmitter}ngOnInit(){}round(i,l){const d=Math.pow(10,l);return Math.round(i*d)/d}step_back(){this.step--,this.step<=0&&(this.step=0),this.result=null}next_step(){this.result=null,this.step<=0?this.step++:1===this.step||2===this.step?this.measure_weight():this.step>=3&&(this.finish_calibration(),this.step++),this.step>3&&(this.step=0)}measure_weight(){this.isLoading=!0,this.result=null,this.appService.getWeight(this.sensor).timeout(12e4).finally(()=>{this.isLoading=!1,this.step++}).subscribe(i=>{this.result=i;let l=parseFloat(i);l=isNaN(l)?0:l,1===this.step?(this.weight1=l,this.offset=this.round(this.weight1,0)):2===this.step&&(this.weight2=l,this.reference_unit=this.round((this.weight2-this.offset)/this.calibration_weight,4)),this.reference_unit||(this.reference_unit=1),this.reference_unit<0&&(this.reference_unit=-1*this.reference_unit),this.offset||(this.offset=0),console.log("weight:"+l+" calibration_weight:"+this.calibration_weight+" offset:"+this.offset+" reference_unit:"+this.reference_unit)},i=>{console.error(i)})}finish_calibration(){this.calibrationChange.emit({offset:this.offset,reference_unit:this.reference_unit}),this.close_modal()}close_modal(){this.step=0,this.closeModal.emit(!1)}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["sensors-weight-calibration"]],inputs:{sensor:"sensor"},outputs:{calibrationChange:"calibrationChange",closeModal:"closeModal"},decls:24,vars:15,consts:[["tabindex","0","role","dialog",1,"modal","fade","show",2,"display","block"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-sm btn-primary",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-sm","btn-primary",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"modal-backdrop","fade","show"],[3,"innerHTML"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-primary",3,"disabled","click"],["type","number","step","1","required","",1,"form-control",2,"max-width","200px",3,"min","max","ngModel","placeholder","ngModelChange"],[1,"pre-scrollable"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275elementStart(3,"div",3),e.\u0275\u0275elementStart(4,"h5",4),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"button",5),e.\u0275\u0275listener("click",function(){return l.close_modal()}),e.\u0275\u0275elementStart(8,"span",6),e.\u0275\u0275text(9,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",7),e.\u0275\u0275template(11,Cf,6,6,"div",8),e.\u0275\u0275template(12,bf,6,7,"div",8),e.\u0275\u0275template(13,Ef,9,13,"div",8),e.\u0275\u0275template(14,Df,6,6,"div",8),e.\u0275\u0275template(15,wf,5,1,"ng-container",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",9),e.\u0275\u0275template(17,dc,3,4,"button",10),e.\u0275\u0275elementStart(18,"button",11),e.\u0275\u0275listener("click",function(){return l.next_step()}),e.\u0275\u0275text(19),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"button",12),e.\u0275\u0275listener("click",function(){return l.close_modal()}),e.\u0275\u0275text(22,"Close"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(23,"div",13)),2&i&&(e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,11,"settings.sensors.calibration.title")),e.\u0275\u0275advance(5),e.\u0275\u0275classProp("spinner",l.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===l.step),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===l.step),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",2===l.step),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",3===l.step),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.result),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",l.step>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",l.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(20,13,"settings.sensors.calibration.btnNext")," \u2b46"))},directives:[p.O5,De.MinValidator,De.MaxValidator,De.NumberValueAccessor,De.DefaultValueAccessor,De.RequiredValidator,Li.qQ,Li.Fd,De.NgControlStatus,De.NgModel],pipes:[Lr],styles:[""]}),o})();function fc(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"option",34),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&o){const i=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",i),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(i)}}const ki=function(o,u,i){return[o,u,i]};function Sf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).$implicit.pin=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2).$implicit,l=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("label","3.3V GPIO")("field_id","ds18b20_3Vpin")("field",i.pin)("required",!1)("disabled_pins",e.\u0275\u0275pureFunction3(5,ki,l.settings.w1gpio,l.settings.led_pin,l.settings.button_pin))}}function xf(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275elementStart(1,"a",7),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",8),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.deviceId"),e.\u0275\u0275sanitizeHtml))}const pc=function(){return[]};function hc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",36),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275element(3,"br"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementStart(6,"a",37),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(3).getTemperatureSensors()}),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,5,"alerts.noTempSensorFound"),""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,7,"settings.sensors.checkWires")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction0(13,pc)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,9,"buttons.refresh")),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,11,"settings.sensors.checkWiresSuffix")," "))}const Kn=function(o){return{"my-bg":o}},gc=function(){return{value:"Device-ID"}},ga=function(o,u){return[o,u]};function Mf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"label",21),e.\u0275\u0275text(5,"Sensor Device-ID"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"select",22),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.device_id=d}),e.\u0275\u0275element(7,"option",23),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275template(9,fc,3,2,"ng-container",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",20),e.\u0275\u0275elementStart(11,"settings-ts-field",24),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field=d}),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",19),e.\u0275\u0275elementStart(14,"div",20),e.\u0275\u0275elementStart(15,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.w1gpio=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",20),e.\u0275\u0275elementStart(17,"label",25),e.\u0275\u0275text(18),e.\u0275\u0275pipe(19,"translate"),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"input",26),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.offset=d}),e.\u0275\u0275pipe(22,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"div",19),e.\u0275\u0275elementStart(24,"div",20),e.\u0275\u0275elementStart(25,"div",27),e.\u0275\u0275elementStart(26,"input",28),e.\u0275\u0275listener("change",function(d){e.\u0275\u0275restoreView(i);const h=e.\u0275\u0275nextContext().$implicit,P=e.\u0275\u0275nextContext();return h.pin=P.changeCheck(d)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(27,"label",29),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(28,Sf,2,9,"ng-container",30),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",19),e.\u0275\u0275elementStart(30,"div",31),e.\u0275\u0275template(31,xf,5,3,"div",32),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"div",19),e.\u0275\u0275elementStart(33,"div",31),e.\u0275\u0275template(34,hc,11,14,"div",33),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(33,Kn,l%2==0)),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngModel",d.device_id),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(8,22,"buttons.select",e.\u0275\u0275pureFunction0(35,gc))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",h.temperatureSensors),e.\u0275\u0275advance(2),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(12,25,"settings.thingspeak.field"))("ts_field",d.ts_field)("channels",h.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","1-WIRE GPIO")("field_id","w1gpio")("field",h.settings.w1gpio)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction2(36,ga,h.settings.led_pin,h.settings.button_pin)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(19,27,"settings.sensors.temperature")," ",e.\u0275\u0275pipeBind1(20,29,"settings.sensors.offset")," [\xb0C]"),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(22,31,"settings.sensors.offset")),e.\u0275\u0275property("ngModel",d.offset),e.\u0275\u0275advance(5),e.\u0275\u0275property("checked",h.isChecked(d)),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.sensors.use3V"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",h.isChecked(d)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",h.temperatureSensorWasFiltered&&0==h.temperatureSensors.length),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",0==h.temperatureSensors.length)}}const os=function(){return{value:"I2C-Address"}};function If(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_temperature=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",20),e.\u0275\u0275elementStart(7,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_humidity=d}),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",19),e.\u0275\u0275elementStart(10,"div",20),e.\u0275\u0275elementStart(11,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_air_pressure=d}),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",20),e.\u0275\u0275elementStart(14,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_air_quality=d}),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",19),e.\u0275\u0275elementStart(17,"div",20),e.\u0275\u0275elementStart(18,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_absolutehumidity=d}),e.\u0275\u0275pipe(19,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"div",20),e.\u0275\u0275elementStart(21,"label",39),e.\u0275\u0275text(22),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275pipe(24,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"input",40),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.offset=d}),e.\u0275\u0275pipe(26,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",19),e.\u0275\u0275elementStart(28,"div",20),e.\u0275\u0275element(29,"label",41),e.\u0275\u0275pipe(30,"translate"),e.\u0275\u0275elementStart(31,"select",42),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.i2c_addr=d}),e.\u0275\u0275element(32,"option",23),e.\u0275\u0275pipe(33,"translate"),e.\u0275\u0275elementStart(34,"option",34),e.\u0275\u0275text(35,"0x76"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"option",34),e.\u0275\u0275text(37,"0x77"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(52,Kn,l%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(5,31,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",d.ts_field_temperature)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(8,33,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",d.ts_field_humidity)("channels",h.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(12,35,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",d.ts_field_air_pressure)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(15,37,"settings.sensors.quality"))("ts_field_id","ts_field_air_quality")("ts_field",d.ts_field_air_quality)("channels",h.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(19,39,"settings.sensors.ts_field_absolutehumidity"))("ts_field_id","ts_field_absolutehumidity")("ts_field",d.ts_field_absolutehumidity)("channels",h.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(23,41,"settings.sensors.temperature")," ",e.\u0275\u0275pipeBind1(24,43,"settings.sensors.offset")," [\xb0C]"),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(26,45,"settings.sensors.offset")),e.\u0275\u0275property("ngModel",d.offset),e.\u0275\u0275advance(4),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(30,47,"settings.sensors.i2c_addr"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",d.i2c_addr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(33,49,"buttons.select",e.\u0275\u0275pureFunction0(54,os))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x76"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x77")}}function mc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"sensors-weight-calibration",64),e.\u0275\u0275listener("closeModal",function(d){e.\u0275\u0275restoreView(i);const h=e.\u0275\u0275nextContext(2).index;return e.\u0275\u0275nextContext().showCalibration[h]=d})("calibrationChange",function(d){e.\u0275\u0275restoreView(i);const h=e.\u0275\u0275nextContext(2).$implicit;return h.offset=d.offset,h.reference_unit=d.reference_unit}),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("sensor",i)}}const $l=function(o){return{field:o}};function _c(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.required",e.\u0275\u0275pureFunction1(6,$l,e.\u0275\u0275pipeBind1(3,4,"settings.sensors.scale")))," "))}function Al(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.length",e.\u0275\u0275pureFunction1(6,$l,e.\u0275\u0275pipeBind1(3,4,"settings.sensors.scale")))," "))}function vc(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",65),e.\u0275\u0275template(1,_c,4,8,"div",30),e.\u0275\u0275template(2,Al,4,8,"div",30),e.\u0275\u0275elementEnd()),2&o){e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(40);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==i?null:i.errors.min)||(null==i?null:i.errors.max))}}function ma(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275elementStart(1,"div",19),e.\u0275\u0275elementStart(2,"div",20),e.\u0275\u0275element(3,"label",66),e.\u0275\u0275elementStart(4,"input",67),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).$implicit.compensation_value=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",20),e.\u0275\u0275element(7,"label",68),e.\u0275\u0275elementStart(8,"input",69),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).$implicit.compensation_temp=d}),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",19),e.\u0275\u0275elementStart(11,"div",70),e.\u0275\u0275elementStart(12,"settings-ts-field",71),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).$implicit.ts_field_temperature=d}),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",70),e.\u0275\u0275elementStart(15,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).$implicit.ts_field_uncompensated=d}),e.\u0275\u0275pipe(16,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2).$implicit,l=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.sensors.compensationValue"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(5,15,"settings.sensors.compensationValuePlaceholder")),e.\u0275\u0275property("ngModel",i.compensation_value),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.sensors.compensationTemp"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(9,17,"settings.sensors.compensationTempPlaceholder")),e.\u0275\u0275property("ngModel",i.compensation_temp),e.\u0275\u0275advance(4),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(13,19,"settings.sensors.compensationSelectTemp"))("ts_field_id","ts_field_temperature")("ts_field",i.ts_field_temperature)("channels",l.settings.ts_channels)("required",!0),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(16,21,"settings.sensors.ts_field_uncompensated"))("ts_field_id","ts_field_uncompensated")("ts_field",i.ts_field_uncompensated)("channels",l.settings.ts_channels)}}const _a=function(){return{value:"Channel"}};function yc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.pin_dt=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",20),e.\u0275\u0275elementStart(6,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.pin_sck=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",19),e.\u0275\u0275elementStart(8,"div",20),e.\u0275\u0275elementStart(9,"label",43),e.\u0275\u0275text(10,"HX711 Channel"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"select",44),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.channel=d}),e.\u0275\u0275element(12,"option",16),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementStart(14,"option",34),e.\u0275\u0275text(15,"Channel A"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"option",34),e.\u0275\u0275text(17,"Channel B"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",20),e.\u0275\u0275elementStart(19,"settings-ts-field",24),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field=d}),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"div",19),e.\u0275\u0275elementStart(22,"div",45),e.\u0275\u0275elementStart(23,"button",46),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const d=e.\u0275\u0275nextContext().index;return e.\u0275\u0275nextContext().showCalibration[d]=!0}),e.\u0275\u0275text(24),e.\u0275\u0275pipe(25,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(26,mc,1,1,"sensors-weight-calibration",47),e.\u0275\u0275elementStart(27,"div",20),e.\u0275\u0275elementStart(28,"label",48),e.\u0275\u0275text(29),e.\u0275\u0275pipe(30,"translate"),e.\u0275\u0275pipe(31,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"input",49),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.offset=d}),e.\u0275\u0275pipe(33,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"div",20),e.\u0275\u0275elementStart(35,"label",50),e.\u0275\u0275text(36),e.\u0275\u0275pipe(37,"translate"),e.\u0275\u0275pipe(38,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(39,"input",51,52),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.reference_unit=d}),e.\u0275\u0275pipe(41,"number"),e.\u0275\u0275pipe(42,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(43,vc,3,2,"div",53),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(44,"div",19),e.\u0275\u0275elementStart(45,"div",54),e.\u0275\u0275element(46,"div",55),e.\u0275\u0275pipe(47,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(48,"div",54),e.\u0275\u0275element(49,"div",55),e.\u0275\u0275pipe(50,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(51,"div",19),e.\u0275\u0275elementStart(52,"div",31),e.\u0275\u0275elementStart(53,"div",27),e.\u0275\u0275elementStart(54,"input",56),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.invert=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(55,"label",57),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(56,"div",19),e.\u0275\u0275elementStart(57,"div",31),e.\u0275\u0275elementStart(58,"div",27),e.\u0275\u0275elementStart(59,"input",58),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.filter_negative=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(60,"label",59),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(61,"div",19),e.\u0275\u0275elementStart(62,"div",31),e.\u0275\u0275elementStart(63,"div",60),e.\u0275\u0275elementStart(64,"input",61),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.compensation=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(65,"label",62),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(66,"div",31),e.\u0275\u0275template(67,ma,17,23,"div",63),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275reference(40),l=e.\u0275\u0275nextContext(),d=l.index,h=l.$implicit,P=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(68,Kn,d%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","GPIO DT")("field_id","pin_dt")("field",h.pin_dt)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction3(70,ki,P.settings.led_pin,P.settings.button_pin,P.settings.w1gpio)),e.\u0275\u0275advance(2),e.\u0275\u0275property("label","GPIO SCK")("field_id","pin_sck")("field",h.pin_sck)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction3(74,ki,P.settings.led_pin,P.settings.button_pin,P.settings.w1gpio)),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",h.channel),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(13,42,"buttons.select",e.\u0275\u0275pureFunction0(78,_a))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","A"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","B"),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(20,45,"settings.thingspeak.field"))("ts_field",h.ts_field)("channels",P.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",!(h.pin_dt&&h.pin_sck&&h.channel)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(25,47,"settings.sensors.calibration.guidedTour")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!0===P.showCalibration[d]),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(30,49,"settings.sensors.weightcell")," ",e.\u0275\u0275pipeBind1(31,51,"settings.sensors.offset"),""),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(33,53,"settings.sensors.offset")),e.\u0275\u0275property("ngModel",h.offset),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(37,55,"settings.sensors.weightcell")," ",e.\u0275\u0275pipeBind1(38,57,"settings.sensors.scale"),""),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(42,62,"settings.sensors.scale")),e.\u0275\u0275property("ngModel",e.\u0275\u0275pipeBind2(41,59,h.reference_unit,"1.0-4"))("min",1e-4)("max",999.9999),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",i.invalid&&(i.dirty||i.touched)),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(47,64,"alerts.hx711.offset"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(50,66,"alerts.hx711.scale"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",h.invert),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.sensors.invert"),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngModel",h.filter_negative),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.sensors.filter_negative"),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngModel",h.compensation),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.sensors.enableCompensation"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",h.compensation)}}const Ol=function(){return{value:"DHT"}};function Cc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_temperature=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",20),e.\u0275\u0275elementStart(7,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_humidity=d}),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",19),e.\u0275\u0275elementStart(10,"div",20),e.\u0275\u0275elementStart(11,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.pin=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"div",20),e.\u0275\u0275element(13,"label",72),e.\u0275\u0275elementStart(14,"select",73),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.dht_type=d}),e.\u0275\u0275element(15,"option",23),e.\u0275\u0275pipe(16,"translate"),e.\u0275\u0275elementStart(17,"option",34),e.\u0275\u0275text(18,"DHT11"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"option",34),e.\u0275\u0275text(20,"DHT22"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"option",34),e.\u0275\u0275text(22,"AM2302"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"div",19),e.\u0275\u0275elementStart(24,"div",20),e.\u0275\u0275elementStart(25,"label",74),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"translate"),e.\u0275\u0275pipe(28,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"input",75),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.offset=d}),e.\u0275\u0275pipe(30,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(38,Kn,l%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(5,25,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",d.ts_field_temperature)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(8,27,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",d.ts_field_humidity)("channels",h.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","GPIO")("field_id","pin")("field",d.pin)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction3(40,ki,h.settings.led_pin,h.settings.button_pin,h.settings.w1gpio)),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.sensors.selectType"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",d.dht_type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(16,29,"buttons.select",e.\u0275\u0275pureFunction0(44,Ol))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",11),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",22),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",2302),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(27,32,"settings.sensors.temperature")," ",e.\u0275\u0275pipeBind1(28,34,"settings.sensors.offset")," [\xb0C]"),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(30,36,"settings.sensors.offset")),e.\u0275\u0275property("ngModel",d.offset)}}const Pl=function(){return{value:"MAX"}};function Po(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.pin_cs=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",20),e.\u0275\u0275elementStart(6,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.pin_clock=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",19),e.\u0275\u0275elementStart(8,"div",20),e.\u0275\u0275elementStart(9,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.pin=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",20),e.\u0275\u0275element(11,"label",72),e.\u0275\u0275elementStart(12,"select",76),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.max_type=d}),e.\u0275\u0275element(13,"option",23),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275elementStart(15,"option",34),e.\u0275\u0275text(16,"MAX6675"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"option",34),e.\u0275\u0275text(18,"MAX31855"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",19),e.\u0275\u0275elementStart(20,"div",20),e.\u0275\u0275elementStart(21,"label",77),e.\u0275\u0275text(22),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275pipe(24,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"input",78),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.offset=d}),e.\u0275\u0275pipe(26,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",20),e.\u0275\u0275elementStart(28,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field=d}),e.\u0275\u0275pipe(29,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(41,Kn,l%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","Chip-Select (CS)-GPIO")("field_id","pin_cs")("field",d.pin_cs)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction3(43,ki,h.settings.led_pin,h.settings.button_pin,h.settings.w1gpio)),e.\u0275\u0275advance(2),e.\u0275\u0275property("label","Clock (CLK)-GPIO")("field_id","pin_clock")("field",d.pin_clock)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction3(47,ki,h.settings.led_pin,h.settings.button_pin,h.settings.w1gpio)),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","Daten (MISO)-GPIO")("field_id","pin_miso")("field",d.pin)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction3(51,ki,h.settings.led_pin,h.settings.button_pin,h.settings.w1gpio)),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.sensors.selectType"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",d.max_type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(14,30,"buttons.select",e.\u0275\u0275pureFunction0(55,Pl))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",6675),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",31855),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(23,33,"settings.sensors.temperature")," ",e.\u0275\u0275pipeBind1(24,35,"settings.sensors.offset")," [\xb0C]"),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(26,37,"settings.sensors.offset")),e.\u0275\u0275property("ngModel",d.offset),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(29,39,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",d.ts_field)("channels",h.settings.ts_channels)}}function Tf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_temperature=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",20),e.\u0275\u0275elementStart(7,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_humidity=d}),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",19),e.\u0275\u0275elementStart(10,"div",20),e.\u0275\u0275elementStart(11,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_air_pressure=d}),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",20),e.\u0275\u0275elementStart(14,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_absolutehumidity=d}),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",19),e.\u0275\u0275elementStart(17,"div",20),e.\u0275\u0275elementStart(18,"label",79),e.\u0275\u0275text(19),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275pipe(21,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"input",80),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.offset=d}),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"div",20),e.\u0275\u0275element(25,"label",41),e.\u0275\u0275pipe(26,"translate"),e.\u0275\u0275elementStart(27,"select",81),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.i2c_addr=d}),e.\u0275\u0275element(28,"option",23),e.\u0275\u0275pipe(29,"translate"),e.\u0275\u0275elementStart(30,"option",34),e.\u0275\u0275text(31,"0x76"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"option",34),e.\u0275\u0275text(33,"0x77"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(46,Kn,l%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(5,27,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",d.ts_field_temperature)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(8,29,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",d.ts_field_humidity)("channels",h.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(12,31,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",d.ts_field_air_pressure)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(15,33,"settings.sensors.ts_field_absolutehumidity"))("ts_field_id","ts_field_absolutehumidity")("ts_field",d.ts_field_absolutehumidity)("channels",h.settings.ts_channels),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(20,35,"settings.sensors.temperature")," ",e.\u0275\u0275pipeBind1(21,37,"settings.sensors.offset")," [\xb0C]"),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(23,39,"settings.sensors.offset")),e.\u0275\u0275property("ngModel",d.offset),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(26,41,"settings.sensors.i2c_addr"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",d.i2c_addr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(29,43,"buttons.select",e.\u0275\u0275pureFunction0(48,os))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x76"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x77")}}const bc=function(){return{value:"VCC"}};function $f(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"select",85),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).$implicit.I2CVoltage=d}),e.\u0275\u0275element(2,"option",23),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementStart(4,"option",34),e.\u0275\u0275text(5,"Max. 16.5V 3.3V\xd7(30k\u2126\xf77.5k\u2126+1) (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"option",34),e.\u0275\u0275text(7,"Max. 25V 5V\xd7(30k\u2126\xf77.5k\u2126+1)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"option",34),e.\u0275\u0275text(9,"Max. 29.7V 3.3V\xd7(40k\u2126\xf75k\u2126+1)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"option",86),e.\u0275\u0275elementStart(11,"em"),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.I2CVoltage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(3,8,"buttons.select",e.\u0275\u0275pureFunction0(13,bc))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",16.5),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",25),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",29.7),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",null),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(13,11,"settings.sensors.customValue"))}}function Af(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",87),e.\u0275\u0275elementStart(2,"input",88),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).$implicit.I2CVoltage=d}),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",89),e.\u0275\u0275elementStart(5,"button",90),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).$implicit.I2CVoltage=void 0}),e.\u0275\u0275text(6,"X"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(3,2,"settings.sensors.selectI2CVoltage_c")),e.\u0275\u0275property("ngModel",i.I2CVoltage)}}const Ec=function(){return{value:"PIN"}},va=function(){return[void 0,16.5,25,29.7]};function Dc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",20),e.\u0275\u0275element(7,"label",82),e.\u0275\u0275elementStart(8,"select",83),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.pin=d}),e.\u0275\u0275element(9,"option",23),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementStart(11,"option",34),e.\u0275\u0275text(12,"AIN0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"option",34),e.\u0275\u0275text(14,"AIN1"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"option",34),e.\u0275\u0275text(16,"AIN2 (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"option",34),e.\u0275\u0275text(18,"AIN3"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",19),e.\u0275\u0275elementStart(20,"div",20),e.\u0275\u0275element(21,"label",84),e.\u0275\u0275template(22,$f,14,14,"ng-container",30),e.\u0275\u0275template(23,Af,7,4,"ng-container",30),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(21,Kn,l%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(5,16,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",d.ts_field)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.sensors.selectPin"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",d.pin),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(10,18,"buttons.select",e.\u0275\u0275pureFunction0(23,Ec))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",2),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",3),e.\u0275\u0275advance(4),e.\u0275\u0275property("translate","settings.sensors.selectI2CVoltage"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pureFunction0(24,va).includes(d.I2CVoltage)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pureFunction0(25,va).includes(d.I2CVoltage))}}function Vg(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",19),e.\u0275\u0275elementStart(7,"div",20),e.\u0275\u0275elementStart(8,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_temperature=d}),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",20),e.\u0275\u0275elementStart(11,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_air_pressure=d}),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(19,Kn,l%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(5,13,"settings.sensors.co2"))("ts_field_id","ts_field_temperature")("ts_field",d.ts_field)("channels",h.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(9,15,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",d.ts_field_temperature)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(12,17,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",d.ts_field_air_pressure)("channels",h.settings.ts_channels)}}function wc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_temperature=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",20),e.\u0275\u0275elementStart(7,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field_humidity=d}),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",19),e.\u0275\u0275elementStart(10,"div",20),e.\u0275\u0275element(11,"label",91),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementStart(13,"select",92),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.i2c_addr=d}),e.\u0275\u0275element(14,"option",23),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementStart(16,"option",34),e.\u0275\u0275text(17,"0x38 (AHT10)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"option",34),e.\u0275\u0275text(19,"0x39 (AHT10)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"option",34),e.\u0275\u0275text(21,"0x40 (HDC1080/SHT25)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"option",34),e.\u0275\u0275text(23,"0x41 (HDC1080)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"option",34),e.\u0275\u0275text(25,"0x44 (SHT31)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(26,"option",34),e.\u0275\u0275text(27,"0x45 (SHT31)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(28,Kn,l%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(5,19,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",d.ts_field_temperature)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(8,21,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",d.ts_field_humidity)("channels",h.settings.ts_channels),e.\u0275\u0275advance(4),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(12,23,"settings.sensors.i2c_addr"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",d.i2c_addr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(15,25,"buttons.select",e.\u0275\u0275pureFunction0(30,os))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x38"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x39"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x40"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x41"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x44"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x45")}}function Of(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"settings-ts-field",38),e.\u0275\u0275listener("ts_fieldChanged",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.ts_field=d}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",20),e.\u0275\u0275element(7,"label",91),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementStart(9,"select",92),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.i2c_addr=d}),e.\u0275\u0275element(10,"option",23),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementStart(12,"option",34),e.\u0275\u0275text(13,"0x23 (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"option",34),e.\u0275\u0275text(15,"0x5C"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),l=i.index,d=i.$implicit,h=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(18,Kn,l%2==0)),e.\u0275\u0275advance(4),e.\u0275\u0275property("label","ThingSpeak "+e.\u0275\u0275pipeBind1(5,11,"settings.sensors.light"))("ts_field_id","ts_field")("ts_field",d.ts_field)("channels",h.settings.ts_channels),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(8,13,"settings.sensors.i2c_addr"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",d.i2c_addr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(11,15,"buttons.select",e.\u0275\u0275pureFunction0(20,os))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x23"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x5C")}}function Sc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",14),e.\u0275\u0275elementStart(1,"td",3),e.\u0275\u0275elementStart(2,"div",19),e.\u0275\u0275elementStart(3,"div",20),e.\u0275\u0275elementStart(4,"label",93),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"input",94),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.timeout=d}),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",20),e.\u0275\u0275element(10,"label",41),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementStart(12,"select",81),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().$implicit.i2c_addr=d}),e.\u0275\u0275element(13,"option",23),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275elementStart(15,"option",34),e.\u0275\u0275text(16,"0x10"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(),d=i.$implicit;e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(18,Kn,i.index%2==0)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,9,"settings.sensors.timeout")),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(8,11,"settings.sensors.timeout")),e.\u0275\u0275property("ngModel",d.timeout),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(11,13,"settings.sensors.i2c_addr"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",d.i2c_addr),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(14,15,"buttons.select",e.\u0275\u0275pureFunction0(20,os))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue","0x10")}}const Pf=function(o){return{value:o}};function Rf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"tr",14),e.\u0275\u0275elementStart(2,"td"),e.\u0275\u0275elementStart(3,"select",15),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i).$implicit.type=d}),e.\u0275\u0275element(4,"option",16),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementStart(7,"option",16),e.\u0275\u0275text(8,"Temperatursensor (DS18b20)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"option",16),e.\u0275\u0275text(10,"Temperatur+Luftfeuchtigkeit+Luftdruck+Qualit\xe4t (BME680)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"option",16),e.\u0275\u0275text(12,"Temperatur+Luftfeuchtigkeit+Luftdruck (BME280)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"option",16),e.\u0275\u0275text(14,"Gewichtssensor (A/D: HX711)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"option",16),e.\u0275\u0275text(16,"Luftfeuchtigkeit und Temperatur (DHT11/DHT22/AM2302)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"option",16),e.\u0275\u0275text(18,"Temperatursensor (MAX6675/MAX31855)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"option",16),e.\u0275\u0275text(20,"Voltmeter (A/D: PCF8591)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"option",16),e.\u0275\u0275text(22,"CO2 + Temp + Luftdruck (EE895)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"option",16),e.\u0275\u0275text(24,"Luftfeuchtigkeit und Temperatur (HDC1080/HDC2080)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"option",16),e.\u0275\u0275text(26,"Luftfeuchtigkeit und Temperatur (SHT30/SHT31/SHT35/SHT85)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"option",16),e.\u0275\u0275text(28,"Luftfeuchtigkeit und Temperatur (AHT10/AHT15/AHT20/AHT21)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"option",16),e.\u0275\u0275text(30,"Lichtsensor (BH1750)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(31,"option",16),e.\u0275\u0275text(32,"Luftfeuchtigkeit und Temperatur (SHT25)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"option",16),e.\u0275\u0275text(34,"GPS (PA1010D)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"td"),e.\u0275\u0275elementStart(36,"button",17),e.\u0275\u0275listener("click",function(){const h=e.\u0275\u0275restoreView(i).index;return e.\u0275\u0275nextContext().removeSensor(h)}),e.\u0275\u0275pipe(37,"translate"),e.\u0275\u0275text(38," \u232b "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(39,Mf,35,39,"tr",18),e.\u0275\u0275template(40,If,38,55,"tr",18),e.\u0275\u0275template(41,yc,68,79,"tr",18),e.\u0275\u0275template(42,Cc,31,45,"tr",18),e.\u0275\u0275template(43,Po,30,56,"tr",18),e.\u0275\u0275template(44,Tf,34,49,"tr",18),e.\u0275\u0275template(45,Dc,24,26,"tr",18),e.\u0275\u0275template(46,Vg,13,21,"tr",18),e.\u0275\u0275template(47,wc,28,31,"tr",18),e.\u0275\u0275template(48,Of,16,21,"tr",18),e.\u0275\u0275template(49,Sc,17,21,"tr",18),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=u.$implicit,l=u.index;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(51,Kn,l%2==0)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(5,44,"buttons.select",e.\u0275\u0275pureFunction1(53,Pf,e.\u0275\u0275pipeBind1(6,47,"settings.sensors.sensor")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",0)("translate","settings.sensors.sensor_0"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1)("translate","settings.sensors.sensor_1"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",5)("translate","settings.sensors.sensor_5"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",2)("translate","settings.sensors.sensor_2"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",3)("translate","settings.sensors.sensor_3"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",4)("translate","settings.sensors.sensor_4"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",6)("translate","settings.sensors.sensor_6"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",7)("translate","settings.sensors.sensor_7"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",8)("translate","settings.sensors.sensor_8"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",9)("translate","settings.sensors.sensor_9"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",10)("translate","settings.sensors.sensor_10"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",11)("translate","settings.sensors.sensor_11"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",12)("translate","settings.sensors.sensor_12"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",99)("translate","settings.sensors.sensor_99"),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind1(37,49,"buttons.remove")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",0==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",2==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",3==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",4==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",5==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",6==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",7==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",8==i.type||9==i.type||10==i.type||12==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",11==i.type),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",99==i.type)}}function li(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",95),e.\u0275\u0275elementStart(1,"a",7),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",8),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.tomanysensorsofthattype"),e.\u0275\u0275sanitizeHtml))}let Ff=(()=>{class o{constructor(i){this.appService=i,this.temperatureSensors=[],this.temperatureSensorWasFiltered=!1,this.showCalibration=[],this.settingsChange=new e.EventEmitter}set settings(i){this.settingsChange.emit(i),this._settings=i}get settings(){return this._settings}ngOnInit(){this.getTemperatureSensorsAsync()}addSensor(){this.settings.sensors.push(new uc)}removeSensor(i){this.settings.sensors.splice(i,1)}filterTemperatureSensors(i){const l=i.filter(function(d,h,P){return-1===d.indexOf("00000000")});return this.temperatureSensorWasFiltered=i.length!==l.length,l}getTemperatureSensorsAsync(){return fa(this,void 0,void 0,function*(){setTimeout(()=>{this.getTemperatureSensors()},5500)})}getTemperatureSensors(){this.appService.getTemperatureSensors().subscribe(i=>{i&&(console.log("The following device-ids from DS18b20 temperature sensor have been received (unfiltered):",i),this.temperatureSensors=this.filterTemperatureSensors(i),console.log("After removing invalid device-ids from this list the following device-ids are left:",this.temperatureSensors))},i=>{console.error(i)})}isChecked(i){return i.pin>0}changeCheck(i){return i.target.checked?9:0}checkForAllowedOccurrences(i,l,d){return new Set(i.filter(h=>h.type==l)).size>d}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-sensors"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:32,vars:37,consts:[[1,"table","table-bordered","table-sm",2,"position","relative","overflow-x","hidden","overflow-y","auto"],["id","sensors"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"btn","btn-primary",3,"title","click"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["data-toggle","collapse","href","#collapseSensor","role","button","aria-expanded","false","aria-controls","collapseSensor",1,"text-danger"],["id","collapseSensor",1,"collapse"],[1,"card","card-body"],[1,"form-group"],[3,"label","field_id","field","required","disabled_pins","fieldChanged"],[3,"ngClass"],["name","sensor-type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[1,"btn","btn-danger","float-right",3,"title","click"],[3,"ngClass",4,"ngIf"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","device_id"],["id","device_id","name","device_id","required","",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],[3,"label","ts_field","channels","ts_fieldChanged"],["for","offset_ds18b20"],["type","number","step","0.1","id","offset_ds18b20","name","offset_ds18b20",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"form-group","form-check"],["type","checkbox","id","use_3V","name","use_3V",1,"form-check-input",3,"checked","change"],["for","use_3V",1,"form-check-label",3,"translate"],[4,"ngIf"],[1,"col-12"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-info",4,"ngIf"],[3,"ngValue"],["role","alert",1,"alert","alert-warning"],[1,"alert","alert-info"],[3,"routerLink","click"],[3,"label","ts_field_id","ts_field","channels","ts_fieldChanged"],["for","offset_bme680"],["type","number","step","0.1","id","offset_bme680","name","offset_bme680",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","i2c_addr",3,"innerHTML"],["id","i2c_addr","name","i2c_addr",1,"custom-select",3,"ngModel","ngModelChange"],["for","channel"],["name","channel","id","channel","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"form-group","col-12"],[1,"btn","btn-sm","btn-outline-primary",2,"width","100%",3,"disabled","click"],["style","z-index:9999;position:absolute",3,"sensor","closeModal","calibrationChange",4,"ngIf"],["for","offset"],["type","number","step","1","id","offset","name","offset","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","reference_unit"],["type","number","step","0.0001","id","reference_unit","name","reference_unit","required","",1,"form-control",3,"ngModel","placeholder","min","max","ngModelChange"],["ref_unit","ngModel"],["class","alert alert-danger col-12","role","alert","style","margin-top:5px",4,"ngIf"],[1,"col-12","col-md-6"],[1,"alert","alert-info",3,"innerHTML"],["type","checkbox","name","invert","id","invert",1,"form-check-input",3,"ngModel","ngModelChange"],["for","invert",1,"form-check-label",3,"translate"],["type","checkbox","name","filter_negative","id","filter_negative",1,"form-check-input",3,"ngModel","ngModelChange"],["for","filter_negative",1,"form-check-label",3,"translate"],[1,"form-check"],["type","checkbox","id","compensation",1,"form-check-input",3,"ngModel","ngModelChange"],["for","compensation",1,"form-check-label",3,"translate"],["class","card card-body",4,"ngIf"],[2,"z-index","9999","position","absolute",3,"sensor","closeModal","calibrationChange"],["role","alert",1,"alert","alert-danger","col-12",2,"margin-top","5px"],["for","compensation_value",3,"translate"],["type","number","step","0.01","id","compensation_value","name","compensation_value","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","compensation_temp",3,"translate"],["type","number","step","0.01","id","compensation_temp","name","compensation_temp","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"col-12","col-sm-6"],[3,"label","ts_field_id","ts_field","channels","required","ts_fieldChanged"],["for","dht_type",3,"translate"],["id","dht_type","name","dht_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_dht"],["type","number","step","0.1","id","offset_dht","name","offset_dht",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["id","max_type","name","max_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_max"],["type","number","step","0.1","id","offset_max","name","offset",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","offset_bme280"],["type","number","step","0.1","id","offset_bme280","name","offset_bme280",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["id","i2c_addr","name","i2c_addr","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","pcf8591_pin",3,"translate"],["id","pcf8591_pin","name","pcf8591_pin","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","ic2_voltage",3,"translate"],["id","ic2_voltage","name","ic2_voltage","required","",1,"custom-select",3,"ngModel","ngModelChange"],[2,"font-style","italic",3,"ngValue"],[1,"input-group","mb-3"],["type","number","step","0.01","id","ic2_voltage_c","name","ic2_voltage_c",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["for","i2c_addr_8",3,"innerHTML"],["id","i2c_addr_8","name","i2c_addr_8",1,"custom-select",3,"ngModel","ngModelChange"],["for","timeout"],["type","number","step","1","id","timeout","name","timeout","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["role","alert",1,"alert","alert-danger"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"table",0),e.\u0275\u0275elementStart(1,"tbody",1),e.\u0275\u0275template(2,Rf,50,55,"ng-container",2),e.\u0275\u0275elementStart(3,"tr"),e.\u0275\u0275elementStart(4,"td",3),e.\u0275\u0275elementStart(5,"button",4),e.\u0275\u0275listener("click",function(){return l.addSensor()}),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,li,5,3,"div",5),e.\u0275\u0275elementStart(10,"div",6),e.\u0275\u0275elementStart(11,"a",7),e.\u0275\u0275text(12,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(13,"span",8),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"p"),e.\u0275\u0275elementStart(16,"a",9),e.\u0275\u0275text(17),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",10),e.\u0275\u0275elementStart(20,"div",11),e.\u0275\u0275elementStart(21,"div",12),e.\u0275\u0275elementStart(22,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(h){return l.settings.led_pin=h}),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"div",12),e.\u0275\u0275elementStart(25,"settings-gpio-field",13),e.\u0275\u0275listener("fieldChanged",function(h){return l.settings.button_pin=h}),e.\u0275\u0275pipe(26,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",6),e.\u0275\u0275elementStart(28,"a",7),e.\u0275\u0275text(29,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(30),e.\u0275\u0275pipe(31,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",l.settings.sensors),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind1(6,17,"buttons.add")),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" + ",e.\u0275\u0275pipeBind1(8,19,"settings.sensors.addSensor")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",l.checkForAllowedOccurrences(l.settings.sensors,99,1)||l.checkForAllowedOccurrences(l.settings.sensors,11,1)||l.checkForAllowedOccurrences(l.settings.sensors,7,1)||l.checkForAllowedOccurrences(l.settings.sensors,5,2)||l.checkForAllowedOccurrences(l.settings.sensors,1,2)),e.\u0275\u0275advance(4),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(14,21,"alerts.gpio"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(18,23,"settings.sensors.advancedSettings")," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(23,25,"settings.sensors.ledPin"))("field_id","led_pin")("field",l.settings.led_pin)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction2(31,ga,l.settings.button_pin,l.settings.w1gpio)),e.\u0275\u0275advance(3),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(26,27,"settings.sensors.buttonPin"))("field_id","button_pin")("field",l.settings.button_pin)("required",!0)("disabled_pins",e.\u0275\u0275pureFunction2(34,ga,l.settings.led_pin,l.settings.w1gpio)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(31,29,"alerts.afterSave")," "))},directives:[p.sg,p.mk,De.SelectControlValueAccessor,De.RequiredValidator,De.NgControlStatus,De.NgModel,De.NgSelectOption,De.\u0275NgSelectMultipleOption,ai,p.O5,vf,yf,De.NumberValueAccessor,De.DefaultValueAccessor,Vi,Tl,De.MinValidator,De.MaxValidator,Li.qQ,Li.Fd,De.CheckboxControlValueAccessor],pipes:[Lr,p.JJ],styles:[""]}),o})();function Vf(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"pre",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(i.debugInfo)}}function Lf(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"li",15),e.\u0275\u0275elementStart(1,"strong"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext(),l=i.$implicit,d=i.index,h=e.\u0275\u0275nextContext(3);e.\u0275\u0275propertyInterpolate1("id","abc_",l,""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(3,4,"settings.thingspeak.field")," ",d+1,""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(": ",h.thingSpeakFields["field"+(d+1)]," ")}}function kf(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Lf,5,6,"li",14),e.\u0275\u0275elementContainerEnd()),2&o){const i=u.index,l=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.thingSpeakFields["field"+(i+1)]||0===l.thingSpeakFields["field"+(i+1)])}}function Bf(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"li",16),e.\u0275\u0275elementStart(1,"strong"),e.\u0275\u0275text(2,"Latitude"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(": ",i.thingSpeakFields.latitude," ")}}function xc(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"li",17),e.\u0275\u0275elementStart(1,"strong"),e.\u0275\u0275text(2,"Longitude"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(": ",i.thingSpeakFields.longitude," ")}}function jf(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"li",18),e.\u0275\u0275elementStart(1,"strong"),e.\u0275\u0275text(2,"Elevation"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(": ",i.thingSpeakFields.elevation," ")}}function Uf(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"ul",9),e.\u0275\u0275template(1,kf,2,1,"ng-container",10),e.\u0275\u0275template(2,Bf,4,1,"li",11),e.\u0275\u0275template(3,xc,4,1,"li",12),e.\u0275\u0275template(4,jf,4,1,"li",13),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",i.numbers),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.thingSpeakFields.latitude),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.thingSpeakFields.longitude),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.thingSpeakFields.elevation)}}function Hf(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Vf,2,1,"pre",6),e.\u0275\u0275template(2,Uf,5,4,"ul",7),e.\u0275\u0275elementContainerEnd()),2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.debugInfo),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.thingSpeakFields)}}f(5803);const nt=function(o){return{tab:o}};function Mc(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",19),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",2),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(4,1,"settings.measurement.noData",e.\u0275\u0275pureFunction1(6,nt,e.\u0275\u0275pipeBind1(5,4,"settings.sensors.title"))),e.\u0275\u0275sanitizeHtml))}function Ic(o,u){1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",20),e.\u0275\u0275elementStart(2,"div",21),e.\u0275\u0275elementStart(3,"div",21),e.\u0275\u0275elementStart(4,"div",21),e.\u0275\u0275element(5,"div",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd())}let Tc=(()=>{class o{constructor(i){this.appService=i,this.measurement=null,this.isLoading=!1,this.measurementStarted=!1,this.numbers=Array(80).fill(0).map((d,h)=>h)}ngOnInit(){}getMeasurement(){this.measurement=null,this.measurementStarted=!1,this.isLoading=!0,this.appService.getMeasurement().finally(()=>{this.isLoading=!1,this.measurementStarted=!0,console.log("getMeasurement",this.measurement)}).subscribe(i=>{i&&(this.measurement=JSON.stringify(i))},i=>{i.error.text&&(this.measurement=i.error.text)})}get isNoData(){return!0===this.measurementStarted&&null===this.thingSpeakFields}get debugInfo(){return this.measurement&&this.measurement.includes("{")?this.measurement.split("{")[0]:null}get thingSpeakFields(){if(this.measurement&&this.measurement.includes("{")){let i=this.measurement.split("{")[1];return i.length<=2?null:JSON.parse("{"+i)}return null}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-measurement"]],decls:11,vars:13,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"disabled","translate","click"],["class","pre-scrollable",4,"ngIf"],["class","list-group",4,"ngIf"],[1,"pre-scrollable"],[1,"list-group"],[4,"ngFor","ngForOf"],["id","latitude","class","list-group-item",4,"ngIf"],["id","longitude","class","list-group-item",4,"ngIf"],["id","elevation","class","list-group-item",4,"ngIf"],["class","list-group-item",3,"id",4,"ngIf"],[1,"list-group-item",3,"id"],["id","latitude",1,"list-group-item"],["id","longitude",1,"list-group-item"],["id","elevation",1,"list-group-item"],["role","alert",1,"alert","alert-warning"],["id","circle"],[1,"loader"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",2),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,Hf,3,2,"ng-container",3),e.\u0275\u0275template(7,Mc,6,8,"div",4),e.\u0275\u0275template(8,Ic,6,0,"ng-container",3),e.\u0275\u0275element(9,"br"),e.\u0275\u0275elementStart(10,"button",5),e.\u0275\u0275listener("click",function(){return l.getMeasurement()}),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(4,6,"settings.measurement.info",e.\u0275\u0275pureFunction1(11,nt,e.\u0275\u0275pipeBind1(5,9,"settings.sensors.title"))),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",null!==l.measurement),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.isNoData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.isLoading),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",l.isLoading)("translate","settings.measurement.get"))},directives:[p.O5,p.sg,ai],pipes:[Lr],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% + -0px);height:calc(100% + -0px);border:8px solid #f7f7f7;border-top:8px solid #ffc107;border-radius:50%;animation:rotate 5s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}"]}),o})();const ya=function(o){return{tab:o}};function ui(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",17),e.\u0275\u0275elementStart(1,"a",3),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",4),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(4,1,"settings.offline.noData",e.\u0275\u0275pureFunction1(6,ya,e.\u0275\u0275pipeBind1(5,4,"settings.thingspeak.title"))),e.\u0275\u0275sanitizeHtml))}function $c(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"div",19),e.\u0275\u0275elementStart(2,"div",20),e.\u0275\u0275elementStart(3,"a",21),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275element(6,"br"),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",22),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const d=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext().uploadCsv(d.ts_channel_id,d.ts_write_key)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const d=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext().deleteCsv(d.ts_channel_id)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext().$implicit,l=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate2("href","",l.apiURL,"csv-download.php?channelId=",i.ts_channel_id,"",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275propertyInterpolate1("download","HoneyPi-",i.ts_channel_id,"-export.csv"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,8,"settings.offline.exportButton"),""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2(" #",i.ts_channel_id," ",i.name," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.offline.upload"),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.offline.delete")}}function Wf(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,$c,10,10,"div",18),e.\u0275\u0275elementContainerEnd()),2&o){const i=u.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.ts_channel_id)}}let Rl=(()=>{class o{constructor(i){this.appService=i,this.settingsChange=new e.EventEmitter}set settings(i){this.settingsChange.emit(i),this._settings=i}get settings(){return this._settings}ngOnInit(){this.apiURL=xn_apiURL}deleteCsv(i){this.appService.deleteCsv(i).subscribe(l=>{},l=>{console.error(l)})}uploadCsv(i,l){this.appService.uploadCsv(i,l).subscribe(d=>{!0===d.success?alert("Success!"):alert(JSON.stringify(d,null,4))},d=>{console.error(d);let h=d.error.text||d.error.content;h&&alert(JSON.stringify(h,null,4))})}get isThingSpeakDefined(){return 0===this.settings.ts_channels.filter(i=>i.ts_channel_id>0).length}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-offline"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:23,vars:22,consts:[[1,"row"],[1,"col-12"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[1,"form-check"],["type","radio","name","offline","id","offline0",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline0",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline1",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline1",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline2",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline2",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline3",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline3",1,"form-check-label",3,"translate"],[1,"h5",3,"translate"],["class","alert alert-warning","role","alert",4,"ngIf"],[4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-warning"],["class","row",4,"ngIf"],[1,"col-12",2,"padding-bottom","15px"],["role","group",1,"btn-group","btn-group-sm"],["target","_blank",1,"btn","btn-primary","btn-sm",3,"href","download"],["type","button","role","button",1,"btn","btn-secondary","btn-sm",3,"translate","click"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275elementStart(3,"a",3),e.\u0275\u0275text(4,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"span",4),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",5),e.\u0275\u0275elementStart(8,"input",6),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.offline=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(9,"label",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",5),e.\u0275\u0275elementStart(11,"input",8),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.offline=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(12,"label",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",5),e.\u0275\u0275elementStart(14,"input",10),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.offline=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(15,"label",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",5),e.\u0275\u0275elementStart(17,"input",12),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.offline=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(18,"label",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(19,"hr"),e.\u0275\u0275element(20,"h5",14),e.\u0275\u0275template(21,ui,6,8,"div",15),e.\u0275\u0275template(22,Wf,2,1,"ng-container",16)),2&i&&(e.\u0275\u0275advance(5),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(6,20,"settings.offline.infoExport"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275property("value",0)("ngModel",l.settings.offline)("checked",0==l.settings.offline||null==l.settings.offline),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.offline.radio0"),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",1)("ngModel",l.settings.offline)("checked",1==l.settings.offline),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.offline.radio1"),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",2)("ngModel",l.settings.offline)("checked",2==l.settings.offline),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.offline.radio2"),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",3)("ngModel",l.settings.offline)("checked",3==l.settings.offline),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.offline.radio3"),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.offline.export"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.isThingSpeakDefined),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",l.settings.ts_channels))},directives:[De.RadioControlValueAccessor,De.DefaultValueAccessor,De.NgControlStatus,De.NgModel,ai,p.O5,p.sg],pipes:[Lr],styles:[""]}),o})();function Bi(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"pre",14),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(i.log)}}function Fl(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const d=e.\u0275\u0275nextContext();return d.copyMessage(d.log)}),e.\u0275\u0275elementEnd()}2&o&&e.\u0275\u0275property("translate","settings.log.copy")}function Ac(o,u){1&o&&e.\u0275\u0275element(0,"div",16),2&o&&e.\u0275\u0275property("translate","settings.log.nofile")}function Nl(o,u){1&o&&e.\u0275\u0275element(0,"div",16),2&o&&e.\u0275\u0275property("translate","settings.log.empty")}const Gf=function(o){return{value:o}};let Oc=(()=>{class o{constructor(i){this.appService=i,this.log=null,this.settingsChange=new e.EventEmitter}set settings(i){this.settingsChange.emit(i),this._settings=i}get settings(){return this._settings}ngOnInit(){this.getLogAsync()}getLogAsync(){return fa(this,void 0,void 0,function*(){setTimeout(()=>{this.getLog()},4500)})}getLog(){this.log=null,this.appService.getLog().subscribe(i=>{this.log=i},i=>{console.error(i)})}deleteLog(){this.appService.deleteLog().subscribe(i=>{this.log=i},i=>{console.error(i)})}copyMessage(i){const l=document.createElement("textarea");l.style.position="fixed",l.style.left="0",l.style.top="0",l.style.opacity="0",l.value=i,document.body.appendChild(l),l.focus(),l.select(),document.execCommand("copy"),document.body.removeChild(l)}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-log"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:40,vars:36,consts:[[1,"row"],[1,"col-12","col-sm-6"],["for","debuglevel_logfile",3,"translate"],["id","debuglevel_logfile","name","debuglevel_logfile",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],[3,"ngValue"],["for","debuglevel",3,"translate"],["id","debuglevel","name","debuglevel",1,"custom-select",3,"ngModel","ngModelChange"],["role","group",1,"btn-group","btn-group-sm"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"translate","click"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"],["class","pre-scrollable",4,"ngIf"],["class","btn btn-light btn-sm","type","button","role","button",3,"translate","click",4,"ngIf"],["class","alert alert-info",3,"translate",4,"ngIf"],[1,"pre-scrollable"],["type","button","role","button",1,"btn","btn-light","btn-sm",3,"translate","click"],[1,"alert","alert-info",3,"translate"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275element(2,"label",2),e.\u0275\u0275elementStart(3,"select",3),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.debuglevel_logfile=h}),e.\u0275\u0275element(4,"option",4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementStart(7,"option",5),e.\u0275\u0275text(8,"CRITICAL, ERROR, WARNING, INFO, DEBUG"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"option",5),e.\u0275\u0275text(10,"CRITICAL, ERROR, WARNING, INFO (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"option",5),e.\u0275\u0275text(12,"CRITICAL, ERROR, WARNING"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"option",5),e.\u0275\u0275text(14,"CRITICAL, ERROR"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"option",5),e.\u0275\u0275text(16,"CRITICAL"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"div",1),e.\u0275\u0275element(18,"label",6),e.\u0275\u0275elementStart(19,"select",7),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.debuglevel=h}),e.\u0275\u0275element(20,"option",4),e.\u0275\u0275pipe(21,"translate"),e.\u0275\u0275pipe(22,"translate"),e.\u0275\u0275elementStart(23,"option",5),e.\u0275\u0275text(24,"Debug-Mode: HDMI On & Reboots Off"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"option",5),e.\u0275\u0275text(26,"Info-Mode: HDMI On & Reboots On (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"option",5),e.\u0275\u0275text(28,"Prod-Mode: HDMI Off & Reboots On"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",0),e.\u0275\u0275elementStart(30,"div",1),e.\u0275\u0275element(31,"br"),e.\u0275\u0275elementStart(32,"div",8),e.\u0275\u0275elementStart(33,"button",9),e.\u0275\u0275listener("click",function(){return l.getLog()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"button",10),e.\u0275\u0275listener("click",function(){return l.deleteLog()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(35,"br"),e.\u0275\u0275template(36,Bi,2,1,"pre",11),e.\u0275\u0275template(37,Fl,1,1,"button",12),e.\u0275\u0275template(38,Ac,1,1,"div",13),e.\u0275\u0275template(39,Nl,1,1,"div",13)),2&i&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.sensors.debugSelectLogfile"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",l.settings.debuglevel_logfile),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(5,22,"buttons.select",e.\u0275\u0275pureFunction1(32,Gf,e.\u0275\u0275pipeBind1(6,25,"settings.sensors.debuglevel")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",10),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",20),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",30),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",40),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",50),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.sensors.debugSelect"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",l.settings.debuglevel),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(21,27,"buttons.select",e.\u0275\u0275pureFunction1(34,Gf,e.\u0275\u0275pipeBind1(22,30,"settings.sensors.debuglevel")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",10),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",20),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",30),e.\u0275\u0275advance(6),e.\u0275\u0275property("translate","settings.log.get"),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.log.delete"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",l.log&&"NOFILE"!==l.log),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.log&&"NOFILE"!==l.log),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","NOFILE"===l.log),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",""==l.log))},directives:[ai,De.SelectControlValueAccessor,De.NgControlStatus,De.NgModel,De.NgSelectOption,De.\u0275NgSelectMultipleOption,p.O5],pipes:[Lr],styles:[""]}),o})();function Lg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",23),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",2),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.updateAP"),e.\u0275\u0275sanitizeHtml))}function Ca(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",24),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",2),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.updateNotAP"),e.\u0275\u0275sanitizeHtml))}function ba(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"pre",25),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"json"),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("Update Log:\n",e.\u0275\u0275pipeBind1(2,1,i.log),"")}}function Vl(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275elementContainerEnd()),2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("rpi-scripts ",i.versionInfo.result.scripts.tag_name,"\nChangelog:\n",i.versionInfo.result.scripts.body,"")}}function Ll(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275elementContainerEnd()),2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("\nrpi-webinterface ",i.versionInfo.result.webinterface.tag_name,"\nChangelog:\n",i.versionInfo.result.webinterface.body,"")}}function kl(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"pre",25),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"br"),e.\u0275\u0275elementContainerEnd()),2&o){const i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(i.versionInfo.result.currentVersion)}}function kg(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",26),e.\u0275\u0275element(1,"b",27),e.\u0275\u0275template(2,kl,4,1,"ng-container",22),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.update.currentVersion"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.versionInfo.result.currentVersion)}}function zf(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275elementStart(1,"div",26),e.\u0275\u0275element(2,"b",27),e.\u0275\u0275element(3,"br"),e.\u0275\u0275elementStart(4,"pre",25),e.\u0275\u0275template(5,Vl,2,2,"ng-container",22),e.\u0275\u0275text(6,"\n"),e.\u0275\u0275template(7,Ll,2,2,"ng-container",22),e.\u0275\u0275text(8,"\n"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,kg,3,2,"div",28),e.\u0275\u0275elementEnd()),2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.update.availableVersion"),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",i.versionInfo.result.scripts),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",i.versionInfo.result.webinterface),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",i.versionInfo.result.currentVersion)}}function Kf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",29),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().update("update")}),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",i.isLoading)("translate","settings.update.update")}}function Yf(o,u){1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",30),e.\u0275\u0275elementStart(2,"div",31),e.\u0275\u0275elementStart(3,"div",31),e.\u0275\u0275elementStart(4,"div",31),e.\u0275\u0275element(5,"div",31),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd())}let Qf=(()=>{class o{constructor(i,l){this.appService=i,this.translate=l,this.log=null,this.isLoading=!1,this.versionInfo=null,this.usePreVersion=!1,this.internet_connection="No internet connection. Try again with internet connection.",this.need_refresh="Erfolgreich aktualisiert. Die Seite muss aktualisiert werden. Jetzt neuladen?",this.want_import="Soll die Datei jetzt importiert werden?"}ngOnInit(){this.apiURL=xn_apiURL,this.translate.get("settings.update.internet_connection").subscribe(i=>{this.internet_connection=i}),this.translate.get("settings.update.need_refresh").subscribe(i=>{this.need_refresh=i}),this.translate.get("settings.update.want_import").subscribe(i=>{this.want_import=i})}get isAccessPoint(){return"192.168.4.1"===window.location.hostname}update(i){this.translate.get("settings.update.internet_connection").subscribe(l=>{this.internet_connection=l}),this.translate.get("settings.update.need_refresh").subscribe(l=>{this.need_refresh=l}),this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(l=>{!0===l.connected?this.appService.update(i,this.usePreVersion).subscribe(h=>{this.isLoading=!1,console.log("Update successfully, output: ",h),this.log=h,this.translate.get("settings.update.need_refresh").subscribe(P=>{this.need_refresh=P,window.confirm(this.need_refresh)&&window.location.reload()})},h=>{this.isLoading=!1,alert("Error while updating. Try again. Error name: "+h.name),console.error("Update error, output: ",h),this.log=h},()=>{this.isLoading=!1}):(this.isLoading=!1,this.translate.get("settings.update.internet_connection").subscribe(h=>{this.internet_connection=h,alert(this.internet_connection)}))},l=>{console.error("checkInternet Error:",l),this.isLoading=!1,this.translate.get("settings.update.internet_connection").subscribe(d=>{this.internet_connection=d,alert(this.internet_connection)})})}getVersionInfo(){this.versionInfo=null,this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(i=>{!0===i.connected?this.appService.update("versionInfo",this.usePreVersion).finally(()=>this.isLoading=!1).subscribe(d=>{try{if(this.versionInfo=d,this.log=null,this.versionInfo.error)throw new Error("Exception occured: "+this.versionInfo.error)}catch(h){console.error(h),this.log=h,this.versionInfo=null}},d=>{this.versionInfo=null,console.error(d),this.log=d,d.name&&"TimeoutError"===d.name?this.log="TimeoutError.":d.name&&"HttpErrorResponse"===d.name&&(this.log="HttpErrorResponse.")}):(this.isLoading=!1,this.translate.get("settings.update.internet_connection").subscribe(d=>{this.internet_connection=d,alert(this.internet_connection)}))},i=>{console.log(i),this.isLoading=!1,this.translate.get("settings.update.internet_connection").subscribe(l=>{this.internet_connection=l,alert(this.internet_connection)})})}onFileChanged(i){this.translate.get("settings.update.need_refresh").subscribe(d=>{this.need_refresh=d}),this.translate.get("settings.update.want_import").subscribe(d=>{this.want_import=d});const l=i.target.files[0];if(console.log(l),l){const d=new FileReader;d.readAsText(l,"UTF-8"),d.onload=h=>{const W=JSON.parse(h.target.result);W&&this.translate.get("settings.update.want_import").subscribe(q=>{this.want_import=q,window.confirm(this.want_import)&&this.appService.setSettings(W).subscribe(le=>{le&&(console.log(le),window.confirm(this.need_refresh)&&window.location.reload())})})},d.onerror=h=>{window.alert("Error reading file.")}}}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr),e.\u0275\u0275directiveInject(Ei))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-update"]],decls:28,vars:18,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"h5",3,"translate"],["class","pre-scrollable",4,"ngIf"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-group","form-check"],["type","checkbox","name","usePreVersion","id","usePreVersion",1,"form-check-input",3,"ngModel","ngModelChange"],["for","usePreVersion",1,"form-check-label",3,"translate"],["type","button","role","button",1,"btn","btn-primary","btn-sm","mr-1","mt-1",3,"disabled","translate","click"],["class","btn btn-warning btn-sm mt-1","type","button","role","button",3,"disabled","translate","click",4,"ngIf"],[1,"form-group"],["for","settingsFile",3,"translate"],["type","file","id","settingsFile","name","settingsFile","accept","application/json,.json",1,"form-control-file",3,"change"],["fileInput",""],["role","group",1,"btn-group","btn-group-sm"],["href","./backend/settings.json","target","_blank","download","settings-backup.json",1,"btn","btn-primary","btn-sm",3,"translate"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"translate","click"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],["role","alert",1,"alert","alert-success"],[1,"pre-scrollable"],[1,"col-12","col-sm-6"],[3,"translate"],["class","col-12 col-sm-6",4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm","mt-1",3,"disabled","translate","click"],["id","circle"],[1,"loader"]],template:function(i,l){if(1&i){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"a",1),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",2),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Lg,5,3,"div",3),e.\u0275\u0275template(6,Ca,5,3,"div",4),e.\u0275\u0275element(7,"h5",5),e.\u0275\u0275template(8,ba,3,3,"pre",6),e.\u0275\u0275template(9,zf,10,4,"div",7),e.\u0275\u0275elementStart(10,"div",8),e.\u0275\u0275elementStart(11,"div",9),e.\u0275\u0275elementStart(12,"div",10),e.\u0275\u0275elementStart(13,"input",11),e.\u0275\u0275listener("ngModelChange",function(P){return l.usePreVersion=P}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(14,"label",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"p"),e.\u0275\u0275elementStart(16,"button",13),e.\u0275\u0275listener("click",function(){return l.getVersionInfo()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(17,Kf,1,2,"button",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(18,"hr"),e.\u0275\u0275element(19,"h5",5),e.\u0275\u0275elementStart(20,"div",15),e.\u0275\u0275element(21,"label",16),e.\u0275\u0275elementStart(22,"input",17,18),e.\u0275\u0275listener("change",function(P){return l.onFileChanged(P)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"div",19),e.\u0275\u0275element(25,"a",20),e.\u0275\u0275elementStart(26,"button",21),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(d),e.\u0275\u0275reference(23).click()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(27,Yf,6,0,"ng-container",22)}2&i&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,16,"alerts.updateInfo"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",l.isAccessPoint),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!l.isAccessPoint),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.update.title"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.log),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.versionInfo),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngModel",l.usePreVersion),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.update.usePreVersion"),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",l.isLoading)("translate","settings.update.preupdate"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.versionInfo),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.update.export"),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.log.importSettings"),e.\u0275\u0275advance(4),e.\u0275\u0275property("translate","settings.log.export"),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.log.import"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.isLoading))},directives:[p.O5,ai,De.CheckboxControlValueAccessor,De.NgControlStatus,De.NgModel],pipes:[Lr,p.Ts],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% + -0px);height:calc(100% + -0px);border:8px solid #f7f7f7;border-top:8px solid #ffc107;border-radius:50%;animation:rotate 5s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}"]}),o})();function Pc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275elementStart(1,"input",12),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.normal.shutdownAfterTransfer=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"label",13),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.settings.wittyPi.normal.shutdownAfterTransfer),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(3,2,"settings.sensors.shutdownAfterTransfer"),e.\u0275\u0275sanitizeHtml)}}function Bg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.shutdownAfterTransfer"),e.\u0275\u0275sanitizeHtml))}const $s=function(o){return{value:o}};function jg(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",4),e.\u0275\u0275element(2,"label",5),e.\u0275\u0275elementStart(3,"select",6),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().settings.wittyPi.normal.interval=d}),e.\u0275\u0275element(4,"option",7),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementStart(7,"option",8),e.\u0275\u0275text(8,"1min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"option",8),e.\u0275\u0275text(10,"5min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"option",8),e.\u0275\u0275text(12,"10min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"option",8),e.\u0275\u0275text(14,"15min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"option",8),e.\u0275\u0275text(16,"30min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"option",8),e.\u0275\u0275text(18,"60min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"option",8),e.\u0275\u0275text(20,"2h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"option",8),e.\u0275\u0275text(22,"3h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"option",8),e.\u0275\u0275text(24,"4h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"option",8),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(28,"option",8),e.\u0275\u0275text(29),e.\u0275\u0275pipe(30,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(31,Pc,4,4,"div",9),e.\u0275\u0275template(32,Bg,5,3,"div",10),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.sensors.measurementInterval"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.settings.wittyPi.normal.interval),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(5,19,"buttons.select",e.\u0275\u0275pureFunction1(28,$s,e.\u0275\u0275pipeBind1(6,22,"settings.sensors.interval")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",60),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",300),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",600),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",900),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1800),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",3600),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",7200),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",10800),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",14400),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(27,24,"settings.sensors.measurementOnce")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",0),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(30,26,"settings.sensors.measurementNone")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",1===i.settings.wittyPi.normal.interval),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===i.settings.wittyPi.normal.interval&&!0===i.settings.wittyPi.normal.shutdownAfterTransfer)}}function Rc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",27),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).installWittyPi(2)}),e.\u0275\u0275elementEnd()}2&o&&e.\u0275\u0275property("translate","settings.wittypi.install2")}function Fc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",27),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).installWittyPi(3)}),e.\u0275\u0275elementEnd()}2&o&&e.\u0275\u0275property("translate","settings.wittypi.install3")}function Zf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",27),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).installWittyPi(4)}),e.\u0275\u0275elementEnd()}2&o&&e.\u0275\u0275property("translate","settings.wittypi.install4")}function Bl(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275elementStart(1,"input",12),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.normal.shutdownAfterTransfer=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"label",13),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.settings.wittyPi.normal.shutdownAfterTransfer),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(3,2,"settings.sensors.shutdownAfterTransfer"),e.\u0275\u0275sanitizeHtml)}}function Ug(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.shutdownAfterTransfer"),e.\u0275\u0275sanitizeHtml))}function Hg(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"option",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const i=u.$implicit;e.\u0275\u0275property("ngValue",i.script),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(i.name)}}function Wg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"error.wittypiyeartobig"),e.\u0275\u0275sanitizeHtml))}function Gg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"error.wittypiinstructions"),e.\u0275\u0275sanitizeHtml))}function zg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"error.wittypinotwait"),e.\u0275\u0275sanitizeHtml))}function Kg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"error.wittypiwait"),e.\u0275\u0275sanitizeHtml))}function Yg(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",19),e.\u0275\u0275elementStart(2,"div",28),e.\u0275\u0275elementStart(3,"select",29),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).selectedExampleNormal=d})("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.normal.schedule=d}),e.\u0275\u0275element(4,"option",30),e.\u0275\u0275template(5,Hg,2,2,"option",31),e.\u0275\u0275element(6,"option",32),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",4),e.\u0275\u0275elementStart(8,"textarea",33),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.normal.schedule=d}),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,Wg,5,3,"div",34),e.\u0275\u0275template(11,Gg,5,3,"div",34),e.\u0275\u0275template(12,zg,5,3,"div",34),e.\u0275\u0275template(13,Kg,5,3,"div",34),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",i.selectedExampleNormal),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",null)("translate","settings.wittypi.loadexample"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",i.exampleScriptsNormal),e.\u0275\u0275advance(1),e.\u0275\u0275property("value","")("translate","settings.wittypi.empty"),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(9,12,"settings.wittypi.script")),e.\u0275\u0275property("ngModel",i.settings.wittyPi.normal.schedule),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",i.showWarningForTooBigYears(i.settings.wittyPi.normal)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.showInstructionsForWittyPi(i.settings.wittyPi.normal)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.showWarningForMissingWait(i.settings.wittyPi.normal)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.showWarningForWait(i.settings.wittyPi.normal))}}function Qg(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275elementStart(1,"input",51),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(3).settings.wittyPi.low.shutdownAfterTransfer=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"label",52),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.settings.wittyPi.low.shutdownAfterTransfer),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(3,2,"settings.sensors.shutdownAfterTransfer"),e.\u0275\u0275sanitizeHtml)}}function Zg(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.shutdownAfterTransfer"),e.\u0275\u0275sanitizeHtml))}const jl=function(o){return{field:o}};function as(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.required",e.\u0275\u0275pureFunction1(6,jl,e.\u0275\u0275pipeBind1(3,4,"settings.wittypi.voltageLow")))," "))}function Ul(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.length",e.\u0275\u0275pureFunction1(6,jl,e.\u0275\u0275pipeBind1(3,4,"settings.wittypi.voltageLow")))," "))}function Jf(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275template(1,as,4,8,"div",0),e.\u0275\u0275template(2,Ul,4,8,"div",0),e.\u0275\u0275elementEnd()),2&o){e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(48);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==i?null:i.errors.min)||(null==i?null:i.errors.max))}}function Nc(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.required",e.\u0275\u0275pureFunction1(6,jl,e.\u0275\u0275pipeBind1(3,4,"settings.wittypi.voltageNormal")))," "))}function Hl(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"error.length",e.\u0275\u0275pureFunction1(6,jl,e.\u0275\u0275pipeBind1(3,4,"settings.wittypi.voltageNormal")))," "))}function Vc(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275template(1,Nc,4,8,"div",0),e.\u0275\u0275template(2,Hl,4,8,"div",0),e.\u0275\u0275elementEnd()),2&o){e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(55);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.errors.required),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==i?null:i.errors.min)||(null==i?null:i.errors.max))}}function Wl(o,u){if(1&o&&(e.\u0275\u0275elementStart(0,"option",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const i=u.$implicit;e.\u0275\u0275property("ngValue",i.script),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(i.name)}}function Xf(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"error.wittypiyeartobig"),e.\u0275\u0275sanitizeHtml))}function ls(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"error.wittypinotwait"),e.\u0275\u0275sanitizeHtml))}function Lc(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",35),e.\u0275\u0275elementStart(1,"a",15),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"error.wittypiwait"),e.\u0275\u0275sanitizeHtml))}function qf(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",19),e.\u0275\u0275elementStart(2,"div",28),e.\u0275\u0275elementStart(3,"select",29),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(3).selectedExampleLow=d})("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(3).settings.wittyPi.low.schedule=d}),e.\u0275\u0275element(4,"option",30),e.\u0275\u0275template(5,Wl,2,2,"option",31),e.\u0275\u0275element(6,"option",32),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",4),e.\u0275\u0275elementStart(8,"textarea",54),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(3).settings.wittyPi.low.schedule=d}),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,Xf,5,3,"div",34),e.\u0275\u0275template(11,ls,5,3,"div",34),e.\u0275\u0275template(12,Lc,5,3,"div",34),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",i.selectedExampleLow),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",null)("translate","settings.wittypi.loadexample"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",i.exampleScriptsLow),e.\u0275\u0275advance(1),e.\u0275\u0275property("value","")("translate","settings.wittypi.empty"),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(9,11,"settings.wittypi.script")),e.\u0275\u0275property("ngModel",i.settings.wittyPi.low.schedule),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",i.showWarningForTooBigYears(i.settings.wittyPi.low)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.showWarningForMissingWait(i.settings.wittyPi.low)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.showWarningForWait(i.settings.wittyPi.low))}}function Gl(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",36),e.\u0275\u0275elementStart(1,"div",37),e.\u0275\u0275elementStart(2,"div",4),e.\u0275\u0275element(3,"label",38),e.\u0275\u0275elementStart(4,"select",39),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.low.interval=d}),e.\u0275\u0275element(5,"option",7),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementStart(8,"option",8),e.\u0275\u0275text(9,"1min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"option",8),e.\u0275\u0275text(11,"4min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"option",8),e.\u0275\u0275text(13,"4min 30sec"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"option",8),e.\u0275\u0275text(15,"5min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"option",8),e.\u0275\u0275text(17,"5min 30sec"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"option",8),e.\u0275\u0275text(19,"6min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"option",8),e.\u0275\u0275text(21,"10min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"option",8),e.\u0275\u0275text(23,"15min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"option",8),e.\u0275\u0275text(25,"30min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(26,"option",8),e.\u0275\u0275text(27,"60min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(28,"option",8),e.\u0275\u0275text(29,"2h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(30,"option",8),e.\u0275\u0275text(31,"3h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"option",8),e.\u0275\u0275text(33,"4h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"option",8),e.\u0275\u0275text(35),e.\u0275\u0275pipe(36,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(37,"option",8),e.\u0275\u0275text(38),e.\u0275\u0275pipe(39,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(40,Qg,4,4,"div",9),e.\u0275\u0275template(41,Zg,5,3,"div",10),e.\u0275\u0275elementStart(42,"div",40),e.\u0275\u0275elementStart(43,"div",41),e.\u0275\u0275elementStart(44,"label",42),e.\u0275\u0275text(45),e.\u0275\u0275pipe(46,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(47,"input",43,44),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.low.voltage=d}),e.\u0275\u0275pipe(49,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(50,"div",41),e.\u0275\u0275elementStart(51,"label",45),e.\u0275\u0275text(52),e.\u0275\u0275pipe(53,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(54,"input",46,47),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.normal.voltage=d}),e.\u0275\u0275pipe(56,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(57,Jf,3,2,"div",48),e.\u0275\u0275template(58,Vc,3,2,"div",48),e.\u0275\u0275elementStart(59,"div",1),e.\u0275\u0275elementStart(60,"input",49),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.low.enabled=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(61,"label",50),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(62,qf,13,13,"ng-container",0),e.\u0275\u0275elementStart(63,"div",14),e.\u0275\u0275elementStart(64,"a",15),e.\u0275\u0275text(65,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(66),e.\u0275\u0275pipe(67,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275reference(48),l=e.\u0275\u0275reference(55),d=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.wittypi.voltageLowInterval"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",d.settings.wittyPi.low.interval),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(6,39,"buttons.select",e.\u0275\u0275pureFunction1(58,$s,e.\u0275\u0275pipeBind1(7,42,"settings.sensors.interval")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",60),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",240),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",270),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",300),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",330),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",360),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",600),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",900),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1800),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",3600),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",7200),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",10800),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",14400),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(36,44,"settings.sensors.measurementOnce")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",0),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(39,46,"settings.sensors.measurementNone")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",1===d.settings.wittyPi.low.interval),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===d.settings.wittyPi.low.interval&&!0===d.settings.wittyPi.low.shutdownAfterTransfer),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(46,48,"settings.wittypi.voltageLow")," [V]"),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(49,50,"settings.wittypi.voltage")),e.\u0275\u0275property("min",0)("max",d.settings.wittyPi.normal.voltage)("ngModel",d.settings.wittyPi.low.voltage),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(53,52,"settings.wittypi.voltageNormal")," [V]"),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(56,54,"settings.wittypi.voltage")),e.\u0275\u0275property("min",d.settings.wittyPi.low.voltage)("max",100)("ngModel",d.settings.wittyPi.normal.voltage),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",i.invalid&&(i.dirty||i.touched)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.invalid&&(l.dirty||l.touched)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",d.settings.wittyPi.low.enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.wittypi.enableLowMode"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",d.settings.wittyPi.low.enabled),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(67,56,"alerts.afterSaveOrManualStart")," ")}}function ep(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"hr"),e.\u0275\u0275elementStart(2,"div",4),e.\u0275\u0275element(3,"label",55),e.\u0275\u0275elementStart(4,"select",56),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.dummyload=d}),e.\u0275\u0275element(5,"option",7),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementStart(8,"option",8),e.\u0275\u0275text(9,"No Dummyload - disabled"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"option",8),e.\u0275\u0275text(11,"10ms"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"option",8),e.\u0275\u0275text(13,"15ms (most used)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"option",8),e.\u0275\u0275text(15,"20ms"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"option",8),e.\u0275\u0275text(17,"50ms"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"option",8),e.\u0275\u0275text(19,"100ms"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"option",8),e.\u0275\u0275text(21,"254ms"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",14),e.\u0275\u0275elementStart(23,"a",15),e.\u0275\u0275text(24,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(25,"span",16),e.\u0275\u0275pipe(26,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.sensors.dummyload"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.settings.wittyPi.dummyload),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(6,12,"buttons.select",e.\u0275\u0275pureFunction1(19,$s,e.\u0275\u0275pipeBind1(7,15,"settings.sensors.dummyloadTimespan")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",10),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",15),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",20),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",50),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",100),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",254),e.\u0275\u0275advance(5),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(26,17,"alerts.dummyload"),e.\u0275\u0275sanitizeHtml)}}function kc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",40),e.\u0275\u0275elementStart(2,"div",41),e.\u0275\u0275elementStart(3,"label",57),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"input",58),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.power_cut_delay=d}),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",41),e.\u0275\u0275elementStart(9,"label",59),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"input",60),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.white_led_duration=d}),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",40),e.\u0275\u0275elementStart(15,"div",41),e.\u0275\u0275element(16,"label",61),e.\u0275\u0275elementStart(17,"select",62),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.pulsing_interval=d}),e.\u0275\u0275element(18,"option",7),e.\u0275\u0275pipe(19,"translate"),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275elementStart(21,"option",8),e.\u0275\u0275text(22,"1s"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"option",8),e.\u0275\u0275text(24,"2s"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"option",8),e.\u0275\u0275text(26,"4s (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"option",8),e.\u0275\u0275text(28,"8s"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",41),e.\u0275\u0275element(30,"label",63),e.\u0275\u0275elementStart(31,"select",64),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).settings.wittyPi.default_state=d}),e.\u0275\u0275element(32,"option",7),e.\u0275\u0275pipe(33,"translate"),e.\u0275\u0275pipe(34,"translate"),e.\u0275\u0275elementStart(35,"option",8),e.\u0275\u0275text(36,"OFF (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(37,"option",8),e.\u0275\u0275text(38,"ON"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(5,20,"settings.sensors.power_cut_delay")," "),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(7,22,"settings.sensors.power_cut_delay")),e.\u0275\u0275property("ngModel",i.settings.wittyPi.power_cut_delay),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(11,24,"settings.sensors.white_led_duration")," "),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",e.\u0275\u0275pipeBind1(13,26,"settings.sensors.white_led_duration")),e.\u0275\u0275property("ngModel",i.settings.wittyPi.white_led_duration),e.\u0275\u0275advance(4),e.\u0275\u0275property("translate","settings.sensors.pulsing_interval"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.settings.wittyPi.pulsing_interval),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(19,28,"buttons.select",e.\u0275\u0275pureFunction1(38,$s,e.\u0275\u0275pipeBind1(20,31,"settings.sensors.pulsing_interval")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",1),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",2),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",4),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",8),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.sensors.default_state"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.settings.wittyPi.default_state),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(33,33,"buttons.select",e.\u0275\u0275pureFunction1(40,$s,e.\u0275\u0275pipeBind1(34,36,"settings.sensors.default_state")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1)}}function tp(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",14),e.\u0275\u0275elementStart(2,"a",15),e.\u0275\u0275text(3,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"span",16),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",4),e.\u0275\u0275elementStart(7,"label",17),e.\u0275\u0275text(8,">"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"select",18),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().settings.wittyPi.version=d}),e.\u0275\u0275element(10,"option",7),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementStart(13,"option",8),e.\u0275\u0275text(14,"WittyPi Version 2"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"option",8),e.\u0275\u0275text(16,"WittyPi Version 3"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"option",8),e.\u0275\u0275text(18,"WittyPi Version 4"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",19),e.\u0275\u0275elementStart(20,"div",20),e.\u0275\u0275template(21,Rc,1,1,"button",21),e.\u0275\u0275template(22,Fc,1,1,"button",21),e.\u0275\u0275template(23,Zf,1,1,"button",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"div",4),e.\u0275\u0275element(25,"label",5),e.\u0275\u0275elementStart(26,"select",6),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().settings.wittyPi.normal.interval=d}),e.\u0275\u0275element(27,"option",7),e.\u0275\u0275pipe(28,"translate"),e.\u0275\u0275pipe(29,"translate"),e.\u0275\u0275elementStart(30,"option",8),e.\u0275\u0275text(31,"1min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"option",8),e.\u0275\u0275text(33,"4min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"option",8),e.\u0275\u0275text(35,"4min 30sec"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"option",8),e.\u0275\u0275text(37,"5min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"option",8),e.\u0275\u0275text(39,"5min 30sec"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(40,"option",8),e.\u0275\u0275text(41,"6min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(42,"option",8),e.\u0275\u0275text(43,"10min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(44,"option",8),e.\u0275\u0275text(45,"15min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(46,"option",8),e.\u0275\u0275text(47,"30min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(48,"option",8),e.\u0275\u0275text(49,"60min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(50,"option",8),e.\u0275\u0275text(51,"2h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(52,"option",8),e.\u0275\u0275text(53,"3h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(54,"option",8),e.\u0275\u0275text(55,"4h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(56,"option",8),e.\u0275\u0275text(57),e.\u0275\u0275pipe(58,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(59,"option",8),e.\u0275\u0275text(60),e.\u0275\u0275pipe(61,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(62,Bl,4,4,"div",9),e.\u0275\u0275template(63,Ug,5,3,"div",10),e.\u0275\u0275elementStart(64,"div",1),e.\u0275\u0275elementStart(65,"input",22),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().settings.wittyPi.normal.enabled=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(66,"label",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(67,Yg,14,14,"ng-container",0),e.\u0275\u0275elementStart(68,"div",1),e.\u0275\u0275elementStart(69,"input",24),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().settings.wittyPi.voltagecheck_enabled=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(70,"label",25),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(71,Gl,68,60,"div",26),e.\u0275\u0275template(72,ep,27,21,"ng-container",0),e.\u0275\u0275template(73,kc,39,42,"ng-container",0),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(5,44,"alerts.wittypi"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","settings.wittypi.version"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",i.settings.wittyPi.version),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(11,46,"buttons.select",e.\u0275\u0275pureFunction1(60,$s,e.\u0275\u0275pipeBind1(12,49,"settings.sensors.version")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",2),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",3),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",4),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("spinner",i.isLoading),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",2===i.settings.wittyPi.version),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",3===i.settings.wittyPi.version),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",4===i.settings.wittyPi.version),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.sensors.measurementInterval"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",i.settings.wittyPi.normal.interval),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(28,51,"buttons.select",e.\u0275\u0275pureFunction1(62,$s,e.\u0275\u0275pipeBind1(29,54,"settings.sensors.interval")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",60),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",240),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",270),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",300),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",330),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",360),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",600),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",900),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1800),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",3600),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",7200),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",10800),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",14400),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(58,56,"settings.sensors.measurementOnce")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",0),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(61,58,"settings.sensors.measurementNone")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",1===i.settings.wittyPi.normal.interval),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===i.settings.wittyPi.normal.interval&&!0===i.settings.wittyPi.normal.shutdownAfterTransfer),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",i.settings.wittyPi.normal.enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.wittypi.enableNormalMode"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.settings.wittyPi.normal.enabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",i.settings.wittyPi.voltagecheck_enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.wittypi.enableVoltageCheck"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.settings.wittyPi.voltagecheck_enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.settings.wittyPi.version>=3),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.settings.wittyPi.version>=2)}}let np=(()=>{class o{constructor(i,l){this.appService=i,this.translate=l,this.exampleScriptsNormal=[{name:"Anschalten alle 30Minuten",script:"BEGIN 2015-08-01 08:00:00\nEND 2035-07-31 18:00:00\nON M5 WAIT\nOFF M25"},{name:"Anschalten alle 15min",script:"BEGIN 2015-08-01 00:00:00 \nEND 2035-07-31 23:59:59 \nON M5 WAIT\nOFF M10"},{name:"7-19Uhr alle 30min, 19-7h st\xfcndliches Anschalten",script:"BEGIN 2015-08-01 07:00:00\nEND 2035-07-31 23:59:59\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\n"}],this.exampleScriptsLow=[{name:"T\xe4glich um 6 Uhr anschalten",script:"BEGIN 2015-03-01 06:00:00\nEND 2035-12-31 00:00:00\nON M5 WAIT\nOFF H23 M55"},{name:"Alle 8h anschalten",script:"BEGIN 2015-03-01 06:00:00\nEND 2035-12-31 00:00:00\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55"}],this.selectedExampleNormal=null,this.selectedExampleLow=null,this.settingsChange=new e.EventEmitter,this.need_restart="Erfolgreich. Der Raspberry muss jetzt von dir neugestartet werden.",this.internet_connection="No internet connection. Try again with internet connection."}set settings(i){this.settingsChange.emit(i),this._settings=i}get settings(){return this._settings}installWittyPi(i){this.translate.get("settings.update.internet_connection").subscribe(l=>{this.internet_connection=l}),this.translate.get("settings.wittypi.need_restart").subscribe(l=>{this.need_restart=l}),this.isLoading=!0,this.translate.get("settings.confirm.installWittyPi").subscribe(l=>{window.confirm(l)?this.appService.checkInternet().timeout(15e3).subscribe(d=>{!0===d.connected?this.appService.update("installWittyPi",!1,"&version="+i).finally(()=>this.isLoading=!1).subscribe(P=>{console.log(P),alert(this.need_restart)},P=>{console.error(P),alert("Error while installing WittyPi. Try again.")}):(this.isLoading=!1,alert(this.internet_connection))},d=>{console.log(d),this.isLoading=!1,alert(this.internet_connection)}):this.isLoading=!1})}showWarningForMissingWait(i){return 1===i.interval&&!0===i.shutdownAfterTransfer&&-1===i.schedule.indexOf("WAIT")}showInstructionsForWittyPi(i){return!(1===i.interval&&!0===i.shutdownAfterTransfer)}showWarningForWait(i){return(!0!==i.shutdownAfterTransfer||1!==i.interval)&&-1!==i.schedule.indexOf("WAIT")}showWarningForTooBigYears(i){return new RegExp("(([2][0][3][8-9][-])|([2-9][0-9][4-9][0-9][-]))","g").test(i.schedule)}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr),e.\u0275\u0275directiveInject(Ei))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-wittypi"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:5,vars:4,consts:[[4,"ngIf"],[1,"form-check"],["type","checkbox","id","wittyPi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi",1,"form-check-label",3,"translate"],[1,"form-group"],["for","interval",3,"translate"],["id","interval","name","interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],[3,"ngValue"],["class","form-group form-check",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],[1,"form-group","form-check"],["type","checkbox","name","shutdownAfterTransfer","id","shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["for","version",3,"translate"],["id","version","name","version",1,"custom-select",3,"ngModel","ngModelChange"],[1,"clearfix"],["role","group",1,"btn-group","btn-group-sm","float-right"],["class","btn btn-outline-secondary btn-sm","type","button","role","button",3,"translate","click",4,"ngIf"],["type","checkbox","id","normal_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","normal_enabled",1,"form-check-label",3,"translate"],["type","checkbox","id","wittyPi_voltage",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi_voltage",1,"form-check-label",3,"translate"],["class","collapse show","id","collapseVolltageCheck",4,"ngIf"],["type","button","role","button",1,"btn","btn-outline-secondary","btn-sm",3,"translate","click"],[1,"form-group","float-right"],[1,"form-control",2,"max-width","250px",3,"ngModel","ngModelChange"],["disabled","",2,"display","none",3,"value","translate"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"value","translate"],["id","normal_schedule","rows","5","name","normal_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["class","alert alert-warning","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["id","collapseVolltageCheck",1,"collapse","show"],[1,"card","card-body"],["for","low_interval",3,"translate"],["id","low_interval","name","low_interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","low_voltage"],["type","number","step","0.1","id","low_voltage","name","low_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["lowVoltage","ngModel"],["for","normal_voltage"],["type","number","step","0.1","id","normal_voltage","name","normal_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["normalVoltage","ngModel"],["class","alert alert-danger",4,"ngIf"],["type","checkbox","id","low_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_enabled",1,"form-check-label",3,"translate"],["type","checkbox","name","low_shutdownAfterTransfer","id","low_shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],[1,"alert","alert-danger"],["id","low_schedule","rows","5","name","low_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["for","dummyload",3,"translate"],["id","dummyload","name","dummyload",1,"custom-select",3,"ngModel","ngModelChange"],["for","power_cut_delay"],["type","number","step","1","max","8","min","0","id","power_cut_delay","name","power_cut_delay","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","white_led_duration"],["type","number","step","1","max","254","min","0","id","white_led_duration","name","white_led_duration","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","pulsing_interval",3,"translate"],["id","pulsing_interval","name","pulsing_interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","default_state",3,"translate"],["id","default_state","name","default_state","required","",1,"custom-select",3,"ngModel","ngModelChange"]],template:function(i,l){1&i&&(e.\u0275\u0275template(0,jg,33,30,"ng-container",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275elementStart(2,"input",2),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.wittyPi.enabled=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"label",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,tp,74,64,"ng-container",0)),2&i&&(e.\u0275\u0275property("ngIf",!l.settings.wittyPi.enabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",l.settings.wittyPi.enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.wittypi.enableWitty"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.settings.wittyPi.enabled))},directives:[p.O5,ai,De.SelectControlValueAccessor,De.RequiredValidator,De.NgControlStatus,De.NgModel,De.NgSelectOption,De.\u0275NgSelectMultipleOption,De.CheckboxControlValueAccessor,p.sg,De.DefaultValueAccessor,De.MinValidator,De.MaxValidator,De.NumberValueAccessor,Li.qQ,Li.Fd],pipes:[Lr],styles:[""]}),o})();function Ro(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275elementStart(2,"input",14),e.\u0275\u0275listener("ngModelChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().settings.display.show_nondefault_password=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"label",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",i.settings.display.show_nondefault_password),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.miscellaneous.show_nondefault_password")}}const to=function(o){return{value:o}};let zl=(()=>{class o{constructor(i){this.appService=i,this.settingsChange=new e.EventEmitter}set settings(i){this.settingsChange.emit(i),this._settings=i}get settings(){return this._settings}ngOnInit(){this.apiURL=xn_apiURL}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-miscellaneous"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:38,vars:27,consts:[[1,"h5"],[1,"form-check"],["type","checkbox","id","display_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","display_enabled",1,"form-check-label",3,"translate"],[4,"ngIf"],[1,""],["type","checkbox","id","enable_reset",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enable_reset",1,"form-check-label",3,"translate"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["id","timeToStopMaintenance","name","timeToStopMaintenance","required","",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],[3,"ngValue"],["for","enable_reset",1,"",3,"translate"],["type","checkbox","id","show_nondefault_password",1,"form-check-input",3,"ngModel","ngModelChange"],["for","show_nondefault_password",1,"form-check-label",3,"translate"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"h5",0),e.\u0275\u0275text(1,"Display"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",1),e.\u0275\u0275elementStart(3,"input",2),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.display.enabled=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"label",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Ro,4,2,"ng-container",4),e.\u0275\u0275element(6,"hr"),e.\u0275\u0275elementStart(7,"h5",0),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",5),e.\u0275\u0275elementStart(11,"div",1),e.\u0275\u0275elementStart(12,"input",6),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.enable_reset=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(13,"label",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(14,"hr"),e.\u0275\u0275elementStart(15,"div",8),e.\u0275\u0275elementStart(16,"div",9),e.\u0275\u0275elementStart(17,"select",10),e.\u0275\u0275listener("ngModelChange",function(h){return l.settings.timeToStopMaintenance=h}),e.\u0275\u0275element(18,"option",11),e.\u0275\u0275pipe(19,"translate"),e.\u0275\u0275pipe(20,"translate"),e.\u0275\u0275elementStart(21,"option",12),e.\u0275\u0275text(22,"15min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"option",12),e.\u0275\u0275text(24,"30min"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"option",12),e.\u0275\u0275text(26,"1h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"option",12),e.\u0275\u0275text(28,"2h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"option",12),e.\u0275\u0275text(30,"4h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(31,"option",12),e.\u0275\u0275text(32,"8h (default)"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"option",12),e.\u0275\u0275text(34,"12h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"option",12),e.\u0275\u0275text(36,"24h"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(37,"label",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",l.settings.display.enabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.miscellaneous.display_enabled"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.settings.display.enabled),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(9,18,"settings.miscellaneous.title")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngModel",l.settings.enable_reset),e.\u0275\u0275advance(1),e.\u0275\u0275property("translate","settings.miscellaneous.enable_reset"),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngModel",l.settings.timeToStopMaintenance),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngValue",void 0)("translate",e.\u0275\u0275pipeBind2(19,20,"buttons.select",e.\u0275\u0275pureFunction1(25,to,e.\u0275\u0275pipeBind1(20,23,"settings.sensors.interval")))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngValue",900),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",1800),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",3600),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",5200),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",10400),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",28800),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",34200),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngValue",86400),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","settings.miscellaneous.timeToStopMaintenance"))},directives:[De.CheckboxControlValueAccessor,De.NgControlStatus,De.NgModel,ai,p.O5,De.SelectControlValueAccessor,De.RequiredValidator,De.NgSelectOption,De.\u0275NgSelectMultipleOption],pipes:[Lr],styles:[""]}),o})();function no(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",45),e.\u0275\u0275elementStart(1,"a",46),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",47),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementStart(5,"div",3),e.\u0275\u0275elementStart(6,"button",48),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().askForRestart()}),e.\u0275\u0275text(7,"Restart"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,2,"alerts.notAP"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","buttons.restart"))}function Fo(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",49),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"div",50),e.\u0275\u0275elementStart(4,"button",6),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().saveSettings()}),e.\u0275\u0275text(5,"Speichern"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"button",51),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().undoChanges()}),e.\u0275\u0275text(7,"\xc4nderungen verwerfen"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"div",8),e.\u0275\u0275elementEnd()}2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,3,"alerts.changedSettings")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("translate","buttons.save"),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","buttons.undo"))}function ro(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",52),e.\u0275\u0275elementStart(1,"a",46),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",53),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.saved"),e.\u0275\u0275sanitizeHtml))}function rp(o,u){1&o&&(e.\u0275\u0275elementStart(0,"div",54),e.\u0275\u0275elementStart(1,"a",46),e.\u0275\u0275text(2,"\xd7"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"span",53),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(4,1,"alerts.errorSaving"),e.\u0275\u0275sanitizeHtml))}function Bc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275elementStart(1,"div",55),e.\u0275\u0275elementStart(2,"h5",16),e.\u0275\u0275elementStart(3,"button",56),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",57),e.\u0275\u0275elementStart(7,"div",19),e.\u0275\u0275elementStart(8,"app-wittypi",20),e.\u0275\u0275listener("settingsChange",function(d){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().settings=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,2,"settings.wittypi.title")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("settings",i.settings)}}function jc(o,u){1&o&&(e.\u0275\u0275elementStart(0,"p"),e.\u0275\u0275element(1,"img",67),e.\u0275\u0275elementEnd())}function Kl(o,u){1&o&&(e.\u0275\u0275elementStart(0,"p"),e.\u0275\u0275element(1,"img",68),e.\u0275\u0275elementEnd())}function Yl(o,u){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"p",53),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275template(3,jc,2,0,"p",44),e.\u0275\u0275template(4,Kl,2,0,"p",44),e.\u0275\u0275elementContainerEnd()),2&o){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,3,"settings.connectionerror.stayconnectedAP"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","Android"===i.getMobileOperatingSystem()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","iOS"===i.getMobileOperatingSystem())}}function Uc(o,u){1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"p",53),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementContainerEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,1,"settings.connectionerror.stayconnectedNotAP"),e.\u0275\u0275sanitizeHtml))}function Ea(o,u){1&o&&e.\u0275\u0275element(0,"div",69)}const ip=function(){return{display:"block"}};function Hc(o,u){if(1&o){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",58),e.\u0275\u0275elementStart(2,"div",59),e.\u0275\u0275elementStart(3,"div",60),e.\u0275\u0275elementStart(4,"div",61),e.\u0275\u0275elementStart(5,"h5",62),e.\u0275\u0275text(6,"Verbindung fehlgeschlagen"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",63),e.\u0275\u0275elementStart(8,"div",53),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275text(10," Die Bienenstockwaage ist gerade nicht erreichbar. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,Yl,5,5,"ng-container",44),e.\u0275\u0275template(12,Uc,3,3,"ng-container",44),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",64),e.\u0275\u0275elementStart(14,"button",65),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().getSettings()}),e.\u0275\u0275text(15,"Erneut versuchen"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(16,Ea,1,0,"div",66),e.\u0275\u0275elementContainerEnd()}if(2&o){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",!i.isConnected&&e.\u0275\u0275pureFunction0(12,ip)),e.\u0275\u0275advance(4),e.\u0275\u0275property("translate","settings.connectionerror.title"),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(9,10,"settings.connectionerror.body"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",i.isAccessPoint),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!i.isAccessPoint),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("spinner",i.isLoading),e.\u0275\u0275property("disabled",i.isLoading)("translate","buttons.tryagain"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!i.isConnected)}}const Jg=function(o){return{container:o}};function Gc(o){return new ml(o,"./assets/i18n/translations_",".json")}const sp=[{path:"",component:(()=>{class o{constructor(i,l){this.appService=i,this.translate=l,this.settings=new af,this.settingsSaved=!1,this.settingsError=!1,this.isConnected=!0,this.isLoading=!1,this.enableWittyPi=!0,this.modalEnabled=!0}get isAccessPoint(){return"192.168.4.1"===window.location.hostname}processSettings(i){this.settings=o.validateSettings(i),this.saveSettingsBackup(this.settings)}static validateSettings(i){return i.ts_channels||(i.ts_channels=[],i.ts_channels.push(new ha)),i.internet||(i.internet=new bl),i.sensors||(i.sensors=[]),i.display||(i.display=new Zu),i}static deepCopy(i){return JSON.parse(JSON.stringify(i))}saveSettingsBackup(i){this.settingsBackup=o.deepCopy(i),console.log("The following settings have been stored as backup:",this.settingsBackup)}get isSettingsChanged(){return this.settingsBackup&&this.settings&&JSON.stringify(this.settings)!==JSON.stringify(this.settingsBackup)}undoChanges(){this.settings=o.deepCopy(this.settingsBackup)}getMobileOperatingSystem(){const i=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(i)?"Windows Phone":/android/i.test(i)?"Android":/iPad|iPhone|iPod/.test(i)&&!window.MSStream?"iOS":"unknown"}ngOnInit(){this.getSettings(),this.innerWidth=window.innerWidth}hideAlertsTimer(){this.n&&clearTimeout(this.n),this.n=window.setTimeout(()=>{this.settingsSaved=!1,this.settingsError=!1},4e3)}getSettings(){this.isLoading=!0,this.appService.getSettings().timeout(4e3).finally(()=>this.isLoading=!1).subscribe(i=>{i&&(this.processSettings(i),this.isConnected=!0)},i=>{i.name&&"TimeoutError"===i.name?(console.log("getSettings-Function: Request received a Connection timeout:",i),this.isConnected=!1):i.name&&"HttpErrorResponse"===i.name?(console.log("getSettings-Function: Request received a HttpErrorResponse error:",i),this.isConnected=!1):console.error(i.name,i)})}saveSettings(){this.appService.setSettings(this.settings).timeout(5e3).subscribe(i=>{console.log("The following settings have been saved:",i),i&&this.processSettings(i),this.settingsSaved=!0,this.settingsError=!1,this.hideAlertsTimer(),this.isAccessPoint||this.translate.get("settings.confirm.savedAP").subscribe(l=>{window.confirm(l)&&this.boot("reboot")})},i=>{console.error(i),i.name&&("TimeoutError"===i.name||"HttpErrorResponse"===i.name)&&(this.isConnected=!1),this.settingsError=!0,this.hideAlertsTimer()})}askForReboot(){this.translate.get("settings.confirm.reboot").subscribe(i=>{window.confirm(i)&&this.boot("reboot")})}askForShutdown(){this.translate.get("settings.confirm.shutdown").subscribe(i=>{window.confirm(i)&&this.boot("shutdown")})}askForRestart(){this.translate.get("settings.confirm.restart").subscribe(i=>{window.confirm(i)&&this.boot("restart")})}askForStop(){this.translate.get("settings.confirm.stop").subscribe(i=>{window.confirm(i)&&this.boot("stop")})}askForStart(){this.translate.get("settings.confirm.start").subscribe(i=>{window.confirm(i)&&this.boot("start")})}boot(i="reboot"){"reboot"===i&&(this.isConnected=!1),this.appService.boot(i).timeout(3e3).subscribe(l=>{console.log("Boot-Function OK:",l),this.isConnected=!0},l=>{l.name&&"TimeoutError"===l.name?(console.log("Boot-Function: Request received a Connection timeout:",l),this.isConnected=!1):l.name&&"HttpErrorResponse"===l.name?(console.log("Boot-Function: Request received a HttpErrorResponse error:",l),this.isConnected=!1):(console.error(l.name,l),this.isConnected=!1)},()=>{console.log("Completed, reload page."),window.location.reload()})}onResize(i){this.innerWidth=window.innerWidth}}return o.\u0275fac=function(i){return new(i||o)(e.\u0275\u0275directiveInject(kr),e.\u0275\u0275directiveInject(Ei))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-settings"]],hostBindings:function(i,l){1&i&&e.\u0275\u0275listener("resize",function(h){return l.onResize(h)},!1,e.\u0275\u0275resolveWindow)},decls:92,vars:43,consts:[["role","main",3,"ngClass"],[1,"jumbotron"],[1,"float-right"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-sm","btn-secondary",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-warning",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-primary",3,"translate","click"],[1,"h1",3,"translate"],[1,"clearfix"],["class","alert alert-warning","role","alert","style","margin-top:5px",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],["class","alert alert-success myAlert-top","role","alert",4,"ngIf"],["class","alert alert-danger myAlert-top","role","alert",4,"ngIf"],["id","accordion"],[1,"card"],["id","headingOne",1,"card-header"],[1,"mb-0"],["data-toggle","collapse","data-target","#collapseOne","aria-expanded","true","aria-controls","collapseOne",1,"btn","btn-link","collapsed"],["id","collapseOne","aria-labelledby","headingOne","data-parent","#accordion",1,"collapse"],[1,"card-body"],[3,"settings","settingsChange"],["id","headingTwo",1,"card-header"],["data-toggle","collapse","data-target","#collapseTwo","aria-expanded","false","aria-controls","collapseTwo",1,"btn","btn-link","collapsed"],["id","collapseTwo","aria-labelledby","headingTwo","data-parent","#accordion",1,"collapse"],[3,"wifi","wifiChange"],["id","headingThree",1,"card-header"],["data-toggle","collapse","data-target","#collapseThree","aria-expanded","false","aria-controls","collapseThree",1,"btn","btn-link","collapsed"],["id","collapseThree","aria-labelledby","headingThree","data-parent","#accordion",1,"collapse"],["id","headingFour",1,"card-header"],["data-toggle","collapse","data-target","#collapseFour","aria-expanded","false","aria-controls","collapseFour",1,"btn","btn-link","collapsed"],["id","collapseFour","aria-labelledby","headingFour","data-parent","#accordion",1,"collapse"],["id","headingEight",1,"card-header"],["data-toggle","collapse","data-target","#collapseEight","aria-expanded","false","aria-controls","collapseEight",1,"btn","btn-link","collapsed"],["id","collapseEight","aria-labelledby","headingEight","data-parent","#accordion",1,"collapse"],["id","headingFive",1,"card-header"],["data-toggle","collapse","data-target","#collapseFive","aria-expanded","false","aria-controls","collapseFive",1,"btn","btn-link","collapsed"],["id","collapseFive","aria-labelledby","headingFive","data-parent","#accordion",1,"collapse"],["id","headingSeven",1,"card-header"],["data-toggle","collapse","data-target","#collapseSeven","aria-expanded","false","aria-controls","collapseSeven",1,"btn","btn-link","collapsed"],["id","collapseSeven","aria-labelledby","headingSeven","data-parent","#accordion",1,"collapse"],["class","card",4,"ngIf"],["id","headingNine",1,"card-header"],["data-toggle","collapse","data-target","#collapseNine","aria-expanded","false","aria-controls","collapseNine",1,"btn","btn-link","collapsed"],["id","collapseNine","aria-labelledby","headingNine","data-parent","#accordion",1,"collapse"],[4,"ngIf"],["role","alert",1,"alert","alert-warning",2,"margin-top","5px"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[2,"padding-right","5px",3,"innerHTML"],["type","button",1,"btn","btn-sm","btn-outline-dark",3,"translate","click"],["role","alert",1,"alert","alert-info"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-sm","btn-info",3,"translate","click"],["role","alert",1,"alert","alert-success","myAlert-top"],[3,"innerHTML"],["role","alert",1,"alert","alert-danger","myAlert-top"],["id","headingSix",1,"card-header"],["data-toggle","collapse","data-target","#collapseSix","aria-expanded","false","aria-controls","collapseSix",1,"btn","btn-link","collapsed"],["id","collapseSix","aria-labelledby","headingSix","data-parent","#accordion",1,"collapse"],["tabindex","0","role","dialog",1,"modal","fade","show",3,"ngStyle"],["role","document",1,"modal-dialog",2,"overflow-y","initial"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"translate"],[1,"modal-body",2,"max-height","250px","overflow-y","auto"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","translate","click"],["class","modal-backdrop fade show",4,"ngIf"],["src","assets/images/screenshot-stayconnected-Android.png","alt","Screenshot",1,"rounded","img-fluid"],["src","assets/images/screenshot-stayconnected-iOS.jpeg","alt","Screenshot",1,"rounded","img-fluid"],[1,"modal-backdrop","fade","show"]],template:function(i,l){1&i&&(e.\u0275\u0275elementStart(0,"main",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275elementStart(3,"div",3),e.\u0275\u0275elementStart(4,"button",4),e.\u0275\u0275listener("click",function(){return l.askForReboot()}),e.\u0275\u0275text(5,"Neustarten"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"button",5),e.\u0275\u0275listener("click",function(){return l.askForShutdown()}),e.\u0275\u0275text(7,"Ausschalten"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",6),e.\u0275\u0275listener("click",function(){return l.saveSettings()}),e.\u0275\u0275text(9,"Speichern"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"h1",7),e.\u0275\u0275text(11,"Wartungsmodus"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(12,"div",8),e.\u0275\u0275template(13,no,8,4,"div",9),e.\u0275\u0275template(14,Fo,9,5,"div",10),e.\u0275\u0275template(15,ro,5,3,"div",11),e.\u0275\u0275template(16,rp,5,3,"div",12),e.\u0275\u0275elementStart(17,"div",13),e.\u0275\u0275elementStart(18,"div",14),e.\u0275\u0275elementStart(19,"div",15),e.\u0275\u0275elementStart(20,"h5",16),e.\u0275\u0275elementStart(21,"button",17),e.\u0275\u0275text(22),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"div",18),e.\u0275\u0275elementStart(25,"div",19),e.\u0275\u0275elementStart(26,"app-thingspeak",20),e.\u0275\u0275listener("settingsChange",function(h){return l.settings=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",14),e.\u0275\u0275elementStart(28,"div",21),e.\u0275\u0275elementStart(29,"h5",16),e.\u0275\u0275elementStart(30,"button",22),e.\u0275\u0275text(31),e.\u0275\u0275pipe(32,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"div",23),e.\u0275\u0275elementStart(34,"div",19),e.\u0275\u0275elementStart(35,"app-internet",24),e.\u0275\u0275listener("wifiChange",function(h){return l.settings.internet=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"div",14),e.\u0275\u0275elementStart(37,"div",25),e.\u0275\u0275elementStart(38,"h5",16),e.\u0275\u0275elementStart(39,"button",26),e.\u0275\u0275text(40),e.\u0275\u0275pipe(41,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(42,"div",27),e.\u0275\u0275elementStart(43,"div",19),e.\u0275\u0275elementStart(44,"app-sensors",20),e.\u0275\u0275listener("settingsChange",function(h){return l.settings=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"div",14),e.\u0275\u0275elementStart(46,"div",28),e.\u0275\u0275elementStart(47,"h5",16),e.\u0275\u0275elementStart(48,"button",29),e.\u0275\u0275text(49),e.\u0275\u0275pipe(50,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(51,"div",30),e.\u0275\u0275elementStart(52,"div",19),e.\u0275\u0275element(53,"app-measurement"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(54,"div",14),e.\u0275\u0275elementStart(55,"div",31),e.\u0275\u0275elementStart(56,"h5",16),e.\u0275\u0275elementStart(57,"button",32),e.\u0275\u0275text(58),e.\u0275\u0275pipe(59,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(60,"div",33),e.\u0275\u0275elementStart(61,"div",19),e.\u0275\u0275elementStart(62,"app-offline",20),e.\u0275\u0275listener("settingsChange",function(h){return l.settings=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(63,"div",14),e.\u0275\u0275elementStart(64,"div",34),e.\u0275\u0275elementStart(65,"h5",16),e.\u0275\u0275elementStart(66,"button",35),e.\u0275\u0275text(67),e.\u0275\u0275pipe(68,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(69,"div",36),e.\u0275\u0275elementStart(70,"div",19),e.\u0275\u0275elementStart(71,"app-log",20),e.\u0275\u0275listener("settingsChange",function(h){return l.settings=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(72,"div",14),e.\u0275\u0275elementStart(73,"div",37),e.\u0275\u0275elementStart(74,"h5",16),e.\u0275\u0275elementStart(75,"button",38),e.\u0275\u0275text(76),e.\u0275\u0275pipe(77,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(78,"div",39),e.\u0275\u0275elementStart(79,"div",19),e.\u0275\u0275element(80,"app-update"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(81,Bc,9,4,"div",40),e.\u0275\u0275elementStart(82,"div",14),e.\u0275\u0275elementStart(83,"div",41),e.\u0275\u0275elementStart(84,"h5",16),e.\u0275\u0275elementStart(85,"button",42),e.\u0275\u0275text(86),e.\u0275\u0275pipe(87,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(88,"div",43),e.\u0275\u0275elementStart(89,"div",19),e.\u0275\u0275elementStart(90,"app-miscellaneous",20),e.\u0275\u0275listener("settingsChange",function(h){return l.settings=h}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(91,Hc,17,13,"ng-container",44)),2&i&&(e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(41,Jg,l.innerWidth>600)),e.\u0275\u0275advance(4),e.\u0275\u0275property("translate","buttons.reboot"),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","buttons.shutdown"),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","buttons.save"),e.\u0275\u0275advance(2),e.\u0275\u0275property("translate","title"),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!l.isAccessPoint),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.isSettingsChanged),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.settingsSaved),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.settingsError),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(23,25,"settings.thingspeak.title")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("settings",l.settings),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(32,27,"settings.internet.title")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("wifi",l.settings.internet),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(41,29,"settings.sensors.title")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("settings",l.settings),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(50,31,"settings.measurement.title")," "),e.\u0275\u0275advance(9),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(59,33,"settings.offline.title")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("settings",l.settings),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(68,35,"settings.log.title")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("settings",l.settings),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(77,37,"settings.update.title")," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",l.enableWittyPi),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(87,39,"settings.miscellaneous.title")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("settings",l.settings),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",l.modalEnabled))},directives:[p.mk,ai,p.O5,gf,xl,Ff,Tc,Rl,Oc,Qf,np,zl,p.PC],pipes:[Lr],styles:[".myAlert-top[_ngcontent-%COMP%]{position:fixed;top:5px;left:2%;width:96%;z-index:99}.myAlert-bottom[_ngcontent-%COMP%]{position:fixed;bottom:5px;left:2%;width:96%;z-index:99}"]}),o})()},{path:"**",redirectTo:"/"}];let zc=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=e.\u0275\u0275defineNgModule({type:o,bootstrap:[sf]}),o.\u0275inj=e.\u0275\u0275defineInjector({providers:[Pr],imports:[[ur,Pr,De.FormsModule,De.ReactiveFormsModule,Li.Wx,gl.forRoot({loader:{provide:bi,useFactory:Gc,deps:[On]}}),sa.forRoot(sp,{relativeLinkResolution:"legacy"})]]}),o})();(0,e.enableProdMode)(),$t().bootstrapModule(zc).catch(o=>console.log(o))},884:(H,w)=>{"use strict";w.Z=function(p,e){if(!(p instanceof e))throw new TypeError("Cannot call a class as a function")}},9939:(H,w,f)=>{"use strict";var I=function O(A){return A&&A.__esModule?A:{default:A}}(f(2242));w.Z=function(){function A(R,b){for(var D=0;D{"use strict";var I=function O(A){return A&&A.__esModule?A:{default:A}}(f(2945));w.Z=I.default||function(A){for(var R=1;R{"use strict";var I=R(f(863)),A=R(f(6378));function R(b){return b&&b.__esModule?b:{default:b}}w.Z=function(D,F){if(Array.isArray(D))return D;if((0,I.default)(Object(D)))return function b(D,F){var U=[],z=!0,G=!1,Y=void 0;try{for(var te,X=(0,A.default)(D);!(z=(te=X.next()).done)&&(U.push(te.value),!F||U.length!==F);z=!0);}catch(fe){G=!0,Y=fe}finally{try{!z&&X.return&&X.return()}finally{if(G)throw Y}}return U}(D,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},9524:(H,w,f)=>{"use strict";f.r(w),f.d(w,{AsYouType:()=>Ke,AsYouTypeCustom:()=>Me,DIGITS:()=>je,DIGIT_PLACEHOLDER:()=>Fe,asYouType:()=>on,asYouTypeCustom:()=>Me,as_you_type:()=>Un,format:()=>jt,formatCustom:()=>vr,getNumberType:()=>An,getNumberTypeCustom:()=>tr,getPhoneCode:()=>ir,getPhoneCodeCustom:()=>On,get_number_type:()=>mt,isValidNumber:()=>yt,isValidNumberCustom:()=>he,is_valid_number:()=>Dn,parse:()=>Jn,parseCustom:()=>tt});const p=JSON.parse('{"country_phone_code_to_countries":{"1":["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],"7":["RU","KZ"],"20":["EG"],"27":["ZA"],"30":["GR"],"31":["NL"],"32":["BE"],"33":["FR"],"34":["ES"],"36":["HU"],"39":["IT","VA"],"40":["RO"],"41":["CH"],"43":["AT"],"44":["GB","GG","IM","JE"],"45":["DK"],"46":["SE"],"47":["NO","SJ"],"48":["PL"],"49":["DE"],"51":["PE"],"52":["MX"],"53":["CU"],"54":["AR"],"55":["BR"],"56":["CL"],"57":["CO"],"58":["VE"],"60":["MY"],"61":["AU","CC","CX"],"62":["ID"],"63":["PH"],"64":["NZ"],"65":["SG"],"66":["TH"],"81":["JP"],"82":["KR"],"84":["VN"],"86":["CN"],"90":["TR"],"91":["IN"],"92":["PK"],"93":["AF"],"94":["LK"],"95":["MM"],"98":["IR"],"211":["SS"],"212":["MA","EH"],"213":["DZ"],"216":["TN"],"218":["LY"],"220":["GM"],"221":["SN"],"222":["MR"],"223":["ML"],"224":["GN"],"225":["CI"],"226":["BF"],"227":["NE"],"228":["TG"],"229":["BJ"],"230":["MU"],"231":["LR"],"232":["SL"],"233":["GH"],"234":["NG"],"235":["TD"],"236":["CF"],"237":["CM"],"238":["CV"],"239":["ST"],"240":["GQ"],"241":["GA"],"242":["CG"],"243":["CD"],"244":["AO"],"245":["GW"],"246":["IO"],"247":["AC"],"248":["SC"],"249":["SD"],"250":["RW"],"251":["ET"],"252":["SO"],"253":["DJ"],"254":["KE"],"255":["TZ"],"256":["UG"],"257":["BI"],"258":["MZ"],"260":["ZM"],"261":["MG"],"262":["RE","YT"],"263":["ZW"],"264":["NA"],"265":["MW"],"266":["LS"],"267":["BW"],"268":["SZ"],"269":["KM"],"290":["SH","TA"],"291":["ER"],"297":["AW"],"298":["FO"],"299":["GL"],"350":["GI"],"351":["PT"],"352":["LU"],"353":["IE"],"354":["IS"],"355":["AL"],"356":["MT"],"357":["CY"],"358":["FI","AX"],"359":["BG"],"370":["LT"],"371":["LV"],"372":["EE"],"373":["MD"],"374":["AM"],"375":["BY"],"376":["AD"],"377":["MC"],"378":["SM"],"380":["UA"],"381":["RS"],"382":["ME"],"385":["HR"],"386":["SI"],"387":["BA"],"389":["MK"],"420":["CZ"],"421":["SK"],"423":["LI"],"500":["FK"],"501":["BZ"],"502":["GT"],"503":["SV"],"504":["HN"],"505":["NI"],"506":["CR"],"507":["PA"],"508":["PM"],"509":["HT"],"590":["GP","BL","MF"],"591":["BO"],"592":["GY"],"593":["EC"],"594":["GF"],"595":["PY"],"596":["MQ"],"597":["SR"],"598":["UY"],"599":["CW","BQ"],"670":["TL"],"672":["NF"],"673":["BN"],"674":["NR"],"675":["PG"],"676":["TO"],"677":["SB"],"678":["VU"],"679":["FJ"],"680":["PW"],"681":["WF"],"682":["CK"],"683":["NU"],"685":["WS"],"686":["KI"],"687":["NC"],"688":["TV"],"689":["PF"],"690":["TK"],"691":["FM"],"692":["MH"],"800":["001"],"808":["001"],"850":["KP"],"852":["HK"],"853":["MO"],"855":["KH"],"856":["LA"],"870":["001"],"878":["001"],"880":["BD"],"881":["001"],"882":["001"],"883":["001"],"886":["TW"],"888":["001"],"960":["MV"],"961":["LB"],"962":["JO"],"963":["SY"],"964":["IQ"],"965":["KW"],"966":["SA"],"967":["YE"],"968":["OM"],"970":["PS"],"971":["AE"],"972":["IL"],"973":["BH"],"974":["QA"],"975":["BT"],"976":["MN"],"977":["NP"],"979":["001"],"992":["TJ"],"993":["TM"],"994":["AZ"],"995":["GE"],"996":["KG"],"998":["UZ"]},"countries":{"AC":["247","[46]\\\\d{4}|[01589]\\\\d{5}"],"AD":["376","[16]\\\\d{5,8}|[37-9]\\\\d{5}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["[137-9]|6[0-8]"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["180","180[02]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["690"]]]],"AE":["971","[2-79]\\\\d{7,8}|800\\\\d{2,9}",[["([2-4679])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-4679][2-8]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["([479]00)(\\\\d)(\\\\d{5})","$1 $2 $3",["[479]00"],"$1"],["([68]00)(\\\\d{2,9})","$1 $2",["[68]00"],"$1"]],"0","0$1"],"AF":["93","[2-7]\\\\d{8}",[["([2-7]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-7]"]]],"0","0$1"],"AG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"268"],"AI":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"264"],"AL":["355","[2-57]\\\\d{7}|6\\\\d{8}|8\\\\d{5,7}|9\\\\d{5}",[["(4)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[0-6]"]],["(6\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["6"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2358][2-5]|4[7-9]"]],["(\\\\d{3})(\\\\d{3,5})","$1 $2",["[235][16-9]|[79]|8[016-9]"]]],"0","0$1"],"AM":["374","[1-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2",["1|47"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["4[1349]|[5-7]|88|9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{5})","$1 $2",["[23]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["8|90"],"0 $1"]],"0","(0$1)"],"AO":["244","[29]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"AR":["54","11\\\\d{8}|[2368]\\\\d{9}|9\\\\d{10}",[["([68]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[68]"]],["(9)(11)(\\\\d{4})(\\\\d{4})","$2 15-$3-$4",["911"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{4})","$2 15-$3-$4",["9(?:2[2-4689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578]))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{4})(\\\\d{2})(\\\\d{4})","$2 15-$3-$4",["9[23]"],null,null,"$1 $2 $3-$4"],["(11)(\\\\d{4})(\\\\d{4})","$1 $2-$3",["11"],null,"true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578])","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))"],null,"true"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["[23]"],null,"true"]],"0","0$1","0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))?15)?","9$1"],"AS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"684"],"AT":["43","[1-9]\\\\d{3,12}",[["(116\\\\d{3})","$1",["116"],"$1"],["(1)(\\\\d{3,12})","$1 $2",["1"]],["(5\\\\d)(\\\\d{3,5})","$1 $2",["5[079]"]],["(5\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["5[079]"]],["(5\\\\d)(\\\\d{4})(\\\\d{4,7})","$1 $2 $3",["5[079]"]],["(\\\\d{3})(\\\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:[28]0|32)|[89]"]],["(\\\\d{4})(\\\\d{3,9})","$1 $2",["2|3(?:1[1-578]|[3-8])|4[2378]|5[2-6]|6(?:[12]|4[1-9]|5[468])|7(?:[24][1-8]|35|[5-79])"]]],"0","0$1"],"AU":["61","1\\\\d{4,9}|[2-578]\\\\d{8}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["[237]\\\\d{8}|8(?:51(?:0(?:0[03-9]|[1247]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-6])|1(?:1[69]|[23]\\\\d|4[0-4]))|[6-8]\\\\d{4}|9(?:[02-9]\\\\d{3}|1(?:[0-57-9]\\\\d{2}|6[0135-9]\\\\d)))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12457-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,"16\\\\d{3,7}","550\\\\d{6}","13(?:00\\\\d{3}|45[0-4]|\\\\d)\\\\d{3}"]],"AW":["297","[25-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"AX":["358","1\\\\d{5,11}|[35]\\\\d{5,9}|2\\\\d{4,9}|4\\\\d{5,10}|6\\\\d{7,9}|7\\\\d{4,9}|8\\\\d{6,9}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0",null,null,null,null,null,["18[1-8]\\\\d{3,9}","4\\\\d{5,10}|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{2,7})"]],"AZ":["994","[1-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1[28]|2(?:[0-36]|[45]2)|365"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[4-8]"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"],"0$1"]],"0","(0$1)"],"BA":["387","[3-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2-$3",["[3-5]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[1-356]|[7-9]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["6[047]"]]],"0","0$1"],"BB":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"246"],"BD":["880","[2-79]\\\\d{5,9}|1\\\\d{9}|8[0-7]\\\\d{4,8}",[["(2)(\\\\d{7,8})","$1-$2",["2"]],["(\\\\d{2})(\\\\d{4,6})","$1-$2",["[3-79]1"]],["(\\\\d{4})(\\\\d{3,6})","$1-$2",["1|3(?:0|[2-58]2)|4(?:0|[25]2|3[23]|[4689][25])|5(?:[02-578]2|6[25])|6(?:[0347-9]2|[26][25])|7[02-9]2|8(?:[023][23]|[4-7]2)|9(?:[02][23]|[458]2|6[016])"]],["(\\\\d{3})(\\\\d{3,7})","$1-$2",["[3-79][2-9]|8"]]],"0","0$1"],"BE":["32","[1-9]\\\\d{7,8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[6-9]"]],["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4[23]|9[2-4]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[156]|7[018]|8(?:0[1-9]|[1-79])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["(?:80|9)0"]]],"0","0$1"],"BF":["226","[25-7]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BG":["359","[23567]\\\\d{5,7}|[489]\\\\d{6,8}",[["(2)(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["2"]],["(2)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[78]00"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["99[69]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["48|8[7-9]|9[08]"]]],"0","0$1"],"BH":["973","[136-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"BI":["257","[267]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BJ":["229","[2689]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2689]"]]]],"BL":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:2[7-9]|5[12]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"BM":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"441"],"BN":["673","[2-578]\\\\d{6}",[["([2-578]\\\\d{2})(\\\\d{4})","$1 $2",["[2-578]"]]]],"BO":["591","[23467]\\\\d{7}|8\\\\d{8}",[["([234])(\\\\d{7})","$1 $2",["[2-4]"]],["([67]\\\\d{7})","$1",["[67]"]],["(800)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["800"]]],"0",null,"0(1\\\\d)?"],"BQ":["599","[347]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|50)\\\\d)\\\\d{3}","(?:31(?:8[14-8]|9[14578])|416[145-9]|7(?:0[01]|7[07]|8\\\\d|9[056])\\\\d)\\\\d{3}"]],"BR":["55","[1-46-9]\\\\d{7,10}|5(?:[0-4]\\\\d{7,9}|5(?:[2-8]\\\\d{7}|9\\\\d{7,8}))",[["(\\\\d{4})(\\\\d{4})","$1-$2",["300|40[02]","300|40(?:0|20)"]],["([3589]00)(\\\\d{2,3})(\\\\d{4})","$1 $2 $3",["[3589]00"],"0$1"],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)"],["(\\\\d{2})(\\\\d{5})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]9"],"($1)"]],"0",null,"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?","$2"],"BS":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"242"],"BT":["975","[1-8]\\\\d{6,7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1|77"]],["([2-8])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-68]|7[246]"]]]],"BW":["267","[2-79]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-6]"]],["(7\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"]],["(90)(\\\\d{5})","$1 $2",["90"]]]],"BY":["375","[1-4]\\\\d{8}|8(?:0(?:0\\\\d{3,7}|[13]\\\\d{7})|(?:10|20\\\\d)\\\\d{7})|9\\\\d{9,10}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["17[0-3589]|2[4-9]|[34]","17(?:[02358]|1[0-2]|9[0189])|2[4-9]|[34]"],"8 0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["1(?:5[24]|6[235]|7[467])|2(?:1[246]|2[25]|3[26])","1(?:5[24]|6(?:2|3[04-9]|5[0346-9])|7(?:[46]|7[37-9]))|2(?:1[246]|2[25]|3[26])"],"8 0$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["([89]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[01]|9"],"8 $1"],["(82\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["82"],"8 $1"],["(800)(\\\\d{3})","$1 $2",["800"],"8 $1"],["(800)(\\\\d{2})(\\\\d{2,4})","$1 $2 $3",["800"],"8 $1"]],"8",null,"8?0?"],"BZ":["501","[2-8]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[2-8]"]],["(0)(800)(\\\\d{4})(\\\\d{3})","$1-$2-$3-$4",["080","0800"]]]],"CA":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,null,["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:0[04]|13|22|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"CC":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:02|31|60)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:08|22|68)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CD":["243","[2-6]\\\\d{6}|[18]\\\\d{6,8}|9\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["12"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[0-2459]|9"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["88"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["[1-6]"]]],"0","0$1"],"CF":["236","[278]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CG":["242","[028]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["801"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[02]"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["800"]]]],"CH":["41","[2-9]\\\\d{8}|860\\\\d{9}",[["([2-9]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]|[89]1"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[047]|90"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["860"]]],"0","0$1"],"CI":["225","[02-8]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CK":["682","[2-8]\\\\d{4}",[["(\\\\d{2})(\\\\d{3})","$1 $2"]]],"CL":["56","1230\\\\d{7}|[2-46-9]\\\\d{8,10}|5[1-3578]\\\\d{7}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[23]"],"($1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)"],["(9)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["9"]],["(44)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["44"]],["([68]00)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[68]00"],"$1"],["(600)(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["600"],"$1"],["(1230)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["123","1230"],"$1"],["(\\\\d{5})(\\\\d{4})","$1 $2",["219"],"($1)"]],"0","0$1","0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"],"CM":["237","[2368]\\\\d{7,8}",[["([26])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[26]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|88"]]]],"CN":["86","[1-7]\\\\d{6,11}|8[0-357-9]\\\\d{6,9}|9\\\\d{7,10}",[["([48]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[48]00"]],["(\\\\d{2})(\\\\d{5,6})","$1 $2",["(?:10|2\\\\d)[19]","(?:10|2\\\\d)(?:10|9[56])","(?:10|2\\\\d)(?:100|9[56])"],"0$1"],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["[3-9]","[3-9]\\\\d\\\\d[19]","[3-9]\\\\d\\\\d(?:10|9[56])"],"0$1"],["(21)(\\\\d{4})(\\\\d{4,6})","$1 $2 $3",["21"],"0$1","true"],["([12]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:0[1-9]|[1-9]))|2[02-9]"],"0$1","true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[47-9]|7|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[1-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[1-35])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[457]|6[09])|8(?:[57]1|98)"],"0$1","true"],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["807","8078"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["1(?:[3-57-9]|66)"]],["(10800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["108","1080","10800"]],["(\\\\d{3})(\\\\d{7,8})","$1 $2",["950"]]],"0",null,"(1(?:[129]\\\\d{3}|79\\\\d{2}))|0"],"CO":["57","(?:[13]\\\\d{0,3}|[24-8])\\\\d{7}",[["(\\\\d)(\\\\d{7})","$1 $2",["1(?:[2-7]|8[2-9]|9[0-3])|[24-8]","1(?:[2-7]|8[2-9]|9(?:09|[1-3]))|[24-8]"],"($1)"],["(\\\\d{3})(\\\\d{7})","$1 $2",["3"]],["(1)(\\\\d{3})(\\\\d{7})","$1-$2-$3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"],"0$1",null,"$1 $2 $3"]],"0",null,"0([3579]|4(?:44|56))?"],"CR":["506","[24-9]\\\\d{7,9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24-7]|8[3-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[89]0"]]],null,null,"(19(?:0[012468]|1[09]|20|66|77|99))"],"CU":["53","[2-57]\\\\d{5,7}",[["(\\\\d)(\\\\d{6,7})","$1 $2",["7"]],["(\\\\d{2})(\\\\d{4,6})","$1 $2",["[2-4]"]],["(\\\\d)(\\\\d{7})","$1 $2",["5"],"0$1"]],"0","(0$1)"],"CV":["238","[259]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"CW":["599","[134679]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["9(?:[48]\\\\d{2}|50\\\\d|7(?:2[0-24]|[34]\\\\d|6[35-7]|77|8[7-9]))\\\\d{4}","9(?:5(?:[12467]\\\\d|3[01])|6(?:[15-9]\\\\d|3[01]))\\\\d{4}",null,null,null,null,null,"955\\\\d{5}",null,"60[0-2]\\\\d{4}"]],"CX":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:01|30|59)|117)|91(?:00[6-9]|1(?:21|49|78|81)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CY":["357","[257-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]]],"CZ":["420","[2-8]\\\\d{8}|9\\\\d{8,11}",[["([2-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(96\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["96"]],["(9\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["9[36]"]]]],"DE":["49","[1-35-9]\\\\d{3,14}|4(?:[0-8]\\\\d{3,12}|9(?:[0-37]\\\\d|4(?:[1-35-8]|4\\\\d?)|5\\\\d{1,2}|6[1-8]\\\\d?)\\\\d{2,8})",[["(1\\\\d{2})(\\\\d{7,8})","$1 $2",["1[67]"]],["(15\\\\d{3})(\\\\d{6})","$1 $2",["15[0568]"]],["(1\\\\d{3})(\\\\d{7})","$1 $2",["15"]],["(\\\\d{2})(\\\\d{3,11})","$1 $2",["3[02]|40|[68]9"]],["(\\\\d{3})(\\\\d{3,11})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14]|[4-9]1)|3(?:[35-9][15]|4[015])|[4-8][1-9]1|9(?:06|[1-9]1)"]],["(\\\\d{4})(\\\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|[7-9](?:0[1-9]|[1-9])","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|[46][1246]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|3[1357]|4[13578]|6[1246]|7[1356]|9[1346])|5(?:0[14]|2[1-3589]|3[1357]|[49][1246]|6[1-4]|7[1346]|8[13568])|6(?:0[356]|2[1-489]|3[124-6]|4[1347]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|3[1357]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|4[1347]|6[0135-9]|7[1467]|8[136])|9(?:0[12479]|2[1358]|3[1357]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|[7-9](?:0[1-9]|[1-9])"]],["(3\\\\d{4})(\\\\d{1,10})","$1 $2",["3"]],["(800)(\\\\d{7,12})","$1 $2",["800"]],["(\\\\d{3})(\\\\d)(\\\\d{4,10})","$1 $2 $3",["1(?:37|80)|900","1(?:37|80)|900[1359]"]],["(1\\\\d{2})(\\\\d{5,11})","$1 $2",["181"]],["(18\\\\d{3})(\\\\d{6})","$1 $2",["185","1850","18500"]],["(18\\\\d{2})(\\\\d{7})","$1 $2",["18[68]"]],["(18\\\\d)(\\\\d{8})","$1 $2",["18[2-579]"]],["(700)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["700"]],["(138)(\\\\d{4})","$1 $2",["138"]],["(15[013-68])(\\\\d{2})(\\\\d{8})","$1 $2 $3",["15[013-68]"]],["(15[279]\\\\d)(\\\\d{2})(\\\\d{7})","$1 $2 $3",["15[279]"]],["(1[67]\\\\d)(\\\\d{2})(\\\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"]]],"0","0$1"],"DJ":["253","[27]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DK":["45","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DM":["1","[57-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"767"],"DO":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"8[024]9"],"DZ":["213","(?:[1-4]|[5-9]\\\\d)\\\\d{7}",[["([1-4]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[1-4]"]],["([5-8]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-8]"]],["(9\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"]]],"0","0$1"],"EC":["593","1\\\\d{9,10}|[2-8]\\\\d{7}|9\\\\d{8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2-$3",["[247]|[356][2-8]"],null,null,"$1-$2-$3"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["180","1800"],"$1"]],"0","(0$1)"],"EE":["372","[3-9]\\\\d{6,7}|800\\\\d{6,7}",[["([3-79]\\\\d{2})(\\\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]"]],["(70)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["70"]],["(8000)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800","8000"]],["([458]\\\\d{3})(\\\\d{3,4})","$1 $2",["40|5|8(?:00|[1-5])","40|5|8(?:00[1-9]|[1-5])"]]]],"EG":["20","1\\\\d{4,9}|[24-6]\\\\d{8}|3\\\\d{7}|[89]\\\\d{8,9}",[["(\\\\d)(\\\\d{7,8})","$1 $2",["[23]"]],["(\\\\d{2})(\\\\d{6,7})","$1 $2",["1(?:3|5[239])|[4-6]|[89][2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[0-25]|[89]00"]]],"0","0$1"],"EH":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0",null,null,null,null,"528[89]"],"ER":["291","[178]\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3"]],"0","0$1"],"ES":["34","[5-9]\\\\d{8}",[["([89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[89]00"]],["([5-9]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[568]|[79][0-8]"]]]],"ET":["251","[1-59]\\\\d{8}",[["([1-59]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-59]"]]],"0","0$1"],"FI":["358","1\\\\d{4,11}|[2-9]\\\\d{4,10}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0","0$1",null,null,null,null,["1(?:[3569][1-8]\\\\d{3,9}|[47]\\\\d{5,10})|2[1-8]\\\\d{3,9}|3(?:[1-8]\\\\d{3,9}|9\\\\d{4,8})|[5689][1-8]\\\\d{3,9}","4(?:[0-8]\\\\d{4,9}|9\\\\d{3,8})|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{3,7})"]],"FJ":["679","[2-9]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-9]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0"]]]],"FK":["500","[2-7]\\\\d{4}"],"FM":["691","[39]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"FO":["298","[2-9]\\\\d{5}",[["(\\\\d{6})","$1"]],null,null,"(10(?:01|[12]0|88))"],"FR":["33","[1-9]\\\\d{8}",[["([1-79])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[1-79]"]],["(8\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"],"0 $1"]],"0","0$1"],"GA":["241","0?\\\\d{7}",[["(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]]],"GB":["44","\\\\d{7,10}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0","0$1",null,null,null,null,["2(?:0[01378]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{7}|1(?:1(?:3[0-48]|[46][0-4]|5[0-26-9]|[78][0-49])|21[0-7]|31[0-8]|[4-69]1\\\\d)\\\\d{6}|1(?:2(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)|3(?:0\\\\d|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[28][02-57-9]|[37]\\\\d|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|2[024-9]|3[015689]|4[02-9]|5[03-9]|6\\\\d|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0124578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|8\\\\d|9[2-57]))\\\\d{6}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[345])))|3(?:638[2-5]|647[23]|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[123]))|5(?:24(?:3[2-79]|6\\\\d)|276\\\\d|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[567]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|955[0-4])|7(?:26(?:6[13-9]|7[0-7])|442\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|84(?:3[2-58]))|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}|176888[2-46-8]\\\\d{2}|16977[23]\\\\d{3}","7(?:[1-3]\\\\d{3}|4(?:[0-46-9]\\\\d{2}|5(?:[0-689]\\\\d|7[0-57-9]))|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])\\\\d|7(?:0(?:0[01]|[1-9]\\\\d)|[1-7]\\\\d{2}|8[02-9]\\\\d|9[0-689]\\\\d)|8(?:[014-9]\\\\d|[23][0-8])\\\\d|9(?:[024-9]\\\\d{2}|1(?:[02-9]\\\\d|1[028])|3[0-689]\\\\d))\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[2349]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GD":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"473"],"GE":["995","[34578]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5"]]],"0"],"GF":["594","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"GG":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1481[25-9]\\\\d{5}","7(?:781\\\\d|839\\\\d|911[17])\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[0-3]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GH":["233","[235]\\\\d{8}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["8"]]],"0","0$1"],"GI":["350","[256]\\\\d{7}",[["(\\\\d{3})(\\\\d{5})","$1 $2",["2"]]]],"GL":["299","[1-689]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"GM":["220","[2-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"GN":["224","[367]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["3"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[67]"]]]],"GP":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0","0$1",null,null,null,null,["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\\\d)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"GQ":["240","[23589]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["[89]"]]]],"GR":["30","[26-9]\\\\d{9}",[["([27]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["21|7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[2-9]1|[689]"]],["(2\\\\d{3})(\\\\d{6})","$1 $2",["2[2-9][02-9]"]]]],"GT":["502","[2-7]\\\\d{7}|1[89]\\\\d{9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]]]],"GU":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"671"],"GW":["245","(?:4(?:0\\\\d{5}|4\\\\d{7})|9\\\\d{8})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["44|9[5-7]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["40"]]]],"GY":["592","[2-46-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"HK":["852","[2-7]\\\\d{7}|8[0-3]\\\\d{6,7}|9\\\\d{4,10}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]|[89](?:0[1-9]|[1-9])"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]],["(900)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["900"]],["(900)(\\\\d{2,5})","$1 $2",["900"]]]],"HN":["504","[237-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1-$2"]]],"HR":["385","[1-7]\\\\d{5,8}|[89]\\\\d{6,8}",[["(1)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["1"]],["([2-5]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-5]"]],["(9\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]],["(6[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["6[01]"]],["([67]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[67]"]],["(80[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["80[01]"]],["(80[01])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80[01]"]]],"0","0$1"],"HT":["509","[2-489]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3"]]],"HU":["36","[1-9]\\\\d{7,8}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-9]"]]],"06","($1)"],"ID":["62","(?:[1-79]\\\\d{6,10}|8\\\\d{7,11})",[["(\\\\d{2})(\\\\d{5,8})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\\\d{3})(\\\\d{5,8})","$1 $2",["2[035-9]|[36][02-9]|[4579]"],"(0$1)"],["(8\\\\d{2})(\\\\d{3,4})(\\\\d{3})","$1-$2-$3",["8[1-35-9]"]],["(8\\\\d{2})(\\\\d{4})(\\\\d{4,5})","$1-$2-$3",["8[1-35-9]"]],["(1)(500)(\\\\d{3})","$1 $2 $3",["150","1500"],"$1"],["(177)(\\\\d{6,8})","$1 $2",["177"]],["(800)(\\\\d{5,7})","$1 $2",["800"]],["(804)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["804"]],["(80\\\\d)(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["80[79]"]]],"0","0$1"],"IE":["353","[124-9]\\\\d{6,9}",[["(1)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["40[24]|50[45]"]],["(48)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["48"]],["(818)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["818"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[24-69]|7[14]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["76|8[35-9]"],"0$1"],["(8\\\\d)(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["8[35-9]5"],"0$1"],["(700)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["700"],"0$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:5|8[059])","1(?:5|8[059]0)"],"$1"]],"0","(0$1)"],"IL":["972","1\\\\d{6,11}|[2-589]\\\\d{3}(?:\\\\d{3,6})?|6\\\\d{3}|7\\\\d{6,9}",[["([2-489])(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["([57]\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(153)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["153"]],["(1)([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(1255)(\\\\d{3})","$1-$2",["125","1255"]],["(1200)(\\\\d{3})(\\\\d{3})","$1-$2-$3",["120","1200"]],["(1212)(\\\\d{2})(\\\\d{2})","$1-$2-$3",["121","1212"]],["(1599)(\\\\d{6})","$1-$2",["159","1599"]],["(151)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1-$2 $3-$4",["151"]],["(\\\\d{4})","*$1",["[2-689]"]]],"0"],"IM":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1624[5-8]\\\\d{5}","7(?:4576|[59]24\\\\d|624[0-4689])\\\\d{5}","808162\\\\d{4}","(?:872299|90[0167]624)\\\\d{4}","70\\\\d{8}",null,"3(?:08162\\\\d|3\\\\d{5}|4(?:40[49]06|5624\\\\d)|7(?:0624\\\\d|2299\\\\d))\\\\d{3}|55\\\\d{8}",null,"56\\\\d{8}","8(?:4(?:40[49]06|5624\\\\d)|70624\\\\d)\\\\d{3}"]],"IN":["91","008\\\\d{9}|1\\\\d{7,12}|[2-9]\\\\d{9,10}",[["(\\\\d{8})","$1",["561","5616","56161"],"$1"],["(\\\\d{5})(\\\\d{5})","$1 $2",["6(?:[09]0|2[03689]|3[05-9])|7(?:[02-8]|19|9[037-9])|8(?:0[015-9]|[1-9])|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:[07]|19[0-5]|2(?:[0235-9]|[14][017-9])|3(?:[025-9]|[134][017-9])|4(?:[0-35689]|[47][017-9])|5(?:[02-46-9]|[15][017-9])|6(?:[02-9]|1[0-257-9])|8(?:[0-79]|8[0189])|9(?:[089]|31|7[02-9]))|8(?:0(?:[01589]|6[67]|7[02-9])|1(?:[0-57-9]|6[07-9])|2(?:[014][07-9]|[235-9])|3(?:[03-57-9]|[126][07-9])|[45]|6(?:[02457-9]|[136][07-9])|7(?:[078][07-9]|[1-69])|8(?:[0-25-9]|3[07-9]|4[047-9])|9(?:[02-9]|1[027-9]))|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:0|19[0-5]|2(?:[0235-79]|[14][017-9]|8(?:[0-69]|[78][089]))|3(?:[05-8]|1(?:[0189]|7[5-9])|2(?:[0-49][089]|[5-8])|3[017-9]|4(?:[07-9]|11)|9(?:[01689]|[2-5][089]|7[0189]))|4(?:[056]|1(?:[0135-9]|[24][089])|[29](?:[0-7][089]|[89])|3(?:[0-8][089]|9)|[47](?:[089]|11|7[02-8])|8(?:[0-24-7][089]|[389]))|5(?:[0346-9]|[15][017-9]|2(?:[03-9]|[12][089]))|6(?:[0346-9]|1[0-257-9]|2(?:[0-4]|[5-9][089])|5(?:[0-367][089]|[4589]))|7(?:0(?:[02-9]|1[089])|[1-9])|8(?:[0-79]|8(?:0[0189]|11|8[013-9]|9))|9(?:[089]|313|7(?:[02-8]|9[07-9])))|8(?:0(?:[01589]|6[67]|7(?:[02-8]|9[05-9]))|1(?:[02-57-9]|1(?:[0-35-9]|4[0-46-9])|6(?:[089]|7[02-8]))|2(?:0(?:[089]|7[02])|[14](?:[089]|7[02-8])|[235-9])|3(?:[03-57-9]|1(?:[089]|7[02-6])|2(?:[09]|77|8[0-689])|6(?:[089]|7[02-7]))|[45]|6(?:[02457-9]|[136](?:[089]|7[02-8]))|7(?:0[07-9]|[1-69]|[78](?:[089]|7[02-8]))|8(?:[0-25-9]|3(?:[089]|7[02-8])|4(?:[0489]|7[02-68]))|9(?:[02-9]|1(?:[0289]|7[2-6])))|9"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-9]|80[2-46]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[59][14]|[68][1-9]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1|9[15])|6(?:12|[2-4]1|5[17]|6[13]|7[14]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)"]],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:[23579]|[468][1-9])|[2-8]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3 $4",["008"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["140"],"$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["160","1600"],"$1"],["(\\\\d{4})(\\\\d{4,5})","$1 $2",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{2,4})(\\\\d{4})","$1 $2 $3",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["186","1860"],"$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["18[06]"],"$1"]],"0","0$1",null,null,true],"IO":["246","3\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"IQ":["964","[1-7]\\\\d{7,9}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["([2-6]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-6]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"IR":["98","[1-8]\\\\d{5,9}|9(?:[0-4]\\\\d{8}|9\\\\d{8})",[["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[1-8]"]],["(\\\\d{2})(\\\\d{4,5})","$1 $2",["[1-8]"]],["(\\\\d{4,5})","$1",["96"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]]],"0","0$1"],"IS":["354","[4-9]\\\\d{6}|38\\\\d{7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[4-9]"]],["(3\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3"]]]],"IT":["39","[01589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9})",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["0(?:[26]\\\\d{4,9}|(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2346]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[34578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7})","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"JE":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1534[0-24-8]\\\\d{5}","7(?:509\\\\d|7(?:00[378]|97[7-9])|829\\\\d|937\\\\d)\\\\d{5}","80(?:07(?:35|81)|8901)\\\\d{4}","(?:871206|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}","701511\\\\d{4}",null,"3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))\\\\d{4}|55\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|70002)\\\\d{4}"]],"JM":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"876"],"JO":["962","[235-9]\\\\d{7,8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(7)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["7[457-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["70"]],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["8[0158]|9"]]],"0","0$1"],"JP":["81","[1-9]\\\\d{8,9}|00(?:[36]\\\\d{7,14}|7\\\\d{5,7}|8\\\\d{7})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1-$2-$3",["(?:12|57|99)0"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["800"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[2-57-9])|9(?:496|802|9(?:1[23]|69))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:[3-6][2-9]|7[2-6]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6[56]))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6(?:5[25]|60)))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93(?:31|4))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["2(?:[34]7|[56]9|74|9[14-79])|82|993"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2479][1-9]"]]],"0","0$1"],"KE":["254","20\\\\d{6,7}|[4-9]\\\\d{6,9}",[["(\\\\d{2})(\\\\d{5,7})","$1 $2",["[24-6]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[89]"]]],"0","0$1","005|0"],"KG":["996","[235-8]\\\\d{8,9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[25-7]|31[25]"]],["(\\\\d{4})(\\\\d{5})","$1 $2",["3(?:1[36]|[2-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{3})","$1 $2 $3 $4",["8"]]],"0","0$1"],"KH":["855","[1-9]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1\\\\d[1-9]|[2-9]"],"0$1"],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"]]],"0"],"KI":["686","[2458]\\\\d{4}|3\\\\d{4,7}|[67]\\\\d{7}",[],null,null,"0"],"KM":["269","[3478]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"KN":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"869"],"KP":["850","1\\\\d{9}|[28]\\\\d{7}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8"]]],"0","0$1"],"KR":["82","00(?:3\\\\d{8,9}|7\\\\d{9,11})|[1-7]\\\\d{4,9}|8\\\\d{8}",[["(\\\\d{2})(\\\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["1(?:5[246-9]|6[046-8]|8[03579])","1(?:5(?:22|44|66|77|88|99)|6(?:[07]0|44|6[16]|88)|8(?:00|33|55|77|99))"],"$1"],["(\\\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"]],["(\\\\d)(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["2[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["60[2-9]|80"]],["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["1[0-25-9]|(?:3[1-3]|[46][1-4]|5[1-5])[1-9]"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[57]0"]]],"0","0$1","0(8[1-46-8]|85\\\\d{2})?"],"KW":["965","[12569]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{3,4})","$1 $2",["[16]|2(?:[0-35-9]|4[0-35-9])|52[25]|9[024-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["244|5(?:[015]|6[56])"]]]],"KY":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"345"],"KZ":["7","(?:33\\\\d|7\\\\d{2}|80[089])\\\\d{7}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8",null,null,null,null,null,["33622\\\\d{5}|7(?:1(?:0(?:[23]\\\\d|4[0-3]|59|63)|1(?:[23]\\\\d|4[0-79]|59)|2(?:[23]\\\\d|59)|3(?:2\\\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\\\d|3[013-9]|5[1-9])|5(?:2\\\\d|3[1-9]|4[0-7]|59)|6(?:[234]\\\\d|5[19]|61)|72\\\\d|8(?:[27]\\\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\\\d|4[46-9]|5[3469])|2(?:2\\\\d|3[0679]|46|5[12679])|3(?:[234]\\\\d|5[139])|4(?:2\\\\d|3[1235-9]|59)|5(?:[23]\\\\d|4[01246-8]|59|61)|6(?:2\\\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\\\d|40|5[279])|8(?:[23]\\\\d|4[0-3]|59)|9(?:2\\\\d|3[124578]|59)))\\\\d{5}","7(?:0[012578]|47|6[02-4]|7[15-8]|85)\\\\d{7}","800\\\\d{7}","809\\\\d{7}","808\\\\d{7}",null,null,null,"751\\\\d{7}"]],"LA":["856","[2-8]\\\\d{7,9}",[["(20)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["20"]],["([2-8]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"]],["(30)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["30"]]],"0","0$1"],"LB":["961","[13-9]\\\\d{6,7}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["([7-9]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7(?:[01]|6[013-9]|8[89]|9[1-3])|[89][01]"]]],"0"],"LC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"758"],"LI":["423","6\\\\d{8}|[23789]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[237-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[56]"]],["(69)(7\\\\d{2})(\\\\d{4})","$1 $2 $3",["697"]]],"0",null,"0|10(?:01|20|66)"],"LK":["94","[1-9]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[1-689]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"LR":["231","2\\\\d{7,8}|[378]\\\\d{8}|4\\\\d{6}|5\\\\d{6,8}",[["(2\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([4-5])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[45]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23578]"]]],"0","0$1"],"LS":["266","[2568]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"LT":["370","[3-9]\\\\d{7}",[["([34]\\\\d)(\\\\d{6})","$1 $2",["37|4(?:1|5[45]|6[2-4])"]],["([3-6]\\\\d{2})(\\\\d{5})","$1 $2",["3[148]|4(?:[24]|6[09])|528|6"]],["([7-9]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[7-9]"],"8 $1"],["(5)(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["52[0-79]"]]],"8","(8-$1)","[08]",null,true],"LU":["352","[24-9]\\\\d{3,10}|3(?:[0-46-9]\\\\d{2,9}|5[013-9]\\\\d{1,8})",[["(\\\\d{2})(\\\\d{3})","$1 $2",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,4})","$1 $2 $3 $4",["2(?:[12589]|4[12])|[3-5]|7[1-9]|8(?:0[2-9]|[1-9])|9(?:0[2-46-9]|[1-9])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["70|80[01]|90[015]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6"]]],null,null,"(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\\\\d)"],"LV":["371","[2689]\\\\d{7}",[["([2689]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2689]"]]]],"LY":["218","[25679]\\\\d{8}",[["([25-79]\\\\d)(\\\\d{7})","$1-$2",["[25-79]"]]],"0","0$1"],"MA":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0","0$1",null,null,null,null,["5(?:2(?:[015-79]\\\\d|2[02-9]|3[2-57]|4[2-8]|8[235-7])\\\\d|3(?:[0-48]\\\\d|[57][2-9]|6[2-8]|9[3-9])\\\\d|4[067]\\\\d{2}|5[03]\\\\d{2})\\\\d{4}","(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:0[067]|6[1267]|7[07]))\\\\d{6}","80\\\\d{7}","89\\\\d{7}",null,null,null,null,"5924[01]\\\\d{4}"]],"MC":["377","[34689]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[39]"],"$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["4"]],["(6)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["6"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["8"],"$1"]],"0","0$1"],"MD":["373","[235-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["22|3"]],["([25-7]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["2[13-9]|[5-7]"]],["([89]\\\\d{2})(\\\\d{5})","$1 $2",["[89]"]]],"0","0$1"],"ME":["382","[2-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-57-9]|6[036-9]"]]],"0","0$1"],"MF":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:0[079]|13|2[79]|30|43|5[0-268]|7[79]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"MG":["261","[23]\\\\d{8}",[["([23]\\\\d)(\\\\d{2})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["[23]"]]],"0","0$1"],"MH":["692","[2-6]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1-$2"]],"1"],"MK":["389","[2-578]\\\\d{7}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([347]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[347]"]],["([58]\\\\d{2})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[58]"]]],"0","0$1"],"ML":["223","[246-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[246-9]"]]]],"MM":["95","[178]\\\\d{5,7}|[24-6]\\\\d{5,8}|9(?:[279]\\\\d{0,2}|5|[34]\\\\d{1,2}|6(?:\\\\d{1,2})?|8(?:\\\\d{2})?)\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1|2[245]"]],["(2)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["251"]],["(\\\\d)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["16|2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["432|67|81"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3,4})","$1 $2 $3",["[4-8]"]],["(9)(\\\\d{3})(\\\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"]],["(9)([34]\\\\d{4})(\\\\d{4})","$1 $2 $3",["9(?:3[0-36]|4[0-57-9])"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["92[56]"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["93"]]],"0","0$1"],"MN":["976","[12]\\\\d{7,9}|[57-9]\\\\d{7}",[["([12]\\\\d)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[12]1"]],["([12]2\\\\d)(\\\\d{5,6})","$1 $2",["[12]2[1-3]"]],["([12]\\\\d{3})(\\\\d{5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)2"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["[57-9]"],"$1"],["([12]\\\\d{4})(\\\\d{4,5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)[4-9]"]]],"0","0$1"],"MO":["853","[268]\\\\d{7}",[["([268]\\\\d{3})(\\\\d{4})","$1 $2",["[268]"]]]],"MP":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"670"],"MQ":["596","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"MR":["222","[2-48]\\\\d{7}",[["([2-48]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],"MS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"664"],"MT":["356","[2357-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"MU":["230","[2-9]\\\\d{6,7}",[["([2-46-9]\\\\d{2})(\\\\d{4})","$1 $2",["[2-46-9]"]],["(5\\\\d{3})(\\\\d{4})","$1 $2",["5"]]]],"MV":["960","[346-8]\\\\d{6,9}|9(?:00\\\\d{7}|\\\\d{6})",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[3467]|9(?:0[1-9]|[1-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[89]00"]]]],"MW":["265","(?:1(?:\\\\d{2})?|[2789]\\\\d{2})\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1"]],["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[17-9]"]]],"0","0$1"],"MX":["52","[1-9]\\\\d{9,10}",[["([358]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["33|55|81"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2467]|3[0-2457-9]|5[089]|8[02-9]|9[0-35-9]"]],["(1)([358]\\\\d)(\\\\d{4})(\\\\d{4})","044 $2 $3 $4",["1(?:33|55|81)"],"$1",null,"$1 $2 $3 $4"],["(1)(\\\\d{3})(\\\\d{3})(\\\\d{4})","044 $2 $3 $4",["1(?:[2467]|3[0-2457-9]|5[089]|8[2-9]|9[1-35-9])"],"$1",null,"$1 $2 $3 $4"]],"01","01 $1","0[12]|04[45](\\\\d{10})","1$1",true],"MY":["60","[13-9]\\\\d{7,9}",[["([4-79])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(3)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["3"],"0$1"],["([18]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1-$2 $3",["1[02-46-9][1-9]|8"],"0$1"],["(1)([36-8]00)(\\\\d{2})(\\\\d{4})","$1-$2-$3-$4",["1[36-8]0","1[36-8]00"]],["(11)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["11"],"0$1"],["(15[49])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["15[49]"],"0$1"]],"0"],"MZ":["258","[28]\\\\d{7,8}",[["([28]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2|8[2-7]"]],["(80\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80"]]]],"NA":["264","[68]\\\\d{7,8}",[["(8\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[1-35]"]],["(6\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["6"]],["(88)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["88"]],["(870)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["870"]]],"0","0$1"],"NC":["687","[2-57-9]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1.$2.$3",["[2-46-9]|5[0-4]"]]]],"NE":["227","[0289]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["09|[289]"]],["(08)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["08"]]]],"NF":["672","[13]\\\\d{5}",[["(\\\\d{2})(\\\\d{4})","$1 $2",["1"]],["(\\\\d)(\\\\d{5})","$1 $2",["3"]]]],"NG":["234","[1-6]\\\\d{5,8}|9\\\\d{5,9}|[78]\\\\d{5,13}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[1-9]|[1-79])|8[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["70|8[01]|90[235-9]"]],["([78]00)(\\\\d{4})(\\\\d{4,5})","$1 $2 $3",["[78]00"]],["([78]00)(\\\\d{5})(\\\\d{5,6})","$1 $2 $3",["[78]00"]],["(78)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["78"]]],"0","0$1"],"NI":["505","[125-8]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"NL":["31","1\\\\d{4,8}|[2-7]\\\\d{8}|[89]\\\\d{6,9}",[["([1-578]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[035]|2[0346]|3[03568]|4[0356]|5[0358]|7|8[4578]"]],["([1-5]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"]],["(6)(\\\\d{8})","$1 $2",["6[0-57-9]"]],["(66)(\\\\d{7})","$1 $2",["66"]],["(14)(\\\\d{3,4})","$1 $2",["14"],"$1"],["([89]0\\\\d)(\\\\d{4,7})","$1 $2",["[89]0"]]],"0","0$1"],"NO":["47","0\\\\d{4}|[2-9]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\\\d{6}","(?:4[015-8]|5[89]|87|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"NP":["977","[1-8]\\\\d{7}|9(?:[1-69]\\\\d{6,8}|7[2-6]\\\\d{5,7}|8\\\\d{8})",[["(1)(\\\\d{7})","$1-$2",["1[2-6]"]],["(\\\\d{2})(\\\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-69]|7[15-9])"]],["(9\\\\d{2})(\\\\d{7})","$1-$2",["9(?:6[013]|7[245]|8)"],"$1"]],"0","0$1"],"NR":["674","[458]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"NU":["683","[1-5]\\\\d{3}"],"NZ":["64","6[235-9]\\\\d{6}|[2-57-9]\\\\d{7,9}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2 $3",["240|[346]|7[2-57-9]|9[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["21"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,5})","$1 $2 $3",["2(?:1[1-9]|[69]|7[0-35-9])|70|86"]],["(2\\\\d)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["2[028]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["90"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:10|74)|5|[89]0"]]],"0","0$1"],"OM":["968","(?:5|[279]\\\\d)\\\\d{6}|800\\\\d{5,6}",[["(2\\\\d)(\\\\d{6})","$1 $2",["2"]],["([79]\\\\d{3})(\\\\d{4})","$1 $2",["[79]"]],["([58]00)(\\\\d{4,6})","$1 $2",["[58]00"]]]],"PA":["507","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[1-57-9]"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["6"]]]],"PE":["51","[14-9]\\\\d{7,8}",[["(1)(\\\\d{7})","$1 $2",["1"]],["([4-8]\\\\d)(\\\\d{6})","$1 $2",["[4-7]|8[2-4]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["80"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"],"$1"]],"0","(0$1)"],"PF":["689","4\\\\d{5,7}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[09]|8[79]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["44"]]]],"PG":["675","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-689]|27"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["20|7"]]]],"PH":["63","1\\\\d{10,12}|2\\\\d{5,7}|[3-7]\\\\d{8}|8\\\\d{7,9}|9\\\\d{9}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(2)(\\\\d{5})","$1 $2",["2"],"(0$1)"],["(\\\\d{4})(\\\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|5(?:22|44)|642|8(?:62|8[245])","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\\\d{5})(\\\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["([3-8]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[3-8]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["81|9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["180","1800"]],["(1800)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["180","1800"]]],"0"],"PK":["92","1\\\\d{8}|[2-8]\\\\d{5,11}|9(?:[013-9]\\\\d{4,10}|2\\\\d(?:111\\\\d{6}|\\\\d{3,7}))",[["([89]00)(\\\\d{3})(\\\\d{2})","$1 $2 $3",["[89]00"],"0$1"],["(1\\\\d{3})(\\\\d{5})","$1 $2",["1"],"$1"],["(\\\\d{2})(\\\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"]],["(\\\\d{3})(\\\\d{6,7})","$1 $2",["2[349]|45|54|60|72|8[2-5]|9[2-469]","(?:2[349]|45|54|60|72|8[2-5]|9[2-469])\\\\d[2-9]"]],["(58\\\\d{3})(\\\\d{5})","$1 $2",["58[126]"]],["(3\\\\d{2})(\\\\d{7})","$1 $2",["3"],"0$1"],["(\\\\d{2})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)1","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)11","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)111"]],["(\\\\d{3})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d1","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d11","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d111"]]],"0","(0$1)"],"PL":["48","[1-57-9]\\\\d{6,8}|6\\\\d{5,8}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["11[68]|64"]],["(\\\\d{5})","$1",["19"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["64"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["26|39|45|5[0137]|6[0469]|7[02389]|8[08]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[14]|2[0-57-9]|3[2-4]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]]]],"PM":["508","[45]\\\\d{5}",[["([45]\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[45]"]]],"0","0$1"],"PR":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"787|939"],"PS":["970","1\\\\d{9}|[24589]\\\\d{7,8}",[["([2489])(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["[2489]2"]],["(5[69]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["5[69]"]],["(1[78]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[78]0","1[78]00"],"$1"]],"0","0$1"],"PT":["351","[2-46-9]\\\\d{8}",[["(2\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[12]"]],["([2-46-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[3-9]|[346-9]"]]]],"PW":["680","[2-8]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"PY":["595","5[0-5]\\\\d{4,7}|[2-46-9]\\\\d{5,8}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\\\d{3})(\\\\d{6})","$1 $2",["9[1-9]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["870","8700"]],["(\\\\d{3})(\\\\d{4,5})","$1 $2",["[2-8][1-9]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8][1-9]"],"0$1"]],"0"],"QA":["974","[2-8]\\\\d{6,7}",[["([28]\\\\d{2})(\\\\d{4})","$1 $2",["[28]"]],["([3-7]\\\\d{3})(\\\\d{4})","$1 $2",["[3-7]"]]]],"RE":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0","0$1",null,null,null,"262|69|8"],"RO":["40","[23]\\\\d{5,8}|[7-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23]1"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["[23]1"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[23][3-7]|[7-9]"]],["(2\\\\d{2})(\\\\d{3})","$1 $2",["2[3-6]"]]],"0","0$1"],"RS":["381","[126-9]\\\\d{4,11}|3(?:[0-79]\\\\d{3,10}|8[2-9]\\\\d{2,9})",[["([23]\\\\d{2})(\\\\d{4,9})","$1 $2",["(?:2[389]|39)0"]],["([1-3]\\\\d)(\\\\d{5,10})","$1 $2",["1|2(?:[0-24-7]|[389][1-9])|3(?:[0-8]|9[1-9])"]],["(6\\\\d)(\\\\d{6,8})","$1 $2",["6"]],["([89]\\\\d{2})(\\\\d{3,9})","$1 $2",["[89]"]],["(7[26])(\\\\d{4,9})","$1 $2",["7[26]"]],["(7[08]\\\\d)(\\\\d{4,9})","$1 $2",["7[08]"]]],"0","0$1"],"RU":["7","[347-9]\\\\d{9}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8","8 ($1)",null,null,true,null,["(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\\\d{7}","9\\\\d{9}","80[04]\\\\d{7}","80[39]\\\\d{7}","808\\\\d{7}"]],"RW":["250","[027-9]\\\\d{7,8}",[["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(0\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]],"0"],"SA":["966","1\\\\d{7,8}|(?:[2-467]|92)\\\\d{7}|5\\\\d{8}|8\\\\d{9}",[["([1-467])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-467]"]],["(1\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[1-467]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["(92\\\\d{2})(\\\\d{5})","$1 $2",["92"],"$1"],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"],"$1"],["(811)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["811"]]],"0","0$1"],"SB":["677","[1-9]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[7-9]"]]]],"SC":["248","[24689]\\\\d{5,6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[246]"]]]],"SD":["249","[19]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3"]],"0","0$1"],"SE":["46","[1-35-9]\\\\d{5,11}|4\\\\d{6,8}",[["(8)(\\\\d{2,3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3 $4",["8"],null,null,"$1 $2 $3 $4"],["([1-69]\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"],null,null,"$1 $2 $3 $4"],["([1-469]\\\\d)(\\\\d{3})(\\\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90"],null,null,"$1 $2 $3"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3"],["(7\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["7"],null,null,"$1 $2 $3 $4"],["(77)(\\\\d{2})(\\\\d{2})","$1-$2$3",["77"],null,null,"$1 $2 $3"],["(20)(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["20"],null,null,"$1 $2 $3"],["(9[034]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1-$2 $3 $4",["9[034]"],null,null,"$1 $2 $3 $4"],["(9[034]\\\\d)(\\\\d{4})","$1-$2",["9[034]"],null,null,"$1 $2"],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4 $5",["25[245]|67[3-6]"],null,null,"$1 $2 $3 $4 $5"]],"0","0$1"],"SG":["65","[36]\\\\d{7}|[17-9]\\\\d{7,10}",[["([3689]\\\\d{3})(\\\\d{4})","$1 $2",["[369]|8[1-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[89]0","1[89]00"]],["(7000)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["700","7000"]],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"]]]],"SH":["290","[256]\\\\d{4}|8\\\\d{3}",[],null,null,null,null,null,null,["2(?:[0-57-9]\\\\d|6[4-9])\\\\d{2}","[56]\\\\d{4}",null,null,null,null,null,null,"262\\\\d{2}"]],"SI":["386","[1-7]\\\\d{6,7}|[89]\\\\d{4,7}",[["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[12]|[34][24-8]|5[2-8]|7[3-8]"],"(0$1)"],["([3-7]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"]],["([89][09])(\\\\d{3,6})","$1 $2",["[89][09]"]],["([58]\\\\d{2})(\\\\d{5})","$1 $2",["59|8[1-3]"]]],"0","0$1"],"SJ":["47","0\\\\d{4}|[45789]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["79\\\\d{6}","(?:4[015-8]|5[89]|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"SK":["421","(?:[2-68]\\\\d{5,8}|9\\\\d{6,8})",[["(2)(1[67])(\\\\d{3,4})","$1 $2 $3",["21[67]"]],["([3-5]\\\\d)(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["[3-5]"]],["(2)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1/$2 $3 $4",["2"]],["([3-5]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1/$2 $3 $4",["[3-5]"]],["([689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[689]"]],["(9090)(\\\\d{3})","$1 $2",["909","9090"]]],"0","0$1"],"SL":["232","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]],"0","(0$1)"],"SM":["378","[05-7]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(0549)(\\\\d{6})","$1 $2",["054","0549"],null,null,"($1) $2"],["(\\\\d{6})","0549 $1",["[89]"],null,null,"(0549) $1"]],null,null,"([89]\\\\d{5})","0549$1"],"SN":["221","[3789]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[379]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"]]]],"SO":["252","[1-9]\\\\d{5,8}",[["(\\\\d{6})","$1",["[134]"]],["(\\\\d)(\\\\d{6})","$1 $2",["[13-5]|2[0-79]"]],["(\\\\d)(\\\\d{7})","$1 $2",["24|[67]"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["8[125]"]],["(\\\\d{2})(\\\\d{5,7})","$1 $2",["15|28|6[1-35-9]|799|9[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3[59]|4[89]|6[24-6]|79|8[08]|90"]]],"0"],"SR":["597","[2-8]\\\\d{5,6}",[["(\\\\d{3})(\\\\d{3})","$1-$2",["[2-4]|5[2-58]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2-$3",["56"]],["(\\\\d{3})(\\\\d{4})","$1-$2",["[6-8]"]]]],"SS":["211","[19]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",null,"0$1"]],"0"],"ST":["239","[29]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"SV":["503","[267]\\\\d{7}|[89]\\\\d{6}(?:\\\\d{4})?",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[267]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[89]"]]]],"SX":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"721"],"SY":["963","[1-59]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-5]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]]],"0","0$1",null,null,true],"SZ":["268","[027]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[027]"]]]],"TA":["290","8\\\\d{3}",[],null,null,null,null,null,null,["8\\\\d{3}"]],"TC":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"649"],"TD":["235","[2679]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"TG":["228","[279]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[279]"]]]],"TH":["66","1\\\\d{8,9}|[2-9]\\\\d{7,8}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([13-9]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["14|[3-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"],"$1"]],"0","0$1"],"TJ":["992","[3-57-9]\\\\d{8}",[["([349]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["([457-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[148]|[578]|9(?:[0235-9]|1[59])"]],["(331700)(\\\\d)(\\\\d{2})","$1 $2 $3",["331","3317","33170","331700"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1 $2 $3",["3[1-5]","3(?:[1245]|3(?:[02-9]|1[0-589]))"]]],"8",null,null,null,true],"TK":["690","[2-47]\\\\d{3,6}"],"TL":["670","[2-489]\\\\d{6}|7\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-489]|70"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["7[3-8]"]]]],"TM":["993","[1-6]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["12"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["6"],"8 $1"],["(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["13|[2-5]"]]],"8","(8 $1)"],"TN":["216","[2-57-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"TO":["676","[02-8]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{3})","$1-$2",["[1-6]|7[0-4]|8[05]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["7[5-9]|8[47-9]"]],["(\\\\d{4})(\\\\d{3})","$1 $2",["0"]]]],"TR":["90","[2-589]\\\\d{9}|444\\\\d{4}",[["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4(?:[0-35-9]|4[0-35-9])"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5[02-69]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["51|[89]"],"0$1"],["(444)(\\\\d{1})(\\\\d{3})","$1 $2 $3",["444"]]],"0",null,null,null,true],"TT":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"868"],"TV":["688","[279]\\\\d{4,6}"],"TW":["886","2\\\\d{6,8}|[3-689]\\\\d{7,8}|7\\\\d{7,9}",[["(20)(\\\\d)(\\\\d{4})","$1 $2 $3",["202"]],["([258]0)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["20[013-9]|50[0-46-9]|80[0-79]"]],["([2-8])(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["[25][2-8]|[346]|[78][1-9]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]],["(70)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["70"]]],"0","0$1"],"TZ":["255","\\\\d{9}",[["([24]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[24]"]],["([67]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[67]"]],["([89]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[89]"]]],"0","0$1"],"UA":["380","[3-9]\\\\d{8}",[["([3-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[38]9|4(?:[45][0-5]|87)|5(?:0|[67][37])|6[36-8]|7|9[1-9]","[38]9|4(?:[45][0-5]|87)|5(?:0|6(?:3[14-7]|7)|7[37])|6[36-8]|7|9[1-9]"]],["([3-689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["(?:3[1-8]|4[136-8])2|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90","3(?:[1-46-8]2[013-9]|52)|4(?:[1378]2|62[013-9])|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90"]],["([3-6]\\\\d{3})(\\\\d{5})","$1 $2",["3(?:[1-46-8]|5[013-9])|4(?:[137][013-9]|[45][6-9]|6|8[4-6])|5(?:[1245][013-9]|3|6[0135689]|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])","3(?:[1-46-8](?:[013-9]|22)|5[013-9])|4(?:[137][013-9]|[45][6-9]|6(?:[013-9]|22)|8[4-6])|5(?:[1245][013-9]|3|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])"]]],"0","0$1"],"UG":["256","\\\\d{9}",[["(\\\\d{3})(\\\\d{6})","$1 $2",["20[0-8]|4(?:6[45]|[7-9])|[7-9]","20(?:[013-8]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["3|4(?:[1-5]|6[0-36-9])"]],["(2024)(\\\\d{5})","$1 $2",["202","2024"]]],"0","0$1"],"US":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,true,null,["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[0-24679]|4[67]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[16]|5[017]|6[0-279]|78|8[012])|7(?:0[1-46-8]|1[02-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-258]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[014678]|4[0179]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"UY":["598","[2489]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]0"],"0$1"]],"0"],"UZ":["998","[679]\\\\d{8}",[["([679]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[679]"]]],"8","8 $1"],"VA":["39","(?:0(?:878\\\\d{5}|6698\\\\d{5})|[1589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9}))",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["06698\\\\d{5}","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"VC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"784"],"VE":["58","[24589]\\\\d{9}",[["(\\\\d{3})(\\\\d{7})","$1-$2"]],"0","0$1"],"VG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"284"],"VI":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"340"],"VN":["84","1\\\\d{6,9}|2\\\\d{9}|6\\\\d{6,7}|7\\\\d{6}|8\\\\d{6,8}|9\\\\d{8}",[["([17]99)(\\\\d{4})","$1 $2",["[17]99"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[48]"]],["(80)(\\\\d{5})","$1 $2",["80"]],["(69\\\\d)(\\\\d{4,5})","$1 $2",["69"]],["(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3",["2[0-35-79]"]],["([89]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8(?:8|9[89])|9"]],["(1[2689]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[26]|8[68]|99)"]],["(86[89])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[89]"]],["(1[89]00)(\\\\d{4,6})","$1 $2",["1[89]0","1[89]00"],"$1"]],"0","0$1",null,null,true],"VU":["678","[2-57-9]\\\\d{4,6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[579]"]]]],"WF":["681","[4-8]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"WS":["685","[2-8]\\\\d{4,6}",[["(8\\\\d{2})(\\\\d{3,4})","$1 $2",["8"]],["(7\\\\d)(\\\\d{5})","$1 $2",["7"]],["(\\\\d{5})","$1",["[2-6]"]]]],"YE":["967","[1-7]\\\\d{6,8}",[["([1-7])(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7[0137]"]]],"0","0$1"],"YT":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0",null,null,null,null,"269|63"],"ZA":["27","[1-79]\\\\d{8}|8\\\\d{4,8}",[["(860)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["860"]],["(\\\\d{2})(\\\\d{3,4})","$1 $2",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-79]|8(?:[0-57]|6[1-9])"]]],"0","0$1"],"ZM":["260","[289]\\\\d{8}",[["(\\\\d{2})(\\\\d{4})","$1 $2",null,"$1"],["([1-8])(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[1-8]"],"$1"],["([29]\\\\d)(\\\\d{7})","$1 $2",["[29]"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]]],"0","0$1"],"ZW":["263","2(?:[0-57-9]\\\\d{3,8}|6(?:[14]\\\\d{7}|\\\\d{4}))|[13-69]\\\\d{4,9}|7\\\\d{8}|8[06]\\\\d{5,8}",[["([49])(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["4|9[2-9]"]],["(7\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]],["(86\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[24]"]],["([2356]\\\\d{2})(\\\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8|[78])|3(?:[09]8|17|3[78]|7[1569]|8[37])|5[15][78]|6(?:[29]8|37|[68][78]|75)"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|31|[56][14]|7[35]|84)|329"]],["([1-356]\\\\d)(\\\\d{3,5})","$1 $2",["1[3-9]|2[02569]|3[0-69]|5[05689]|6"]],["([235]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[23]9|54"]],["([25]\\\\d{3})(\\\\d{3,5})","$1 $2",["(?:25|54)8","258[23]|5483"]],["(8\\\\d{3})(\\\\d{6})","$1 $2",["86"]],["(80\\\\d)(\\\\d{4})","$1 $2",["80"]]],"0","0$1"],"001":["979","\\\\d{9}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3"]]]}}');var e=f(33),I=f(4560),O=f(6378),A=f.n(O);function R(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",ae=arguments[1];"string"==typeof ae&&(ae="^(?:"+ae+")$");var ue=Q.match(ae);return null!==ue&&ue[0].length===Q.length}function b(Q){return Q[0]}function D(Q){return Q[1]}function F(Q){return Q[2]||[]}function te(Q){return Q[8]}function fe(Q){return Q[0]}function se(Q){return Q[1]}function Te(Q){return Q[2]||[]}function Ge(Q,ae){return Q[3]||function z(Q){return Q[4]}(ae)}function rt(Q,ae){return Q[4]||function X(Q){return Q[7]}(ae)}function bt(Q){return"$1"!==Q&&/\d/.test(Q.replace("$1",""))}function at(Q){return Q[5]||se(Q)}function Zt(Q,ae){return ae.countries[ae.country_phone_code_to_countries[Q][0]]}function It(Q){return Q[9]}function ot(Q,ae){return It(Q)?It(Q)[ae]:void 0}function st(Q){return ot(Q,1)}var _r={formatExtension:function(ae,ue){return ae+" ext. "+ue}};function vr(Q,ae,ue,ge,de){var Ae=function Yn(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",ae=arguments[1],ue=arguments[2],ge=arguments[3],de=arguments[4],Ae=void 0,Se=void 0,we=void 0,We=void 0;if("string"==typeof Q)if("string"==typeof ue)Ae={phone:Q,country:ae},Se=ue,de?(we=ge,We=de):We=ge;else{if(Ae={phone:Q},"string"!=typeof ae)throw new Error("Format type argument not passed for `format()`");Se=ae,ge?(we=ue,We=ge):We=ue}else Ae=Q,Se=ae,ge?(we=ue,We=ge):We=ue;if(!We)throw new Error("Metadata is required");switch(Se){case"International":case"E.164":case"International_plaintext":case"National":case"RFC3966":break;default:throw new Error('Unknown format type argument passed to "format()": "'+Se+'"')}return{input:Ae,format_type:Se,options:we=we?(0,e.Z)({},_r,we):_r,metadata:We}}(Q,ae,ue,ge,de),Se=Ae.input,we=Ae.format_type,We=Ae.options,Ct=Ae.metadata,Ot=void 0;Se.country&&(Ot=Ct.countries[Se.country]);var an=Zn(Se.phone,Ct),Qt=an.country_phone_code,Xn=an.number;if(Qt){if(Se.country&&Ot&&Qt!==b(Ot))return Se.phone;Ot=Zt(Qt,Ct)}if(!Ot)return Se.phone;switch(we){case"International":if(!Xn)return"+"+b(Ot);var Ar=Ln(Xn,"International",!1,Ot),qn="+"+b(Ot)+" "+Ar;return Se.ext||0===Se.ext?We.formatExtension(qn,Se.ext):qn;case"E.164":case"International_plaintext":return"+"+b(Ot)+Se.phone;case"RFC3966":return"+"+b(Ot)+Se.phone+(Se.ext||0===Se.ext?";ext="+Se.ext:"");case"National":if(!Xn)return"";var Xt=Ln(Xn,"National",!1,Ot);return Se.ext||0===Se.ext?We.formatExtension(Xt,Se.ext):Xt}}var Mr=/(\$\d)/;function Dt(Q,ae,ue,ge,de){var Ae=new RegExp(fe(ae)),Se=Ge(ae,de),we=!Se||Se&&rt(ae,de)&&!ge;if(!ue&&!we)return Q.replace(Ae,se(ae).replace(Mr,Se));var We=Q.replace(Ae,ue?at(ae):se(ae));return ue?Tt(We):We}function Ln(Q,ae,ue,ge){var de=function dn(Q,ae){var ue=!0,ge=!1,de=void 0;try{for(var Se,Ae=A()(Q);!(ue=(Se=Ae.next()).done);ue=!0){var we=Se.value;if(Te(we).length>0){var We=Te(we)[Te(we).length-1];if(0!==ae.search(We))continue}if(R(ae,new RegExp(fe(we))))return we}}catch(Ct){ge=!0,de=Ct}finally{try{!ue&&Ae.return&&Ae.return()}finally{if(ge)throw de}}}(F(ge),Q);return de?Dt(Q,de,"International"===ae,ue,ge):Q}function Tt(Q){return Q.replace(new RegExp("["+wt+"]+","g")," ").trim()}function tr(Q,ae,ue){var ge=Ht(Q,ae,ue),de=ge.input;if(de&&de.country){var Se=de.phone,we=ge.metadata.countries[de.country];if(zt(Se,D(we))){if(zt(Se,function Je(Q){return ot(Q,3)}(we)))return"PREMIUM_RATE";if(zt(Se,function ht(Q){return ot(Q,2)}(we)))return"TOLL_FREE";if(zt(Se,function Ft(Q){return ot(Q,9)}(we)))return"SHARED_COST";if(zt(Se,function Cn(Q){return ot(Q,8)}(we)))return"VOIP";if(zt(Se,function lt(Q){return ot(Q,4)}(we)))return"PERSONAL_NUMBER";if(zt(Se,function qt(Q){return ot(Q,7)}(we)))return"PAGER";if(zt(Se,function cn(Q){return ot(Q,6)}(we)))return"UAN";if(zt(Se,function Re(Q){return ot(Q,5)}(we)))return"VOICEMAIL";if(zt(Se,function it(Q){return ot(Q,0)}(we)))return!st(we)||zt(Se,st(we))?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";if(zt(Se,st(we)))return"MOBILE"}}}function zt(Q,ae){return R(Q,ae)}function Ht(Q,ae,ue){var ge=void 0,de=void 0;if("number"==typeof Q&&(Q=String(Q)),"string"==typeof Q?"string"==typeof ae||void 0===ae?(de=ue,Jt(Q)&&(ge=tt(Q,ae,de))):(de=ae,Jt(Q)&&(ge=tt(Q,de))):(Q&&Q.phone&&Jt(Q.phone)&&(ge=Q),de=ae),!de||!de.countries)throw new Error("Metadata is required");return{input:ge,metadata:de}}var pn="0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9",wt="-\u2010-\u2015\u2212\u30fc\uff0d\uff0f/\uff0e. \xa0\xad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d\\[\\]~\u2053\u223c\uff5e",In="(["+pn+"]{1,7})",Ue=";ext="+In+"|[ \xa0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|[;,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \xa0\\t,-]*"+In+"#?|[- ]+(["+pn+"]{1,5})#",Qe=new RegExp("(?:"+Ue+")$","i"),gt=new RegExp("^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]{0,1}(?:["+wt+"]*["+pn+"]){3,}["+wt+pn+"]*(?:"+Ue+")?$","i"),yr=new RegExp("[+\uff0b"+pn+"]"),En=new RegExp("[^"+pn+"]+$"),Bn=new RegExp("^[+\uff0b]+"),je={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},Tn={country:{}};function tt(Q,ae,ue){var ge=function $r(Q,ae,ue){var ge=void 0,de=void 0,Ae=void 0;if("number"==typeof Q&&(Q=String(Q)),"string"==typeof Q&&(ge=Q),"string"==typeof ae?(de={country:{restrict:ae}},Ae=ue):ue?(de=ae,Ae=ue):Ae=ae,!Ae||!Ae.countries)throw new Error("Metadata is required");return{text:ge,options:de=de?(0,e.Z)({},Tn,de):Tn,metadata:Ae}}(Q,ae,ue),de=ge.text,Ae=ge.options,Se=ge.metadata;if(Ae.country.default&&!Se.countries[Ae.country.default])throw new Error("Unknown country code: "+Ae.country.default);if(Ae.country.restrict&&!Se.countries[Ae.country.restrict])throw new Error("Unknown country code: "+Ae.country.restrict);var we=void 0,We=void 0;if(de&&0===de.indexOf("tel:")){var Ct=!0,Ot=!1,an=void 0;try{for(var Xn,Qt=A()(de.split(";"));!(Ct=(Xn=Qt.next()).done);Ct=!0){var qn=Xn.value.split(":"),Xt=(0,I.Z)(qn,2),jr=Xt[1];switch(Xt[0]){case"tel":we=jr;break;case"ext":We=jr;break;case"phone-context":"+"===jr[0]&&(we=jr+we)}}}catch(Wr){Ot=!0,an=Wr}finally{try{!Ct&&Qt.return&&Qt.return()}finally{if(Ot)throw an}}}else we=hn(de);if(!Jt(we))return{};var Ur=function gi(Q){var ae=Q.search(Qe);if(ae<0)return{};var ue=Q.slice(0,ae);if(!Jt(ue))return{};for(var ge=Q.match(Qe),de=1;de0)return{number:ue,extension:ge[de]};de++}}(we);Ur.extension&&(we=Ur.number,We=Ur.extension);var zi=Zn(we,Se),Or=zi.country_phone_code,Pr=zi.number;if(!Pr)return{};var sr=void 0,Hr=void 0,De=!1;if(Or){if(De=!0,Ae.country.restrict&&Or!==b(Se.countries[Ae.country.restrict]))return{};Hr=Zt(Or,Se)}else(Ae.country.restrict||Ae.country.default)&&(Hr=Se.countries[sr=Ae.country.restrict||Ae.country.default],Pr=Cr(we));if(!Hr)return{};var ln=Pr;if(De||(ln=dr(Pr,Hr)),!sr){if(!(sr=nr(Or,ln,Se)))return{};Hr=Se.countries[sr]}if(ln.length>17)return{};if(!R(ln,new RegExp(D(Hr))))return{};var Mi={country:sr,phone:ln};return We&&(Mi.ext=We),Mi}function Cr(Q){return function jn(Q,ae){var ue="",ge=!0,de=!1,Ae=void 0;try{for(var we,Se=A()(Q);!(ge=(we=Se.next()).done);ge=!0){var Ct=ae[we.value.toUpperCase()];void 0!==Ct&&(ue+=Ct)}}catch(Ot){de=!0,Ae=Ot}finally{try{!ge&&Se.return&&Se.return()}finally{if(de)throw Ae}}return ue}(Q,je)}function Jt(Q){return Q.length>=2&&R(Q,gt)}function hn(Q){if(!Q||Q.length>250)return"";var ae=Q.search(yr);return ae<0?"":Q.slice(ae).replace(En,"")}function br(Q){if(!Q)return"";var ae=Bn.test(Q);return Q=Cr(Q),ae?"+"+Q:Q}function Zn(Q,ae){if(!(Q=br(Q)))return{};if("+"!==Q[0])return{number:Q};if("0"===(Q=Q.slice(1))[0])return{};for(var ue=1;ue<=3&&ue<=Q.length;){var ge=Q.slice(0,ue);if(ae.country_phone_code_to_countries[ge])return{country_phone_code:ge,number:Q.slice(ue)};ue++}return{}}function dr(Q,ae){var ue=function G(Q){var ae=Q[5];return ae||(ae=function U(Q){return Q[3]}(Q)),ae}(ae);if(!Q||!ue)return Q;var ge=new RegExp("^(?:"+ue+")"),de=ge.exec(Q);if(!de)return Q;var Ae,Se=de[de.length-1],we=function Y(Q){return Q[6]}(ae);Ae=we&&Se?Q.replace(ge,we):Q.slice(de[0].length);var We=new RegExp(D(ae));return R(Q,We)&&!R(Ae,We)?Q:Ae}function nr(Q,ae,ue){var ge=ue.country_phone_code_to_countries[Q];if(1===ge.length)return ge[0];var de=!0,Ae=!1,Se=void 0;try{for(var We,we=A()(ge);!(de=(We=we.next()).done);de=!0){var Ct=We.value,Ot=ue.countries[Ct];if(te(Ot)){if(ae&&0===ae.search(te(Ot)))return Ct}else if(tr({phone:ae,country:Ct},ue))return Ct}}catch(an){Ae=!0,Se=an}finally{try{!de&&we.return&&we.return()}finally{if(Ae)throw Se}}}function he(Q,ae,ue){var ge=Ht(Q,ae,ue),de=ge.input,Ae=ge.metadata;return!(!de||!de.country||It(Ae.countries[de.country])&&!tr(de,Ae))}var oe=f(884),re=f(9939),Ee=new RegExp("9","g"),$e=Yt("9",15),Fe="x",Xe=new RegExp(Fe),Ye=new RegExp(Fe,"g"),St=/\[([^\[\]])*\]/g,sn=/\d(?=[^,}][^,}])/g,rr=new RegExp("^["+wt+"]*(\\$\\d["+wt+"]*)+$"),fr=new RegExp("^[+\uff0b]{0,1}["+wt+pn+"]*$","i");const Me=function(){function Q(ae,ue){if((0,oe.Z)(this,Q),!ue||!ue.countries)throw new Error("Metadata is required");ae&&ue.countries[ae]&&(this.default_country=ae),this.metadata=ue,this.reset()}return(0,re.Z)(Q,[{key:"input",value:function(ue){var ge=hn(ue);return ge||ue&&ue.indexOf("+")>=0&&(ge="+"),R(ge,fr)?this.process_input(br(ge)):this.current_output}},{key:"process_input",value:function(ue){if("+"===ue[0]&&(this.parsed_input||(this.parsed_input+="+",this.reset_countriness()),ue=ue.slice(1)),this.parsed_input+=ue,this.national_number+=ue,this.is_international())if(this.country_phone_code)this.country||this.determine_the_country();else{if(!this.extract_country_phone_code())return this.parsed_input;this.initialize_phone_number_formats_for_this_country_phone_code(),this.reset_format(),this.determine_the_country()}else{var ge=this.national_prefix;this.national_number=this.national_prefix+this.national_number,this.extract_national_prefix(),this.national_prefix!==ge&&(this.matching_formats=this.available_formats,this.reset_format())}if(!this.should_format())return this.format_as_non_formatted_number();this.match_formats_by_leading_digits();var de=this.format_national_phone_number(ue);return de?this.full_phone_number(de):this.parsed_input}},{key:"format_as_non_formatted_number",value:function(){return this.is_international()&&this.country_phone_code?this.national_number?(this.template=Fe+Yt(Fe,this.country_phone_code.length)+" "+Yt(Fe,this.national_number.length),"+"+this.country_phone_code+" "+this.national_number):"+"+this.country_phone_code:this.parsed_input}},{key:"format_national_phone_number",value:function(ue){var ge=void 0;return this.chosen_format&&(ge=this.format_next_national_number_digits(ue)),this.attempt_to_format_complete_phone_number()||(this.choose_another_format()?this.reformat_national_number():ge)}},{key:"reset",value:function(){return this.parsed_input="",this.current_output="",this.national_prefix="",this.national_number="",this.reset_countriness(),this.reset_format(),this}},{key:"reset_country",value:function(){this.country=this.default_country&&!this.is_international()?this.default_country:void 0}},{key:"reset_countriness",value:function(){this.reset_country(),this.default_country&&!this.is_international()?(this.country_metadata=this.metadata.countries[this.default_country],this.country_phone_code=b(this.country_metadata),this.initialize_phone_number_formats_for_this_country_phone_code()):(this.country_metadata=void 0,this.country_phone_code=void 0,this.available_formats=[],this.matching_formats=this.available_formats)}},{key:"reset_format",value:function(){this.chosen_format=void 0,this.template=void 0,this.partially_populated_template=void 0,this.last_match_position=-1}},{key:"reformat_national_number",value:function(){return this.format_next_national_number_digits(this.national_number)}},{key:"initialize_phone_number_formats_for_this_country_phone_code",value:function(){this.available_formats=F(this.country_metadata).filter(function(ue){return rr.test(at(ue))}),this.matching_formats=this.available_formats}},{key:"match_formats_by_leading_digits",value:function(){var ue=this.national_number,ge=ue.length-3;ge<0&&(ge=0),this.matching_formats=this.matching_formats.filter(function(de){var Ae=Te(de).length;if(0===Ae)return!0;var Se=Math.min(ge,Ae-1),we=Te(de)[Se];return new RegExp("^("+we+")").test(ue)}),this.chosen_format&&-1===this.matching_formats.indexOf(this.chosen_format)&&this.reset_format()}},{key:"should_format",value:function(){return this.national_number>=3}},{key:"attempt_to_format_complete_phone_number",value:function(){var ue=!0,ge=!1,de=void 0;try{for(var Se,Ae=A()(this.matching_formats);!(ue=(Se=Ae.next()).done);ue=!0){var we=Se.value;if(new RegExp("^(?:"+fe(we)+")$").test(this.national_number)&&this.validate_format(we)){this.reset_format(),this.chosen_format=we;var Ct=Dt(this.national_number,we,this.is_international(),this.national_prefix.length>0,this.country_metadata);if(this.create_formatting_template(we))this.reformat_national_number();else{var Ot=this.full_phone_number(Ct);this.template=Ot.replace(/[\d\+]/g,Fe),this.partially_populated_template=Ot}return Ct}}}catch(an){ge=!0,de=an}finally{try{!ue&&Ae.return&&Ae.return()}finally{if(ge)throw de}}}},{key:"full_phone_number",value:function(ue){return this.is_international()?"+"+this.country_phone_code+" "+ue:ue}},{key:"extract_country_phone_code",value:function(){if(this.national_number){var ue=Zn(this.parsed_input,this.metadata),ge=ue.country_phone_code,de=ue.number;if(ge)return this.country_phone_code=ge,this.national_number=de,this.country_metadata=Zt(ge,this.metadata)}}},{key:"extract_national_prefix",value:function(){if(this.national_prefix="",this.country_metadata){var ue=dr(this.national_number,this.country_metadata);return ue!==this.national_number&&(this.national_prefix=this.national_number.slice(0,this.national_number.length-ue.length),this.national_number=ue),this.national_prefix}}},{key:"choose_another_format",value:function(){var ue=!0,ge=!1,de=void 0;try{for(var Se,Ae=A()(this.matching_formats);!(ue=(Se=Ae.next()).done);ue=!0){var we=Se.value;if(this.chosen_format===we)return;if(this.validate_format(we)&&this.create_formatting_template(we))return this.chosen_format=we,this.last_match_position=-1,!0}}catch(We){ge=!0,de=We}finally{try{!ue&&Ae.return&&Ae.return()}finally{if(ge)throw de}}this.reset_country(),this.reset_format()}},{key:"validate_format",value:function(ue){if(this.is_international()||this.national_prefix||!function Rt(Q,ae){var ue=Ge(Q,ae);return ue&&bt(ue)&&!rt(Q,ae)}(ue,this.country_metadata))return!0}},{key:"create_formatting_template",value:function(ue){if(!(fe(ue).indexOf("|")>=0)){var ge=this.get_template_for_phone_number_format_pattern(ue);if(ge)return this.partially_populated_template=ge,this.template=this.is_international()?Fe+Yt(Fe,this.country_phone_code.length)+" "+ge:ge.replace(/\d/g,Fe),this.template}}},{key:"get_template_for_phone_number_format_pattern",value:function(ue){var ge=Ge(ue,this.country_metadata),de=fe(ue).replace(St,"\\d").replace(sn,"\\d"),Ae=$e.match(de)[0];if(!(this.national_number.length>Ae.length)){var Se=this.get_format_format(ue,ge),we=new RegExp("^"+de+"$"),We=this.national_number.replace(/\d/g,"9");return we.test(We)&&(Ae=We),Ae.replace(new RegExp(de),Se).replace(Ee,Fe)}}},{key:"format_next_national_number_digits",value:function(ue){var ge=!0,de=!1,Ae=void 0;try{for(var we,Se=A()(ue);!(ge=(we=Se.next()).done);ge=!0){var We=we.value;if(-1===this.partially_populated_template.slice(this.last_match_position+1).search(Xe))return this.chosen_format=void 0,this.template=void 0,void(this.partially_populated_template=void 0);this.last_match_position=this.partially_populated_template.search(Xe),this.partially_populated_template=this.partially_populated_template.replace(Xe,We)}}catch(Ct){de=!0,Ae=Ct}finally{try{!ge&&Se.return&&Se.return()}finally{if(de)throw Ae}}return function et(Q,ae){for(var ue=Q.slice(0,ae),Ae=vt("(",ue)-vt(")",ue);Ae>0&&ae1;)1&ae&&(ue+=Q),ae>>=1,Q+=Q;return ue+Q}function Jn(){var Q=Array.prototype.slice.call(arguments);return Q.push(p),tt.apply(this,Q)}function jt(){var Q=Array.prototype.slice.call(arguments);return Q.push(p),vr.apply(this,Q)}function An(){var Q=Array.prototype.slice.call(arguments);return Q.push(p),tr.apply(this,Q)}function mt(){return An.apply(this,arguments)}function yt(){var Q=Array.prototype.slice.call(arguments);return Q.push(p),he.apply(this,Q)}function Dn(){return yt.apply(this,arguments)}function Ke(Q){Me.call(this,Q,p)}function Un(Q){Me.call(this,Q,p)}function on(Q){Me.call(this,Q,p)}function ir(Q){return On(Q,p)}function On(Q,ae){if(!ae.countries[Q])throw new Error('Unknown country: "'+Q+'"');return b(ae.countries[Q])}(Ke.prototype=Object.create(Me.prototype,{})).constructor=Ke,(Un.prototype=Object.create(Me.prototype,{})).constructor=Un,(on.prototype=Object.create(Me.prototype,{})).constructor=on},5575:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(1203),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.base64(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","base64","","formControlName",""],["","base64","","formControl",""],["","base64","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.Base64Validator=R},1203:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(5575)),p(f(8035))},8035:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.base64=function(I){return e.isPresent(p.Validators.required(I))||/^(?:[A-Z0-9+\/]{4})*(?:[A-Z0-9+\/]{2}==|[A-Z0-9+\/]{3}=|[A-Z0-9+\/]{4})$/i.test(I.value)?null:{base64:!0}}},4201:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(1559),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.creditCard(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","creditCard","","formControlName",""],["","creditCard","","formControl",""],["","creditCard","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.CreditCardValidator=R},1559:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(4201)),p(f(5459))},5459:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.creditCard=function(I){if(e.isPresent(p.Validators.required(I)))return null;var A=I.value.replace(/[^0-9]+/g,"");if(!/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/.test(A))return{creditCard:!0};for(var b,D,F,R=0,U=A.length-1;U>=0;U--)b=A.substring(U,U+1),D=parseInt(b,10),R+=F&&(D*=2)>=10?D%10+1:D,F=!F;return Boolean(R%10==0&&A)?null:{creditCard:!0}}},8518:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(9380),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.dateISO(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","dateISO","","formControlName",""],["","dateISO","","formControl",""],["","dateISO","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.DateISOValidator=R},9380:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(8518)),p(f(3780))},3780:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.dateISO=function(I){return e.isPresent(p.Validators.required(I))||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(I.value)?null:{dateISO:!0}}},5842:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(8626),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.date(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","date","","formControlName",""],["","date","","formControl",""],["","date","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.DateValidator=R},8626:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(5842)),p(f(6593))},6593:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.date=function(I){return e.isPresent(p.Validators.required(I))||e.isDate(I.value)?null:{date:!0}}},5513:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(7273),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.digits(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","digits","","formControlName",""],["","digits","","formControl",""],["","digits","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.DigitsValidator=R},7273:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(5513)),p(f(2971))},2971:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.digits=function(I){return e.isPresent(p.Validators.required(I))||/^\d+$/.test(I.value)?null:{digits:!0}}},8550:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(5410),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.email(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.EmailValidator=R},5410:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(8550)),p(f(6161))},6161:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.email=function(I){return e.isPresent(p.Validators.required(I))||/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(I.value)?null:{email:!0}}},564:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(843),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.equalTo(this.equalTo)},b.prototype.validate=function(D){return this.validator(D)},b.ctorParameters=function(){return[]},b.propDecorators={equalTo:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","equalTo","","formControlName",""],["","equalTo","","formControl",""],["","equalTo","","ngModel",""]],inputs:{equalTo:"equalTo"},features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.EqualToValidator=R},843:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(564)),p(f(1089))},1089:(H,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.equalTo=function(f){var p=!1;return function(e){return p||(p=!0,f.valueChanges.subscribe(function(){e.updateValueAndValidity()})),f.value===e.value?null:{equalTo:!0}}}},8615:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(1595),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.equal(this.equal)},b.prototype.ngOnChanges=function(D){for(var F in D)"equal"===F&&(this.validator=I.equal(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={equal:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","equal","","formControlName",""],["","equal","","formControl",""],["","equal","","ngModel",""]],inputs:{equal:"equal"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.EqualValidator=R},1595:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(8615)),p(f(8703))},8703:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.equal=function(I){return function(O){return e.isPresent(p.Validators.required(O))||I===O.value?null:{equal:!0}}}},983:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(7574),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.gte(this.gte)},b.prototype.ngOnChanges=function(D){for(var F in D)"gte"===F&&(this.validator=I.gte(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={gte:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","gte","","formControlName",""],["","gte","","formControl",""],["","gte","","ngModel",""]],inputs:{gte:"gte"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.GreaterThanEqualValidator=R},7574:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(983)),p(f(5346))},5346:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.gte=function(I){return function(O){return!e.isPresent(I)||e.isPresent(p.Validators.required(O))||+O.value>=+I?null:{gte:!0}}}},7038:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(4846),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.gt(this.gt)},b.prototype.ngOnChanges=function(D){for(var F in D)"gt"===F&&(this.validator=I.gt(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={gt:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","gt","","formControlName",""],["","gt","","formControl",""],["","gt","","ngModel",""]],inputs:{gt:"gt"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.GreaterThanValidator=R},4846:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(7038)),p(f(5146))},5146:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.gt=function(I){return function(O){return!e.isPresent(I)||e.isPresent(p.Validators.required(O))||+O.value>+I?null:{gt:!0}}}},8247:(H,w,f)=>{"use strict";f(5e3);f(1203),f(1559),f(8626),f(9380),f(7273),f(5410),f(1595),f(843),f(4846),f(7574),f(8760),f(9289),f(2493),f(6599),f(572),f(4316),f(5743),f(1133),f(470),f(3776),f(2093),f(1979),f(3555),f(9549),f(3645);var st=f(5e3),Ln=(f(5575),f(4201),f(5842),f(8518),f(5513),f(8550),f(8615),f(564),f(7038),f(983),f(2518),f(8330),f(948),f(1249)),Tt=(f(9374),f(4232)),Wt=(f(9325),f(1520),f(8058),f(9284),f(9513),f(9253),f(6269),f(6376),f(9826),function(){function At(){}return At.ctorParameters=function(){return[]},At.\u0275fac=function(cr){return new(cr||At)},At.\u0275mod=st.\u0275\u0275defineNgModule({type:At}),At.\u0275inj=st.\u0275\u0275defineInjector({}),At}());w.Wx=Wt,w.Fd=Ln.MaxValidator,w.qQ=Tt.MinValidator},2518:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(8760),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.json(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","json","","formControlName",""],["","json","","formControl",""],["","json","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.JSONValidator=R},8760:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(2518)),p(f(6969))},6969:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.json=function(I){if(e.isPresent(p.Validators.required(I)))return null;var O=I.value;try{var A=JSON.parse(O);if(Boolean(A)&&"object"==typeof A)return null}catch(R){}return{json:!0}}},948:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(2493),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.lte(this.lte)},b.prototype.ngOnChanges=function(D){for(var F in D)"lte"===F&&(this.validator=I.lte(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={lte:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","lte","","formControlName",""],["","lte","","formControl",""],["","lte","","ngModel",""]],inputs:{lte:"lte"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.LessThanEqualValidator=R},2493:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(948)),p(f(2366))},2366:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.lte=function(I){return function(O){return!e.isPresent(I)||e.isPresent(p.Validators.required(O))||+O.value<=+I?null:{lte:!0}}}},8330:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(9289),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.lt(this.lt)},b.prototype.ngOnChanges=function(D){for(var F in D)"lt"===F&&(this.validator=I.lt(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={lt:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","lt","","formControlName",""],["","lt","","formControl",""],["","lt","","ngModel",""]],inputs:{lt:"lt"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.LessThanValidator=R},9289:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(8330)),p(f(355))},355:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.lt=function(I){return function(O){return!e.isPresent(I)||e.isPresent(p.Validators.required(O))||+O.value<+I?null:{lt:!0}}}},9374:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(572),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.maxDate(this.maxDate)},b.prototype.ngOnChanges=function(D){for(var F in D)"maxDate"===F&&(this.validator=I.maxDate(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={maxDate:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","maxDate","","formControlName",""],["","maxDate","","formControl",""],["","maxDate","","ngModel",""]],inputs:{maxDate:"maxDate"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.MaxDateValidator=R},572:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(9374)),p(f(6323))},6323:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.maxDate=function(I){if(!(e.isDate(I)||I instanceof Function))throw Error("maxDate value must be or return a formatted date");return function(O){if(e.isPresent(p.Validators.required(O)))return null;var A=new Date(O.value);return e.isDate(A)?(I instanceof Function&&(I=I()),A<=new Date(I)?null:{maxDate:!0}):{maxDate:!0}}}},1249:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(6599),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.max(this.max)},b.prototype.ngOnChanges=function(D){for(var F in D)"max"===F&&(this.validator=I.max(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={max:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","max","","formControlName",""],["","max","","formControl",""],["","max","","ngModel",""]],inputs:{max:"max"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.MaxValidator=R},6599:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(1249)),p(f(3939))},3939:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.max=function(I){return function(O){if(!e.isPresent(I)||e.isPresent(p.Validators.required(O)))return null;var A=+O.value;return A<=+I?null:{actualValue:A,requiredValue:+I,max:!0}}}},9325:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(5743),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.minDate(this.minDate)},b.prototype.ngOnChanges=function(D){for(var F in D)"minDate"===F&&(this.validator=I.minDate(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={minDate:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","minDate","","formControlName",""],["","minDate","","formControl",""],["","minDate","","ngModel",""]],inputs:{minDate:"minDate"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.MinDateValidator=R},5743:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(9325)),p(f(2511))},2511:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.minDate=function(I){if(!(e.isDate(I)||I instanceof Function))throw Error("minDate value must be or return a formatted date");return function(O){if(e.isPresent(p.Validators.required(O)))return null;var A=new Date(O.value);return e.isDate(A)?(I instanceof Function&&(I=I()),A>=new Date(I)?null:{minDate:!0}):{minDate:!0}}}},4232:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(4316),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.min(this.min)},b.prototype.ngOnChanges=function(D){for(var F in D)"min"===F&&(this.validator=I.min(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={min:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","min","","formControlName",""],["","min","","formControl",""],["","min","","ngModel",""]],inputs:{min:"min"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.MinValidator=R},4316:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(4232)),p(f(6835))},6835:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.min=function(I){return function(O){if(!e.isPresent(I)||e.isPresent(p.Validators.required(O)))return null;var A=+O.value;return A>=+I?null:{actualValue:A,requiredValue:+I,min:!0}}}},8058:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(470),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.notEqualTo(this.notEqualTo)},b.prototype.validate=function(D){return this.validator(D)},b.ctorParameters=function(){return[]},b.propDecorators={notEqualTo:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","notEqualTo","","formControlName",""],["","notEqualTo","","formControl",""],["","notEqualTo","","ngModel",""]],inputs:{notEqualTo:"notEqualTo"},features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.NotEqualToValidator=R},470:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(8058)),p(f(5593))},5593:(H,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.notEqualTo=function(f){var p=!1;return function(e){return p||(p=!0,f.valueChanges.subscribe(function(){e.updateValueAndValidity()})),f.value!==e.value?null:{notEqualTo:!0}}}},1520:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(1133),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.notEqual(this.notEqual)},b.prototype.ngOnChanges=function(D){for(var F in D)"notEqual"===F&&(this.validator=I.notEqual(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={notEqual:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","notEqual","","formControlName",""],["","notEqual","","formControl",""],["","notEqual","","ngModel",""]],inputs:{notEqual:"notEqual"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.NotEqualValidator=R},1133:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(1520)),p(f(5461))},5461:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.notEqual=function(I){return function(O){return e.isPresent(p.Validators.required(O))||I!==O.value?null:{notEqual:!0}}}},9284:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(3776),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.number(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","number","","formControlName",""],["","number","","formControl",""],["","number","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.NumberValidator=R},3776:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(9284)),p(f(9074))},9074:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.number=function(I){return e.isPresent(p.Validators.required(I))||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(I.value)?null:{number:!0}}},9513:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(2093),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.phone(this.phone)},b.prototype.ngOnChanges=function(D){for(var F in D)"phone"===F&&(this.validator=I.phone(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={phone:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","phone","","formControlName",""],["","phone","","formControl",""],["","phone","","ngModel",""]],inputs:{phone:"phone"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.PhoneValidator=R},2093:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(9513)),p(f(4075))},4075:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(9524),I=f(3098);w.phone=function(O){return function(A){return I.isPresent(p.Validators.required(A))||e.isValidNumber(A.value,O)?null:{phone:!0}}}},6269:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(3555),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.rangeLength(this.rangeLength)},b.prototype.ngOnChanges=function(D){for(var F in D)"rangeLength"===F&&(this.validator=I.rangeLength(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={rangeLength:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","rangeLength","","formControlName",""],["","rangeLength","","formControl",""],["","rangeLength","","ngModel",""]],inputs:{rangeLength:"rangeLength"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.RangeLengthValidator=R},3555:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(6269)),p(f(5180))},5180:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.rangeLength=function(I){return function(O){if(!e.isPresent(I)||e.isPresent(p.Validators.required(O)))return null;var A=O.value;return A.length>=I[0]&&A.length<=I[1]?null:{rangeLength:!0}}}},9253:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(1979),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.range(this.range)},b.prototype.ngOnChanges=function(D){for(var F in D)"range"===F&&(this.validator=I.range(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={range:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","range","","formControlName",""],["","range","","formControl",""],["","range","","ngModel",""]],inputs:{range:"range"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.RangeValidator=R},1979:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(9253)),p(f(168))},168:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.range=function(I){return function(O){if(!e.isPresent(I)||e.isPresent(p.Validators.required(O)))return null;var A=+O.value;return A>=I[0]&&A<=I[1]?null:{actualValue:A,requiredValue:I,range:!0}}}},6376:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(9549),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.validate=function(D){return I.url(D)},b.ctorParameters=function(){return[]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","url","","formControlName",""],["","url","","formControl",""],["","url","","ngModel",""]],features:[O.\u0275\u0275ProvidersFeature([A])]}),b}();w.UrlValidator=R},9549:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(6376)),p(f(1594))},1594:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098);w.url=function(I){return e.isPresent(p.Validators.required(I))||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(I.value)?null:{url:!0}}},3098:(H,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isPresent=function f(e){return null!=e},w.isDate=function p(e){return!/Invalid|NaN/.test(new Date(e).toString())}},9826:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(5e3),e=f(3075),I=f(3645),O=f(5e3),A={provide:e.NG_VALIDATORS,useExisting:p.forwardRef(function(){return R}),multi:!0},R=function(){function b(){}return b.prototype.ngOnInit=function(){this.validator=I.uuid(this.uuid)},b.prototype.ngOnChanges=function(D){for(var F in D)"uuid"===F&&(this.validator=I.uuid(D[F].currentValue),this.onChange&&this.onChange())},b.prototype.validate=function(D){return this.validator(D)},b.prototype.registerOnValidatorChange=function(D){this.onChange=D},b.ctorParameters=function(){return[]},b.propDecorators={uuid:[{type:p.Input}]},b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=O.\u0275\u0275defineDirective({type:b,selectors:[["","uuid","","formControlName",""],["","uuid","","formControl",""],["","uuid","","ngModel",""]],inputs:{uuid:"uuid"},features:[O.\u0275\u0275ProvidersFeature([A]),O.\u0275\u0275NgOnChangesFeature]}),b}();w.UUIDValidator=R},3645:(H,w,f)=>{"use strict";function p(e){for(var I in e)w.hasOwnProperty(I)||(w[I]=e[I])}Object.defineProperty(w,"__esModule",{value:!0}),p(f(9826)),p(f(1496))},1496:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(3075),e=f(3098),I={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};w.uuid=function(O){return function(A){if(e.isPresent(p.Validators.required(A)))return null;var R=A.value;return new RegExp(I[O]||I.all).test(R)?null:{uuid:!0}}}},5803:(H,w,f)=>{"use strict";var e=f(6330),I=f(5032);e.Observable.prototype.finally=I._finally,e.Observable.prototype._finally=I._finally},5772:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(6330),e=f(8137);p.Observable.prototype.map=e.map},9061:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(6330),e=f(7945);p.Observable.prototype.timeout=e.timeout},5032:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(310);w._finally=function e(I){return p.finalize(I)(this)}},8137:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(310);w.map=function e(I,O){return p.map(I,O)(this)}},7945:(H,w,f)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var p=f(6330),e=f(310);w.timeout=function I(O,A){return void 0===A&&(A=p.asyncScheduler),e.timeout(O,A)(this)}},6330:(H,w,f)=>{"use strict";f.r(w),f.d(w,{ArgumentOutOfRangeError:()=>st.W,AsyncSubject:()=>D.c,BehaviorSubject:()=>R.X,ConnectableObservable:()=>e.c,EMPTY:()=>Ht.E,EmptyError:()=>ht.K,GroupedObservable:()=>I.T,NEVER:()=>Ir,Notification:()=>at.P,NotificationKind:()=>at.W,ObjectUnsubscribedError:()=>Je.N,Observable:()=>p.y,ReplaySubject:()=>b.t,Scheduler:()=>rt.b,Subject:()=>A.xQ,Subscriber:()=>bt.L,Subscription:()=>Rt.w,TimeoutError:()=>Re.W,UnsubscriptionError:()=>lt.B,VirtualAction:()=>Ge,VirtualTimeScheduler:()=>Te,animationFrame:()=>se,animationFrameScheduler:()=>fe,asap:()=>F.e,asapScheduler:()=>F.E,async:()=>U.P,asyncScheduler:()=>U.z,bindCallback:()=>ft,bindNodeCallback:()=>Dt,combineLatest:()=>Yn.aj,concat:()=>tr.z,config:()=>gi.v,defer:()=>zt.P,empty:()=>Ht.c,forkJoin:()=>$t.D,from:()=>bn.D,fromEvent:()=>He,fromEventPattern:()=>cr,generate:()=>kn,identity:()=>ot.y,iif:()=>wt,interval:()=>Et,isObservable:()=>it.b,merge:()=>Qe.T,never:()=>Tr,noop:()=>It.Z,observable:()=>O.L,of:()=>gt.of,onErrorResumeNext:()=>yr,pairs:()=>En,partition:()=>Cr,pipe:()=>Zt.z,queue:()=>z.c,queueScheduler:()=>z.N,race:()=>jn.S3,range:()=>Jt,scheduled:()=>$r.x,throwError:()=>br._,timer:()=>Zn.H,using:()=>dr,zip:()=>nr.$R});var p=f(4202),e=f(1762),I=f(4002),O=f(3821),A=f(8929),R=f(591),b=f(839),D=f(2185),F=f(8139),U=f(353),z=f(341),G=f(6686),X=f(198);const fe=new class te extends X.v{flush(oe){this.active=!0,this.scheduled=void 0;const{actions:re}=this;let ve,Ee=-1,xe=re.length;oe=oe||re.shift();do{if(ve=oe.execute(oe.state,oe.delay))break}while(++Ee0?super.requestAsyncId(oe,re,ve):(oe.actions.push(this),oe.scheduled||(oe.scheduled=requestAnimationFrame(()=>oe.flush(null))))}recycleAsyncId(oe,re,ve=0){if(null!==ve&&ve>0||null===ve&&this.delay>0)return super.recycleAsyncId(oe,re,ve);0===oe.actions.length&&(cancelAnimationFrame(re),oe.scheduled=void 0)}}),se=fe;let Te=(()=>{class he extends X.v{constructor(re=Ge,ve=Number.POSITIVE_INFINITY){super(re,()=>this.frame),this.maxFrames=ve,this.frame=0,this.index=-1}flush(){const{actions:re,maxFrames:ve}=this;let Ee,xe;for(;(xe=re[0])&&xe.delay<=ve&&(re.shift(),this.frame=xe.delay,!(Ee=xe.execute(xe.state,xe.delay))););if(Ee){for(;xe=re.shift();)xe.unsubscribe();throw Ee}}}return he.frameTimeFactor=10,he})();class Ge extends G.o{constructor(oe,re,ve=(oe.index+=1)){super(oe,re),this.scheduler=oe,this.work=re,this.index=ve,this.active=!0,this.index=oe.index=ve}schedule(oe,re=0){if(!this.id)return super.schedule(oe,re);this.active=!1;const ve=new Ge(this.scheduler,this.work);return this.add(ve),ve.schedule(oe,re)}requestAsyncId(oe,re,ve=0){this.delay=oe.frame+ve;const{actions:Ee}=oe;return Ee.push(this),Ee.sort(Ge.sortActions),!0}recycleAsyncId(oe,re,ve=0){}_execute(oe,re){if(!0===this.active)return super._execute(oe,re)}static sortActions(oe,re){return oe.delay===re.delay?oe.index===re.index?0:oe.index>re.index?1:-1:oe.delay>re.delay?1:-1}}var rt=f(2221),Rt=f(4096),bt=f(3489),at=f(9312),Zt=f(4843),It=f(7876),ot=f(5379),it=f(4715),st=f(4231),ht=f(4450),Je=f(5279),lt=f(7964),Re=f(854),cn=f(4850),qt=f(9476),Cn=f(6688),Ft=f(2866);function ft(he,oe,re){if(oe){if(!(0,Ft.K)(oe))return(...ve)=>ft(he,re)(...ve).pipe((0,cn.U)(Ee=>(0,Cn.k)(Ee)?oe(...Ee):oe(Ee)));re=oe}return function(...ve){const Ee=this;let xe;const $e={context:Ee,subject:xe,callbackFunc:he,scheduler:re};return new p.y(Fe=>{if(re)return re.schedule(_r,0,{args:ve,subscriber:Fe,params:$e});if(!xe){xe=new D.c;const Xe=(...Ye)=>{xe.next(Ye.length<=1?Ye[0]:Ye),xe.complete()};try{he.apply(Ee,[...ve,Xe])}catch(Ye){(0,qt._)(xe)?xe.error(Ye):console.warn(Ye)}}return xe.subscribe(Fe)})}}function _r(he){const{args:re,subscriber:ve,params:Ee}=he,{callbackFunc:xe,context:$e,scheduler:Fe}=Ee;let{subject:Xe}=Ee;if(!Xe){Xe=Ee.subject=new D.c;const Ye=(...St)=>{this.add(Fe.schedule(vr,0,{value:St.length<=1?St[0]:St,subject:Xe}))};try{xe.apply($e,[...re,Ye])}catch(St){Xe.error(St)}}this.add(Xe.subscribe(ve))}function vr(he){const{value:oe,subject:re}=he;re.next(oe),re.complete()}function Dt(he,oe,re){if(oe){if(!(0,Ft.K)(oe))return(...ve)=>Dt(he,re)(...ve).pipe((0,cn.U)(Ee=>(0,Cn.k)(Ee)?oe(...Ee):oe(Ee)));re=oe}return function(...ve){const Ee={subject:void 0,args:ve,callbackFunc:he,scheduler:re,context:this};return new p.y(xe=>{const{context:$e}=Ee;let{subject:Fe}=Ee;if(re)return re.schedule(Ln,0,{params:Ee,subscriber:xe,context:$e});if(!Fe){Fe=Ee.subject=new D.c;const Xe=(...Ye)=>{const St=Ye.shift();St?Fe.error(St):(Fe.next(Ye.length<=1?Ye[0]:Ye),Fe.complete())};try{he.apply($e,[...ve,Xe])}catch(Ye){(0,qt._)(Fe)?Fe.error(Ye):console.warn(Ye)}}return Fe.subscribe(xe)})}}function Ln(he){const{params:oe,subscriber:re,context:ve}=he,{callbackFunc:Ee,args:xe,scheduler:$e}=oe;let Fe=oe.subject;if(!Fe){Fe=oe.subject=new D.c;const Xe=(...Ye)=>{const St=Ye.shift();this.add(St?$e.schedule(Tt,0,{err:St,subject:Fe}):$e.schedule(dn,0,{value:Ye.length<=1?Ye[0]:Ye,subject:Fe}))};try{Ee.apply(ve,[...xe,Xe])}catch(Ye){this.add($e.schedule(Tt,0,{err:Ye,subject:Fe}))}}this.add(Fe.subscribe(re))}function dn(he){const{value:oe,subject:re}=he;re.next(oe),re.complete()}function Tt(he){const{err:oe,subject:re}=he;re.error(oe)}var Yn=f(6053),tr=f(1961),zt=f(8514),Ht=f(8896),$t=f(567),bn=f(3527),ur=f(7043);function He(he,oe,re,ve){return(0,ur.m)(re)&&(ve=re,re=void 0),ve?He(he,oe,re).pipe((0,cn.U)(Ee=>(0,Cn.k)(Ee)?ve(...Ee):ve(Ee))):new p.y(Ee=>{pn(he,oe,function xe($e){Ee.next(arguments.length>1?Array.prototype.slice.call(arguments):$e)},Ee,re)})}function pn(he,oe,re,ve,Ee){let xe;if(function Qn(he){return he&&"function"==typeof he.addEventListener&&"function"==typeof he.removeEventListener}(he)){const $e=he;he.addEventListener(oe,re,Ee),xe=()=>$e.removeEventListener(oe,re,Ee)}else if(function At(he){return he&&"function"==typeof he.on&&"function"==typeof he.off}(he)){const $e=he;he.on(oe,re),xe=()=>$e.off(oe,re)}else if(function Wt(he){return he&&"function"==typeof he.addListener&&"function"==typeof he.removeListener}(he)){const $e=he;he.addListener(oe,re),xe=()=>$e.removeListener(oe,re)}else{if(!he||!he.length)throw new TypeError("Invalid event target");for(let $e=0,Fe=he.length;$e(0,Cn.k)(ve)?re(...ve):re(ve))):new p.y(ve=>{const Ee=(...$e)=>ve.next(1===$e.length?$e[0]:$e);let xe;try{xe=he(Ee)}catch($e){return void ve.error($e)}if((0,ur.m)(oe))return()=>oe(Ee,xe)})}function kn(he,oe,re,ve,Ee){let xe,$e;return 1==arguments.length?($e=he.initialState,oe=he.condition,re=he.iterate,xe=he.resultSelector||ot.y,Ee=he.scheduler):void 0===ve||(0,Ft.K)(ve)?($e=he,xe=ot.y,Ee=ve):($e=he,xe=ve),new p.y(Fe=>{let Xe=$e;if(Ee)return Ee.schedule(rn,0,{subscriber:Fe,iterate:re,condition:oe,resultSelector:xe,state:Xe});for(;;){if(oe){let St;try{St=oe(Xe)}catch(sn){return void Fe.error(sn)}if(!St){Fe.complete();break}}let Ye;try{Ye=xe(Xe)}catch(St){return void Fe.error(St)}if(Fe.next(Ye),Fe.closed)break;try{Xe=re(Xe)}catch(St){return void Fe.error(St)}}})}function rn(he){const{subscriber:oe,condition:re}=he;if(oe.closed)return;if(he.needIterate)try{he.state=he.iterate(he.state)}catch(Ee){return void oe.error(Ee)}else he.needIterate=!0;if(re){let Ee;try{Ee=re(he.state)}catch(xe){return void oe.error(xe)}if(!Ee)return void oe.complete();if(oe.closed)return}let ve;try{ve=he.resultSelector(he.state)}catch(Ee){return void oe.error(Ee)}return oe.closed||(oe.next(ve),oe.closed)?void 0:this.schedule(he)}function wt(he,oe=Ht.E,re=Ht.E){return(0,zt.P)(()=>he()?oe:re)}var In=f(4241);function Et(he=0,oe=U.P){return(!(0,In.k)(he)||he<0)&&(he=0),(!oe||"function"!=typeof oe.schedule)&&(oe=U.P),new p.y(re=>(re.add(oe.schedule(Ue,he,{subscriber:re,counter:0,period:he})),re))}function Ue(he){const{subscriber:oe,counter:re,period:ve}=he;oe.next(re),this.schedule({subscriber:oe,counter:re+1,period:ve},ve)}var Qe=f(6787);const Ir=new p.y(It.Z);function Tr(){return Ir}var gt=f(1086);function yr(...he){if(0===he.length)return Ht.E;const[oe,...re]=he;return 1===he.length&&(0,Cn.k)(oe)?yr(...oe):new p.y(ve=>{const Ee=()=>ve.add(yr(...re).subscribe(ve));return(0,bn.D)(oe).subscribe({next(xe){ve.next(xe)},error:Ee,complete:Ee})})}function En(he,oe){return new p.y(oe?re=>{const ve=Object.keys(he),Ee=new Rt.w;return Ee.add(oe.schedule(Bn,0,{keys:ve,index:0,subscriber:re,subscription:Ee,obj:he})),Ee}:re=>{const ve=Object.keys(he);for(let Ee=0;Ee{void 0===oe&&(oe=he,he=0);let Ee=0,xe=he;if(re)return re.schedule(hn,0,{index:Ee,count:oe,start:he,subscriber:ve});for(;;){if(Ee++>=oe){ve.complete();break}if(ve.next(xe++),ve.closed)break}})}function hn(he){const{start:oe,index:re,count:ve,subscriber:Ee}=he;re>=ve?Ee.complete():(Ee.next(oe),!Ee.closed&&(he.index=re+1,he.start=oe+1,this.schedule(he)))}var br=f(1737),Zn=f(8723);function dr(he,oe){return new p.y(re=>{let ve,Ee;try{ve=he()}catch(Fe){return void re.error(Fe)}try{Ee=oe(ve)}catch(Fe){return void re.error(Fe)}const $e=(Ee?(0,bn.D)(Ee):Ht.E).subscribe(re);return()=>{$e.unsubscribe(),ve&&ve.unsubscribe()}})}var nr=f(1746),$r=f(3998),gi=f(2830)},2185:(H,w,f)=>{"use strict";f.d(w,{c:()=>I});var p=f(8929),e=f(4096);class I extends p.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(A){return this.hasError?(A.error(this.thrownError),e.w.EMPTY):this.hasCompleted&&this.hasNext?(A.next(this.value),A.complete(),e.w.EMPTY):super._subscribe(A)}next(A){this.hasCompleted||(this.value=A,this.hasNext=!0)}error(A){this.hasCompleted||super.error(A)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},591:(H,w,f)=>{"use strict";f.d(w,{X:()=>I});var p=f(8929),e=f(5279);class I extends p.xQ{constructor(A){super(),this._value=A}get value(){return this.getValue()}_subscribe(A){const R=super._subscribe(A);return R&&!R.closed&&A.next(this._value),R}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new e.N;return this._value}next(A){super.next(this._value=A)}}},9312:(H,w,f)=>{"use strict";f.d(w,{W:()=>O,P:()=>A});var p=f(8896),e=f(1086),I=f(1737),O=(()=>{return(R=O||(O={})).NEXT="N",R.ERROR="E",R.COMPLETE="C",O;var R})();class A{constructor(b,D,F){this.kind=b,this.value=D,this.error=F,this.hasValue="N"===b}observe(b){switch(this.kind){case"N":return b.next&&b.next(this.value);case"E":return b.error&&b.error(this.error);case"C":return b.complete&&b.complete()}}do(b,D,F){switch(this.kind){case"N":return b&&b(this.value);case"E":return D&&D(this.error);case"C":return F&&F()}}accept(b,D,F){return b&&"function"==typeof b.next?this.observe(b):this.do(b,D,F)}toObservable(){switch(this.kind){case"N":return(0,e.of)(this.value);case"E":return(0,I._)(this.error);case"C":return(0,p.c)()}throw new Error("unexpected notification kind value")}static createNext(b){return void 0!==b?new A("N",b):A.undefinedValueNotification}static createError(b){return new A("E",void 0,b)}static createComplete(){return A.completeNotification}}A.completeNotification=new A("C"),A.undefinedValueNotification=new A("N",void 0)},4202:(H,w,f)=>{"use strict";f.d(w,{y:()=>F});var p=f(9476),e=f(3489),I=f(7668),O=f(3292),R=f(3821),b=f(4843),D=f(2830);let F=(()=>{class z{constructor(Y){this._isScalar=!1,Y&&(this._subscribe=Y)}lift(Y){const X=new z;return X.source=this,X.operator=Y,X}subscribe(Y,X,te){const{operator:fe}=this,se=function A(z,G,Y){if(z){if(z instanceof e.L)return z;if(z[I.b])return z[I.b]()}return z||G||Y?new e.L(z,G,Y):new e.L(O.c)}(Y,X,te);if(se.add(fe?fe.call(se,this.source):this.source||D.v.useDeprecatedSynchronousErrorHandling&&!se.syncErrorThrowable?this._subscribe(se):this._trySubscribe(se)),D.v.useDeprecatedSynchronousErrorHandling&&se.syncErrorThrowable&&(se.syncErrorThrowable=!1,se.syncErrorThrown))throw se.syncErrorValue;return se}_trySubscribe(Y){try{return this._subscribe(Y)}catch(X){D.v.useDeprecatedSynchronousErrorHandling&&(Y.syncErrorThrown=!0,Y.syncErrorValue=X),(0,p._)(Y)?Y.error(X):console.warn(X)}}forEach(Y,X){return new(X=U(X))((te,fe)=>{let se;se=this.subscribe(Te=>{try{Y(Te)}catch(Ge){fe(Ge),se&&se.unsubscribe()}},fe,te)})}_subscribe(Y){const{source:X}=this;return X&&X.subscribe(Y)}[R.L](){return this}pipe(...Y){return 0===Y.length?this:(0,b.U)(Y)(this)}toPromise(Y){return new(Y=U(Y))((X,te)=>{let fe;this.subscribe(se=>fe=se,se=>te(se),()=>X(fe))})}}return z.create=G=>new z(G),z})();function U(z){if(z||(z=D.v.Promise||Promise),!z)throw new Error("no Promise impl found");return z}},3292:(H,w,f)=>{"use strict";f.d(w,{c:()=>I});var p=f(2830),e=f(2782);const I={closed:!0,next(O){},error(O){if(p.v.useDeprecatedSynchronousErrorHandling)throw O;(0,e.z)(O)},complete(){}}},826:(H,w,f)=>{"use strict";f.d(w,{L:()=>e});var p=f(3489);class e extends p.L{notifyNext(O,A,R,b,D){this.destination.next(A)}notifyError(O,A){this.destination.error(O)}notifyComplete(O){this.destination.complete()}}},839:(H,w,f)=>{"use strict";f.d(w,{t:()=>b});var p=f(8929),e=f(341),I=f(4096),O=f(7770),A=f(5279),R=f(5283);class b extends p.xQ{constructor(U=Number.POSITIVE_INFINITY,z=Number.POSITIVE_INFINITY,G){super(),this.scheduler=G,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=U<1?1:U,this._windowTime=z<1?1:z,z===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(U){if(!this.isStopped){const z=this._events;z.push(U),z.length>this._bufferSize&&z.shift()}super.next(U)}nextTimeWindow(U){this.isStopped||(this._events.push(new D(this._getNow(),U)),this._trimBufferThenGetEvents()),super.next(U)}_subscribe(U){const z=this._infiniteTimeWindow,G=z?this._events:this._trimBufferThenGetEvents(),Y=this.scheduler,X=G.length;let te;if(this.closed)throw new A.N;if(this.isStopped||this.hasError?te=I.w.EMPTY:(this.observers.push(U),te=new R.W(this,U)),Y&&U.add(U=new O.ht(U,Y)),z)for(let fe=0;fez&&(te=Math.max(te,X-z)),te>0&&Y.splice(0,te),Y}}class D{constructor(U,z){this.time=U,this.value=z}}},2221:(H,w,f)=>{"use strict";f.d(w,{b:()=>p});let p=(()=>{class e{constructor(O,A=e.now){this.SchedulerAction=O,this.now=A}schedule(O,A=0,R){return new this.SchedulerAction(this,O).schedule(R,A)}}return e.now=()=>Date.now(),e})()},8929:(H,w,f)=>{"use strict";f.d(w,{Yc:()=>b,xQ:()=>D});var p=f(4202),e=f(3489),I=f(4096),O=f(5279),A=f(5283),R=f(7668);class b extends e.L{constructor(z){super(z),this.destination=z}}let D=(()=>{class U extends p.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[R.b](){return new b(this)}lift(G){const Y=new F(this,this);return Y.operator=G,Y}next(G){if(this.closed)throw new O.N;if(!this.isStopped){const{observers:Y}=this,X=Y.length,te=Y.slice();for(let fe=0;fenew F(z,G),U})();class F extends D{constructor(z,G){super(),this.destination=z,this.source=G}next(z){const{destination:G}=this;G&&G.next&&G.next(z)}error(z){const{destination:G}=this;G&&G.error&&this.destination.error(z)}complete(){const{destination:z}=this;z&&z.complete&&this.destination.complete()}_subscribe(z){const{source:G}=this;return G?this.source.subscribe(z):I.w.EMPTY}}},5283:(H,w,f)=>{"use strict";f.d(w,{W:()=>e});var p=f(4096);class e extends p.w{constructor(O,A){super(),this.subject=O,this.subscriber=A,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const O=this.subject,A=O.observers;if(this.subject=null,!A||0===A.length||O.isStopped||O.closed)return;const R=A.indexOf(this.subscriber);-1!==R&&A.splice(R,1)}}},3489:(H,w,f)=>{"use strict";f.d(w,{L:()=>b});var p=f(7043),e=f(3292),I=f(4096),O=f(7668),A=f(2830),R=f(2782);class b extends I.w{constructor(U,z,G){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=e.c;break;case 1:if(!U){this.destination=e.c;break}if("object"==typeof U){U instanceof b?(this.syncErrorThrowable=U.syncErrorThrowable,this.destination=U,U.add(this)):(this.syncErrorThrowable=!0,this.destination=new D(this,U));break}default:this.syncErrorThrowable=!0,this.destination=new D(this,U,z,G)}}[O.b](){return this}static create(U,z,G){const Y=new b(U,z,G);return Y.syncErrorThrowable=!1,Y}next(U){this.isStopped||this._next(U)}error(U){this.isStopped||(this.isStopped=!0,this._error(U))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(U){this.destination.next(U)}_error(U){this.destination.error(U),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:U}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=U,this}}class D extends b{constructor(U,z,G,Y){super(),this._parentSubscriber=U;let X,te=this;(0,p.m)(z)?X=z:z&&(X=z.next,G=z.error,Y=z.complete,z!==e.c&&(te=Object.create(z),(0,p.m)(te.unsubscribe)&&this.add(te.unsubscribe.bind(te)),te.unsubscribe=this.unsubscribe.bind(this))),this._context=te,this._next=X,this._error=G,this._complete=Y}next(U){if(!this.isStopped&&this._next){const{_parentSubscriber:z}=this;A.v.useDeprecatedSynchronousErrorHandling&&z.syncErrorThrowable?this.__tryOrSetError(z,this._next,U)&&this.unsubscribe():this.__tryOrUnsub(this._next,U)}}error(U){if(!this.isStopped){const{_parentSubscriber:z}=this,{useDeprecatedSynchronousErrorHandling:G}=A.v;if(this._error)G&&z.syncErrorThrowable?(this.__tryOrSetError(z,this._error,U),this.unsubscribe()):(this.__tryOrUnsub(this._error,U),this.unsubscribe());else if(z.syncErrorThrowable)G?(z.syncErrorValue=U,z.syncErrorThrown=!0):(0,R.z)(U),this.unsubscribe();else{if(this.unsubscribe(),G)throw U;(0,R.z)(U)}}}complete(){if(!this.isStopped){const{_parentSubscriber:U}=this;if(this._complete){const z=()=>this._complete.call(this._context);A.v.useDeprecatedSynchronousErrorHandling&&U.syncErrorThrowable?(this.__tryOrSetError(U,z),this.unsubscribe()):(this.__tryOrUnsub(z),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(U,z){try{U.call(this._context,z)}catch(G){if(this.unsubscribe(),A.v.useDeprecatedSynchronousErrorHandling)throw G;(0,R.z)(G)}}__tryOrSetError(U,z,G){if(!A.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{z.call(this._context,G)}catch(Y){return A.v.useDeprecatedSynchronousErrorHandling?(U.syncErrorValue=Y,U.syncErrorThrown=!0,!0):((0,R.z)(Y),!0)}return!1}_unsubscribe(){const{_parentSubscriber:U}=this;this._context=null,this._parentSubscriber=null,U.unsubscribe()}}},4096:(H,w,f)=>{"use strict";f.d(w,{w:()=>A});var b,p=f(6688),e=f(7830),I=f(7043),O=f(7964);class A{constructor(D){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,D&&(this._ctorUnsubscribe=!0,this._unsubscribe=D)}unsubscribe(){let D;if(this.closed)return;let{_parentOrParents:F,_ctorUnsubscribe:U,_unsubscribe:z,_subscriptions:G}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,F instanceof A)F.remove(this);else if(null!==F)for(let Y=0;YD.concat(F instanceof O.B?F.errors:F),[])}A.EMPTY=((b=new A).closed=!0,b)},2830:(H,w,f)=>{"use strict";f.d(w,{v:()=>e});let p=!1;const e={Promise:void 0,set useDeprecatedSynchronousErrorHandling(I){if(I){const O=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+O.stack)}else p&&console.log("RxJS: Back to a better error behavior. Thank you. <3");p=I},get useDeprecatedSynchronousErrorHandling(){return p}}},1177:(H,w,f)=>{"use strict";f.d(w,{IY:()=>O,Ds:()=>R,ft:()=>D});var p=f(3489),e=f(4202),I=f(9249);class O extends p.L{constructor(U){super(),this.parent=U}_next(U){this.parent.notifyNext(U)}_error(U){this.parent.notifyError(U),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class R extends p.L{notifyNext(U){this.destination.next(U)}notifyError(U){this.destination.error(U)}notifyComplete(){this.destination.complete()}}function D(F,U){if(U.closed)return;if(F instanceof e.y)return F.subscribe(U);let z;try{z=(0,I.s)(F)(U)}catch(G){U.error(G)}return z}},1762:(H,w,f)=>{"use strict";f.d(w,{c:()=>A,N:()=>R});var p=f(8929),e=f(4202),I=f(4096),O=f(4327);class A extends e.y{constructor(z,G){super(),this.source=z,this.subjectFactory=G,this._refCount=0,this._isComplete=!1}_subscribe(z){return this.getSubject().subscribe(z)}getSubject(){const z=this._subject;return(!z||z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let z=this._connection;return z||(this._isComplete=!1,z=this._connection=new I.w,z.add(this.source.subscribe(new b(this.getSubject(),this))),z.closed&&(this._connection=null,z=I.w.EMPTY)),z}refCount(){return(0,O.x)()(this)}}const R=(()=>{const U=A.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:U._subscribe},_isComplete:{value:U._isComplete,writable:!0},getSubject:{value:U.getSubject},connect:{value:U.connect},refCount:{value:U.refCount}}})();class b extends p.Yc{constructor(z,G){super(z),this.connectable=G}_error(z){this._unsubscribe(),super._error(z)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const z=this.connectable;if(z){this.connectable=null;const G=z._connection;z._refCount=0,z._subject=null,z._connection=null,G&&G.unsubscribe()}}}},6053:(H,w,f)=>{"use strict";f.d(w,{aj:()=>b,Ms:()=>D});var p=f(2866),e=f(6688),I=f(826),O=f(448),A=f(3009);const R={};function b(...U){let z,G;return(0,p.K)(U[U.length-1])&&(G=U.pop()),"function"==typeof U[U.length-1]&&(z=U.pop()),1===U.length&&(0,e.k)(U[0])&&(U=U[0]),(0,A.n)(U,G).lift(new D(z))}class D{constructor(z){this.resultSelector=z}call(z,G){return G.subscribe(new F(z,this.resultSelector))}}class F extends I.L{constructor(z,G){super(z),this.resultSelector=G,this.active=0,this.values=[],this.observables=[]}_next(z){this.values.push(R),this.observables.push(z)}_complete(){const z=this.observables,G=z.length;if(0===G)this.destination.complete();else{this.active=G,this.toRespond=G;for(let Y=0;Y{"use strict";f.d(w,{z:()=>I});var p=f(1086),e=f(534);function I(...O){return(0,e.u)()((0,p.of)(...O))}},8514:(H,w,f)=>{"use strict";f.d(w,{P:()=>O});var p=f(4202),e=f(3527),I=f(8896);function O(A){return new p.y(R=>{let b;try{b=A()}catch(F){return void R.error(F)}return(b?(0,e.D)(b):(0,I.c)()).subscribe(R)})}},8896:(H,w,f)=>{"use strict";f.d(w,{E:()=>e,c:()=>I});var p=f(4202);const e=new p.y(A=>A.complete());function I(A){return A?function O(A){return new p.y(R=>A.schedule(()=>R.complete()))}(A):e}},567:(H,w,f)=>{"use strict";f.d(w,{D:()=>R});var p=f(4202),e=f(6688),I=f(4850),O=f(7830),A=f(3527);function R(...D){if(1===D.length){const F=D[0];if((0,e.k)(F))return b(F,null);if((0,O.K)(F)&&Object.getPrototypeOf(F)===Object.prototype){const U=Object.keys(F);return b(U.map(z=>F[z]),U)}}if("function"==typeof D[D.length-1]){const F=D.pop();return b(D=1===D.length&&(0,e.k)(D[0])?D[0]:D,null).pipe((0,I.U)(U=>F(...U)))}return b(D,null)}function b(D,F){return new p.y(U=>{const z=D.length;if(0===z)return void U.complete();const G=new Array(z);let Y=0,X=0;for(let te=0;te{se||(se=!0,X++),G[te]=Te},error:Te=>U.error(Te),complete:()=>{Y++,(Y===z||!se)&&(X===z&&U.next(F?F.reduce((Te,Ge,rt)=>(Te[Ge]=G[rt],Te),{}):G),U.complete())}}))}})}},3527:(H,w,f)=>{"use strict";f.d(w,{D:()=>O});var p=f(4202),e=f(9249),I=f(3998);function O(A,R){return R?(0,I.x)(A,R):A instanceof p.y?A:new p.y((0,e.s)(A))}},3009:(H,w,f)=>{"use strict";f.d(w,{n:()=>O});var p=f(4202),e=f(3650),I=f(6454);function O(A,R){return R?(0,I.r)(A,R):new p.y((0,e.V)(A))}},6787:(H,w,f)=>{"use strict";f.d(w,{T:()=>A});var p=f(4202),e=f(2866),I=f(9146),O=f(3009);function A(...R){let b=Number.POSITIVE_INFINITY,D=null,F=R[R.length-1];return(0,e.K)(F)?(D=R.pop(),R.length>1&&"number"==typeof R[R.length-1]&&(b=R.pop())):"number"==typeof F&&(b=R.pop()),null===D&&1===R.length&&R[0]instanceof p.y?R[0]:(0,I.J)(b)((0,O.n)(R,D))}},1086:(H,w,f)=>{"use strict";f.d(w,{of:()=>O});var p=f(2866),e=f(3009),I=f(6454);function O(...A){let R=A[A.length-1];return(0,p.K)(R)?(A.pop(),(0,I.r)(A,R)):(0,e.n)(A)}},1946:(H,w,f)=>{"use strict";f.d(w,{S3:()=>A});var p=f(6688),e=f(3009),I=f(826),O=f(448);function A(...D){if(1===D.length){if(!(0,p.k)(D[0]))return D[0];D=D[0]}return(0,e.n)(D,void 0).lift(new R)}class R{call(F,U){return U.subscribe(new b(F))}}class b extends I.L{constructor(F){super(F),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(F){this.observables.push(F)}_complete(){const F=this.observables,U=F.length;if(0===U)this.destination.complete();else{for(let z=0;z{"use strict";f.d(w,{_:()=>e});var p=f(4202);function e(O,A){return new p.y(A?R=>A.schedule(I,0,{error:O,subscriber:R}):R=>R.error(O))}function I({error:O,subscriber:A}){A.error(O)}},8723:(H,w,f)=>{"use strict";f.d(w,{H:()=>A});var p=f(4202),e=f(353),I=f(4241),O=f(2866);function A(b=0,D,F){let U=-1;return(0,I.k)(D)?U=Number(D)<1?1:Number(D):(0,O.K)(D)&&(F=D),(0,O.K)(F)||(F=e.P),new p.y(z=>{const G=(0,I.k)(b)?b:+b-F.now();return F.schedule(R,G,{index:0,period:U,subscriber:z})})}function R(b){const{index:D,period:F,subscriber:U}=b;if(U.next(D),!U.closed){if(-1===F)return U.complete();b.index=D+1,this.schedule(b,F)}}},1746:(H,w,f)=>{"use strict";f.d(w,{$R:()=>R,mx:()=>b});var p=f(3009),e=f(6688),I=f(3489),O=f(5430),A=f(1177);function R(...G){const Y=G[G.length-1];return"function"==typeof Y&&G.pop(),(0,p.n)(G,void 0).lift(new b(Y))}class b{constructor(Y){this.resultSelector=Y}call(Y,X){return X.subscribe(new D(Y,this.resultSelector))}}class D extends I.L{constructor(Y,X,te=Object.create(null)){super(Y),this.resultSelector=X,this.iterators=[],this.active=0,this.resultSelector="function"==typeof X?X:void 0}_next(Y){const X=this.iterators;(0,e.k)(Y)?X.push(new U(Y)):X.push("function"==typeof Y[O.hZ]?new F(Y[O.hZ]()):new z(this.destination,this,Y))}_complete(){const Y=this.iterators,X=Y.length;if(this.unsubscribe(),0!==X){this.active=X;for(let te=0;tethis.index}hasCompleted(){return this.array.length===this.index}}class z extends A.Ds{constructor(Y,X,te){super(Y),this.parent=X,this.observable=te,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[O.hZ](){return this}next(){const Y=this.buffer;return 0===Y.length&&this.isComplete?{value:null,done:!0}:{value:Y.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(Y){this.buffer.push(Y),this.parent.checkIterators()}subscribe(){return(0,A.ft)(this.observable,new A.IY(this))}}},7221:(H,w,f)=>{"use strict";f.d(w,{K:()=>e});var p=f(1177);function e(A){return function(b){const D=new I(A),F=b.lift(D);return D.caught=F}}class I{constructor(R){this.selector=R}call(R,b){return b.subscribe(new O(R,this.selector,this.caught))}}class O extends p.Ds{constructor(R,b,D){super(R),this.selector=b,this.caught=D}error(R){if(!this.isStopped){let b;try{b=this.selector(R,this.caught)}catch(U){return void super.error(U)}this._unsubscribeAndRecycle();const D=new p.IY(this);this.add(D);const F=(0,p.ft)(b,D);F!==D&&this.add(F)}}}},534:(H,w,f)=>{"use strict";f.d(w,{u:()=>e});var p=f(9146);function e(){return(0,p.J)(1)}},1406:(H,w,f)=>{"use strict";f.d(w,{b:()=>e});var p=f(1709);function e(I,O){return(0,p.zg)(I,O,1)}},7314:(H,w,f)=>{"use strict";f.d(w,{d:()=>e});var p=f(3489);function e(A=null){return R=>R.lift(new I(A))}class I{constructor(R){this.defaultValue=R}call(R,b){return b.subscribe(new O(R,this.defaultValue))}}class O extends p.L{constructor(R,b){super(R),this.defaultValue=b,this.isEmpty=!0}_next(R){this.isEmpty=!1,this.destination.next(R)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},2198:(H,w,f)=>{"use strict";f.d(w,{h:()=>e});var p=f(3489);function e(A,R){return function(D){return D.lift(new I(A,R))}}class I{constructor(R,b){this.predicate=R,this.thisArg=b}call(R,b){return b.subscribe(new O(R,this.predicate,this.thisArg))}}class O extends p.L{constructor(R,b,D){super(R),this.predicate=b,this.thisArg=D,this.count=0}_next(R){let b;try{b=this.predicate.call(this.thisArg,R,this.count++)}catch(D){return void this.destination.error(D)}b&&this.destination.next(R)}}},537:(H,w,f)=>{"use strict";f.d(w,{x:()=>I});var p=f(3489),e=f(4096);function I(R){return b=>b.lift(new O(R))}class O{constructor(b){this.callback=b}call(b,D){return D.subscribe(new A(b,this.callback))}}class A extends p.L{constructor(b,D){super(b),this.add(new e.w(D))}}},7224:(H,w,f)=>{"use strict";f.d(w,{P:()=>b});var p=f(4450),e=f(2198),I=f(2986),O=f(7314),A=f(4907),R=f(5379);function b(D,F){const U=arguments.length>=2;return z=>z.pipe(D?(0,e.h)((G,Y)=>D(G,Y,z)):R.y,(0,I.q)(1),U?(0,O.d)(F):(0,A.T)(()=>new p.K))}},4002:(H,w,f)=>{"use strict";f.d(w,{v:()=>A,T:()=>F});var p=f(3489),e=f(4096),I=f(4202),O=f(8929);function A(z,G,Y,X){return te=>te.lift(new R(z,G,Y,X))}class R{constructor(G,Y,X,te){this.keySelector=G,this.elementSelector=Y,this.durationSelector=X,this.subjectSelector=te}call(G,Y){return Y.subscribe(new b(G,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class b extends p.L{constructor(G,Y,X,te,fe){super(G),this.keySelector=Y,this.elementSelector=X,this.durationSelector=te,this.subjectSelector=fe,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(G){let Y;try{Y=this.keySelector(G)}catch(X){return void this.error(X)}this._group(G,Y)}_group(G,Y){let X=this.groups;X||(X=this.groups=new Map);let fe,te=X.get(Y);if(this.elementSelector)try{fe=this.elementSelector(G)}catch(se){this.error(se)}else fe=G;if(!te){te=this.subjectSelector?this.subjectSelector():new O.xQ,X.set(Y,te);const se=new F(Y,te,this);if(this.destination.next(se),this.durationSelector){let Te;try{Te=this.durationSelector(new F(Y,te))}catch(Ge){return void this.error(Ge)}this.add(Te.subscribe(new D(Y,te,this)))}}te.closed||te.next(fe)}_error(G){const Y=this.groups;Y&&(Y.forEach((X,te)=>{X.error(G)}),Y.clear()),this.destination.error(G)}_complete(){const G=this.groups;G&&(G.forEach((Y,X)=>{Y.complete()}),G.clear()),this.destination.complete()}removeGroup(G){this.groups.delete(G)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class D extends p.L{constructor(G,Y,X){super(Y),this.key=G,this.group=Y,this.parent=X}_next(G){this.complete()}_unsubscribe(){const{parent:G,key:Y}=this;this.key=this.parent=null,G&&G.removeGroup(Y)}}class F extends I.y{constructor(G,Y,X){super(),this.key=G,this.groupSubject=Y,this.refCountSubscription=X}_subscribe(G){const Y=new e.w,{refCountSubscription:X,groupSubject:te}=this;return X&&!X.closed&&Y.add(new U(X)),Y.add(te.subscribe(G)),Y}}class U extends e.w{constructor(G){super(),this.parent=G,G.count++}unsubscribe(){const G=this.parent;!G.closed&&!this.closed&&(super.unsubscribe(),G.count-=1,0===G.count&&G.attemptedToUnsubscribe&&G.unsubscribe())}}},8127:(H,w,f)=>{"use strict";f.d(w,{Z:()=>b});var p=f(4450),e=f(2198),I=f(2821),O=f(4907),A=f(7314),R=f(5379);function b(D,F){const U=arguments.length>=2;return z=>z.pipe(D?(0,e.h)((G,Y)=>D(G,Y,z)):R.y,(0,I.h)(1),U?(0,A.d)(F):(0,O.T)(()=>new p.K))}},4850:(H,w,f)=>{"use strict";f.d(w,{U:()=>e});var p=f(3489);function e(A,R){return function(D){if("function"!=typeof A)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return D.lift(new I(A,R))}}class I{constructor(R,b){this.project=R,this.thisArg=b}call(R,b){return b.subscribe(new O(R,this.project,this.thisArg))}}class O extends p.L{constructor(R,b,D){super(R),this.project=b,this.count=0,this.thisArg=D||this}_next(R){let b;try{b=this.project.call(this.thisArg,R,this.count++)}catch(D){return void this.destination.error(D)}this.destination.next(b)}}},9146:(H,w,f)=>{"use strict";f.d(w,{J:()=>I});var p=f(1709),e=f(5379);function I(O=Number.POSITIVE_INFINITY){return(0,p.zg)(e.y,O)}},1709:(H,w,f)=>{"use strict";f.d(w,{zg:()=>O,VS:()=>b});var p=f(4850),e=f(3527),I=f(1177);function O(D,F,U=Number.POSITIVE_INFINITY){return"function"==typeof F?z=>z.pipe(O((G,Y)=>(0,e.D)(D(G,Y)).pipe((0,p.U)((X,te)=>F(G,X,Y,te))),U)):("number"==typeof F&&(U=F),z=>z.lift(new A(D,U)))}class A{constructor(F,U=Number.POSITIVE_INFINITY){this.project=F,this.concurrent=U}call(F,U){return U.subscribe(new R(F,this.project,this.concurrent))}}class R extends I.Ds{constructor(F,U,z=Number.POSITIVE_INFINITY){super(F),this.project=U,this.concurrent=z,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(F){this.active0?this._next(F.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const b=O},2536:(H,w,f)=>{"use strict";f.d(w,{O:()=>e});var p=f(1762);function e(O,A){return function(b){let D;if(D="function"==typeof O?O:function(){return O},"function"==typeof A)return b.lift(new I(D,A));const F=Object.create(b,p.N);return F.source=b,F.subjectFactory=D,F}}class I{constructor(A,R){this.subjectFactory=A,this.selector=R}call(A,R){const{selector:b}=this,D=this.subjectFactory(),F=b(D).subscribe(A);return F.add(R.subscribe(D)),F}}},7770:(H,w,f)=>{"use strict";f.d(w,{QV:()=>I,ht:()=>A});var p=f(3489),e=f(9312);function I(b,D=0){return function(U){return U.lift(new O(b,D))}}class O{constructor(D,F=0){this.scheduler=D,this.delay=F}call(D,F){return F.subscribe(new A(D,this.scheduler,this.delay))}}class A extends p.L{constructor(D,F,U=0){super(D),this.scheduler=F,this.delay=U}static dispatch(D){const{notification:F,destination:U}=D;F.observe(U),this.unsubscribe()}scheduleMessage(D){this.destination.add(this.scheduler.schedule(A.dispatch,this.delay,new R(D,this.destination)))}_next(D){this.scheduleMessage(e.P.createNext(D))}_error(D){this.scheduleMessage(e.P.createError(D)),this.unsubscribe()}_complete(){this.scheduleMessage(e.P.createComplete()),this.unsubscribe()}}class R{constructor(D,F){this.notification=D,this.destination=F}}},4327:(H,w,f)=>{"use strict";f.d(w,{x:()=>e});var p=f(3489);function e(){return function(R){return R.lift(new I(R))}}class I{constructor(R){this.connectable=R}call(R,b){const{connectable:D}=this;D._refCount++;const F=new O(R,D),U=b.subscribe(F);return F.closed||(F.connection=D.connect()),U}}class O extends p.L{constructor(R,b){super(R),this.connectable=b}_unsubscribe(){const{connectable:R}=this;if(!R)return void(this.connection=null);this.connectable=null;const b=R._refCount;if(b<=0)return void(this.connection=null);if(R._refCount=b-1,b>1)return void(this.connection=null);const{connection:D}=this,F=R._connection;this.connection=null,F&&(!D||F===D)&&F.unsubscribe()}}},2014:(H,w,f)=>{"use strict";f.d(w,{R:()=>e});var p=f(3489);function e(A,R){let b=!1;return arguments.length>=2&&(b=!0),function(F){return F.lift(new I(A,R,b))}}class I{constructor(R,b,D=!1){this.accumulator=R,this.seed=b,this.hasSeed=D}call(R,b){return b.subscribe(new O(R,this.accumulator,this.seed,this.hasSeed))}}class O extends p.L{constructor(R,b,D,F){super(R),this.accumulator=b,this._seed=D,this.hasSeed=F,this.index=0}get seed(){return this._seed}set seed(R){this.hasSeed=!0,this._seed=R}_next(R){if(this.hasSeed)return this._tryNext(R);this.seed=R,this.destination.next(R)}_tryNext(R){const b=this.index++;let D;try{D=this.accumulator(this.seed,R,b)}catch(F){this.destination.error(F)}this.seed=D,this.destination.next(D)}}},8117:(H,w,f)=>{"use strict";f.d(w,{B:()=>A});var p=f(2536),e=f(4327),I=f(8929);function O(){return new I.xQ}function A(){return R=>(0,e.x)()((0,p.O)(O)(R))}},5154:(H,w,f)=>{"use strict";f.d(w,{d:()=>e});var p=f(839);function e(O,A,R){let b;return b=O&&"object"==typeof O?O:{bufferSize:O,windowTime:A,refCount:!1,scheduler:R},D=>D.lift(function I({bufferSize:O=Number.POSITIVE_INFINITY,windowTime:A=Number.POSITIVE_INFINITY,refCount:R,scheduler:b}){let D,U,F=0,z=!1,G=!1;return function(X){let te;F++,!D||z?(z=!1,D=new p.t(O,A,b),te=D.subscribe(this),U=X.subscribe({next(fe){D.next(fe)},error(fe){z=!0,D.error(fe)},complete(){G=!0,U=void 0,D.complete()}}),G&&(U=void 0)):te=D.subscribe(this),this.add(()=>{F--,te.unsubscribe(),te=void 0,U&&!G&&R&&0===F&&(U.unsubscribe(),U=void 0,D=void 0)})}}(b))}},1059:(H,w,f)=>{"use strict";f.d(w,{O:()=>I});var p=f(1961),e=f(2866);function I(...O){const A=O[O.length-1];return(0,e.K)(A)?(O.pop(),R=>(0,p.z)(O,R,A)):R=>(0,p.z)(O,R)}},7545:(H,w,f)=>{"use strict";f.d(w,{w:()=>O});var p=f(4850),e=f(3527),I=f(1177);function O(b,D){return"function"==typeof D?F=>F.pipe(O((U,z)=>(0,e.D)(b(U,z)).pipe((0,p.U)((G,Y)=>D(U,G,z,Y))))):F=>F.lift(new A(b))}class A{constructor(D){this.project=D}call(D,F){return F.subscribe(new R(D,this.project))}}class R extends I.Ds{constructor(D,F){super(D),this.project=F,this.index=0}_next(D){let F;const U=this.index++;try{F=this.project(D,U)}catch(z){return void this.destination.error(z)}this._innerSub(F)}_innerSub(D){const F=this.innerSubscription;F&&F.unsubscribe();const U=new I.IY(this),z=this.destination;z.add(U),this.innerSubscription=(0,I.ft)(D,U),this.innerSubscription!==U&&z.add(this.innerSubscription)}_complete(){const{innerSubscription:D}=this;(!D||D.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(D){this.destination.next(D)}}},2986:(H,w,f)=>{"use strict";f.d(w,{q:()=>O});var p=f(3489),e=f(4231),I=f(8896);function O(b){return D=>0===b?(0,I.c)():D.lift(new A(b))}class A{constructor(D){if(this.total=D,this.total<0)throw new e.W}call(D,F){return F.subscribe(new R(D,this.total))}}class R extends p.L{constructor(D,F){super(D),this.total=F,this.count=0}_next(D){const F=this.total,U=++this.count;U<=F&&(this.destination.next(D),U===F&&(this.destination.complete(),this.unsubscribe()))}}},2821:(H,w,f)=>{"use strict";f.d(w,{h:()=>O});var p=f(3489),e=f(4231),I=f(8896);function O(b){return function(F){return 0===b?(0,I.c)():F.lift(new A(b))}}class A{constructor(D){if(this.total=D,this.total<0)throw new e.W}call(D,F){return F.subscribe(new R(D,this.total))}}class R extends p.L{constructor(D,F){super(D),this.total=F,this.ring=new Array,this.count=0}_next(D){const F=this.ring,U=this.total,z=this.count++;F.length0){const U=this.count>=this.total?this.total:this.count,z=this.ring;for(let G=0;G{"use strict";f.d(w,{b:()=>O});var p=f(3489),e=f(7876),I=f(7043);function O(b,D,F){return function(z){return z.lift(new A(b,D,F))}}class A{constructor(D,F,U){this.nextOrObserver=D,this.error=F,this.complete=U}call(D,F){return F.subscribe(new R(D,this.nextOrObserver,this.error,this.complete))}}class R extends p.L{constructor(D,F,U,z){super(D),this._tapNext=e.Z,this._tapError=e.Z,this._tapComplete=e.Z,this._tapError=U||e.Z,this._tapComplete=z||e.Z,(0,I.m)(F)?(this._context=this,this._tapNext=F):F&&(this._context=F,this._tapNext=F.next||e.Z,this._tapError=F.error||e.Z,this._tapComplete=F.complete||e.Z)}_next(D){try{this._tapNext.call(this._context,D)}catch(F){return void this.destination.error(F)}this.destination.next(D)}_error(D){try{this._tapError.call(this._context,D)}catch(F){return void this.destination.error(F)}this.destination.error(D)}_complete(){try{this._tapComplete.call(this._context)}catch(D){return void this.destination.error(D)}return this.destination.complete()}}},4907:(H,w,f)=>{"use strict";f.d(w,{T:()=>I});var p=f(4450),e=f(3489);function I(b=R){return D=>D.lift(new O(b))}class O{constructor(D){this.errorFactory=D}call(D,F){return F.subscribe(new A(D,this.errorFactory))}}class A extends e.L{constructor(D,F){super(D),this.errorFactory=F,this.hasValue=!1}_next(D){this.hasValue=!0,this.destination.next(D)}_complete(){if(this.hasValue)return this.destination.complete();{let D;try{D=this.errorFactory()}catch(F){D=F}this.destination.error(D)}}}function R(){return new p.K}},6454:(H,w,f)=>{"use strict";f.d(w,{r:()=>I});var p=f(4202),e=f(4096);function I(O,A){return new p.y(R=>{const b=new e.w;let D=0;return b.add(A.schedule(function(){D!==O.length?(R.next(O[D++]),R.closed||b.add(this.schedule())):R.complete()})),b})}},3998:(H,w,f)=>{"use strict";f.d(w,{x:()=>Y});var p=f(4202),e=f(4096),I=f(3821),R=f(6454),b=f(5430),U=f(8955),z=f(8515);function Y(X,te){if(null!=X){if(function F(X){return X&&"function"==typeof X[I.L]}(X))return function O(X,te){return new p.y(fe=>{const se=new e.w;return se.add(te.schedule(()=>{const Te=X[I.L]();se.add(Te.subscribe({next(Ge){se.add(te.schedule(()=>fe.next(Ge)))},error(Ge){se.add(te.schedule(()=>fe.error(Ge)))},complete(){se.add(te.schedule(()=>fe.complete()))}}))})),se})}(X,te);if((0,U.t)(X))return function A(X,te){return new p.y(fe=>{const se=new e.w;return se.add(te.schedule(()=>X.then(Te=>{se.add(te.schedule(()=>{fe.next(Te),se.add(te.schedule(()=>fe.complete()))}))},Te=>{se.add(te.schedule(()=>fe.error(Te)))}))),se})}(X,te);if((0,z.z)(X))return(0,R.r)(X,te);if(function G(X){return X&&"function"==typeof X[b.hZ]}(X)||"string"==typeof X)return function D(X,te){if(!X)throw new Error("Iterable cannot be null");return new p.y(fe=>{const se=new e.w;let Te;return se.add(()=>{Te&&"function"==typeof Te.return&&Te.return()}),se.add(te.schedule(()=>{Te=X[b.hZ](),se.add(te.schedule(function(){if(fe.closed)return;let Ge,rt;try{const Rt=Te.next();Ge=Rt.value,rt=Rt.done}catch(Rt){return void fe.error(Rt)}rt?fe.complete():(fe.next(Ge),this.schedule())}))})),se})}(X,te)}throw new TypeError((null!==X&&typeof X||X)+" is not observable")}},6686:(H,w,f)=>{"use strict";f.d(w,{o:()=>I});var p=f(4096);class e extends p.w{constructor(A,R){super()}schedule(A,R=0){return this}}class I extends e{constructor(A,R){super(A,R),this.scheduler=A,this.work=R,this.pending=!1}schedule(A,R=0){if(this.closed)return this;this.state=A;const b=this.id,D=this.scheduler;return null!=b&&(this.id=this.recycleAsyncId(D,b,R)),this.pending=!0,this.delay=R,this.id=this.id||this.requestAsyncId(D,this.id,R),this}requestAsyncId(A,R,b=0){return setInterval(A.flush.bind(A,this),b)}recycleAsyncId(A,R,b=0){if(null!==b&&this.delay===b&&!1===this.pending)return R;clearInterval(R)}execute(A,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const b=this._execute(A,R);if(b)return b;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,R){let D,b=!1;try{this.work(A)}catch(F){b=!0,D=!!F&&F||new Error(F)}if(b)return this.unsubscribe(),D}_unsubscribe(){const A=this.id,R=this.scheduler,b=R.actions,D=b.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&b.splice(D,1),null!=A&&(this.id=this.recycleAsyncId(R,A,null)),this.delay=null}}},198:(H,w,f)=>{"use strict";f.d(w,{v:()=>e});var p=f(2221);class e extends p.b{constructor(O,A=p.b.now){super(O,()=>e.delegate&&e.delegate!==this?e.delegate.now():A()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(O,A=0,R){return e.delegate&&e.delegate!==this?e.delegate.schedule(O,A,R):super.schedule(O,A,R)}flush(O){const{actions:A}=this;if(this.active)return void A.push(O);let R;this.active=!0;do{if(R=O.execute(O.state,O.delay))break}while(O=A.shift());if(this.active=!1,R){for(;O=A.shift();)O.unsubscribe();throw R}}}},8139:(H,w,f)=>{"use strict";f.d(w,{e:()=>G,E:()=>z});let p=1;const e=Promise.resolve(),I={};function O(Y){return Y in I&&(delete I[Y],!0)}const A={setImmediate(Y){const X=p++;return I[X]=!0,e.then(()=>O(X)&&Y()),X},clearImmediate(Y){O(Y)}};var b=f(6686),F=f(198);const z=new class U extends F.v{flush(X){this.active=!0,this.scheduled=void 0;const{actions:te}=this;let fe,se=-1,Te=te.length;X=X||te.shift();do{if(fe=X.execute(X.state,X.delay))break}while(++se0?super.requestAsyncId(X,te,fe):(X.actions.push(this),X.scheduled||(X.scheduled=A.setImmediate(X.flush.bind(X,null))))}recycleAsyncId(X,te,fe=0){if(null!==fe&&fe>0||null===fe&&this.delay>0)return super.recycleAsyncId(X,te,fe);0===X.actions.length&&(A.clearImmediate(te),X.scheduled=void 0)}}),G=z},353:(H,w,f)=>{"use strict";f.d(w,{z:()=>I,P:()=>O});var p=f(6686);const I=new(f(198).v)(p.o),O=I},341:(H,w,f)=>{"use strict";f.d(w,{c:()=>R,N:()=>A});var p=f(6686),I=f(198);const A=new class O extends I.v{}(class e extends p.o{constructor(D,F){super(D,F),this.scheduler=D,this.work=F}schedule(D,F=0){return F>0?super.schedule(D,F):(this.delay=F,this.state=D,this.scheduler.flush(this),this)}execute(D,F){return F>0||this.closed?super.execute(D,F):this._execute(D,F)}requestAsyncId(D,F,U=0){return null!==U&&U>0||null===U&&this.delay>0?super.requestAsyncId(D,F,U):D.flush(this)}}),R=A},5430:(H,w,f)=>{"use strict";f.d(w,{hZ:()=>e});const e=function p(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(H,w,f)=>{"use strict";f.d(w,{L:()=>p});const p="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(H,w,f)=>{"use strict";f.d(w,{b:()=>p});const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(H,w,f)=>{"use strict";f.d(w,{W:()=>e});const e=(()=>{function I(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return I.prototype=Object.create(Error.prototype),I})()},4450:(H,w,f)=>{"use strict";f.d(w,{K:()=>e});const e=(()=>{function I(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return I.prototype=Object.create(Error.prototype),I})()},5279:(H,w,f)=>{"use strict";f.d(w,{N:()=>e});const e=(()=>{function I(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return I.prototype=Object.create(Error.prototype),I})()},854:(H,w,f)=>{"use strict";f.d(w,{W:()=>e});const e=(()=>{function I(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return I.prototype=Object.create(Error.prototype),I})()},7964:(H,w,f)=>{"use strict";f.d(w,{B:()=>e});const e=(()=>{function I(O){return Error.call(this),this.message=O?`${O.length} errors occurred during unsubscription:\n${O.map((A,R)=>`${R+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=O,this}return I.prototype=Object.create(Error.prototype),I})()},9476:(H,w,f)=>{"use strict";f.d(w,{_:()=>e});var p=f(3489);function e(I){for(;I;){const{closed:O,destination:A,isStopped:R}=I;if(O||R)return!1;I=A&&A instanceof p.L?A:null}return!0}},2782:(H,w,f)=>{"use strict";function p(e){setTimeout(()=>{throw e},0)}f.d(w,{z:()=>p})},5379:(H,w,f)=>{"use strict";function p(e){return e}f.d(w,{y:()=>p})},6688:(H,w,f)=>{"use strict";f.d(w,{k:()=>p});const p=Array.isArray||(e=>e&&"number"==typeof e.length)},8515:(H,w,f)=>{"use strict";f.d(w,{z:()=>p});const p=e=>e&&"number"==typeof e.length&&"function"!=typeof e},7043:(H,w,f)=>{"use strict";function p(e){return"function"==typeof e}f.d(w,{m:()=>p})},4241:(H,w,f)=>{"use strict";f.d(w,{k:()=>e});var p=f(6688);function e(I){return!(0,p.k)(I)&&I-parseFloat(I)+1>=0}},7830:(H,w,f)=>{"use strict";function p(e){return null!==e&&"object"==typeof e}f.d(w,{K:()=>p})},4715:(H,w,f)=>{"use strict";f.d(w,{b:()=>e});var p=f(4202);function e(I){return!!I&&(I instanceof p.y||"function"==typeof I.lift&&"function"==typeof I.subscribe)}},8955:(H,w,f)=>{"use strict";function p(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}f.d(w,{t:()=>p})},2866:(H,w,f)=>{"use strict";function p(e){return e&&"function"==typeof e.schedule}f.d(w,{K:()=>p})},7876:(H,w,f)=>{"use strict";function p(){}f.d(w,{Z:()=>p})},5884:(H,w,f)=>{"use strict";function p(e,I){function O(){return!O.pred.apply(O.thisArg,arguments)}return O.pred=e,O.thisArg=I,O}f.d(w,{f:()=>p})},4843:(H,w,f)=>{"use strict";f.d(w,{z:()=>e,U:()=>I});var p=f(5379);function e(...O){return I(O)}function I(O){return 0===O.length?p.y:1===O.length?O[0]:function(R){return O.reduce((b,D)=>D(b),R)}}},9249:(H,w,f)=>{"use strict";f.d(w,{s:()=>z});var p=f(3650),e=f(2782),O=f(5430),R=f(3821),D=f(8515),F=f(8955),U=f(7830);const z=G=>{if(G&&"function"==typeof G[R.L])return(G=>Y=>{const X=G[R.L]();if("function"!=typeof X.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return X.subscribe(Y)})(G);if((0,D.z)(G))return(0,p.V)(G);if((0,F.t)(G))return(G=>Y=>(G.then(X=>{Y.closed||(Y.next(X),Y.complete())},X=>Y.error(X)).then(null,e.z),Y))(G);if(G&&"function"==typeof G[O.hZ])return(G=>Y=>{const X=G[O.hZ]();for(;;){let te;try{te=X.next()}catch(fe){return Y.error(fe),Y}if(te.done){Y.complete();break}if(Y.next(te.value),Y.closed)break}return"function"==typeof X.return&&Y.add(()=>{X.return&&X.return()}),Y})(G);{const X=`You provided ${(0,U.K)(G)?"an invalid object":`'${G}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(X)}}},3650:(H,w,f)=>{"use strict";f.d(w,{V:()=>p});const p=e=>I=>{for(let O=0,A=e.length;O{"use strict";f.d(w,{D:()=>A});var p=f(3489);class e extends p.L{constructor(b,D,F){super(),this.parent=b,this.outerValue=D,this.outerIndex=F,this.index=0}_next(b){this.parent.notifyNext(this.outerValue,b,this.outerIndex,this.index++,this)}_error(b){this.parent.notifyError(b,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var I=f(9249),O=f(4202);function A(R,b,D,F,U=new e(R,D,F)){if(!U.closed)return b instanceof O.y?b.subscribe(U):(0,I.s)(b)(U)}},310:(H,w,f)=>{"use strict";f.r(w),f.d(w,{audit:()=>e,auditTime:()=>b,buffer:()=>D,bufferCount:()=>G,bufferTime:()=>se,bufferToggle:()=>it,bufferWhen:()=>Je,catchError:()=>cn.K,combineAll:()=>Cn,combineLatest:()=>vr,concat:()=>Dt,concatAll:()=>Ln.u,concatMap:()=>dn.b,concatMapTo:()=>Tt,count:()=>Yn,debounce:()=>Ht,debounceTime:()=>ur,defaultIfEmpty:()=>Wt.d,delay:()=>cr,delayWhen:()=>Et,dematerialize:()=>gt,distinct:()=>Bn,distinctUntilChanged:()=>tt,distinctUntilKeyChanged:()=>Jt,elementAt:()=>nr,endWith:()=>gi,every:()=>he,exhaust:()=>ve,exhaustMap:()=>Fe,expand:()=>St,filter:()=>br.h,finalize:()=>$n.x,find:()=>Kt,findIndex:()=>Me,first:()=>et.P,flatMap:()=>Ct.VS,groupBy:()=>vt.v,ignoreElements:()=>Yt,isEmpty:()=>An,last:()=>Dn.Z,map:()=>$e.U,mapTo:()=>Ke,materialize:()=>ir,max:()=>Ae,merge:()=>we,mergeAll:()=>We.J,mergeMap:()=>Ct.zg,mergeMapTo:()=>Ot,mergeScan:()=>an,min:()=>Ar,multicast:()=>qn.O,observeOn:()=>Xt.QV,onErrorResumeNext:()=>mi,pairwise:()=>Or,partition:()=>De,pluck:()=>ln,publish:()=>Mi,publishBehavior:()=>Gr,publishLast:()=>Ps,publishReplay:()=>or,race:()=>Ii,reduce:()=>de,refCount:()=>ms.x,repeat:()=>pr,repeatWhen:()=>fn,retry:()=>wr,retryWhen:()=>ar,sample:()=>vi,sampleTime:()=>ni,scan:()=>ae.R,sequenceEqual:()=>V,share:()=>ce.B,shareReplay:()=>_e.d,single:()=>Pt,skip:()=>dt,skipLast:()=>E,skipUntil:()=>ne,skipWhile:()=>Mt,startWith:()=>Bo.O,subscribeOn:()=>so,switchAll:()=>hr,switchMap:()=>Qi.w,switchMapTo:()=>ri,take:()=>dr.q,takeLast:()=>ue.h,takeUntil:()=>pt,takeWhile:()=>Qr,tap:()=>Zr.b,throttle:()=>ii,throttleTime:()=>vs,throwIfEmpty:()=>Zn.T,timeInterval:()=>lo,timeout:()=>Ho,timeoutWith:()=>co,timestamp:()=>Wo,toArray:()=>fo,window:()=>Rn,windowCount:()=>po,windowTime:()=>Xi,windowToggle:()=>ks,windowWhen:()=>si,withLatestFrom:()=>bs,zip:()=>Ja,zipAll:()=>Xa});var p=f(1177);function e(B){return function(v){return v.lift(new I(B))}}class I{constructor(m){this.durationSelector=m}call(m,v){return v.subscribe(new O(m,this.durationSelector))}}class O extends p.Ds{constructor(m,v){super(m),this.durationSelector=v,this.hasValue=!1}_next(m){if(this.value=m,this.hasValue=!0,!this.throttled){let v;try{const{durationSelector:ee}=this;v=ee(m)}catch(ee){return this.destination.error(ee)}const j=(0,p.ft)(v,new p.IY(this));!j||j.closed?this.clearThrottle():this.add(this.throttled=j)}}clearThrottle(){const{value:m,hasValue:v,throttled:j}=this;j&&(this.remove(j),this.throttled=void 0,j.unsubscribe()),v&&(this.value=void 0,this.hasValue=!1,this.destination.next(m))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var A=f(353),R=f(8723);function b(B,m=A.P){return e(()=>(0,R.H)(B,m))}function D(B){return function(v){return v.lift(new F(B))}}class F{constructor(m){this.closingNotifier=m}call(m,v){return v.subscribe(new U(m,this.closingNotifier))}}class U extends p.Ds{constructor(m,v){super(m),this.buffer=[],this.add((0,p.ft)(v,new p.IY(this)))}_next(m){this.buffer.push(m)}notifyNext(){const m=this.buffer;this.buffer=[],this.destination.next(m)}}var z=f(3489);function G(B,m=null){return function(j){return j.lift(new Y(B,m))}}class Y{constructor(m,v){this.bufferSize=m,this.startBufferEvery=v,this.subscriberClass=v&&m!==v?te:X}call(m,v){return v.subscribe(new this.subscriberClass(m,this.bufferSize,this.startBufferEvery))}}class X extends z.L{constructor(m,v){super(m),this.bufferSize=v,this.buffer=[]}_next(m){const v=this.buffer;v.push(m),v.length==this.bufferSize&&(this.destination.next(v),this.buffer=[])}_complete(){const m=this.buffer;m.length>0&&this.destination.next(m),super._complete()}}class te extends z.L{constructor(m,v,j){super(m),this.bufferSize=v,this.startBufferEvery=j,this.buffers=[],this.count=0}_next(m){const{bufferSize:v,startBufferEvery:j,buffers:ee,count:me}=this;this.count++,me%j==0&&ee.push([]);for(let Be=ee.length;Be--;){const kt=ee[Be];kt.push(m),kt.length===v&&(ee.splice(Be,1),this.destination.next(kt))}}_complete(){const{buffers:m,destination:v}=this;for(;m.length>0;){let j=m.shift();j.length>0&&v.next(j)}super._complete()}}var fe=f(2866);function se(B){let m=arguments.length,v=A.P;(0,fe.K)(arguments[arguments.length-1])&&(v=arguments[arguments.length-1],m--);let j=null;m>=2&&(j=arguments[1]);let ee=Number.POSITIVE_INFINITY;return m>=3&&(ee=arguments[2]),function(Be){return Be.lift(new Te(B,j,ee,v))}}class Te{constructor(m,v,j,ee){this.bufferTimeSpan=m,this.bufferCreationInterval=v,this.maxBufferSize=j,this.scheduler=ee}call(m,v){return v.subscribe(new rt(m,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class Ge{constructor(){this.buffer=[]}}class rt extends z.L{constructor(m,v,j,ee,me){super(m),this.bufferTimeSpan=v,this.bufferCreationInterval=j,this.maxBufferSize=ee,this.scheduler=me,this.contexts=[];const Be=this.openContext();if(this.timespanOnly=null==j||j<0,this.timespanOnly)this.add(Be.closeAction=me.schedule(Rt,v,{subscriber:this,context:Be,bufferTimeSpan:v}));else{const tn={bufferTimeSpan:v,bufferCreationInterval:j,subscriber:this,scheduler:me};this.add(Be.closeAction=me.schedule(at,v,{subscriber:this,context:Be})),this.add(me.schedule(bt,j,tn))}}_next(m){const v=this.contexts,j=v.length;let ee;for(let me=0;me0;){const j=m.shift();v.next(j.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(m){this.closeContext(m);const v=m.closeAction;if(v.unsubscribe(),this.remove(v),!this.closed&&this.timespanOnly){m=this.openContext();const j=this.bufferTimeSpan;this.add(m.closeAction=this.scheduler.schedule(Rt,j,{subscriber:this,context:m,bufferTimeSpan:j}))}}openContext(){const m=new Ge;return this.contexts.push(m),m}closeContext(m){this.destination.next(m.buffer);const v=this.contexts;(v?v.indexOf(m):-1)>=0&&v.splice(v.indexOf(m),1)}}function Rt(B){const m=B.subscriber,v=B.context;v&&m.closeContext(v),m.closed||(B.context=m.openContext(),B.context.closeAction=this.schedule(B,B.bufferTimeSpan))}function bt(B){const{bufferCreationInterval:m,bufferTimeSpan:v,subscriber:j,scheduler:ee}=B,me=j.openContext();j.closed||(j.add(me.closeAction=ee.schedule(at,v,{subscriber:j,context:me})),this.schedule(B,m))}function at(B){const{subscriber:m,context:v}=B;m.closeContext(v)}var Zt=f(4096),It=f(448),ot=f(826);function it(B,m){return function(j){return j.lift(new st(B,m))}}class st{constructor(m,v){this.openings=m,this.closingSelector=v}call(m,v){return v.subscribe(new ht(m,this.openings,this.closingSelector))}}class ht extends ot.L{constructor(m,v,j){super(m),this.closingSelector=j,this.contexts=[],this.add((0,It.D)(this,v))}_next(m){const v=this.contexts,j=v.length;for(let ee=0;ee0;){const j=v.shift();j.subscription.unsubscribe(),j.buffer=null,j.subscription=null}this.contexts=null,super._error(m)}_complete(){const m=this.contexts;for(;m.length>0;){const v=m.shift();this.destination.next(v.buffer),v.subscription.unsubscribe(),v.buffer=null,v.subscription=null}this.contexts=null,super._complete()}notifyNext(m,v){m?this.closeBuffer(m):this.openBuffer(v)}notifyComplete(m){this.closeBuffer(m.context)}openBuffer(m){try{const j=this.closingSelector.call(this,m);j&&this.trySubscribe(j)}catch(v){this._error(v)}}closeBuffer(m){const v=this.contexts;if(v&&m){const{buffer:j,subscription:ee}=m;this.destination.next(j),v.splice(v.indexOf(m),1),this.remove(ee),ee.unsubscribe()}}trySubscribe(m){const v=this.contexts,ee=new Zt.w,me={buffer:[],subscription:ee};v.push(me);const Be=(0,It.D)(this,m,me);!Be||Be.closed?this.closeBuffer(me):(Be.context=me,this.add(Be),ee.add(Be))}}function Je(B){return function(m){return m.lift(new lt(B))}}class lt{constructor(m){this.closingSelector=m}call(m,v){return v.subscribe(new Re(m,this.closingSelector))}}class Re extends p.Ds{constructor(m,v){super(m),this.closingSelector=v,this.subscribing=!1,this.openBuffer()}_next(m){this.buffer.push(m)}_complete(){const m=this.buffer;m&&this.destination.next(m),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let j,{closingSubscription:m}=this;m&&(this.remove(m),m.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:ee}=this;j=ee()}catch(ee){return this.error(ee)}m=new Zt.w,this.closingSubscription=m,this.add(m),this.subscribing=!0,m.add((0,p.ft)(j,new p.IY(this))),this.subscribing=!1}}var cn=f(7221),qt=f(6053);function Cn(B){return m=>m.lift(new qt.Ms(B))}var Ft=f(6688),ft=f(3527);function vr(...B){let m=null;return"function"==typeof B[B.length-1]&&(m=B.pop()),1===B.length&&(0,Ft.k)(B[0])&&(B=B[0].slice()),v=>v.lift.call((0,ft.D)([v,...B]),new qt.Ms(m))}var Mr=f(1961);function Dt(...B){return m=>m.lift.call((0,Mr.z)(m,...B))}var Ln=f(534),dn=f(1406);function Tt(B,m){return(0,dn.b)(()=>B,m)}function Yn(B){return m=>m.lift(new tr(B,m))}class tr{constructor(m,v){this.predicate=m,this.source=v}call(m,v){return v.subscribe(new zt(m,this.predicate,this.source))}}class zt extends z.L{constructor(m,v,j){super(m),this.predicate=v,this.source=j,this.count=0,this.index=0}_next(m){this.predicate?this._tryPredicate(m):this.count++}_tryPredicate(m){let v;try{v=this.predicate(m,this.index++,this.source)}catch(j){return void this.destination.error(j)}v&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function Ht(B){return m=>m.lift(new $t(B))}class $t{constructor(m){this.durationSelector=m}call(m,v){return v.subscribe(new bn(m,this.durationSelector))}}class bn extends p.Ds{constructor(m,v){super(m),this.durationSelector=v,this.hasValue=!1}_next(m){try{const v=this.durationSelector.call(this,m);v&&this._tryNext(m,v)}catch(v){this.destination.error(v)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(m,v){let j=this.durationSubscription;this.value=m,this.hasValue=!0,j&&(j.unsubscribe(),this.remove(j)),j=(0,p.ft)(v,new p.IY(this)),j&&!j.closed&&this.add(this.durationSubscription=j)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const m=this.value,v=this.durationSubscription;v&&(this.durationSubscription=void 0,v.unsubscribe(),this.remove(v)),this.value=void 0,this.hasValue=!1,super._next(m)}}}function ur(B,m=A.P){return v=>v.lift(new hi(B,m))}class hi{constructor(m,v){this.dueTime=m,this.scheduler=v}call(m,v){return v.subscribe(new He(m,this.dueTime,this.scheduler))}}class He extends z.L{constructor(m,v,j){super(m),this.dueTime=v,this.scheduler=j,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(m){this.clearDebounce(),this.lastValue=m,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(pn,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:m}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(m)}}clearDebounce(){const m=this.debouncedSubscription;null!==m&&(this.remove(m),m.unsubscribe(),this.debouncedSubscription=null)}}function pn(B){B.debouncedNext()}var Wt=f(7314);function At(B){return B instanceof Date&&!isNaN(+B)}var Qn=f(9312);function cr(B,m=A.P){const j=At(B)?+B-m.now():Math.abs(B);return ee=>ee.lift(new kn(j,m))}class kn{constructor(m,v){this.delay=m,this.scheduler=v}call(m,v){return v.subscribe(new rn(m,this.delay,this.scheduler))}}class rn extends z.L{constructor(m,v,j){super(m),this.delay=v,this.scheduler=j,this.queue=[],this.active=!1,this.errored=!1}static dispatch(m){const v=m.source,j=v.queue,ee=m.scheduler,me=m.destination;for(;j.length>0&&j[0].time-ee.now()<=0;)j.shift().notification.observe(me);if(j.length>0){const Be=Math.max(0,j[0].time-ee.now());this.schedule(m,Be)}else this.unsubscribe(),v.active=!1}_schedule(m){this.active=!0,this.destination.add(m.schedule(rn.dispatch,this.delay,{source:this,destination:this.destination,scheduler:m}))}scheduleNotification(m){if(!0===this.errored)return;const v=this.scheduler,j=new wt(v.now()+this.delay,m);this.queue.push(j),!1===this.active&&this._schedule(v)}_next(m){this.scheduleNotification(Qn.P.createNext(m))}_error(m){this.errored=!0,this.queue=[],this.destination.error(m),this.unsubscribe()}_complete(){this.scheduleNotification(Qn.P.createComplete()),this.unsubscribe()}}class wt{constructor(m,v){this.time=m,this.notification=v}}var In=f(4202);function Et(B,m){return m?v=>new Ir(v,m).lift(new Ue(B)):v=>v.lift(new Ue(B))}class Ue{constructor(m){this.delayDurationSelector=m}call(m,v){return v.subscribe(new Qe(m,this.delayDurationSelector))}}class Qe extends ot.L{constructor(m,v){super(m),this.delayDurationSelector=v,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(m,v,j,ee,me){this.destination.next(m),this.removeSubscription(me),this.tryComplete()}notifyError(m,v){this._error(m)}notifyComplete(m){const v=this.removeSubscription(m);v&&this.destination.next(v),this.tryComplete()}_next(m){const v=this.index++;try{const j=this.delayDurationSelector(m,v);j&&this.tryDelay(j,m)}catch(j){this.destination.error(j)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(m){m.unsubscribe();const v=this.delayNotifierSubscriptions.indexOf(m);return-1!==v&&this.delayNotifierSubscriptions.splice(v,1),m.outerValue}tryDelay(m,v){const j=(0,It.D)(this,m,v);j&&!j.closed&&(this.destination.add(j),this.delayNotifierSubscriptions.push(j))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class Ir extends In.y{constructor(m,v){super(),this.source=m,this.subscriptionDelay=v}_subscribe(m){this.subscriptionDelay.subscribe(new Tr(m,this.source))}}class Tr extends z.L{constructor(m,v){super(),this.parent=m,this.source=v,this.sourceSubscribed=!1}_next(m){this.subscribeToSource()}_error(m){this.unsubscribe(),this.parent.error(m)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function gt(){return function(m){return m.lift(new yr)}}class yr{call(m,v){return v.subscribe(new En(m))}}class En extends z.L{constructor(m){super(m)}_next(m){m.observe(this.destination)}}function Bn(B,m){return v=>v.lift(new je(B,m))}class je{constructor(m,v){this.keySelector=m,this.flushes=v}call(m,v){return v.subscribe(new Tn(m,this.keySelector,this.flushes))}}class Tn extends p.Ds{constructor(m,v,j){super(m),this.keySelector=v,this.values=new Set,j&&this.add((0,p.ft)(j,new p.IY(this)))}notifyNext(){this.values.clear()}notifyError(m){this._error(m)}_next(m){this.keySelector?this._useKeySelector(m):this._finalizeNext(m,m)}_useKeySelector(m){let v;const{destination:j}=this;try{v=this.keySelector(m)}catch(ee){return void j.error(ee)}this._finalizeNext(v,m)}_finalizeNext(m,v){const{values:j}=this;j.has(m)||(j.add(m),this.destination.next(v))}}function tt(B,m){return v=>v.lift(new Cr(B,m))}class Cr{constructor(m,v){this.compare=m,this.keySelector=v}call(m,v){return v.subscribe(new jn(m,this.compare,this.keySelector))}}class jn extends z.L{constructor(m,v,j){super(m),this.keySelector=j,this.hasKey=!1,"function"==typeof v&&(this.compare=v)}compare(m,v){return m===v}_next(m){let v;try{const{keySelector:ee}=this;v=ee?ee(m):m}catch(ee){return this.destination.error(ee)}let j=!1;if(this.hasKey)try{const{compare:ee}=this;j=ee(this.key,v)}catch(ee){return this.destination.error(ee)}else this.hasKey=!0;j||(this.key=v,this.destination.next(m))}}function Jt(B,m){return tt((v,j)=>m?m(v[B],j[B]):v[B]===j[B])}var hn=f(4231),br=f(2198),Zn=f(4907),dr=f(2986);function nr(B,m){if(B<0)throw new hn.W;const v=arguments.length>=2;return j=>j.pipe((0,br.h)((ee,me)=>me===B),(0,dr.q)(1),v?(0,Wt.d)(m):(0,Zn.T)(()=>new hn.W))}var $r=f(1086);function gi(...B){return m=>(0,Mr.z)(m,(0,$r.of)(...B))}function he(B,m){return v=>v.lift(new oe(B,m,v))}class oe{constructor(m,v,j){this.predicate=m,this.thisArg=v,this.source=j}call(m,v){return v.subscribe(new re(m,this.predicate,this.thisArg,this.source))}}class re extends z.L{constructor(m,v,j,ee){super(m),this.predicate=v,this.thisArg=j,this.source=ee,this.index=0,this.thisArg=j||this}notifyComplete(m){this.destination.next(m),this.destination.complete()}_next(m){let v=!1;try{v=this.predicate.call(this.thisArg,m,this.index++,this.source)}catch(j){return void this.destination.error(j)}v||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function ve(){return B=>B.lift(new Ee)}class Ee{call(m,v){return v.subscribe(new xe(m))}}class xe extends p.Ds{constructor(m){super(m),this.hasCompleted=!1,this.hasSubscription=!1}_next(m){this.hasSubscription||(this.hasSubscription=!0,this.add((0,p.ft)(m,new p.IY(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var $e=f(4850);function Fe(B,m){return m?v=>v.pipe(Fe((j,ee)=>(0,ft.D)(B(j,ee)).pipe((0,$e.U)((me,Be)=>m(j,me,ee,Be))))):v=>v.lift(new Xe(B))}class Xe{constructor(m){this.project=m}call(m,v){return v.subscribe(new Ye(m,this.project))}}class Ye extends p.Ds{constructor(m,v){super(m),this.project=v,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(m){this.hasSubscription||this.tryNext(m)}tryNext(m){let v;const j=this.index++;try{v=this.project(m,j)}catch(ee){return void this.destination.error(ee)}this.hasSubscription=!0,this._innerSub(v)}_innerSub(m){const v=new p.IY(this),j=this.destination;j.add(v);const ee=(0,p.ft)(m,v);ee!==v&&j.add(ee)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(m){this.destination.next(m)}notifyError(m){this.destination.error(m)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function St(B,m=Number.POSITIVE_INFINITY,v){return m=(m||0)<1?Number.POSITIVE_INFINITY:m,j=>j.lift(new sn(B,m,v))}class sn{constructor(m,v,j){this.project=m,this.concurrent=v,this.scheduler=j}call(m,v){return v.subscribe(new rr(m,this.project,this.concurrent,this.scheduler))}}class rr extends p.Ds{constructor(m,v,j,ee){super(m),this.project=v,this.concurrent=j,this.scheduler=ee,this.index=0,this.active=0,this.hasCompleted=!1,j0&&this._next(m.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var $n=f(537);function Kt(B,m){if("function"!=typeof B)throw new TypeError("predicate is not a function");return v=>v.lift(new fr(B,v,!1,m))}class fr{constructor(m,v,j,ee){this.predicate=m,this.source=v,this.yieldIndex=j,this.thisArg=ee}call(m,v){return v.subscribe(new Bt(m,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class Bt extends z.L{constructor(m,v,j,ee,me){super(m),this.predicate=v,this.source=j,this.yieldIndex=ee,this.thisArg=me,this.index=0}notifyComplete(m){const v=this.destination;v.next(m),v.complete(),this.unsubscribe()}_next(m){const{predicate:v,thisArg:j}=this,ee=this.index++;try{v.call(j||this,m,ee,this.source)&&this.notifyComplete(this.yieldIndex?ee:m)}catch(me){this.destination.error(me)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function Me(B,m){return v=>v.lift(new fr(B,v,!0,m))}var et=f(7224),vt=f(4002);function Yt(){return function(m){return m.lift(new Jn)}}class Jn{call(m,v){return v.subscribe(new jt(m))}}class jt extends z.L{_next(m){}}function An(){return B=>B.lift(new mt)}class mt{call(m,v){return v.subscribe(new yt(m))}}class yt extends z.L{constructor(m){super(m)}notifyComplete(m){const v=this.destination;v.next(m),v.complete()}_next(m){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var Dn=f(8127);function Ke(B){return m=>m.lift(new Un(B))}class Un{constructor(m){this.value=m}call(m,v){return v.subscribe(new on(m,this.value))}}class on extends z.L{constructor(m,v){super(m),this.value=v}_next(m){this.destination.next(this.value)}}function ir(){return function(m){return m.lift(new On)}}class On{call(m,v){return v.subscribe(new Q(m))}}class Q extends z.L{constructor(m){super(m)}_next(m){this.destination.next(Qn.P.createNext(m))}_error(m){const v=this.destination;v.next(Qn.P.createError(m)),v.complete()}_complete(){const m=this.destination;m.next(Qn.P.createComplete()),m.complete()}}var ae=f(2014),ue=f(2821),ge=f(4843);function de(B,m){return arguments.length>=2?function(j){return(0,ge.z)((0,ae.R)(B,m),(0,ue.h)(1),(0,Wt.d)(m))(j)}:function(j){return(0,ge.z)((0,ae.R)((ee,me,Be)=>B(ee,me,Be+1)),(0,ue.h)(1))(j)}}function Ae(B){return de("function"==typeof B?(v,j)=>B(v,j)>0?v:j:(v,j)=>v>j?v:j)}var Se=f(6787);function we(...B){return m=>m.lift.call((0,Se.T)(m,...B))}var We=f(9146),Ct=f(1709);function Ot(B,m,v=Number.POSITIVE_INFINITY){return"function"==typeof m?(0,Ct.zg)(()=>B,m,v):("number"==typeof m&&(v=m),(0,Ct.zg)(()=>B,v))}function an(B,m,v=Number.POSITIVE_INFINITY){return j=>j.lift(new Qt(B,m,v))}class Qt{constructor(m,v,j){this.accumulator=m,this.seed=v,this.concurrent=j}call(m,v){return v.subscribe(new Xn(m,this.accumulator,this.seed,this.concurrent))}}class Xn extends p.Ds{constructor(m,v,j,ee){super(m),this.accumulator=v,this.acc=j,this.concurrent=ee,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(m){if(this.active0?this._next(m.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function Ar(B){return de("function"==typeof B?(v,j)=>B(v,j)<0?v:j:(v,j)=>vm.lift(new Ur(B))}class Ur{constructor(m){this.nextSources=m}call(m,v){return v.subscribe(new zi(m,this.nextSources))}}class zi extends p.Ds{constructor(m,v){super(m),this.destination=m,this.nextSources=v}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(m){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const m=this.nextSources.shift();if(m){const v=new p.IY(this),j=this.destination;j.add(v);const ee=(0,p.ft)(m,v);ee!==v&&j.add(ee)}else this.destination.complete()}}function Or(){return B=>B.lift(new Pr)}class Pr{call(m,v){return v.subscribe(new sr(m))}}class sr extends z.L{constructor(m){super(m),this.hasPrev=!1}_next(m){let v;this.hasPrev?v=[this.prev,m]:this.hasPrev=!0,this.prev=m,v&&this.destination.next(v)}}var Hr=f(5884);function De(B,m){return v=>[(0,br.h)(B,m)(v),(0,br.h)((0,Hr.f)(B,m))(v)]}function ln(...B){const m=B.length;if(0===m)throw new Error("list of properties cannot be empty.");return v=>(0,$e.U)(function wn(B,m){return j=>{let ee=j;for(let me=0;menew Pn.xQ,B):(0,qn.O)(new Pn.xQ)}var Wr=f(591);function Gr(B){return m=>(0,qn.O)(new Wr.X(B))(m)}var Er=f(2185);function Ps(){return B=>(0,qn.O)(new Er.c)(B)}var Dr=f(839);function or(B,m,v,j){v&&"function"!=typeof v&&(j=v);const ee="function"==typeof v?v:void 0,me=new Dr.t(B,m,j);return Be=>(0,qn.O)(()=>me,ee)(Be)}var Hn=f(1946);function Ii(...B){return function(v){return 1===B.length&&(0,Ft.k)(B[0])&&(B=B[0]),v.lift.call((0,Hn.S3)(v,...B))}}var zr=f(8896);function pr(B=-1){return m=>0===B?(0,zr.c)():m.lift(new ei(B<0?-1:B-1,m))}class ei{constructor(m,v){this.count=m,this.source=v}call(m,v){return v.subscribe(new Kr(m,this.count,this.source))}}class Kr extends z.L{constructor(m,v,j){super(m),this.count=v,this.source=j}complete(){if(!this.isStopped){const{source:m,count:v}=this;if(0===v)return super.complete();v>-1&&(this.count=v-1),m.subscribe(this._unsubscribeAndRecycle())}}}function fn(B){return m=>m.lift(new gn(B))}class gn{constructor(m){this.notifier=m}call(m,v){return v.subscribe(new Ti(m,this.notifier,v))}}class Ti extends p.Ds{constructor(m,v,j){super(m),this.notifier=v,this.source=j,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:m,retriesSubscription:v}=this;m&&(m.unsubscribe(),this.notifications=void 0),v&&(v.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:m}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=m,this}subscribeToRetries(){let m;this.notifications=new Pn.xQ;try{const{notifier:v}=this;m=v(this.notifications)}catch(v){return super.complete()}this.retries=m,this.retriesSubscription=(0,p.ft)(m,new p.IY(this))}}function wr(B=-1){return m=>m.lift(new gs(B,m))}class gs{constructor(m,v){this.count=m,this.source=v}call(m,v){return v.subscribe(new mn(m,this.count,this.source))}}class mn extends z.L{constructor(m,v,j){super(m),this.count=v,this.source=j}error(m){if(!this.isStopped){const{source:v,count:j}=this;if(0===j)return super.error(m);j>-1&&(this.count=j-1),v.subscribe(this._unsubscribeAndRecycle())}}}function ar(B){return m=>m.lift(new _i(B,m))}class _i{constructor(m,v){this.notifier=m,this.source=v}call(m,v){return v.subscribe(new Yr(m,this.notifier,this.source))}}class Yr extends p.Ds{constructor(m,v,j){super(m),this.notifier=v,this.source=j}error(m){if(!this.isStopped){let v=this.errors,j=this.retries,ee=this.retriesSubscription;if(j)this.errors=void 0,this.retriesSubscription=void 0;else{v=new Pn.xQ;try{const{notifier:me}=this;j=me(v)}catch(me){return super.error(me)}ee=(0,p.ft)(j,new p.IY(this))}this._unsubscribeAndRecycle(),this.errors=v,this.retries=j,this.retriesSubscription=ee,v.next(m)}}_unsubscribe(){const{errors:m,retriesSubscription:v}=this;m&&(m.unsubscribe(),this.errors=void 0),v&&(v.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:m}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=m,this.source.subscribe(this)}}var ms=f(4327);function vi(B){return m=>m.lift(new ti(B))}class ti{constructor(m){this.notifier=m}call(m,v){const j=new Ki(m),ee=v.subscribe(j);return ee.add((0,p.ft)(this.notifier,new p.IY(j))),ee}}class Ki extends p.Ds{constructor(){super(...arguments),this.hasValue=!1}_next(m){this.value=m,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function ni(B,m=A.P){return v=>v.lift(new io(B,m))}class io{constructor(m,v){this.period=m,this.scheduler=v}call(m,v){return v.subscribe(new Nt(m,this.period,this.scheduler))}}class Nt extends z.L{constructor(m,v,j){super(m),this.period=v,this.scheduler=j,this.hasValue=!1,this.add(j.schedule(x,v,{subscriber:this,period:v}))}_next(m){this.lastValue=m,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function x(B){let{subscriber:m,period:v}=B;m.notifyNext(),this.schedule(B,v)}function V(B,m){return v=>v.lift(new S(B,m))}class S{constructor(m,v){this.compareTo=m,this.comparator=v}call(m,v){return v.subscribe(new k(m,this.compareTo,this.comparator))}}class k extends z.L{constructor(m,v,j){super(m),this.compareTo=v,this.comparator=j,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(v.subscribe(new J(m,this)))}_next(m){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(m),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:m,_b:v,comparator:j}=this;for(;m.length>0&&v.length>0;){let ee=m.shift(),me=v.shift(),Be=!1;try{Be=j?j(ee,me):ee===me}catch(kt){this.destination.error(kt)}Be||this.emit(!1)}}emit(m){const{destination:v}=this;v.next(m),v.complete()}nextB(m){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(m),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class J extends z.L{constructor(m,v){super(m),this.parent=v}_next(m){this.parent.nextB(m)}_error(m){this.parent.error(m),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var ce=f(8117),_e=f(5154),be=f(4450);function Pt(B){return m=>m.lift(new ct(B,m))}class ct{constructor(m,v){this.predicate=m,this.source=v}call(m,v){return v.subscribe(new ut(m,this.predicate,this.source))}}class ut extends z.L{constructor(m,v,j){super(m),this.predicate=v,this.source=j,this.seenValue=!1,this.index=0}applySingleValue(m){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=m)}_next(m){const v=this.index++;this.predicate?this.tryNext(m,v):this.applySingleValue(m)}tryNext(m,v){try{this.predicate(m,v,this.source)&&this.applySingleValue(m)}catch(j){this.destination.error(j)}}_complete(){const m=this.destination;this.index>0?(m.next(this.seenValue?this.singleValue:void 0),m.complete()):m.error(new be.K)}}function dt(B){return m=>m.lift(new en(B))}class en{constructor(m){this.total=m}call(m,v){return v.subscribe(new M(m,this.total))}}class M extends z.L{constructor(m,v){super(m),this.total=v,this.count=0}_next(m){++this.count>this.total&&this.destination.next(m)}}function E(B){return m=>m.lift(new C(B))}class C{constructor(m){if(this._skipCount=m,this._skipCount<0)throw new hn.W}call(m,v){return v.subscribe(0===this._skipCount?new z.L(m):new L(m,this._skipCount))}}class L extends z.L{constructor(m,v){super(m),this._skipCount=v,this._count=0,this._ring=new Array(v)}_next(m){const v=this._skipCount,j=this._count++;if(jm.lift(new Pe(B))}class Pe{constructor(m){this.notifier=m}call(m,v){return v.subscribe(new Gt(m,this.notifier))}}class Gt extends p.Ds{constructor(m,v){super(m),this.hasValue=!1;const j=new p.IY(this);this.add(j),this.innerSubscription=j;const ee=(0,p.ft)(v,j);ee!==j&&(this.add(ee),this.innerSubscription=ee)}_next(m){this.hasValue&&super._next(m)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function Mt(B){return m=>m.lift(new Sn(B))}class Sn{constructor(m){this.predicate=m}call(m,v){return v.subscribe(new Yi(m,this.predicate))}}class Yi extends z.L{constructor(m,v){super(m),this.predicate=v,this.skipping=!0,this.index=0}_next(m){const v=this.destination;this.skipping&&this.tryCallPredicate(m),this.skipping||v.next(m)}tryCallPredicate(m){try{const v=this.predicate(m,this.index++);this.skipping=Boolean(v)}catch(v){this.destination.error(v)}}}var Bo=f(1059),_s=f(8139),Ce=f(4241);class _t extends In.y{constructor(m,v=0,j=_s.e){super(),this.source=m,this.delayTime=v,this.scheduler=j,(!(0,Ce.k)(v)||v<0)&&(this.delayTime=0),(!j||"function"!=typeof j.schedule)&&(this.scheduler=_s.e)}static create(m,v=0,j=_s.e){return new _t(m,v,j)}static dispatch(m){const{source:v,subscriber:j}=m;return this.add(v.subscribe(j))}_subscribe(m){return this.scheduler.schedule(_t.dispatch,this.delayTime,{source:this.source,subscriber:m})}}function so(B,m=0){return function(j){return j.lift(new _n(B,m))}}class _n{constructor(m,v){this.scheduler=m,this.delay=v}call(m,v){return new _t(v,this.delay,this.scheduler).subscribe(m)}}var Qi=f(7545),Zi=f(5379);function hr(){return(0,Qi.w)(Zi.y)}function ri(B,m){return m?(0,Qi.w)(()=>B,m):(0,Qi.w)(()=>B)}function pt(B){return m=>m.lift(new Rs(B))}class Rs{constructor(m){this.notifier=m}call(m,v){const j=new Ga(m),ee=(0,p.ft)(this.notifier,new p.IY(j));return ee&&!j.seenValue?(j.add(ee),v.subscribe(j)):j}}class Ga extends p.Ds{constructor(m){super(m),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Qr(B,m=!1){return v=>v.lift(new Fs(B,m))}class Fs{constructor(m,v){this.predicate=m,this.inclusive=v}call(m,v){return v.subscribe(new Wn(m,this.predicate,this.inclusive))}}class Wn extends z.L{constructor(m,v,j){super(m),this.predicate=v,this.inclusive=j,this.index=0}_next(m){const v=this.destination;let j;try{j=this.predicate(m,this.index++)}catch(ee){return void v.error(ee)}this.nextOrComplete(m,j)}nextOrComplete(m,v){const j=this.destination;Boolean(v)?j.next(m):(this.inclusive&&j.next(m),j.complete())}}var Zr=f(2994);const oo={leading:!0,trailing:!1};function ii(B,m=oo){return v=>v.lift(new gr(B,!!m.leading,!!m.trailing))}class gr{constructor(m,v,j){this.durationSelector=m,this.leading=v,this.trailing=j}call(m,v){return v.subscribe(new jo(m,this.durationSelector,this.leading,this.trailing))}}class jo extends p.Ds{constructor(m,v,j,ee){super(m),this.destination=m,this.durationSelector=v,this._leading=j,this._trailing=ee,this._hasValue=!1}_next(m){this._hasValue=!0,this._sendValue=m,this._throttled||(this._leading?this.send():this.throttle(m))}send(){const{_hasValue:m,_sendValue:v}=this;m&&(this.destination.next(v),this.throttle(v)),this._hasValue=!1,this._sendValue=void 0}throttle(m){const v=this.tryDurationSelector(m);v&&this.add(this._throttled=(0,p.ft)(v,new p.IY(this)))}tryDurationSelector(m){try{return this.durationSelector(m)}catch(v){return this.destination.error(v),null}}throttlingDone(){const{_throttled:m,_trailing:v}=this;m&&m.unsubscribe(),this._throttled=void 0,v&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function vs(B,m=A.P,v=oo){return j=>j.lift(new za(B,m,v.leading,v.trailing))}class za{constructor(m,v,j,ee){this.duration=m,this.scheduler=v,this.leading=j,this.trailing=ee}call(m,v){return v.subscribe(new ao(m,this.duration,this.scheduler,this.leading,this.trailing))}}class ao extends z.L{constructor(m,v,j,ee,me){super(m),this.duration=v,this.scheduler=j,this.leading=ee,this.trailing=me,this._hasTrailingValue=!1,this._trailingValue=null}_next(m){this.throttled?this.trailing&&(this._trailingValue=m,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ji,this.duration,{subscriber:this})),this.leading?this.destination.next(m):this.trailing&&(this._trailingValue=m,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const m=this.throttled;m&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),m.unsubscribe(),this.remove(m),this.throttled=null)}}function Ji(B){const{subscriber:m}=B;m.clearThrottle()}var Ns=f(8514);function lo(B=A.P){return m=>(0,Ns.P)(()=>m.pipe((0,ae.R)(({current:v},j)=>({value:j,current:B.now(),last:v}),{current:B.now(),value:void 0,last:void 0}),(0,$e.U)(({current:v,last:j,value:ee})=>new uo(ee,v-j))))}class uo{constructor(m,v){this.value=m,this.interval=v}}var Ka=f(854);function co(B,m,v=A.P){return j=>{let ee=At(B),me=ee?+B-v.now():Math.abs(B);return j.lift(new $i(me,ee,m,v))}}class $i{constructor(m,v,j,ee){this.waitFor=m,this.absoluteTimeout=v,this.withObservable=j,this.scheduler=ee}call(m,v){return v.subscribe(new Vs(m,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class Vs extends p.Ds{constructor(m,v,j,ee,me){super(m),this.absoluteTimeout=v,this.waitFor=j,this.withObservable=ee,this.scheduler=me,this.scheduleTimeout()}static dispatchTimeout(m){const{withObservable:v}=m;m._unsubscribeAndRecycle(),m.add((0,p.ft)(v,new p.IY(m)))}scheduleTimeout(){const{action:m}=this;m?this.action=m.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(Vs.dispatchTimeout,this.waitFor,this))}_next(m){this.absoluteTimeout||this.scheduleTimeout(),super._next(m)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var Uo=f(1737);function Ho(B,m=A.P){return co(B,(0,Uo._)(new Ka.W),m)}function Wo(B=A.P){return(0,$e.U)(m=>new Ls(m,B.now()))}class Ls{constructor(m,v){this.value=m,this.timestamp=v}}function Go(B,m,v){return 0===v?[m]:(B.push(m),B)}function fo(){return de(Go,[])}function Rn(B){return function(v){return v.lift(new Gn(B))}}class Gn{constructor(m){this.windowBoundaries=m}call(m,v){const j=new Lt(m),ee=v.subscribe(j);return ee.closed||j.add((0,p.ft)(this.windowBoundaries,new p.IY(j))),ee}}class Lt extends p.Ds{constructor(m){super(m),this.window=new Pn.xQ,m.next(this.window)}notifyNext(){this.openWindow()}notifyError(m){this._error(m)}notifyComplete(){this._complete()}_next(m){this.window.next(m)}_error(m){this.window.error(m),this.destination.error(m)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const m=this.window;m&&m.complete();const v=this.destination,j=this.window=new Pn.xQ;v.next(j)}}function po(B,m=0){return function(j){return j.lift(new ho(B,m))}}class ho{constructor(m,v){this.windowSize=m,this.startWindowEvery=v}call(m,v){return v.subscribe(new zo(m,this.windowSize,this.startWindowEvery))}}class zo extends z.L{constructor(m,v,j){super(m),this.destination=m,this.windowSize=v,this.startWindowEvery=j,this.windows=[new Pn.xQ],this.count=0,m.next(this.windows[0])}_next(m){const v=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,j=this.destination,ee=this.windowSize,me=this.windows,Be=me.length;for(let tn=0;tn=0&&kt%v==0&&!this.closed&&me.shift().complete(),++this.count%v==0&&!this.closed){const tn=new Pn.xQ;me.push(tn),j.next(tn)}}_error(m){const v=this.windows;if(v)for(;v.length>0&&!this.closed;)v.shift().error(m);this.destination.error(m)}_complete(){const m=this.windows;if(m)for(;m.length>0&&!this.closed;)m.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function Xi(B){let m=A.P,v=null,j=Number.POSITIVE_INFINITY;return(0,fe.K)(arguments[3])&&(m=arguments[3]),(0,fe.K)(arguments[2])?m=arguments[2]:(0,Ce.k)(arguments[2])&&(j=Number(arguments[2])),(0,fe.K)(arguments[1])?m=arguments[1]:(0,Ce.k)(arguments[1])&&(v=Number(arguments[1])),function(me){return me.lift(new Ko(B,v,j,m))}}class Ko{constructor(m,v,j,ee){this.windowTimeSpan=m,this.windowCreationInterval=v,this.maxWindowSize=j,this.scheduler=ee}call(m,v){return v.subscribe(new Ai(m,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Ya extends Pn.xQ{constructor(){super(...arguments),this._numberOfNextedValues=0}next(m){this._numberOfNextedValues++,super.next(m)}get numberOfNextedValues(){return this._numberOfNextedValues}}class Ai extends z.L{constructor(m,v,j,ee,me){super(m),this.destination=m,this.windowTimeSpan=v,this.windowCreationInterval=j,this.maxWindowSize=ee,this.scheduler=me,this.windows=[];const Be=this.openWindow();if(null!==j&&j>=0){const tn={windowTimeSpan:v,windowCreationInterval:j,subscriber:this,scheduler:me};this.add(me.schedule(Cs,v,{subscriber:this,window:Be,context:null})),this.add(me.schedule(qi,j,tn))}else this.add(me.schedule(ys,v,{subscriber:this,window:Be,windowTimeSpan:v}))}_next(m){const v=this.windows,j=v.length;for(let ee=0;ee=this.maxWindowSize&&this.closeWindow(me))}}_error(m){const v=this.windows;for(;v.length>0;)v.shift().error(m);this.destination.error(m)}_complete(){const m=this.windows;for(;m.length>0;){const v=m.shift();v.closed||v.complete()}this.destination.complete()}openWindow(){const m=new Ya;return this.windows.push(m),this.destination.next(m),m}closeWindow(m){m.complete();const v=this.windows;v.splice(v.indexOf(m),1)}}function ys(B){const{subscriber:m,windowTimeSpan:v,window:j}=B;j&&m.closeWindow(j),B.window=m.openWindow(),this.schedule(B,v)}function qi(B){const{windowTimeSpan:m,subscriber:v,scheduler:j,windowCreationInterval:ee}=B,me=v.openWindow();let kt={action:this,subscription:null};kt.subscription=j.schedule(Cs,m,{subscriber:v,window:me,context:kt}),this.add(kt.subscription),this.schedule(B,ee)}function Cs(B){const{subscriber:m,window:v,context:j}=B;j&&j.action&&j.subscription&&j.action.remove(j.subscription),m.closeWindow(v)}function ks(B,m){return v=>v.lift(new go(B,m))}class go{constructor(m,v){this.openings=m,this.closingSelector=v}call(m,v){return v.subscribe(new yi(m,this.openings,this.closingSelector))}}class yi extends ot.L{constructor(m,v,j){super(m),this.openings=v,this.closingSelector=j,this.contexts=[],this.add(this.openSubscription=(0,It.D)(this,v,v))}_next(m){const{contexts:v}=this;if(v){const j=v.length;for(let ee=0;ee{let v;return"function"==typeof B[B.length-1]&&(v=B.pop()),m.lift(new es(B,v))}}class es{constructor(m,v){this.observables=m,this.project=v}call(m,v){return v.subscribe(new Es(m,this.observables,this.project))}}class Es extends ot.L{constructor(m,v,j){super(m),this.observables=v,this.project=j,this.toRespond=[];const ee=v.length;this.values=new Array(ee);for(let me=0;me0){const me=ee.indexOf(j);-1!==me&&ee.splice(me,1)}}notifyComplete(){}_next(m){if(0===this.toRespond.length){const v=[m,...this.values];this.project?this._tryProject(v):this.destination.next(v)}}_tryProject(m){let v;try{v=this.project.apply(this,m)}catch(j){return void this.destination.error(j)}this.destination.next(v)}}var Bs=f(1746);function Ja(...B){return function(v){return v.lift.call((0,Bs.$R)(v,...B))}}function Xa(B){return m=>m.lift(new Bs.mx(B))}},5561:(H,w,f)=>{"use strict";f(5772)},3505:(H,w,f)=>{"use strict";f(9061)},6378:(H,w,f)=>{H.exports={default:f(3597),__esModule:!0}},863:(H,w,f)=>{H.exports={default:f(1035),__esModule:!0}},2945:(H,w,f)=>{H.exports={default:f(6981),__esModule:!0}},2242:(H,w,f)=>{H.exports={default:f(3391),__esModule:!0}},3597:(H,w,f)=>{f(3871),f(1867),H.exports=f(6459)},1035:(H,w,f)=>{f(3871),f(1867),H.exports=f(9553)},6981:(H,w,f)=>{f(2699),H.exports=f(4579).Object.assign},3391:(H,w,f)=>{f(1477);var p=f(4579).Object;H.exports=function(I,O,A){return p.defineProperty(I,O,A)}},5663:H=>{H.exports=function(w){if("function"!=typeof w)throw TypeError(w+" is not a function!");return w}},9003:H=>{H.exports=function(){}},2159:(H,w,f)=>{var p=f(6727);H.exports=function(e){if(!p(e))throw TypeError(e+" is not an object!");return e}},7428:(H,w,f)=>{var p=f(7932),e=f(8728),I=f(6531);H.exports=function(O){return function(A,R,b){var z,D=p(A),F=e(D.length),U=I(b,F);if(O&&R!=R){for(;F>U;)if((z=D[U++])!=z)return!0}else for(;F>U;U++)if((O||U in D)&&D[U]===R)return O||U||0;return!O&&-1}}},4677:(H,w,f)=>{var p=f(2894),e=f(2939)("toStringTag"),I="Arguments"==p(function(){return arguments}());H.exports=function(A){var R,b,D;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(b=function(A,R){try{return A[R]}catch(b){}}(R=Object(A),e))?b:I?p(R):"Object"==(D=p(R))&&"function"==typeof R.callee?"Arguments":D}},2894:H=>{var w={}.toString;H.exports=function(f){return w.call(f).slice(8,-1)}},4579:H=>{var w=H.exports={version:"2.6.12"};"number"==typeof __e&&(__e=w)},9216:(H,w,f)=>{var p=f(5663);H.exports=function(e,I,O){if(p(e),void 0===I)return e;switch(O){case 1:return function(A){return e.call(I,A)};case 2:return function(A,R){return e.call(I,A,R)};case 3:return function(A,R,b){return e.call(I,A,R,b)}}return function(){return e.apply(I,arguments)}}},8333:H=>{H.exports=function(w){if(null==w)throw TypeError("Can't call method on "+w);return w}},9666:(H,w,f)=>{H.exports=!f(7929)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},7467:(H,w,f)=>{var p=f(6727),e=f(3938).document,I=p(e)&&p(e.createElement);H.exports=function(O){return I?e.createElement(O):{}}},3338:H=>{H.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3856:(H,w,f)=>{var p=f(3938),e=f(4579),I=f(9216),O=f(1818),A=f(7069),R="prototype",b=function(D,F,U){var rt,Rt,bt,z=D&b.F,G=D&b.G,Y=D&b.S,X=D&b.P,te=D&b.B,fe=D&b.W,se=G?e:e[F]||(e[F]={}),Te=se[R],Ge=G?p:Y?p[F]:(p[F]||{})[R];for(rt in G&&(U=F),U)(!(Rt=!z&&Ge&&void 0!==Ge[rt])||!A(se,rt))&&(bt=Rt?Ge[rt]:U[rt],se[rt]=G&&"function"!=typeof Ge[rt]?U[rt]:te&&Rt?I(bt,p):fe&&Ge[rt]==bt?function(at){var Zt=function(It,ot,it){if(this instanceof at){switch(arguments.length){case 0:return new at;case 1:return new at(It);case 2:return new at(It,ot)}return new at(It,ot,it)}return at.apply(this,arguments)};return Zt[R]=at[R],Zt}(bt):X&&"function"==typeof bt?I(Function.call,bt):bt,X&&((se.virtual||(se.virtual={}))[rt]=bt,D&b.R&&Te&&!Te[rt]&&O(Te,rt,bt)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,H.exports=b},7929:H=>{H.exports=function(w){try{return!!w()}catch(f){return!0}}},3938:H=>{var w=H.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=w)},7069:H=>{var w={}.hasOwnProperty;H.exports=function(f,p){return w.call(f,p)}},1818:(H,w,f)=>{var p=f(4743),e=f(3101);H.exports=f(9666)?function(I,O,A){return p.f(I,O,e(1,A))}:function(I,O,A){return I[O]=A,I}},4881:(H,w,f)=>{var p=f(3938).document;H.exports=p&&p.documentElement},3758:(H,w,f)=>{H.exports=!f(9666)&&!f(7929)(function(){return 7!=Object.defineProperty(f(7467)("div"),"a",{get:function(){return 7}}).a})},799:(H,w,f)=>{var p=f(2894);H.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==p(e)?e.split(""):Object(e)}},6727:H=>{H.exports=function(w){return"object"==typeof w?null!==w:"function"==typeof w}},3945:(H,w,f)=>{"use strict";var p=f(526),e=f(3101),I=f(5378),O={};f(1818)(O,f(2939)("iterator"),function(){return this}),H.exports=function(A,R,b){A.prototype=p(O,{next:e(1,b)}),I(A,R+" Iterator")}},5700:(H,w,f)=>{"use strict";var p=f(6227),e=f(3856),I=f(7470),O=f(1818),A=f(5449),R=f(3945),b=f(5378),D=f(5089),F=f(2939)("iterator"),U=!([].keys&&"next"in[].keys()),G="keys",Y="values",X=function(){return this};H.exports=function(te,fe,se,Te,Ge,rt,Rt){R(se,fe,Te);var lt,Re,cn,bt=function(qt){if(!U&&qt in ot)return ot[qt];switch(qt){case G:case Y:return function(){return new se(this,qt)}}return function(){return new se(this,qt)}},at=fe+" Iterator",Zt=Ge==Y,It=!1,ot=te.prototype,it=ot[F]||ot["@@iterator"]||Ge&&ot[Ge],st=it||bt(Ge),ht=Ge?Zt?bt("entries"):st:void 0,Je="Array"==fe&&ot.entries||it;if(Je&&(cn=D(Je.call(new te)))!==Object.prototype&&cn.next&&(b(cn,at,!0),!p&&"function"!=typeof cn[F]&&O(cn,F,X)),Zt&&it&&it.name!==Y&&(It=!0,st=function(){return it.call(this)}),(!p||Rt)&&(U||It||!ot[F])&&O(ot,F,st),A[fe]=st,A[at]=X,Ge)if(lt={values:Zt?st:bt(Y),keys:rt?st:bt(G),entries:ht},Rt)for(Re in lt)Re in ot||I(ot,Re,lt[Re]);else e(e.P+e.F*(U||It),fe,lt);return lt}},5084:H=>{H.exports=function(w,f){return{value:f,done:!!w}}},5449:H=>{H.exports={}},6227:H=>{H.exports=!0},8082:(H,w,f)=>{"use strict";var p=f(9666),e=f(6162),I=f(8195),O=f(6274),A=f(6530),R=f(799),b=Object.assign;H.exports=!b||f(7929)(function(){var D={},F={},U=Symbol(),z="abcdefghijklmnopqrst";return D[U]=7,z.split("").forEach(function(G){F[G]=G}),7!=b({},D)[U]||Object.keys(b({},F)).join("")!=z})?function(F,U){for(var z=A(F),G=arguments.length,Y=1,X=I.f,te=O.f;G>Y;)for(var rt,fe=R(arguments[Y++]),se=X?e(fe).concat(X(fe)):e(fe),Te=se.length,Ge=0;Te>Ge;)rt=se[Ge++],(!p||te.call(fe,rt))&&(z[rt]=fe[rt]);return z}:b},526:(H,w,f)=>{var p=f(2159),e=f(7856),I=f(3338),O=f(8989)("IE_PROTO"),A=function(){},R="prototype",b=function(){var G,D=f(7467)("iframe"),F=I.length;for(D.style.display="none",f(4881).appendChild(D),D.src="javascript:",(G=D.contentWindow.document).open(),G.write("